Commit c4cfc5c5 authored by Jenny's avatar Jenny

fix: 日期组件修改

parent 8035ef41
...@@ -5,7 +5,6 @@ ...@@ -5,7 +5,6 @@
<u-input <u-input
style="width:100%" style="width:100%"
placeholder="请输入日期" placeholder="请输入日期"
input-align="center"
v-model="pickerValue" v-model="pickerValue"
type="select" type="select"
:select-open="show" :select-open="show"
...@@ -57,7 +56,9 @@ ...@@ -57,7 +56,9 @@
}; };
}, },
mounted() { 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: { methods: {
timeConfirm(e){ 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