| 1 |
- System.register(["./mobile-legacy.d4517c41.js","./index-legacy.5dec0910.js","./vendor-legacy.44d419bd.js"],(function(e){"use strict";var t,l,n,i,s,o,c,d;return{setters:[function(e){t=e.c},function(e){l=e._},function(e){n=e.m,i=e.r,s=e.e,o=e.j,c=e.g,d=e.o}],execute:function(){const{createDemo:a}=t("picker"),r=a({props:{},setup(){const e=["南京市","无锡市","海北藏族自治区","北京市","连云港市","浙江市","江苏市"],t=[{values:["周一","周二","周三","周四","周五"],defaultIndex:2},{values:["上午","下午","晚上"],defaultIndex:1}],l=[{text:"浙江",children:[{text:"杭州",children:[{text:"西湖区"},{text:"余杭区"}]},{text:"温州",children:[{text:"鹿城区"},{text:"瓯海区"}]}]},{text:"福建",children:[{text:"福州",children:[{text:"鼓楼区"},{text:"台江区"}]},{text:"厦门",children:[{text:"思明区"},{text:"海沧区"}]}]}],i=n(!1),s=n(!1),o=n(!1),c=[i,s,o],d=n(e[0]),a=n(`${t[0].values[t[0].defaultIndex]} ${t[1].values[t[1].defaultIndex]}`),r=n(`${l[0].text}\n ${l[0].children[0].text}\n ${l[0].children[0].children[0].text}`);return{listData1:e,listData2:t,listData3:l,show:i,show2:s,show3:o,desc:d,desc2:a,desc3:r,open:e=>{c[e-1].value=!0},confirm:e=>{d.value=e},confirm2:e=>{a.value=e.join(" ")},confirm3:e=>{r.value=e.join(" ")}}}}),u={class:"demo"},f=c("h2",null,"基础用法",-1),x=c("h2",null,"多列样式",-1),h=c("h2",null,"多级联动",-1);e("default",l(r,[["render",function(e,t,l,n,c,a){const r=i("nut-cell"),v=i("nut-picker");return d(),s("div",u,[f,o(r,{title:"请选择城市",desc:e.desc,onClick:t[0]||(t[0]=t=>e.open(1))},null,8,["desc"]),x,o(r,{title:"请选择时间",desc:e.desc2,onClick:t[1]||(t[1]=t=>e.open(2))},null,8,["desc"]),h,o(r,{title:"请选择地址",desc:e.desc3,onClick:t[2]||(t[2]=t=>e.open(3))},null,8,["desc"]),o(v,{visible:e.show,"onUpdate:visible":t[3]||(t[3]=t=>e.show=t),"list-data":e.listData1,title:"城市选择",onConfirm:e.confirm,onClose:e.close},null,8,["visible","list-data","onConfirm","onClose"]),o(v,{visible:e.show2,"onUpdate:visible":t[4]||(t[4]=t=>e.show2=t),"list-data":e.listData2,title:"多列选择",onConfirm:e.confirm2,onClose:e.close},null,8,["visible","list-data","onConfirm","onClose"]),o(v,{visible:e.show3,"onUpdate:visible":t[5]||(t[5]=t=>e.show3=t),"list-data":e.listData3,title:"地址选择",onConfirm:e.confirm3},null,8,["visible","list-data","onConfirm"])])}]]))}}}));
|