diff --git a/src/components/DesignForm/formControlAttr.vue b/src/components/DesignForm/formControlAttr.vue
index b5b1a8e28..b116d9d6c 100644
--- a/src/components/DesignForm/formControlAttr.vue
+++ b/src/components/DesignForm/formControlAttr.vue
@@ -1348,7 +1348,11 @@
// 校验规则必填勾选设置,存在校验规则时勾选
const checkboxRequired = computed(() => {
const val = controlData.value && controlData.value.item?.rules
- return val && val.length > 0
+ if(val && val.length > 0){
+ return true
+ }else{
+ return false
+ }
})
// 快速添加一条校验规则
const addRulesFast = () => {
diff --git a/src/components/DesignForm/formControlAttr_2024024.vue b/src/components/DesignForm/formControlAttr_2024024.vue
index bce9f04f2..703eaceec 100644
--- a/src/components/DesignForm/formControlAttr_2024024.vue
+++ b/src/components/DesignForm/formControlAttr_2024024.vue
@@ -1148,7 +1148,11 @@ const tableColumnAdd = (val: string) => {
// 校验规则必填勾选设置,存在校验规则时勾选
const checkboxRequired = computed(() => {
const val = controlData.value && controlData.value.item?.rules
- return val && val.length > 0
+ if(val && val.length > 0){
+ return true
+ }else{
+ return false
+ }
})
// 快速添加一条校验规则
const addRulesFast = () => {
diff --git a/src/components/DesignForm/formControlAttres.vue b/src/components/DesignForm/formControlAttres.vue
index 67bf990a6..4b0631fe4 100644
--- a/src/components/DesignForm/formControlAttres.vue
+++ b/src/components/DesignForm/formControlAttres.vue
@@ -988,7 +988,11 @@ const tableColumnAdd = (val: string) => {
// 校验规则必填勾选设置,存在校验规则时勾选
const checkboxRequired = computed(() => {
const val = controlData.value && controlData.value.item?.rules
- return val && val.length > 0
+ if(val && val.length > 0){
+ return true
+ }else{
+ return false
+ }
})
// 快速添加一条校验规则
const addRulesFast = () => {
diff --git a/src/components/DesignForm/formControlPropertiNew.vue b/src/components/DesignForm/formControlPropertiNew.vue
index c8b5eedd4..169c7d561 100644
--- a/src/components/DesignForm/formControlPropertiNew.vue
+++ b/src/components/DesignForm/formControlPropertiNew.vue
@@ -1387,7 +1387,13 @@ const tableColumnAdd = (val: string) => {
// 校验规则必填勾选设置,存在校验规则时勾选
const checkboxRequired = computed(() => {
const val = controlData.value && controlData.value.item?.rules
- return val && val.length > 0
+ console.log("校验规则必填勾选设置",val && val.length > 0)
+ if(val && val.length > 0){
+ return true
+ }else{
+ return false
+ }
+ // return val && val.length > 0
})
// 快速添加一条校验规则
const addRulesFast = () => {
@@ -3310,13 +3316,14 @@ const disabledIstrue = (val:string) => {
>
-