code-monkey-ui
Version:
A Component Library for Vue 3
45 lines (42 loc) • 1.12 kB
JavaScript
import { computed } from 'vue';
import { NOOP } from '@vue/shared';
import '../../../utils/index.mjs';
import { buildProps, definePropType } from '../../../utils/vue/props/runtime.mjs';
const DSH_CASCADER_ALL_NODE_LABEL = "\u5168\u9009";
const DSH_CASCADER_ALL_NODE_VALUE = "cascader-all";
const DshCommonProps = buildProps({
modelValue: {
type: definePropType([Number, String, Array])
},
options: {
type: definePropType(Array),
default: () => []
},
props: {
type: definePropType(Object),
default: () => ({})
}
});
const DshDefaultProps = {
expandTrigger: "click",
multiple: false,
checkStrictly: false,
emitPath: true,
lazy: false,
lazyLoad: NOOP,
value: "value",
label: "label",
children: "children",
leaf: "leaf",
disabled: "disabled",
hoverThreshold: 500,
maxCollapseTags: 1
};
const DshUseCascaderConfig = (props) => {
return computed(() => ({
...DshDefaultProps,
...props.props
}));
};
export { DSH_CASCADER_ALL_NODE_LABEL, DSH_CASCADER_ALL_NODE_VALUE, DshCommonProps, DshDefaultProps, DshUseCascaderConfig };
//# sourceMappingURL=config.mjs.map