fix:日期选择器属性弃用修复
This commit is contained in:
@@ -81,17 +81,13 @@ let neCascaderOptions = ref<Record<string, any>[]>([]);
|
|||||||
let queryRangePicker = ref<[string, string]>(['', '']);
|
let queryRangePicker = ref<[string, string]>(['', '']);
|
||||||
|
|
||||||
/**时间选择 */
|
/**时间选择 */
|
||||||
let ranges = ref<Record<string, [Dayjs, Dayjs]>>({
|
const ranges = ref([
|
||||||
[t('views.perfManage.customTarget.sixHoursAgo')]: [
|
{label:t('views.perfManage.customTarget.sixHoursAgo'),value:[dayjs().subtract(6, 'hours'),
|
||||||
dayjs().subtract(6, 'hours'),
|
dayjs(),]},
|
||||||
dayjs(),
|
{label:t('views.perfManage.customTarget.threeHoursAgo'),value:[dayjs().subtract(3, 'hours'),
|
||||||
],
|
dayjs(),]},
|
||||||
[t('views.perfManage.customTarget.threeHoursAgo')]: [
|
{label:t('views.monitor.monitor.today'),value:[dayjs().startOf('day'), dayjs()]},
|
||||||
dayjs().subtract(3, 'hours'),
|
])
|
||||||
dayjs(),
|
|
||||||
],
|
|
||||||
[t('views.monitor.monitor.today')]: [dayjs().startOf('day'), dayjs()],
|
|
||||||
});
|
|
||||||
|
|
||||||
/**表格字段列 */
|
/**表格字段列 */
|
||||||
let tableColumns = ref<any[]>([]);
|
let tableColumns = ref<any[]>([]);
|
||||||
@@ -794,7 +790,7 @@ onBeforeUnmount(() => {
|
|||||||
:show-time="{ format: 'HH:mm:ss' }"
|
:show-time="{ format: 'HH:mm:ss' }"
|
||||||
format="YYYY-MM-DD HH:mm:ss"
|
format="YYYY-MM-DD HH:mm:ss"
|
||||||
value-format="x"
|
value-format="x"
|
||||||
:ranges="ranges"
|
:presets="ranges"
|
||||||
style="width: 100%"
|
style="width: 100%"
|
||||||
></a-range-picker>
|
></a-range-picker>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
|
|||||||
Reference in New Issue
Block a user