Skip to content

Commit f28d009

Browse files
committed
chore: add JsonInput and Slider input types to the form dialogs
1 parent b7d6c08 commit f28d009

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

ui/src/views/tool/ToolFormDrawer.vue

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,9 @@
113113
<el-tag type="info" class="info-tag" v-if="row.input_type === 'DatePicker'"
114114
>{{ $t('dynamicsForm.input_type_list.DatePicker') }}
115115
</el-tag>
116+
<el-tag type="info" class="info-tag" v-if="row.input_type === 'JsonInput'"
117+
>{{ $t('dynamicsForm.input_type_list.JsonInput') }}
118+
</el-tag>
116119
</template>
117120
</el-table-column>
118121
<el-table-column :label="$t('common.required')">

ui/src/views/tool/component/UserFieldFormDialog.vue

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,12 +124,14 @@ const currentRow = computed(() => {
124124
const currentIndex = ref(null)
125125
const inputTypeList = ref([
126126
{ label: t('dynamicsForm.input_type_list.TextInput'), value: 'TextInputConstructor' },
127+
{ label: t('dynamicsForm.input_type_list.Slider'), value: 'SliderConstructor' },
127128
{ label: t('dynamicsForm.input_type_list.PasswordInput'), value: 'PasswordInputConstructor' },
128129
{ label: t('dynamicsForm.input_type_list.SingleSelect'), value: 'SingleSelectConstructor' },
129130
{ label: t('dynamicsForm.input_type_list.MultiSelect'), value: 'MultiSelectConstructor' },
130131
{ label: t('dynamicsForm.input_type_list.RadioCard'), value: 'RadioCardConstructor' },
131132
{ label: t('dynamicsForm.input_type_list.DatePicker'), value: 'DatePickerConstructor' },
132133
{ label: t('dynamicsForm.input_type_list.SwitchInput'), value: 'SwitchInputConstructor' },
134+
{ label: t('dynamicsForm.input_type_list.JsonInput'), value: 'JsonInputConstructor' },
133135
])
134136
135137
const dialogVisible = ref<boolean>(false)

0 commit comments

Comments
 (0)