docs(DatetimePicker): fix docs code (#11750)

This commit is contained in:
Gavin 2023-04-13 17:39:25 +08:00 committed by GitHub
parent c88f457e84
commit f56634c4a5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 10 deletions

View File

@ -63,7 +63,7 @@ import { ref } from 'vue';
export default {
setup() {
const currentDate = ref(new Date());
const currentDate = ref(new Date(2020, 0, 1));
const formatter = (type, val) => {
if (type === 'year') {
@ -103,7 +103,7 @@ import { ref } from 'vue';
export default {
setup() {
const currentDate = ref(new Date());
const currentDate = ref(new Date(2020, 0, 1));
const formatter = (type, val) => {
if (type === 'month') {
@ -165,7 +165,7 @@ import { ref } from 'vue';
export default {
setup() {
const currentDate = ref(new Date());
const currentDate = ref(new Date(2020, 0, 1));
return {
minDate: new Date(2020, 0, 1),
maxDate: new Date(2025, 10, 1),
@ -192,7 +192,7 @@ import { ref } from 'vue';
export default {
setup() {
const currentDate = ref(new Date());
const currentDate = ref(new Date(2020, 0, 1));
return {
minDate: new Date(2020, 0, 1),
maxDate: new Date(2025, 10, 1),
@ -252,7 +252,7 @@ import { ref } from 'vue';
export default {
setup() {
const currentDate = ref(new Date());
const currentDate = ref(new Date(2020, 0, 1));
const formatter = (type, val) => {
if (type === 'year') {

View File

@ -67,7 +67,7 @@ import { ref } from 'vue';
export default {
setup() {
const currentDate = ref(new Date());
const currentDate = ref(new Date(2020, 0, 1));
const formatter = (type, val) => {
if (type === 'year') {
@ -109,7 +109,7 @@ import { ref } from 'vue';
export default {
setup() {
const currentDate = ref(new Date());
const currentDate = ref(new Date(2020, 0, 1));
const formatter = (type, val) => {
if (type === 'month') {
@ -175,7 +175,7 @@ import { ref } from 'vue';
export default {
setup() {
const currentDate = ref(new Date());
const currentDate = ref(new Date(2020, 0, 1));
return {
minDate: new Date(2020, 0, 1),
maxDate: new Date(2025, 10, 1),
@ -204,7 +204,7 @@ import { ref } from 'vue';
export default {
setup() {
const currentDate = ref(new Date());
const currentDate = ref(new Date(2020, 0, 1));
return {
minDate: new Date(2020, 0, 1),
maxDate: new Date(2025, 10, 1),
@ -261,7 +261,7 @@ import { ref } from 'vue';
export default {
setup() {
const currentDate = ref(new Date());
const currentDate = ref(new Date(2020, 0, 1));
const formatter = (type, val) => {
if (type === 'year') {