!function(t){function e(e){for(var o,s,l=e[0],r=e[1],c=e[2],d=0,p=[];d0&&document.getSelection().getRangeAt(0);e.select(),document.execCommand("copy"),document.body.removeChild(e),n&&(document.getSelection().removeAllRanges(),document.getSelection().addRange(n))}(n+=" />"),this.$notify({type:"success",duration:1500,className:"demo-icon-notify",message:this.t("copied")+":"+n})}}},de=(n(181),Object(s.a)(ue,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("demo-section",[n("van-tabs",{attrs:{sticky:""},model:{value:t.tab,callback:function(e){t.tab=e},expression:"tab"}},[n("van-tab",{attrs:{title:t.t("demo")}},[n("demo-block",{attrs:{title:t.t("basicUsage")}},[n("van-col",{attrs:{span:"6"},on:{click:function(e){return t.copy(t.demoIcon)}}},[n("van-icon",{attrs:{name:t.demoIcon}})],1),n("van-col",{attrs:{span:"6"},on:{click:function(e){return t.copy(t.demoImage)}}},[n("van-icon",{attrs:{name:t.demoImage}})],1)],1),n("demo-block",{attrs:{title:t.t("badge")}},[n("van-col",{attrs:{span:"6"},on:{click:function(e){return t.copy(t.demoIcon,{dot:!0})}}},[n("van-icon",{attrs:{name:t.demoIcon,dot:""}})],1),n("van-col",{attrs:{span:"6"},on:{click:function(e){return t.copy(t.demoIcon,{badge:"9"})}}},[n("van-icon",{attrs:{name:t.demoIcon,badge:"9"}})],1),n("van-col",{attrs:{span:"6"},on:{click:function(e){return t.copy(t.demoIcon,{badge:"99+"})}}},[n("van-icon",{attrs:{name:t.demoIcon,badge:"99+"}})],1)],1),n("demo-block",{attrs:{title:t.t("color")}},[n("van-col",{attrs:{span:"6"},on:{click:function(e){return t.copy(t.demoIcon,{color:"#1989fa"})}}},[n("van-icon",{attrs:{name:"cart-o",color:"#1989fa"}})],1),n("van-col",{attrs:{span:"6"},on:{click:function(e){return t.copy(t.demoIcon,{color:t.RED})}}},[n("van-icon",{attrs:{name:"fire-o",color:t.RED}})],1)],1),n("demo-block",{attrs:{title:t.t("size")}},[n("van-col",{attrs:{span:"6"},on:{click:function(e){return t.copy(t.demoIcon,{size:"40"})}}},[n("van-icon",{attrs:{name:t.demoIcon,size:"40"}})],1),n("van-col",{attrs:{span:"6"},on:{click:function(e){return t.copy(t.demoIcon,{size:"3rem"})}}},[n("van-icon",{attrs:{name:t.demoIcon,size:"3rem"}})],1)],1)],1),n("van-tab",{attrs:{title:t.t("basic")}},t._l(t.icons.basic,(function(e){return n("van-col",{key:e,attrs:{span:"6"},on:{click:function(n){return t.copy(e)}}},[n("van-icon",{attrs:{name:e}}),n("span",[t._v(t._s(e))])],1)})),1),n("van-tab",{attrs:{title:t.t("outline")}},t._l(t.icons.outline,(function(e){return n("van-col",{key:e,attrs:{span:"6"},on:{click:function(n){return t.copy(e)}}},[n("van-icon",{attrs:{name:e}}),n("span",[t._v(t._s(e))])],1)})),1),n("van-tab",{attrs:{title:t.t("filled")}},t._l(t.icons.filled,(function(e){return n("van-col",{key:e,attrs:{span:"6"},on:{click:function(n){return t.copy(e)}}},[n("van-icon",{attrs:{name:e}}),n("span",[t._v(t._s(e))])],1)})),1)],1)],1)}),[],!1,null,null,null).exports),pe={i18n:{"zh-CN":{fitMode:"填充模式",round:"圆形图片",loading:"加载中提示",error:"加载失败提示",defaultTip:"默认提示",customTip:"自定义提示",loadFail:"加载失败"},"en-US":{fitMode:"Fit Mode",round:"Round",loading:"Loading",error:"Error",defaultTip:"Default Tip",customTip:"Custom Tip",loadFail:"Load failed"}},data:function(){return{image:"https://img01.yzcdn.cn/vant/cat.jpeg",fits:["contain","cover","fill","none","scale-down"]}}},me=(n(183),Object(s.a)(pe,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("demo-section",[n("demo-block",{attrs:{title:t.t("basicUsage")}},[n("van-row",[n("van-image",{attrs:{width:"100",height:"100",src:t.image}})],1)],1),n("demo-block",{attrs:{title:t.t("fitMode")}},[n("van-row",{attrs:{gutter:"20"}},t._l(t.fits,(function(e){return n("van-col",{key:e,attrs:{span:"8"}},[n("van-image",{attrs:{fit:e,width:"100%",height:"27vw",src:t.image}}),n("div",{staticClass:"text"},[t._v(t._s(e))])],1)})),1)],1),n("demo-block",{attrs:{title:t.t("round")}},[n("van-row",{attrs:{gutter:"20"}},t._l(t.fits,(function(e){return n("van-col",{key:e,attrs:{span:"8"}},[n("van-image",{attrs:{round:"",fit:e,width:"100%",height:"27vw",src:t.image}}),n("div",{staticClass:"text"},[t._v(t._s(e))])],1)})),1)],1),n("demo-block",{attrs:{title:t.t("loading")}},[n("van-row",{attrs:{gutter:"20"}},[n("van-col",{attrs:{span:"8"}},[n("van-image",{attrs:{width:"100%",height:"27vw"}}),n("div",{staticClass:"text"},[t._v(t._s(t.t("defaultTip")))])],1),n("van-col",{attrs:{span:"8"}},[n("van-image",{attrs:{width:"100%",height:"27vw"},scopedSlots:t._u([{key:"loading",fn:function(){return[n("van-loading",{attrs:{type:"spinner",size:"20"}})]},proxy:!0}])}),n("div",{staticClass:"text"},[t._v(t._s(t.t("customTip")))])],1)],1)],1),n("demo-block",{attrs:{title:t.t("error")}},[n("van-row",{attrs:{gutter:"20"}},[n("van-col",{attrs:{span:"8"}},[n("van-image",{attrs:{width:"100%",height:"27vw",src:"x"}}),n("div",{staticClass:"text"},[t._v(t._s(t.t("defaultTip")))])],1),n("van-col",{attrs:{span:"8"}},[n("van-image",{attrs:{width:"100%",height:"27vw",src:"x"},scopedSlots:t._u([{key:"error",fn:function(){return[t._v(t._s(t.t("loadFail")))]},proxy:!0}])}),n("div",{staticClass:"text"},[t._v(t._s(t.t("customTip")))])],1)],1)],1)],1)}),[],!1,null,null,null).exports),he=n(28),ve=["https://img01.yzcdn.cn/vant/apple-1.jpg","https://img01.yzcdn.cn/vant/apple-2.jpg","https://img01.yzcdn.cn/vant/apple-3.jpg","https://img01.yzcdn.cn/vant/apple-4.jpg"],fe={i18n:{"zh-CN":{closed:"关闭",showClose:"展示关闭按钮",showImages:"预览图片",asyncClose:"异步关闭",closeEvent:"监听关闭事件",customConfig:"传入配置项",startPosition:"指定初始位置",componentCall:"组件调用",index:function(t){return"第"+(t+1)+"页"}},"en-US":{closed:"closed",showClose:"Show Close Icon",showImages:"Show Images",asyncClose:"Async Close",closeEvent:"Close Event",customConfig:"Custom Config",startPosition:"Set Start Position",componentCall:"Component Call",index:function(t){return"Page: "+t}}},data:function(){return{show:!1,images:ve,index:0}},methods:{onClose:function(){this.$toast(this.t("closed"))},componentCall:function(){this.show=!0},onChange:function(t){this.index=t},showImagePreview:function(t){var e=Object(he.a)(Object(V.a)({images:ve},t));t.asyncClose&&setTimeout((function(){e.close()}),2e3)}}},be=Object(s.a)(fe,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("demo-section",[n("demo-block",{attrs:{card:"",title:t.t("basicUsage")}},[n("van-cell",{attrs:{"is-link":""},on:{click:t.showImagePreview}},[t._v("\n "+t._s(t.t("showImages"))+"\n ")])],1),n("demo-block",{attrs:{card:"",title:t.t("customConfig")}},[n("van-cell",{attrs:{"is-link":""},on:{click:function(e){return t.showImagePreview({startPosition:1})}}},[t._v("\n "+t._s(t.t("startPosition"))+"\n ")]),n("van-cell",{attrs:{"is-link":""},on:{click:function(e){return t.showImagePreview({closeable:!0})}}},[t._v("\n "+t._s(t.t("showClose"))+"\n ")]),n("van-cell",{attrs:{"is-link":""},on:{click:function(e){return t.showImagePreview({onClose:t.onClose})}}},[t._v("\n "+t._s(t.t("closeEvent"))+"\n ")])],1),n("demo-block",{attrs:{card:"",title:t.t("asyncClose")}},[n("van-cell",{attrs:{"is-link":""},on:{click:function(e){return t.showImagePreview({asyncClose:!0})}}},[t._v("\n "+t._s(t.t("asyncClose"))+"\n ")])],1),n("demo-block",{attrs:{card:"",title:t.t("componentCall")}},[n("van-cell",{attrs:{"is-link":""},on:{click:t.componentCall}},[t._v("\n "+t._s(t.t("componentCall"))+"\n ")]),n("van-image-preview",{attrs:{images:t.images},on:{change:t.onChange},scopedSlots:t._u([{key:"index",fn:function(){return[t._v(t._s(t.t("index",t.index)))]},proxy:!0}]),model:{value:t.show,callback:function(e){t.show=e},expression:"show"}})],1)],1)}),[],!1,null,null,null).exports,ge={i18n:{"zh-CN":{text:"文本",customIndexList:"自定义索引列表"},"en-US":{text:"Text",customIndexList:"Custom Index List"}},data:function(){for(var t=[],e="A".charCodeAt(0),n=0;n<26;n++)t.push(String.fromCharCode(e+n));return{activeTab:0,indexList:t,customIndexList:[1,2,3,4,5,6,8,9,10]}}},ke=Object(s.a)(ge,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("demo-section",[n("van-tabs",{model:{value:t.activeTab,callback:function(e){t.activeTab=e},expression:"activeTab"}},[n("van-tab",{attrs:{title:t.t("basicUsage")}},[n("van-index-bar",t._l(t.indexList,(function(e){return n("div",{key:e},[n("van-index-anchor",{attrs:{index:e}}),n("van-cell",{attrs:{title:t.t("text")}}),n("van-cell",{attrs:{title:t.t("text")}}),n("van-cell",{attrs:{title:t.t("text")}})],1)})),0)],1),n("van-tab",{attrs:{title:t.t("customIndexList")}},[n("van-index-bar",{attrs:{"index-list":t.customIndexList}},t._l(t.customIndexList,(function(e){return n("div",{key:e},[n("van-index-anchor",{attrs:{index:e}},[t._v("\n "+t._s(t.t("title")+e)+"\n ")]),n("van-cell",{attrs:{title:t.t("text")}}),n("van-cell",{attrs:{title:t.t("text")}}),n("van-cell",{attrs:{title:t.t("text")}})],1)})),0)],1)],1)],1)}),[],!1,null,null,null).exports,xe={i18n:{"zh-CN":{title2:"背景图懒加载",title3:"懒加载模块"},"en-US":{title2:"Lazyload Background Image",title3:"Lazyload Component"}},data:function(){return{imageList:["https://img01.yzcdn.cn/vant/apple-1.jpg","https://img01.yzcdn.cn/vant/apple-2.jpg","https://img01.yzcdn.cn/vant/apple-3.jpg","https://img01.yzcdn.cn/vant/apple-4.jpg"],backgroundImageList:["https://img01.yzcdn.cn/vant/apple-5.jpg","https://img01.yzcdn.cn/vant/apple-6.jpg"],componentImageList:["https://img01.yzcdn.cn/vant/apple-8.jpg","https://img01.yzcdn.cn/vant/apple-7.jpg"]}}},ye=(n(185),Object(s.a)(xe,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("demo-section",[n("demo-block",{attrs:{title:t.t("basicUsage")}},t._l(t.imageList,(function(t){return n("img",{directives:[{name:"lazy",rawName:"v-lazy",value:t,expression:"img"}],key:t})})),0),n("demo-block",{attrs:{title:t.t("title2")}},t._l(t.backgroundImageList,(function(t){return n("div",{directives:[{name:"lazy",rawName:"v-lazy:background-image",value:t,expression:"img",arg:"background-image"}],key:t})})),0),n("demo-block",{attrs:{title:t.t("title3")}},[n("lazy-component",t._l(t.componentImageList,(function(t){return n("img",{directives:[{name:"lazy",rawName:"v-lazy",value:t,expression:"img"}],key:t})})),0)],1)],1)}),[],!1,null,null,null).exports),_e={i18n:{"zh-CN":{errorInfo:"错误提示",errorText:"请求失败,点击重新加载",pullRefresh:"下拉刷新",finishedText:"没有更多了"},"en-US":{errorInfo:"Error Info",errorText:"Request failed. Click to reload",pullRefresh:"PullRefresh",finishedText:"Finished"}},data:function(){return{list:[{items:[],refreshing:!1,loading:!1,error:!1,finished:!1},{items:[],refreshing:!1,loading:!1,error:!1,finished:!1},{items:[],refreshing:!1,loading:!1,error:!1,finished:!1}]}},methods:{onLoad:function(t){var e=this.list[t];e.loading=!0,setTimeout((function(){e.refreshing&&(e.items=[],e.refreshing=!1);for(var n=0;n<10;n++){var o=e.items.length+1;e.items.push(o<10?"0"+o:o)}e.loading=!1,e.refreshing=!1,1!==t||10!==e.items.length||e.error?e.error=!1:e.error=!0,e.items.length>=40&&(e.finished=!0)}),1e3)},onRefresh:function(t){this.list[t].finished=!1,this.onLoad(t)}}},we=(n(187),Object(s.a)(_e,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("demo-section",[n("van-tabs",[n("van-tab",{attrs:{title:t.t("basicUsage")}},[n("van-list",{attrs:{finished:t.list[0].finished,"finished-text":t.t("finishedText")},on:{load:function(e){return t.onLoad(0)}},model:{value:t.list[0].loading,callback:function(e){t.$set(t.list[0],"loading",e)},expression:"list[0].loading"}},t._l(t.list[0].items,(function(t){return n("van-cell",{key:t,attrs:{title:t}})})),1)],1),n("van-tab",{attrs:{title:t.t("errorInfo")}},[n("van-list",{attrs:{finished:t.list[1].finished,error:t.list[1].error,"error-text":t.t("errorText")},on:{"update:error":function(e){return t.$set(t.list[1],"error",e)},load:function(e){return t.onLoad(1)}},model:{value:t.list[1].loading,callback:function(e){t.$set(t.list[1],"loading",e)},expression:"list[1].loading"}},t._l(t.list[1].items,(function(t){return n("van-cell",{key:t,attrs:{title:t}})})),1)],1),n("van-tab",{attrs:{title:t.t("pullRefresh")}},[n("van-pull-refresh",{on:{refresh:function(e){return t.onRefresh(2)}},model:{value:t.list[2].refreshing,callback:function(e){t.$set(t.list[2],"refreshing",e)},expression:"list[2].refreshing"}},[n("van-list",{attrs:{finished:t.list[2].finished,"finished-text":t.t("finishedText")},on:{load:function(e){return t.onLoad(2)}},model:{value:t.list[2].loading,callback:function(e){t.$set(t.list[2],"loading",e)},expression:"list[2].loading"}},t._l(t.list[2].items,(function(t){return n("van-cell",{key:t,attrs:{title:t}})})),1)],1)],1)],1)],1)}),[],!1,null,null,null).exports),Ce={i18n:{"zh-CN":{type:"加载类型",text:"加载文案",size:"自定义大小",color:"自定义颜色",vertical:"垂直排列",textColor:"自定义文本颜色"},"en-US":{type:"Type",text:"Text",size:"Size",color:"Color",vertical:"Vertical",textColor:"Text Color"}}},Se=(n(189),Object(s.a)(Ce,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("demo-section",[n("demo-block",{attrs:{title:t.t("type")}},[n("van-loading"),n("van-loading",{attrs:{type:"spinner"}})],1),n("demo-block",{attrs:{title:t.t("color")}},[n("van-loading",{attrs:{color:"#1989fa"}}),n("van-loading",{attrs:{type:"spinner",color:"#1989fa"}})],1),n("demo-block",{attrs:{title:t.t("size")}},[n("van-loading",{attrs:{size:"24"}}),n("van-loading",{attrs:{type:"spinner",size:"24"}})],1),n("demo-block",{attrs:{title:t.t("text")}},[n("van-loading",{attrs:{size:"24px"}},[t._v("\n "+t._s(t.t("loading"))+"\n ")])],1),n("demo-block",{attrs:{title:t.t("vertical")}},[n("van-loading",{attrs:{size:"24px",vertical:""}},[t._v("\n "+t._s(t.t("loading"))+"\n ")])],1),n("demo-block",{attrs:{title:t.t("textColor")}},[n("van-loading",{attrs:{size:"24px",vertical:"",color:"#0094ff"}},[t._v("\n "+t._s(t.t("loading"))+"\n ")]),n("van-loading",{attrs:{size:"24px",vertical:"","text-color":"#0094ff"}},[t._v("\n "+t._s(t.t("loading"))+"\n ")])],1)],1)}),[],!1,null,null,null).exports),ze={i18n:{"zh-CN":{useSlot:"使用插槽"},"en-US":{useSlot:"Use Slot"}},methods:{onClickLeft:function(){this.$toast(this.t("back"))},onClickRight:function(){this.$toast(this.t("button"))}}},Ie=Object(s.a)(ze,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("demo-section",[n("demo-block",{attrs:{title:t.t("basicUsage")}},[n("van-nav-bar",{attrs:{title:t.t("title"),"left-text":t.t("back"),"right-text":t.t("button"),"left-arrow":""},on:{"click-left":t.onClickLeft,"click-right":t.onClickRight}})],1),n("demo-block",{attrs:{title:t.t("useSlot")}},[n("van-nav-bar",{attrs:{title:t.t("title"),"left-text":t.t("back"),"left-arrow":""},scopedSlots:t._u([{key:"right",fn:function(){return[n("van-icon",{attrs:{name:"search",size:"18"}})]},proxy:!0}])})],1)],1)}),[],!1,null,null,null).exports,Te={i18n:{"zh-CN":{text:"在代码阅读过程中人们说脏话的频率是衡量代码质量的唯一标准。",mode:"通知栏模式",content:"内容",wrapable:"多行展示",shortText:"技术是开发它的人的共同灵魂。",scrollable:"滚动播放",customStyle:"自定义样式",verticalScroll:"垂直滚动"},"en-US":{text:"Technology is the common soul of the people who developed it.",mode:"Mode",content:"Content",wrapable:"Wrapable",shortText:"Some short text.",customStyle:"Custom Style",scrollable:"Scrollable",verticalScroll:"Vertical Scroll"}}},De=(n(191),Object(s.a)(Te,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("demo-section",[n("demo-block",{attrs:{title:t.t("basicUsage")}},[n("van-notice-bar",{attrs:{text:t.t("text"),scrollable:"","left-icon":"volume-o"}})],1),n("demo-block",{attrs:{title:t.t("scrollable")}},[n("van-notice-bar",{attrs:{scrollable:"",text:t.t("shortText")}}),n("van-notice-bar",{attrs:{scrollable:!1,text:t.t("text")}})],1),n("demo-block",{attrs:{title:t.t("wrapable")}},[n("van-notice-bar",{attrs:{wrapable:"",scrollable:!1,text:t.t("text")}})],1),n("demo-block",{attrs:{title:t.t("mode")}},[n("van-notice-bar",{attrs:{mode:"closeable",text:t.t("shortText")}}),n("van-notice-bar",{attrs:{mode:"link",text:t.t("shortText")}})],1),n("demo-block",{attrs:{title:t.t("customStyle")}},[n("van-notice-bar",{attrs:{text:t.t("shortText"),color:"#1989fa",background:"#ecf9ff","left-icon":"info-o"}})],1),t.isWeapp?t._e():n("demo-block",{attrs:{title:t.t("verticalScroll")}},[n("van-notice-bar",{attrs:{"left-icon":"volume-o",scrollable:!1}},[n("van-swipe",{staticClass:"notice-swipe",attrs:{vertical:"",autoplay:3e3,"show-indicators":!1}},[n("van-swipe-item",[t._v(t._s(t.t("content"))+" 1")]),n("van-swipe-item",[t._v(t._s(t.t("content"))+" 2")]),n("van-swipe-item",[t._v(t._s(t.t("content"))+" 3")])],1)],1)],1)],1)}),[],!1,null,null,null).exports),Ue={i18n:{"zh-CN":{primary:"主要通知",success:"成功通知",danger:"危险通知",warning:"警告通知",content:"通知内容",notifyType:"通知类型",customColor:"自定义颜色",customNotify:"自定义配置",componentCall:"组件调用",customDuration:"自定义时长"},"en-US":{primary:"Primary",success:"Success",danger:"Danger",warning:"Warning",content:"Notify Message",notifyType:"Notify Type",customColor:"Custom Color",customNotify:"Custom Notify",componentCall:"Component Call",customDuration:"Custom Duration"}},data:function(){return{show:!1}},methods:{showNotify:function(){this.$notify(this.t("content"))},showCustomColor:function(){this.$notify({message:this.t("customColor"),color:"#ad0000",background:"#ffe1e1"})},showCustomDuration:function(){this.$notify({message:this.t("customDuration"),duration:1e3})},showType:function(t){this.$notify({message:this.t("content"),type:t})},showComponentCall:function(){var t=this;this.show=!0,setTimeout((function(){t.show=!1}),2e3)}}},Oe=Object(s.a)(Ue,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("demo-section",[n("demo-block",{attrs:{card:"",title:t.t("basicUsage")}},[n("van-cell",{attrs:{"is-link":"",title:t.t("basicUsage")},on:{click:t.showNotify}})],1),n("demo-block",{attrs:{card:"",title:t.t("notifyType")}},[n("van-cell",{attrs:{"is-link":"",title:t.t("primary")},on:{click:function(e){return t.showType("primary")}}}),n("van-cell",{attrs:{"is-link":"",title:t.t("success")},on:{click:function(e){return t.showType("success")}}}),n("van-cell",{attrs:{"is-link":"",title:t.t("danger")},on:{click:function(e){return t.showType("danger")}}}),n("van-cell",{attrs:{"is-link":"",title:t.t("warning")},on:{click:function(e){return t.showType("warning")}}})],1),n("demo-block",{attrs:{card:"",title:t.t("customNotify")}},[n("van-cell",{attrs:{"is-link":"",title:t.t("customColor")},on:{click:t.showCustomColor}}),n("van-cell",{attrs:{"is-link":"",title:t.t("customDuration")},on:{click:t.showCustomDuration}})],1),n("demo-block",{attrs:{card:"",title:t.t("componentCall")}},[n("van-cell",{attrs:{"is-link":"",title:t.t("componentCall")},on:{click:t.showComponentCall}}),n("van-notify",{attrs:{type:"success"},model:{value:t.show,callback:function(e){t.show=e},expression:"show"}},[n("van-icon",{staticStyle:{"margin-right":"4px"},attrs:{name:"bell"}}),n("span",[t._v(t._s(t.t("content")))])],1)],1)],1)}),[],!1,null,null,null).exports,Pe={i18n:{"zh-CN":{close:"完成",input:"输入",title:"键盘标题",button1:"弹出默认键盘",button2:"弹出带右侧栏的键盘",button3:"弹出身份证号键盘",button4:"弹出带标题的键盘",button5:"弹出配置多个按键的键盘",button6:"弹出配置随机数字的键盘",extraKey:"左下角按键内容",bindValue:"双向绑定",clickToInput:"点此输入",multiExtraKey:"配置多个按键",randomKeyOrder:"随机数字键盘"},"en-US":{close:"Close",input:"Input",title:"Keyboard Title",button1:"Show Default Keyboard",button2:"Show Keyboard With Sidebar",button3:"Show IdNumber Keyboard",button4:"Show Keyboard With Title",button5:"Show Keyboard With Multiple ExtraKey",button6:"Show Keyboard With Random Key Order",bindValue:"Bind Value",clickToInput:"Click To Input",extraKey:"IdNumber Keyboard",multiExtraKey:"Multiple ExtraKey",randomKeyOrder:"Random Key Order"}},data:function(){return{value:"",keyboard:"default",isTest:!1}},methods:{onInput:function(t){this.$toast(this.t("input")+": "+t)},onDelete:function(){this.$toast(this.t("delete"))}}},Le=(n(193),Object(s.a)(Pe,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("demo-section",[n("van-cell",{attrs:{"is-link":""},nativeOn:{touchstart:function(e){e.stopPropagation(),t.keyboard="default"}}},[t._v("\n "+t._s(t.t("button1"))+"\n ")]),n("van-cell",{attrs:{"is-link":""},nativeOn:{touchstart:function(e){e.stopPropagation(),t.keyboard="custom"}}},[t._v("\n "+t._s(t.t("button2"))+"\n ")]),n("van-cell",{attrs:{"is-link":""},nativeOn:{touchstart:function(e){e.stopPropagation(),t.keyboard="extraKey"}}},[t._v("\n "+t._s(t.t("button3"))+"\n ")]),n("van-cell",{attrs:{"is-link":""},nativeOn:{touchstart:function(e){e.stopPropagation(),t.keyboard="title"}}},[t._v("\n "+t._s(t.t("button4"))+"\n ")]),n("van-cell",{attrs:{"is-link":""},nativeOn:{touchstart:function(e){e.stopPropagation(),t.keyboard="multiExtraKey"}}},[t._v("\n "+t._s(t.t("button5"))+"\n ")]),n("van-cell",{attrs:{"is-link":""},nativeOn:{touchstart:function(e){e.stopPropagation(),t.keyboard="randomKeyOrder"}}},[t._v("\n "+t._s(t.t("button6"))+"\n ")]),n("van-field",{attrs:{readonly:"",clickable:"",value:t.value,label:t.t("bindValue"),placeholder:t.t("clickToInput")},nativeOn:{touchstart:function(e){e.stopPropagation(),t.keyboard="bindValue"}}}),n("van-number-keyboard",{attrs:{show:"default"===t.keyboard},on:{blur:function(e){t.keyboard=""},input:t.onInput,delete:t.onDelete}}),n("van-number-keyboard",{attrs:{show:"custom"===t.keyboard,"close-button-text":t.t("close"),theme:"custom","extra-key":"."},on:{blur:function(e){t.keyboard=""},input:t.onInput,delete:t.onDelete}}),n("van-number-keyboard",{attrs:{show:"extraKey"===t.keyboard,"close-button-text":t.t("close"),"extra-key":"X"},on:{blur:function(e){t.keyboard=""},input:t.onInput,delete:t.onDelete}}),n("van-number-keyboard",{attrs:{show:"title"===t.keyboard,"close-button-text":t.t("close"),title:t.t("title"),"extra-key":"."},on:{blur:function(e){t.keyboard=""},input:t.onInput,delete:t.onDelete}}),n("van-number-keyboard",{attrs:{show:"multiExtraKey"===t.keyboard,"close-button-text":t.t("close"),theme:"custom","extra-key":["00","."]},on:{blur:function(e){t.keyboard=""},input:t.onInput,delete:t.onDelete}}),t.isTest?t._e():n("van-number-keyboard",{attrs:{show:"randomKeyOrder"===t.keyboard,"random-key-order":""},on:{blur:function(e){t.keyboard=""},input:t.onInput,delete:t.onDelete}}),n("van-number-keyboard",{attrs:{show:"bindValue"===t.keyboard,maxlength:"6"},on:{blur:function(e){t.keyboard=""}},model:{value:t.value,callback:function(e){t.value=e},expression:"value"}})],1)}),[],!1,null,null,null).exports),Ne={i18n:{"zh-CN":{showOverlay:"显示遮罩层",embeddedContent:"嵌入内容"},"en-US":{showOverlay:"Show Overlay",embeddedContent:"Embedded Content"}},data:function(){return{show:!1,showEmbedded:!1}}},$e=(n(195),Object(s.a)(Ne,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("demo-section",[n("demo-block",{attrs:{title:t.t("basicUsage")}},[n("van-button",{staticStyle:{"margin-left":"16px"},attrs:{type:"primary",text:t.t("showOverlay")},on:{click:function(e){t.show=!0}}}),n("van-overlay",{attrs:{show:t.show},on:{click:function(e){t.show=!1}}})],1),n("demo-block",{attrs:{title:t.t("embeddedContent")}},[n("van-button",{staticStyle:{"margin-left":"16px"},attrs:{type:"primary",text:t.t("embeddedContent")},on:{click:function(e){t.showEmbedded=!0}}}),n("van-overlay",{attrs:{show:t.showEmbedded},on:{click:function(e){t.showEmbedded=!1}}},[n("div",{staticClass:"wrapper"},[n("div",{staticClass:"block"})])])],1)],1)}),[],!1,null,null,null).exports),Re={i18n:{"zh-CN":{title2:"简单模式",title3:"显示省略号",title4:"自定义按钮",prevText:"上一页",nextText:"下一页"},"en-US":{title2:"Simple Mode",title3:"Show ellipses",title4:"Custom Button",prevText:"Prev",nextText:"Next"}},data:function(){return{currentPage1:1,currentPage2:1,currentPage3:1,currentPage4:1}}},Be=(n(197),Object(s.a)(Re,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("demo-section",[n("demo-block",{attrs:{title:t.t("basicUsage")}},[n("van-pagination",{attrs:{"total-items":24,"items-per-page":5,"prev-text":t.t("prevText"),"next-text":t.t("nextText")},model:{value:t.currentPage1,callback:function(e){t.currentPage1=e},expression:"currentPage1"}})],1),n("demo-block",{attrs:{title:t.t("title2")}},[n("van-pagination",{attrs:{"page-count":12,"prev-text":t.t("prevText"),"next-text":t.t("nextText"),mode:"simple",size:"small"},model:{value:t.currentPage2,callback:function(e){t.currentPage2=e},expression:"currentPage2"}})],1),n("demo-block",{attrs:{title:t.t("title3")}},[n("van-pagination",{attrs:{"force-ellipses":"","total-items":125,"show-page-size":3,"prev-text":t.t("prevText"),"next-text":t.t("nextText")},model:{value:t.currentPage3,callback:function(e){t.currentPage3=e},expression:"currentPage3"}})],1),n("demo-block",{attrs:{title:t.t("title4")}},[n("van-pagination",{attrs:{"total-items":125,"show-page-size":5},scopedSlots:t._u([{key:"prev-text",fn:function(){return[n("van-icon",{attrs:{name:"arrow-left"}})]},proxy:!0},{key:"next-text",fn:function(){return[n("van-icon",{attrs:{name:"arrow"}})]},proxy:!0},{key:"page",fn:function(e){var n=e.text;return[t._v(t._s(n))]}}]),model:{value:t.currentPage4,callback:function(e){t.currentPage4=e},expression:"currentPage4"}})],1)],1)}),[],!1,null,null,null).exports),Ae={},Ee=(n(199),Object(s.a)(Ae,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("demo-section",[n("demo-block",{attrs:{title:t.t("basicUsage")}},[n("van-panel",{attrs:{title:t.t("title"),desc:t.t("desc"),status:t.t("status")}},[n("div",[t._v(t._s(t.t("content")))])])],1),n("demo-block",{attrs:{title:t.t("advancedUsage")}},[n("van-panel",{attrs:{title:t.t("title"),desc:t.t("desc"),status:t.t("status")},scopedSlots:t._u([{key:"footer",fn:function(){return[n("van-button",{attrs:{size:"small"}},[t._v(t._s(t.t("button")))]),n("van-button",{attrs:{size:"small",type:"danger"}},[t._v("\n "+t._s(t.t("button"))+"\n ")])]},proxy:!0}])},[n("div",[t._v(t._s(t.t("content")))])])],1)],1)}),[],!1,null,null,null).exports),Me={i18n:{"zh-CN":{info:"密码为 6 位数字",showInfo:"提示信息",addGutter:"格子间距",errorInfo:"密码错误",removeMask:"明文展示",customLength:"自定义长度"},"en-US":{info:"Some tips",showInfo:"Show Info",addGutter:"Add Gutter",errorInfo:"Password Mistake",removeMask:"Remove Mask",customLength:"Custom Length"}},data:function(){return{value:{showInfo:"123",addGutter:"123",basicUsage:"123",removeMask:"123",customLength:"123"},current:"basicUsage",errorInfo:""}},watch:{current:function(t){if(t){var e=this.$refs[t].$el.getBoundingClientRect().top;window.scrollTo(0,window.pageYOffset+e)}}},methods:{onInput:function(t){var e=this.value,n=this.current,o="customLength"===n?4:6,a=(e[n]+t).slice(0,o);e[n]=a,"showInfo"===n&&6===a.length&&"123456"!==a&&(this.errorInfo=this.t("errorInfo"))},onDelete:function(){var t=this.value,e=this.current;t[e]=t[e].slice(0,t[e].length-1),"showInfo"===e&&(this.errorInfo="")}}},je=(n(201),Object(s.a)(Me,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("demo-section",[n("demo-block",{ref:"basicUsage",attrs:{title:t.t("basicUsage")}},[n("van-password-input",{attrs:{value:t.value.basicUsage,focused:"basicUsage"===t.current},on:{focus:function(e){t.current="basicUsage"}}})],1),n("demo-block",{ref:"customLength",attrs:{title:t.t("customLength")}},[n("van-password-input",{attrs:{value:t.value.customLength,length:4,focused:"customLength"===t.current},on:{focus:function(e){t.current="customLength"}}})],1),n("demo-block",{ref:"addGutter",attrs:{title:t.t("addGutter")}},[n("van-password-input",{attrs:{value:t.value.addGutter,gutter:10,focused:"addGutter"===t.current},on:{focus:function(e){t.current="addGutter"}}})],1),n("demo-block",{ref:"removeMask",attrs:{title:t.t("removeMask")}},[n("van-password-input",{attrs:{mask:!1,value:t.value.removeMask,focused:"removeMask"===t.current},on:{focus:function(e){t.current="removeMask"}}})],1),n("demo-block",{ref:"showInfo",attrs:{title:t.t("showInfo")}},[n("van-password-input",{attrs:{info:t.t("info"),value:t.value.showInfo,"error-info":t.errorInfo,focused:"showInfo"===t.current},on:{focus:function(e){t.current="showInfo"}}})],1),n("van-number-keyboard",{attrs:{show:!!t.current},on:{blur:function(e){t.current=""},input:t.onInput,delete:t.onDelete}})],1)}),[],!1,null,null,null).exports),Fe={"zh-CN":[{values:["周一","周二","周三","周四","周五"],defaultIndex:2},{values:["上午","下午","晚上"],defaultIndex:1}],"en-US":[{values:["Monday","Tuesday","Wednesday","Thusday","Friday"],defaultIndex:2},{values:["Morging","Afternoon","Evening"],defaultIndex:1}]},qe={"zh-CN":[{text:"浙江",children:[{text:"杭州",children:[{text:"西湖区"},{text:"余杭区"}]},{text:"温州",children:[{text:"鹿城区"},{text:"瓯海区"}]}]},{text:"福建",children:[{text:"福州",children:[{text:"鼓楼区"},{text:"台江区"}]},{text:"厦门",children:[{text:"思明区"},{text:"海沧区"}]}]}],"en-US":[{text:"Zhejiang",children:[{text:"Hangzhou",children:[{text:"Xihu"},{text:"Yuhang"}]},{text:"Wenzhou",children:[{text:"Lucheng"},{text:"Ouhai"}]}]},{text:"Fujian",children:[{text:"Fuzhou",children:[{text:"Gulou"},{text:"Taijiang"}]},{text:"Xiamen",children:[{text:"Siming"},{text:"Haicang"}]}]}]},We={i18n:{"zh-CN":{city:"城市",cascade:"级联选择",withPopup:"搭配弹出层使用",chooseCity:"选择城市",showToolbar:"展示顶部栏",dateColumns:Fe["zh-CN"],defaultIndex:"默认选中项",disableOption:"禁用选项",cascadeColumns:qe["zh-CN"],multipleColumns:"多列选择",setColumnValues:"动态设置选项",textColumns:["杭州","宁波","温州","绍兴","湖州","嘉兴","金华","衢州"],disabledColumns:[{text:"杭州",disabled:!0},{text:"宁波"},{text:"温州"}],column3:{"浙江":["杭州","宁波","温州","嘉兴","湖州"],"福建":["福州","厦门","莆田","三明","泉州"]},toastContent:function(t,e){return"当前值:"+t+", 当前索引:"+e}},"en-US":{city:"City",cascade:"Cascade",withPopup:"With Popup",chooseCity:"Choose City",showToolbar:"Show Toolbar",dateColumns:Fe["en-US"],defaultIndex:"Default Index",disableOption:"Disable Option",cascadeColumns:qe["en-US"],multipleColumns:"Multiple Columns",setColumnValues:"Set Column Values",textColumns:["Delaware","Florida","Georqia","Indiana","Maine"],disabledColumns:[{text:"Delaware",disabled:!0},{text:"Florida"},{text:"Georqia"}],column3:{Group1:["Delaware","Florida","Georqia","Indiana","Maine"],Group2:["Alabama","Kansas","Louisiana","Texas"]},toastContent:function(t,e){return"Value: "+t+", Index:"+e}}},data:function(){return{showPicker:!1,fieldValue:""}},computed:{columns:function(){var t=this.t("column3");return[{values:Object.keys(t),className:"column1"},{values:t[Object.keys(t)[0]],className:"column2",defaultIndex:2}]}},methods:{onChange1:function(t,e,n){this.$toast(this.t("toastContent",e,n))},onChange2:function(t,e){t.setColumnValues(1,this.t("column3")[e[0]])},onConfirm:function(t,e){this.$toast(this.t("toastContent",t,e))},onCancel:function(){this.$toast(this.t("cancel"))},onClickField:function(){this.showPicker=!0},onConfirm2:function(t){this.showPicker=!1,this.fieldValue=t},onCancel2:function(){this.showPicker=!1}}},Ke=Object(s.a)(We,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("demo-section",[n("demo-block",{attrs:{card:"",title:t.t("basicUsage")}},[n("van-picker",{attrs:{"show-toolbar":"",title:t.t("title"),columns:t.t("textColumns")},on:{change:t.onChange1}})],1),n("demo-block",{attrs:{card:"",title:t.t("defaultIndex")}},[n("van-picker",{attrs:{"show-toolbar":"",title:t.t("title"),columns:t.t("textColumns"),"default-index":2},on:{change:t.onChange1}})],1),n("demo-block",{attrs:{card:"",title:t.t("multipleColumns")}},[n("van-picker",{attrs:{"show-toolbar":"",title:t.t("title"),columns:t.t("dateColumns")},on:{cancel:t.onCancel,confirm:t.onConfirm}})],1),t.isWeapp?t._e():n("demo-block",{attrs:{card:"",title:t.t("cascade")}},[n("van-picker",{attrs:{"show-toolbar":"",title:t.t("title"),columns:t.t("cascadeColumns")},on:{cancel:t.onCancel,confirm:t.onConfirm}})],1),n("demo-block",{attrs:{card:"",title:t.t("disableOption")}},[n("van-picker",{attrs:{"show-toolbar":"",title:t.t("title"),columns:t.t("disabledColumns")}})],1),n("demo-block",{attrs:{card:"",title:t.t("setColumnValues")}},[n("van-picker",{attrs:{"show-toolbar":"",title:t.t("title"),columns:t.columns},on:{change:t.onChange2}})],1),n("demo-block",{attrs:{card:"",title:t.t("loadingStatus")}},[n("van-picker",{attrs:{loading:"","show-toolbar":"",title:t.t("title"),columns:t.columns}})],1),t.isWeapp?t._e():n("demo-block",{attrs:{card:"",title:t.t("withPopup")}},[n("van-field",{attrs:{readonly:"",clickable:"",label:t.t("city"),value:t.fieldValue,placeholder:t.t("chooseCity")},on:{click:t.onClickField}}),n("van-popup",{attrs:{round:"",position:"bottom"},model:{value:t.showPicker,callback:function(e){t.showPicker=e},expression:"showPicker"}},[n("van-picker",{attrs:{"show-toolbar":"",title:t.t("title"),columns:t.t("textColumns")},on:{cancel:t.onCancel2,confirm:t.onConfirm2}})],1)],1)],1)}),[],!1,null,null,null).exports,Ge={i18n:{"zh-CN":{actions:[{text:"选项一"},{text:"选项二"},{text:"选项三"}],shortActions:[{text:"选项一"},{text:"选项二"}],actionsWithIcon:[{text:"选项一",icon:"add-o"},{text:"选项二",icon:"music-o"},{text:"选项三",icon:"more-o"}],actionsDisabled:[{text:"选项一",disabled:!0},{text:"选项二",disabled:!0},{text:"选项三"}],showIcon:"展示图标",placement:"弹出位置",darkTheme:"深色风格",lightTheme:"浅色风格",showPopover:"点击弹出气泡",actionOptions:"选项配置",customContent:"自定义内容",disableAction:"禁用选项",choosePlacement:"选择弹出位置"},"en-US":{actions:[{text:"Option 1"},{text:"Option 2"},{text:"Option 3"}],shortActions:[{text:"Option 1"},{text:"Option 2"}],actionsWithIcon:[{text:"Option 1",icon:"add-o"},{text:"Option 2",icon:"music-o"},{text:"Option 3",icon:"more-o"}],actionsDisabled:[{text:"Option 1",disabled:!0},{text:"Option 2",disabled:!0},{text:"Option 3"}],showIcon:"Show Icon",placement:"Placement",darkTheme:"Dark Theme",lightTheme:"Light Theme",showPopover:"Show Popover",actionOptions:"Action Options",customContent:"Custom Content",disableAction:"Disable Action",choosePlacement:"Placement"}},data:function(){return{show:{showIcon:!1,placement:!1,darkTheme:!1,lightTheme:!1,customContent:!1,disableAction:!1},showPicker:!1,currentPlacement:"top",placements:["top","top-start","top-end","left","left-start","left-end","right","right-start","right-end","bottom","bottom-start","bottom-end"]}},methods:{onPickerChange:function(t,e){var n=this;setTimeout((function(){n.show.placement=!0,n.currentPlacement=e}))},onSelect:function(t){Object(vt.a)(t.text)}}},Ve=(n(203),Object(s.a)(Ge,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("demo-section",[n("demo-block",{attrs:{title:t.t("basicUsage")}},[n("van-popover",{staticStyle:{"margin-left":"16px"},attrs:{trigger:"click",actions:t.t("actions"),placement:"bottom-start"},on:{select:t.onSelect},scopedSlots:t._u([{key:"reference",fn:function(){return[n("van-button",{attrs:{type:"primary"}},[t._v("\n "+t._s(t.t("lightTheme"))+"\n ")])]},proxy:!0}]),model:{value:t.show.lightTheme,callback:function(e){t.$set(t.show,"lightTheme",e)},expression:"show.lightTheme"}}),n("van-popover",{staticStyle:{"margin-left":"16px"},attrs:{theme:"dark",trigger:"click",actions:t.t("actions")},on:{select:t.onSelect},scopedSlots:t._u([{key:"reference",fn:function(){return[n("van-button",{attrs:{type:"primary"}},[t._v("\n "+t._s(t.t("darkTheme"))+"\n ")])]},proxy:!0}]),model:{value:t.show.darkTheme,callback:function(e){t.$set(t.show,"darkTheme",e)},expression:"show.darkTheme"}})],1),n("demo-block",{attrs:{title:t.t("placement")}},[n("van-field",{attrs:{"is-link":"",readonly:"",name:"picker",label:t.t("choosePlacement")},on:{click:function(e){t.showPicker=!0}}}),n("van-popup",{attrs:{round:"",position:"bottom","get-container":"body"},model:{value:t.showPicker,callback:function(e){t.showPicker=e},expression:"showPicker"}},[n("div",{staticClass:"demo-popover-box"},[n("van-popover",{attrs:{theme:"dark",trigger:"click",actions:t.t("shortActions"),placement:t.currentPlacement},on:{select:t.onSelect},scopedSlots:t._u([{key:"reference",fn:function(){return[n("div",{staticClass:"demo-popover-refer"})]},proxy:!0}]),model:{value:t.show.placement,callback:function(e){t.$set(t.show,"placement",e)},expression:"show.placement"}})],1),n("van-picker",{attrs:{columns:t.placements},on:{change:t.onPickerChange}})],1)],1),n("demo-block",{attrs:{title:t.t("actionOptions")}},[n("van-popover",{staticStyle:{"margin-left":"16px"},attrs:{trigger:"click",actions:t.t("actionsWithIcon"),placement:"bottom-start"},on:{select:t.onSelect},scopedSlots:t._u([{key:"reference",fn:function(){return[n("van-button",{attrs:{type:"primary"}},[t._v("\n "+t._s(t.t("showIcon"))+"\n ")])]},proxy:!0}]),model:{value:t.show.showIcon,callback:function(e){t.$set(t.show,"showIcon",e)},expression:"show.showIcon"}}),n("van-popover",{staticStyle:{"margin-left":"16px"},attrs:{trigger:"click",actions:t.t("actionsDisabled")},on:{select:t.onSelect},scopedSlots:t._u([{key:"reference",fn:function(){return[n("van-button",{attrs:{type:"primary"}},[t._v("\n "+t._s(t.t("disableAction"))+"\n ")])]},proxy:!0}]),model:{value:t.show.disableAction,callback:function(e){t.$set(t.show,"disableAction",e)},expression:"show.disableAction"}})],1),n("demo-block",{attrs:{title:t.t("customContent")}},[n("van-popover",{staticStyle:{"margin-left":"16px"},attrs:{trigger:"click",placement:"top-start"},on:{select:t.onSelect},scopedSlots:t._u([{key:"reference",fn:function(){return[n("van-button",{attrs:{type:"primary"}},[t._v("\n "+t._s(t.t("customContent"))+"\n ")])]},proxy:!0}]),model:{value:t.show.customContent,callback:function(e){t.$set(t.show,"customContent",e)},expression:"show.customContent"}},[n("van-grid",{staticStyle:{width:"240px"},attrs:{square:"",clickable:"",border:!1,"column-num":"3"}},t._l(6,(function(e){return n("van-grid-item",{key:e,attrs:{icon:"photo-o",text:t.t("option")},on:{click:function(e){t.show.customContent=!1}}})})),1)],1)],1)],1)}),[],!1,null,null,null).exports),He={i18n:{"zh-CN":{position:"弹出位置",buttonBasic:"展示弹出层",buttonTop:"顶部弹出",buttonBottom:"底部弹出",buttonLeft:"左侧弹出",buttonRight:"右侧弹出",getContainer:"指定挂载节点",roundCorner:"圆角弹窗",closeIcon:"关闭图标",customCloseIcon:"自定义图标",customIconPosition:"图标位置"},"en-US":{position:"Position",buttonBasic:"Show Popup",buttonTop:"From Top",buttonBottom:"From Bottom",buttonLeft:"From Left",buttonRight:"From Right",getContainer:"Get Container",roundCorner:"Round Corner",closeIcon:"Close Icon",customCloseIcon:"Custom Icon",customIconPosition:"Icon Position"}},data:function(){return{showBasic:!1,showTop:!1,showBottom:!1,showLeft:!1,showRight:!1,showCloseIcon:!1,showRoundCorner:!1,showGetContainer:!1,showCustomCloseIcon:!1,showCustomIconPosition:!1}}},Ye=(n(205),Object(s.a)(He,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("demo-section",[n("demo-block",{attrs:{card:"",title:t.t("basicUsage")}},[n("van-cell",{attrs:{title:t.t("buttonBasic"),"is-link":""},on:{click:function(e){t.showBasic=!0}}}),n("van-popup",{style:{padding:"30px 50px"},model:{value:t.showBasic,callback:function(e){t.showBasic=e},expression:"showBasic"}},[t._v("\n "+t._s(t.t("content"))+"\n ")])],1),n("demo-block",{attrs:{card:"",title:t.t("position")}},[n("van-cell",{attrs:{title:t.t("buttonTop"),"is-link":""},on:{click:function(e){t.showTop=!0}}}),n("van-cell",{attrs:{title:t.t("buttonBottom"),"is-link":""},on:{click:function(e){t.showBottom=!0}}}),n("van-cell",{attrs:{title:t.t("buttonLeft"),"is-link":""},on:{click:function(e){t.showLeft=!0}}}),n("van-cell",{attrs:{title:t.t("buttonRight"),"is-link":""},on:{click:function(e){t.showRight=!0}}}),n("van-popup",{style:{height:"30%"},attrs:{position:"top"},model:{value:t.showTop,callback:function(e){t.showTop=e},expression:"showTop"}}),n("van-popup",{style:{height:"30%"},attrs:{position:"bottom"},model:{value:t.showBottom,callback:function(e){t.showBottom=e},expression:"showBottom"}}),n("van-popup",{style:{width:"30%",height:"100%"},attrs:{position:"left"},model:{value:t.showLeft,callback:function(e){t.showLeft=e},expression:"showLeft"}}),n("van-popup",{style:{width:"30%",height:"100%"},attrs:{position:"right"},model:{value:t.showRight,callback:function(e){t.showRight=e},expression:"showRight"}})],1),n("demo-block",{attrs:{card:"",title:t.t("closeIcon")}},[n("van-cell",{attrs:{title:t.t("closeIcon"),"is-link":""},on:{click:function(e){t.showCloseIcon=!0}}}),n("van-cell",{attrs:{title:t.t("customCloseIcon"),"is-link":""},on:{click:function(e){t.showCustomCloseIcon=!0}}}),n("van-cell",{attrs:{title:t.t("customIconPosition"),"is-link":""},on:{click:function(e){t.showCustomIconPosition=!0}}}),n("van-popup",{style:{height:"30%"},attrs:{closeable:"",position:"bottom"},model:{value:t.showCloseIcon,callback:function(e){t.showCloseIcon=e},expression:"showCloseIcon"}}),n("van-popup",{style:{height:"30%"},attrs:{closeable:"","close-icon":"close",position:"bottom"},model:{value:t.showCustomCloseIcon,callback:function(e){t.showCustomCloseIcon=e},expression:"showCustomCloseIcon"}}),n("van-popup",{style:{height:"30%"},attrs:{closeable:"","close-icon-position":"top-left",position:"bottom"},model:{value:t.showCustomIconPosition,callback:function(e){t.showCustomIconPosition=e},expression:"showCustomIconPosition"}})],1),n("demo-block",{attrs:{card:"",title:t.t("roundCorner")}},[n("van-cell",{attrs:{title:t.t("roundCorner"),"is-link":""},on:{click:function(e){t.showRoundCorner=!0}}}),n("van-popup",{style:{height:"30%"},attrs:{round:"",position:"bottom"},model:{value:t.showRoundCorner,callback:function(e){t.showRoundCorner=e},expression:"showRoundCorner"}})],1),t.isWeapp?t._e():n("demo-block",{attrs:{card:"",title:t.t("getContainer")}},[n("van-cell",{attrs:{title:t.t("getContainer"),"is-link":""},on:{click:function(e){t.showGetContainer=!0}}}),n("van-popup",{style:{padding:"30px 50px"},attrs:{"get-container":"body"},model:{value:t.showGetContainer,callback:function(e){t.showGetContainer=e},expression:"showGetContainer"}})],1)],1)}),[],!1,null,null,null).exports),Xe={i18n:{"zh-CN":{title2:"置灰",title3:"样式定制",strokeWidth:"线条粗细"},"en-US":{title2:"Inactive",title3:"Custom Style",strokeWidth:"Stroke Width"}}},Ze=(n(207),Object(s.a)(Xe,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("demo-section",[n("demo-block",{attrs:{title:t.t("basicUsage")}},[n("van-progress",{attrs:{percentage:50}})],1),t.isWeapp?t._e():n("demo-block",{attrs:{title:t.t("strokeWidth")}},[n("van-progress",{attrs:{percentage:50,"stroke-width":"8"}})],1),n("demo-block",{attrs:{title:t.t("title2")}},[n("van-progress",{attrs:{inactive:"",percentage:50}})],1),n("demo-block",{attrs:{title:t.t("title3")}},[n("van-progress",{attrs:{color:"#f2826a",percentage:25,"pivot-text":t.t("orange")}}),n("van-progress",{attrs:{color:"#ee0a24",percentage:50,"pivot-text":t.t("red")}}),n("van-progress",{attrs:{percentage:75,"pivot-text":t.t("purple"),"pivot-color":"#7232dd",color:"linear-gradient(to right, #be99ff, #7232dd)"}})],1)],1)}),[],!1,null,null,null).exports),Je={i18n:{"zh-CN":{try:"下拉试试",text:"刷新次数",success:"刷新成功",successTip:"成功提示",customTips:"自定义提示"},"en-US":{try:"Try it down",text:"Refresh Count",success:"Refresh success",successTip:"Success Tip",customTips:"Custom Tips"}},data:function(){return{count:0,isLoading:!1}},computed:{tips:function(){return this.count?this.t("text")+": "+this.count:this.t("try")}},mounted:function(){this.preloadImage()},methods:{preloadImage:function(){var t=new Image,e=new Image;t.src="https://b.yzcdn.cn/vant/doge.png",e.src="https://b.yzcdn.cn/vant/doge-fire.jpg"},onRefresh:function(t){var e=this;setTimeout((function(){t&&e.$toast(e.t("success")),e.isLoading=!1,e.count++}),1e3)}}},Qe=(n(209),Object(s.a)(Je,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("demo-section",{attrs:{name:"pull-refresh"}},[n("van-tabs",[n("van-tab",{attrs:{title:t.t("basicUsage")}},[n("van-pull-refresh",{on:{refresh:function(e){return t.onRefresh(!0)}},model:{value:t.isLoading,callback:function(e){t.isLoading=e},expression:"isLoading"}},[n("p",[t._v(t._s(t.tips))])])],1),n("van-tab",{attrs:{title:t.t("successTip")}},[n("van-pull-refresh",{attrs:{"success-text":t.t("success")},on:{refresh:function(e){return t.onRefresh(!1)}},model:{value:t.isLoading,callback:function(e){t.isLoading=e},expression:"isLoading"}},[n("p",[t._v(t._s(t.tips))])])],1),n("van-tab",{attrs:{title:t.t("customTips")}},[n("van-pull-refresh",{attrs:{"head-height":"80"},on:{refresh:function(e){return t.onRefresh(!0)}},scopedSlots:t._u([{key:"pulling",fn:function(t){var e=t.distance;return[n("img",{staticClass:"doge",style:{transform:"scale("+e/80+")"},attrs:{src:"https://b.yzcdn.cn/vant/doge.png"}})]}},{key:"loosing",fn:function(){return[n("img",{staticClass:"doge",attrs:{src:"https://b.yzcdn.cn/vant/doge.png"}})]},proxy:!0},{key:"loading",fn:function(){return[n("img",{staticClass:"doge",attrs:{src:"https://b.yzcdn.cn/vant/doge-fire.jpg"}})]},proxy:!0}]),model:{value:t.isLoading,callback:function(e){t.isLoading=e},expression:"isLoading"}},[n("p",[t._v(t._s(t.tips))])])],1)],1)],1)}),[],!1,null,null,null).exports),tn={i18n:{"zh-CN":{radio:"单选框",text1:"未选中禁用",text2:"选中且禁用",withCell:"与 Cell 组件一起使用",horizontal:"水平排列",customIcon:"自定义图标",customColor:"自定义颜色",customShape:"自定义形状",customIconSize:"自定义大小",disableLabel:"禁用文本点击"},"en-US":{radio:"Radio",text1:"Disabled",text2:"Disabled and checked",withCell:"Inside a Cell",horizontal:"Hrizontal",customIcon:"Custom Icon",customColor:"Custom Color",customShape:"Custom Shape",customIconSize:"Custom Icon Size",disableLabel:"Disable label click"}},data:function(){return{radio1:"1",radio2:"2",radio3:"1",radio4:"1",radio5:"1",radioLabel:"1",radioShape:"1",radioIconSize:"1",radioHorizontal:"1",icon:{active:"https://img01.yzcdn.cn/vant/user-active.png",inactive:"https://img01.yzcdn.cn/vant/user-inactive.png"}}}},en=(n(211),Object(s.a)(tn,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("demo-section",[n("demo-block",{attrs:{title:t.t("basicUsage")}},[n("van-radio-group",{staticClass:"demo-radio-group",model:{value:t.radio1,callback:function(e){t.radio1=e},expression:"radio1"}},[n("van-radio",{attrs:{name:"1"}},[t._v(t._s(t.t("radio"))+" 1")]),n("van-radio",{attrs:{name:"2"}},[t._v(t._s(t.t("radio"))+" 2")])],1)],1),t.isWeapp?t._e():n("demo-block",{attrs:{title:t.t("horizontal")}},[n("van-radio-group",{staticClass:"demo-radio-group",attrs:{direction:"horizontal"},model:{value:t.radioHorizontal,callback:function(e){t.radioHorizontal=e},expression:"radioHorizontal"}},[n("van-radio",{attrs:{name:"1"}},[t._v(t._s(t.t("radio"))+" 1")]),n("van-radio",{attrs:{name:"2"}},[t._v(t._s(t.t("radio"))+" 2")])],1)],1),n("demo-block",{attrs:{title:t.t("disabled")}},[n("van-radio-group",{staticClass:"demo-radio-group",attrs:{disabled:""},model:{value:t.radio2,callback:function(e){t.radio2=e},expression:"radio2"}},[n("van-radio",{attrs:{name:"1"}},[t._v(t._s(t.t("radio"))+" 1")]),n("van-radio",{attrs:{name:"2"}},[t._v(t._s(t.t("radio"))+" 2")])],1)],1),n("demo-block",{attrs:{title:t.t("customShape")}},[n("van-radio-group",{staticClass:"demo-radio-group",model:{value:t.radioShape,callback:function(e){t.radioShape=e},expression:"radioShape"}},[n("van-radio",{attrs:{name:"1",shape:"square"}},[t._v(t._s(t.t("radio"))+" 1")]),n("van-radio",{attrs:{name:"2",shape:"square"}},[t._v(t._s(t.t("radio"))+" 2")])],1)],1),n("demo-block",{attrs:{title:t.t("customColor")}},[n("van-radio-group",{staticClass:"demo-radio-group",model:{value:t.radio3,callback:function(e){t.radio3=e},expression:"radio3"}},[n("van-radio",{attrs:{name:"1","checked-color":"#ee0a24"}},[t._v("\n "+t._s(t.t("radio"))+" 1\n ")]),n("van-radio",{attrs:{name:"2","checked-color":"#ee0a24"}},[t._v("\n "+t._s(t.t("radio"))+" 2\n ")])],1)],1),n("demo-block",{attrs:{title:t.t("customIconSize")}},[n("van-radio-group",{staticClass:"demo-radio-group",model:{value:t.radioIconSize,callback:function(e){t.radioIconSize=e},expression:"radioIconSize"}},[n("van-radio",{attrs:{name:"1","icon-size":"24px"}},[t._v(" "+t._s(t.t("radio"))+" 1 ")]),n("van-radio",{attrs:{name:"2","icon-size":"24px"}},[t._v(" "+t._s(t.t("radio"))+" 2 ")])],1)],1),n("demo-block",{attrs:{title:t.t("customIcon")}},[n("van-radio-group",{staticClass:"demo-radio-group",model:{value:t.radio4,callback:function(e){t.radio4=e},expression:"radio4"}},[n("van-radio",{attrs:{name:"1"},scopedSlots:t._u([{key:"icon",fn:function(e){var o=e.checked;return[n("img",{attrs:{src:o?t.icon.active:t.icon.inactive}})]}}])},[t._v("\n "+t._s(t.t("radio"))+" 1\n ")]),n("van-radio",{attrs:{name:"2"},scopedSlots:t._u([{key:"icon",fn:function(e){var o=e.checked;return[n("img",{attrs:{src:o?t.icon.active:t.icon.inactive}})]}}])},[t._v("\n "+t._s(t.t("radio"))+" 2\n ")])],1)],1),n("demo-block",{attrs:{title:t.t("disableLabel")}},[n("van-radio-group",{staticClass:"demo-radio-group",model:{value:t.radioLabel,callback:function(e){t.radioLabel=e},expression:"radioLabel"}},[n("van-radio",{attrs:{name:"1","label-disabled":""}},[t._v(t._s(t.t("radio"))+" 1")]),n("van-radio",{attrs:{name:"2","label-disabled":""}},[t._v(t._s(t.t("radio"))+" 2")])],1)],1),n("demo-block",{attrs:{title:t.t("withCell")}},[n("van-radio-group",{model:{value:t.radio5,callback:function(e){t.radio5=e},expression:"radio5"}},[n("van-cell-group",[n("van-cell",{attrs:{clickable:"",title:t.t("radio")+1},on:{click:function(e){t.radio5="1"}},scopedSlots:t._u([{key:"right-icon",fn:function(){return[n("van-radio",{attrs:{name:"1"}})]},proxy:!0}])}),n("van-cell",{attrs:{clickable:"",title:t.t("radio")+2},on:{click:function(e){t.radio5="2"}},scopedSlots:t._u([{key:"right-icon",fn:function(){return[n("van-radio",{attrs:{name:"2"}})]},proxy:!0}])})],1)],1)],1)],1)}),[],!1,null,null,null).exports),nn={i18n:{"zh-CN":{halfStar:"半星",disabled:"禁用状态",customIcon:"自定义图标",customStyle:"自定义样式",customCount:"自定义数量",readonly:"只读状态",changeEvent:"监听 change 事件",toastContent:function(t){return"当前值:"+t}},"en-US":{halfStar:"Half Star",disabled:"Disabled",customIcon:"Custom Icon",customStyle:"Custom Style",customCount:"Custom Count",readonly:"Readonly",changeEvent:"Change Event",toastContent:function(t){return"current value:"+t}}},data:function(){return{value1:3,value2:3,value3:3,value4:2.5,value5:4,value6:3,value7:2}},methods:{onChange:function(t){this.value7=t,this.$toast(this.t("toastContent",t))}}},on=(n(213),Object(s.a)(nn,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("demo-section",[n("demo-block",{attrs:{title:t.t("basicUsage")}},[n("van-rate",{model:{value:t.value1,callback:function(e){t.value1=e},expression:"value1"}})],1),n("demo-block",{attrs:{title:t.t("customIcon")}},[n("van-rate",{attrs:{icon:"like","void-icon":"like-o"},model:{value:t.value2,callback:function(e){t.value2=e},expression:"value2"}})],1),n("demo-block",{attrs:{title:t.t("customStyle")}},[n("van-rate",{attrs:{size:25,color:"#ffd21e","void-icon":"star","void-color":"#eee"},model:{value:t.value3,callback:function(e){t.value3=e},expression:"value3"}})],1),n("demo-block",{attrs:{title:t.t("halfStar")}},[n("van-rate",{attrs:{size:25,"allow-half":"","void-icon":"star","void-color":"#eee"},model:{value:t.value4,callback:function(e){t.value4=e},expression:"value4"}})],1),n("demo-block",{attrs:{title:t.t("customCount")}},[n("van-rate",{attrs:{count:6},model:{value:t.value5,callback:function(e){t.value5=e},expression:"value5"}})],1),n("demo-block",{attrs:{title:t.t("disabled")}},[n("van-rate",{attrs:{disabled:""},model:{value:t.value6,callback:function(e){t.value6=e},expression:"value6"}})],1),n("demo-block",{attrs:{title:t.t("readonly")}},[n("van-rate",{attrs:{readonly:""},model:{value:t.value6,callback:function(e){t.value6=e},expression:"value6"}})],1),t.isWeapp?t._e():n("demo-block",{attrs:{title:t.t("changeEvent")}},[n("van-rate",{on:{change:t.onChange},model:{value:t.value7,callback:function(e){t.value7=e},expression:"value7"}})],1)],1)}),[],!1,null,null,null).exports),an={i18n:{"zh-CN":{label:"地址",disabled:"禁用搜索框",inputAlign:"搜索框内容对齐",background:"自定义背景色",placeholder:"请输入搜索关键词",customButton:"自定义按钮",listenToEvents:"事件监听"},"en-US":{label:"Address",disabled:"Disabled",inputAlign:"Input Align",background:"Custom Background Color",placeholder:"Placeholder",customButton:"Custom Action Button",listenToEvents:"Listen to Events"}},data:function(){return{value1:"",value2:"",value3:"",value4:"",value5:"",value6:""}},methods:{onSearch:function(t){this.$toast(t)},onCancel:function(){this.$toast(this.t("cancel"))}}},sn=Object(s.a)(an,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("demo-section",[n("demo-block",{attrs:{title:t.t("basicUsage")}},[n("van-search",{attrs:{placeholder:t.t("placeholder")},model:{value:t.value1,callback:function(e){t.value1=e},expression:"value1"}})],1),n("demo-block",{attrs:{title:t.t("listenToEvents")}},[n("form",{attrs:{action:"/"}},[n("van-search",{attrs:{placeholder:t.t("placeholder"),"show-action":""},on:{search:t.onSearch,cancel:t.onCancel},model:{value:t.value5,callback:function(e){t.value5=e},expression:"value5"}})],1)]),n("demo-block",{attrs:{title:t.t("inputAlign")}},[n("van-search",{attrs:{placeholder:t.t("placeholder"),"input-align":"center"},model:{value:t.value4,callback:function(e){t.value4=e},expression:"value4"}})],1),n("demo-block",{attrs:{title:t.t("disabled")}},[n("van-search",{attrs:{placeholder:t.t("placeholder"),disabled:""},model:{value:t.value3,callback:function(e){t.value3=e},expression:"value3"}})],1),n("demo-block",{attrs:{title:t.t("background")}},[n("van-search",{attrs:{placeholder:t.t("placeholder"),shape:"round",background:"#4fc08d"},model:{value:t.value2,callback:function(e){t.value2=e},expression:"value2"}})],1),n("demo-block",{attrs:{title:t.t("customButton")}},[n("van-search",{attrs:{"show-action":"",label:t.t("label"),placeholder:t.t("placeholder")},on:{search:t.onSearch},scopedSlots:t._u([{key:"action",fn:function(){return[n("div",{on:{click:t.onSearch}},[t._v(t._s(t.t("search")))])]},proxy:!0}]),model:{value:t.value6,callback:function(e){t.value6=e},expression:"value6"}})],1)],1)}),[],!1,null,null,null).exports,ln={i18n:{"zh-CN":{qq:"QQ",name:"名称",link:"复制链接",title:"立即分享给好友",weibo:"微博",wechat:"微信",poster:"分享海报",qrcode:"二维码",multiLine:"展示多行选项",showSheet:"显示分享面板",withDesc:"展示描述信息",customIcon:"自定义图标",description:"描述信息",weappQrcode:"小程序码",wechatMoments:"朋友圈"},"en-US":{qq:"QQ",name:"Name",link:"Link",title:"Share",weibo:"Weibo",wechat:"Wechat",poster:"Poster",qrcode:"Qrcode",multiLine:"Multi Line",showSheet:"Show ShareSheet",withDesc:"Show Description",customIcon:"Custom Icon",description:"Description",weappQrcode:"Weapp Qrcode",wechatMoments:"Wechat Moments"}},data:function(){return{show:{basic:!1,withDesc:!1,multiLine:!1,customIcon:!1}}},computed:{options:function(){return[{name:this.t("wechat"),icon:"wechat"},{name:this.t("weibo"),icon:"weibo"},{name:this.t("link"),icon:"link"},{name:this.t("poster"),icon:"poster"},{name:this.t("qrcode"),icon:"qrcode"}]},multiLineOptions:function(){return[[{name:this.t("wechat"),icon:"wechat"},{name:this.t("wechatMoments"),icon:"wechat-moments"},{name:this.t("weibo"),icon:"weibo"},{name:this.t("qq"),icon:"qq"}],[{name:this.t("link"),icon:"link"},{name:this.t("poster"),icon:"poster"},{name:this.t("qrcode"),icon:"qrcode"},{name:this.t("weappQrcode"),icon:"weapp-qrcode"}]]},customIconOptions:function(){return[{name:this.t("name"),icon:"https://img01.yzcdn.cn/vant/custom-icon-fire.png"},{name:this.t("name"),icon:"https://img01.yzcdn.cn/vant/custom-icon-light.png"},{name:this.t("name"),icon:"https://img01.yzcdn.cn/vant/custom-icon-water.png"}]},optionsWithDesc:function(){return[{name:this.t("wechat"),icon:"wechat"},{name:this.t("weibo"),icon:"weibo"},{name:this.t("link"),icon:"link",description:this.t("description")},{name:this.t("poster"),icon:"poster"},{name:this.t("qrcode"),icon:"qrcode"}]}},methods:{onSelect:function(t){this.$toast(t.name),this.show.basic=!1,this.show.withDesc=!1,this.show.multiLine=!1,this.show.customIcon=!1}}},rn=(n(215),Object(s.a)(ln,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("demo-section",[n("demo-block",{attrs:{card:"",title:t.t("basicUsage")}},[n("van-cell",{attrs:{"is-link":"",title:t.t("showSheet")},on:{click:function(e){t.show.basic=!0}}}),n("van-share-sheet",{attrs:{title:t.t("title"),options:t.options},on:{select:t.onSelect},model:{value:t.show.basic,callback:function(e){t.$set(t.show,"basic",e)},expression:"show.basic"}})],1),n("demo-block",{attrs:{card:"",title:t.t("multiLine")}},[n("van-cell",{attrs:{"is-link":"",title:t.t("showSheet")},on:{click:function(e){t.show.multiLine=!0}}}),n("van-share-sheet",{attrs:{title:t.t("title"),options:t.multiLineOptions},on:{select:t.onSelect},model:{value:t.show.multiLine,callback:function(e){t.$set(t.show,"multiLine",e)},expression:"show.multiLine"}})],1),n("demo-block",{attrs:{card:"",title:t.t("customIcon")}},[n("van-cell",{attrs:{"is-link":"",title:t.t("showSheet")},on:{click:function(e){t.show.customIcon=!0}}}),n("van-share-sheet",{attrs:{options:t.customIconOptions},on:{select:t.onSelect},model:{value:t.show.customIcon,callback:function(e){t.$set(t.show,"customIcon",e)},expression:"show.customIcon"}})],1),n("demo-block",{attrs:{card:"",title:t.t("withDesc")}},[n("van-cell",{attrs:{"is-link":"",title:t.t("showSheet")},on:{click:function(e){t.show.withDesc=!0}}}),n("van-share-sheet",{attrs:{title:t.t("title"),options:t.optionsWithDesc,description:t.t("description")},on:{select:t.onSelect},model:{value:t.show.withDesc,callback:function(e){t.$set(t.show,"withDesc",e)},expression:"show.withDesc"}})],1)],1)}),[],!1,null,null,null).exports),cn={i18n:{"zh-CN":{title:"标签名",showBadge:"徽标提示",disabled:"禁用选项",changeEvent:"监听切换事件",selectTip:"你切换到了"},"en-US":{showBadge:"Show Badge",disabled:"Disabled",changeEvent:"Change Event",selectTip:"You select "}},data:function(){return{activeKey1:0,activeKey2:0,activeKey3:0,activeKey4:0}},methods:{onChange:function(t){this.$notify({type:"primary",message:this.t("selectTip")+" "+this.t("title")+(t+1)})}}},un=(n(217),Object(s.a)(cn,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("demo-section",[n("van-grid",{attrs:{"column-num":2,border:!1}},[n("van-grid-item",[n("h3",{staticClass:"demo-sidebar-title"},[t._v(t._s(t.t("basicUsage")))]),n("van-sidebar",{model:{value:t.activeKey1,callback:function(e){t.activeKey1=e},expression:"activeKey1"}},[n("van-sidebar-item",{attrs:{title:t.t("title")}}),n("van-sidebar-item",{attrs:{title:t.t("title")}}),n("van-sidebar-item",{attrs:{title:t.t("title")}})],1)],1),n("van-grid-item",[n("h3",{staticClass:"demo-sidebar-title"},[t._v(t._s(t.t("showBadge")))]),n("van-sidebar",{model:{value:t.activeKey2,callback:function(e){t.activeKey2=e},expression:"activeKey2"}},[n("van-sidebar-item",{attrs:{title:t.t("title"),dot:""}}),n("van-sidebar-item",{attrs:{title:t.t("title"),badge:"5"}}),n("van-sidebar-item",{attrs:{title:t.t("title"),badge:"99+"}})],1)],1),n("van-grid-item",[n("h3",{staticClass:"demo-sidebar-title"},[t._v(t._s(t.t("disabled")))]),n("van-sidebar",{model:{value:t.activeKey3,callback:function(e){t.activeKey3=e},expression:"activeKey3"}},[n("van-sidebar-item",{attrs:{title:t.t("title")}}),n("van-sidebar-item",{attrs:{title:t.t("title"),disabled:""}}),n("van-sidebar-item",{attrs:{title:t.t("title")}})],1)],1),n("van-grid-item",[n("h3",{staticClass:"demo-sidebar-title"},[t._v(t._s(t.t("changeEvent")))]),n("van-sidebar",{on:{change:t.onChange},model:{value:t.activeKey4,callback:function(e){t.activeKey4=e},expression:"activeKey4"}},[n("van-sidebar-item",{attrs:{title:t.t("title")+1}}),n("van-sidebar-item",{attrs:{title:t.t("title")+2}}),n("van-sidebar-item",{attrs:{title:t.t("title")+3}})],1)],1)],1)],1)}),[],!1,null,null,null).exports),dn={i18n:{"zh-CN":{showAvatar:"显示头像",showChildren:"显示子组件",title:"关于 Vant",desc:"Vant 是一套轻量、可靠的移动端 Vue 组件库,提供了丰富的基础组件和业务组件,帮助开发者快速搭建移动应用。"},"en-US":{showAvatar:"Show Avatar",showChildren:"Show Children",title:"About Vant",desc:"Vant is a set of Mobile UI Components built on Vue."}},data:function(){return{show:!1}}},pn=(n(219),Object(s.a)(dn,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("demo-section",[n("demo-block",{attrs:{title:t.t("basicUsage")}},[n("van-skeleton",{attrs:{title:"",row:3}})],1),n("demo-block",{attrs:{title:t.t("showAvatar")}},[n("van-skeleton",{attrs:{title:"",avatar:"",row:3}})],1),n("demo-block",{attrs:{title:t.t("showChildren")}},[n("van-switch",{attrs:{size:"24px"},model:{value:t.show,callback:function(e){t.show=e},expression:"show"}}),n("van-skeleton",{attrs:{title:"",avatar:"",row:3,loading:!t.show}},[n("div",{staticClass:"demo-preview"},[n("img",{attrs:{src:"https://img01.yzcdn.cn/vant/logo.png"}}),n("div",{staticClass:"demo-content"},[n("h3",[t._v(t._s(t.t("title")))]),n("p",[t._v(t._s(t.t("desc")))])])])])],1)],1)}),[],!1,null,null,null).exports);function mn(t){return void 0===t&&(t=!1),{goods_id:"1",quota:5,quota_used:0,start_sale_num:2,goods_info:{price:1,title:"测试商品",picture:"https://b.yzcdn.cn/vant/sku/shoes-1.png"},sku:{price:"1.00",stock_num:227,none_sku:!1,hide_stock:!1,collection_id:2261,tree:[{k:"颜色",k_s:"s1",k_id:"1",v:[{id:"1",name:"粉色",imgUrl:"https://b.yzcdn.cn/vant/sku/shoes-1.png"},{id:"2",name:"黄色",imgUrl:"https://b.yzcdn.cn/vant/sku/shoes-2.png"},{id:"3",name:"蓝色",imgUrl:"https://b.yzcdn.cn/vant/sku/shoes-3.png"}],largeImageMode:t},{k:"尺寸",k_s:"s2",k_id:"2",v:[{id:"1",name:"大"},{id:"2",name:"小"}]}],list:[{id:2259,s1:"2",s2:"1",price:100,discount:100,stock_num:110},{id:2260,s1:"3",s2:"1",price:100,discount:100,stock_num:99},{id:2257,s1:"1",s2:"1",price:100,discount:100,stock_num:111},{id:2258,s1:"1",s2:"2",price:100,discount:100,stock_num:6}],messages:[{datetime:"0",disable:!1,multiple:"0",name:"留言1",type:"text",required:"1"},{datetime:"0",disable:!1,multiple:0,name:"留言2",type:"id_no",required:0,extraDesc:"身份证号码为敏感信息,系统将会对其进行安全处理,请放心。如对收集原因有疑问,请联系商家。"},{datetime:"0",disable:!1,multiple:0,name:"留言3",type:"image",required:0},{datetime:"0",disable:!1,multiple:1,name:"留言4",type:"text",required:0},{datetime:"0",disable:!1,name:"数字",multiple:0,type:"tel",required:0},{datetime:"0",disable:!1,name:"邮件",multiple:0,type:"email",required:0},{datetime:"0",disable:!1,name:"日期",multiple:0,type:"date",required:0},{datetime:"0",disable:!1,name:"时间",multiple:0,type:"time",required:0}]},properties:[{k:"加料",k_id:124,is_multiple:!0,v:[{id:1224,name:"布丁",price:3},{id:1225,name:"波霸",price:4},{id:1226,name:"珍珠",price:5}]},{k:"非必选属性",k_id:125,is_multiple:!0,is_necessary:!1,v:[{id:1234,name:"属性1",price:3},{id:1235,name:"属性2",price:4}]},{k:"未加价的属性项",k_id:126,is_multiple:!0,v:[{id:1244,name:"属性a",price:0},{id:1245,name:"属性b",price:0}]},{k:"有禁用的属性",k_id:127,is_multiple:!1,is_necessary:!1,v:[{id:1271,name:"禁用的属性",price:0,text_status:0},{id:1272,name:"未禁用的属性",price:0,text_status:1}]}]}}var hn={s1:"1",s2:"1",selectedNum:3,selectedProp:{124:[1225,1226]}},vn=n(20),fn={i18n:{"zh-CN":{button1:"积分兑换",button2:"买买买",actionsTop:"商品不多,赶快购买吧",stepperTitle:"我要买",customBySlot:"通过插槽定制",customStepper:"自定义步进器",hideSoldoutSku:"隐藏售罄规格",largeImageMode:"大图预览模式"},"en-US":{button1:"Button",button2:"Button",actionsTop:"Action top info",customBySlot:"Custom By Slot",stepperTitle:"Stepper title",customStepper:"Custom Stepper",hideSoldoutSku:"Hide Soldout Sku",largeImageMode:"Large Image Mode"}},data:function(){var t=this;return this.skuData=mn(),this.skuData2=mn(!0),this.initialSku=hn,{showBase:!1,showCustom:!1,showStepper:!1,showSoldout:!1,showLargePicturePreview:!1,customSkuValidator:function(){return"请选择xxx"},customStepperConfig:{quotaText:"单次限购100件",stockFormatter:function(t){return"剩余"+t},handleOverLimit:function(e){var n=e.action,o=e.limitType,a=e.quota,i=e.startSaleNum,s=void 0===i?1:i;"minus"===n?t.$toast(s>1?s+"件起售":"至少选择一件商品"):"plus"===n&&(o===vn.a.QUOTA_LIMIT?t.$toast("限购"+a+"件"):t.$toast("库存不够了"))}},messageConfig:{initialMessages:{"留言1":"商品留言"},uploadImg:function(t,e){return new Promise((function(t){setTimeout((function(){return t(e)}),1e3)}))},uploadMaxSize:3}}},methods:{onBuyClicked:function(t){this.$toast("buy:"+JSON.stringify(t))},onAddCartClicked:function(t){this.$toast("add cart:"+JSON.stringify(t))},onPointClicked:function(){this.$toast("积分兑换")}}},bn=(n(221),Object(s.a)(fn,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("demo-section",[n("demo-block",{attrs:{title:t.t("basicUsage")}},[n("div",{staticClass:"sku-container"},[n("van-sku",{attrs:{sku:t.skuData.sku,quota:t.skuData.quota,goods:t.skuData.goods_info,"goods-id":t.skuData.goods_id,"quota-used":t.skuData.quota_used,properties:t.skuData.properties,"hide-stock":t.skuData.sku.hide_stock,"message-config":t.messageConfig,"start-sale-num":t.skuData.start_sale_num,"custom-sku-validator":t.customSkuValidator,"disable-stepper-input":"","reset-stepper-on-hide":"","safe-area-inset-bottom":"","reset-selected-sku-on-hide":""},on:{"buy-clicked":t.onBuyClicked,"add-cart":t.onAddCartClicked},model:{value:t.showBase,callback:function(e){t.showBase=e},expression:"showBase"}}),n("van-button",{attrs:{block:"",type:"primary"},on:{click:function(e){t.showBase=!0}}},[t._v("\n "+t._s(t.t("basicUsage"))+"\n ")])],1)]),n("demo-block",{attrs:{title:t.t("customStepper")}},[n("div",{staticClass:"sku-container"},[n("van-sku",{attrs:{sku:t.skuData.sku,quota:t.skuData.quota,goods:t.skuData.goods_info,"goods-id":t.skuData.goods_id,"quota-used":t.skuData.quota_used,properties:t.skuData.properties,"hide-stock":t.skuData.sku.hide_stock,"start-sale-num":t.skuData.start_sale_num,"message-config":t.messageConfig,"custom-stepper-config":t.customStepperConfig,"hide-quota-text":"","safe-area-inset-bottom":""},on:{"buy-clicked":t.onBuyClicked,"add-cart":t.onAddCartClicked},model:{value:t.showStepper,callback:function(e){t.showStepper=e},expression:"showStepper"}}),n("van-button",{attrs:{block:"",type:"primary"},on:{click:function(e){t.showStepper=!0}}},[t._v("\n "+t._s(t.t("customStepper"))+"\n ")])],1)]),n("demo-block",{attrs:{title:t.t("hideSoldoutSku")}},[n("div",{staticClass:"sku-container"},[n("van-sku",{attrs:{sku:t.skuData.sku,quota:t.skuData.quota,goods:t.skuData.goods_info,"goods-id":t.skuData.goods_id,"quota-used":t.skuData.quota_used,properties:t.skuData.properties,"hide-stock":t.skuData.sku.hide_stock,"message-config":t.messageConfig,"start-sale-num":t.skuData.start_sale_num,"show-soldout-sku":!1,"custom-stepper-config":t.customStepperConfig,"hide-quota-text":"","safe-area-inset-bottom":""},on:{"buy-clicked":t.onBuyClicked,"add-cart":t.onAddCartClicked},model:{value:t.showSoldout,callback:function(e){t.showSoldout=e},expression:"showSoldout"}}),n("van-button",{attrs:{block:"",type:"primary"},on:{click:function(e){t.showSoldout=!0}}},[t._v("\n "+t._s(t.t("hideSoldoutSku"))+"\n ")])],1)]),n("demo-block",{attrs:{title:t.t("largeImageMode")}},[n("div",{staticClass:"sku-container"},[n("van-sku",{attrs:{sku:t.skuData2.sku,quota:t.skuData2.quota,goods:t.skuData2.goods_info,"goods-id":t.skuData2.goods_id,"hide-stock":t.skuData2.sku.hide_stock,properties:t.skuData2.properties,"quota-used":t.skuData2.quota_used,"message-config":t.messageConfig,"start-sale-num":t.skuData2.start_sale_num,"show-header-image":!1,"custom-sku-validator":t.customSkuValidator,"disable-stepper-input":"","reset-stepper-on-hide":"","safe-area-inset-bottom":"","reset-selected-sku-on-hide":""},on:{"buy-clicked":t.onBuyClicked,"add-cart":t.onAddCartClicked},model:{value:t.showLargePicturePreview,callback:function(e){t.showLargePicturePreview=e},expression:"showLargePicturePreview"}}),n("van-button",{attrs:{block:"",type:"primary"},on:{click:function(e){t.showLargePicturePreview=!0}}},[t._v("\n "+t._s(t.t("largeImageMode"))+"\n ")])],1)]),n("demo-block",{attrs:{title:t.t("customBySlot")}},[n("div",{staticClass:"sku-container"},[n("van-sku",{attrs:{"stepper-title":t.t("stepperTitle"),sku:t.skuData.sku,goods:t.skuData.goods_info,"goods-id":t.skuData.goods_id,"hide-stock":t.skuData.sku.hide_stock,quota:t.skuData.quota,"quota-used":t.skuData.quota_used,"start-sale-num":t.skuData.start_sale_num,properties:t.skuData.properties,"show-add-cart-btn":"","reset-stepper-on-hide":"","safe-area-inset-bottom":"","initial-sku":t.initialSku,"message-config":t.messageConfig},on:{"buy-clicked":t.onBuyClicked,"add-cart":t.onAddCartClicked},scopedSlots:t._u([{key:"sku-header-price",fn:function(e){var o=e.price;return[n("div",{staticClass:"van-sku__goods-price"},[n("span",{staticClass:"van-sku__price-symbol"},[t._v("¥")]),n("span",{staticClass:"van-sku__price-num"},[t._v(t._s(o))])])]}},{key:"sku-actions-top",fn:function(){return[n("div",{staticClass:"van-sku-header-item text-center"},[t._v("\n "+t._s(t.t("actionsTop"))+"\n ")])]},proxy:!0},{key:"sku-actions",fn:function(e){var o=e.skuEventBus;return[n("div",{staticClass:"van-sku-actions"},[n("van-button",{attrs:{square:"",size:"large",type:"warning"},on:{click:t.onPointClicked}},[t._v("\n "+t._s(t.t("button1"))+"\n ")]),n("van-button",{attrs:{square:"",size:"large",type:"danger"},on:{click:function(t){return o.$emit("sku:buy")}}},[t._v("\n "+t._s(t.t("button2"))+"\n ")])],1)]}}]),model:{value:t.showCustom,callback:function(e){t.showCustom=e},expression:"showCustom"}}),n("van-button",{attrs:{block:"",type:"primary"},on:{click:function(e){t.showCustom=!0}}},[t._v("\n "+t._s(t.t("customBySlot"))+"\n ")])],1)])],1)}),[],!1,null,null,null).exports),gn={i18n:{"zh-CN":{title1:"基础用法",title2:"双滑块",title3:"指定选择范围",title4:"禁用",title5:"指定步长",customStyle:"自定义样式",customButton:"自定义按钮",text:"当前值:",vertical:"垂直方向"},"en-US":{title1:"Basic Usage",title2:"Dual thumb mode",title3:"Range",title4:"Disabled",title5:"Step size",customStyle:"Custom Style",customButton:"Custom Button",text:"Current value: ",vertical:"Vertical"}},data:function(){return{value1:50,value2:[20,60],value3:0,value4:50,value5:50,value6:50,value7:50,value8:50,value9:[20,60]}},methods:{onChange:function(t){this.$toast(this.t("text")+t)}}},kn=(n(223),Object(s.a)(gn,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("demo-section",[n("demo-block",{attrs:{title:t.t("title1")}},[n("van-slider",{on:{change:t.onChange},model:{value:t.value1,callback:function(e){t.value1=e},expression:"value1"}})],1),t.isWeapp?t._e():n("demo-block",{attrs:{title:t.t("title2")}},[n("van-slider",{attrs:{range:""},on:{change:t.onChange},model:{value:t.value2,callback:function(e){t.value2=e},expression:"value2"}})],1),n("demo-block",{attrs:{title:t.t("title3")}},[n("van-slider",{attrs:{min:-50,max:50},on:{change:t.onChange},model:{value:t.value3,callback:function(e){t.value3=e},expression:"value3"}})],1),n("demo-block",{attrs:{title:t.t("title4")}},[n("van-slider",{attrs:{disabled:""},model:{value:t.value4,callback:function(e){t.value4=e},expression:"value4"}})],1),n("demo-block",{attrs:{title:t.t("title5")}},[n("van-slider",{attrs:{step:10},on:{change:t.onChange},model:{value:t.value5,callback:function(e){t.value5=e},expression:"value5"}})],1),n("demo-block",{attrs:{title:t.t("customStyle")}},[n("van-slider",{attrs:{"bar-height":"4px","active-color":"#ee0a24"},on:{change:t.onChange},model:{value:t.value6,callback:function(e){t.value6=e},expression:"value6"}})],1),n("demo-block",{attrs:{title:t.t("customButton")}},[n("van-slider",{attrs:{"active-color":"#ee0a24"},scopedSlots:t._u([{key:"button",fn:function(){return[n("div",{staticClass:"custom-button"},[t._v(t._s(t.value7))])]},proxy:!0}]),model:{value:t.value7,callback:function(e){t.value7=e},expression:"value7"}})],1),t.isWeapp?t._e():n("demo-block",{attrs:{title:t.t("vertical")}},[n("div",{style:{height:"150px",paddingLeft:"30px"}},[n("van-slider",{attrs:{vertical:""},on:{change:t.onChange},model:{value:t.value8,callback:function(e){t.value8=e},expression:"value8"}}),n("van-slider",{staticStyle:{"margin-left":"100px"},attrs:{range:"",vertical:""},on:{change:t.onChange},model:{value:t.value9,callback:function(e){t.value9=e},expression:"value9"}})],1)])],1)}),[],!1,null,null,null).exports),xn={i18n:{"zh-CN":{step:"步长设置",range:"限制输入范围",integer:"限制输入整数",roundTheme:"圆角风格",asyncChange:"异步变更",customSize:"自定义大小",disableInput:"禁用输入框",decimalLength:"固定小数位数"},"en-US":{step:"Step",range:"Range",integer:"Integer",roundTheme:"Round Theme",asyncChange:"Async Change",customSize:"Custom Size",disableInput:"Disable Input",decimalLength:"Decimal Length"}},data:function(){return{stepper1:1,stepper2:1,stepper3:1,stepper4:1,stepper5:1,stepper6:1,stepper7:1,stepper8:1,stepperRound:1,disabledInput:1}},methods:{onChange:function(t){var e=this;this.$toast.loading({forbidClick:!0}),clearTimeout(this.timer),this.timer=setTimeout((function(){e.stepper6=t,e.$toast.clear()}),500)}}},yn=Object(s.a)(xn,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("demo-section",[n("van-cell",{attrs:{center:"",title:t.t("basicUsage")}},[n("van-stepper",{model:{value:t.stepper1,callback:function(e){t.stepper1=e},expression:"stepper1"}})],1),n("van-cell",{attrs:{center:"",title:t.t("step")}},[n("van-stepper",{attrs:{step:"2"},model:{value:t.stepper2,callback:function(e){t.stepper2=e},expression:"stepper2"}})],1),n("van-cell",{attrs:{center:"",title:t.t("range")}},[n("van-stepper",{attrs:{min:5,max:8},model:{value:t.stepper3,callback:function(e){t.stepper3=e},expression:"stepper3"}})],1),n("van-cell",{attrs:{center:"",title:t.t("integer")}},[n("van-stepper",{attrs:{integer:""},model:{value:t.stepper4,callback:function(e){t.stepper4=e},expression:"stepper4"}})],1),n("van-cell",{attrs:{center:"",title:t.t("disabled")}},[n("van-stepper",{attrs:{disabled:""},model:{value:t.stepper5,callback:function(e){t.stepper5=e},expression:"stepper5"}})],1),n("van-cell",{attrs:{center:"",title:t.t("disableInput")}},[n("van-stepper",{attrs:{"disable-input":""},model:{value:t.disabledInput,callback:function(e){t.disabledInput=e},expression:"disabledInput"}})],1),n("van-cell",{attrs:{center:"",title:t.t("decimalLength")}},[n("van-stepper",{attrs:{"decimal-length":1,step:"0.2"},model:{value:t.stepper8,callback:function(e){t.stepper8=e},expression:"stepper8"}})],1),n("van-cell",{attrs:{center:"",title:t.t("customSize")}},[n("van-stepper",{attrs:{"button-size":"32px","input-width":"40px"},model:{value:t.stepper7,callback:function(e){t.stepper7=e},expression:"stepper7"}})],1),n("van-cell",{attrs:{center:"",title:t.t("asyncChange")}},[n("van-stepper",{attrs:{value:t.stepper6,"async-change":""},on:{change:t.onChange}})],1),t.isWeapp?t._e():n("van-cell",{attrs:{center:"",title:t.t("roundTheme")}},[n("van-stepper",{attrs:{theme:"round","button-size":"22","disable-input":""},model:{value:t.stepperRound,callback:function(e){t.stepperRound=e},expression:"stepperRound"}})],1)],1)}),[],!1,null,null,null).exports,_n={i18n:{"zh-CN":{nextStep:"下一步",step1:"买家下单",step2:"商家接单",step3:"买家提货",step4:"交易完成",title2:"描述信息",title3:"竖向步骤条",status1:"【城市】物流状态1",status2:"【城市】物流状态",status3:"快件已发货",customStyle:"自定义样式"},"en-US":{nextStep:"Next Step",step1:"Step1",step2:"Step2",step3:"Step3",step4:"Step4",title2:"Description",title3:"Vertical Steps",status1:"【City】Status1",status2:"【City】Status2",status3:"【City】Status3",customStyle:"Custom Style"}},data:function(){return{active:1}},methods:{nextStep:function(){this.active=++this.active%4}}},wn=(n(225),Object(s.a)(_n,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("demo-section",[n("demo-block",{attrs:{title:t.t("basicUsage")}},[n("van-steps",{attrs:{active:t.active}},[n("van-step",[t._v(t._s(t.t("step1")))]),n("van-step",[t._v(t._s(t.t("step2")))]),n("van-step",[t._v(t._s(t.t("step3")))]),n("van-step",[t._v(t._s(t.t("step4")))])],1),n("van-button",{on:{click:t.nextStep}},[t._v(t._s(t.t("nextStep")))])],1),n("demo-block",{attrs:{title:t.t("customStyle")}},[n("van-steps",{attrs:{active:t.active,"active-icon":"success","inactive-icon":"arrow","active-color":"#38f"}},[n("van-step",[t._v(t._s(t.t("step1")))]),n("van-step",[t._v(t._s(t.t("step2")))]),n("van-step",[t._v(t._s(t.t("step3")))]),n("van-step",[t._v(t._s(t.t("step4")))])],1)],1),n("demo-block",{attrs:{title:t.t("title3")}},[n("van-steps",{attrs:{active:0,direction:"vertical"}},[n("van-step",[n("h3",[t._v(t._s(t.t("status1")))]),n("p",[t._v("2016-07-12 12:40")])]),n("van-step",[n("h3",[t._v(t._s(t.t("status2")))]),n("p",[t._v("2016-07-11 10:00")])]),n("van-step",[n("h3",[t._v(t._s(t.t("status3")))]),n("p",[t._v("2016-07-10 09:30")])])],1)],1)],1)}),[],!1,null,null,null).exports),Cn={i18n:{"zh-CN":{offsetTop:"吸顶距离",setContainer:"指定容器"},"en-US":{offsetTop:"Offset Top",setContainer:"Set Container"}},data:function(){return{container:null}},mounted:function(){this.container=this.$refs.container}},Sn=(n(227),Object(s.a)(Cn,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("demo-section",[n("demo-block",{attrs:{title:t.t("basicUsage")}},[n("van-sticky",[n("van-button",{staticStyle:{"margin-left":"15px"},attrs:{type:"primary"}},[t._v("\n "+t._s(t.t("basicUsage"))+"\n ")])],1)],1),n("demo-block",{attrs:{title:t.t("offsetTop")}},[n("van-sticky",{attrs:{"offset-top":50}},[n("van-button",{staticStyle:{"margin-left":"115px"},attrs:{type:"info"}},[t._v("\n "+t._s(t.t("offsetTop"))+"\n ")])],1)],1),t.isWeapp?t._e():n("demo-block",{attrs:{title:t.t("setContainer")}},[n("div",{ref:"container",staticStyle:{height:"150px","background-color":"#fff"}},[n("van-sticky",{attrs:{container:t.container}},[n("van-button",{staticStyle:{"margin-left":"215px"},attrs:{type:"warning"}},[t._v("\n "+t._s(t.t("setContainer"))+"\n ")])],1)],1)])],1)}),[],!1,null,null,null).exports),zn={i18n:{"zh-CN":{hairline:"1px 边框",ellipsis:"文字省略",animation:"动画",toggle:"切换动画",text1:"这是一段最多显示一行的文字,后面的内容会省略",text2:"这是一段最多显示两行的文字,后面的内容会省略。这是一段最多显示两行的文字,后面的内容会省略"},"en-US":{hairline:"Hairline",ellipsis:"Text Ellipsis",animation:"Animation",toggle:"Switch animation",text1:"This is a paragraph that displays up to one line of text, and the rest of the text will be omitted.",text2:"This is a paragraph that displays up to two lines of text, and the rest of the text will be omitted."}},data:function(){return{show:!1,transitionName:""}},methods:{animate:function(t){var e=this;this.show=!0,this.transitionName=t,setTimeout((function(){e.show=!1}),500)}}},In=(n(229),Object(s.a)(zn,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("demo-section",[n("demo-block",{attrs:{title:t.t("ellipsis")}},[n("div",{staticClass:"van-ellipsis"},[t._v(t._s(t.t("text1")))]),n("div",{staticClass:"van-multi-ellipsis--l2"},[t._v(t._s(t.t("text2")))])]),n("demo-block",{attrs:{card:"",title:t.t("hairline")}},[n("div",{staticClass:"van-hairline--top"})]),n("demo-block",{attrs:{card:"",title:t.t("animation")}},[n("van-cell",{attrs:{"is-link":"",title:"Fade"},on:{click:function(e){return t.animate("van-fade")}}}),n("van-cell",{attrs:{"is-link":"",title:"Slide Up"},on:{click:function(e){return t.animate("van-slide-up")}}}),n("van-cell",{attrs:{"is-link":"",title:"Slide Down"},on:{click:function(e){return t.animate("van-slide-down")}}}),n("van-cell",{attrs:{"is-link":"",title:"Slide Left"},on:{click:function(e){return t.animate("van-slide-left")}}}),n("van-cell",{attrs:{"is-link":"",title:"Slide Right"},on:{click:function(e){return t.animate("van-slide-right")}}})],1),n("transition",{attrs:{name:t.transitionName}},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.show,expression:"show"}],staticClass:"demo-animate-block"})])],1)}),[],!1,null,null,null).exports),Tn={i18n:{"zh-CN":{submit:"提交订单",tip1:"你的收货地址不支持同城送, 我们已为你推荐快递",tip2:"你的收货地址不支持同城送, ",tip3:"修改地址",check:"全选",clickButton:"点击按钮",clickLink:"修改地址"},"en-US":{submit:"Submit",tip1:"Some tips",tip2:"Some tips, ",tip3:"Link",check:"Label",clickButton:"Click button",clickLink:"Click Link"}},data:function(){return{checked:!0}},methods:{onClickButton:function(){this.$toast(this.t("clickButton"))},onClickLink:function(){this.$toast(this.t("clickLink"))}}},Dn=(n(231),Object(s.a)(Tn,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("demo-section",[n("demo-block",{attrs:{title:t.t("basicUsage")}},[n("van-submit-bar",{attrs:{price:3050,"button-text":t.t("submit")},on:{submit:t.onClickButton}})],1),n("demo-block",{attrs:{title:t.t("disabled")}},[n("van-submit-bar",{attrs:{disabled:"",price:3050,"button-text":t.t("submit"),tip:t.t("tip1"),"tip-icon":"info-o"},on:{submit:t.onClickButton}})],1),n("demo-block",{attrs:{title:t.t("loadingStatus")}},[n("van-submit-bar",{attrs:{loading:"",price:3050,"button-text":t.t("submit")},on:{submit:t.onClickButton}})],1),n("demo-block",{attrs:{title:t.t("advancedUsage")}},[n("van-submit-bar",{attrs:{price:3050,"button-text":t.t("submit")},on:{submit:t.onClickButton},scopedSlots:t._u([{key:"tip",fn:function(){return[t._v("\n "+t._s(t.t("tip2"))+"\n "),n("span",{staticClass:"edit-address",on:{click:t.onClickLink}},[t._v("\n "+t._s(t.t("tip3"))+"\n ")])]},proxy:!0}])},[n("van-checkbox",{model:{value:t.checked,callback:function(e){t.checked=e},expression:"checked"}},[t._v(t._s(t.t("check")))])],1)],1)],1)}),[],!1,null,null,null).exports),Un={i18n:{"zh-CN":{title2:"图片懒加载",title3:"监听 change 事件",title4:"纵向滚动",title5:"自定义滑块大小",title6:"自定义指示器",message:"当前 Swipe 索引:"},"en-US":{title2:"Image Lazyload",title3:"Change Event",title4:"Vertical Scrolling",title5:"Set SwipeItem Size",title6:"Custom indicator",message:"Current Swipe index:"}},data:function(){return{current:0,images:["https://img01.yzcdn.cn/vant/apple-1.jpg","https://img01.yzcdn.cn/vant/apple-2.jpg","https://img01.yzcdn.cn/vant/apple-3.jpg","https://img01.yzcdn.cn/vant/apple-4.jpg"]}},methods:{onChange1:function(t){this.$toast(this.t("message")+t)},onChange2:function(t){this.current=t}}},On=(n(233),Object(s.a)(Un,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("demo-section",[n("demo-block",{attrs:{title:t.t("basicUsage")}},[n("van-swipe",{attrs:{autoplay:3e3,"indicator-color":"white"}},[n("van-swipe-item",[t._v("1")]),n("van-swipe-item",[t._v("2")]),n("van-swipe-item",[t._v("3")]),n("van-swipe-item",[t._v("4")])],1)],1),n("demo-block",{attrs:{title:t.t("title2")}},[n("van-swipe",{attrs:{autoplay:3e3}},t._l(t.images,(function(t,e){return n("van-swipe-item",{key:e},[n("img",{directives:[{name:"lazy",rawName:"v-lazy",value:t,expression:"image"}]})])})),1)],1),n("demo-block",{attrs:{title:t.t("title3")}},[n("van-swipe",{attrs:{"indicator-color":"white"},on:{change:t.onChange1}},[n("van-swipe-item",[t._v("1")]),n("van-swipe-item",[t._v("2")]),n("van-swipe-item",[t._v("3")]),n("van-swipe-item",[t._v("4")])],1)],1),n("demo-block",{attrs:{title:t.t("title4")}},[n("van-swipe",{staticClass:"demo-swipe--vertical",staticStyle:{height:"200px"},attrs:{vertical:"",autoplay:3e3,"indicator-color":"white"}},[n("van-swipe-item",[t._v("1")]),n("van-swipe-item",[t._v("2")]),n("van-swipe-item",[t._v("3")]),n("van-swipe-item",[t._v("4")])],1)],1),n("demo-block",{attrs:{title:t.t("title5")}},[n("van-swipe",{attrs:{width:300,loop:!1,"indicator-color":"white"}},[n("van-swipe-item",[t._v("1")]),n("van-swipe-item",[t._v("2")]),n("van-swipe-item",[t._v("3")]),n("van-swipe-item",[t._v("4")])],1)],1),n("demo-block",{attrs:{title:t.t("title6")}},[n("van-swipe",{on:{change:t.onChange2},scopedSlots:t._u([{key:"indicator",fn:function(){return[n("div",{staticClass:"custom-indicator"},[t._v(t._s(t.current+1)+"/4")])]},proxy:!0}])},[n("van-swipe-item",[t._v("1")]),n("van-swipe-item",[t._v("2")]),n("van-swipe-item",[t._v("3")]),n("van-swipe-item",[t._v("4")])],1)],1)],1)}),[],!1,null,null,null).exports),Pn={i18n:{"zh-CN":{select:"选择",delete:"删除",collect:"收藏",title:"单元格",confirm:"确定删除吗?",cardTitle:"商品标题",beforeClose:"异步关闭",customContent:"自定义内容"},"en-US":{select:"Select",delete:"Delete",collect:"Collect",title:"Cell",confirm:"Are you sure to delete?",cardTitle:"Title",beforeClose:"Before Close",customContent:"Custom Content"}},data:function(){return{imageURL:"https://img01.yzcdn.cn/vant/ipad.jpeg"}},methods:{beforeClose:function(t){var e=t.position,n=t.instance;switch(e){case"left":case"cell":case"outside":n.close();break;case"right":this.$dialog.confirm({message:this.t("confirm")}).then((function(){n.close()}))}}}},Ln=(n(235),Object(s.a)(Pn,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("demo-section",[n("demo-block",{attrs:{title:t.t("basicUsage")}},[n("van-swipe-cell",{scopedSlots:t._u([{key:"left",fn:function(){return[n("van-button",{attrs:{square:"",type:"primary",text:t.t("select")}})]},proxy:!0},{key:"right",fn:function(){return[n("van-button",{attrs:{square:"",type:"danger",text:t.t("delete")}}),n("van-button",{attrs:{square:"",type:"primary",text:t.t("collect")}})]},proxy:!0}])},[n("van-cell",{attrs:{border:!1,title:t.t("title"),value:t.t("content")}})],1)],1),n("demo-block",{attrs:{title:t.t("customContent")}},[n("van-swipe-cell",{scopedSlots:t._u([{key:"right",fn:function(){return[n("van-button",{staticClass:"delete-button",attrs:{square:"",type:"danger",text:t.t("delete")}})]},proxy:!0}])},[n("van-card",{attrs:{num:"2",price:"2.00",desc:t.t("desc"),title:t.t("cardTitle"),thumb:t.imageURL}})],1)],1),n("demo-block",{attrs:{title:t.t("beforeClose")}},[n("van-swipe-cell",{attrs:{"before-close":t.beforeClose},scopedSlots:t._u([{key:"left",fn:function(){return[n("van-button",{attrs:{square:"",type:"primary",text:t.t("select")}})]},proxy:!0},{key:"right",fn:function(){return[n("van-button",{attrs:{square:"",type:"danger",text:t.t("delete")}})]},proxy:!0}])},[n("van-cell",{attrs:{border:!1,title:t.t("title"),value:t.t("content")}})],1)],1)],1)],1)}),[],!1,null,null,null).exports),Nn={i18n:{"zh-CN":{title:"标题",confirm:"提醒",message:"是否切换开关?",withCell:"搭配单元格使用",customSize:"自定义大小",customColor:"自定义颜色",asyncControl:"异步控制"},"en-US":{title:"Title",confirm:"Confirm",message:"Are you sure to toggle switch?",withCell:"Inside a Cell",customSize:"Custom Size",customColor:"Custom Color",asyncControl:"Async Control"}},data:function(){return{checked:!0,checked2:!0,checked3:!0,checked4:!0,checked5:!0,checked6:!1}},methods:{onInput:function(t){var e=this;this.$dialog.confirm({title:this.t("title"),message:this.t("message")}).then((function(){e.checked4=t}))}}},$n=(n(237),Object(s.a)(Nn,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("demo-section",[n("demo-block",{attrs:{title:t.t("basicUsage")}},[n("van-switch",{model:{value:t.checked,callback:function(e){t.checked=e},expression:"checked"}})],1),n("demo-block",{attrs:{title:t.t("disabled")}},[n("van-switch",{attrs:{disabled:""},model:{value:t.checked,callback:function(e){t.checked=e},expression:"checked"}})],1),n("demo-block",{attrs:{title:t.t("loadingStatus")}},[n("van-switch",{attrs:{loading:""},model:{value:t.checked,callback:function(e){t.checked=e},expression:"checked"}})],1),n("demo-block",{attrs:{title:t.t("customSize")}},[n("van-switch",{attrs:{size:"24px"},model:{value:t.checked2,callback:function(e){t.checked2=e},expression:"checked2"}})],1),n("demo-block",{attrs:{title:t.t("customColor")}},[n("van-switch",{attrs:{"active-color":"#ee0a24","inactive-color":"#dcdee0"},model:{value:t.checked3,callback:function(e){t.checked3=e},expression:"checked3"}})],1),n("demo-block",{attrs:{title:t.t("asyncControl")}},[n("van-switch",{attrs:{value:t.checked4},on:{input:t.onInput}})],1),n("demo-block",{attrs:{title:t.t("withCell")}},[n("van-cell",{attrs:{center:"",title:t.t("title")},scopedSlots:t._u([{key:"right-icon",fn:function(){return[n("van-switch",{attrs:{size:"24"},model:{value:t.checked5,callback:function(e){t.checked5=e},expression:"checked5"}})]},proxy:!0}])})],1)],1)}),[],!1,null,null,null).exports),Rn={data:function(){return{checked:!0}}},Bn=Object(s.a)(Rn,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("demo-section",[n("demo-block",{attrs:{title:t.t("basicUsage")}},[n("van-cell-group",[n("van-switch-cell",{attrs:{title:t.t("title")},model:{value:t.checked,callback:function(e){t.checked=e},expression:"checked"}})],1)],1),n("demo-block",{attrs:{title:t.t("disabled")}},[n("van-cell-group",[n("van-switch-cell",{attrs:{disabled:"",title:t.t("title")},model:{value:t.checked,callback:function(e){t.checked=e},expression:"checked"}})],1)],1),n("demo-block",{attrs:{title:t.t("loadingStatus")}},[n("van-cell-group",[n("van-switch-cell",{attrs:{loading:"",title:t.t("title")},model:{value:t.checked,callback:function(e){t.checked=e},expression:"checked"}})],1)],1)],1)}),[],!1,null,null,null).exports,An={i18n:{"zh-CN":{tab:"标签 ",title2:"标签栏滚动",title3:"禁用标签",title4:"样式风格",title5:"点击事件",title6:"粘性布局",title7:"自定义标签",title8:"切换动画",title9:"滑动切换",title10:"滚动导航",disabled:" 已被禁用",matchByName:"通过名称匹配",beforeChange:"异步切换"},"en-US":{tab:"Tab ",content:"content of tab",title2:"Swipe Tabs",title3:"Disabled Tab",title4:"Card Style",title5:"Click Event",title6:"Sticky",title7:"Custom Tab",title8:"Switch Animation",title9:"Swipeable",title10:"Scrollspy",disabled:" is disabled",matchByName:"Match By Name",beforeChange:"Before Change"}},data:function(){return{active:2,activeName:"b",tabs:[1,2,3,4]}},methods:{onClickDisabled:function(t,e){this.$toast(e+this.t("disabled"))},onClick:function(t,e){this.$toast(e)},beforeChange:function(t){return 1!==t&&new Promise((function(e){e(3!==t)}))}}},En=(n(239),Object(s.a)(An,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("demo-section",[n("demo-block",{attrs:{title:t.t("basicUsage")}},[n("van-tabs",{model:{value:t.active,callback:function(e){t.active=e},expression:"active"}},t._l(t.tabs,(function(e){return n("van-tab",{key:e,attrs:{title:t.t("tab")+e}},[t._v("\n "+t._s(t.t("content"))+" "+t._s(e)+"\n ")])})),1)],1),n("demo-block",{attrs:{title:t.t("matchByName")}},[n("van-tabs",{model:{value:t.activeName,callback:function(e){t.activeName=e},expression:"activeName"}},[n("van-tab",{attrs:{name:"a",title:t.t("tab")+1}},[t._v(" "+t._s(t.t("content"))+" 1 ")]),n("van-tab",{attrs:{name:"b",title:t.t("tab")+2}},[t._v(" "+t._s(t.t("content"))+" 2 ")]),n("van-tab",{attrs:{name:"c",title:t.t("tab")+3}},[t._v(" "+t._s(t.t("content"))+" 3 ")])],1)],1),n("demo-block",{attrs:{title:t.t("title2")}},[n("van-tabs",t._l(8,(function(e){return n("van-tab",{key:e,attrs:{title:t.t("tab")+e}},[t._v("\n "+t._s(t.t("content"))+" "+t._s(e)+"\n ")])})),1)],1),n("demo-block",{attrs:{title:t.t("title3")}},[n("van-tabs",{on:{disabled:t.onClickDisabled}},t._l(3,(function(e){return n("van-tab",{key:e,attrs:{title:t.t("tab")+e,disabled:2===e}},[t._v("\n "+t._s(t.t("content"))+" "+t._s(e)+"\n ")])})),1)],1),n("demo-block",{attrs:{title:t.t("title4")}},[n("van-tabs",{attrs:{type:"card"}},t._l(3,(function(e){return n("van-tab",{key:e,attrs:{title:t.t("tab")+e}},[t._v("\n "+t._s(t.t("content"))+" "+t._s(e)+"\n ")])})),1)],1),n("demo-block",{attrs:{title:t.t("title5")}},[n("van-tabs",{on:{click:t.onClick}},t._l(2,(function(e){return n("van-tab",{key:e,attrs:{title:t.t("tab")+e}},[t._v("\n "+t._s(t.t("content"))+" "+t._s(e)+"\n ")])})),1)],1),n("demo-block",{attrs:{title:t.t("title6")}},[n("van-tabs",{attrs:{active:t.active,sticky:""}},t._l(t.tabs,(function(e){return n("van-tab",{key:e,attrs:{title:t.t("tab")+e}},[t._v("\n "+t._s(t.t("content"))+" "+t._s(e)+"\n ")])})),1)],1),t.isWeapp?t._e():n("demo-block",{attrs:{title:t.t("title7")}},[n("van-tabs",{attrs:{active:t.active}},t._l(2,(function(e){return n("van-tab",{key:e,scopedSlots:t._u([{key:"title",fn:function(){return[n("van-icon",{attrs:{name:"more-o"}}),t._v(t._s(t.t("tab"))+" ")]},proxy:!0}],null,!0)},[t._v("\n "+t._s(t.t("content"))+" "+t._s(e)+"\n ")])})),1)],1),n("demo-block",{attrs:{title:t.t("title8")}},[n("van-tabs",{attrs:{animated:""}},t._l(t.tabs,(function(e){return n("van-tab",{key:e,attrs:{title:t.t("tab")+e}},[t._v("\n "+t._s(t.t("content"))+" "+t._s(e)+"\n ")])})),1)],1),n("demo-block",{attrs:{title:t.t("title9")}},[n("van-tabs",{attrs:{active:t.active,swipeable:""}},t._l(t.tabs,(function(e){return n("van-tab",{key:e,attrs:{title:t.t("tab")+e}},[t._v("\n "+t._s(t.t("content"))+" "+t._s(e)+"\n ")])})),1)],1),t.isWeapp?t._e():n("demo-block",{attrs:{title:t.t("title10")}},[n("van-tabs",{attrs:{scrollspy:"",sticky:""}},t._l(8,(function(e){return n("van-tab",{key:e,attrs:{title:t.t("tab")+e}},[t._v("\n "+t._s(t.t("content"))+" "+t._s(e)+"\n ")])})),1)],1),t.isWeapp?t._e():n("demo-block",{attrs:{title:t.t("beforeChange")}},[n("van-tabs",{attrs:{"before-change":t.beforeChange}},t._l(4,(function(e){return n("van-tab",{key:e,attrs:{title:t.t("tab")+e}},[t._v("\n "+t._s(t.t("content"))+" "+t._s(e)+"\n ")])})),1)],1)],1)}),[],!1,null,null,null).exports),Mn={i18n:{"zh-CN":{badge:"徽标提示",customIcon:"自定义图标",customColor:"自定义颜色",matchByName:"通过名称匹配",switchEvent:"监听切换事件",selectTip:"你切换到了"},"en-US":{badge:"Show Badge",customIcon:"Custom Icon",customColor:"Custom Color",matchByName:"Match by name",switchEvent:"Change Event",selectTip:"You select "}},data:function(){return{active:0,active2:0,active3:0,active4:0,active5:0,activeName:"home",icon:{active:"https://img01.yzcdn.cn/vant/user-active.png",inactive:"https://img01.yzcdn.cn/vant/user-inactive.png"}}},methods:{onChange:function(t){this.$notify({type:"primary",message:this.t("selectTip")+" "+this.t("tab")+(t+1)})}}},jn=(n(241),Object(s.a)(Mn,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("demo-section",[n("demo-block",{attrs:{title:t.t("basicUsage")}},[n("van-tabbar",{model:{value:t.active,callback:function(e){t.active=e},expression:"active"}},[n("van-tabbar-item",{attrs:{icon:"home-o"}},[t._v(t._s(t.t("tab")))]),n("van-tabbar-item",{attrs:{icon:"search"}},[t._v(t._s(t.t("tab")))]),n("van-tabbar-item",{attrs:{icon:"friends-o"}},[t._v(t._s(t.t("tab")))]),n("van-tabbar-item",{attrs:{icon:"setting-o"}},[t._v(t._s(t.t("tab")))])],1)],1),n("demo-block",{attrs:{title:t.t("matchByName")}},[n("van-tabbar",{model:{value:t.activeName,callback:function(e){t.activeName=e},expression:"activeName"}},[n("van-tabbar-item",{attrs:{name:"home",icon:"home-o"}},[t._v("\n "+t._s(t.t("tab"))+"\n ")]),n("van-tabbar-item",{attrs:{name:"search",icon:"search"}},[t._v("\n "+t._s(t.t("tab"))+"\n ")]),n("van-tabbar-item",{attrs:{name:"friends",icon:"friends-o"}},[t._v("\n "+t._s(t.t("tab"))+"\n ")]),n("van-tabbar-item",{attrs:{name:"setting",icon:"setting-o"}},[t._v("\n "+t._s(t.t("tab"))+"\n ")])],1)],1),n("demo-block",{attrs:{title:t.t("badge")}},[n("van-tabbar",{model:{value:t.active2,callback:function(e){t.active2=e},expression:"active2"}},[n("van-tabbar-item",{attrs:{icon:"home-o"}},[t._v(t._s(t.t("tab")))]),n("van-tabbar-item",{attrs:{icon:"search",dot:""}},[t._v(t._s(t.t("tab")))]),n("van-tabbar-item",{attrs:{icon:"friends-o",badge:"5"}},[t._v("\n "+t._s(t.t("tab"))+"\n ")]),n("van-tabbar-item",{attrs:{icon:"setting-o",badge:"20"}},[t._v("\n "+t._s(t.t("tab"))+"\n ")])],1)],1),n("demo-block",{attrs:{title:t.t("customIcon")}},[n("van-tabbar",{model:{value:t.active3,callback:function(e){t.active3=e},expression:"active3"}},[n("van-tabbar-item",{attrs:{badge:"3"},scopedSlots:t._u([{key:"icon",fn:function(e){return[n("img",{attrs:{src:e.active?t.icon.active:t.icon.inactive}})]}}])},[n("span",[t._v(t._s(t.t("custom")))])]),n("van-tabbar-item",{attrs:{icon:"search"}},[t._v(t._s(t.t("tab")))]),n("van-tabbar-item",{attrs:{icon:"setting-o"}},[t._v(t._s(t.t("tab")))])],1)],1),n("demo-block",{attrs:{title:t.t("customColor")}},[n("van-tabbar",{attrs:{"active-color":"#ee0a24","inactive-color":"#000"},model:{value:t.active4,callback:function(e){t.active4=e},expression:"active4"}},[n("van-tabbar-item",{attrs:{icon:"home-o"}},[t._v(t._s(t.t("tab")))]),n("van-tabbar-item",{attrs:{icon:"search"}},[t._v(t._s(t.t("tab")))]),n("van-tabbar-item",{attrs:{icon:"friends-o"}},[t._v(t._s(t.t("tab")))]),n("van-tabbar-item",{attrs:{icon:"setting-o"}},[t._v(t._s(t.t("tab")))])],1)],1),n("demo-block",{attrs:{title:t.t("switchEvent")}},[n("van-tabbar",{on:{change:t.onChange},model:{value:t.active5,callback:function(e){t.active5=e},expression:"active5"}},[n("van-tabbar-item",{attrs:{icon:"home-o"}},[t._v(t._s(t.t("tab")+1))]),n("van-tabbar-item",{attrs:{icon:"search"}},[t._v(t._s(t.t("tab")+2))]),n("van-tabbar-item",{attrs:{icon:"friends-o"}},[t._v(t._s(t.t("tab")+3))]),n("van-tabbar-item",{attrs:{icon:"setting-o"}},[t._v(t._s(t.t("tab")+4))])],1)],1)],1)}),[],!1,null,null,null).exports),Fn={i18n:{"zh-CN":{type:"类型",mark:"标记样式",plain:"空心样式",round:"圆角样式",tagStyle:"样式风格",closeable:"可关闭标签",smallSize:"小号标签",largeSize:"大号标签",mediumSize:"中号标签",customSize:"标签大小",customColor:"自定义颜色",customBgColor:"背景颜色",customTextColor:"文字颜色",customPlainColor:"空心颜色"},"en-US":{mark:"Mark style",plain:"Plain style",round:"Round style",tagStyle:"Tag Style",closeable:"Closeable",smallSize:"Small Size",largeSize:"Large Size",mediumSize:"Medium Size",customColor:"Custom Color",customSize:"Custom Size",customBgColor:"Background Color",customTextColor:"Text Color",customPlainColor:"Plain Color"}},data:function(){return{show:!0}},methods:{close:function(){this.show=!1}}},qn=(n(243),Object(s.a)(Fn,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("demo-section",[n("demo-block",{attrs:{card:"",title:t.t("basicUsage")}},[n("van-cell",{attrs:{title:"primary "+t.t("type")}},[n("van-tag",{attrs:{type:"primary"}},[t._v(t._s(t.t("tag")))])],1),n("van-cell",{attrs:{title:"success "+t.t("type")}},[n("van-tag",{attrs:{type:"success"}},[t._v(t._s(t.t("tag")))])],1),n("van-cell",{attrs:{title:"danger "+t.t("type")}},[n("van-tag",{attrs:{type:"danger"}},[t._v(t._s(t.t("tag")))])],1),n("van-cell",{attrs:{title:"warning "+t.t("type")}},[n("van-tag",{attrs:{type:"warning"}},[t._v(t._s(t.t("tag")))])],1)],1),n("demo-block",{attrs:{card:"",title:t.t("tagStyle")}},[n("van-cell",{attrs:{title:t.t("plain")}},[n("van-tag",{attrs:{plain:"",type:"primary"}},[t._v(t._s(t.t("tag")))])],1),n("van-cell",{attrs:{title:t.t("round")}},[n("van-tag",{attrs:{round:"",type:"primary"}},[t._v(t._s(t.t("tag")))])],1),n("van-cell",{attrs:{title:t.t("mark")}},[n("van-tag",{attrs:{mark:"",type:"primary"}},[t._v(t._s(t.t("tag")))])],1),n("van-cell",{attrs:{title:t.t("closeable")}},[t.show?n("van-tag",{attrs:{size:"medium",closeable:"",type:"primary"},on:{close:t.close}},[t._v("\n "+t._s(t.t("tag"))+"\n ")]):t._e()],1)],1),n("demo-block",{attrs:{card:"",title:t.t("customSize")}},[n("van-cell",{attrs:{title:t.t("smallSize")}},[n("van-tag",{attrs:{type:"primary"}},[t._v(t._s(t.t("tag")))])],1),n("van-cell",{attrs:{title:t.t("mediumSize")}},[n("van-tag",{attrs:{type:"primary",size:"medium"}},[t._v(t._s(t.t("tag")))])],1),n("van-cell",{attrs:{title:t.t("largeSize")}},[n("van-tag",{attrs:{type:"primary",size:"large"}},[t._v(t._s(t.t("tag")))])],1)],1),n("demo-block",{attrs:{card:"",title:t.t("customColor")}},[n("van-cell",{attrs:{title:t.t("customBgColor")}},[n("van-tag",{attrs:{color:"#7232dd"}},[t._v(t._s(t.t("tag")))])],1),n("van-cell",{attrs:{title:t.t("customTextColor")}},[n("van-tag",{attrs:{color:"#ffe1e1","text-color":"#ad0000"}},[t._v(t._s(t.t("tag")))])],1),n("van-cell",{attrs:{title:t.t("customPlainColor")}},[n("van-tag",{attrs:{color:"#7232dd",plain:""}},[t._v(t._s(t.t("tag")))])],1)],1)],1)}),[],!1,null,null,null).exports),Wn={i18n:{"zh-CN":{fail:"失败提示",text:"提示内容",text2:"成功文案",text3:"失败文案",text4:function(t){return"倒计时 "+t+" 秒"},title1:"文字提示",title2:"加载提示",title3:"成功/失败提示",success:"成功提示",customIcon:"自定义图标",customImage:"自定义图片",loadingType:"自定义加载图标",positionTop:"顶部展示",updateMessage:"动态更新提示",positionBottom:"底部展示",customPosition:"自定义位置"},"en-US":{fail:"Fail",text:"Some messages",text2:"Success",text3:"Fail",text4:function(t){return t+" seconds"},title1:"Text",title2:"Loading",title3:"Success/Fail",success:"Success",customIcon:"Custom Icon",customImage:"Custom Image",loadingType:"Loading Type",positionTop:"Top",updateMessage:"Update Message",positionBottom:"Bottom",customPosition:"Custom Position"}},methods:{showLoadingToast:function(t){this.$toast.loading({forbidClick:!0,message:this.t("loading"),loadingType:t})},showSuccessToast:function(){this.$toast.success(this.t("text2"))},showFailToast:function(){this.$toast.fail(this.t("text3"))},showTopToast:function(){this.$toast({message:this.t("positionTop"),position:"top"})},showBottomToast:function(){this.$toast({message:this.t("positionBottom"),position:"bottom"})},showIconToast:function(){this.$toast({message:this.t("customIcon"),icon:"like-o"})},showImageToast:function(){this.$toast({message:this.t("customImage"),icon:"https://img01.yzcdn.cn/vant/logo.png"})},showCustomizedToast:function(){var t=this,e=this.$toast.loading({duration:0,forbidClick:!0,message:this.t("text4",3)}),n=3,o=setInterval((function(){--n?e.message=t.t("text4",n):(clearInterval(o),t.$toast.clear())}),1e3)}}},Kn=Object(s.a)(Wn,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("demo-section",[n("demo-block",{attrs:{card:"",title:t.t("basicUsage")}},[n("van-cell",{attrs:{"is-link":"",title:t.t("title1")},on:{click:function(e){t.$toast(t.t("text"))}}}),n("van-cell",{attrs:{"is-link":"",title:t.t("title2")},on:{click:function(e){return t.showLoadingToast()}}}),n("van-cell",{attrs:{"is-link":"",title:t.t("success")},on:{click:t.showSuccessToast}}),n("van-cell",{attrs:{"is-link":"",title:t.t("fail")},on:{click:t.showFailToast}})],1),t.isWeapp?t._e():n("demo-block",{attrs:{card:"",title:t.t("customIcon")}},[n("van-cell",{attrs:{"is-link":"",title:t.t("customIcon")},on:{click:t.showIconToast}}),n("van-cell",{attrs:{"is-link":"",title:t.t("customImage")},on:{click:t.showImageToast}}),n("van-cell",{attrs:{"is-link":"",title:t.t("loadingType")},on:{click:function(e){return t.showLoadingToast("spinner")}}})],1),t.isWeapp?t._e():n("demo-block",{attrs:{card:"",title:t.t("customPosition")}},[n("van-cell",{attrs:{"is-link":"",title:t.t("positionTop")},on:{click:t.showTopToast}}),n("van-cell",{attrs:{"is-link":"",title:t.t("positionBottom")},on:{click:t.showBottomToast}})],1),n("demo-block",{attrs:{card:"",title:t.t("updateMessage")}},[n("van-cell",{attrs:{"is-link":"",title:t.t("updateMessage")},on:{click:t.showCustomizedToast}})],1)],1)}),[],!1,null,null,null).exports,Gn={i18n:{"zh-CN":{showBadge:"徽标提示",radioMode:"单选模式",multipleMode:"多选模式",customContent:"自定义内容",data:[{text:"浙江",children:[{text:"杭州",id:1},{text:"温州",id:2},{text:"宁波",id:3,disabled:!0},{text:"义乌",id:4}]},{text:"江苏",children:[{text:"南京",id:5},{text:"无锡",id:6},{text:"徐州",id:7},{text:"苏州",id:8}]},{text:"福建",disabled:!0,children:[{text:"泉州",id:9},{text:"厦门",id:10}]}],dataSimple:[{text:"分组 1"},{text:"分组 2"}]},"en-US":{showBadge:"Show Badge",radioMode:"Radio Mode",multipleMode:"Multiple Mode",customContent:"Custom Content",data:[{text:"Group 1",children:[{text:"Delaware",id:1},{text:"Florida",id:2},{text:"Georqia",id:3,disabled:!0},{text:"Indiana",id:4}]},{text:"Group 2",children:[{text:"Alabama",id:5},{text:"Kansas",id:6},{text:"Louisiana",id:7},{text:"Texas",id:8}]},{text:"Group 3",disabled:!0,children:[{text:"Alabama",id:9},{text:"Kansas",id:10}]}],dataSimple:[{text:"Group 1"},{text:"Group 2"}]}},data:function(){return{activeId:1,activeId2:1,activeIds:[1,2],activeIndex:0,activeIndex2:0,activeIndex3:0,activeIndex4:0}},computed:{items:function(){return this.t("data")},simpleItems:function(){return this.t("dataSimple")},badgeItems:function(){var t=Object(H.a)(this.t("data")).slice(0,2);return t[0].dot=!0,t[1].badge=5,t}}},Vn=Object(s.a)(Gn,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("demo-section",[n("demo-block",{attrs:{title:t.t("radioMode")}},[n("van-tree-select",{attrs:{items:t.items,"active-id":t.activeId,"main-active-index":t.activeIndex},on:{"update:activeId":function(e){t.activeId=e},"update:active-id":function(e){t.activeId=e},"update:mainActiveIndex":function(e){t.activeIndex=e},"update:main-active-index":function(e){t.activeIndex=e}}})],1),n("demo-block",{attrs:{title:t.t("multipleMode")}},[n("van-tree-select",{attrs:{items:t.items,"active-id":t.activeIds,"main-active-index":t.activeIndex2},on:{"update:activeId":function(e){t.activeIds=e},"update:active-id":function(e){t.activeIds=e},"update:mainActiveIndex":function(e){t.activeIndex2=e},"update:main-active-index":function(e){t.activeIndex2=e}}})],1),n("demo-block",{attrs:{title:t.t("customContent")}},[n("van-tree-select",{attrs:{height:"55vw",items:t.simpleItems,"main-active-index":t.activeIndex3},on:{"update:mainActiveIndex":function(e){t.activeIndex3=e},"update:main-active-index":function(e){t.activeIndex3=e}},scopedSlots:t._u([{key:"content",fn:function(){return[0===t.activeIndex3?n("van-image",{attrs:{"show-loading":!1,src:"https://img01.yzcdn.cn/vant/apple-1.jpg"}}):t._e(),1===t.activeIndex3?n("van-image",{attrs:{"show-loading":!1,src:"https://img01.yzcdn.cn/vant/apple-2.jpg"}}):t._e()]},proxy:!0}])})],1),n("demo-block",{attrs:{title:t.t("showBadge")}},[n("van-tree-select",{attrs:{height:"55vw",items:t.badgeItems,"active-id":t.activeId2,"main-active-index":t.activeIndex4},on:{"update:activeId":function(e){t.activeId2=e},"update:active-id":function(e){t.activeId2=e},"update:mainActiveIndex":function(e){t.activeIndex4=e},"update:main-active-index":function(e){t.activeIndex4=e}}})],1)],1)}),[],!1,null,null,null).exports,Hn={i18n:{"zh-CN":{status:"上传状态",failed:"上传失败",upload:"上传文件",preview:"文件预览",maxSize:"限制上传大小",disabled:"禁用文件上传",maxCount:"限制上传数量",uploading:"上传中...",imageName:"图片名称",beforeRead:"上传前置处理",overSizeTip:"文件大小不能超过 500kb",invalidType:"请上传 jpg 格式图片",customUpload:"自定义上传样式",previewCover:"自定义预览样式",customPreviewImage:"自定义单个图片预览",deleteMessage:"删除前置处理"},"en-US":{status:"Upload Status",failed:"Failed",upload:"Upload File",preview:"Preview File",maxSize:"Max Size",disabled:"Disable Uploader",maxCount:"Max Count",uploading:"Uploading...",imageName:"Image Name",beforeRead:"Before Read",overSizeTip:"File size cannot exceed 500kb",invalidType:"Please upload an image in jpg format",customUpload:"Custom Upload Area",previewCover:"Preview Cover",customPreviewImage:"Custom single prevew image",deleteMessage:"Before Delete"}},data:function(){var t=this;return{fileList:[{url:"https://img01.yzcdn.cn/vant/leaf.jpg"},{url:"https://img01.yzcdn.cn/vant/tree.jpg"}],fileList2:[{url:"https://img01.yzcdn.cn/vant/sand.jpg"}],fileList3:[],fileList4:[{url:"https://img01.yzcdn.cn/vant/sand.jpg"}],fileList5:[{url:"https://img01.yzcdn.cn/vant/leaf.jpg"},{url:"https://img01.yzcdn.cn/vant/sand.jpg",deletable:!0,beforeDelete:function(){t.$toast(t.t("deleteMessage"))}},{url:"https://img01.yzcdn.cn/vant/tree.jpg",deletable:!0,imageFit:"contain",previewSize:120}],statusFileList:[],previewCoverFiles:[]}},created:function(){this.statusFileList.push({url:"https://img01.yzcdn.cn/vant/leaf.jpg",status:"uploading",message:this.t("uploading")},{url:"https://img01.yzcdn.cn/vant/tree.jpg",status:"failed",message:this.t("failed")}),this.previewCoverFiles.push({url:"https://img01.yzcdn.cn/vant/leaf.jpg",file:{name:this.t("imageName")}})},methods:{beforeRead:function(t){return"image/jpeg"===t.type||(this.$toast(this.t("invalidType")),!1)},afterRead:function(t,e){console.log(t,e)},afterReadFailed:function(t){var e=this;t.status="uploading",t.message=this.t("uploading"),setTimeout((function(){t.status="failed",t.message=e.t("failed")}),1e3)},onOversize:function(t,e){console.log(t,e),this.$toast(this.t("overSizeTip"))}}},Yn=(n(245),Object(s.a)(Hn,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("demo-section",[n("demo-block",{attrs:{title:t.t("basicUsage")}},[n("van-uploader",{attrs:{"after-read":t.afterRead}})],1),n("demo-block",{attrs:{title:t.t("preview")}},[n("van-uploader",{attrs:{multiple:"",accept:"*"},model:{value:t.fileList,callback:function(e){t.fileList=e},expression:"fileList"}})],1),t.isWeapp?t._e():n("demo-block",{attrs:{title:t.t("status")}},[n("van-uploader",{attrs:{"after-read":t.afterReadFailed},model:{value:t.statusFileList,callback:function(e){t.statusFileList=e},expression:"statusFileList"}})],1),n("demo-block",{attrs:{title:t.t("maxCount")}},[n("van-uploader",{attrs:{multiple:"","max-count":2},model:{value:t.fileList2,callback:function(e){t.fileList2=e},expression:"fileList2"}})],1),n("demo-block",{attrs:{title:t.t("maxSize")}},[n("van-uploader",{attrs:{multiple:"","max-size":512e3},on:{oversize:t.onOversize},model:{value:t.fileList4,callback:function(e){t.fileList4=e},expression:"fileList4"}})],1),n("demo-block",{attrs:{title:t.t("customUpload")}},[n("van-uploader",[n("van-button",{attrs:{type:"primary",icon:"plus"}},[t._v("\n "+t._s(t.t("upload"))+"\n ")])],1)],1),n("demo-block",{attrs:{title:t.t("previewCover")}},[n("van-uploader",{scopedSlots:t._u([{key:"preview-cover",fn:function(e){var o=e.file;return[n("div",{staticClass:"preview-cover van-ellipsis"},[t._v(t._s(o.name))])]}}]),model:{value:t.previewCoverFiles,callback:function(e){t.previewCoverFiles=e},expression:"previewCoverFiles"}})],1),n("demo-block",{attrs:{title:t.t("beforeRead")}},[n("van-uploader",{attrs:{"before-read":t.beforeRead},model:{value:t.fileList3,callback:function(e){t.fileList3=e},expression:"fileList3"}})],1),n("demo-block",{attrs:{title:t.t("disabled")}},[n("van-uploader",{attrs:{"after-read":t.afterRead,disabled:""}})],1),n("demo-block",{attrs:{title:t.t("customPreviewImage")}},[n("van-uploader",{attrs:{multiple:"",accept:"*",deletable:!1},model:{value:t.fileList5,callback:function(e){t.fileList5=e},expression:"fileList5"}})],1)],1)}),[],!1,null,null,null).exports);o.a.use(v.a),x.name="demo-action-sheet",S.name="demo-address-edit",T.name="demo-address-list",L.name="demo-area",R.name="demo-badge",E.name="demo-button",q.name="demo-calendar",G.name="demo-card",J.name="demo-cascader",et.name="demo-cell",at.name="demo-checkbox",ct.name="demo-circle",pt.name="demo-col",ht.name="demo-collapse",bt.name="demo-contact-card",kt.name="demo-contact-edit",yt.name="demo-contact-list",wt.name="demo-count-down",St.name="demo-coupon-list",It.name="demo-datetime-picker",Dt.name="demo-dialog",Ot.name="demo-divider",Lt.name="demo-dropdown-menu",$t.name="demo-empty",Vt.name="demo-field",ae.name="demo-form",se.name="demo-goods-action",re.name="demo-grid",de.name="demo-icon",me.name="demo-image",be.name="demo-image-preview",ke.name="demo-index-bar",ye.name="demo-lazyload",we.name="demo-list",Se.name="demo-loading",Ie.name="demo-nav-bar",De.name="demo-notice-bar",Oe.name="demo-notify",Le.name="demo-number-keyboard",$e.name="demo-overlay",Be.name="demo-pagination",Ee.name="demo-panel",je.name="demo-password-input",Ke.name="demo-picker",Ve.name="demo-popover",Ye.name="demo-popup",Ze.name="demo-progress",Qe.name="demo-pull-refresh",en.name="demo-radio",on.name="demo-rate",sn.name="demo-search",rn.name="demo-share-sheet",un.name="demo-sidebar",pn.name="demo-skeleton",bn.name="demo-sku",kn.name="demo-slider",yn.name="demo-stepper",wn.name="demo-steps",Sn.name="demo-sticky",In.name="demo-style",Dn.name="demo-submit-bar",On.name="demo-swipe",Ln.name="demo-swipe-cell",$n.name="demo-switch",Bn.name="demo-switch-cell",En.name="demo-tab",jn.name="demo-tabbar",qn.name="demo-tag",Kn.name="demo-toast",Vn.name="demo-tree-select",Yn.name="demo-uploader";var Xn={ActionSheet:x,AddressEdit:S,AddressList:T,Area:L,Badge:R,Button:E,Calendar:q,Card:G,Cascader:J,Cell:et,Checkbox:at,Circle:ct,Col:pt,Collapse:ht,ContactCard:bt,ContactEdit:kt,ContactList:yt,CountDown:wt,CouponList:St,DatetimePicker:It,Dialog:Dt,Divider:Ot,DropdownMenu:Lt,Empty:$t,Field:Vt,Form:ae,GoodsAction:se,Grid:re,Icon:de,Image:me,ImagePreview:be,IndexBar:ke,Lazyload:ye,List:we,Loading:Se,NavBar:Ie,NoticeBar:De,Notify:Oe,NumberKeyboard:Le,Overlay:$e,Pagination:Be,Panel:Ee,PasswordInput:je,Picker:Ke,Popover:Ve,Popup:Ye,Progress:Ze,PullRefresh:Qe,Radio:en,Rate:on,Search:sn,ShareSheet:rn,Sidebar:un,Skeleton:pn,Sku:bn,Slider:kn,Stepper:yn,Steps:wn,Sticky:Sn,Style:In,SubmitBar:Dn,Swipe:On,SwipeCell:Ln,Switch:$n,SwitchCell:Bn,Tab:En,Tabbar:jn,Tag:qn,Toast:Kn,TreeSelect:Vn,Uploader:Yn},Zn={defaultLang:"en-US",versions:[{label:"v1",link:"/vant/v1/"},{label:"v3",link:"/vant/v3/"},{label:"v4",link:"/vant/v4/"}],baiduAnalytics:{seed:"af5d41bc4e446e76665dbe3ec18d55c3"},htmlPluginOptions:{meta:{"docsearch:version":"v2"}},locales:{"zh-CN":{title:"Vant 2",description:"轻量、可靠的移动端组件库",logo:"https://img01.yzcdn.cn/vant/logo.png",langLabel:"中文",links:[{logo:"https://b.yzcdn.cn/vant/logo/weapp.svg",url:"/vant-weapp"},{logo:"https://b.yzcdn.cn/vant/logo/github.svg",url:"https://github.com/vant-ui/vant"}],nav:[{title:"基础组件",items:[{path:"button",title:"Button 按钮"},{path:"cell",title:"Cell 单元格"},{path:"icon",title:"Icon 图标"},{path:"image",title:"Image 图片"},{path:"col",title:"Layout 布局"},{path:"popup",title:"Popup 弹出层"},{path:"style",title:"Style 内置样式"},{path:"toast",title:"Toast 轻提示"}]},{title:"表单组件",items:[{path:"calendar",title:"Calendar 日历"},{path:"cascader",title:"Cascader 级联选择",className:"hide-in-weapp"},{path:"checkbox",title:"Checkbox 复选框"},{path:"datetime-picker",title:"DatetimePicker 时间选择"},{path:"field",title:"Field 输入框"},{path:"form",title:"Form 表单",className:"hide-in-weapp"},{path:"number-keyboard",title:"NumberKeyboard 数字键盘",className:"hide-in-weapp"},{path:"password-input",title:"PasswordInput 密码输入框",className:"hide-in-weapp"},{path:"picker",title:"Picker 选择器"},{path:"radio",title:"Radio 单选框"},{path:"rate",title:"Rate 评分"},{path:"search",title:"Search 搜索"},{path:"slider",title:"Slider 滑块"},{path:"stepper",title:"Stepper 步进器"},{path:"switch",title:"Switch 开关"},{path:"uploader",title:"Uploader 文件上传"}]},{title:"反馈组件",items:[{path:"action-sheet",title:"ActionSheet 动作面板"},{path:"dialog",title:"Dialog 弹出框"},{path:"dropdown-menu",title:"DropdownMenu 下拉菜单"},{path:"loading",title:"Loading 加载"},{path:"notify",title:"Notify 消息通知"},{path:"overlay",title:"Overlay 遮罩层"},{path:"pull-refresh",title:"PullRefresh 下拉刷新",className:"hide-in-weapp"},{path:"share-sheet",title:"ShareSheet 分享面板"},{path:"swipe-cell",title:"SwipeCell 滑动单元格"}]},{title:"展示组件",items:[{path:"badge",title:"Badge 徽标",className:"hide-in-weapp"},{path:"circle",title:"Circle 环形进度条"},{path:"collapse",title:"Collapse 折叠面板"},{path:"count-down",title:"CountDown 倒计时"},{path:"divider",title:"Divider 分割线"},{path:"empty",title:"Empty 空状态"},{path:"image-preview",title:"ImagePreview 图片预览",className:"hide-in-weapp"},{path:"lazyload",title:"Lazyload 懒加载",className:"hide-in-weapp"},{path:"list",title:"List 列表",className:"hide-in-weapp"},{path:"notice-bar",title:"NoticeBar 通知栏"},{path:"popover",title:"Popover 气泡弹出框",className:"hide-in-weapp"},{path:"progress",title:"Progress 进度条"},{path:"skeleton",title:"Skeleton 骨架屏"},{path:"steps",title:"Steps 步骤条"},{path:"sticky",title:"Sticky 粘性布局"},{path:"swipe",title:"Swipe 轮播",className:"hide-in-weapp"},{path:"tag",title:"Tag 标签"}]},{title:"导航组件",items:[{path:"grid",title:"Grid 宫格"},{path:"index-bar",title:"IndexBar 索引栏"},{path:"nav-bar",title:"NavBar 导航栏"},{path:"pagination",title:"Pagination 分页",className:"hide-in-weapp"},{path:"sidebar",title:"Sidebar 侧边导航"},{path:"tab",title:"Tab 标签页"},{path:"tabbar",title:"Tabbar 标签栏"},{path:"tree-select",title:"TreeSelect 分类选择"}]},{title:"业务组件",items:[{path:"address-edit",title:"AddressEdit 地址编辑",className:"hide-in-weapp"},{path:"address-list",title:"AddressList 地址列表",className:"hide-in-weapp"},{path:"area",title:"Area 省市区选择"},{path:"card",title:"Card 商品卡片"},{path:"contact-card",title:"ContactCard 联系人卡片",className:"hide-in-weapp"},{path:"contact-edit",title:"ContactEdit 联系人编辑",className:"hide-in-weapp"},{path:"contact-list",title:"ContactList 联系人列表",className:"hide-in-weapp"},{path:"coupon-list",title:"Coupon 优惠券",className:"hide-in-weapp"},{path:"goods-action",title:"GoodsAction 商品导航"},{path:"submit-bar",title:"SubmitBar 提交订单栏"},{path:"sku",title:"Sku 商品规格",className:"hide-in-weapp"}]},{title:"废弃",items:[{path:"panel",title:"Panel 面板"},{path:"switch-cell",title:"SwitchCell 开关单元格",className:"hide-in-weapp"}]}]},"en-US":{title:"Vant 2",description:"Mobile UI Components built on Vue",logo:"https://img01.yzcdn.cn/vant/logo.png",langLabel:"En",links:[{logo:"https://b.yzcdn.cn/vant/logo/weapp.svg",url:"/vant-weapp"},{logo:"https://b.yzcdn.cn/vant/logo/github.svg",url:"https://github.com/vant-ui/vant"}],nav:[{title:"Basic Components",items:[{path:"button",title:"Button"},{path:"cell",title:"Cell"},{path:"icon",title:"Icon"},{path:"image",title:"Image"},{path:"col",title:"Layout"},{path:"popup",title:"Popup"},{path:"style",title:"Built-in style"},{path:"toast",title:"Toast"}]},{title:"Form Components",items:[{path:"calendar",title:"Calendar"},{path:"cascader",title:"Cascader"},{path:"checkbox",title:"Checkbox"},{path:"datetime-picker",title:"DatetimePicker"},{path:"field",title:"Field"},{path:"form",title:"Form"},{path:"number-keyboard",title:"NumberKeyboard"},{path:"password-input",title:"PasswordInput"},{path:"picker",title:"Picker"},{path:"radio",title:"Radio"},{path:"rate",title:"Rate"},{path:"search",title:"Search"},{path:"slider",title:"Slider"},{path:"stepper",title:"Stepper"},{path:"switch",title:"Switch"},{path:"switch-cell",title:"SwitchCell"},{path:"uploader",title:"Uploader"}]},{title:"Action Components",items:[{path:"action-sheet",title:"ActionSheet"},{path:"dialog",title:"Dialog"},{path:"dropdown-menu",title:"DropdownMenu"},{path:"loading",title:"Loading"},{path:"notify",title:"Notify"},{path:"overlay",title:"Overlay"},{path:"pull-refresh",title:"PullRefresh"},{path:"share-sheet",title:"ShareSheet"},{path:"swipe-cell",title:"SwipeCell"}]},{title:"Display Components",items:[{path:"badge",title:"Badge"},{path:"circle",title:"Circle"},{path:"collapse",title:"Collapse"},{path:"count-down",title:"CountDown"},{path:"divider",title:"Divider"},{path:"empty",title:"Empty"},{path:"image-preview",title:"ImagePreview"},{path:"lazyload",title:"Lazyload"},{path:"list",title:"List"},{path:"notice-bar",title:"NoticeBar"},{path:"popover",title:"Popover"},{path:"progress",title:"Progress"},{path:"skeleton",title:"Skeleton"},{path:"steps",title:"Steps"},{path:"sticky",title:"Sticky"},{path:"swipe",title:"Swipe"},{path:"tag",title:"Tag"}]},{title:"Navigation Components",items:[{path:"grid",title:"Grid"},{path:"index-bar",title:"IndexBar"},{path:"nav-bar",title:"NavBar"},{path:"pagination",title:"Pagination"},{path:"sidebar",title:"Sidebar"},{path:"tab",title:"Tab"},{path:"tabbar",title:"Tabbar"},{path:"tree-select",title:"TreeSelect"}]},{title:"Business Components",items:[{path:"address-edit",title:"AddressEdit"},{path:"address-list",title:"AddressList"},{path:"area",title:"Area"},{path:"card",title:"Card"},{path:"contact-card",title:"ContactCard"},{path:"contact-edit",title:"ContactEdit"},{path:"contact-list",title:"ContactList"},{path:"coupon-list",title:"Coupon"},{path:"goods-action",title:"GoodsAction"},{path:"submit-bar",title:"SubmitBar"},{path:"sku",title:"Sku"}]},{title:"Deprecated",items:[{path:"panel",title:"Panel"},{path:"switch-cell",title:"SwitchCell"}]}]}}},Jn={components:{ArrowRight:Object(s.a)({},(function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{attrs:{viewBox:"0 0 1024 1024"}},[e("path",{attrs:{fill:"#B6C3D2",d:"M601.1 556.5L333.8 289.3c-24.5-24.5-24.5-64.6 0-89.1s64.6-24.5 89.1 0l267.3 267.3c24.5 24.5 24.5 64.6 0 89.1-24.5 24.4-64.6 24.4-89.1-.1z"}}),e("path",{attrs:{fill:"#B6C3D2",d:"M690.2 556.5L422.9 823.8c-24.5 24.5-64.6 24.5-89.1 0s-24.5-64.6 0-89.1l267.3-267.3c24.5-24.5 64.6-24.5 89.1 0 24.5 24.6 24.5 64.6 0 89.1z"}})])}),[],!1,null,null,null).exports},props:{lang:String,group:Object},data:function(){return{active:[]}},computed:{base:function(){return this.lang?"/"+this.lang:""}}},Qn=(n(247),{components:{DemoHomeNav:Object(s.a)(Jn,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"demo-home-nav"},[n("div",{staticClass:"demo-home-nav__title"},[t._v(t._s(t.group.title))]),n("div",{staticClass:"demo-home-nav__group"},t._l(t.group.items,(function(e){return n("router-link",{key:e.path,class:["demo-home-nav__block",e.className],attrs:{to:t.base+"/"+e.path}},[t._v("\n "+t._s(e.title)+"\n "),n("arrow-right",{staticClass:"demo-home-nav__icon"})],1)})),1)])}),[],!1,null,null,null).exports},computed:{lang:function(){var t=this.$route.meta.lang;return t},config:function(){var t=Zn.locales;return t?t[this.lang]:Zn},smallTitle:function(){return this.config.title.length>=8}}}),to=(n(249),Object(s.a)(Qn,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"demo-home"},[n("h1",{staticClass:"demo-home__title",class:{"demo-home__title--small":t.smallTitle}},[n("img",{attrs:{src:t.config.logo}}),n("span",[t._v(t._s(t.config.title))])]),t.config.description?n("h2",{staticClass:"demo-home__desc"},[t._v("\n "+t._s(t.config.description)+"\n ")]):t._e(),t._l(t.config.nav,(function(e,o){return[n("demo-home-nav",{key:o,attrs:{group:e,lang:t.lang}})]}))],2)}),[],!1,null,null,null).exports),eo=n(31),no=n(35),oo=Zn,ao=oo.locales,io=oo.defaultLang;Object(eo.b)(io),o.a.use(h.a);var so,lo,ro,co=new h.a({mode:"hash",routes:(so=[],lo=Object.keys(Xn),ro=ao?Object.keys(ao):[],ro.length?(so.push({path:"*",redirect:function(t){return"/"+function(t){var e=t.path.split("/")[1];return-1!==Object.keys(ao).indexOf(e)?e:Object(eo.a)()}(t)+"/"}}),ro.forEach((function(t){so.push({path:"/"+t,component:to,meta:{lang:t}})}))):(so.push({path:"*",redirect:function(){return"/"}}),so.push({path:"/",component:to})),lo.forEach((function(t){var e=Object(c.a)(t);ro.length?ro.forEach((function(n){so.push({name:n+"/"+e,path:"/"+n+"/"+e,component:Xn[t],meta:{name:t,lang:n}})})):so.push({name:t,path:"/"+e,component:Xn[t],meta:{name:t}})})),so),scrollBehavior:function(t,e,n){return n||{x:0,y:0}}});co.afterEach((function(){co.currentRoute.redirectedFrom||Object(no.c)()})),Object(no.a)(co),window.vueRouter=co;var uo={data:function(){return{path:"M296.114 508.035c-3.22-13.597.473-28.499 11.079-39.105l333.912-333.912c16.271-16.272 42.653-16.272 58.925 0s16.272 42.654 0 58.926L395.504 498.47l304.574 304.574c16.272 16.272 16.272 42.654 0 58.926s-42.654 16.272-58.926 0L307.241 528.058a41.472 41.472 0 0 1-11.127-20.023z"}},computed:{title:function(){var t=(this.$route.meta||{}).name;return t?t.replace(/-/g,""):""}},methods:{onBack:function(){history.length>1?history.back():this.$router.replace("/")}}},po=(n(251),{components:{DemoNav:Object(s.a)(uo,(function(){var t=this.$createElement,e=this._self._c||t;return e("div",{directives:[{name:"show",rawName:"v-show",value:this.title,expression:"title"}],staticClass:"demo-nav"},[e("div",{staticClass:"demo-nav__title"},[this._v(this._s(this.title))]),e("svg",{staticClass:"demo-nav__back",attrs:{viewBox:"0 0 1000 1000"},on:{click:this.onBack}},[e("path",{attrs:{fill:"#969799","fill-rule":"evenodd",d:this.path}})])])}),[],!1,null,null,null).exports}}),mo=(n(253),Object(s.a)(po,(function(){var t=this.$createElement,e=this._self._c||t;return e("div",[e("demo-nav"),e("keep-alive",[e("router-view")],1)],1)}),[],!1,null,null,null).exports);n(255);o.a.component(r.name,r),o.a.component(m.name,m),setTimeout((function(){new o.a({el:"#app",render:function(t){return t(mo)},router:co})}),0)}]));