|
@@ -3,13 +3,16 @@
|
|
|
v-model="modelValues"
|
|
|
:clearable="clearable"
|
|
|
:disabled="disabled"
|
|
|
+ :end-placeholder="endPlaceholder"
|
|
|
:format="format"
|
|
|
:keyname="keyname"
|
|
|
:placeholder="placeholder"
|
|
|
+ :range-separator="rangeSeparator"
|
|
|
:readonly="readonly"
|
|
|
+ :start-placeholder="startPlaceholder"
|
|
|
+ :type="type"
|
|
|
:value-format="valueFormat"
|
|
|
style="width: 100%;height: 100%;"
|
|
|
- type="date"
|
|
|
@change="timePickerChange"
|
|
|
@keydown.shift.up="keyupShiftUp"
|
|
|
@keydown.shift.down="keyupShiftDown"
|
|
@@ -32,6 +35,22 @@ const props = defineProps({
|
|
|
modelValue: {
|
|
|
type: [Date, String, Number, Array]
|
|
|
},
|
|
|
+ type: {
|
|
|
+ type: String,
|
|
|
+ default: 'date'
|
|
|
+ },
|
|
|
+ rangeSeparator: {
|
|
|
+ type: String,
|
|
|
+ default: ''
|
|
|
+ },
|
|
|
+ startPlaceholder: {
|
|
|
+ type: String,
|
|
|
+ default: ''
|
|
|
+ },
|
|
|
+ endPlaceholder: {
|
|
|
+ type: String,
|
|
|
+ default: ''
|
|
|
+ },
|
|
|
format: {
|
|
|
type: String,
|
|
|
default: 'YYYY:MM:DD'
|