Commit 079da0be038ddaa07e24b4f6ff729cfd45b31287
1 parent
3729315d
perf(src/packages): 优化信息控件下的日期选择器新增日期时间范围
Showing
2 changed files
with
6 additions
and
1 deletions
... | ... | @@ -7,7 +7,7 @@ |
7 | 7 | <collapse-item name="时间配置" :expanded="true"> |
8 | 8 | <setting-item-box name="快捷选择"> |
9 | 9 | <setting-item name="日期"> |
10 | - <n-select @change="shortCutSelect" v-model:value="optionData.shortcut" size="small" :options="intervalOption" /> | |
10 | + <n-select clearable @change="shortCutSelect" v-model:value="optionData.shortcut" size="small" :options="intervalOption" /> | |
11 | 11 | </setting-item> |
12 | 12 | </setting-item-box> |
13 | 13 | <setting-item-box name="基础"> |
... | ... | @@ -108,6 +108,10 @@ const datePickerTypeOptions = [ |
108 | 108 | value: ComponentInteractEventEnum.DATE_RANGE |
109 | 109 | }, |
110 | 110 | { |
111 | + label: '日期时间范围', | |
112 | + value: ComponentInteractEventEnum.DATE_TIME_RANGE | |
113 | + }, | |
114 | + { | |
111 | 115 | label: '月份', |
112 | 116 | value: ComponentInteractEventEnum.MONTH |
113 | 117 | }, | ... | ... |
... | ... | @@ -84,6 +84,7 @@ export const interactActions: InteractActionsType[] = [ |
84 | 84 | [ComponentInteractEventEnum.DATE]: time, |
85 | 85 | [ComponentInteractEventEnum.DATE_TIME]: time, |
86 | 86 | [ComponentInteractEventEnum.DATE_RANGE]: timeRange, |
87 | + [ComponentInteractEventEnum.DATE_TIME_RANGE]: timeRange, | |
87 | 88 | [ComponentInteractEventEnum.MONTH]: time, |
88 | 89 | [ComponentInteractEventEnum.MONTH_RANGE]: timeRange, |
89 | 90 | [ComponentInteractEventEnum.QUARTER]: time, | ... | ... |