UnisKB/ui/src/components/dynamics-form/constructor/data.ts

41 lines
884 B
TypeScript
Raw Normal View History

2025-01-13 10:54:32 +00:00
import { t } from '@/locales'
2024-10-28 04:09:17 +00:00
const input_type_list = [
{
2025-01-21 07:25:21 +00:00
label: t('dynamicsForm.input_type_list.TextInput'),
2024-10-28 04:09:17 +00:00
value: 'TextInput'
},
{
2025-01-21 07:25:21 +00:00
label: t('dynamicsForm.input_type_list.Slider'),
2024-10-28 04:09:17 +00:00
value: 'Slider'
},
{
2025-01-21 07:25:21 +00:00
label: t('dynamicsForm.input_type_list.SwitchInput'),
2024-10-28 04:09:17 +00:00
value: 'SwitchInput'
},
{
2025-01-21 07:25:21 +00:00
label: t('dynamicsForm.input_type_list.SingleSelect'),
2024-10-28 04:09:17 +00:00
value: 'SingleSelect'
},
{
2025-01-21 07:25:21 +00:00
label: t('dynamicsForm.input_type_list.MultiSelect'),
value: 'MultiSelect'
},
2024-10-28 04:09:17 +00:00
{
2025-01-21 07:25:21 +00:00
label: t('dynamicsForm.input_type_list.DatePicker'),
2024-10-28 04:09:17 +00:00
value: 'DatePicker'
},
{
2025-01-21 07:25:21 +00:00
label: t('dynamicsForm.input_type_list.JsonInput'),
2024-10-28 04:09:17 +00:00
value: 'JsonInput'
},
{
2025-01-21 07:25:21 +00:00
label: t('dynamicsForm.input_type_list.RadioCard'),
value: 'RadioCard'
},
{
2025-01-21 07:25:21 +00:00
label: t('dynamicsForm.input_type_list.RadioRow'),
value: 'RadioRow'
2024-10-28 04:09:17 +00:00
}
]
export { input_type_list }