You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 lines
2.1 KiB
1 lines
2.1 KiB
{"ast":null,"code":"import { defineComponent, h } from 'vue';\nimport { useNamespace } from '../../../hooks/use-namespace/index.mjs';\nvar NodeContent = defineComponent({\n name: \"NodeContent\",\n setup() {\n const ns = useNamespace(\"cascader-node\");\n return {\n ns\n };\n },\n render() {\n const {\n ns\n } = this;\n const {\n node,\n panel\n } = this.$parent;\n const {\n data,\n label\n } = node;\n const {\n renderLabelFn\n } = panel;\n return h(\"span\", {\n class: ns.e(\"label\")\n }, renderLabelFn ? renderLabelFn({\n node,\n data\n }) : label);\n }\n});\nexport { NodeContent as default };","map":{"version":3,"names":["NodeContent","defineComponent","name","setup","ns","useNamespace","render","node","panel","$parent","data","label","renderLabelFn","h","class","e"],"sources":["../../../../../../packages/components/cascader-panel/src/node-content.ts"],"sourcesContent":["// @ts-nocheck\nimport { defineComponent, h } from 'vue'\nimport { useNamespace } from '@element-plus/hooks'\nexport default defineComponent({\n name: 'NodeContent',\n setup() {\n const ns = useNamespace('cascader-node')\n return {\n ns,\n }\n },\n render() {\n const { ns } = this\n const { node, panel } = this.$parent\n const { data, label } = node\n const { renderLabelFn } = panel\n return h(\n 'span',\n { class: ns.e('label') },\n renderLabelFn ? renderLabelFn({ node, data }) : label\n )\n },\n})\n"],"mappings":";;AAEA,IAAAA,WAAA,GAAeC,eAAe,CAAC;EAC7BC,IAAI,EAAE,aAAa;EACnBC,KAAKA,CAAA,EAAG;IACN,MAAMC,EAAE,GAAGC,YAAY,CAAC,eAAe,CAAC;IACxC,OAAO;MACLD;IACN,CAAK;EACL,CAAG;EACDE,MAAMA,CAAA,EAAG;IACP,MAAM;MAAEF;IAAE,CAAE,GAAG,IAAI;IACnB,MAAM;MAAEG,IAAI;MAAEC;IAAK,CAAE,GAAG,IAAI,CAACC,OAAO;IACpC,MAAM;MAAEC,IAAI;MAAEC;IAAK,CAAE,GAAGJ,IAAI;IAC5B,MAAM;MAAEK;IAAa,CAAE,GAAGJ,KAAK;IAC/B,OAAOK,CAAC,CAAC,MAAM,EAAE;MAAEC,KAAK,EAAEV,EAAE,CAACW,CAAC,CAAC,OAAO;IAAC,CAAE,EAAEH,aAAa,GAAGA,aAAa,CAAC;MAAEL,IAAI;MAAEG;IAAI,CAAE,CAAC,GAAGC,KAAK,CAAC;EACrG;AACA,CAAC,CAAC","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]}
|