feat: useVbenForm 增加 TimeRangePicker(时间区间选择) 组件
This commit is contained in:
parent
a7297e62a3
commit
253c9b5248
@ -4,6 +4,7 @@
|
|||||||
|
|
||||||
- 流程表达式 follow后端更新
|
- 流程表达式 follow后端更新
|
||||||
- websocket功能(默认关闭)
|
- websocket功能(默认关闭)
|
||||||
|
- useVbenForm 增加 TimeRangePicker(时间区间选择) 组件
|
||||||
|
|
||||||
**REFACTOR**
|
**REFACTOR**
|
||||||
|
|
||||||
|
|||||||
@ -73,6 +73,9 @@ const Textarea = defineAsyncComponent(() =>
|
|||||||
const TimePicker = defineAsyncComponent(
|
const TimePicker = defineAsyncComponent(
|
||||||
() => import('ant-design-vue/es/time-picker'),
|
() => import('ant-design-vue/es/time-picker'),
|
||||||
);
|
);
|
||||||
|
const TimeRangePicker = defineAsyncComponent(() =>
|
||||||
|
import('ant-design-vue/es/time-picker').then((res) => res.TimeRangePicker),
|
||||||
|
);
|
||||||
const TreeSelect = defineAsyncComponent(
|
const TreeSelect = defineAsyncComponent(
|
||||||
() => import('ant-design-vue/es/tree-select'),
|
() => import('ant-design-vue/es/tree-select'),
|
||||||
);
|
);
|
||||||
@ -153,6 +156,7 @@ export type ComponentType =
|
|||||||
| 'Switch'
|
| 'Switch'
|
||||||
| 'Textarea'
|
| 'Textarea'
|
||||||
| 'TimePicker'
|
| 'TimePicker'
|
||||||
|
| 'TimeRangePicker'
|
||||||
| 'TreeSelect'
|
| 'TreeSelect'
|
||||||
| 'Upload'
|
| 'Upload'
|
||||||
| BaseFormComponentType;
|
| BaseFormComponentType;
|
||||||
@ -222,6 +226,7 @@ async function initComponentAdapter() {
|
|||||||
Switch,
|
Switch,
|
||||||
Textarea: withDefaultPlaceholder(Textarea, 'input'),
|
Textarea: withDefaultPlaceholder(Textarea, 'input'),
|
||||||
TimePicker,
|
TimePicker,
|
||||||
|
TimeRangePicker,
|
||||||
TreeSelect: withDefaultPlaceholder(TreeSelect, 'select'),
|
TreeSelect: withDefaultPlaceholder(TreeSelect, 'select'),
|
||||||
Upload,
|
Upload,
|
||||||
ImageUpload,
|
ImageUpload,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user