Showing
1 changed file
with
5 additions
and
1 deletions
| ... | @@ -6,7 +6,7 @@ | ... | @@ -6,7 +6,7 @@ |
| 6 | * @Description: 富文本组件 | 6 | * @Description: 富文本组件 |
| 7 | --> | 7 | --> |
| 8 | <template> | 8 | <template> |
| 9 | - <div class="note-field-page"> | 9 | + <div v-if="HideShow" class="note-field-page"> |
| 10 | <div class="label"> | 10 | <div class="label"> |
| 11 | <span v-if="item.component_props.required"> *</span> | 11 | <span v-if="item.component_props.required"> *</span> |
| 12 | {{ item.component_props.label }} | 12 | {{ item.component_props.label }} |
| ... | @@ -19,6 +19,10 @@ | ... | @@ -19,6 +19,10 @@ |
| 19 | const props = defineProps({ | 19 | const props = defineProps({ |
| 20 | item: Object, | 20 | item: Object, |
| 21 | }); | 21 | }); |
| 22 | +// 隐藏显示 | ||
| 23 | +const HideShow = computed(() => { | ||
| 24 | + return !props.item.component_props.disabled | ||
| 25 | +}) | ||
| 22 | </script> | 26 | </script> |
| 23 | 27 | ||
| 24 | <style lang="less"> | 28 | <style lang="less"> | ... | ... |
-
Please register or login to post a comment