Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Hooke
/
custom_form
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-04-07 16:43:13 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
d786069347bf0540bbf63c605966c4a97b404f82
d7860693
1 parent
9e0b8cbd
fix 显示默认值
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
src/components/DatePickerField/index.vue
src/components/DatePickerField/index.vue
View file @
d786069
<!--
* @Date: 2022-08-31 11:45:30
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2023-04-07 1
5:51:31
* @LastEditTime: 2023-04-07 1
6:41:59
* @FilePath: /custom_form/src/components/DatePickerField/index.vue
* @Description: 日期选择组件
-->
...
...
@@ -50,7 +50,7 @@ const HideShow = computed(() => {
})
const showPicker = ref(false);
const popupDesc = ref('
请选择');
const popupDesc = ref('');
let minDate = new Date(2020, 0, 1);
let maxDate = new Date(2035, 10, 1);
const currentDate = ref('');
...
...
@@ -77,6 +77,7 @@ const date_format = props.item.component_props.data_dateformat; // YYYY-MM=å¹´æœ
onMounted(() => {
// 根据默认值时间调整显示
popupDesc.value = props.item.component_props.default ? props.item.component_props.default : '请选择';
currentDate.value = new Date(props.item.component_props.default);
switch (date_format) {
case "YYYY-MM":
...
...
Please
register
or
login
to post a comment