优化
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
const input = {
|
||||
props: ['modelValue', 'disabled', 'type', 'format', 'valueFormat'],
|
||||
emits: ['update:modelValue', 'change'],
|
||||
template: `<input data-temporal-picker :data-picker-kind="type || 'time'" :value="modelValue" :disabled="disabled" @input="$emit('update:modelValue', $event.target.value); $emit('change', $event.target.value)">`,
|
||||
}
|
||||
|
||||
export const DatePickerStub = { name: 'ElDatePicker', ...input }
|
||||
export const TimePickerStub = { name: 'ElTimePicker', ...input }
|
||||
Reference in New Issue
Block a user