element-plus
Version:
A Component Library for Vue 3
24 lines (21 loc) • 640 B
JavaScript
import { defineComponent, h } from 'vue';
import '../../../hooks/index.mjs';
import { useNamespace } from '../../../hooks/use-namespace/index.mjs';
var NodeContent = defineComponent({
name: "NodeContent",
setup() {
const ns = useNamespace("cascader-node");
return {
ns
};
},
render() {
const { ns } = this;
const { node, panel } = this.$parent;
const { data, label } = node;
const { renderLabelFn } = panel;
return h("span", { class: ns.e("label") }, renderLabelFn ? renderLabelFn({ node, data }) : label);
}
});
export { NodeContent as default };
//# sourceMappingURL=node-content.mjs.map