[update] 时间插件增加showTime属性

This commit is contained in:
fengchenchen
2021-09-16 16:22:20 +08:00
parent 794d09e528
commit 998c7634ee
+6 -2
View File
@@ -9,7 +9,7 @@
:placeholder="placeholder" :placeholder="placeholder"
@change="handleDateChange" @change="handleDateChange"
:value="momVal" :value="momVal"
:showTime="true" :showTime="showTime"
:format="dateFormat" :format="dateFormat"
v-bind="$attrs" v-bind="$attrs"
v-on="childListeners" v-on="childListeners"
@@ -24,7 +24,7 @@
:placeholder="placeholder" :placeholder="placeholder"
@change="handleDateChange" @change="handleDateChange"
:value="momVal" :value="momVal"
:showTime="false" :showTime="showTime"
:format="dateFormat" :format="dateFormat"
v-bind="$attrs" v-bind="$attrs"
v-on="childListeners" v-on="childListeners"
@@ -98,6 +98,10 @@
getCalendarContainer: { getCalendarContainer: {
type: Function, type: Function,
default: (node) => node.parentNode default: (node) => node.parentNode
},
showTime:{
type: [Boolean, Object],
default: false
} }
}, },
data () { data () {