import{_ as e,b as a,d as l,p as o,w as t,i as s,o as n,f as d,k as u,t as c,e as p,y as i,F as r,C as f}from"./index-2PZN6pGH.js";import{_}from"./uni-card.CpdfOoXJ.js";import{_ as m}from"./uni-data-picker.kaSeVw8a.js";import{_ as h}from"./uni-section.BISPxi99.js";import"./uni-load-more.BMea_02e.js";const k=e({data:()=>({nation:"汉族",address:"110101",classValue:"1-2",classDataTree:[{text:"一年级",value:"1-0",children:[{text:"1.1班",value:"1-1"},{text:"1.2班",value:"1-2"}]},{text:"二年级",value:"2-0",children:[{text:"2.1班",value:"2-1"},{text:"2.2班",value:"2-2"}]},{text:"三年级",value:"3-0",disable:!0}]}),methods:{onnodeclick(e){console.log("nodeclick",e)},onpopupopened(e){console.log("onpopupopened")},onpopupclosed(e){console.log("onpopupclosed")},onchange(e){console.log("onchange",e.detail.value)}}},[["render",function(e,k,x,V,g,v){const y=f,b=a(l("uni-card"),_),j=a(l("uni-data-picker"),m),P=s,w=a(l("uni-section"),h);return n(),o(P,{class:"container"},{default:t((()=>[d(b,{"is-full":"","is-shadow":!1},{default:t((()=>[d(y,{class:"uni-h6"},{default:t((()=>[u("标签组件多用于商品分类、重点内容显示等场景。")])),_:1})])),_:1}),d(w,{title:"本地数据",type:"line"},{default:t((()=>[d(P,{class:"uni-px-5 uni-pb-5"},{default:t((()=>[d(j,{placeholder:"请选择班级","popup-title":"请选择",localdata:g.classDataTree,modelValue:g.classValue,"onUpdate:modelValue":k[0]||(k[0]=e=>g.classValue=e),onChange:v.onchange,onNodeclick:v.onnodeclick,onPopupopened:v.onpopupopened,onPopupclosed:v.onpopupclosed},null,8,["localdata","modelValue","onChange","onNodeclick","onPopupopened","onPopupclosed"])])),_:1})])),_:1}),d(w,{title:"自定义插槽",type:"line"},{default:t((()=>[d(P,{class:"uni-px-5 uni-pb-5"},{default:t((()=>[d(j,{title:"请选择",localdata:g.classDataTree,modelValue:g.classValue,"onUpdate:modelValue":k[1]||(k[1]=e=>g.classValue=e)},{default:t((({data:e,error:a,options:l})=>[d(P,{class:"input-border"},{default:t((()=>[a?(n(),o(P,{key:0,class:"error"},{default:t((()=>[d(y,null,{default:t((()=>[u(c(a),1)])),_:2},1024)])),_:2},1024)):e.length?(n(),o(P,{key:1,class:"input-selected"},{default:t((()=>[(n(!0),p(r,null,i(e,((e,a)=>(n(),o(P,{key:a,class:"selected-item"},{default:t((()=>[d(y,null,{default:t((()=>[u(c(e.text),1)])),_:2},1024)])),_:2},1024)))),128))])),_:2},1024)):(n(),o(P,{key:2},{default:t((()=>[d(y,null,{default:t((()=>[u("请选择")])),_:1})])),_:1}))])),_:2},1024)])),_:1},8,["localdata","modelValue"])])),_:1})])),_:1})])),_:1})}],["__scopeId","data-v-975de111"]]);export{k as default};
