| 1 |
- var e=Object.defineProperty,o=Object.defineProperties,l=Object.getOwnPropertyDescriptors,t=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable,s=(o,l,t)=>l in o?e(o,l,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[l]=t;"undefined"!=typeof require&&require;import{c as n}from"./mobile.d7dce49b.js";import{a as i,A as c,B as d,C as u,r as p,o as b,e as g,j as m,k as h,g as f,F as v,i as k,t as j,l as x}from"./vendor.6bc94963.js";import"./index.71ac1192.js";const{createDemo:y}=n("noticebar");var C=y({props:{},setup(){const e=i({horseLamp1:["惊喜红包免费领","爆款准点秒","买超值优惠","赢百万京豆"],horseLamp2:["惊喜红包免费领","爆款准点秒","买超值优惠","赢百万京豆"],horseLamp3:["惊喜红包免费领","爆款准点秒","买超值优惠","赢百万京豆"],text:"华为畅享9新品即将上市,活动期间0元预约可参与抽奖,赢HUAWEI WATCH等好礼,更多产品信息请持续关注!"});return n=((e,o)=>{for(var l in o||(o={}))r.call(o,l)&&s(e,l,o[l]);if(t)for(var l of t(o))a.call(o,l)&&s(e,l,o[l]);return e})({},c(e)),o(n,l({hello:()=>{console.log("hello world")},go:e=>{console.log(e)}}));var n}});d("data-v-505a29a8");const O={class:"demo"},w=f("h2",null,"默认用法",-1),A=f("h2",null,"禁用滚动",-1),D=f("h2",null,"通告栏模式--关闭模式",-1),L=x("华为畅享9新品即将上市,活动期间0元预约可参与抽奖,赢HUAWEI WATCH等好礼,更多产品信息请持续关注! "),T=f("h2",null,"通告栏模式--链接模式",-1),B=f("a",{href:"https://www.jd.com"},"京东商城",-1),H=f("h2",null,"纵向滚动",-1),I={class:"interstroll-list"},W=f("h2",null,"纵向复杂滚动动画",-1),_={class:"interstroll-list"},E=f("h2",null,"纵向自定义滚动内容",-1),P={class:"interstroll-list"},U=["data-index"],q=f("h2",null,"纵向自定义右侧图标",-1),M={class:"interstroll-list"};u(),C.render=function(e,o,l,t,r,a){const s=p("nut-noticebar"),n=p("nut-icon");return b(),g("div",O,[w,m(s,{text:e.text,background:"rgba(251, 248, 220, 1)",color:"#D9500B"},null,8,["text","background"]),A,m(s,{text:"华为畅享9新品即将上市,活动期间0元预约可参与抽奖,赢HUAWEI WATCH等好礼,更多产品信息请持续关注!",scrollable:!1,background:"rgba(251, 248, 220, 1)",color:"#D9500B"},null,8,["background"]),D,m(s,{closeMode:!0,onClick:e.hello,background:"rgba(251, 248, 220, 1)",color:"#D9500B"},{default:h((()=>[L])),_:1},8,["onClick","background"]),T,m(s,{"left-icon":"https://img13.360buyimg.com/imagetools/jfs/t1/72082/2/3006/1197/5d130c8dE1c71bcd6/e48a3b60804c9775.png",background:"rgba(251, 248, 220, 1)",color:"#D9500B"},{default:h((()=>[B])),_:1},8,["background"]),H,f("div",I,[m(s,{direction:"vertical",list:e.horseLamp1,speed:10,standTime:1e3,onClick:e.go,closeMode:!0,background:"rgba(251, 248, 220, 1)",color:"#D9500B"},null,8,["list","onClick","background"])]),W,f("div",_,[m(s,{direction:"vertical",list:e.horseLamp2,speed:10,standTime:2e3,complexAm:!0},null,8,["list"])]),E,f("div",P,[m(s,{direction:"vertical",height:50,speed:10,standTime:1e3,list:[],onClose:e.go},{default:h((()=>[(b(!0),g(v,null,k(e.horseLamp3,((e,o)=>(b(),g("div",{class:"custom-item","data-index":o,style:{height:"50px","line-height":"50px"},key:o},j(e),9,U)))),128))])),_:1},8,["onClose"])]),q,f("div",M,[m(s,{direction:"vertical",list:e.horseLamp1,speed:10,standTime:1e3},{rightIcon:h((()=>[m(n,{name:"fabulous",color:"#f0250f"})])),_:1},8,["list"])])])},C.__scopeId="data-v-505a29a8";export{C as default};
|