import Vue from “vue”;
import { DatePicker } from ‘ant-design-vue’;
import ‘ant-design-vue/dist/antd.css’;
//设置中文
import moment from ‘moment’;
import ‘moment/locale/zh-cn’
moment.locale(‘zh-cn’);
Vue.use(DatePicker)

data() {
return {
startTime: null,
endTime: null
};
},

methods: {
moment,
startChange(date, dateString) {
this.startTime = dateString;
},
endChange(date, dateString) {
this.endTime = dateString;
},
}

Logo

前往低代码交流专区

更多推荐