| 1 |
- System.register(["./mobile-legacy.a4ce02da.js","./index-legacy.5c289299.js","./vendor-legacy.44d419bd.js"],(function(e){"use strict";var t,i,s,l,n,c,o,a,v,d,f,m;return{setters:[function(e){t=e.c},function(e){i=e._},function(e){s=e.m,l=e.b,n=e.a,c=e.r,o=e.e,a=e.j,v=e.k,d=e.o,f=e.g,m=e.t}],execute:function(){const{createDemo:u}=t("fixednav"),b=u({props:{},setup(){const e=s(!1),t=s(!1),i=s(!1),c=s(!1);l((()=>{setTimeout((()=>{i.value=!0}),1e3)}));const o=n([{id:1,text:"首页",icon:"https://img11.360buyimg.com/imagetools/jfs/t1/117646/2/11112/1297/5ef83e95E81d77f05/daf8e3b1c81e3c98.png"},{id:2,text:"分类",icon:"https://img12.360buyimg.com/imagetools/jfs/t1/119490/8/9568/1798/5ef83e95E968c69a6/dd029326f7d5042e.png"},{id:3,text:"购物车",num:2,icon:"https://img14.360buyimg.com/imagetools/jfs/t1/130725/4/3157/1704/5ef83e95Eb976644f/b36c6cfc1cc1a99d.png"},{id:4,text:"我的",icon:"https://img12.360buyimg.com/imagetools/jfs/t1/147573/29/1603/1721/5ef83e94E1393a678/5ddf1695ec989373.png"}]);return{visible:e,visible1:t,visible2:i,myActive:c,navList:o,selected:e=>{console.log(e)}}}}),p={class:"demo"},g=f("ul",{class:"nut-fixednav__list"},[f("li",{class:"nut-fixednav__list-item"},"1"),f("li",{class:"nut-fixednav__list-item"},"2"),f("li",{class:"nut-fixednav__list-item"},"3"),f("li",{class:"nut-fixednav__list-item"},"4"),f("li",{class:"nut-fixednav__list-item"},"5")],-1),x={class:"text"};e("default",i(b,[["render",function(e,t,i,s,l,n){const u=c("nut-fixednav"),b=c("nut-icon");return d(),o("div",p,[a(u,{"active-text":"基础用法",position:{top:"70px"},visible:e.visible,"onUpdate:visible":t[0]||(t[0]=t=>e.visible=t),"nav-list":e.navList,onSelected:e.selected},null,8,["visible","nav-list","onSelected"]),a(u,{type:"left",position:{top:"140px"},visible:e.visible1,"onUpdate:visible":t[1]||(t[1]=t=>e.visible1=t),"active-text":"左侧收起","un-active-text":"左侧展开","nav-list":e.navList,onSelected:e.selected},null,8,["visible","nav-list","onSelected"]),a(u,{position:{top:"210px"},overlay:!1,visible:e.visible2,"onUpdate:visible":t[2]||(t[2]=t=>e.visible2=t),"nav-list":e.navList,onSelected:e.selected},null,8,["visible","nav-list","onSelected"]),a(u,{position:{top:"280px"},type:"left",visible:e.myActive,"onUpdate:visible":t[3]||(t[3]=t=>e.myActive=t),onSelected:e.selected},{list:v((()=>[g])),btn:v((()=>[a(b,{name:"retweet",color:"#fff"}),f("span",x,m(e.myActive?"自定义开":"自定义关"),1)])),_:1},8,["visible","onSelected"])])}]]))}}}));
|