hookehuyr

单行多行默认值适配显示

......@@ -41,6 +41,10 @@ const isGroup = computed(() => {
return props.item.component_props.is_field_group
});
onMounted(() => {
props.item.value = props.item.component_props.default;
});
const $route = useRoute();
// 默认识别类型
const scan_type_code = ref('ALL_CODE');
......
<!--
* @Date: 2022-08-29 14:31:20
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2023-03-21 18:36:51
* @LastEditTime: 2024-06-06 13:58:02
* @FilePath: /data-table/src/components/TextareaField/index.vue
* @Description: 多行文本输入框
-->
......@@ -36,9 +36,14 @@
const props = defineProps({
item: Object,
});
// 隐藏显示
const HideShow = computed(() => {
return !props.item.component_props.disabled
});
onMounted(() => {
props.item.value = props.item.component_props.default;
})
</script>
......