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.
45 lines
921 B
45 lines
921 B
'use strict';
|
|
|
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
|
var vue = require('vue');
|
|
var shared = require('@vue/shared');
|
|
var node = require('./node.js');
|
|
|
|
const CommonProps = {
|
|
modelValue: [Number, String, Array],
|
|
options: {
|
|
type: Array,
|
|
default: () => []
|
|
},
|
|
props: {
|
|
type: Object,
|
|
default: () => ({})
|
|
}
|
|
};
|
|
const DefaultProps = {
|
|
expandTrigger: node.ExpandTrigger.CLICK,
|
|
multiple: false,
|
|
checkStrictly: false,
|
|
emitPath: true,
|
|
lazy: false,
|
|
lazyLoad: shared.NOOP,
|
|
value: "value",
|
|
label: "label",
|
|
children: "children",
|
|
leaf: "leaf",
|
|
disabled: "disabled",
|
|
hoverThreshold: 500
|
|
};
|
|
const useCascaderConfig = (props) => {
|
|
return vue.computed(() => ({
|
|
...DefaultProps,
|
|
...props.props
|
|
}));
|
|
};
|
|
|
|
exports.CommonProps = CommonProps;
|
|
exports.DefaultProps = DefaultProps;
|
|
exports.useCascaderConfig = useCascaderConfig;
|
|
//# sourceMappingURL=config.js.map
|