UNPKG

hongluan-business-ui

Version:
24 lines (21 loc) 526 B
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