hongluan-business-ui
Version:
Hongluan Business Component Library for Vue 3
24 lines (21 loc) • 526 B
JavaScript
import { computed } from 'vue';
const useTreeProp = (treeProps) => {
const label = computed(() => {
var _a;
return ((_a = treeProps.props) == null ? void 0 : _a.label) || "label";
});
const key = computed(() => {
return treeProps.nodeKey || "id";
});
const disabled = computed(() => {
var _a;
return ((_a = treeProps.props) == null ? void 0 : _a.disabled) || "disabled";
});
return {
key,
label,
disabled
};
};
export { useTreeProp };
//# sourceMappingURL=useTreeProp.mjs.map