hookehuyr

fix 分割线组件显示属性判断

...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
6 * @Description: 分隔线组件 6 * @Description: 分隔线组件
7 --> 7 -->
8 <template> 8 <template>
9 - <div class="divider-field-page"> 9 + <div v-if="HideShow" class="divider-field-page">
10 <div v-if="item.component_props.style === 'type1'" class="type1"> 10 <div v-if="item.component_props.style === 'type1'" class="type1">
11 <div v-if="!item.component_props.hide_label" :style="{ color: item.component_props.label_color, lineHeight: 1.2, marginBottom: '0.25rem' }">{{ item.component_props.label }}</div> 11 <div v-if="!item.component_props.hide_label" :style="{ color: item.component_props.label_color, lineHeight: 1.2, marginBottom: '0.25rem' }">{{ item.component_props.label }}</div>
12 </div> 12 </div>
...@@ -103,6 +103,11 @@ const props = defineProps({ ...@@ -103,6 +103,11 @@ const props = defineProps({
103 item: Object, 103 item: Object,
104 }); 104 });
105 105
106 +// 隐藏显示
107 +const HideShow = computed(() => {
108 + return !props.item.component_props.disabled
109 +})
110 +
106 onMounted(() => { 111 onMounted(() => {
107 }); 112 });
108 </script> 113 </script>
......