hookehuyr

fix 模拟日期选择控件最大最小日期控制

<!--
* @Date: 2022-08-31 11:45:30
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2023-02-07 14:06:11
* @LastEditTime: 2023-02-07 14:13:48
* @FilePath: /data-table/src/components/DatePickerField/index.vue
* @Description: 日期选择组件
-->
......@@ -27,6 +27,8 @@
<van-date-picker
v-model="currentDate"
title="日期选择"
:min-date="minDate"
:max-date="maxDate"
:columns-type="columns_type"
@confirm="onConfirm"
@cancel="showPicker = false"
......@@ -41,6 +43,11 @@ import dayjs from "dayjs";
const props = defineProps({
item: Object,
});
// 默认最大可选日期/最小可选日期
// const minDate = ref(new Date(2020, 0, 1))
// const maxDate = ref(new Date(2025, 5, 1))
// 隐藏显示
const HideShow = computed(() => {
return !props.item.component_props.disabled
......