Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Hooke
/
data-table
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Authored by
hookehuyr
2023-02-07 14:27:18 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
fdef7d67125ba27e557fdc7d660dfc13a4130564
fdef7d67
1 parent
c4795243
fix 模拟日期选择控件最大最小日期控制
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletions
src/components/DatePickerField/index.vue
src/components/DatePickerField/index.vue
View file @
fdef7d6
<!--
* @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
...
...
Please
register
or
login
to post a comment