更新页面
This commit is contained in:
@ -1,6 +1,6 @@
|
||||
<template>
|
||||
<div class="form-item-box" :style="{ width: width }">
|
||||
<el-date-picker style="width:100%" v-model="modelValue" type="date" v-bind="$attrs" @change="onInput" :placeholder="placeholder" value-format="YYYY-MM-DD"/>
|
||||
<el-date-picker style="width:100%" v-model="modelValue" type="date" v-bind="$attrs" @change="onInput" :placeholder="placeholder" :value-format="props.format"/>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@ -13,6 +13,10 @@ const props = defineProps({
|
||||
default: "请填写",
|
||||
type: String
|
||||
},
|
||||
format:{
|
||||
default: "YYYY-MM-DD",
|
||||
type: String
|
||||
},
|
||||
modelValue: {
|
||||
default: "",
|
||||
type: String
|
||||
|
Reference in New Issue
Block a user