diff --git a/src/components/datePicker/datePane.vue b/src/components/datePicker/datePane.vue new file mode 100644 index 0000000..8d956f6 --- /dev/null +++ b/src/components/datePicker/datePane.vue @@ -0,0 +1,661 @@ + + + + + \ No newline at end of file diff --git a/src/components/datePicker/datePicker.vue b/src/components/datePicker/datePicker.vue new file mode 100644 index 0000000..07455cf --- /dev/null +++ b/src/components/datePicker/datePicker.vue @@ -0,0 +1,187 @@ + + + + + + \ No newline at end of file diff --git a/src/components/datePicker/dayPane.vue b/src/components/datePicker/dayPane.vue new file mode 100644 index 0000000..568ab83 --- /dev/null +++ b/src/components/datePicker/dayPane.vue @@ -0,0 +1,232 @@ + + + + + \ No newline at end of file diff --git a/src/components/datePicker/monthPane.vue b/src/components/datePicker/monthPane.vue new file mode 100644 index 0000000..0327f56 --- /dev/null +++ b/src/components/datePicker/monthPane.vue @@ -0,0 +1,81 @@ + + + + + \ No newline at end of file diff --git a/src/components/datePicker/yearPane.vue b/src/components/datePicker/yearPane.vue new file mode 100644 index 0000000..b3a4dc5 --- /dev/null +++ b/src/components/datePicker/yearPane.vue @@ -0,0 +1,83 @@ + + + + + \ No newline at end of file diff --git a/src/views/header.vue b/src/views/header.vue index f4cf8e5..83bef9a 100644 --- a/src/views/header.vue +++ b/src/views/header.vue @@ -11,7 +11,8 @@ const test = () => { // const returnHome = () => { // history.go(-1) // }; -const yearOptions = ref([{ label: '2024年', value: 2024 }, { label: '2023年', value: 2023 }, { label: '2022年', value: 2022 }, { label: '2021年', value: 2021 }, { label: '2020年', value: 2020 }]) + +/* const yearOptions = ref([{ label: '2024年', value: 2024 }, { label: '2023年', value: 2023 }, { label: '2022年', value: 2022 }, { label: '2021年', value: 2021 }, { label: '2020年', value: 2020 }]) const monthOptions = ref([ { label: '/', value: null }, { label: '1月', value: 1 }, @@ -31,7 +32,7 @@ const monthOptions = ref([ const getYear = (val: any) => { console.log(val) timeStore.setYears(val) -} +} // 获取选择的月 const getMonth = (val: any) => { console.log(val) @@ -47,6 +48,11 @@ const selectNowdays = () => { selectMonth.value.clearOption() } timeStore.setNowDays() +}*/ +// 获取选择的日期(年 || 月 ||日) +const getDate = (val:any)=>{ + console.log('获取选择的日期',val); + } @@ -65,13 +71,15 @@ const selectNowdays = () => {
+ +
+
@@ -135,7 +143,8 @@ const selectNowdays = () => { width: 400px; height: 60px; display: flex; - justify-content: space-between; + // justify-content: space-between; + flex-direction: row-reverse; font-family: 'YouSheBiaoTiHei'; font-size: 16px;