| 1 |
- System.register(["./mobile-legacy.515725d0.js","./vendor-legacy.7e726cf7.js","./index-legacy.d9f5fcb6.js"],(function(e){"use strict";var t,i,s,l,n,c,o,a,v,d,f;return{setters:[function(e){t=e.c},function(e){i=e.m,s=e.b,l=e.a,n=e.r,c=e.o,o=e.e,a=e.j,v=e.k,d=e.g,f=e.t},function(){}],execute:function(){const{createDemo:m}=t("fixednav");var u=e("default",m({props:{},setup(){const e=i(!1),t=i(!1),n=i(!1),c=i(!1);s((()=>{setTimeout((()=>{n.value=!0}),1e3)}));const o=l([{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:n,myActive:c,navList:o,selected:e=>{console.log(e)}}}}));const b={class:"demo"},p=d("ul",{class:"nut-fixednav__list"},[d("li",{class:"nut-fixednav__list-item"},"1"),d("li",{class:"nut-fixednav__list-item"},"2"),d("li",{class:"nut-fixednav__list-item"},"3"),d("li",{class:"nut-fixednav__list-item"},"4"),d("li",{class:"nut-fixednav__list-item"},"5")],-1),g={class:"text"};u.render=function(e,t,i,s,l,m){const u=n("nut-fixednav"),x=n("nut-icon");return c(),o("div",b,[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((()=>[p])),btn:v((()=>[a(x,{name:"retweet",color:"#fff"}),d("span",g,f(e.myActive?"自定义开":"自定义关"),1)])),_:1},8,["visible","onSelected"])])}}}}));
|