UNPKG

ll-package

Version:

2 lines (1 loc) 1.05 kB
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),f=require("../../../../node_modules/lodash-es/omit.js"),m=require("../../../../node_modules/ant-design-vue/es/tree/index.js"),y=e.defineComponent({name:"LlTree"}),v=e.defineComponent({...y,props:{selectedKeys:{default:""},treeData:{default:()=>[]}},setup(a,{emit:u}){const r=a,o=u,n=e.ref(r.selectProps);e.watch(()=>r.selectProps,t=>{selectProps.value=t});const c=e.useAttrs(),d=e.computed(()=>f.default({...e.unref(c),...r},["selectedKeys","treeData"])),i=t=>{o("update:selectedKeys",t),o("select",t)};return(t,l)=>(e.openBlock(),e.createBlock(e.unref(m.default),e.mergeProps({selectedKeys:n.value,"onUpdate:selectedKeys":l[0]||(l[0]=s=>n.value=s),"tree-data":t.treeData},d.value,{onSelect:i}),e.createSlots({_:2},[e.renderList(Object.keys(t.$slots),s=>({name:s,fn:e.withCtx(p=>[e.renderSlot(t.$slots,s,e.normalizeProps(e.guardReactiveProps(p||{})))])}))]),1040,["selectedKeys","tree-data"]))}});exports.default=v;