Skip to content

Commit 00971bb

Browse files
committed
refactor: 添加参数时单选、多选、选项卡设置第一个条目
--bug=1049778 --user=刘瑞斌 【表单收集】- 组件类型选择单选框、多选框、选项卡、单行选项卡后,默认显示一行选项值。 https://www.tapd.cn/57709429/s/1621602
1 parent 4d4abb0 commit 00971bb

File tree

4 files changed

+8
-0
lines changed

4 files changed

+8
-0
lines changed

ui/src/components/dynamics-form/constructor/items/MultiSelectConstructor.vue

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,8 @@ defineExpose({ getData, rander })
116116
onMounted(() => {
117117
formValue.value.option_list = []
118118
formValue.value.default_value = ''
119+
120+
addOption()
119121
})
120122
</script>
121123
<style lang="scss" scoped>

ui/src/components/dynamics-form/constructor/items/RadioCardConstructor.vue

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,8 @@ defineExpose({ getData, rander })
109109
onMounted(() => {
110110
formValue.value.option_list = []
111111
formValue.value.default_value = ''
112+
113+
addOption()
112114
})
113115
</script>
114116
<style lang="scss" scoped>

ui/src/components/dynamics-form/constructor/items/RadioRowConstructor.vue

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,8 @@ defineExpose({ getData, rander })
110110
onMounted(() => {
111111
formValue.value.option_list = []
112112
formValue.value.default_value = ''
113+
114+
addOption()
113115
})
114116
</script>
115117
<style lang="scss" scoped>

ui/src/components/dynamics-form/constructor/items/SingleSelectConstructor.vue

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,8 @@ defineExpose({ getData, rander })
108108
onMounted(() => {
109109
formValue.value.option_list = []
110110
formValue.value.default_value = ''
111+
112+
addOption()
111113
})
112114
</script>
113115
<style lang="scss" scoped>

0 commit comments

Comments
 (0)