diff --git a/src/components/DesignForm/app/formPage.vue b/src/components/DesignForm/app/formPage.vue index 76640b9..66e9b69 100644 --- a/src/components/DesignForm/app/formPage.vue +++ b/src/components/DesignForm/app/formPage.vue @@ -1083,10 +1083,11 @@ function optionsValue3Get2(data: any,fieldName: string){ }" > - - + + + diff --git a/src/components/DesignForm/public/form/formItem.vue b/src/components/DesignForm/public/form/formItem.vue index 6af6d91..6822dab 100644 --- a/src/components/DesignForm/public/form/formItem.vue +++ b/src/components/DesignForm/public/form/formItem.vue @@ -545,21 +545,24 @@ const judgeIsShow = (key:string) => { return true; }else{ let isShow = false; - props.purview.forEach((item)=>{ - if(item.nodeKey == props.nodeKey){ - - if(item.powerAry && item.powerAry.length > 0){ - item.powerAry.forEach((itm)=>{ - if(itm.id == key){ - // console.log("判断此组件是否可见",itm,itm.id == key,"--------->",itm.isLook) - isShow = itm.isLook - - } - }) + if(Array.isArray(props.purview)){ + props.purview.forEach((item)=>{ + if(item.nodeKey == props.nodeKey){ + + if(item.powerAry && item.powerAry.length > 0){ + item.powerAry.forEach((itm)=>{ + if(itm.id == key){ + // console.log("判断此组件是否可见",itm,itm.id == key,"--------->",itm.isLook) + isShow = itm.isLook + + } + }) + } } - } - - }) + + }) + } + return isShow } }else{ diff --git a/src/views/demo/wangEditor.vue b/src/views/demo/wangEditor.vue index 8f4b5e8..0105d69 100644 --- a/src/views/demo/wangEditor.vue +++ b/src/views/demo/wangEditor.vue @@ -6,6 +6,6 @@ const value = ref("初始内容");