feat(DatetimePicker): add readonly prop (#7107)

This commit is contained in:
neverland
2020-09-05 06:59:02 +08:00
committed by GitHub
parent da193d0b71
commit 07f0b1b637
3 changed files with 4 additions and 1 deletions
+2 -1
View File
@@ -7,6 +7,7 @@ export const sharedProps = {
...pickerProps,
value: null,
filter: Function,
columnsOrder: Array,
showToolbar: {
type: Boolean,
default: true,
@@ -15,7 +16,6 @@ export const sharedProps = {
type: Function,
default: (type, value) => value,
},
columnsOrder: Array,
};
export const TimePickerMixin = {
@@ -94,6 +94,7 @@ export const TimePickerMixin = {
<Picker
ref="picker"
columns={this.columns}
readonly={this.readonly}
onChange={this.onChange}
onConfirm={this.onConfirm}
onCancel={this.onCancel}