vue warn规范问题

vue.esm.js?a026:591 [Vue warn]: Invalid prop: type check failed for prop "disabled". Expected Boolean, got Number.

found in

--->
<ElInput> at packages/input/src/input.vue
<ElFormItem> at packages/form/src/form-item.vue
<ElRow>

<ElCol>
<ElRow>
<ElForm> at packages/form/src/form.vue
<CreateWaybill> at
src/components/jm/waybill/create-waybill.vue
<ElRow>
<ElMain> at
packages/main/src/main.vue
<ElContainer> at packages/container/src/main.vue... (1 recursive calls)

<Container> at src/components/layout/container.vue
<Jm> at src/pages/jm/App.vue

<Root>

 

原::disabled="zifuchuan1&&zifuchuan2"

修改为三元表达式::disabled="(zifuchuan1&&zifuchuan2)?true:false"

要将zifuchuan2写死可以在网址后加?zifuchuan2=任意字符

posted @   deulist_p  阅读(354)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 分享一个免费、快速、无限量使用的满血 DeepSeek R1 模型,支持深度思考和联网搜索!
· 使用C#创建一个MCP客户端
· 基于 Docker 搭建 FRP 内网穿透开源项目(很简单哒)
· ollama系列1:轻松3步本地部署deepseek,普通电脑可用
· 按钮权限的设计及实现
点击右上角即可分享
微信分享提示