Commit c4cfc5c5 authored by Jenny's avatar Jenny

fix: 日期组件修改

parent 8035ef41
......@@ -5,7 +5,6 @@
<u-input
style="width:100%"
placeholder="请输入日期"
input-align="center"
v-model="pickerValue"
type="select"
:select-open="show"
......@@ -57,7 +56,9 @@
};
},
mounted() {
this.pickerValue = this.dateTimeFormat(this.elementInfo.option.dateTime.date)
let { date } = this.elementInfo.option.dateTime
if(!date) date = new Date()
this.pickerValue = this.dateTimeFormat(date)
},
methods: {
timeConfirm(e){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment