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 renderLabelFn ? h("span", { class: ns.e("label") }, renderLabelFn({ node, data })) : h("span", { class: ns.e("label"), title: label }, label);
  }
});

export { NodeContent as default };
//# sourceMappingURL=node-content.mjs.map
