You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
94 lines
1.7 KiB
94 lines
1.7 KiB
11 months ago
|
import { isValidComponentSize } from '../../../utils/validators.mjs';
|
||
|
import { CircleClose } from '@element-plus/icons-vue';
|
||
|
|
||
|
const SelectProps = {
|
||
|
allowCreate: Boolean,
|
||
|
autocomplete: {
|
||
|
type: String,
|
||
|
default: "none"
|
||
|
},
|
||
|
automaticDropdown: Boolean,
|
||
|
clearable: Boolean,
|
||
|
clearIcon: {
|
||
|
type: [String, Object],
|
||
|
default: CircleClose
|
||
|
},
|
||
|
collapseTags: Boolean,
|
||
|
defaultFirstOption: Boolean,
|
||
|
disabled: Boolean,
|
||
|
estimatedOptionHeight: {
|
||
|
type: Number,
|
||
|
default: void 0
|
||
|
},
|
||
|
filterable: Boolean,
|
||
|
filterMethod: Function,
|
||
|
height: {
|
||
|
type: Number,
|
||
|
default: 170
|
||
|
},
|
||
|
itemHeight: {
|
||
|
type: Number,
|
||
|
default: 34
|
||
|
},
|
||
|
id: String,
|
||
|
loading: Boolean,
|
||
|
loadingText: String,
|
||
|
label: String,
|
||
|
modelValue: [Array, String, Number, Boolean, Object],
|
||
|
multiple: Boolean,
|
||
|
multipleLimit: {
|
||
|
type: Number,
|
||
|
default: 0
|
||
|
},
|
||
|
name: String,
|
||
|
noDataText: String,
|
||
|
noMatchText: String,
|
||
|
remoteMethod: Function,
|
||
|
reserveKeyword: Boolean,
|
||
|
options: {
|
||
|
type: Array,
|
||
|
required: true
|
||
|
},
|
||
|
placeholder: {
|
||
|
type: String
|
||
|
},
|
||
|
popperAppendToBody: {
|
||
|
type: Boolean,
|
||
|
default: true
|
||
|
},
|
||
|
popperClass: {
|
||
|
type: String,
|
||
|
default: ""
|
||
|
},
|
||
|
popperOptions: {
|
||
|
type: Object,
|
||
|
default: () => ({})
|
||
|
},
|
||
|
remote: Boolean,
|
||
|
size: {
|
||
|
type: String,
|
||
|
validator: isValidComponentSize
|
||
|
},
|
||
|
valueKey: {
|
||
|
type: String,
|
||
|
default: "value"
|
||
|
},
|
||
|
scrollbarAlwaysOn: {
|
||
|
type: Boolean,
|
||
|
default: false
|
||
|
}
|
||
|
};
|
||
|
const OptionProps = {
|
||
|
data: Array,
|
||
|
disabled: Boolean,
|
||
|
hovering: Boolean,
|
||
|
item: Object,
|
||
|
index: Number,
|
||
|
style: Object,
|
||
|
selected: Boolean,
|
||
|
created: Boolean
|
||
|
};
|
||
|
|
||
|
export { OptionProps, SelectProps };
|
||
|
//# sourceMappingURL=defaults.mjs.map
|