Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Hooke
/
data-table
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Authored by
hookehuyr
2024-06-06 15:20:33 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
e47f061604532292daff7736b8f2f4b80ce60105
e47f0616
1 parent
f411da5c
单行多行默认值适配显示
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
1 deletions
src/components/TextField/index.vue
src/components/TextareaField/index.vue
src/components/TextField/index.vue
View file @
e47f061
...
...
@@ -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');
...
...
src/components/TextareaField/index.vue
View file @
e47f061
<!--
* @Date: 2022-08-29 14:31:20
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 202
3-03-21 18:36:51
* @LastEditTime: 202
4-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>
...
...
Please
register
or
login
to post a comment