From bb85b3416ca84d457d6700210e704451e381b021 Mon Sep 17 00:00:00 2001 From: cookfront Date: Fri, 24 Mar 2017 15:36:55 +0800 Subject: [PATCH] webpack config --- build/webpack.build.js | 24 ++++++++++++++++++++++++ build/webpack.build.min.js | 19 +++++++++---------- build/webpack.components.js | 2 +- build/webpack.config.js | 36 +++++++++++++++++++++++++++++++----- docs/dist/0.js | 1 - docs/dist/1.js | 1 - docs/dist/zanui-docs.css | 1 - docs/dist/zanui-docs.js | 1 - docs/dist/zanui-examples.css | 1 - docs/dist/zanui-examples.js | 1 - docs/index.js | 2 +- index.html => docs/index.tpl | 4 +--- examples.html | 17 ----------------- package.json | 8 +++++--- 14 files changed, 72 insertions(+), 46 deletions(-) delete mode 100644 docs/dist/0.js delete mode 100644 docs/dist/1.js delete mode 100644 docs/dist/zanui-docs.css delete mode 100644 docs/dist/zanui-docs.js delete mode 100644 docs/dist/zanui-examples.css delete mode 100644 docs/dist/zanui-examples.js rename index.html => docs/index.tpl (63%) delete mode 100644 examples.html diff --git a/build/webpack.build.js b/build/webpack.build.js index 15644942b..8516e60ee 100644 --- a/build/webpack.build.js +++ b/build/webpack.build.js @@ -1,3 +1,5 @@ +var webpack = require('webpack'); +var getPostcssPlugin = require('./utils/postcss_pipe'); var config = require('./webpack.config.js'); config.entry = { @@ -14,6 +16,28 @@ config.externals = { vue: 'vue' }; +config.plugins = [ + new webpack.DefinePlugin({ + 'process.env.NODE_ENV': '"production"' + }), + new webpack.LoaderOptionsPlugin({ + minimize: true, + debug: false, + options: { + postcss: getPostcssPlugin, + babel: { + presets: ['es2015'], + plugins: ['transform-runtime', 'transform-vue-jsx'] + }, + vue: { + autoprefixer: false, + preserveWhitespace: false, + postcss: getPostcssPlugin + } + } + }) +]; + delete config.devtool; module.exports = config; diff --git a/build/webpack.build.min.js b/build/webpack.build.min.js index be17f3f93..297a3815b 100644 --- a/build/webpack.build.min.js +++ b/build/webpack.build.min.js @@ -1,20 +1,19 @@ -var config = require('./webpack.build.js'); var webpack = require('webpack'); +var getPostcssPlugin = require('./utils/postcss_pipe'); +var config = require('./webpack.config.js'); config.output.filename = config.output.filename.replace(/\.js$/, '.min.js'); -config.plugins = [ - new webpack.LoaderOptionsPlugin({ - minimize: true, - debug: false - }), +config.plugins = config.plugins.concat([ new webpack.optimize.UglifyJsPlugin({ - comments: false, compress: { - drop_console: true, warnings: false - } + }, + output: { + comments: false + }, + sourceMap: false }) -]; +]); module.exports = config; diff --git a/build/webpack.components.js b/build/webpack.components.js index 9a745c2c3..3d5d30f5e 100644 --- a/build/webpack.components.js +++ b/build/webpack.components.js @@ -1,6 +1,6 @@ var path = require('path'); var Components = require('../components.json'); -var config = require('./webpack.config.js'); +var config = require('./webpack.build.js'); delete config.devtool; diff --git a/build/webpack.config.js b/build/webpack.config.js index 40e5b7e87..ca3e643b4 100644 --- a/build/webpack.config.js +++ b/build/webpack.config.js @@ -8,6 +8,14 @@ var version = require('../package.json').version; var getPoastcssPlugin = require('./utils/postcss_pipe'); var ProgressBarPlugin = require('progress-bar-webpack-plugin'); var ExtractTextPlugin = require('extract-text-webpack-plugin'); +var HtmlWebpackPlugin = require('html-webpack-plugin'); + +var StyleExtractPlugin; +if (process.env.NODE_ENV === 'production') { + StyleExtractPlugin = new ExtractTextPlugin('[name].[hash:8].css'); +} else { + StyleExtractPlugin = new ExtractTextPlugin('[name].css'); +} function convert(str) { str = str.replace(/(&#x)(\w{4});/gi, function($0) { @@ -26,12 +34,12 @@ function wrap(render) { module.exports = { entry: { - 'zanui-docs': './docs/index.js', - 'zanui-examples': './docs/examples.js' + 'docs': './docs/index.js', + 'examples': './docs/examples.js' }, output: { path: path.join(__dirname, '../docs/dist'), - publicPath: '/vue/docs/dist/', + publicPath: '/', filename: '[name].js' }, resolve: { @@ -88,8 +96,20 @@ module.exports = { }, devtool: 'source-map', plugins: [ + StyleExtractPlugin, new ProgressBarPlugin(), - new ExtractTextPlugin('[name].css'), + new HtmlWebpackPlugin({ + chunks: ['docs'], + template: 'docs/index.tpl', + filename: 'index.html', + inject: true + }), + new HtmlWebpackPlugin({ + chunks: ['examples'], + template: 'docs/index.tpl', + filename: 'examples.html', + inject: true + }), new webpack.LoaderOptionsPlugin({ minimize: true, options: { @@ -145,6 +165,11 @@ module.exports = { if (process.env.NODE_ENV === 'production') { delete module.exports.devtool; + module.exports.output = { + path: path.join(__dirname, '../docs/dist'), + publicPath: './', + filename: '[name].[hash:8].js' + }; module.exports.plugins = module.exports.plugins.concat([ new webpack.DefinePlugin({ 'process.env': { @@ -153,7 +178,8 @@ if (process.env.NODE_ENV === 'production') { }), new webpack.optimize.UglifyJsPlugin({ compress: { - warnings: false + warnings: false, + drop_console: true }, output: { comments: false diff --git a/docs/dist/0.js b/docs/dist/0.js deleted file mode 100644 index e9812b194..000000000 --- a/docs/dist/0.js +++ /dev/null @@ -1 +0,0 @@ -webpackJsonp([0],Array(253).concat([function(s,a,t){function n(s){return t(l(s))}function l(s){var a=e[s];if(!(a+1))throw new Error("Cannot find module '"+s+"'.");return a}var e={"./examples-dist/actionsheet.vue":438,"./examples-dist/badge.vue":439,"./examples-dist/button.vue":440,"./examples-dist/card.vue":441,"./examples-dist/cell.vue":442,"./examples-dist/checkbox.vue":443,"./examples-dist/datetime-picker.vue":444,"./examples-dist/dialog.vue":445,"./examples-dist/field.vue":446,"./examples-dist/icon.vue":447,"./examples-dist/image-preview.vue":448,"./examples-dist/loading.vue":449,"./examples-dist/panel.vue":450,"./examples-dist/picker.vue":451,"./examples-dist/popup.vue":452,"./examples-dist/progress.vue":453,"./examples-dist/quantity.vue":454,"./examples-dist/radio.vue":455,"./examples-dist/search.vue":456,"./examples-dist/steps.vue":457,"./examples-dist/swipe.vue":458,"./examples-dist/switch.vue":459,"./examples-dist/tab.vue":460,"./examples-dist/tag.vue":461,"./examples-dist/toast.vue":462,"./examples-dist/uploader.vue":463,"./examples-dist/waterfall.vue":464};n.keys=function(){return Object.keys(e)},n.resolve=l,s.exports=n,n.id=253},function(s,a,t){function n(s){return t(l(s))}function l(s){var a=e[s];if(!(a+1))throw new Error("Cannot find module '"+s+"'.");return a}var e={"./examples-docs/actionsheet.md":550,"./examples-docs/badge.md":551,"./examples-docs/button.md":552,"./examples-docs/card.md":553,"./examples-docs/cell.md":554,"./examples-docs/checkbox.md":555,"./examples-docs/datetime-picker.md":556,"./examples-docs/dialog.md":557,"./examples-docs/field.md":558,"./examples-docs/icon.md":559,"./examples-docs/image-preview.md":560,"./examples-docs/install.md":561,"./examples-docs/layout.md":562,"./examples-docs/loading.md":563,"./examples-docs/panel.md":564,"./examples-docs/picker.md":565,"./examples-docs/popup.md":566,"./examples-docs/progress.md":567,"./examples-docs/quantity.md":568,"./examples-docs/quickstart.md":569,"./examples-docs/radio.md":570,"./examples-docs/search.md":571,"./examples-docs/steps.md":572,"./examples-docs/swipe.md":573,"./examples-docs/switch.md":574,"./examples-docs/tab.md":575,"./examples-docs/tag.md":576,"./examples-docs/toast.md":577,"./examples-docs/uploader.md":578,"./examples-docs/waterfall.md":579};n.keys=function(){return Object.keys(e)},n.resolve=l,s.exports=n,n.id=254},,,,,,,,,,,,,,,,,,,,function(s,a,t){var n=t(0)(t(279),t(496),null,null);s.exports=n.exports},function(s,a,t){function n(s){for(var a=0;at.parts.length&&(n.parts.length=t.parts.length)}else{for(var i=[],l=0;l3&&(this.active=0)}}}},function(s,a,t){"use strict";function n(s){return s&&s.__esModule?s:{default:s}}var l=t(2),e=n(l),i=t(274),v=n(i);e.default.component("example-block",v.default)},function(s,a,t){"use strict";function n(s){return s&&s.__esModule?s:{default:s}}Object.defineProperty(a,"__esModule",{value:!0});var l=t(2),e=n(l),i=t(274),v=n(i);e.default.component("example-block",v.default),a.default={data:function(){return{switchState:!0}},computed:{switchStateText:function(){return this.switchState?" ON":"OFF"}},methods:{updateState:function(s){this.switchState=s}}}},function(s,a,t){"use strict";function n(s){return s&&s.__esModule?s:{default:s}}Object.defineProperty(a,"__esModule",{value:!0});var l=t(2),e=n(l),i=t(274),v=n(i);e.default.component("example-block",v.default),a.default={data:function(){return{active:2}},mounted:function(){var s=this;setTimeout(function(){s.active=3},1e3)},methods:{popalert:function(){alert("haha")}}}},function(s,a,t){"use strict";function n(s){return s&&s.__esModule?s:{default:s}}var l=t(2),e=n(l),i=t(274),v=n(i);e.default.component("example-block",v.default)},function(s,a,t){"use strict";function n(s){return s&&s.__esModule?s:{default:s}}Object.defineProperty(a,"__esModule",{value:!0});var l=t(2),e=n(l),i=t(274),v=n(i),_=t(30);e.default.component("example-block",v.default),a.default={methods:{showSimpleToast:function(){(0,_.Toast)("我是提示文案,建议不超过十五字~")},showLoadingToast:function(){_.Toast.loading()},showSuccessToast:function(){_.Toast.success("成功文案")},showFailToast:function(){_.Toast.fail("失败文案")},showForbidClickToast:function(){(0,_.Toast)({message:"背景不能点击",forbidClick:!0})},showCustomizedToast:function(s){var a=s/1e3,t=(0,_.Toast)({duration:s+1e3,type:"success",message:a.toString()});window.setInterval(function(){if(a<=1)return window.clearInterval(),void(t.message="跳转中...");t.message=(--a).toString()},1e3)},showToast:function(){this.toast=(0,_.Toast)("我是提示文案,建议不超过十五字~")},closeToast:function(){this.toast.clear()},showHtmlToast:function(){(0,_.Toast)({type:"html",message:"HTML"})}}}},function(s,a,t){"use strict";function n(s){return s&&s.__esModule?s:{default:s}}Object.defineProperty(a,"__esModule",{value:!0});var l=t(2),e=n(l),i=t(274),v=n(i);e.default.component("example-block",v.default),a.default={methods:{logContent:function(s){console.log(s)}}}},function(s,a,t){"use strict";function n(s){return s&&s.__esModule?s:{default:s}}Object.defineProperty(a,"__esModule",{value:!0});var l=t(2),e=n(l),i=t(274),v=n(i);e.default.component("example-block",v.default),a.default={data:function(){return{list:[1,2,3,4,5],loading:!1,finished:!1}},methods:{loadMore:function(){var s=this;if(this.list.length>=200)return void(this.finished=!0);this.loading=!0,setTimeout(function(){for(var a=s.list[s.list.length-1],t=0;t<5;t++)a+=1,s.list.push(a);s.loading=!1},2500)},loadMoreUpper:function(){this.list[0]<0||this.list.unshift(-1)}},computed:{isWaterfallDisabled:function(){return this.loading||this.finished}}}},function(s,a,t){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var n=t(276),l=function(s){return s&&s.__esModule?s:{default:s}}(n);a.default={mixins:[l.default],data:function(){return{show1:!1,show2:!1,show3:!1,actions1:[{name:"微信安全支付",className:"actionsheet-wx"},{name:"支付宝支付",loading:!0},{name:"有赞E卡",subname:"(剩余260.50元)"},{name:"信用卡支付"},{name:"其他支付方式"}]}}}},function(s,a,t){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.default={data:function(){return{activeKey:"2"}},methods:{onItemClick:function(s,a){this.activeKey=a.mark}}}},function(s,a,t){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.default={methods:{handleClick:function(){console.log("cell click")}}}},function(s,a,t){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.default={data:function(){return{checkbox1:!0,checkbox2:!0,list:["a","b","c"],result:["a","b"]}},watch:{result:function(s){console.log(s)}}}},function(s,a,t){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.default={data:function(){return{minHour:10,maxHour:20,minDate:new Date}},methods:{handlePickerChange:function(s,a){console.log(a)},handlePickerCancel:function(){alert("picker cancel")},handlePickerConfirm:function(){alert("picker confirm")}}}},function(s,a,t){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var n=t(30),l=t(276),e=function(s){return s&&s.__esModule?s:{default:s}}(l);a.default={mixins:[e.default],methods:{handleAlertClick:function(){n.Dialog.alert({title:"alert标题",message:"弹窗提示文字,左右始终距离边20PX,上下距离20PX,文字左对齐。弹窗提示文字,左右始终距离边20PX,上下距离20PX,文字左对齐。"}).then(function(s){console.log(s)})},handleConfirmClick:function(){n.Dialog.confirm({title:"confirm标题",message:"弹窗提示文字,左右始终距离边20PX,上下距离20PX,文字左对齐。弹窗提示文字,左右始终距离边20PX,上下距离20PX,文字左对齐。"}).then(function(s){console.log(s)},function(s){console.log(s)})}}}},function(s,a,t){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.default={data:function(){return{username:"zhangmin"}}}},function(s,a,t){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var n=t(30);a.default={methods:{handleImagePreview:function(){(0,n.ImagePreview)(["https://img.yzcdn.cn/upload_files/2017/03/14/FmTPs0SeyQaAOSK1rRe1sL8RcwSY.jpeg?imageView2/2/w/980/h/980/q/75/format/webp","https://img.yzcdn.cn/upload_files/2017/03/15/FvexrWlG_WxtCE9Omo5l27n_mAG_.jpeg?imageView2/2/w/980/h/980/q/75/format/webp"])}}}},function(s,a,t){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var n=t(277),l=function(s){return s&&s.__esModule?s:{default:s}}(n),e={"浙江":["杭州","宁波","温州","嘉兴","湖州","绍兴","金华","衢州","舟山","台州","丽水"],"福建":["福州","厦门","莆田","三明","泉州","漳州","南平","龙岩","宁德"],"湖南":["长沙","株洲","湘潭","衡阳","邵阳","岳阳","常德","张家界","益阳","郴州","永州","怀化","娄底","湘西土家族苗族自治州"]};a.default={data:function(){return{pickerColumns:[{values:(0,l.default)(e),className:"column1"},{values:["杭州","宁波","温州","嘉兴","湖州","绍兴","金华","衢州","舟山","台州","丽水"],className:"column2"}]}},methods:{handlePickerChange:function(s,a){s.setColumnValues(1,e[a[0]])},handlePickerCancel:function(){alert("picker cancel")},handlePickerConfirm:function(){alert("picker confirm")}}}},function(s,a,t){"use strict";function n(s){return s&&s.__esModule?s:{default:s}}Object.defineProperty(a,"__esModule",{value:!0});var l=t(276),e=n(l),i=t(53),v=n(i);a.default={mixins:[e.default],data:function(){return{popupShow1:!1,popupShow2:!1,popupShow3:!1,popupShow4:!1}},watch:{popupShow2:function(s){var a=this;s&&setTimeout(function(){a.popupShow2=!1},2e3)}},methods:{showDialog:function(){v.default.confirm({title:"confirm标题",message:"弹窗提示文字,左右始终距离边20PX,上下距离20PX,文字左对齐。弹窗提示文字,左右始终距离边20PX,上下距离20PX,文字左对齐。"}).then(function(s){console.log(s)},function(s){console.log(s)})}}}},function(s,a,t){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.default={data:function(){return{quantity1:1,quantity2:null}}}},function(s,a,t){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.default={data:function(){return{radio1:"1",radio2:"2",radio3:"1",radio4:"1"}}}},function(s,a,t){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.default={methods:{goSearch:function(s){alert(s)}}}},function(s,a,t){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.default={data:function(){return{active:0}},methods:{nextStep:function(){++this.active>3&&(this.active=0)}}}},function(s,a,t){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.default={data:function(){return{switchState:!0}},computed:{switchStateText:function(){return this.switchState?" ON":"OFF"}},methods:{updateState:function(s){this.switchState=s}}}},function(s,a,t){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.default={data:function(){return{active:2}},mounted:function(){var s=this;setTimeout(function(){s.active=3},1e3)},methods:{popalert:function(){alert("haha")}}}},function(s,a,t){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var n=t(30);a.default={methods:{showSimpleToast:function(){(0,n.Toast)("我是提示文案,建议不超过十五字~")},showLoadingToast:function(){n.Toast.loading()},showSuccessToast:function(){n.Toast.success("成功文案")},showFailToast:function(){n.Toast.fail("失败文案")},showForbidClickToast:function(){(0,n.Toast)({message:"背景不能点击",forbidClick:!0})},showCustomizedToast:function(s){var a=s/1e3,t=(0,n.Toast)({duration:s+1e3,type:"success",message:a.toString()});window.setInterval(function(){if(a<=1)return window.clearInterval(),void(t.message="跳转中...");t.message=(--a).toString()},1e3)},showToast:function(){this.toast=(0,n.Toast)("我是提示文案,建议不超过十五字~")},closeToast:function(){this.toast.clear()},showHtmlToast:function(){(0,n.Toast)({type:"html",message:"HTML"})}}}},function(s,a,t){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.default={methods:{logContent:function(s){console.log(s)}}}},function(s,a,t){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.default={data:function(){return{list:[1,2,3,4,5],loading:!1,finished:!1}},methods:{loadMore:function(){var s=this;if(this.list.length>=200)return void(this.finished=!0);this.loading=!0,setTimeout(function(){for(var a=s.list[s.list.length-1],t=0;t<5;t++)a+=1,s.list.push(a);s.loading=!1},2500)},loadMoreUpper:function(){this.list[0]<0||this.list.unshift(-1)}},computed:{isWaterfallDisabled:function(){return this.loading||this.finished}}}},function(s,a,t){t(330),s.exports=t(4).Object.keys},function(s,a,t){var n=t(8),l=t(4),e=t(19);s.exports=function(s,a){var t=(l.Object||{})[s]||Object[s],i={};i[s]=a(t),n(n.S+n.F*e(function(){t(1)}),"Object",i)}},function(s,a,t){var n=t(32),l=t(31);t(329)("keys",function(){return function(s){return l(n(s))}})},function(s,a,t){a=s.exports=t(251)(),a.push([s.i,".demo-loading__example{width:30px;height:30px;padding:20px;margin:auto;border-radius:5px;border:1px solid transparent}.demo-loading__example--with-bg{background-color:rgba(0,0,0,.5)}.demo-loading{padding:0 20px}",""])},function(s,a,t){a=s.exports=t(251)(),a.push([s.i,".demo-panel .zan-panel-sum{background:#fff;text-align:right;font-size:14px;color:#333;line-height:30px;padding-right:15px}.demo-panel .zan-panel-sum span{color:red}.demo-panel .zan-panel-buttons{text-align:right}.demo-panel .zan-panel-buttons .zan-button{margin-left:5px}.demo-panel .panel-content{padding:20px}",""])},,function(s,a,t){a=s.exports=t(251)(),a.push([s.i,".demo-checkbox .zan-checkbox-wrapper{padding:0 20px}.demo-checkbox .zan-checkbox-wrapper .zan-checkbox{margin:10px 0}",""])},function(s,a,t){a=s.exports=t(251)(),a.push([s.i,".official-img{width:31px;vertical-align:middle;border:0}",""])},function(s,a,t){a=s.exports=t(251)(),a.push([s.i,".demo-actionsheet .actionsheet-wx{color:#06bf04}.demo-actionsheet .zan-button{margin-left:15px}.demo-actionsheet .title-actionsheet p{padding:20px}",""])},function(s,a,t){a=s.exports=t(251)(),a.push([s.i,".demo-radio .zan-radios{padding:0 20px}.demo-radio .zan-radios .zan-radio{margin:10px 0}",""])},function(s,a,t){a=s.exports=t(251)(),a.push([s.i,".demo-icon .zan-icon{margin:10px;font-size:45px;width:56px;text-align:center}",""])},function(s,a,t){a=s.exports=t(251)(),a.push([s.i,".demo-dialog .zan-button{margin:15px}",""])},function(s,a,t){a=s.exports=t(251)(),a.push([s.i,".uploader-container{padding:5px 15px}",""])},function(s,a,t){a=s.exports=t(251)(),a.push([s.i,".demo-popup .zan-popup-1{width:100%;height:200px;box-sizing:border-box;padding:20px}.demo-popup .zan-popup-2{line-height:50px;text-align:center;background-color:rgba(0,0,0,.701961);color:#fff}.demo-popup .zan-popup-3{width:100%;height:100%}.demo-popup .zan-popup-4{width:60%;box-sizing:border-box;padding:20px;border-radius:5px;text-align:center}.demo-popup .zan-button{margin:15px}",""])},function(s,a,t){a=s.exports=t(251)(),a.push([s.i,".demo-image-preview .zan-button{margin-left:15px}",""])},,function(s,a,t){a=s.exports=t(251)(),a.push([s.i,".demo-switch{padding:0 15px 15px}.demo-switch__wrapper{width:33.33%;float:left;text-align:center}.demo-switch__text{margin:20px 0}",""])},function(s,a,t){a=s.exports=t(251)(),a.push([s.i,".demo-toast .zan-button{margin:15px}",""])},function(s,a,t){a=s.exports=t(251)(),a.push([s.i,".demo-tab .zan-tab__pane{background-color:#fff;padding:20px}",""])},function(s,a,t){a=s.exports=t(251)(),a.push([s.i,".page-tab{padding:0 15px}.custom-tabwrap .zan-tab-active{color:#20a0ff}.custom-tabwrap .zan-tabs-nav-bar{background:#20a0ff}.custom-tab{font-weight:700}.custom-pane{text-align:center;height:50px;line-height:50px}",""])},function(s,a,t){a=s.exports=t(251)(),a.push([s.i,".tags-container{padding:5px 15px}.tags-container .zan-tag+.zan-tag{margin-left:10px}",""])},function(s,a,t){a=s.exports=t(251)(),a.push([s.i,".demo-quantity .curr-quantity,.demo-quantity .zan-quantity{margin:15px}",""])},function(s,a,t){a=s.exports=t(251)(),a.push([s.i,".demo-swipe .zan-swipe{height:200px}.demo-swipe .zan-swipe img{width:100%}",""])},function(s,a,t){a=s.exports=t(251)(),a.push([s.i,".waterfall{max-height:300px;overflow:scroll}",""])},function(s,a,t){a=s.exports=t(251)(),a.push([s.i,".demo-steps .steps-success{color:#06bf04}.demo-steps .zan-button{margin:15px 0 0 15px}",""])},function(s,a,t){a=s.exports=t(251)(),a.push([s.i,".demo-field .zan-field-wrapper{padding:0 10px}",""])},function(s,a,t){a=s.exports=t(251)(),a.push([s.i,".demo-progress__wrapper{padding:5px;margin:20px 10px}",""])},function(s,a,t){a=s.exports=t(251)(),a.push([s.i,".mobile-popup{width:375px;height:650px;background:url(https://b.yzcdn.cn/v2/image/wap/zanui-mobile-container.png) no-repeat}.mobile-popup-iframe{width:100%;box-sizing:border-box;border-left:1px solid #e5e5e5;border-right:1px solid #e5e5e5;border-bottom:1px solid #e5e5e5;position:relative;top:64px;height:586px}",""])},function(s,a,t){a=s.exports=t(251)(),a.push([s.i,".demo-button .zan-row{padding:0 20px}.demo-button .zan-col{margin-bottom:10px}.demo-button .button-group{font-size:0;padding:0 20px}",""])},function(s,a,t){a=s.exports=t(251)(),a.push([s.i,".demo-switch{padding:0 15px 15px}.demo-switch__wrapper{width:33.33%;float:left;text-align:center}.demo-switch__text{margin:20px 0}",""])},function(s,a,t){a=s.exports=t(251)(),a.push([s.i,".demo-image-preview .zan-button{margin-left:15px}",""])},function(s,a,t){a=s.exports=t(251)(),a.push([s.i,".waterfall{max-height:300px;overflow:scroll}",""])},function(s,a,t){a=s.exports=t(251)(),a.push([s.i,".demo-field .zan-field-wrapper{padding:0 10px}",""])},function(s,a,t){a=s.exports=t(251)(),a.push([s.i,".demo-icon .zan-icon{margin:10px;font-size:45px;width:56px;text-align:center}",""])},function(s,a,t){a=s.exports=t(251)(),a.push([s.i,".demo-button .zan-row{padding:0 20px}.demo-button .zan-col{margin-bottom:10px}.demo-button .button-group{font-size:0;padding:0 20px}",""])},function(s,a,t){a=s.exports=t(251)(),a.push([s.i,".demo-toast .zan-button{margin:15px}",""])},function(s,a,t){a=s.exports=t(251)(),a.push([s.i,".demo-swipe .zan-swipe{height:200px}.demo-swipe .zan-swipe img{width:100%}",""])},function(s,a,t){a=s.exports=t(251)(),a.push([s.i,".official-img{width:31px;vertical-align:middle;border:0}",""])},function(s,a,t){a=s.exports=t(251)(),a.push([s.i,".demo-progress__wrapper{padding:5px;margin:20px 10px}",""])},function(s,a,t){a=s.exports=t(251)(),a.push([s.i,".demo-steps .steps-success{color:#06bf04}.demo-steps .zan-button{margin:15px 0 0 15px}",""])},function(s,a,t){a=s.exports=t(251)(),a.push([s.i,".demo-dialog .zan-button{margin:15px}",""])},function(s,a,t){a=s.exports=t(251)(),a.push([s.i,".demo-actionsheet .actionsheet-wx{color:#06bf04}.demo-actionsheet .zan-button{margin-left:15px}.demo-actionsheet .title-actionsheet p{padding:20px}",""])},function(s,a,t){a=s.exports=t(251)(),a.push([s.i,".uploader-container{padding:5px 15px}",""])},function(s,a,t){a=s.exports=t(251)(),a.push([s.i,".demo-checkbox .zan-checkbox-wrapper{padding:0 20px}.demo-checkbox .zan-checkbox-wrapper .zan-checkbox{margin:10px 0}",""])},function(s,a,t){a=s.exports=t(251)(),a.push([s.i,".demo-loading__example{width:30px;height:30px;padding:20px;margin:auto;border-radius:5px;border:1px solid transparent}.demo-loading__example--with-bg{background-color:rgba(0,0,0,.5)}.demo-loading{padding:0 20px}",""])},function(s,a,t){a=s.exports=t(251)(),a.push([s.i,".tags-container{padding:5px 15px}.tags-container .zan-tag+.zan-tag{margin-left:10px}",""])},function(s,a,t){a=s.exports=t(251)(),a.push([s.i,".demo-radio .zan-radios{padding:0 20px}.demo-radio .zan-radios .zan-radio{margin:10px 0}",""])},function(s,a,t){a=s.exports=t(251)(),a.push([s.i,".demo-tab .zan-tab__pane{background-color:#fff;padding:20px}",""])},function(s,a,t){a=s.exports=t(251)(),a.push([s.i,".page-tab{padding:0 15px}.custom-tabwrap .zan-tab-active{color:#20a0ff}.custom-tabwrap .zan-tabs-nav-bar{background:#20a0ff}.custom-tab{font-weight:700}.custom-pane{text-align:center;height:50px;line-height:50px}",""])},function(s,a,t){a=s.exports=t(251)(),a.push([s.i,".demo-panel .zan-panel-sum{background:#fff;text-align:right;font-size:14px;color:#333;line-height:30px;padding-right:15px}.demo-panel .zan-panel-sum span{color:red}.demo-panel .zan-panel-buttons{text-align:right}.demo-panel .zan-panel-buttons .zan-button{margin-left:5px}.demo-panel .panel-content{padding:20px}",""])},function(s,a,t){a=s.exports=t(251)(),a.push([s.i,".demo-popup .zan-popup-1{width:100%;height:200px;box-sizing:border-box;padding:20px}.demo-popup .zan-popup-2{line-height:50px;text-align:center;background-color:rgba(0,0,0,.701961);color:#fff}.demo-popup .zan-popup-3{width:100%;height:100%}.demo-popup .zan-popup-4{width:60%;box-sizing:border-box;padding:20px;border-radius:5px;text-align:center}.demo-popup .zan-button{margin:15px}",""])},function(s,a,t){a=s.exports=t(251)(),a.push([s.i,".demo-quantity .curr-quantity,.demo-quantity .zan-quantity{margin:15px}",""])},function(s,a,t){var n=t(331);"string"==typeof n&&(n=[[s.i,n,""]]);t(252)(n,{});n.locals&&(s.exports=n.locals)},function(s,a,t){var n=t(332);"string"==typeof n&&(n=[[s.i,n,""]]);t(252)(n,{});n.locals&&(s.exports=n.locals)},,function(s,a,t){var n=t(334);"string"==typeof n&&(n=[[s.i,n,""]]);t(252)(n,{});n.locals&&(s.exports=n.locals)},function(s,a,t){var n=t(335);"string"==typeof n&&(n=[[s.i,n,""]]);t(252)(n,{});n.locals&&(s.exports=n.locals)},function(s,a,t){var n=t(336);"string"==typeof n&&(n=[[s.i,n,""]]);t(252)(n,{});n.locals&&(s.exports=n.locals)},function(s,a,t){var n=t(337);"string"==typeof n&&(n=[[s.i,n,""]]);t(252)(n,{});n.locals&&(s.exports=n.locals)},function(s,a,t){var n=t(338);"string"==typeof n&&(n=[[s.i,n,""]]);t(252)(n,{});n.locals&&(s.exports=n.locals)},function(s,a,t){var n=t(339);"string"==typeof n&&(n=[[s.i,n,""]]);t(252)(n,{});n.locals&&(s.exports=n.locals)},function(s,a,t){var n=t(340);"string"==typeof n&&(n=[[s.i,n,""]]);t(252)(n,{});n.locals&&(s.exports=n.locals)},function(s,a,t){var n=t(341);"string"==typeof n&&(n=[[s.i,n,""]]);t(252)(n,{});n.locals&&(s.exports=n.locals)},function(s,a,t){var n=t(342);"string"==typeof n&&(n=[[s.i,n,""]]);t(252)(n,{});n.locals&&(s.exports=n.locals)},,function(s,a,t){var n=t(344);"string"==typeof n&&(n=[[s.i,n,""]]);t(252)(n,{});n.locals&&(s.exports=n.locals)},function(s,a,t){var n=t(345);"string"==typeof n&&(n=[[s.i,n,""]]);t(252)(n,{});n.locals&&(s.exports=n.locals)},function(s,a,t){var n=t(346);"string"==typeof n&&(n=[[s.i,n,""]]);t(252)(n,{});n.locals&&(s.exports=n.locals)},function(s,a,t){var n=t(347);"string"==typeof n&&(n=[[s.i,n,""]]);t(252)(n,{});n.locals&&(s.exports=n.locals)},function(s,a,t){var n=t(348);"string"==typeof n&&(n=[[s.i,n,""]]);t(252)(n,{});n.locals&&(s.exports=n.locals)},function(s,a,t){var n=t(349);"string"==typeof n&&(n=[[s.i,n,""]]);t(252)(n,{});n.locals&&(s.exports=n.locals)},function(s,a,t){var n=t(350);"string"==typeof n&&(n=[[s.i,n,""]]);t(252)(n,{});n.locals&&(s.exports=n.locals)},function(s,a,t){var n=t(351);"string"==typeof n&&(n=[[s.i,n,""]]);t(252)(n,{});n.locals&&(s.exports=n.locals)},function(s,a,t){var n=t(352);"string"==typeof n&&(n=[[s.i,n,""]]);t(252)(n,{});n.locals&&(s.exports=n.locals)},function(s,a,t){var n=t(353);"string"==typeof n&&(n=[[s.i,n,""]]);t(252)(n,{});n.locals&&(s.exports=n.locals)},function(s,a,t){var n=t(354);"string"==typeof n&&(n=[[s.i,n,""]]);t(252)(n,{});n.locals&&(s.exports=n.locals)},function(s,a,t){var n=t(355);"string"==typeof n&&(n=[[s.i,n,""]]);t(252)(n,{});n.locals&&(s.exports=n.locals)},function(s,a,t){var n=t(356);"string"==typeof n&&(n=[[s.i,n,""]]);t(252)(n,{});n.locals&&(s.exports=n.locals)},function(s,a,t){t(538);var n=t(0)(t(309),t(503),null,null);s.exports=n.exports},function(s,a,t){var n=t(0)(t(310),t(523),null,null);s.exports=n.exports},function(s,a,t){t(531);var n=t(0)(null,t(486),null,null);s.exports=n.exports},function(s,a,t){var n=t(0)(null,t(494),null,null);s.exports=n.exports},function(s,a,t){t(534);var n=t(0)(t(311),t(495),null,null);s.exports=n.exports},function(s,a,t){t(540);var n=t(0)(t(312),t(507),null,null);s.exports=n.exports},function(s,a,t){var n=t(0)(t(313),t(481),null,null);s.exports=n.exports},function(s,a,t){t(537);var n=t(0)(t(314),t(502),null,null);s.exports=n.exports},function(s,a,t){t(529);var n=t(0)(t(315),t(483),null,null);s.exports=n.exports},function(s,a,t){t(530);var n=t(0)(null,t(485),null,null);s.exports=n.exports},function(s,a,t){t(527);var n=t(0)(t(316),t(469),null,null);s.exports=n.exports},function(s,a,t){var n=t(0)(null,t(489),null,null);s.exports=n.exports},function(s,a,t){var n=t(0)(null,t(515),null,null);s.exports=n.exports},function(s,a,t){t(541);var n=t(0)(null,t(508),null,null);s.exports=n.exports},function(s,a,t){t(546);var n=t(0)(null,t(516),null,null);s.exports=n.exports},function(s,a,t){var n=t(0)(t(317),t(473),null,null);s.exports=n.exports},function(s,a,t){t(547);var n=t(0)(t(318),t(520),null,null);s.exports=n.exports},function(s,a,t){t(535);var n=t(0)(null,t(499),null,null);s.exports=n.exports},function(s,a,t){t(548);var n=t(0)(t(319),t(522),null,null);s.exports=n.exports},function(s,a,t){var n=t(0)(null,t(525),null,null);s.exports=n.exports},function(s,a,t){t(543);var n=t(0)(t(320),t(511),null,null);s.exports=n.exports},function(s,a,t){var n=t(0)(t(321),t(477),null,null);s.exports=n.exports},function(s,a,t){t(536);var n=t(0)(t(322),t(501),null,null);s.exports=n.exports},function(s,a,t){t(533);var n=t(0)(null,t(493),null,null);s.exports=n.exports},function(s,a,t){t(526);var n=t(0)(t(323),t(468),null,null);s.exports=n.exports},function(s,a,t){t(544),t(545);var n=t(0)(t(324),t(512),null,null);s.exports=n.exports},function(s,a,t){t(542);var n=t(0)(null,t(509),null,null);s.exports=n.exports},function(s,a,t){t(532);var n=t(0)(t(325),t(490),null,null);s.exports=n.exports},function(s,a,t){t(539);var n=t(0)(t(326),t(504),null,null);s.exports=n.exports},function(s,a,t){t(528);var n=t(0)(t(327),t(471),null,null);s.exports=n.exports},,function(s,a,t){t(404);var n=t(0)(t(281),t(521),null,null);s.exports=n.exports},function(s,a,t){t(385);var n=t(0)(t(282),t(474),null,null);s.exports=n.exports},function(s,a,t){var n=t(0)(t(283),t(497),null,null);s.exports=n.exports},function(s,a,t){t(405);var n=t(0)(t(284),t(524),null,null);s.exports=n.exports},function(s,a,t){var n=t(0)(t(285),t(492),null,null);s.exports=n.exports},function(s,a,t){t(384);var n=t(0)(t(286),t(472),null,null);s.exports=n.exports},function(s,a,t){t(383);var n=t(0)(t(287),t(470),null,null);s.exports=n.exports},function(s,a,t){var n=t(0)(t(288),t(478),null,null);s.exports=n.exports},function(s,a,t){t(388);var n=t(0)(t(289),t(480),null,null);s.exports=n.exports},function(s,a,t){t(402);var n=t(0)(t(290),t(518),null,null);s.exports=n.exports},function(s,a,t){t(387);var n=t(0)(t(291),t(479),null,null);s.exports=n.exports},function(s,a,t){t(391);var n=t(0)(t(292),t(487),null,null);s.exports=n.exports},function(s,a,t){t(380);var n=t(0)(t(293),t(465),null,null);s.exports=n.exports},function(s,a,t){t(381);var n=t(0)(t(294),t(466),null,null);s.exports=n.exports},function(s,a,t){var n=t(0)(t(295),t(476),null,null);s.exports=n.exports},function(s,a,t){t(390);var n=t(0)(t(296),t(484),null,null);s.exports=n.exports},function(s,a,t){t(403);var n=t(0)(t(297),t(519),null,null);s.exports=n.exports},function(s,a,t){t(398);var n=t(0)(t(298),t(510),null,null);s.exports=n.exports},function(s,a,t){t(386);var n=t(0)(t(299),t(475),null,null);s.exports=n.exports},function(s,a,t){var n=t(0)(t(300),t(491),null,null);s.exports=n.exports},function(s,a,t){t(401);var n=t(0)(t(301),t(517),null,null);s.exports=n.exports},function(s,a,t){t(399);var n=t(0)(t(302),t(513),null,null);s.exports=n.exports},function(s,a,t){t(393);var n=t(0)(t(303),t(498),null,null);s.exports=n.exports},function(s,a,t){t(395),t(396);var n=t(0)(t(304),t(505),null,null);s.exports=n.exports},function(s,a,t){t(397);var n=t(0)(t(305),t(506),null,null);s.exports=n.exports},function(s,a,t){t(394);var n=t(0)(t(306),t(500),null,null);s.exports=n.exports},function(s,a,t){t(389);var n=t(0)(t(307),t(482),null,null);s.exports=n.exports},function(s,a,t){t(400);var n=t(0)(t(308),t(514),null,null);s.exports=n.exports},function(s,a){s.exports={render:function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("section",{staticClass:"demo-loading"},[t("h1",{staticClass:"demo-title"},[s._v("loading")]),t("example-block",{attrs:{title:"基础用法"}},[t("div",{staticClass:"demo-loading"},[t("h2",{staticClass:"demo-sub-title"},[s._v("渐变深色spinner")]),s._v(" "),t("div",{staticClass:"demo-loading__example"},[t("zan-loading",{staticClass:"some-customized-class"})],1),s._v(" "),t("h2",{staticClass:"demo-sub-title"},[s._v("渐变浅色spinner")]),s._v(" "),t("div",{staticClass:"demo-loading__example demo-loading__example--with-bg"},[t("zan-loading",{staticClass:"some-customized-class",attrs:{color:"white"}})],1),s._v(" "),t("h2",{staticClass:"demo-sub-title"},[s._v("单色spinner")]),s._v(" "),t("div",{staticClass:"demo-loading__example"},[t("zan-loading",{staticClass:"some-customized-class",attrs:{type:"circle",color:"white"}})],1),s._v(" "),t("h2",{staticClass:"demo-sub-title"},[s._v("单色spinner")]),s._v(" "),t("div",{staticClass:"demo-loading__example"},[t("zan-loading",{staticClass:"some-customized-class",attrs:{type:"circle",color:"black"}})],1)])])],1)},staticRenderFns:[]}},function(s,a){s.exports={render:function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("section",{staticClass:"demo-panel"},[t("h1",{staticClass:"demo-title"},[s._v("panel")]),t("example-block",{attrs:{title:"基础用法"}},[t("zan-panel",{attrs:{title:"标题",desc:"标题描述",status:"状态"}},[t("div",{staticClass:"panel-content"},[s._v("\n panel内容\n ")])])],1),t("example-block",{attrs:{title:"高级用法"}},[t("zan-panel",{attrs:{title:"标题",desc:"标题描述",status:"状态"}},[t("zan-card",{attrs:{title:"商品名称是什么,两行显示状态如效果图,多余多余多余两行显示状态如效果图,多余多余多余两行显示状态如效果图,多余多余多余两行显示状态如效果图,多余多余多余两行显示状态如效果图,多余多余多余",desc:"商品SKU1,商品SKU2",thumb:"https://img.yzcdn.cn/upload_files/2017/02/17/FnDwvwHmU-OiqsbjAO5X7wh1KWrR.jpg!100x100.jpg"}},[t("div",{staticClass:"zan-card__row",slot:"title"},[t("h4",{staticClass:"zan-card__title"},[s._v("商品名称是什么,两行显示状态如效果图,多余多余多余两行显示状态如效果图,多余多余多余两行显示状态如效果图,多余多余多余两行显示状态如效果图,多余多余多余两行显示状态如效果图,多余多余多余")]),s._v(" "),t("span",{staticClass:"zan-card__price"},[s._v("¥ 2.00")])]),s._v(" "),t("div",{staticClass:"zan-card__row",slot:"desc"},[t("h4",{staticClass:"zan-card__desc"},[s._v("商品sku")]),s._v(" "),t("span",{staticClass:"zan-card__num"},[s._v("x 2")])]),s._v(" "),t("div",{staticClass:"zan-card__footer",slot:"footer"},[t("zan-button",{attrs:{size:"mini"}},[s._v("按钮一")]),s._v(" "),t("zan-button",{attrs:{size:"mini"}},[s._v("按钮二")])],1)]),s._v(" "),t("div",{staticClass:"zan-panel-sum"},[s._v("\n 合计:"),t("span",[s._v("¥ 1999.90")])]),s._v(" "),t("div",{staticClass:"zan-panel-buttons",slot:"footer"},[t("zan-button",{attrs:{size:"small"}},[s._v("按钮一")]),s._v(" "),t("zan-button",{attrs:{size:"small",type:"danger"}},[s._v("按钮二")])],1)],1)],1)],1)},staticRenderFns:[]}},,function(s,a){s.exports={render:function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("section",[s._m(0),s._v(" "),s._m(1),s._v(" "),t("demo-block",{staticClass:"demo-box",attrs:{description:"基础用法"}},[t("div",{staticClass:"examples",slot:"examples"},[t("div",{staticClass:"demo-switch__wrapper"},[t("zan-switch",{staticClass:"some-customized-class",attrs:{checked:s.switchState},on:{change:s.updateState}}),s._v(" "),t("div",{staticClass:"demo-switch__text"},[s._v(s._s(s.switchStateText))])],1),s._v(" "),t("div",{staticClass:"demo-switch__wrapper"},[t("zan-switch",{staticClass:"some-customized-class",attrs:{checked:!0,disabled:!0}}),s._v(" "),t("div",{staticClass:"demo-switch__text"},[s._v("ON, DISABLED")])],1),s._v(" "),t("div",{staticClass:"demo-switch__wrapper"},[t("zan-switch",{staticClass:"some-customized-class",attrs:{checked:!1,disabled:!0}}),s._v(" "),t("div",{staticClass:"demo-switch__text"},[s._v("OFF, DISABLED")])],1),s._v(" "),t("div",{staticClass:"demo-switch__wrapper"},[t("zan-switch",{staticClass:"some-customized-class",attrs:{checked:!0,loading:!0}}),s._v(" "),t("div",{staticClass:"demo-switch__text"},[s._v("ON, LOADING")])],1),s._v(" "),t("div",{staticClass:"demo-switch__wrapper"},[t("zan-switch",{staticClass:"some-customized-class",attrs:{checked:!1,loading:!0}}),s._v(" "),t("div",{staticClass:"demo-switch__text"},[s._v("OFF, LOADING")])],1)]),s._v(" "),t("div",{staticClass:"highlight",slot:"highlight"},[t("pre",[t("code",{staticClass:"hljs language-html"},[t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("div")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("class")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"demo-switch__wrapper"')]),s._v(">")]),s._v("\n "),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("zan-switch")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("class")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"some-customized-class"')]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v(":checked")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"switchState"')]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("@change")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"updateState"')]),s._v(">")]),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n "),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("div")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("class")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"demo-switch__text"')]),s._v(">")]),t("span",[s._v("{{")]),s._v("switchStateText"),t("span",[s._v("}}")]),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n"),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n"),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("div")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("class")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"demo-switch__wrapper"')]),s._v(">")]),s._v("\n "),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("zan-switch")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("class")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"some-customized-class"')]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v(":checked")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"true"')]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v(":disabled")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"true"')]),s._v(">")]),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n "),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("div")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("class")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"demo-switch__text"')]),s._v(">")]),s._v("ON, DISABLED"),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n"),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n"),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("div")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("class")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"demo-switch__wrapper"')]),s._v(">")]),s._v("\n "),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("zan-switch")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("class")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"some-customized-class"')]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v(":checked")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"false"')]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v(":disabled")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"true"')]),s._v(">")]),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n "),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("div")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("class")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"demo-switch__text"')]),s._v(">")]),s._v("OFF, DISABLED"),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n"),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n"),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("div")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("class")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"demo-switch__wrapper"')]),s._v(">")]),s._v("\n "),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("zan-switch")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("class")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"some-customized-class"')]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v(":checked")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"true"')]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v(":loading")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"true"')]),s._v(">")]),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n "),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("div")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("class")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"demo-switch__text"')]),s._v(">")]),s._v("ON, LOADING"),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n"),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n"),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("div")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("class")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"demo-switch__wrapper"')]),s._v(">")]),s._v("\n "),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("zan-switch")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("class")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"some-customized-class"')]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v(":checked")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"false"')]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v(":loading")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"true"')]),s._v(">")]),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n "),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("div")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("class")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"demo-switch__text"')]),s._v(">")]),s._v("OFF, LOADING"),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n"),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n\n"),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("script")]),s._v(">")]),t("span",{staticClass:"javascript"},[s._v("\n"),t("span",{staticClass:"hljs-keyword"},[s._v("export")]),s._v(" "),t("span",{staticClass:"hljs-keyword"},[s._v("default")]),s._v(" {\n data() {\n "),t("span",{staticClass:"hljs-keyword"},[s._v("return")]),s._v(" {\n "),t("span",{staticClass:"hljs-attr"},[s._v("switchState")]),s._v(": "),t("span",{staticClass:"hljs-literal"},[s._v("true")]),s._v("\n };\n },\n "),t("span",{staticClass:"hljs-attr"},[s._v("computed")]),s._v(": {\n switchStateText() {\n "),t("span",{staticClass:"hljs-keyword"},[s._v("return")]),s._v(" "),t("span",{staticClass:"hljs-keyword"},[s._v("this")]),s._v(".switchState ? "),t("span",{staticClass:"hljs-string"},[s._v("' ON'")]),s._v(" : "),t("span",{staticClass:"hljs-string"},[s._v("'OFF'")]),s._v(";\n }\n },\n "),t("span",{staticClass:"hljs-attr"},[s._v("methods")]),s._v(": {\n updateState(newState) {\n "),t("span",{staticClass:"hljs-keyword"},[s._v("this")]),s._v(".switchState = newState;\n }\n }\n}; \n")]),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n")])])])]),s._v(" "),s._m(2),s._v(" "),s._m(3)],1)},staticRenderFns:[function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("h2",{attrs:{id:"switch-zu-jian"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#switch-zu-jian","aria-hidden":"true"}},[s._v("¶")]),s._v(" Switch组件")])},function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("h3",{attrs:{id:"ji-chu-yong-fa"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#ji-chu-yong-fa","aria-hidden":"true"}},[s._v("¶")]),s._v(" 基础用法")])},function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("h3",{attrs:{id:"api"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#api","aria-hidden":"true"}},[s._v("¶")]),s._v(" API")])},function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("table",{staticClass:"table"},[t("thead",[t("tr",[t("th",[s._v("参数")]),s._v(" "),t("th",[s._v("说明")]),s._v(" "),t("th",[s._v("类型")]),s._v(" "),t("th",[s._v("默认值")]),s._v(" "),t("th",[s._v("可选值")])])]),s._v(" "),t("tbody",[t("tr",[t("td",[s._v("checked")]),s._v(" "),t("td",[s._v("开关状态")]),s._v(" "),t("td",[t("code",[s._v("boolean")])]),s._v(" "),t("td",[t("code",[s._v("false")])]),s._v(" "),t("td",[t("code",[s._v("true")]),s._v(", "),t("code",[s._v("false")])])]),s._v(" "),t("tr",[t("td",[s._v("loading")]),s._v(" "),t("td",[s._v("loading状态")]),s._v(" "),t("td",[t("code",[s._v("boolean")])]),s._v(" "),t("td",[t("code",[s._v("false")])]),s._v(" "),t("td",[t("code",[s._v("true")]),s._v(", "),t("code",[s._v("false")])])]),s._v(" "),t("tr",[t("td",[s._v("disabled")]),s._v(" "),t("td",[s._v("禁用状态")]),s._v(" "),t("td",[t("code",[s._v("boolean")])]),s._v(" "),t("td",[t("code",[s._v("false")])]),s._v(" "),t("td",[t("code",[s._v("true")]),s._v(", "),t("code",[s._v("false")])])])])])}]}},function(s,a){s.exports={render:function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("section",[s._m(0),s._v(" "),s._m(1),s._v(" "),t("demo-block",{staticClass:"demo-box",attrs:{description:""}},[t("div",{staticClass:"examples",slot:"examples"},[t("zan-button",{on:{click:s.handleImagePreview}},[s._v("预览图片")])],1),s._v(" "),t("div",{staticClass:"highlight",slot:"highlight"},[t("pre",[t("code",{staticClass:"hljs language-html"},[t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("zan-button")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("@click")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"handleImagePreview"')]),s._v(">")]),s._v("预览图片"),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n\n"),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("script")]),s._v(">")]),t("span",{staticClass:"javascript"},[s._v("\n"),t("span",{staticClass:"hljs-keyword"},[s._v("import")]),s._v(" { ImagePreview } "),t("span",{staticClass:"hljs-keyword"},[s._v("from")]),s._v(" "),t("span",{staticClass:"hljs-string"},[s._v("'src/index'")]),s._v(";\n\n"),t("span",{staticClass:"hljs-keyword"},[s._v("export")]),s._v(" "),t("span",{staticClass:"hljs-keyword"},[s._v("default")]),s._v(" {\n "),t("span",{staticClass:"hljs-attr"},[s._v("methods")]),s._v(": {\n handleImagePreview() {\n ImagePreview([\n "),t("span",{staticClass:"hljs-string"},[s._v("'https://img.yzcdn.cn/upload_files/2017/03/14/FmTPs0SeyQaAOSK1rRe1sL8RcwSY.jpeg?imageView2/2/w/980/h/980/q/75/format/webp'")]),s._v(",\n "),t("span",{staticClass:"hljs-string"},[s._v("'https://img.yzcdn.cn/upload_files/2017/03/15/FvexrWlG_WxtCE9Omo5l27n_mAG_.jpeg?imageView2/2/w/980/h/980/q/75/format/webp'")]),s._v("\n ]);\n }\n }\n};\n")]),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n")])])])])],1)},staticRenderFns:[function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("h2",{attrs:{id:"imagepreview-tu-pian-yu-lan"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#imagepreview-tu-pian-yu-lan","aria-hidden":"true"}},[s._v("¶")]),s._v(" ImagePreview 图片预览")])},function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("h3",{attrs:{id:"ji-chu-yong-fa"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#ji-chu-yong-fa","aria-hidden":"true"}},[s._v("¶")]),s._v(" 基础用法")])}]}},function(s,a){s.exports={render:function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("section",{staticClass:"demo-checkbox"},[t("h1",{staticClass:"demo-title"},[s._v("checkbox")]),t("example-block",{attrs:{title:"基础用法"}},[t("div",{staticClass:"zan-checkbox-wrapper"},[t("zan-checkbox",{directives:[{name:"model",rawName:"v-model",value:s.checkbox1,expression:"checkbox1"}],domProps:{value:s.checkbox1},on:{input:function(a){s.checkbox1=a}}},[s._v("复选框1")])],1)]),t("example-block",{attrs:{title:"禁用状态"}},[t("div",{staticClass:"zan-checkbox-wrapper"},[t("zan-checkbox",{directives:[{name:"model",rawName:"v-model",value:s.checkbox2,expression:"checkbox2"}],domProps:{value:s.checkbox2},on:{input:function(a){s.checkbox2=a}}},[s._v("复选框2")])],1)]),t("example-block",{attrs:{title:"Checkbox组"}},[t("div",{staticClass:"zan-checkbox-wrapper"},[t("zan-checkbox-group",{directives:[{name:"model",rawName:"v-model",value:s.result,expression:"result"}],domProps:{value:s.result},on:{input:function(a){s.result=a}}},s._l(s.list,function(a){return t("zan-checkbox",{attrs:{name:a}},[s._v("复选框"+s._s(a))])}))],1)]),t("example-block",{attrs:{title:"禁用Checkbox组"}},[t("div",{staticClass:"zan-checkbox-wrapper"},[t("zan-checkbox-group",{directives:[{name:"model",rawName:"v-model",value:s.result,expression:"result"}],attrs:{disabled:""},domProps:{value:s.result},on:{input:function(a){s.result=a}}},s._l(s.list,function(a){return t("zan-checkbox",{attrs:{name:a}},[s._v("复选框"+s._s(a))])}))],1)]),t("example-block",{attrs:{title:"与Cell组件一起使用"}},[t("zan-checkbox-group",{directives:[{name:"model",rawName:"v-model",value:s.result,expression:"result"}],domProps:{value:s.result},on:{input:function(a){s.result=a}}},[t("zan-cell-group",s._l(s.list,function(a){return t("zan-cell",[t("zan-checkbox",{attrs:{name:a}},[s._v("复选框"+s._s(a))])],1)}))],1)],1)],1)},staticRenderFns:[]}},function(s,a){s.exports={render:function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("section",[s._m(0),s._v(" "),s._m(1),s._v(" "),t("demo-block",{staticClass:"demo-box",attrs:{description:"基础用法"}},[t("div",{staticClass:"examples",slot:"examples"},[t("div",{staticClass:"waterfall"},[t("div",{directives:[{name:"waterfall-lower",rawName:"v-waterfall-lower",value:s.loadMore,expression:"loadMore"},{name:"waterfall-upper",rawName:"v-waterfall-upper",value:s.loadMoreUpper,expression:"loadMoreUpper"}],attrs:{"waterfall-disabled":"isWaterfallDisabled","waterfall-offset":"400"}},[s._l(s.list,function(a){return t("div",{staticClass:"waterfall-item",staticStyle:{"text-align":"center"}},[s._v("\n "+s._s(a)+"\n ")])}),s._v(" "),s.loading?t("div",{staticStyle:{"text-align":"center"}},[s._v("\n loading\n ")]):s._e()],2)])]),s._v(" "),t("div",{staticClass:"highlight",slot:"highlight"},[t("pre",[t("code",{staticClass:"hljs language-html"},[t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("div")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("class")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"waterfall"')]),s._v(">")]),s._v("\n "),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("div")]),s._v("\n "),t("span",{staticClass:"hljs-attr"},[s._v("v-waterfall-lower")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"loadMore"')]),s._v("\n "),t("span",{staticClass:"hljs-attr"},[s._v("v-waterfall-upper")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"loadMoreUpper"')]),s._v("\n "),t("span",{staticClass:"hljs-attr"},[s._v("waterfall-disabled")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"isWaterfallDisabled"')]),s._v("\n "),t("span",{staticClass:"hljs-attr"},[s._v("waterfall-offset")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"400"')]),s._v("\n >")]),s._v("\n "),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("div")]),s._v("\n "),t("span",{staticClass:"hljs-attr"},[s._v("class")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"waterfall-item"')]),s._v("\n "),t("span",{staticClass:"hljs-attr"},[s._v("v-for")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"item in list"')]),s._v("\n "),t("span",{staticClass:"hljs-attr"},[s._v("style")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"text-align: center;"')]),s._v("\n >")]),s._v("\n "),t("span",[s._v("{{")]),s._v(" item "),t("span",[s._v("}}")]),s._v("\n "),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n "),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("div")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("v-if")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"loading"')]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("style")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"text-align: center;"')]),s._v(">")]),s._v("\n loading\n "),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n "),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n"),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n")])])])]),s._v(" "),s._m(2),s._v(" "),s._m(3)],1)},staticRenderFns:[function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("h2",{attrs:{id:"waterfall-pu-bu-liu"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#waterfall-pu-bu-liu","aria-hidden":"true"}},[s._v("¶")]),s._v(" Waterfall 瀑布流")])},function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("h3",{attrs:{id:"ji-chu-yong-fa"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#ji-chu-yong-fa","aria-hidden":"true"}},[s._v("¶")]),s._v(" 基础用法")])},function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("h3",{attrs:{id:"api"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#api","aria-hidden":"true"}},[s._v("¶")]),s._v(" API")])},function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("table",{staticClass:"table"},[t("thead",[t("tr",[t("th",[s._v("参数")]),s._v(" "),t("th",[s._v("说明")]),s._v(" "),t("th",[s._v("类型")]),s._v(" "),t("th",[s._v("默认值")]),s._v(" "),t("th",[s._v("可选值")])])]),s._v(" "),t("tbody",[t("tr",[t("td",[s._v("waterfall-disabled")]),s._v(" "),t("td",[s._v("在vue对象中表示是否禁止瀑布流触发的key值")]),s._v(" "),t("td",[t("code",[s._v("string")])]),s._v(" "),t("td",[s._v("-")]),s._v(" "),t("td")]),s._v(" "),t("tr",[t("td",[s._v("waterfall-offset")]),s._v(" "),t("td",[s._v("触发瀑布流加载的阈值")]),s._v(" "),t("td",[t("code",[s._v("number")])]),s._v(" "),t("td",[t("code",[s._v("300")])]),s._v(" "),t("td")])])])}]}},function(s,a){s.exports={render:function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("section",{staticClass:"demo-cell"},[t("h1",{staticClass:"demo-title"},[s._v("cell")]),t("example-block",{attrs:{title:"基础用法"}},[t("zan-cell-group",[t("zan-cell",{attrs:{title:"单元格1",value:"单元格1内容"}}),s._v(" "),t("zan-cell",{attrs:{title:"单元格2",value:"单元格2内容"}})],1)],1),t("example-block",{attrs:{title:"带*号,标明必填"}},[t("zan-cell-group",[t("zan-cell",{attrs:{title:"单元格1",required:""}})],1)],1),t("example-block",{attrs:{title:"标题带描述信息"}},[t("zan-cell-group",[t("zan-cell",{attrs:{title:"单元格1",label:"描述信息","is-link":"",url:"javascript:void(0)"},on:{click:s.handleClick}}),s._v(" "),t("zan-cell",{attrs:{title:"单元格2",label:"描述信息"}})],1)],1),t("example-block",{attrs:{title:"带图标"}},[t("zan-cell-group",[t("zan-cell",{attrs:{title:"起码运动馆",icon:"home"}}),s._v(" "),t("zan-cell",{attrs:{title:"线下门店",icon:"location"}})],1)],1),t("example-block",{attrs:{title:"可点击的链接"}},[t("zan-cell-group",[t("zan-cell",{attrs:{title:"起码运动馆",value:"进入店铺",icon:"home",url:"http://youzan.com","is-link":""}}),s._v(" "),t("zan-cell",{attrs:{title:"线下门店",icon:"location",url:"http://youzan.com","is-link":""}})],1)],1),t("example-block",{attrs:{title:"高级用法"}},[t("zan-cell-group",[t("zan-cell",{attrs:{value:"进入店铺",icon:"home",url:"http://youzan.com","is-link":""}},[t("template",{slot:"title"},[t("span",{staticClass:"zan-cell-text"},[s._v("起码运动馆")]),s._v(" "),t("img",{staticClass:"official-img",attrs:{src:"//su.yzcdn.cn/v2/image/account/icon_guan_160421.png"}})])],2),s._v(" "),t("zan-cell",{attrs:{title:"线下门店",icon:"location",url:"http://youzan.com","is-link":""}})],1)],1)],1)},staticRenderFns:[]}},function(s,a){s.exports={render:function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("section",[s._m(0),s._v(" "),s._m(1),s._v(" "),s._m(2),s._v(" "),t("demo-block",{staticClass:"demo-box",attrs:{description:"基础用法"}},[t("div",{staticClass:"examples",slot:"examples"},[t("zan-picker",{attrs:{columns:s.pickerColumns},on:{change:s.handlePickerChange}})],1),s._v(" "),t("div",{staticClass:"highlight",slot:"highlight"},[t("pre",[t("code",{staticClass:"hljs language-html"},[t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("zan-picker")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v(":columns")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"pickerColumns"')]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("@change")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"handlePickerChange"')]),s._v(">")]),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n\n"),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("script")]),s._v(">")]),t("span",{staticClass:"javascript"},[s._v("\n"),t("span",{staticClass:"hljs-keyword"},[s._v("const")]),s._v(" citys = {\n "),t("span",{staticClass:"hljs-string"},[s._v("'浙江'")]),s._v(": ["),t("span",{staticClass:"hljs-string"},[s._v("'杭州'")]),s._v(", "),t("span",{staticClass:"hljs-string"},[s._v("'宁波'")]),s._v(", "),t("span",{staticClass:"hljs-string"},[s._v("'温州'")]),s._v(", "),t("span",{staticClass:"hljs-string"},[s._v("'嘉兴'")]),s._v(", "),t("span",{staticClass:"hljs-string"},[s._v("'湖州'")]),s._v(", "),t("span",{staticClass:"hljs-string"},[s._v("'绍兴'")]),s._v(", "),t("span",{staticClass:"hljs-string"},[s._v("'金华'")]),s._v(", "),t("span",{staticClass:"hljs-string"},[s._v("'衢州'")]),s._v(", "),t("span",{staticClass:"hljs-string"},[s._v("'舟山'")]),s._v(", "),t("span",{staticClass:"hljs-string"},[s._v("'台州'")]),s._v(", "),t("span",{staticClass:"hljs-string"},[s._v("'丽水'")]),s._v("],\n "),t("span",{staticClass:"hljs-string"},[s._v("'福建'")]),s._v(": ["),t("span",{staticClass:"hljs-string"},[s._v("'福州'")]),s._v(", "),t("span",{staticClass:"hljs-string"},[s._v("'厦门'")]),s._v(", "),t("span",{staticClass:"hljs-string"},[s._v("'莆田'")]),s._v(", "),t("span",{staticClass:"hljs-string"},[s._v("'三明'")]),s._v(", "),t("span",{staticClass:"hljs-string"},[s._v("'泉州'")]),s._v(", "),t("span",{staticClass:"hljs-string"},[s._v("'漳州'")]),s._v(", "),t("span",{staticClass:"hljs-string"},[s._v("'南平'")]),s._v(", "),t("span",{staticClass:"hljs-string"},[s._v("'龙岩'")]),s._v(", "),t("span",{staticClass:"hljs-string"},[s._v("'宁德'")]),s._v("],\n "),t("span",{staticClass:"hljs-string"},[s._v("'湖南'")]),s._v(": ["),t("span",{staticClass:"hljs-string"},[s._v("'长沙'")]),s._v(", "),t("span",{staticClass:"hljs-string"},[s._v("'株洲'")]),s._v(", "),t("span",{staticClass:"hljs-string"},[s._v("'湘潭'")]),s._v(", "),t("span",{staticClass:"hljs-string"},[s._v("'衡阳'")]),s._v(", "),t("span",{staticClass:"hljs-string"},[s._v("'邵阳'")]),s._v(", "),t("span",{staticClass:"hljs-string"},[s._v("'岳阳'")]),s._v(", "),t("span",{staticClass:"hljs-string"},[s._v("'常德'")]),s._v(", "),t("span",{staticClass:"hljs-string"},[s._v("'张家界'")]),s._v(", "),t("span",{staticClass:"hljs-string"},[s._v("'益阳'")]),s._v(", "),t("span",{staticClass:"hljs-string"},[s._v("'郴州'")]),s._v(", "),t("span",{staticClass:"hljs-string"},[s._v("'永州'")]),s._v(", "),t("span",{staticClass:"hljs-string"},[s._v("'怀化'")]),s._v(", "),t("span",{staticClass:"hljs-string"},[s._v("'娄底'")]),s._v(", "),t("span",{staticClass:"hljs-string"},[s._v("'湘西土家族苗族自治州'")]),s._v("]\n};\n\n"),t("span",{staticClass:"hljs-keyword"},[s._v("export")]),s._v(" "),t("span",{staticClass:"hljs-keyword"},[s._v("default")]),s._v(" {\n data() {\n "),t("span",{staticClass:"hljs-keyword"},[s._v("return")]),s._v(" {\n "),t("span",{staticClass:"hljs-attr"},[s._v("pickerColumns")]),s._v(": [\n {\n "),t("span",{staticClass:"hljs-attr"},[s._v("values")]),s._v(": "),t("span",{staticClass:"hljs-built_in"},[s._v("Object")]),s._v(".keys(citys),\n "),t("span",{staticClass:"hljs-attr"},[s._v("className")]),s._v(": "),t("span",{staticClass:"hljs-string"},[s._v("'column1'")]),s._v("\n },\n {\n "),t("span",{staticClass:"hljs-attr"},[s._v("values")]),s._v(": ["),t("span",{staticClass:"hljs-string"},[s._v("'杭州'")]),s._v(", "),t("span",{staticClass:"hljs-string"},[s._v("'宁波'")]),s._v(", "),t("span",{staticClass:"hljs-string"},[s._v("'温州'")]),s._v(", "),t("span",{staticClass:"hljs-string"},[s._v("'嘉兴'")]),s._v(", "),t("span",{staticClass:"hljs-string"},[s._v("'湖州'")]),s._v(", "),t("span",{staticClass:"hljs-string"},[s._v("'绍兴'")]),s._v(", "),t("span",{staticClass:"hljs-string"},[s._v("'金华'")]),s._v(", "),t("span",{staticClass:"hljs-string"},[s._v("'衢州'")]),s._v(", "),t("span",{staticClass:"hljs-string"},[s._v("'舟山'")]),s._v(", "),t("span",{staticClass:"hljs-string"},[s._v("'台州'")]),s._v(", "),t("span",{staticClass:"hljs-string"},[s._v("'丽水'")]),s._v("],\n "),t("span",{staticClass:"hljs-attr"},[s._v("className")]),s._v(": "),t("span",{staticClass:"hljs-string"},[s._v("'column2'")]),s._v("\n }\n ]\n };\n },\n\n "),t("span",{staticClass:"hljs-attr"},[s._v("methods")]),s._v(": {\n handlePickerChange(picker, values) {\n picker.setColumnValues("),t("span",{staticClass:"hljs-number"},[s._v("1")]),s._v(", citys[values["),t("span",{staticClass:"hljs-number"},[s._v("0")]),s._v("]]);\n }\n }\n};\n")]),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n")])])])]),s._v(" "),s._m(3),s._v(" "),t("demo-block",{staticClass:"demo-box",attrs:{description:"带toolbar的Picker"}},[t("div",{staticClass:"examples",slot:"examples"},[t("zan-picker",{attrs:{columns:s.pickerColumns,"show-toolbar":""},on:{change:s.handlePickerChange,cancel:s.handlePickerCancel,confirm:s.handlePickerConfirm}})],1),s._v(" "),t("div",{staticClass:"highlight",slot:"highlight"},[t("pre",[t("code",{staticClass:"hljs language-html"},[t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("zan-picker")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v(":columns")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"pickerColumns"')]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("show-toolbar")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("@change")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"handlePickerChange"')]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("@cancel")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"handlePickerCancel"')]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("@confirm")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"handlePickerConfirm"')]),s._v(">")]),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n\n"),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("script")]),s._v(">")]),t("span",{staticClass:"javascript"},[s._v("\n"),t("span",{staticClass:"hljs-keyword"},[s._v("const")]),s._v(" citys = {\n "),t("span",{staticClass:"hljs-string"},[s._v("'浙江'")]),s._v(": ["),t("span",{staticClass:"hljs-string"},[s._v("'杭州'")]),s._v(", "),t("span",{staticClass:"hljs-string"},[s._v("'宁波'")]),s._v(", "),t("span",{staticClass:"hljs-string"},[s._v("'温州'")]),s._v(", "),t("span",{staticClass:"hljs-string"},[s._v("'嘉兴'")]),s._v(", "),t("span",{staticClass:"hljs-string"},[s._v("'湖州'")]),s._v(", "),t("span",{staticClass:"hljs-string"},[s._v("'绍兴'")]),s._v(", "),t("span",{staticClass:"hljs-string"},[s._v("'金华'")]),s._v(", "),t("span",{staticClass:"hljs-string"},[s._v("'衢州'")]),s._v(", "),t("span",{staticClass:"hljs-string"},[s._v("'舟山'")]),s._v(", "),t("span",{staticClass:"hljs-string"},[s._v("'台州'")]),s._v(", "),t("span",{staticClass:"hljs-string"},[s._v("'丽水'")]),s._v("],\n "),t("span",{staticClass:"hljs-string"},[s._v("'福建'")]),s._v(": ["),t("span",{staticClass:"hljs-string"},[s._v("'福州'")]),s._v(", "),t("span",{staticClass:"hljs-string"},[s._v("'厦门'")]),s._v(", "),t("span",{staticClass:"hljs-string"},[s._v("'莆田'")]),s._v(", "),t("span",{staticClass:"hljs-string"},[s._v("'三明'")]),s._v(", "),t("span",{staticClass:"hljs-string"},[s._v("'泉州'")]),s._v(", "),t("span",{staticClass:"hljs-string"},[s._v("'漳州'")]),s._v(", "),t("span",{staticClass:"hljs-string"},[s._v("'南平'")]),s._v(", "),t("span",{staticClass:"hljs-string"},[s._v("'龙岩'")]),s._v(", "),t("span",{staticClass:"hljs-string"},[s._v("'宁德'")]),s._v("],\n "),t("span",{staticClass:"hljs-string"},[s._v("'湖南'")]),s._v(": ["),t("span",{staticClass:"hljs-string"},[s._v("'长沙'")]),s._v(", "),t("span",{staticClass:"hljs-string"},[s._v("'株洲'")]),s._v(", "),t("span",{staticClass:"hljs-string"},[s._v("'湘潭'")]),s._v(", "),t("span",{staticClass:"hljs-string"},[s._v("'衡阳'")]),s._v(", "),t("span",{staticClass:"hljs-string"},[s._v("'邵阳'")]),s._v(", "),t("span",{staticClass:"hljs-string"},[s._v("'岳阳'")]),s._v(", "),t("span",{staticClass:"hljs-string"},[s._v("'常德'")]),s._v(", "),t("span",{staticClass:"hljs-string"},[s._v("'张家界'")]),s._v(", "),t("span",{staticClass:"hljs-string"},[s._v("'益阳'")]),s._v(", "),t("span",{staticClass:"hljs-string"},[s._v("'郴州'")]),s._v(", "),t("span",{staticClass:"hljs-string"},[s._v("'永州'")]),s._v(", "),t("span",{staticClass:"hljs-string"},[s._v("'怀化'")]),s._v(", "),t("span",{staticClass:"hljs-string"},[s._v("'娄底'")]),s._v(", "),t("span",{staticClass:"hljs-string"},[s._v("'湘西土家族苗族自治州'")]),s._v("]\n};\n\n"),t("span",{staticClass:"hljs-keyword"},[s._v("export")]),s._v(" "),t("span",{staticClass:"hljs-keyword"},[s._v("default")]),s._v(" {\n data() {\n "),t("span",{staticClass:"hljs-keyword"},[s._v("return")]),s._v(" {\n "),t("span",{staticClass:"hljs-attr"},[s._v("pickerColumns")]),s._v(": [\n {\n "),t("span",{staticClass:"hljs-attr"},[s._v("values")]),s._v(": "),t("span",{staticClass:"hljs-built_in"},[s._v("Object")]),s._v(".keys(citys),\n "),t("span",{staticClass:"hljs-attr"},[s._v("className")]),s._v(": "),t("span",{staticClass:"hljs-string"},[s._v("'column1'")]),s._v("\n },\n {\n "),t("span",{staticClass:"hljs-attr"},[s._v("values")]),s._v(": ["),t("span",{staticClass:"hljs-string"},[s._v("'杭州'")]),s._v(", "),t("span",{staticClass:"hljs-string"},[s._v("'宁波'")]),s._v(", "),t("span",{staticClass:"hljs-string"},[s._v("'温州'")]),s._v(", "),t("span",{staticClass:"hljs-string"},[s._v("'嘉兴'")]),s._v(", "),t("span",{staticClass:"hljs-string"},[s._v("'湖州'")]),s._v(", "),t("span",{staticClass:"hljs-string"},[s._v("'绍兴'")]),s._v(", "),t("span",{staticClass:"hljs-string"},[s._v("'金华'")]),s._v(", "),t("span",{staticClass:"hljs-string"},[s._v("'衢州'")]),s._v(", "),t("span",{staticClass:"hljs-string"},[s._v("'舟山'")]),s._v(", "),t("span",{staticClass:"hljs-string"},[s._v("'台州'")]),s._v(", "),t("span",{staticClass:"hljs-string"},[s._v("'丽水'")]),s._v("],\n "),t("span",{staticClass:"hljs-attr"},[s._v("className")]),s._v(": "),t("span",{staticClass:"hljs-string"},[s._v("'column2'")]),s._v("\n }\n ]\n };\n },\n\n "),t("span",{staticClass:"hljs-attr"},[s._v("methods")]),s._v(": {\n handlePickerChange(picker, values) {\n picker.setColumnValues("),t("span",{staticClass:"hljs-number"},[s._v("1")]),s._v(", citys[values["),t("span",{staticClass:"hljs-number"},[s._v("0")]),s._v("]]);\n },\n handlePickerCancel() {\n alert("),t("span",{staticClass:"hljs-string"},[s._v("'picker cancel'")]),s._v(");\n },\n handlePickerConfirm() {\n alert("),t("span",{staticClass:"hljs-string"},[s._v("'picker confirm'")]),s._v(");\n }\n }\n};\n")]),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n")])])])]),s._v(" "),s._m(4),s._v(" "),s._m(5),s._v(" "),s._m(6),s._v(" "),s._m(7),s._v(" "),s._m(8),s._v(" "),s._m(9),s._v(" "),s._m(10),s._v(" "),s._m(11)],1)},staticRenderFns:[function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("h2",{attrs:{id:"picker-zu-jian"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#picker-zu-jian","aria-hidden":"true"}},[s._v("¶")]),s._v(" Picker组件")])},function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("p",[s._v("模仿iOS中的"),t("code",[s._v("UIPickerView")]),s._v("。")])},function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("h3",{attrs:{id:"ji-chu-yong-fa"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#ji-chu-yong-fa","aria-hidden":"true"}},[s._v("¶")]),s._v(" 基础用法")])},function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("h3",{attrs:{id:"dai-toolbar-de-picker"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#dai-toolbar-de-picker","aria-hidden":"true"}},[s._v("¶")]),s._v(" 带toolbar的Picker")])},function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("h3",{attrs:{id:"api"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#api","aria-hidden":"true"}},[s._v("¶")]),s._v(" API")])},function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("table",{staticClass:"table"},[t("thead",[t("tr",[t("th",[s._v("参数")]),s._v(" "),t("th",[s._v("说明")]),s._v(" "),t("th",[s._v("类型")]),s._v(" "),t("th",[s._v("默认值")]),s._v(" "),t("th",[s._v("可选值")])])]),s._v(" "),t("tbody",[t("tr",[t("td",[s._v("visibileColumnCount")]),s._v(" "),t("td",[s._v("每一列可见备选元素的个数")]),s._v(" "),t("td",[t("code",[s._v("number")])]),s._v(" "),t("td",[t("code",[s._v("5")])]),s._v(" "),t("td")]),s._v(" "),t("tr",[t("td",[s._v("itemHeight")]),s._v(" "),t("td",[s._v("选中元素区高度")]),s._v(" "),t("td",[t("code",[s._v("number")])]),s._v(" "),t("td",[t("code",[s._v("44")])]),s._v(" "),t("td")]),s._v(" "),t("tr",[t("td",[s._v("columns")]),s._v(" "),t("td",[s._v("对象数组,配置每一列显示的数据")]),s._v(" "),t("td",[t("code",[s._v("Array")])]),s._v(" "),t("td"),s._v(" "),t("td")]),s._v(" "),t("tr",[t("td",[s._v("showToolbar")]),s._v(" "),t("td",[s._v("是否在组件顶部显示一个toolbar")]),s._v(" "),t("td",[t("code",[s._v("Boolean")])]),s._v(" "),t("td",[t("code",[s._v("true")])]),s._v(" "),t("td")])])])},function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("h3",{attrs:{id:"columns"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#columns","aria-hidden":"true"}},[s._v("¶")]),s._v(" columns")])},function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("p",[t("code",[s._v("API")]),s._v("中的"),t("code",[s._v("columns")]),s._v("为一个对象数组,数组中的每一个对象配置每一列,每一列有以下"),t("code",[s._v("key")]),s._v(":")])},function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("table",{staticClass:"table"},[t("thead",[t("tr",[t("th",[s._v("key")]),s._v(" "),t("th",[s._v("说明")])])]),s._v(" "),t("tbody",[t("tr",[t("td",[s._v("values")]),s._v(" "),t("td",[s._v("列中对应的备选值")])]),s._v(" "),t("tr",[t("td",[s._v("defaultIndex")]),s._v(" "),t("td",[s._v("初始选中值的索引,默认为0")])]),s._v(" "),t("tr",[t("td",[s._v("className")]),s._v(" "),t("td",[s._v("为对应列添加特殊的"),t("code",[s._v("class")])])])])])},function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("h3",{attrs:{id:"change-shi-jian"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#change-shi-jian","aria-hidden":"true"}},[s._v("¶")]),s._v(" change事件")])},function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("p",[s._v("在"),t("code",[s._v("change")]),s._v("事件中,可以获取到"),t("code",[s._v("picker")]),s._v("实例,对"),t("code",[s._v("picker")]),s._v("进行相应的更新等操作:")])},function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("table",{staticClass:"table"},[t("thead",[t("tr",[t("th",[s._v("函数")]),s._v(" "),t("th",[s._v("说明")])])]),s._v(" "),t("tbody",[t("tr",[t("td",[s._v("getColumnValue(index)")]),s._v(" "),t("td",[s._v("获取对应列中选中的值")])]),s._v(" "),t("tr",[t("td",[s._v("setColumnValue(index, value)")]),s._v(" "),t("td",[s._v("设置对应列中选中的值")])]),s._v(" "),t("tr",[t("td",[s._v("getColumnValues(index)")]),s._v(" "),t("td",[s._v("获取对应列中所有的备选值")])]),s._v(" "),t("tr",[t("td",[s._v("setColumnValues(index, values)")]),s._v(" "),t("td",[s._v("设置对应列中所有的备选值")])]),s._v(" "),t("tr",[t("td",[s._v("getValues()")]),s._v(" "),t("td",[s._v("获取所有列中被选中的值,返回一个数组")])]),s._v(" "),t("tr",[t("td",[s._v("setValues(values)")]),s._v(" "),t("td",[t("code",[s._v("values")]),s._v("为一个数组,设置所有列中被选中的值")])])])])}]}},function(s,a){s.exports={render:function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("section",{staticClass:"demo-actionsheet"},[t("h1",{staticClass:"demo-title"},[s._v("actionsheet")]),t("example-block",{attrs:{title:"基础用法"}},[t("div",{staticClass:"zan-row"},[t("zan-button",{on:{click:function(a){s.show1=!0}}},[s._v("弹出actionsheet")])],1),s._v(" "),t("zan-actionsheet",{directives:[{name:"model",rawName:"v-model",value:s.show1,expression:"show1"}],attrs:{actions:s.actions1},domProps:{value:s.show1},on:{input:function(a){s.show1=a}}})],1),t("example-block",{attrs:{title:"带取消按钮的ActionSheet"}},[t("div",{staticClass:"zan-row"},[t("zan-button",{on:{click:function(a){s.show2=!0}}},[s._v("弹出带取消按钮的actionsheet")])],1),s._v(" "),t("zan-actionsheet",{directives:[{name:"model",rawName:"v-model",value:s.show2,expression:"show2"}],attrs:{actions:s.actions1,"cancel-text":"取消"},domProps:{value:s.show2},on:{input:function(a){s.show2=a}}})],1),t("example-block",{attrs:{title:"带标题的ActionSheet"}},[t("div",{staticClass:"zan-row"},[t("zan-button",{on:{click:function(a){s.show3=!0}}},[s._v("弹出带标题的actionsheet")])],1),s._v(" "),t("zan-actionsheet",{directives:[{name:"model",rawName:"v-model",value:s.show3,expression:"show3"}],staticClass:"title-actionsheet",attrs:{title:"支持以下配送方式"},domProps:{value:s.show3},on:{input:function(a){s.show3=a}}},[t("p",[s._v("一些内容")])])],1)],1)},staticRenderFns:[]}},function(s,a){s.exports={render:function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("section",{staticClass:"demo-radio"},[t("h1",{staticClass:"demo-title"},[s._v("radio")]),t("example-block",{attrs:{title:"基础用法"}},[t("div",{staticClass:"zan-radios"},[t("zan-radio",{directives:[{name:"model",rawName:"v-model",value:s.radio1,expression:"radio1"}],attrs:{name:"1"},domProps:{value:s.radio1},on:{input:function(a){s.radio1=a}}},[s._v("单选框1")]),s._v(" "),t("zan-radio",{directives:[{name:"model",rawName:"v-model",value:s.radio1,expression:"radio1"}],attrs:{name:"2"},domProps:{value:s.radio1},on:{input:function(a){s.radio1=a}}},[s._v("单选框2")])],1)]),t("example-block",{attrs:{title:"禁用状态"}},[t("div",{staticClass:"zan-radios"},[t("zan-radio",{directives:[{name:"model",rawName:"v-model",value:s.radio2,expression:"radio2"}],attrs:{name:"1",disabled:""},domProps:{value:s.radio2},on:{input:function(a){s.radio2=a}}},[s._v("未选中禁用")]),s._v(" "),t("zan-radio",{directives:[{name:"model",rawName:"v-model",value:s.radio2,expression:"radio2"}],attrs:{name:"2",disabled:""},domProps:{value:s.radio2},on:{input:function(a){s.radio2=a}}},[s._v("选中且禁用")])],1)]),t("example-block",{attrs:{title:"radio组"}},[t("div",{staticClass:"zan-radios"},[t("zan-radio-group",{directives:[{name:"model",rawName:"v-model",value:s.radio3,expression:"radio3"}],domProps:{value:s.radio3},on:{input:function(a){s.radio3=a}}},[t("zan-radio",{attrs:{name:"1"}},[s._v("单选框1")]),s._v(" "),t("zan-radio",{attrs:{name:"2"}},[s._v("单选框2")])],1)],1)]),t("example-block",{attrs:{title:"与Cell组件一起使用"}},[t("zan-radio-group",{directives:[{name:"model",rawName:"v-model",value:s.radio4,expression:"radio4"}],domProps:{value:s.radio4},on:{input:function(a){s.radio4=a}}},[t("zan-cell-group",[t("zan-cell",[t("zan-radio",{attrs:{name:"1"}},[s._v("单选框1")])],1),s._v(" "),t("zan-cell",[t("zan-radio",{attrs:{name:"2"}},[s._v("单选框2")])],1)],1)],1)],1)],1)},staticRenderFns:[]}},function(s,a){s.exports={render:function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("section",{staticClass:"demo-picker"},[t("h1",{staticClass:"demo-title"},[s._v("picker")]),t("example-block",{attrs:{title:"基础用法"}},[t("zan-picker",{attrs:{columns:s.pickerColumns},on:{change:s.handlePickerChange}})],1),t("example-block",{attrs:{title:"带toolbar的Picker"}},[t("zan-picker",{attrs:{columns:s.pickerColumns,"show-toolbar":""},on:{change:s.handlePickerChange,cancel:s.handlePickerCancel,confirm:s.handlePickerConfirm}})],1)],1)},staticRenderFns:[]}},function(s,a){s.exports={render:function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("section",[s._m(0),s._v(" "),s._m(1),s._v(" "),t("demo-block",{staticClass:"demo-box",attrs:{description:"基础用法"}},[t("div",{staticClass:"examples",slot:"examples"},[t("zan-search",{attrs:{placeholder:"商品名称"},on:{search:s.goSearch}})],1),s._v(" "),t("div",{staticClass:"highlight",slot:"highlight"},[t("pre",[t("code",{staticClass:"hljs language-html"},[t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("zan-search")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("placeholder")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"商品名称"')]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("@search")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"goSearch"')]),s._v(">")]),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n"),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("script")]),s._v(">")]),t("span",{staticClass:"javascript"},[s._v("\n"),t("span",{staticClass:"hljs-keyword"},[s._v("export")]),s._v(" "),t("span",{staticClass:"hljs-keyword"},[s._v("default")]),s._v(" {\n "),t("span",{staticClass:"hljs-attr"},[s._v("methods")]),s._v(": {\n goSearch(value) {\n alert(value)\n }\n }\n};\n")]),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n")])])])]),s._v(" "),s._m(2),s._v(" "),s._m(3)],1)},staticRenderFns:[function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("h2",{attrs:{id:"search-zu-jian"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#search-zu-jian","aria-hidden":"true"}},[s._v("¶")]),s._v(" Search 组件")])},function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("h3",{attrs:{id:"ji-chu-yong-fa"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#ji-chu-yong-fa","aria-hidden":"true"}},[s._v("¶")]),s._v(" 基础用法")])},function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("h3",{attrs:{id:"api"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#api","aria-hidden":"true"}},[s._v("¶")]),s._v(" API")])},function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("table",{staticClass:"table"},[t("thead",[t("tr",[t("th",[s._v("参数")]),s._v(" "),t("th",[s._v("说明")]),s._v(" "),t("th",[s._v("类型")]),s._v(" "),t("th",[s._v("默认值")]),s._v(" "),t("th",[s._v("必须")])])]),s._v(" "),t("tbody",[t("tr",[t("td",[s._v("placeholder")]),s._v(" "),t("td",[t("code",[s._v("input")]),s._v("的"),t("code",[s._v("placeholder")]),s._v("文案")]),s._v(" "),t("td",[t("code",[s._v("string")])]),s._v(" "),t("td"),s._v(" "),t("td")])])])}]}},function(s,a){s.exports={render:function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("section",{staticClass:"demo-datetime-picker"},[t("h1",{staticClass:"demo-title"},[s._v("datetime-picker")]),t("example-block",{attrs:{title:"基础用法"}},[t("zan-datetime-picker",{attrs:{type:"time","min-hour":s.minHour,"max-hour":s.maxHour,"min-date":s.minDate},on:{change:s.handlePickerChange}})],1)],1)},staticRenderFns:[]}},function(s,a){s.exports={render:function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("section",{staticClass:"demo-icon"},[t("h1",{staticClass:"demo-title"},[s._v("icon")]),t("example-block",{attrs:{title:"所有Icon"}},[t("zan-icon",{attrs:{name:"qr-invalid"}}),s._v(" "),t("zan-icon",{attrs:{name:"qr"}}),s._v(" "),t("zan-icon",{attrs:{name:"exchange"}}),s._v(" "),t("zan-icon",{attrs:{name:"close"}}),s._v(" "),t("zan-icon",{attrs:{name:"location"}}),s._v(" "),t("zan-icon",{attrs:{name:"upgrade"}}),s._v(" "),t("zan-icon",{attrs:{name:"check"}}),s._v(" "),t("zan-icon",{attrs:{name:"checked"}}),s._v(" "),t("zan-icon",{attrs:{name:"like-o"}}),s._v(" "),t("zan-icon",{attrs:{name:"like"}}),s._v(" "),t("zan-icon",{attrs:{name:"chat"}}),s._v(" "),t("zan-icon",{attrs:{name:"shop"}}),s._v(" "),t("zan-icon",{attrs:{name:"photograph"}}),s._v(" "),t("zan-icon",{attrs:{name:"add"}}),s._v(" "),t("zan-icon",{attrs:{name:"add2"}}),s._v(" "),t("zan-icon",{attrs:{name:"photo"}}),s._v(" "),t("zan-icon",{attrs:{name:"logistics"}}),s._v(" "),t("zan-icon",{attrs:{name:"edit"}}),s._v(" "),t("zan-icon",{attrs:{name:"passed"}}),s._v(" "),t("zan-icon",{attrs:{name:"cart"}}),s._v(" "),t("zan-icon",{attrs:{name:"arrow"}}),s._v(" "),t("zan-icon",{attrs:{name:"gift"}}),s._v(" "),t("zan-icon",{attrs:{name:"search"}}),s._v(" "),t("zan-icon",{attrs:{name:"clear"}}),s._v(" "),t("zan-icon",{attrs:{name:"success"}}),s._v(" "),t("zan-icon",{attrs:{name:"fail"}})],1)],1)},staticRenderFns:[]}},function(s,a){s.exports={render:function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("section",{staticClass:"demo-dialog"},[t("h1",{staticClass:"demo-title"},[s._v("dialog")]),t("example-block",{attrs:{title:"基础用法"}},[t("zan-button",{on:{click:s.handleAlertClick}},[s._v("alert")]),s._v(" "),t("zan-button",{on:{click:s.handleConfirmClick}},[s._v("confirm")])],1)],1)},staticRenderFns:[]}},function(s,a){s.exports={render:function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("section",[s._m(0),s._v(" "),s._m(1),s._v(" "),s._m(2),s._v(" "),t("demo-block",{staticClass:"demo-box",attrs:{description:"基础用法"}},[t("div",{staticClass:"examples",slot:"examples"},[t("zan-datetime-picker",{attrs:{type:"time","min-hour":s.minHour,"max-hour":s.maxHour,"min-date":s.minDate},on:{change:s.handlePickerChange}})],1),s._v(" "),t("div",{staticClass:"highlight",slot:"highlight"},[t("pre",[t("code",{staticClass:"hljs language-html"},[t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("zan-datetime-picker")]),s._v(" \n "),t("span",{staticClass:"hljs-attr"},[s._v("type")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"time"')]),s._v(" \n "),t("span",{staticClass:"hljs-attr"},[s._v(":min-hour")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"minHour"')]),s._v("\n "),t("span",{staticClass:"hljs-attr"},[s._v(":max-hour")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"maxHour"')]),s._v("\n "),t("span",{staticClass:"hljs-attr"},[s._v(":min-date")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"minDate"')]),s._v("\n "),t("span",{staticClass:"hljs-attr"},[s._v("@change")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"handlePickerChange"')]),s._v(">")]),s._v(" \n"),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n\n"),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("script")]),s._v(">")]),t("span",{staticClass:"javascript"},[s._v("\n\n"),t("span",{staticClass:"hljs-keyword"},[s._v("export")]),s._v(" "),t("span",{staticClass:"hljs-keyword"},[s._v("default")]),s._v(" {\n data() {\n "),t("span",{staticClass:"hljs-keyword"},[s._v("return")]),s._v(" {\n "),t("span",{staticClass:"hljs-attr"},[s._v("minHour")]),s._v(": "),t("span",{staticClass:"hljs-number"},[s._v("10")]),s._v(",\n "),t("span",{staticClass:"hljs-attr"},[s._v("maxHour")]),s._v(": "),t("span",{staticClass:"hljs-number"},[s._v("20")]),s._v(",\n "),t("span",{staticClass:"hljs-attr"},[s._v("minDate")]),s._v(": "),t("span",{staticClass:"hljs-keyword"},[s._v("new")]),s._v(" "),t("span",{staticClass:"hljs-built_in"},[s._v("Date")]),s._v("()\n };\n },\n\n "),t("span",{staticClass:"hljs-attr"},[s._v("methods")]),s._v(": {\n handlePickerChange(picker, values) {\n picker.setColumnValues("),t("span",{staticClass:"hljs-number"},[s._v("1")]),s._v(", citys[values["),t("span",{staticClass:"hljs-number"},[s._v("0")]),s._v("]]);\n }\n }\n};\n")]),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n")])])])]),s._v(" "),s._m(3),s._v(" "),s._m(4),s._v(" "),s._m(5),s._v(" "),s._m(6),s._v(" "),s._m(7),s._v(" "),s._m(8),s._v(" "),s._m(9),s._v(" "),s._m(10)],1)},staticRenderFns:[function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("h2",{attrs:{id:"picker-zu-jian"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#picker-zu-jian","aria-hidden":"true"}},[s._v("¶")]),s._v(" Picker组件")])},function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("p",[s._v("模仿iOS中的"),t("code",[s._v("UIPickerView")]),s._v("。")])},function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("h3",{attrs:{id:"ji-chu-yong-fa"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#ji-chu-yong-fa","aria-hidden":"true"}},[s._v("¶")]),s._v(" 基础用法")])},function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("h3",{attrs:{id:"api"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#api","aria-hidden":"true"}},[s._v("¶")]),s._v(" API")])},function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("table",{staticClass:"table"},[t("thead",[t("tr",[t("th",[s._v("参数")]),s._v(" "),t("th",[s._v("说明")]),s._v(" "),t("th",[s._v("类型")]),s._v(" "),t("th",[s._v("默认值")]),s._v(" "),t("th",[s._v("可选值")])])]),s._v(" "),t("tbody",[t("tr",[t("td",[s._v("visibileColumnCount")]),s._v(" "),t("td",[s._v("每一列可见备选元素的个数")]),s._v(" "),t("td",[s._v("Number")]),s._v(" "),t("td",[s._v("5")]),s._v(" "),t("td")]),s._v(" "),t("tr",[t("td",[s._v("itemHeight")]),s._v(" "),t("td",[s._v("选中元素区高度")]),s._v(" "),t("td",[s._v("Number")]),s._v(" "),t("td",[s._v("44")]),s._v(" "),t("td")]),s._v(" "),t("tr",[t("td",[s._v("columns")]),s._v(" "),t("td",[s._v("对象数组,配置每一列显示的数据")]),s._v(" "),t("td",[s._v("Array")]),s._v(" "),t("td"),s._v(" "),t("td")]),s._v(" "),t("tr",[t("td",[s._v("showToolbar")]),s._v(" "),t("td",[s._v("是否在组件顶部显示一个toolbar")]),s._v(" "),t("td",[s._v("Boolean")]),s._v(" "),t("td",[s._v("true")]),s._v(" "),t("td")])])])},function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("h3",{attrs:{id:"columns"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#columns","aria-hidden":"true"}},[s._v("¶")]),s._v(" columns")])},function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("p",[t("code",[s._v("API")]),s._v("中的"),t("code",[s._v("columns")]),s._v("为一个对象数组,数组中的每一个对象配置每一列,每一列有以下"),t("code",[s._v("key")]),s._v(":")])},function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("table",{staticClass:"table"},[t("thead",[t("tr",[t("th",[s._v("key")]),s._v(" "),t("th",[s._v("说明")])])]),s._v(" "),t("tbody",[t("tr",[t("td",[s._v("values")]),s._v(" "),t("td",[s._v("列中对应的备选值")])]),s._v(" "),t("tr",[t("td",[s._v("defaultIndex")]),s._v(" "),t("td",[s._v("初始选中值的索引,默认为0")])]),s._v(" "),t("tr",[t("td",[s._v("className")]),s._v(" "),t("td",[s._v("为对应列添加特殊的"),t("code",[s._v("class")])])])])])},function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("h3",{attrs:{id:"change-shi-jian"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#change-shi-jian","aria-hidden":"true"}},[s._v("¶")]),s._v(" change事件")])},function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("p",[s._v("在"),t("code",[s._v("change")]),s._v("事件中,可以获取到"),t("code",[s._v("picker")]),s._v("实例,对"),t("code",[s._v("picker")]),s._v("进行相应的更新等操作:")])},function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("table",{staticClass:"table"},[t("thead",[t("tr",[t("th",[s._v("函数")]),s._v(" "),t("th",[s._v("说明")])])]),s._v(" "),t("tbody",[t("tr",[t("td",[s._v("getColumnValue(index)")]),s._v(" "),t("td",[s._v("获取对应列中选中的值")])]),s._v(" "),t("tr",[t("td",[s._v("setColumnValue(index, value)")]),s._v(" "),t("td",[s._v("设置对应列中选中的值")])]),s._v(" "),t("tr",[t("td",[s._v("getColumnValues(index)")]),s._v(" "),t("td",[s._v("获取对应列中所有的备选值")])]),s._v(" "),t("tr",[t("td",[s._v("setColumnValues(index, values)")]),s._v(" "),t("td",[s._v("设置对应列中所有的备选值")])]),s._v(" "),t("tr",[t("td",[s._v("getValues()")]),s._v(" "),t("td",[s._v("获取所有列中被选中的值,返回一个数组")])]),s._v(" "),t("tr",[t("td",[s._v("setValues(values)")]),s._v(" "),t("td",[t("code",[s._v("values")]),s._v("为一个数组,设置所有列中被选中的值")])])])])}]}},function(s,a){s.exports={render:function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("section",{staticClass:"demo-uploader"},[t("h1",{staticClass:"demo-title"},[s._v("uploader")]),t("example-block",{attrs:{title:"基础用法"}},[t("div",{staticClass:"uploader-container"},[t("zan-uploader",{attrs:{"before-read":s.logContent},on:{"file-readed":s.logContent}})],1)]),t("example-block",{attrs:{title:"自定义上传图标"}},[t("div",{staticClass:"uploader-container"},[t("zan-uploader",{on:{"file-readed":s.logContent}},[t("zan-icon",{attrs:{name:"photograph"}})],1)],1)])],1)},staticRenderFns:[]}},function(s,a){s.exports={render:function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("section",[s._m(0),s._v(" "),s._m(1),s._v(" "),s._m(2),s._v(" "),s._m(3),s._v(" "),t("demo-block",{staticClass:"demo-box",attrs:{description:"基础用法"}},[t("div",{staticClass:"examples",slot:"examples"},[t("zan-cell-group",[t("zan-field",{directives:[{name:"model",rawName:"v-model",value:s.username,expression:"username"}],attrs:{type:"text",label:"用户名:",placeholder:"请输入用户名",required:""},domProps:{value:s.username},on:{input:function(a){s.username=a}}}),s._v(" "),t("zan-field",{attrs:{type:"password",label:"密码:",placeholder:"请输入密码",required:""}}),s._v(" "),t("zan-field",{attrs:{type:"textarea",label:"个人介绍:",placeholder:"请输入个人介绍",required:""}})],1)],1),s._v(" "),t("div",{staticClass:"highlight",slot:"highlight"},[t("pre",[t("code",{staticClass:"hljs language-html"},[t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("zan-cell-group")]),s._v(">")]),s._v("\n "),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("zan-field")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("type")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"text"')]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("label")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"用户名:"')]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("placeholder")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"请输入用户名"')]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("v-model")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"username"')]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("required")]),s._v(">")]),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n "),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("zan-field")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("type")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"password"')]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("label")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"密码:"')]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("placeholder")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"请输入密码"')]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("required")]),s._v(">")]),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n "),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("zan-field")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("type")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"textarea"')]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("label")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"个人介绍:"')]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("placeholder")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"请输入个人介绍"')]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("required")]),s._v(">")]),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n"),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n")])])])]),s._v(" "),s._m(4),s._v(" "),s._m(5),s._v(" "),t("demo-block",{staticClass:"demo-box",attrs:{description:"无label的输入框"}},[t("div",{staticClass:"examples",slot:"examples"},[t("zan-cell-group",[t("zan-field",{attrs:{type:"text",placeholder:"请输入用户名"}})],1)],1),s._v(" "),t("div",{staticClass:"highlight",slot:"highlight"},[t("pre",[t("code",{staticClass:"hljs language-html"},[t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("zan-cell-group")]),s._v(">")]),s._v("\n "),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("zan-field")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("type")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"text"')]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("placeholder")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"请输入用户名"')]),s._v(">")]),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n"),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n")])])])]),s._v(" "),s._m(6),s._v(" "),s._m(7),s._v(" "),t("demo-block",{staticClass:"demo-box",attrs:{description:"带border的输入框"}},[t("div",{staticClass:"examples",slot:"examples"},[t("div",{staticClass:"zan-field-wrapper"},[t("zan-field",{attrs:{type:"text",placeholder:"请输入用户名",border:""}})],1)]),s._v(" "),t("div",{staticClass:"highlight",slot:"highlight"},[t("pre",[t("code",{staticClass:"hljs language-html"},[t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("div")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("class")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"zan-field-wrapper"')]),s._v(">")]),s._v("\n "),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("zan-field")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("type")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"text"')]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("placeholder")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"请输入用户名"')]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("border")]),s._v(">")]),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n"),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n")])])])]),s._v(" "),s._m(8),s._v(" "),s._m(9),s._v(" "),t("demo-block",{staticClass:"demo-box",attrs:{description:"禁用的输入框"}},[t("div",{staticClass:"examples",slot:"examples"},[t("zan-cell-group",[t("zan-field",{directives:[{name:"model",rawName:"v-model",value:s.username,expression:"username"}],attrs:{label:"用户名:",type:"text",placeholder:"请输入用户名",disabled:""},domProps:{value:s.username},on:{input:function(a){s.username=a}}})],1)],1),s._v(" "),t("div",{staticClass:"highlight",slot:"highlight"},[t("pre",[t("code",{staticClass:"hljs language-html"},[t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("zan-cell-group")]),s._v(">")]),s._v("\n "),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("zan-field")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("label")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"用户名:"')]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("type")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"text"')]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("placeholder")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"请输入用户名"')]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("v-model")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"username"')]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("disabled")]),s._v(">")]),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n"),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n")])])])]),s._v(" "),s._m(10),s._v(" "),s._m(11),s._v(" "),t("demo-block",{staticClass:"demo-box",attrs:{description:"错误的输入框"}},[t("div",{staticClass:"examples",slot:"examples"},[t("zan-cell-group",[t("zan-field",{attrs:{label:"用户名:",type:"text",placeholder:"请输入用户名",error:""}})],1)],1),s._v(" "),t("div",{staticClass:"highlight",slot:"highlight"},[t("pre",[t("code",{staticClass:"hljs language-html"},[t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("zan-cell-group")]),s._v(">")]),s._v("\n "),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("zan-field")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("label")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"用户名:"')]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("type")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"text"')]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("placeholder")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"请输入用户名"')]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("error")]),s._v(">")]),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n"),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n")])])])]),s._v(" "),s._m(12),s._v(" "),s._m(13),s._v(" "),t("demo-block",{staticClass:"demo-box",attrs:{description:"错误的输入框"}},[t("div",{staticClass:"examples",slot:"examples"},[t("zan-cell-group",[t("zan-field",{attrs:{label:"留言:",type:"textarea",placeholder:"请输入留言",rows:"1",autosize:""}})],1)],1),s._v(" "),t("div",{staticClass:"highlight",slot:"highlight"},[t("pre",[t("code",{staticClass:"hljs language-html"},[t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("zan-cell-group")]),s._v(">")]),s._v("\n "),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("zan-field")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("label")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"留言:"')]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("type")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"textarea"')]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("placeholder")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"请输入留言"')]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("rows")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"1"')]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("autosize")]),s._v(">")]),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n"),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n")])])])]),s._v(" "),s._m(14),s._v(" "),s._m(15)],1)},staticRenderFns:[function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("h2",{attrs:{id:"field-zu-jian"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#field-zu-jian","aria-hidden":"true"}},[s._v("¶")]),s._v(" Field组件")])},function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("p",[s._v("表单中"),t("code",[s._v("input")]),s._v("或"),t("code",[s._v("textarea")]),s._v("的输入框。")])},function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("h3",{attrs:{id:"ji-chu-yong-fa"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#ji-chu-yong-fa","aria-hidden":"true"}},[s._v("¶")]),s._v(" 基础用法")])},function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("p",[s._v("根据"),t("code",[s._v("type")]),s._v("属性显示不同的输入框。")])},function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("h3",{attrs:{id:"wu-label-de-shu-ru-kuang"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#wu-label-de-shu-ru-kuang","aria-hidden":"true"}},[s._v("¶")]),s._v(" 无label的输入框")])},function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("p",[s._v("不传入"),t("code",[s._v("label")]),s._v("属性即可。")])},function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("h3",{attrs:{id:"dai-border-de-shu-ru-kuang"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#dai-border-de-shu-ru-kuang","aria-hidden":"true"}},[s._v("¶")]),s._v(" 带border的输入框")])},function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("p",[s._v("传入一个"),t("code",[s._v("border")]),s._v("属性。")])},function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("h3",{attrs:{id:"jin-yong-de-shu-ru-kuang"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#jin-yong-de-shu-ru-kuang","aria-hidden":"true"}},[s._v("¶")]),s._v(" 禁用的输入框")])},function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("p",[s._v("传入"),t("code",[s._v("disabled")]),s._v("属性即可。")])},function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("h3",{attrs:{id:"cuo-wu-de-shu-ru-kuang"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#cuo-wu-de-shu-ru-kuang","aria-hidden":"true"}},[s._v("¶")]),s._v(" 错误的输入框")])},function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("p",[s._v("传入"),t("code",[s._v("error")]),s._v("属性即可。")])},function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("h3",{attrs:{id:"autosize-de-shu-ru-kuang-jin-zhi-chi-textarea"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#autosize-de-shu-ru-kuang-jin-zhi-chi-textarea","aria-hidden":"true"}},[s._v("¶")]),s._v(" Autosize的输入框(仅支持textarea)")])},function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("p",[s._v("传入"),t("code",[s._v("autosize")]),s._v("属性, 且将"),t("code",[s._v("rows")]),s._v("设为1。")])},function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("h3",{attrs:{id:"api"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#api","aria-hidden":"true"}},[s._v("¶")]),s._v(" API")])},function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("table",{staticClass:"table"},[t("thead",[t("tr",[t("th",[s._v("参数")]),s._v(" "),t("th",[s._v("说明")]),s._v(" "),t("th",[s._v("类型")]),s._v(" "),t("th",[s._v("默认值")]),s._v(" "),t("th",[s._v("可选值")])])]),s._v(" "),t("tbody",[t("tr",[t("td",[s._v("type")]),s._v(" "),t("td",[s._v("输入框类型")]),s._v(" "),t("td",[t("code",[s._v("string")])]),s._v(" "),t("td",[t("code",[s._v("text")])]),s._v(" "),t("td",[t("code",[s._v("text")]),s._v(", "),t("code",[s._v("number")]),s._v(", "),t("code",[s._v("email")]),s._v(", "),t("code",[s._v("url")]),s._v(", "),t("code",[s._v("tel")]),s._v(", "),t("code",[s._v("date")]),s._v(", "),t("code",[s._v("datetime")]),s._v(", "),t("code",[s._v("password")]),s._v(", "),t("code",[s._v("textarea")])])]),s._v(" "),t("tr",[t("td",[s._v("placeholder")]),s._v(" "),t("td",[s._v("输入框placeholder")]),s._v(" "),t("td",[t("code",[s._v("string")])]),s._v(" "),t("td"),s._v(" "),t("td")]),s._v(" "),t("tr",[t("td",[s._v("value")]),s._v(" "),t("td",[s._v("输入框的值")]),s._v(" "),t("td",[t("code",[s._v("string")])]),s._v(" "),t("td"),s._v(" "),t("td")]),s._v(" "),t("tr",[t("td",[s._v("label")]),s._v(" "),t("td",[s._v("输入框标签")]),s._v(" "),t("td",[t("code",[s._v("string")])]),s._v(" "),t("td"),s._v(" "),t("td")]),s._v(" "),t("tr",[t("td",[s._v("disabled")]),s._v(" "),t("td",[s._v("是否禁用输入框")]),s._v(" "),t("td",[t("code",[s._v("boolean")])]),s._v(" "),t("td",[t("code",[s._v("false")])]),s._v(" "),t("td")]),s._v(" "),t("tr",[t("td",[s._v("error")]),s._v(" "),t("td",[s._v("输入框是否有错误")]),s._v(" "),t("td",[t("code",[s._v("boolean")])]),s._v(" "),t("td",[t("code",[s._v("false")])]),s._v(" "),t("td")]),s._v(" "),t("tr",[t("td",[s._v("readonly")]),s._v(" "),t("td",[s._v("输入框是否只读")]),s._v(" "),t("td",[t("code",[s._v("boolean")])]),s._v(" "),t("td",[t("code",[s._v("false")])]),s._v(" "),t("td")]),s._v(" "),t("tr",[t("td",[s._v("maxlength")]),s._v(" "),t("td",[s._v("输入框maxlength")]),s._v(" "),t("td",[t("code",[s._v("string")]),s._v(", "),t("code",[s._v("number")])]),s._v(" "),t("td"),s._v(" "),t("td")]),s._v(" "),t("tr",[t("td",[s._v("rows")]),s._v(" "),t("td",[s._v("textarea rows")]),s._v(" "),t("td",[t("code",[s._v("string")]),s._v(", "),t("code",[s._v("number")])]),s._v(" "),t("td"),s._v(" "),t("td")]),s._v(" "),t("tr",[t("td",[s._v("cols")]),s._v(" "),t("td",[s._v("textarea cols")]),s._v(" "),t("td",[t("code",[s._v("string")]),s._v(", "),t("code",[s._v("number")])]),s._v(" "),t("td"),s._v(" "),t("td")]),s._v(" "),t("tr",[t("td",[s._v("autosize")]),s._v(" "),t("td",[s._v("自动调整高度(仅支持textarea)")]),s._v(" "),t("td",[t("code",[s._v("boolean")])]),s._v(" "),t("td",[t("code",[s._v("false")])]),s._v(" "),t("td",[t("code",[s._v("true")]),s._v(", "),t("code",[s._v("false")])])])])])}]}},function(s,a){s.exports={render:function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("section",{staticClass:"demo-popup"},[t("h1",{staticClass:"demo-title"},[s._v("popup")]),t("example-block",{attrs:{title:"基础用法"}},[t("div",{staticClass:"zan-row"},[t("zan-button",{on:{click:function(a){s.popupShow1=!0}}},[s._v("从下方弹出popup")])],1),s._v(" "),t("zan-popup",{directives:[{name:"model",rawName:"v-model",value:s.popupShow1,expression:"popupShow1"}],staticClass:"zan-popup-1",attrs:{position:"bottom"},domProps:{value:s.popupShow1},on:{input:function(a){s.popupShow1=a}}},[t("zan-button",{on:{click:s.showDialog}},[s._v("弹出dialog")])],1),s._v(" "),t("div",{staticClass:"zan-row"},[t("zan-button",{on:{click:function(a){s.popupShow2=!0}}},[s._v("从上方弹出popup")])],1),s._v(" "),t("zan-popup",{directives:[{name:"model",rawName:"v-model",value:s.popupShow2,expression:"popupShow2"}],staticClass:"zan-popup-2",attrs:{position:"top",overlay:!1},domProps:{value:s.popupShow2},on:{input:function(a){s.popupShow2=a}}},[s._v("\n 更新成功\n")]),s._v(" "),t("div",{staticClass:"zan-row"},[t("zan-button",{on:{click:function(a){s.popupShow3=!0}}},[s._v("从右方弹出popup")])],1),s._v(" "),t("zan-popup",{directives:[{name:"model",rawName:"v-model",value:s.popupShow3,expression:"popupShow3"}],staticClass:"zan-popup-3",attrs:{position:"right",overlay:!1},domProps:{value:s.popupShow3},on:{input:function(a){s.popupShow3=a}}},[t("zan-button",{nativeOn:{click:function(a){s.popupShow3=!1}}},[s._v("关闭 popup")])],1),s._v(" "),t("div",{staticClass:"zan-row"},[t("zan-button",{on:{click:function(a){s.popupShow4=!0}}},[s._v("从中间弹出popup")])],1),s._v(" "),t("zan-popup",{directives:[{name:"model",rawName:"v-model",value:s.popupShow4,expression:"popupShow4"}],staticClass:"zan-popup-4",domProps:{value:s.popupShow4},on:{input:function(a){s.popupShow4=a}}},[s._v("\n 从中间弹出popup\n")])],1)],1)},staticRenderFns:[]}},function(s,a){s.exports={render:function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("section",[s._m(0),s._v(" "),s._m(1),s._v(" "),t("demo-block",{staticClass:"demo-box",attrs:{description:"所有Icon"}},[t("div",{staticClass:"examples",slot:"examples"},[t("zan-icon",{attrs:{name:"qr-invalid"}}),s._v(" "),t("zan-icon",{attrs:{name:"qr"}}),s._v(" "),t("zan-icon",{attrs:{name:"exchange"}}),s._v(" "),t("zan-icon",{attrs:{name:"close"}}),s._v(" "),t("zan-icon",{attrs:{name:"location"}}),s._v(" "),t("zan-icon",{attrs:{name:"upgrade"}}),s._v(" "),t("zan-icon",{attrs:{name:"check"}}),s._v(" "),t("zan-icon",{attrs:{name:"checked"}}),s._v(" "),t("zan-icon",{attrs:{name:"like-o"}}),s._v(" "),t("zan-icon",{attrs:{name:"like"}}),s._v(" "),t("zan-icon",{attrs:{name:"chat"}}),s._v(" "),t("zan-icon",{attrs:{name:"shop"}}),s._v(" "),t("zan-icon",{attrs:{name:"photograph"}}),s._v(" "),t("zan-icon",{attrs:{name:"add"}}),s._v(" "),t("zan-icon",{attrs:{name:"add2"}}),s._v(" "),t("zan-icon",{attrs:{name:"photo"}}),s._v(" "),t("zan-icon",{attrs:{name:"logistics"}}),s._v(" "),t("zan-icon",{attrs:{name:"edit"}}),s._v(" "),t("zan-icon",{attrs:{name:"passed"}}),s._v(" "),t("zan-icon",{attrs:{name:"cart"}}),s._v(" "),t("zan-icon",{attrs:{name:"arrow"}}),s._v(" "),t("zan-icon",{attrs:{name:"gift"}}),s._v(" "),t("zan-icon",{attrs:{name:"search"}}),s._v(" "),t("zan-icon",{attrs:{name:"clear"}}),s._v(" "),t("zan-icon",{attrs:{name:"success"}}),s._v(" "),t("zan-icon",{attrs:{name:"fail"}})],1),s._v(" "),t("div",{staticClass:"highlight",slot:"highlight"},[t("pre",[t("code",{staticClass:"hljs language-html"},[t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("zan-icon")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("name")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"qr-invalid"')]),s._v(">")]),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n"),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("zan-icon")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("name")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"qr"')]),s._v(">")]),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n"),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("zan-icon")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("name")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"exchange"')]),s._v(">")]),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n"),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("zan-icon")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("name")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"close"')]),s._v(">")]),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n"),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("zan-icon")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("name")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"location"')]),s._v(">")]),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n"),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("zan-icon")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("name")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"upgrade"')]),s._v(">")]),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n"),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("zan-icon")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("name")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"check"')]),s._v(">")]),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n"),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("zan-icon")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("name")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"checked"')]),s._v(">")]),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n"),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("zan-icon")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("name")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"like-o"')]),s._v(">")]),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n"),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("zan-icon")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("name")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"like"')]),s._v(">")]),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n"),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("zan-icon")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("name")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"chat"')]),s._v(">")]),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n"),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("zan-icon")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("name")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"shop"')]),s._v(">")]),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n"),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("zan-icon")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("name")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"photograph"')]),s._v(">")]),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n"),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("zan-icon")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("name")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"add"')]),s._v(">")]),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n"),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("zan-icon")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("name")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"add2"')]),s._v(">")]),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n"),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("zan-icon")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("name")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"photo"')]),s._v(">")]),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n"),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("zan-icon")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("name")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"logistics"')]),s._v(">")]),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n"),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("zan-icon")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("name")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"edit"')]),s._v(">")]),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n"),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("zan-icon")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("name")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"passed"')]),s._v(">")]),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n"),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("zan-icon")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("name")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"cart"')]),s._v(">")]),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n"),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("zan-icon")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("name")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"arrow"')]),s._v(">")]),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n"),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("zan-icon")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("name")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"gift"')]),s._v(">")]),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n"),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("zan-icon")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("name")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"search"')]),s._v(">")]),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n"),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("zan-icon")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("name")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"clear"')]),s._v(">")]),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n"),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("zan-icon")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("name")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"success"')]),s._v(">")]),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n"),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("zan-icon")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("name")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"fail"')]),s._v(">")]),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n")])])])]),s._v(" "),s._m(2),s._v(" "),s._m(3)],1)},staticRenderFns:[function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("h2",{attrs:{id:"icon"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#icon","aria-hidden":"true"}},[s._v("¶")]),s._v(" Icon")])},function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("h3",{attrs:{id:"suo-you-icon"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#suo-you-icon","aria-hidden":"true"}},[s._v("¶")]),s._v(" 所有Icon")])},function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("h3",{attrs:{id:"api"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#api","aria-hidden":"true"}},[s._v("¶")]),s._v(" API")])},function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("table",{staticClass:"table"},[t("thead",[t("tr",[t("th",[s._v("参数")]),s._v(" "),t("th",[s._v("说明")]),s._v(" "),t("th",[s._v("类型")]),s._v(" "),t("th",[s._v("默认值")]),s._v(" "),t("th",[s._v("可选值")])])]),s._v(" "),t("tbody",[t("tr",[t("td",[s._v("name")]),s._v(" "),t("td",[s._v("icon名称")]),s._v(" "),t("td",[t("code",[s._v("string")])]),s._v(" "),t("td",[t("code",[s._v("''")])]),s._v(" "),t("td")])])])}]}},function(s,a){s.exports={render:function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("section",[s._m(0),s._v(" "),s._m(1),s._v(" "),s._m(2),s._v(" "),t("demo-block",{staticClass:"demo-box",attrs:{description:"按钮功能"}},[t("div",{staticClass:"examples",slot:"examples"},[t("zan-row",[t("zan-col",{attrs:{span:"24"}},[t("zan-button",{attrs:{block:""}},[s._v("default")])],1),s._v(" "),t("zan-col",{attrs:{span:"24"}},[t("zan-button",{attrs:{type:"primary",block:""}},[s._v("primary")])],1),s._v(" "),t("zan-col",{attrs:{span:"24"}},[t("zan-button",{attrs:{type:"danger",block:""}},[s._v("danger")])],1)],1)],1),s._v(" "),t("div",{staticClass:"highlight",slot:"highlight"},[t("pre",[t("code",{staticClass:"hljs language-html"},[t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("zan-row")]),s._v(">")]),s._v("\n "),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("zan-col")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("span")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"24"')]),s._v(">")]),s._v("\n "),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("zan-button")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("block")]),s._v(">")]),s._v("default"),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n "),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n "),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("zan-col")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("span")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"24"')]),s._v(">")]),s._v("\n "),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("zan-button")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("type")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"primary"')]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("block")]),s._v(">")]),s._v("primary"),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n "),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n "),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("zan-col")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("span")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"24"')]),s._v(">")]),s._v("\n "),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("zan-button")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("type")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"danger"')]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("block")]),s._v(">")]),s._v("danger"),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n "),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n"),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n")])])])]),s._v(" "),s._m(3),s._v(" "),t("demo-block",{staticClass:"demo-box",attrs:{description:"禁用状态"}},[t("div",{staticClass:"examples",slot:"examples"},[t("zan-row",[t("zan-col",{attrs:{span:"24"}},[t("zan-button",{attrs:{disabled:"",block:""}},[s._v("diabled")])],1)],1)],1),s._v(" "),t("div",{staticClass:"highlight",slot:"highlight"},[t("pre",[t("code",{staticClass:"hljs language-html"},[t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("zan-row")]),s._v(">")]),s._v("\n "),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("zan-col")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("span")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"24"')]),s._v(">")]),s._v("\n "),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("zan-button")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("disabled")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("block")]),s._v(">")]),s._v("diabled"),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n "),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n"),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n")])])])]),s._v(" "),s._m(4),s._v(" "),s._m(5),s._v(" "),t("demo-block",{staticClass:"demo-box",attrs:{description:"按钮尺寸"}},[t("div",{staticClass:"examples",slot:"examples"},[t("zan-row",[t("zan-col",{attrs:{span:"24"}},[t("zan-button",{attrs:{size:"large"}},[s._v("large")])],1)],1),s._v(" "),t("zan-row",{attrs:{gutter:"10"}},[t("zan-col",{attrs:{span:"8"}},[t("zan-button",{attrs:{type:"primary",block:""}},[s._v("normal")])],1),s._v(" "),t("zan-col",{attrs:{span:"8"}},[t("zan-button",{attrs:{size:"small",block:""}},[s._v("small")])],1),s._v(" "),t("zan-col",{attrs:{span:"8"}},[t("zan-button",{attrs:{size:"mini",block:""}},[s._v("mini")])],1)],1)],1),s._v(" "),t("div",{staticClass:"highlight",slot:"highlight"},[t("pre",[t("code",{staticClass:"hljs language-html"},[t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("zan-row")]),s._v(">")]),s._v("\n "),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("zan-col")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("span")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"24"')]),s._v(">")]),s._v("\n "),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("zan-button")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("size")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"large"')]),s._v(">")]),s._v("large"),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n "),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n"),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n"),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("zan-row")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("gutter")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"10"')]),s._v(">")]),s._v("\n "),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("zan-col")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("span")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"8"')]),s._v(">")]),s._v("\n "),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("zan-button")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("type")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"primary"')]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("block")]),s._v(">")]),s._v("normal"),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n "),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n "),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("zan-col")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("span")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"8"')]),s._v(">")]),s._v("\n "),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("zan-button")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("size")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"small"')]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("block")]),s._v(">")]),s._v("small"),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n "),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n "),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("zan-col")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("span")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"8"')]),s._v(">")]),s._v("\n "),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("zan-button")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("size")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"mini"')]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("block")]),s._v(">")]),s._v("mini"),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n "),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n"),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n")])])])]),s._v(" "),s._m(6),s._v(" "),s._m(7),s._v(" "),t("demo-block",{staticClass:"demo-box",attrs:{description:"自定义按钮标签"}},[t("div",{staticClass:"examples",slot:"examples"},[t("zan-row",[t("zan-col",{attrs:{span:"24"}},[t("zan-button",{attrs:{tag:"a",type:"primary",href:"https://www.youzan.com",target:"_blank"}},[s._v("a标签按钮")])],1)],1)],1),s._v(" "),t("div",{staticClass:"highlight",slot:"highlight"},[t("pre",[t("code",{staticClass:"hljs language-html"},[t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("zan-row")]),s._v(">")]),s._v("\n "),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("zan-col")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("span")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"24"')]),s._v(">")]),s._v("\n "),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("zan-button")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("tag")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"a"')]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("type")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"primary"')]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("href")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"https://www.youzan.com"')]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("target")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"_blank"')]),s._v(">")]),s._v("a标签按钮"),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n "),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n"),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n")])])])]),s._v(" "),s._m(8),s._v(" "),t("demo-block",{staticClass:"demo-box",attrs:{description:"loading按钮"}},[t("div",{staticClass:"examples",slot:"examples"},[t("zan-row",[t("zan-col",{attrs:{span:"24"}},[t("zan-button",{attrs:{type:"primary",loading:"",block:""}},[s._v("loading")])],1),s._v(" "),t("zan-col",{attrs:{span:"24"}},[t("zan-button",{attrs:{loading:"",block:""}})],1)],1)],1),s._v(" "),t("div",{staticClass:"highlight",slot:"highlight"},[t("pre",[t("code",{staticClass:"hljs language-html"},[t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("zan-row")]),s._v(">")]),s._v("\n "),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("zan-col")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("span")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"24"')]),s._v(">")]),s._v("\n "),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("zan-button")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("type")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"primary"')]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("loading")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("block")]),s._v(">")]),s._v("loading"),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n "),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n "),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("zan-col")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("span")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"24"')]),s._v(">")]),s._v("\n "),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("zan-button")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("loading")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("block")]),s._v(">")]),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n "),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n"),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n")])])])]),s._v(" "),s._m(9),s._v(" "),t("demo-block",{staticClass:"demo-box",attrs:{description:"button group"}},[t("div",{staticClass:"examples",slot:"examples"},[t("div",{staticClass:"button-group"},[t("zan-button",{attrs:{type:"primary",size:"small"}},[s._v("确认付款")]),s._v(" "),t("zan-button",{attrs:{size:"small"}},[s._v("确认收货")]),s._v(" "),t("zan-button",{attrs:{size:"small"}},[s._v("取消订单")])],1)]),s._v(" "),t("div",{staticClass:"highlight",slot:"highlight"},[t("pre",[t("code",{staticClass:"hljs language-html"},[t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("div")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("class")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"button-group"')]),s._v(">")]),s._v("\n "),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("zan-button")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("type")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"primary"')]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("size")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"small"')]),s._v(">")]),s._v("确认付款"),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n "),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("zan-button")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("size")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"small"')]),s._v(">")]),s._v("确认收货"),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n "),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("zan-button")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("size")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"small"')]),s._v(">")]),s._v("取消订单"),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n"),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n")])])])]),s._v(" "),s._m(10),s._v(" "),s._m(11)],1)},staticRenderFns:[function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("h2",{attrs:{id:"button-an-niu"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#button-an-niu","aria-hidden":"true"}},[s._v("¶")]),s._v(" Button 按钮")])},function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("h3",{attrs:{id:"an-niu-gong-neng"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#an-niu-gong-neng","aria-hidden":"true"}},[s._v("¶")]),s._v(" 按钮功能")])},function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("p",[s._v("只接受"),t("code",[s._v("primary")]),s._v(", "),t("code",[s._v("default")]),s._v(", "),t("code",[s._v("danger")]),s._v("三种类型,默认"),t("code",[s._v("default")]),s._v("。")])},function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("h3",{attrs:{id:"jin-yong-zhuang-tai"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#jin-yong-zhuang-tai","aria-hidden":"true"}},[s._v("¶")]),s._v(" 禁用状态")])},function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("h3",{attrs:{id:"an-niu-chi-cun"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#an-niu-chi-cun","aria-hidden":"true"}},[s._v("¶")]),s._v(" 按钮尺寸")])},function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("p",[s._v("只接受"),t("code",[s._v("large")]),s._v(", "),t("code",[s._v("normal")]),s._v(", "),t("code",[s._v("small")]),s._v(", "),t("code",[s._v("mini")]),s._v("四种尺寸,默认"),t("code",[s._v("normal")]),s._v("。")])},function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("h3",{attrs:{id:"zi-ding-yi-an-niu-biao-qian"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#zi-ding-yi-an-niu-biao-qian","aria-hidden":"true"}},[s._v("¶")]),s._v(" 自定义按钮标签")])},function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("p",[s._v("按钮默认是"),t("code",[s._v("button")]),s._v("标签,可以使用"),t("code",[s._v("tag")]),s._v("属性修改为一个"),t("code",[s._v("a")]),s._v("标签。")])},function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("h3",{attrs:{id:"loading-an-niu"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#loading-an-niu","aria-hidden":"true"}},[s._v("¶")]),s._v(" loading按钮")])},function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("h3",{attrs:{id:"button-group"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#button-group","aria-hidden":"true"}},[s._v("¶")]),s._v(" button group")])},function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("h3",{attrs:{id:"api"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#api","aria-hidden":"true"}},[s._v("¶")]),s._v(" API")])},function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("table",{staticClass:"table"},[t("thead",[t("tr",[t("th",[s._v("参数")]),s._v(" "),t("th",[s._v("说明")]),s._v(" "),t("th",[s._v("类型")]),s._v(" "),t("th",[s._v("默认值")]),s._v(" "),t("th",[s._v("可选值")])])]),s._v(" "),t("tbody",[t("tr",[t("td",[s._v("type")]),s._v(" "),t("td",[s._v("按钮类型")]),s._v(" "),t("td",[t("code",[s._v("string")])]),s._v(" "),t("td",[t("code",[s._v("default")])]),s._v(" "),t("td",[t("code",[s._v("primary")]),s._v(", "),t("code",[s._v("danger")])])]),s._v(" "),t("tr",[t("td",[s._v("size")]),s._v(" "),t("td",[s._v("按钮尺寸")]),s._v(" "),t("td",[t("code",[s._v("string")])]),s._v(" "),t("td",[t("code",[s._v("normal")])]),s._v(" "),t("td",[t("code",[s._v("large")]),s._v(", "),t("code",[s._v("small")]),s._v(", "),t("code",[s._v("mini")])])]),s._v(" "),t("tr",[t("td",[s._v("tag")]),s._v(" "),t("td",[s._v("按钮标签")]),s._v(" "),t("td",[t("code",[s._v("string")])]),s._v(" "),t("td",[t("code",[s._v("button")])]),s._v(" "),t("td",[t("code",[s._v("a")]),s._v(", "),t("code",[s._v("span")]),s._v(", ...")])]),s._v(" "),t("tr",[t("td",[s._v("diabled")]),s._v(" "),t("td",[s._v("按钮是否禁用")]),s._v(" "),t("td",[t("code",[s._v("boolean")])]),s._v(" "),t("td"),s._v(" "),t("td")]),s._v(" "),t("tr",[t("td",[s._v("block")]),s._v(" "),t("td",[s._v("按钮是否显示为块级元素")]),s._v(" "),t("td",[t("code",[s._v("boolean")])]),s._v(" "),t("td"),s._v(" "),t("td")])])])}]}},function(s,a){s.exports={render:function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("section",{staticClass:"demo-image-preview"},[t("h1",{staticClass:"demo-title"},[s._v("image-preview")]),t("example-block",{attrs:{title:""}},[t("zan-button",{on:{click:s.handleImagePreview}},[s._v("预览图片")])],1)],1)},staticRenderFns:[]}},,function(s,a){s.exports={render:function(){var s=this,a=s.$createElement;s._self._c;return s._m(0)},staticRenderFns:[function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("section",[t("h2",{attrs:{id:"an-zhuang"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#an-zhuang","aria-hidden":"true"}},[s._v("¶")]),s._v(" 安装")]),s._v(" "),t("h3",{attrs:{id:"ynpm-an-zhuang"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#ynpm-an-zhuang","aria-hidden":"true"}},[s._v("¶")]),s._v(" ynpm安装")]),s._v(" "),t("pre",[t("code",{staticClass:"hljs language-shell"},[s._v("npm i @youzan/zanui-vue -S\n")])])])}]}},function(s,a){s.exports={render:function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("section",[s._m(0),s._v(" "),s._m(1),s._v(" "),t("demo-block",{staticClass:"demo-box",attrs:{description:"基础用法"}},[t("div",{staticClass:"examples",slot:"examples"},[t("zan-button",{on:{click:s.showSimpleToast}},[s._v("普通文字提示")]),s._v(" "),t("zan-button",{on:{click:s.showLoadingToast}},[s._v("加载Toast")]),s._v(" "),t("zan-button",{on:{click:s.showSuccessToast}},[s._v("成功")]),s._v(" "),t("zan-button",{on:{click:s.showFailToast}},[s._v("失败")]),s._v(" "),t("zan-button",{on:{click:s.showForbidClickToast}},[s._v("背景不能点击")]),s._v(" "),t("zan-button",{on:{click:function(a){s.showCustomizedToast(5e3)}}},[s._v("倒数5秒")])],1),s._v(" "),t("div",{staticClass:"highlight",slot:"highlight"},[t("pre",[t("code",{staticClass:"hljs language-html"},[t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("zan-button")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("@click")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"showSimpleToast"')]),s._v(">")]),s._v("普通文字提示"),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n"),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("zan-button")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("@click")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"showLoadingToast"')]),s._v(">")]),s._v("加载Toast"),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n"),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("zan-button")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("@click")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"showSuccessToast"')]),s._v(">")]),s._v("成功"),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n"),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("zan-button")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("@click")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"showFailToast"')]),s._v(">")]),s._v("失败"),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n"),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("zan-button")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("@click")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"showForbidClickToast"')]),s._v(">")]),s._v("背景不能点击"),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n"),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("zan-button")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("@click")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"showCustomizedToast(5000)"')]),s._v(">")]),s._v("倒数5秒"),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n\n"),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("script")]),s._v(">")]),t("span",{staticClass:"javascript"},[s._v("\n"),t("span",{staticClass:"hljs-keyword"},[s._v("import")]),s._v(" { Toast } "),t("span",{staticClass:"hljs-keyword"},[s._v("from")]),s._v(" "),t("span",{staticClass:"hljs-string"},[s._v("'src/index'")]),s._v(";\n\n"),t("span",{staticClass:"hljs-keyword"},[s._v("export")]),s._v(" "),t("span",{staticClass:"hljs-keyword"},[s._v("default")]),s._v(" {\n "),t("span",{staticClass:"hljs-attr"},[s._v("methods")]),s._v(": {\n showSimpleToast() {\n Toast("),t("span",{staticClass:"hljs-string"},[s._v("'我是提示文案,建议不超过十五字~'")]),s._v(");\n },\n showLoadingToast() {\n Toast.loading();\n },\n showSuccessToast() {\n Toast.success("),t("span",{staticClass:"hljs-string"},[s._v("'成功文案'")]),s._v(");\n },\n showFailToast() {\n Toast.fail("),t("span",{staticClass:"hljs-string"},[s._v("'失败文案'")]),s._v(");\n },\n showForbidClickToast() {\n Toast({\n "),t("span",{staticClass:"hljs-attr"},[s._v("message")]),s._v(": "),t("span",{staticClass:"hljs-string"},[s._v("'背景不能点击'")]),s._v(",\n "),t("span",{staticClass:"hljs-attr"},[s._v("forbidClick")]),s._v(": "),t("span",{staticClass:"hljs-literal"},[s._v("true")]),s._v("\n })\n },\n showCustomizedToast(duration) {\n "),t("span",{staticClass:"hljs-keyword"},[s._v("let")]),s._v(" leftSec = duration / "),t("span",{staticClass:"hljs-number"},[s._v("1000")]),s._v(";\n "),t("span",{staticClass:"hljs-keyword"},[s._v("let")]),s._v(" toast = Toast({\n "),t("span",{staticClass:"hljs-attr"},[s._v("duration")]),s._v(": duration + "),t("span",{staticClass:"hljs-number"},[s._v("1000")]),s._v(",\n "),t("span",{staticClass:"hljs-attr"},[s._v("type")]),s._v(": "),t("span",{staticClass:"hljs-string"},[s._v("'success'")]),s._v(",\n "),t("span",{staticClass:"hljs-attr"},[s._v("message")]),s._v(": leftSec.toString()\n });\n "),t("span",{staticClass:"hljs-built_in"},[s._v("window")]),s._v(".setInterval("),t("span",{staticClass:"hljs-function"},[t("span",{staticClass:"hljs-params"},[s._v("()")]),s._v(" =>")]),s._v(" {\n "),t("span",{staticClass:"hljs-keyword"},[s._v("if")]),s._v(" (leftSec <= "),t("span",{staticClass:"hljs-number"},[s._v("1")]),s._v(") {\n "),t("span",{staticClass:"hljs-built_in"},[s._v("window")]),s._v(".clearInterval();\n toast.message = "),t("span",{staticClass:"hljs-string"},[s._v("'跳转中...'")]),s._v("\n "),t("span",{staticClass:"hljs-keyword"},[s._v("return")]),s._v(";\n }\n toast.message = (--leftSec).toString();\n }, "),t("span",{staticClass:"hljs-number"},[s._v("1000")]),s._v(");\n }\n }\n};\n")]),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n")])])])]),s._v(" "),s._m(2),s._v(" "),t("demo-block",{staticClass:"demo-box",attrs:{description:"手动关闭"}},[t("div",{staticClass:"examples",slot:"examples"},[t("zan-button",{on:{click:s.showToast}},[s._v("打开")]),s._v(" "),t("zan-button",{on:{click:s.closeToast}},[s._v("关闭")])],1),s._v(" "),t("div",{staticClass:"highlight",slot:"highlight"},[t("pre",[t("code",{staticClass:"hljs language-html"},[t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("zan-button")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("@click")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"showToast"')]),s._v(">")]),s._v("打开"),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n"),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("zan-button")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("@click")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"closeToast"')]),s._v(">")]),s._v("关闭"),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n\n"),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("script")]),s._v(">")]),t("span",{staticClass:"javascript"},[s._v("\n"),t("span",{staticClass:"hljs-keyword"},[s._v("import")]),s._v(" { Toast } "),t("span",{staticClass:"hljs-keyword"},[s._v("from")]),s._v(" "),t("span",{staticClass:"hljs-string"},[s._v("'src/index'")]),s._v(";\n\n"),t("span",{staticClass:"hljs-keyword"},[s._v("export")]),s._v(" "),t("span",{staticClass:"hljs-keyword"},[s._v("default")]),s._v(" {\n "),t("span",{staticClass:"hljs-attr"},[s._v("methods")]),s._v(": {\n showToast() {\n "),t("span",{staticClass:"hljs-keyword"},[s._v("this")]),s._v(".toast = Toast("),t("span",{staticClass:"hljs-string"},[s._v("'我是提示文案,建议不超过十五字~'")]),s._v(");\n },\n closeToast() {\n "),t("span",{staticClass:"hljs-keyword"},[s._v("this")]),s._v(".toast.clear();\n }\n }\n};\n")]),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n")])])])]),s._v(" "),s._m(3),s._v(" "),t("demo-block",{staticClass:"demo-box",attrs:{description:"手动关闭"}},[t("div",{staticClass:"examples",slot:"examples"},[t("zan-button",{on:{click:s.showHtmlToast}},[s._v("打开")])],1),s._v(" "),t("div",{staticClass:"highlight",slot:"highlight"},[t("pre",[t("code",{staticClass:"hljs language-html"},[t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("zan-button")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("@click")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"showHtmlToast"')]),s._v(">")]),s._v("打开"),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n\n"),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("script")]),s._v(">")]),t("span",{staticClass:"javascript"},[s._v("\n"),t("span",{staticClass:"hljs-keyword"},[s._v("import")]),s._v(" { Toast } "),t("span",{staticClass:"hljs-keyword"},[s._v("from")]),s._v(" "),t("span",{staticClass:"hljs-string"},[s._v("'src/index'")]),s._v(";\n\n"),t("span",{staticClass:"hljs-keyword"},[s._v("export")]),s._v(" "),t("span",{staticClass:"hljs-keyword"},[s._v("default")]),s._v(" {\n "),t("span",{staticClass:"hljs-attr"},[s._v("methods")]),s._v(": {\n showHtmlToast() {\n Toast({\n "),t("span",{staticClass:"hljs-attr"},[s._v("type")]),s._v(": "),t("span",{staticClass:"hljs-string"},[s._v("'html'")]),s._v(",\n "),t("span",{staticClass:"hljs-attr"},[s._v("message")]),s._v(": "),t("span",{staticClass:"hljs-string"},[s._v("'HTML'")]),s._v("\n })\n }\n }\n};\n")]),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n")])])])]),s._v(" "),s._m(4),s._v(" "),s._m(5),s._v(" "),s._m(6),s._v(" "),s._m(7),s._v(" "),s._m(8),s._v(" "),s._m(9),s._v(" "),s._m(10),s._v(" "),s._m(11),s._v(" "),s._m(12),s._v(" "),s._m(13),s._v(" "),s._m(14),s._v(" "),s._m(15),s._v(" "),s._m(16),s._v(" "),t("p",[s._v("关闭toast。")])],1)},staticRenderFns:[function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("h2",{attrs:{id:"toast"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#toast","aria-hidden":"true"}},[s._v("¶")]),s._v(" Toast")])},function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("h3",{attrs:{id:"ji-chu-yong-fa"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#ji-chu-yong-fa","aria-hidden":"true"}},[s._v("¶")]),s._v(" 基础用法")])},function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("h3",{attrs:{id:"shou-dong-guan-bi"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#shou-dong-guan-bi","aria-hidden":"true"}},[s._v("¶")]),s._v(" 手动关闭")])},function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("h3",{attrs:{id:"chuan-ru-html"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#chuan-ru-html","aria-hidden":"true"}},[s._v("¶")]),s._v(" 传入html")])},function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("h3",{attrs:{id:"ji-chu-yong-fa-2"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#ji-chu-yong-fa-2","aria-hidden":"true"}},[s._v("¶")]),s._v(" 基础用法")])},function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("h3",{attrs:{id:"toast-options"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#toast-options","aria-hidden":"true"}},[s._v("¶")]),s._v(" Toast(options)")])},function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("table",{staticClass:"table"},[t("thead",[t("tr",[t("th",[s._v("参数")]),s._v(" "),t("th",[s._v("说明")]),s._v(" "),t("th",[s._v("类型")]),s._v(" "),t("th",[s._v("默认值")]),s._v(" "),t("th",[s._v("可选值")])])]),s._v(" "),t("tbody",[t("tr",[t("td",[s._v("type")]),s._v(" "),t("td",[s._v("类型")]),s._v(" "),t("td",[s._v("String")]),s._v(" "),t("td",[s._v("'text'")]),s._v(" "),t("td",[s._v("'text', 'loading', 'success', 'fail', 'html'")])]),s._v(" "),t("tr",[t("td",[s._v("message")]),s._v(" "),t("td",[s._v("内容")]),s._v(" "),t("td",[s._v("String")]),s._v(" "),t("td",[s._v("''")]),s._v(" "),t("td",[s._v("-")])]),s._v(" "),t("tr",[t("td",[s._v("forbidClick")]),s._v(" "),t("td",[s._v("不允许背景点击")]),s._v(" "),t("td",[s._v("Boolean")]),s._v(" "),t("td",[s._v("false")]),s._v(" "),t("td",[s._v("true, false")])]),s._v(" "),t("tr",[t("td",[s._v("duration")]),s._v(" "),t("td",[s._v("时长(ms)")]),s._v(" "),t("td",[s._v("Number")]),s._v(" "),t("td",[s._v("3000ms")]),s._v(" "),t("td",[s._v("-")])])])])},function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("h3",{attrs:{id:"kuai-su-yong-fa"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#kuai-su-yong-fa","aria-hidden":"true"}},[s._v("¶")]),s._v(" 快速用法")])},function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("h3",{attrs:{id:"toast-message-toast-message-options"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#toast-message-toast-message-options","aria-hidden":"true"}},[s._v("¶")]),s._v(" Toast(message) || Toast(message, options)")])},function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("table",{staticClass:"table"},[t("thead",[t("tr",[t("th",[s._v("参数")]),s._v(" "),t("th",[s._v("说明")]),s._v(" "),t("th",[s._v("类型")]),s._v(" "),t("th",[s._v("默认值")]),s._v(" "),t("th",[s._v("可选值")])])]),s._v(" "),t("tbody",[t("tr",[t("td",[s._v("message")]),s._v(" "),t("td",[s._v("内容")]),s._v(" "),t("td",[s._v("String")]),s._v(" "),t("td",[s._v("''")]),s._v(" "),t("td",[s._v("-")])]),s._v(" "),t("tr",[t("td",[s._v("forbidClick")]),s._v(" "),t("td",[s._v("不允许背景点击")]),s._v(" "),t("td",[s._v("Boolean")]),s._v(" "),t("td",[s._v("false")]),s._v(" "),t("td",[s._v("true, false")])]),s._v(" "),t("tr",[t("td",[s._v("duration")]),s._v(" "),t("td",[s._v("时长(ms)")]),s._v(" "),t("td",[s._v("Number")]),s._v(" "),t("td",[s._v("3000ms")]),s._v(" "),t("td",[s._v("-")])])])])},function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("h3",{attrs:{id:"toast-loading-toast-loading-message-options"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#toast-loading-toast-loading-message-options","aria-hidden":"true"}},[s._v("¶")]),s._v(" Toast.loading() || Toast.loading(message, options)")])},function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("table",{staticClass:"table"},[t("thead",[t("tr",[t("th",[s._v("参数")]),s._v(" "),t("th",[s._v("说明")]),s._v(" "),t("th",[s._v("类型")]),s._v(" "),t("th",[s._v("默认值")]),s._v(" "),t("th",[s._v("可选值")])])]),s._v(" "),t("tbody",[t("tr",[t("td",[s._v("forbidClick")]),s._v(" "),t("td",[s._v("不允许背景点击")]),s._v(" "),t("td",[s._v("Boolean")]),s._v(" "),t("td",[s._v("false")]),s._v(" "),t("td",[s._v("true, false")])]),s._v(" "),t("tr",[t("td",[s._v("duration")]),s._v(" "),t("td",[s._v("时长(ms)")]),s._v(" "),t("td",[s._v("Number")]),s._v(" "),t("td",[s._v("3000ms")]),s._v(" "),t("td",[s._v("-")])])])])},function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("h3",{attrs:{id:"toast-success-message-toast-success-message-options"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#toast-success-message-toast-success-message-options","aria-hidden":"true"}},[s._v("¶")]),s._v(" Toast.success(message) || Toast.success(message, options)")])},function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("table",{staticClass:"table"},[t("thead",[t("tr",[t("th",[s._v("参数")]),s._v(" "),t("th",[s._v("说明")]),s._v(" "),t("th",[s._v("类型")]),s._v(" "),t("th",[s._v("默认值")]),s._v(" "),t("th",[s._v("可选值")])])]),s._v(" "),t("tbody",[t("tr",[t("td",[s._v("type")]),s._v(" "),t("td",[s._v("类型")]),s._v(" "),t("td",[s._v("String")]),s._v(" "),t("td",[s._v("'text'")]),s._v(" "),t("td",[s._v("'text', 'loading', 'success', 'failure'")])]),s._v(" "),t("tr",[t("td",[s._v("forbidClick")]),s._v(" "),t("td",[s._v("不允许背景点击")]),s._v(" "),t("td",[s._v("Boolean")]),s._v(" "),t("td",[s._v("false")]),s._v(" "),t("td",[s._v("true, false")])]),s._v(" "),t("tr",[t("td",[s._v("duration")]),s._v(" "),t("td",[s._v("时长(ms)")]),s._v(" "),t("td",[s._v("Number")]),s._v(" "),t("td",[s._v("3000ms")]),s._v(" "),t("td",[s._v("-")])])])])},function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("h3",{attrs:{id:"toast-fail-message-toast-fail-message-options"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#toast-fail-message-toast-fail-message-options","aria-hidden":"true"}},[s._v("¶")]),s._v(" Toast.fail(message) || Toast.fail(message, options)")])},function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("table",{staticClass:"table"},[t("thead",[t("tr",[t("th",[s._v("参数")]),s._v(" "),t("th",[s._v("说明")]),s._v(" "),t("th",[s._v("类型")]),s._v(" "),t("th",[s._v("默认值")]),s._v(" "),t("th",[s._v("可选值")])])]),s._v(" "),t("tbody",[t("tr",[t("td",[s._v("type")]),s._v(" "),t("td",[s._v("类型")]),s._v(" "),t("td",[s._v("String")]),s._v(" "),t("td",[s._v("'text'")]),s._v(" "),t("td",[s._v("'text', 'loading', 'success', 'failure'")])]),s._v(" "),t("tr",[t("td",[s._v("forbidClick")]),s._v(" "),t("td",[s._v("不允许背景点击")]),s._v(" "),t("td",[s._v("Boolean")]),s._v(" "),t("td",[s._v("false")]),s._v(" "),t("td",[s._v("true, false")])]),s._v(" "),t("tr",[t("td",[s._v("duration")]),s._v(" "),t("td",[s._v("时长(ms)")]),s._v(" "),t("td",[s._v("Number")]),s._v(" "),t("td",[s._v("3000ms")]),s._v(" "),t("td",[s._v("-")])])])])},function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("h3",{attrs:{id:"instanceoftoast-clear"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#instanceoftoast-clear","aria-hidden":"true"}},[s._v("¶")]),s._v(" instanceOfToast.clear()")])}]}},function(s,a){s.exports={render:function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("section",{staticClass:"demo-search"},[t("h1",{staticClass:"demo-title"},[s._v("search")]),t("example-block",{attrs:{title:"基础用法"}},[t("zan-search",{attrs:{placeholder:"商品名称"},on:{search:s.goSearch}})],1)],1)},staticRenderFns:[]}},function(s,a){s.exports={render:function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("section",{staticClass:"demo-card"},[t("h1",{staticClass:"demo-title"},[s._v("card")]),t("example-block",{attrs:{title:"基础用法"}},[t("zan-card",{attrs:{title:"商品名称是什么,两行显示状态如效果图,多余多余多余两行显示状态如效果图,多余多余多余两行显示状态如效果图,多余多余多余两行显示状态如效果图,多余多余多余两行显示状态如效果图,多余多余多余",desc:"描述",thumb:"https://img.yzcdn.cn/upload_files/2017/02/17/FnDwvwHmU-OiqsbjAO5X7wh1KWrR.jpg!100x100.jpg"}})],1),t("example-block",{attrs:{title:"高级用法"}},[t("zan-card",{attrs:{thumb:"https://img.yzcdn.cn/upload_files/2017/02/17/FnDwvwHmU-OiqsbjAO5X7wh1KWrR.jpg!100x100.jpg"}},[t("div",{staticClass:"zan-card__row",slot:"title"},[t("h4",{staticClass:"zan-card__title"},[s._v("商品名称是什么,两行显示状态如效果图,多余多余多余两行显示状态如效果图,多余多余多余两行显示状态如效果图,多余多余多余两行显示状态如效果图,多余多余多余两行显示状态如效果图,多余多余多余")]),s._v(" "),t("span",{staticClass:"zan-card__price"},[s._v("¥ 2.00")])]),s._v(" "),t("div",{staticClass:"zan-card__row",slot:"desc"},[t("span",{staticClass:"zan-card__num"},[s._v("x 2")])]),s._v(" "),t("div",{staticClass:"zan-card__footer",slot:"footer"},[t("zan-button",{attrs:{size:"mini"}},[s._v("按钮一")]),s._v(" "),t("zan-button",{attrs:{size:"mini"}},[s._v("按钮二")])],1)])],1)],1)},staticRenderFns:[]}},function(s,a){s.exports={render:function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("section",[s._m(0),s._v(" "),s._m(1),s._v(" "),t("demo-block",{staticClass:"demo-box",attrs:{description:"基础用法"}},[t("div",{staticClass:"examples",slot:"examples"},[t("zan-swipe",[t("zan-swipe-item",[t("img",{attrs:{src:"https://img.yzcdn.cn/upload_files/2017/03/14/FmTPs0SeyQaAOSK1rRe1sL8RcwSY.jpeg?imageView2/2/w/980/h/980/q/75/format/webp",alt:""}})]),s._v(" "),t("zan-swipe-item",[t("img",{attrs:{src:"https://img.yzcdn.cn/upload_files/2017/03/15/FvexrWlG_WxtCE9Omo5l27n_mAG_.jpeg?imageView2/2/w/980/h/980/q/75/format/webp",alt:""}})])],1)],1),s._v(" "),t("div",{staticClass:"highlight",slot:"highlight"},[t("pre",[t("code",{staticClass:"hljs language-html"},[t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("zan-swipe")]),s._v(">")]),s._v("\n "),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("zan-swipe-item")]),s._v(">")]),s._v("\n "),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("img")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("src")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"https://img.yzcdn.cn/upload_files/2017/03/14/FmTPs0SeyQaAOSK1rRe1sL8RcwSY.jpeg?imageView2/2/w/980/h/980/q/75/format/webp"')]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("alt")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('""')]),s._v(">")]),s._v("\n "),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n "),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("zan-swipe-item")]),s._v(">")]),s._v("\n "),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("img")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("src")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"https://img.yzcdn.cn/upload_files/2017/03/15/FvexrWlG_WxtCE9Omo5l27n_mAG_.jpeg?imageView2/2/w/980/h/980/q/75/format/webp"')]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("alt")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('""')]),s._v(">")]),s._v("\n "),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n"),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n")])])])]),s._v(" "),s._m(2),s._v(" "),t("demo-block",{staticClass:"demo-box",attrs:{description:"自动轮播"}},[t("div",{staticClass:"examples",slot:"examples"},[t("zan-swipe",{attrs:{"auto-play":!0}},[t("zan-swipe-item",[t("img",{attrs:{src:"https://img.yzcdn.cn/upload_files/2017/03/14/FmTPs0SeyQaAOSK1rRe1sL8RcwSY.jpeg?imageView2/2/w/980/h/980/q/75/format/webp",alt:""}})]),s._v(" "),t("zan-swipe-item",[t("img",{attrs:{src:"https://img.yzcdn.cn/upload_files/2017/03/15/FvexrWlG_WxtCE9Omo5l27n_mAG_.jpeg?imageView2/2/w/980/h/980/q/75/format/webp",alt:""}})])],1)],1),s._v(" "),t("div",{staticClass:"highlight",slot:"highlight"},[t("pre",[t("code",{staticClass:"hljs language-html"},[t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("zan-swipe")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v(":auto-play")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"true"')]),s._v(">")]),s._v("\n "),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("zan-swipe-item")]),s._v(">")]),s._v("\n "),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("img")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("src")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"https://img.yzcdn.cn/upload_files/2017/03/14/FmTPs0SeyQaAOSK1rRe1sL8RcwSY.jpeg?imageView2/2/w/980/h/980/q/75/format/webp"')]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("alt")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('""')]),s._v(">")]),s._v("\n "),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n "),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("zan-swipe-item")]),s._v(">")]),s._v("\n "),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("img")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("src")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"https://img.yzcdn.cn/upload_files/2017/03/15/FvexrWlG_WxtCE9Omo5l27n_mAG_.jpeg?imageView2/2/w/980/h/980/q/75/format/webp"')]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("alt")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('""')]),s._v(">")]),s._v("\n "),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n"),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n")])])])])],1)},staticRenderFns:[function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("h2",{attrs:{id:"swipe"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#swipe","aria-hidden":"true"}},[s._v("¶")]),s._v(" Swipe")])},function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("h3",{attrs:{id:"ji-chu-yong-fa"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#ji-chu-yong-fa","aria-hidden":"true"}},[s._v("¶")]),s._v(" 基础用法")])},function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("h3",{attrs:{id:"zi-dong-lun-bo"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#zi-dong-lun-bo","aria-hidden":"true"}},[s._v("¶")]),s._v(" 自动轮播")])}]}},function(s,a){s.exports={render:function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("section",[s._m(0),s._v(" "),s._m(1),s._v(" "),t("p",[s._v("当没有底部按钮时,右侧内容会居中显示。")]),s._v(" "),t("demo-block",{staticClass:"demo-box",attrs:{description:"基础用法"}},[t("div",{staticClass:"examples",slot:"examples"},[t("zan-card",{attrs:{title:"商品名称是什么,两行显示状态如效果图,多余多余多余两行显示状态如效果图,多余多余多余两行显示状态如效果图,多余多余多余两行显示状态如效果图,多余多余多余两行显示状态如效果图,多余多余多余",desc:"描述",thumb:"https://img.yzcdn.cn/upload_files/2017/02/17/FnDwvwHmU-OiqsbjAO5X7wh1KWrR.jpg!100x100.jpg"}})],1),s._v(" "),t("div",{staticClass:"highlight",slot:"highlight"},[t("pre",[t("code",{staticClass:"hljs language-html"},[t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("zan-card")]),s._v("\n "),t("span",{staticClass:"hljs-attr"},[s._v("title")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"商品名称是什么,两行显示状态如效果图,多余多余多余两行显示状态如效果图,多余多余多余两行显示状态如效果图,多余多余多余两行显示状态如效果图,多余多余多余两行显示状态如效果图,多余多余多余"')]),s._v("\n "),t("span",{staticClass:"hljs-attr"},[s._v("desc")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"描述"')]),s._v("\n "),t("span",{staticClass:"hljs-attr"},[s._v("thumb")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"https://img.yzcdn.cn/upload_files/2017/02/17/FnDwvwHmU-OiqsbjAO5X7wh1KWrR.jpg!100x100.jpg"')]),s._v(">")]),s._v("\n"),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n")])])])]),s._v(" "),s._m(2),s._v(" "),s._m(3),s._v(" "),t("demo-block",{staticClass:"demo-box",attrs:{description:"高级用法"}},[t("div",{staticClass:"examples",slot:"examples"},[t("zan-card",{attrs:{thumb:"https://img.yzcdn.cn/upload_files/2017/02/17/FnDwvwHmU-OiqsbjAO5X7wh1KWrR.jpg!100x100.jpg"}},[t("div",{staticClass:"zan-card__row",slot:"title"},[t("h4",{staticClass:"zan-card__title"},[s._v("商品名称是什么,两行显示状态如效果图,多余多余多余两行显示状态如效果图,多余多余多余两行显示状态如效果图,多余多余多余两行显示状态如效果图,多余多余多余两行显示状态如效果图,多余多余多余")]),s._v(" "),t("span",{staticClass:"zan-card__price"},[s._v("¥ 2.00")])]),s._v(" "),t("div",{staticClass:"zan-card__row",slot:"desc"},[t("span",{staticClass:"zan-card__num"},[s._v("x 2")])]),s._v(" "),t("div",{staticClass:"zan-card__footer",slot:"footer"},[t("zan-button",{attrs:{size:"mini"}},[s._v("按钮一")]),s._v(" "),t("zan-button",{attrs:{size:"mini"}},[s._v("按钮二")])],1)])],1),s._v(" "),t("div",{staticClass:"highlight",slot:"highlight"},[t("pre",[t("code",{staticClass:"hljs language-html"},[t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("zan-card")]),s._v("\n "),t("span",{staticClass:"hljs-attr"},[s._v("thumb")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"https://img.yzcdn.cn/upload_files/2017/02/17/FnDwvwHmU-OiqsbjAO5X7wh1KWrR.jpg!100x100.jpg"')]),s._v(">")]),s._v("\n "),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("div")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("class")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"zan-card__row"')]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("slot")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"title"')]),s._v(">")]),s._v("\n "),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("h4")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("class")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"zan-card__title"')]),s._v(">")]),s._v("商品名称是什么,两行显示状态如效果图,多余多余多余两行显示状态如效果图,多余多余多余两行显示状态如效果图,多余多余多余两行显示状态如效果图,多余多余多余两行显示状态如效果图,多余多余多余"),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n "),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("span")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("class")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"zan-card__price"')]),s._v(">")]),s._v("¥ 2.00"),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n "),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n "),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("div")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("class")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"zan-card__row"')]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("slot")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"desc"')]),s._v(">")]),s._v("\n "),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("span")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("class")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"zan-card__num"')]),s._v(">")]),s._v("x 2"),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n "),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n "),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("div")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("class")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"zan-card__footer"')]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("slot")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"footer"')]),s._v(">")]),s._v("\n "),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("zan-button")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("size")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"mini"')]),s._v(">")]),s._v("按钮一"),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n "),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("zan-button")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("size")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"mini"')]),s._v(">")]),s._v("按钮二"),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n "),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n"),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n")])])])]),s._v(" "),s._m(4),s._v(" "),s._m(5),s._v(" "),s._m(6),s._v(" "),s._m(7)],1)},staticRenderFns:[function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("h2",{attrs:{id:"card-tu-wen-zu-jian"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#card-tu-wen-zu-jian","aria-hidden":"true"}},[s._v("¶")]),s._v(" Card 图文组件")])},function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("h3",{attrs:{id:"ji-chu-yong-fa"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#ji-chu-yong-fa","aria-hidden":"true"}},[s._v("¶")]),s._v(" 基础用法")])},function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("h3",{attrs:{id:"gao-ji-yong-fa"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#gao-ji-yong-fa","aria-hidden":"true"}},[s._v("¶")]),s._v(" 高级用法")])},function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("p",[s._v("可以使用具名"),t("code",[s._v("slot")]),s._v("重写标题等信息,其中包含"),t("code",[s._v("title")]),s._v("、"),t("code",[s._v("desc")]),s._v("、"),t("code",[s._v("footer")]),s._v("和"),t("code",[s._v("tag")]),s._v("四个"),t("code",[s._v("slot")]),s._v("。")])},function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("h3",{attrs:{id:"api"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#api","aria-hidden":"true"}},[s._v("¶")]),s._v(" API")])},function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("table",{staticClass:"table"},[t("thead",[t("tr",[t("th",[s._v("参数")]),s._v(" "),t("th",[s._v("说明")]),s._v(" "),t("th",[s._v("类型")]),s._v(" "),t("th",[s._v("默认值")]),s._v(" "),t("th",[s._v("可选值")])])]),s._v(" "),t("tbody",[t("tr",[t("td",[s._v("thumb")]),s._v(" "),t("td",[s._v("左侧图片")]),s._v(" "),t("td",[t("code",[s._v("string")])]),s._v(" "),t("td"),s._v(" "),t("td")]),s._v(" "),t("tr",[t("td",[s._v("title")]),s._v(" "),t("td",[s._v("标题")]),s._v(" "),t("td",[t("code",[s._v("string")])]),s._v(" "),t("td"),s._v(" "),t("td")]),s._v(" "),t("tr",[t("td",[s._v("desc")]),s._v(" "),t("td",[s._v("描述")]),s._v(" "),t("td",[t("code",[s._v("string")])]),s._v(" "),t("td"),s._v(" "),t("td")])])])},function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("h3",{attrs:{id:"slot"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#slot","aria-hidden":"true"}},[s._v("¶")]),s._v(" Slot")])},function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("table",{staticClass:"table"},[t("thead",[t("tr",[t("th",[s._v("name")]),s._v(" "),t("th",[s._v("描述")])])]),s._v(" "),t("tbody",[t("tr",[t("td",[s._v("title")]),s._v(" "),t("td",[s._v("自定义标题")])]),s._v(" "),t("tr",[t("td",[s._v("desc")]),s._v(" "),t("td",[s._v("自定义描述")])]),s._v(" "),t("tr",[t("td",[s._v("tags")]),s._v(" "),t("td",[s._v("自定义tags")])]),s._v(" "),t("tr",[t("td",[s._v("footer")]),s._v(" "),t("td",[s._v("自定义footer")])])])])}]}},function(s,a){s.exports={render:function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("section",[s._m(0),s._v(" "),s._m(1),s._v(" "),t("demo-block",{staticClass:"demo-box",attrs:{description:"基础用法"}},[t("div",{staticClass:"examples",slot:"examples"},[t("zan-cell-group",[t("zan-cell",{attrs:{title:"单元格1",value:"单元格1内容"}}),s._v(" "),t("zan-cell",{attrs:{title:"单元格2",value:"单元格2内容"}})],1)],1),s._v(" "),t("div",{staticClass:"highlight",slot:"highlight"},[t("pre",[t("code",{staticClass:"hljs language-html"},[t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("zan-cell-group")]),s._v(">")]),s._v("\n "),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("zan-cell")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("title")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"单元格1"')]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("value")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"单元格1内容"')]),s._v(">")]),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n "),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("zan-cell")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("title")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"单元格2"')]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("value")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"单元格2内容"')]),s._v(">")]),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n"),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n")])])])]),s._v(" "),s._m(2),s._v(" "),s._m(3),s._v(" "),t("demo-block",{staticClass:"demo-box",attrs:{description:"带*号,标明必填"}},[t("div",{staticClass:"examples",slot:"examples"},[t("zan-cell-group",[t("zan-cell",{attrs:{title:"单元格1",required:""}})],1)],1),s._v(" "),t("div",{staticClass:"highlight",slot:"highlight"},[t("pre",[t("code",{staticClass:"hljs language-html"},[t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("zan-cell-group")]),s._v(">")]),s._v("\n "),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("zan-cell")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("title")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"单元格1"')]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("required")]),s._v(">")]),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n"),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n")])])])]),s._v(" "),s._m(4),s._v(" "),s._m(5),s._v(" "),t("demo-block",{staticClass:"demo-box",attrs:{description:"标题带描述信息"}},[t("div",{staticClass:"examples",slot:"examples"},[t("zan-cell-group",[t("zan-cell",{attrs:{title:"单元格1",label:"描述信息","is-link":"",url:"javascript:void(0)"},on:{click:s.handleClick}}),s._v(" "),t("zan-cell",{attrs:{title:"单元格2",label:"描述信息"}})],1)],1),s._v(" "),t("div",{staticClass:"highlight",slot:"highlight"},[t("pre",[t("code",{staticClass:"hljs language-html"},[t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("zan-cell-group")]),s._v(">")]),s._v("\n "),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("zan-cell")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("title")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"单元格1"')]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("label")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"描述信息"')]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("is-link")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("url")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"javascript:void(0)"')]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("@click")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"handleClick"')]),s._v(">")]),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n "),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("zan-cell")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("title")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"单元格2"')]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("label")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"描述信息"')]),s._v(">")]),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n"),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n")])])])]),s._v(" "),s._m(6),s._v(" "),s._m(7),s._v(" "),t("demo-block",{staticClass:"demo-box",attrs:{description:"带图标"}},[t("div",{staticClass:"examples",slot:"examples"},[t("zan-cell-group",[t("zan-cell",{attrs:{title:"起码运动馆",icon:"home"}}),s._v(" "),t("zan-cell",{attrs:{title:"线下门店",icon:"location"}})],1)],1),s._v(" "),t("div",{staticClass:"highlight",slot:"highlight"},[t("pre",[t("code",{staticClass:"hljs language-html"},[t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("zan-cell-group")]),s._v(">")]),s._v("\n "),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("zan-cell")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("title")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"起码运动馆"')]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("icon")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"home"')]),s._v(">")]),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n "),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("zan-cell")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("title")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"线下门店"')]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("icon")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"location"')]),s._v(">")]),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n"),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n")])])])]),s._v(" "),s._m(8),s._v(" "),s._m(9),s._v(" "),t("demo-block",{staticClass:"demo-box",attrs:{description:"可点击的链接"}},[t("div",{staticClass:"examples",slot:"examples"},[t("zan-cell-group",[t("zan-cell",{attrs:{title:"起码运动馆",value:"进入店铺",icon:"home",url:"http://youzan.com","is-link":""}}),s._v(" "),t("zan-cell",{attrs:{title:"线下门店",icon:"location",url:"http://youzan.com","is-link":""}})],1)],1),s._v(" "),t("div",{staticClass:"highlight",slot:"highlight"},[t("pre",[t("code",{staticClass:"hljs language-html"},[t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("zan-cell-group")]),s._v(">")]),s._v("\n "),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("zan-cell")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("title")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"起码运动馆"')]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("value")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"进入店铺"')]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("icon")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"home"')]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("url")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"http://youzan.com"')]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("is-link")]),s._v(">")]),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n "),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("zan-cell")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("title")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"线下门店"')]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("icon")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"location"')]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("url")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"http://youzan.com"')]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("is-link")]),s._v(">")]),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n"),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n")])])])]),s._v(" "),s._m(10),s._v(" "),s._m(11),s._v(" "),t("demo-block",{staticClass:"demo-box",attrs:{description:"高级用法"}},[t("div",{staticClass:"examples",slot:"examples"},[t("zan-cell-group",[t("zan-cell",{attrs:{value:"进入店铺",icon:"home",url:"http://youzan.com","is-link":""}},[t("template",{slot:"title"},[t("span",{staticClass:"zan-cell-text"},[s._v("起码运动馆")]),s._v(" "),t("img",{staticClass:"official-img",attrs:{src:"//su.yzcdn.cn/v2/image/account/icon_guan_160421.png"}})])],2),s._v(" "),t("zan-cell",{attrs:{title:"线下门店",icon:"location",url:"http://youzan.com","is-link":""}})],1)],1),s._v(" "),t("div",{staticClass:"highlight",slot:"highlight"},[t("pre",[t("code",{staticClass:"hljs language-html"},[t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("zan-cell-group")]),s._v(">")]),s._v("\n "),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("zan-cell")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("value")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"进入店铺"')]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("icon")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"home"')]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("url")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"http://youzan.com"')]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("is-link")]),s._v(">")]),s._v("\n "),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("template")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("slot")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"title"')]),s._v(">")]),s._v("\n "),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("span")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("class")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"zan-cell-text"')]),s._v(">")]),s._v("起码运动馆"),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n "),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("img")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("src")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"//su.yzcdn.cn/v2/image/account/icon_guan_160421.png"')]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("class")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"official-img"')]),s._v(">")]),s._v("\n "),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n "),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n "),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("zan-cell")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("title")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"线下门店"')]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("icon")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"location"')]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("url")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"http://youzan.com"')]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("is-link")]),s._v(">")]),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n"),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n")])])])]),s._v(" "),s._m(12),s._v(" "),s._m(13),s._v(" "),s._m(14),s._v(" "),s._m(15)],1)},staticRenderFns:[function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("h2",{attrs:{id:"cell"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#cell","aria-hidden":"true"}},[s._v("¶")]),s._v(" Cell")])},function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("h3",{attrs:{id:"ji-chu-yong-fa"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#ji-chu-yong-fa","aria-hidden":"true"}},[s._v("¶")]),s._v(" 基础用法")])},function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("h3",{attrs:{id:"dai-hao-biao-ming-bi-tian"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#dai-hao-biao-ming-bi-tian","aria-hidden":"true"}},[s._v("¶")]),s._v(" 带*号,标明必填")])},function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("p",[s._v("传入"),t("code",[s._v("required")]),s._v("属性")])},function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("h3",{attrs:{id:"biao-ti-dai-miao-shu-xin-xi"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#biao-ti-dai-miao-shu-xin-xi","aria-hidden":"true"}},[s._v("¶")]),s._v(" 标题带描述信息")])},function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("p",[s._v("传入"),t("code",[s._v("label")]),s._v("属性,属性值为描述信息的值。")])},function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("h3",{attrs:{id:"dai-tu-biao"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#dai-tu-biao","aria-hidden":"true"}},[s._v("¶")]),s._v(" 带图标")])},function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("p",[s._v("传入"),t("code",[s._v("icon")]),s._v("属性。")])},function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("h3",{attrs:{id:"ke-dian-ji-de-lian-jie"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#ke-dian-ji-de-lian-jie","aria-hidden":"true"}},[s._v("¶")]),s._v(" 可点击的链接")])},function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("p",[s._v("传入"),t("code",[s._v("url")]),s._v("属性,传入"),t("code",[s._v("isLink")]),s._v("属性则会在右侧显示箭头。")])},function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("h3",{attrs:{id:"gao-ji-yong-fa"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#gao-ji-yong-fa","aria-hidden":"true"}},[s._v("¶")]),s._v(" 高级用法")])},function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("p",[s._v("如以上用法不能满足你的需求,可以使用对应的"),t("code",[s._v("slot")]),s._v("来自定义显示的内容。包含三个"),t("code",[s._v("slot")]),s._v(",默认"),t("code",[s._v("slot")]),s._v(","),t("code",[s._v("icon")]),s._v("和"),t("code",[s._v("title")]),s._v("的"),t("code",[s._v("slot")]),s._v("。")])},function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("h3",{attrs:{id:"api"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#api","aria-hidden":"true"}},[s._v("¶")]),s._v(" API")])},function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("table",{staticClass:"table"},[t("thead",[t("tr",[t("th",[s._v("参数")]),s._v(" "),t("th",[s._v("说明")]),s._v(" "),t("th",[s._v("类型")]),s._v(" "),t("th",[s._v("默认值")]),s._v(" "),t("th",[s._v("可选值")])])]),s._v(" "),t("tbody",[t("tr",[t("td",[s._v("icon")]),s._v(" "),t("td",[s._v("左侧图标")]),s._v(" "),t("td",[t("code",[s._v("string")])]),s._v(" "),t("td"),s._v(" "),t("td")]),s._v(" "),t("tr",[t("td",[s._v("title")]),s._v(" "),t("td",[s._v("左侧标题")]),s._v(" "),t("td",[t("code",[s._v("string")])]),s._v(" "),t("td"),s._v(" "),t("td")]),s._v(" "),t("tr",[t("td",[s._v("value")]),s._v(" "),t("td",[s._v("右侧内容")]),s._v(" "),t("td",[t("code",[s._v("string")])]),s._v(" "),t("td"),s._v(" "),t("td")]),s._v(" "),t("tr",[t("td",[s._v("isLink")]),s._v(" "),t("td",[s._v("是否为链接,链接会在右侧出现箭头")]),s._v(" "),t("td",[t("code",[s._v("boolean")])]),s._v(" "),t("td"),s._v(" "),t("td")]),s._v(" "),t("tr",[t("td",[s._v("url")]),s._v(" "),t("td",[s._v("跳转链接")]),s._v(" "),t("td",[t("code",[s._v("string")])]),s._v(" "),t("td"),s._v(" "),t("td")]),s._v(" "),t("tr",[t("td",[s._v("label")]),s._v(" "),t("td",[s._v("描述信息,显示在标题下方")]),s._v(" "),t("td",[t("code",[s._v("string")])]),s._v(" "),t("td"),s._v(" "),t("td")])])])},function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("h3",{attrs:{id:"slot"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#slot","aria-hidden":"true"}},[s._v("¶")]),s._v(" Slot")])},function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("table",{staticClass:"table"},[t("thead",[t("tr",[t("th",[s._v("name")]),s._v(" "),t("th",[s._v("描述")])])]),s._v(" "),t("tbody",[t("tr",[t("td",[s._v("-")]),s._v(" "),t("td",[s._v("自定义显示内容")])]),s._v(" "),t("tr",[t("td",[s._v("icon")]),s._v(" "),t("td",[s._v("自定义"),t("code",[s._v("icon")])])]),s._v(" "),t("tr",[t("td",[s._v("title")]),s._v(" "),t("td",[s._v("自定义"),t("code",[s._v("title")])])])])])}]}},function(s,a){s.exports={render:function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("div",{staticClass:"example-block"},[t("h2",{staticClass:"demo-sub-title",domProps:{textContent:s._s(s.title)}}),s._v(" "),s._t("default")],2)},staticRenderFns:[]}},function(s,a){s.exports={render:function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("section",{staticClass:"demo-badge"},[t("h1",{staticClass:"demo-title"},[s._v("badge")]),t("example-block",{attrs:{title:"基础用法"}},[t("zan-badge-group",{attrs:{"active-key":s.activeKey}},[t("zan-badge",{attrs:{mark:"0",title:"热销榜",info:"8",url:"http://baidu.com"},on:{click:s.onItemClick}}),s._v(" "),t("zan-badge",{attrs:{mark:"1",title:"花式寿司",info:"99"},on:{click:s.onItemClick}}),s._v(" "),t("zan-badge",{attrs:{mark:"2",title:"火炽寿司"},on:{click:s.onItemClick}}),s._v(" "),t("zan-badge",{attrs:{mark:"3",title:"手握寿司",info:"199"},on:{click:s.onItemClick}})],1)],1)],1)},staticRenderFns:[]}},function(s,a){s.exports={render:function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("section",{staticClass:"demo-switch"},[t("h1",{staticClass:"demo-title"},[s._v("switch")]),t("example-block",{attrs:{title:"基础用法"}},[t("div",{staticClass:"demo-switch__wrapper"},[t("zan-switch",{staticClass:"some-customized-class",attrs:{checked:s.switchState},on:{change:s.updateState}}),s._v(" "),t("div",{staticClass:"demo-switch__text"},[s._v(s._s(s.switchStateText))])],1),s._v(" "),t("div",{staticClass:"demo-switch__wrapper"},[t("zan-switch",{staticClass:"some-customized-class",attrs:{checked:!0,disabled:!0}}),s._v(" "),t("div",{staticClass:"demo-switch__text"},[s._v("ON, DISABLED")])],1),s._v(" "),t("div",{staticClass:"demo-switch__wrapper"},[t("zan-switch",{staticClass:"some-customized-class",attrs:{checked:!1,disabled:!0}}),s._v(" "),t("div",{staticClass:"demo-switch__text"},[s._v("OFF, DISABLED")])],1),s._v(" "),t("div",{staticClass:"demo-switch__wrapper"},[t("zan-switch",{staticClass:"some-customized-class",attrs:{checked:!0,loading:!0}}),s._v(" "),t("div",{staticClass:"demo-switch__text"},[s._v("ON, LOADING")])],1),s._v(" "),t("div",{staticClass:"demo-switch__wrapper"},[t("zan-switch",{staticClass:"some-customized-class",attrs:{checked:!1,loading:!0}}),s._v(" "),t("div",{staticClass:"demo-switch__text"},[s._v("OFF, LOADING")])],1)])],1)},staticRenderFns:[]}},function(s,a){s.exports={render:function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("section",[s._m(0),s._v(" "),s._m(1),s._v(" "),t("demo-block",{staticClass:"demo-box",attrs:{description:"基础用法"}},[t("div",{staticClass:"examples",slot:"examples"},[t("div",{staticClass:"demo-progress__wrapper"},[t("zan-progress",{staticClass:"demo-progress__demo1",attrs:{percentage:0}})],1),s._v(" "),t("div",{staticClass:"demo-progress__wrapper"},[t("zan-progress",{staticClass:"demo-progress__demo2",attrs:{percentage:46}})],1),s._v(" "),t("div",{staticClass:"demo-progress__wrapper"},[t("zan-progress",{staticClass:"demo-progress__demo1",attrs:{percentage:100}})],1)]),s._v(" "),t("div",{staticClass:"highlight",slot:"highlight"},[t("pre",[t("code",{staticClass:"hljs language-html"},[t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("div")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("class")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"demo-progress__wrapper"')]),s._v(">")]),s._v("\n "),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("zan-progress")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("class")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"demo-progress__demo1"')]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v(":percentage")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"0"')]),s._v(">")]),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n"),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n"),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("div")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("class")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"demo-progress__wrapper"')]),s._v(">")]),s._v("\n "),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("zan-progress")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("class")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"demo-progress__demo2"')]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v(":percentage")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"46"')]),s._v(">")]),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n"),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n"),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("div")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("class")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"demo-progress__wrapper"')]),s._v(">")]),s._v("\n "),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("zan-progress")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("class")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"demo-progress__demo1"')]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v(":percentage")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"100"')]),s._v(">")]),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n"),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n")])])])]),s._v(" "),s._m(2),s._v(" "),t("demo-block",{staticClass:"demo-box",attrs:{description:"Inactive"}},[t("div",{staticClass:"examples",slot:"examples"},[t("div",{staticClass:"demo-progress__wrapper"},[t("zan-progress",{staticClass:"demo-progress__demo1",attrs:{inactive:!0,percentage:0}})],1),s._v(" "),t("div",{staticClass:"demo-progress__wrapper"},[t("zan-progress",{staticClass:"demo-progress__demo2",attrs:{inactive:!0,percentage:46}})],1),s._v(" "),t("div",{staticClass:"demo-progress__wrapper"},[t("zan-progress",{staticClass:"demo-progress__demo1",attrs:{inactive:!0,percentage:100}})],1)]),s._v(" "),t("div",{staticClass:"highlight",slot:"highlight"},[t("pre",[t("code",{staticClass:"hljs language-html"},[t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("div")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("class")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"demo-progress__wrapper"')]),s._v(">")]),s._v("\n "),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("zan-progress")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("class")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"demo-progress__demo1"')]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v(":inactive")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"true"')]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v(":percentage")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"0"')]),s._v(">")]),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n"),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n"),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("div")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("class")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"demo-progress__wrapper"')]),s._v(">")]),s._v("\n "),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("zan-progress")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("class")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"demo-progress__demo2"')]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v(":inactive")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"true"')]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v(":percentage")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"46"')]),s._v(">")]),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n"),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n"),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("div")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("class")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"demo-progress__wrapper"')]),s._v(">")]),s._v("\n "),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("zan-progress")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("class")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"demo-progress__demo1"')]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v(":inactive")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"true"')]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v(":percentage")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"100"')]),s._v(">")]),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n")])])])]),s._v(" "),s._m(3),s._v(" "),t("demo-block",{staticClass:"demo-box",attrs:{description:"自定义颜色"}},[t("div",{staticClass:"examples",slot:"examples"},[t("div",{staticClass:"demo-progress__wrapper"},[t("zan-progress",{staticClass:"demo-progress__demo1",attrs:{"pivot-text":"红色",color:"#ed5050",percentage:26}})],1),s._v(" "),t("div",{staticClass:"demo-progress__wrapper"},[t("zan-progress",{staticClass:"demo-progress__demo1",attrs:{"pivot-text":"橙色",color:"#f60",percentage:46}})],1),s._v(" "),t("div",{staticClass:"demo-progress__wrapper"},[t("zan-progress",{staticClass:"demo-progress__demo1",attrs:{"pivot-text":"黄色",color:"#f09000",percentage:66}})],1)]),s._v(" "),t("div",{staticClass:"highlight",slot:"highlight"},[t("pre",[t("code",{staticClass:"hljs language-html"},[t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n"),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("div")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("class")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"demo-progress__wrapper"')]),s._v(">")]),s._v("\n "),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("zan-progress")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("class")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"demo-progress__demo1"')]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("pivot-text")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"红色"')]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("color")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"#ed5050"')]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v(":percentage")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"26"')]),s._v(">")]),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n"),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n"),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("div")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("class")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"demo-progress__wrapper"')]),s._v(">")]),s._v("\n "),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("zan-progress")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("class")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"demo-progress__demo1"')]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("pivot-text")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"橙色"')]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("color")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"#f60"')]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v(":percentage")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"46"')]),s._v(">")]),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n"),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n"),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("div")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("class")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"demo-progress__wrapper"')]),s._v(">")]),s._v("\n "),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("zan-progress")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("class")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"demo-progress__demo1"')]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("pivot-text")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"黄色"')]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("color")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"#f09000"')]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v(":percentage")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"66"')]),s._v(">")]),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n"),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n")])])])]),s._v(" "),s._m(4),s._v(" "),s._m(5)],1)},staticRenderFns:[function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("h2",{attrs:{id:"progress"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#progress","aria-hidden":"true"}},[s._v("¶")]),s._v(" Progress")])},function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("h3",{attrs:{id:"ji-chu-yong-fa"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#ji-chu-yong-fa","aria-hidden":"true"}},[s._v("¶")]),s._v(" 基础用法")])},function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("h3",{attrs:{id:"inactive"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#inactive","aria-hidden":"true"}},[s._v("¶")]),s._v(" Inactive")])},function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("h3",{attrs:{id:"zi-ding-yi-yan-se-he-wen-zi"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#zi-ding-yi-yan-se-he-wen-zi","aria-hidden":"true"}},[s._v("¶")]),s._v(" 自定义颜色和文字")])},function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("h3",{attrs:{id:"api"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#api","aria-hidden":"true"}},[s._v("¶")]),s._v(" API")])},function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("table",{staticClass:"table"},[t("thead",[t("tr",[t("th",[s._v("参数")]),s._v(" "),t("th",[s._v("说明")]),s._v(" "),t("th",[s._v("类型")]),s._v(" "),t("th",[s._v("默认值")]),s._v(" "),t("th",[s._v("可选值")])])]),s._v(" "),t("tbody",[t("tr",[t("td",[s._v("inactive")]),s._v(" "),t("td",[s._v("是否只会")]),s._v(" "),t("td",[t("code",[s._v("boolean")])]),s._v(" "),t("td",[t("code",[s._v("false")])]),s._v(" "),t("td",[t("code",[s._v("true")]),s._v(", "),t("code",[s._v("false")])])]),s._v(" "),t("tr",[t("td",[s._v("percentage")]),s._v(" "),t("td",[s._v("进度百分比")]),s._v(" "),t("td",[t("code",[s._v("number")])]),s._v(" "),t("td",[t("code",[s._v("false")])]),s._v(" "),t("td",[t("code",[s._v("0-100")])])]),s._v(" "),t("tr",[t("td",[s._v("pivotText")]),s._v(" "),t("td",[s._v("文字显示")]),s._v(" "),t("td",[t("code",[s._v("string")])]),s._v(" "),t("td",[s._v("百分比文字")]),s._v(" "),t("td",[s._v("-")])]),s._v(" "),t("tr",[t("td",[s._v("color")]),s._v(" "),t("td",[s._v("进度条颜色")]),s._v(" "),t("td",[t("code",[s._v("string")])]),s._v(" "),t("td",[t("code",[s._v("#38f")])]),s._v(" "),t("td",[s._v("hexvalue")])]),s._v(" "),t("tr",[t("td",[s._v("textColor")]),s._v(" "),t("td",[s._v("进度条文字颜色")]),s._v(" "),t("td",[t("code",[s._v("string")])]),s._v(" "),t("td",[t("code",[s._v("#fff")])]),s._v(" "),t("td",[s._v("hexvalue")])])])])}]}},function(s,a){s.exports={render:function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("section",{staticClass:"demo-toast"},[t("h1",{staticClass:"demo-title"},[s._v("toast")]),t("example-block",{attrs:{title:"基础用法"}},[t("zan-button",{on:{click:s.showSimpleToast}},[s._v("普通文字提示")]),s._v(" "),t("zan-button",{on:{click:s.showLoadingToast}},[s._v("加载Toast")]),s._v(" "),t("zan-button",{on:{click:s.showSuccessToast}},[s._v("成功")]),s._v(" "),t("zan-button",{on:{click:s.showFailToast}},[s._v("失败")]),s._v(" "),t("zan-button",{on:{click:s.showForbidClickToast}},[s._v("背景不能点击")]),s._v(" "),t("zan-button",{on:{click:function(a){s.showCustomizedToast(5e3)}}},[s._v("倒数5秒")])],1),t("example-block",{attrs:{title:"手动关闭"}},[t("zan-button",{on:{click:s.showToast}},[s._v("打开")]),s._v(" "),t("zan-button",{on:{click:s.closeToast}},[s._v("关闭")])],1),t("example-block",{attrs:{title:"手动关闭"}},[t("zan-button",{on:{click:s.showHtmlToast}},[s._v("打开")])],1)],1)},staticRenderFns:[]}},function(s,a){s.exports={render:function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("section",[s._m(0),s._v(" "),s._m(1),s._v(" "),t("demo-block",{staticClass:"demo-box",attrs:{description:"基础用法"}},[t("div",{staticClass:"examples",slot:"examples"},[t("zan-steps",{attrs:{active:s.active,icon:"certificate","icon-class":"steps-success",title:"等待商家发货",description:"等待商家发货等待商家发货等待商家发货等待商家发货等待商家发货"}},[t("zan-step",[s._v("买家下单")]),s._v(" "),t("zan-step",[s._v("商家接单")]),s._v(" "),t("zan-step",[s._v("买家提货")]),s._v(" "),t("zan-step",[s._v("交易完成")])],1),s._v(" "),t("zan-button",{on:{click:s.nextStep}},[s._v("下一步")])],1),s._v(" "),t("div",{staticClass:"highlight",slot:"highlight"},[t("pre",[t("code",{staticClass:"hljs language-html"},[t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("zan-steps")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v(":active")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"active"')]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("icon")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"certificate"')]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("icon-class")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"steps-success"')]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("title")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"等待商家发货"')]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("description")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"等待商家发货等待商家发货等待商家发货等待商家发货等待商家发货"')]),s._v(">")]),s._v("\n "),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("zan-step")]),s._v(">")]),s._v("买家下单"),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n "),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("zan-step")]),s._v(">")]),s._v("商家接单"),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n "),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("zan-step")]),s._v(">")]),s._v("买家提货"),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n "),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("zan-step")]),s._v(">")]),s._v("交易完成"),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n"),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n\n"),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("zan-button")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("@click")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"nextStep"')]),s._v(">")]),s._v("下一步"),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n\n"),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("script")]),s._v(">")]),t("span",{staticClass:"javascript"},[s._v("\n"),t("span",{staticClass:"hljs-keyword"},[s._v("export")]),s._v(" "),t("span",{staticClass:"hljs-keyword"},[s._v("default")]),s._v(" {\n data() {\n "),t("span",{staticClass:"hljs-keyword"},[s._v("return")]),s._v(" {\n "),t("span",{staticClass:"hljs-attr"},[s._v("active")]),s._v(": "),t("span",{staticClass:"hljs-number"},[s._v("0")]),s._v("\n };\n },\n\n "),t("span",{staticClass:"hljs-attr"},[s._v("methods")]),s._v(": {\n nextStep() {\n "),t("span",{staticClass:"hljs-keyword"},[s._v("if")]),s._v(" (++"),t("span",{staticClass:"hljs-keyword"},[s._v("this")]),s._v(".active > "),t("span",{staticClass:"hljs-number"},[s._v("3")]),s._v(") "),t("span",{staticClass:"hljs-keyword"},[s._v("this")]),s._v(".active = "),t("span",{staticClass:"hljs-number"},[s._v("0")]),s._v(";\n }\n }\n}\n")]),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n")])])])]),s._v(" "),s._m(2),s._v(" "),t("demo-block",{staticClass:"demo-box",attrs:{description:"只显示步骤条"}},[t("div",{staticClass:"examples",slot:"examples"},[t("zan-steps",{attrs:{active:s.active}},[t("zan-step",[s._v("买家下单")]),s._v(" "),t("zan-step",[s._v("商家接单")]),s._v(" "),t("zan-step",[s._v("买家提货")]),s._v(" "),t("zan-step",[s._v("交易完成")])],1)],1),s._v(" "),t("div",{staticClass:"highlight",slot:"highlight"},[t("pre",[t("code",{staticClass:"hljs language-html"},[t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("zan-steps")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v(":active")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"active"')]),s._v(">")]),s._v("\n "),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("zan-step")]),s._v(">")]),s._v("买家下单"),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n "),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("zan-step")]),s._v(">")]),s._v("商家接单"),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n "),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("zan-step")]),s._v(">")]),s._v("买家提货"),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n "),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("zan-step")]),s._v(">")]),s._v("交易完成"),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n"),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n")])])])]),s._v(" "),s._m(3),s._v(" "),s._m(4),s._v(" "),s._m(5),s._v(" "),s._m(6)],1)},staticRenderFns:[function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("h2",{attrs:{id:"steps-bu-zou-tiao"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#steps-bu-zou-tiao","aria-hidden":"true"}},[s._v("¶")]),s._v(" Steps 步骤条")])},function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("h3",{attrs:{id:"ji-chu-yong-fa"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#ji-chu-yong-fa","aria-hidden":"true"}},[s._v("¶")]),s._v(" 基础用法")])},function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("h3",{attrs:{id:"zhi-xian-shi-bu-zou-tiao"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#zhi-xian-shi-bu-zou-tiao","aria-hidden":"true"}},[s._v("¶")]),s._v(" 只显示步骤条")])},function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("h3",{attrs:{id:"steps-api"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#steps-api","aria-hidden":"true"}},[s._v("¶")]),s._v(" Steps API")])},function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("table",{staticClass:"table"},[t("thead",[t("tr",[t("th",[s._v("参数")]),s._v(" "),t("th",[s._v("说明")]),s._v(" "),t("th",[s._v("类型")]),s._v(" "),t("th",[s._v("默认值")]),s._v(" "),t("th",[s._v("可选值")])])]),s._v(" "),t("tbody",[t("tr",[t("td",[s._v("active")]),s._v(" "),t("td",[s._v("当前激活的步骤,从0开始")]),s._v(" "),t("td",[t("code",[s._v("number")])]),s._v(" "),t("td"),s._v(" "),t("td")]),s._v(" "),t("tr",[t("td",[s._v("icon")]),s._v(" "),t("td",[s._v("当前步骤的icon")]),s._v(" "),t("td",[t("code",[s._v("string")])]),s._v(" "),t("td"),s._v(" "),t("td")]),s._v(" "),t("tr",[t("td",[s._v("iconClass")]),s._v(" "),t("td",[s._v("当前步骤栏为icon添加的类")]),s._v(" "),t("td",[t("code",[s._v("string")])]),s._v(" "),t("td"),s._v(" "),t("td")]),s._v(" "),t("tr",[t("td",[s._v("title")]),s._v(" "),t("td",[s._v("当前步骤从标题")]),s._v(" "),t("td",[t("code",[s._v("string")])]),s._v(" "),t("td"),s._v(" "),t("td")]),s._v(" "),t("tr",[t("td",[s._v("description")]),s._v(" "),t("td",[s._v("当前步骤描述")]),s._v(" "),t("td",[t("code",[s._v("string")])]),s._v(" "),t("td"),s._v(" "),t("td")])])])},function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("h3",{attrs:{id:"steps-slot"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#steps-slot","aria-hidden":"true"}},[s._v("¶")]),s._v(" Steps Slot")])},function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("table",{staticClass:"table"},[t("thead",[t("tr",[t("th",[s._v("名称")]),s._v(" "),t("th",[s._v("说明")])])]),s._v(" "),t("tbody",[t("tr",[t("td",[s._v("message-extra")]),s._v(" "),t("td",[s._v("状态栏添加额外的元素")])])])])}]}},function(s,a){s.exports={render:function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("section",[s._m(0),s._v(" "),s._m(1),s._v(" "),t("demo-block",{staticClass:"demo-box",attrs:{description:"基础用法"}},[t("div",{staticClass:"examples",slot:"examples"},[t("zan-button",{on:{click:s.handleAlertClick}},[s._v("alert")]),s._v(" "),t("zan-button",{on:{click:s.handleConfirmClick}},[s._v("confirm")])],1),s._v(" "),t("div",{staticClass:"highlight",slot:"highlight"},[t("pre",[t("code",{staticClass:"hljs language-html"},[t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("zan-button")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("@click")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"handleAlertClick"')]),s._v(">")]),s._v("alert"),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n\n"),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("zan-button")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("@click")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"handleConfirmClick"')]),s._v(">")]),s._v("confirm"),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n\n"),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("script")]),s._v(">")]),t("span",{staticClass:"javascript"},[s._v("\n"),t("span",{staticClass:"hljs-keyword"},[s._v("import")]),s._v(" { Dialog } "),t("span",{staticClass:"hljs-keyword"},[s._v("from")]),s._v(" "),t("span",{staticClass:"hljs-string"},[s._v("'src/index'")]),s._v(";\n\n"),t("span",{staticClass:"hljs-keyword"},[s._v("export")]),s._v(" "),t("span",{staticClass:"hljs-keyword"},[s._v("default")]),s._v(" {\n "),t("span",{staticClass:"hljs-attr"},[s._v("methods")]),s._v(": {\n handleAlertClick() {\n Dialog.alert({\n "),t("span",{staticClass:"hljs-attr"},[s._v("title")]),s._v(": "),t("span",{staticClass:"hljs-string"},[s._v("'alert标题'")]),s._v(",\n "),t("span",{staticClass:"hljs-attr"},[s._v("message")]),s._v(": "),t("span",{staticClass:"hljs-string"},[s._v("'弹窗提示文字,左右始终距离边20PX,上下距离20PX,文字左对齐。弹窗提示文字,左右始终距离边20PX,上下距离20PX,文字左对齐。'")]),s._v("\n }).then("),t("span",{staticClass:"hljs-function"},[s._v("("),t("span",{staticClass:"hljs-params"},[s._v("action")]),s._v(") =>")]),s._v(" {\n "),t("span",{staticClass:"hljs-built_in"},[s._v("console")]),s._v(".log(action);\n });\n },\n\n handleConfirmClick() {\n Dialog.confirm({\n "),t("span",{staticClass:"hljs-attr"},[s._v("title")]),s._v(": "),t("span",{staticClass:"hljs-string"},[s._v("'confirm标题'")]),s._v(",\n "),t("span",{staticClass:"hljs-attr"},[s._v("message")]),s._v(": "),t("span",{staticClass:"hljs-string"},[s._v("'弹窗提示文字,左右始终距离边20PX,上下距离20PX,文字左对齐。弹窗提示文字,左右始终距离边20PX,上下距离20PX,文字左对齐。'")]),s._v("\n }).then("),t("span",{staticClass:"hljs-function"},[s._v("("),t("span",{staticClass:"hljs-params"},[s._v("action")]),s._v(") =>")]),s._v(" {\n "),t("span",{staticClass:"hljs-built_in"},[s._v("console")]),s._v(".log(action);\n }, (error) => {\n "),t("span",{staticClass:"hljs-built_in"},[s._v("console")]),s._v(".log(error);\n });\n }\n }\n};\n")]),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n")])])])]),s._v(" "),t("p",[s._v("点击以下按钮查看手机端效果:")]),s._v(" "),t("p",[t("zan-button",{on:{click:function(a){s.mobileShow=!0}}},[s._v("点击查看手机端效果")]),s._v(" "),t("mobile-popup",{directives:[{name:"model",rawName:"v-model",value:s.mobileShow,expression:"mobileShow"}],attrs:{url:s.mobileUrl},domProps:{value:s.mobileShow},on:{input:function(a){s.mobileShow=a}}})],1),s._v(" "),s._m(2),s._v(" "),s._m(3)],1)},staticRenderFns:[function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("h2",{attrs:{id:"dialog-zu-jian"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#dialog-zu-jian","aria-hidden":"true"}},[s._v("¶")]),s._v(" Dialog组件")])},function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("h3",{attrs:{id:"ji-chu-yong-fa"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#ji-chu-yong-fa","aria-hidden":"true"}},[s._v("¶")]),s._v(" 基础用法")])},function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("h3",{attrs:{id:"api"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#api","aria-hidden":"true"}},[s._v("¶")]),s._v(" API")])},function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("table",{staticClass:"table"},[t("thead",[t("tr",[t("th",[s._v("参数")]),s._v(" "),t("th",[s._v("说明")]),s._v(" "),t("th",[s._v("类型")]),s._v(" "),t("th",[s._v("默认值")]),s._v(" "),t("th",[s._v("可选值")])])]),s._v(" "),t("tbody",[t("tr",[t("td",[s._v("title")]),s._v(" "),t("td",[s._v("标题")]),s._v(" "),t("td",[t("code",[s._v("string")])]),s._v(" "),t("td"),s._v(" "),t("td")]),s._v(" "),t("tr",[t("td",[s._v("message")]),s._v(" "),t("td",[s._v("内容")]),s._v(" "),t("td",[t("code",[s._v("string")])]),s._v(" "),t("td"),s._v(" "),t("td")])])])}]}},function(s,a){s.exports={render:function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("section",[s._m(0),s._v(" "),s._m(1),s._v(" "),t("demo-block",{staticClass:"demo-box",attrs:{description:"基础用法"}},[t("div",{staticClass:"examples",slot:"examples"},[t("div",{staticClass:"zan-row"},[t("zan-button",{on:{click:function(a){s.show1=!0}}},[s._v("弹出actionsheet")])],1),s._v(" "),t("zan-actionsheet",{directives:[{name:"model",rawName:"v-model",value:s.show1,expression:"show1"}],attrs:{actions:s.actions1},domProps:{value:s.show1},on:{input:function(a){s.show1=a}}})],1),s._v(" "),t("div",{staticClass:"highlight",slot:"highlight"},[t("pre",[t("code",{staticClass:"hljs language-html"},[t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("div")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("class")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"zan-row"')]),s._v(">")]),s._v("\n "),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("zan-button")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("@click")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"show1 = true"')]),s._v(">")]),s._v("弹出actionsheet"),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n"),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n"),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("zan-actionsheet")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("v-model")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"show1"')]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v(":actions")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"actions1"')]),s._v(">")]),s._v("\n"),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n")])])])]),s._v(" "),s._m(2),s._v(" "),t("demo-block",{staticClass:"demo-box",attrs:{description:"带取消按钮的ActionSheet"}},[t("div",{staticClass:"examples",slot:"examples"},[t("div",{staticClass:"zan-row"},[t("zan-button",{on:{click:function(a){s.show2=!0}}},[s._v("弹出带取消按钮的actionsheet")])],1),s._v(" "),t("zan-actionsheet",{directives:[{name:"model",rawName:"v-model",value:s.show2,expression:"show2"}],attrs:{actions:s.actions1,"cancel-text":"取消"},domProps:{value:s.show2},on:{input:function(a){s.show2=a}}})],1),s._v(" "),t("div",{staticClass:"highlight",slot:"highlight"},[t("pre",[t("code",{staticClass:"hljs language-html"},[t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("div")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("class")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"zan-row"')]),s._v(">")]),s._v("\n "),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("zan-button")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("@click")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"show2 = true"')]),s._v(">")]),s._v("弹出带取消按钮的actionsheet"),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n"),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n"),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("zan-actionsheet")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("v-model")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"show2"')]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v(":actions")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"actions1"')]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("cancel-text")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"取消"')]),s._v(">")]),s._v("\n"),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n")])])])]),s._v(" "),s._m(3),s._v(" "),t("demo-block",{staticClass:"demo-box",attrs:{description:"带标题的ActionSheet"}},[t("div",{staticClass:"examples",slot:"examples"},[t("div",{staticClass:"zan-row"},[t("zan-button",{on:{click:function(a){s.show3=!0}}},[s._v("弹出带标题的actionsheet")])],1),s._v(" "),t("zan-actionsheet",{directives:[{name:"model",rawName:"v-model",value:s.show3,expression:"show3"}],staticClass:"title-actionsheet",attrs:{title:"支持以下配送方式"},domProps:{value:s.show3},on:{input:function(a){s.show3=a}}},[t("p",[s._v("一些内容")])])],1),s._v(" "),t("div",{staticClass:"highlight",slot:"highlight"},[t("pre",[t("code",{staticClass:"hljs language-html"},[t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("div")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("class")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"zan-row"')]),s._v(">")]),s._v("\n "),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("zan-button")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("@click")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"show3 = true"')]),s._v(">")]),s._v("弹出带标题的actionsheet"),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n"),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n"),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("zan-actionsheet")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("v-model")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"show3"')]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("title")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"支持以下配送方式"')]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("class")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"title-actionsheet"')]),s._v(">")]),s._v("\n "),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("p")]),s._v(">")]),s._v("一些内容"),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n"),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n")])])])]),s._v(" "),t("p",[s._v("点击以下按钮查看手机端效果:")]),s._v(" "),t("p",[t("zan-button",{on:{click:function(a){s.mobileShow=!0}}},[s._v("点击查看手机端效果")]),s._v(" "),t("mobile-popup",{directives:[{name:"model",rawName:"v-model",value:s.mobileShow,expression:"mobileShow"}],attrs:{url:s.mobileUrl},domProps:{value:s.mobileShow},on:{input:function(a){s.mobileShow=a}}})],1),s._v(" "),s._m(4),s._v(" "),s._m(5),s._v(" "),s._m(6),s._v(" "),s._m(7),s._v(" "),s._m(8)],1)},staticRenderFns:[function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("h2",{attrs:{id:"actionsheet"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#actionsheet","aria-hidden":"true"}},[s._v("¶")]),s._v(" ActionSheet")])},function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("h3",{attrs:{id:"ji-chu-yong-fa"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#ji-chu-yong-fa","aria-hidden":"true"}},[s._v("¶")]),s._v(" 基础用法")])},function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("h3",{attrs:{id:"dai-qu-xiao-an-niu-de-actionsheet"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#dai-qu-xiao-an-niu-de-actionsheet","aria-hidden":"true"}},[s._v("¶")]),s._v(" 带取消按钮的ActionSheet")])},function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("h3",{attrs:{id:"dai-biao-ti-de-actionsheet"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#dai-biao-ti-de-actionsheet","aria-hidden":"true"}},[s._v("¶")]),s._v(" 带标题的ActionSheet")])},function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("h3",{attrs:{id:"api"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#api","aria-hidden":"true"}},[s._v("¶")]),s._v(" API")])},function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("table",{staticClass:"table"},[t("thead",[t("tr",[t("th",[s._v("参数")]),s._v(" "),t("th",[s._v("说明")]),s._v(" "),t("th",[s._v("类型")]),s._v(" "),t("th",[s._v("默认值")]),s._v(" "),t("th",[s._v("可选值")])])]),s._v(" "),t("tbody",[t("tr",[t("td",[s._v("actions")]),s._v(" "),t("td",[s._v("行动按钮数组")]),s._v(" "),t("td",[t("code",[s._v("Array")])]),s._v(" "),t("td",[t("code",[s._v("[]")])]),s._v(" "),t("td")]),s._v(" "),t("tr",[t("td",[s._v("title")]),s._v(" "),t("td",[s._v("标题")]),s._v(" "),t("td",[t("code",[s._v("String")])]),s._v(" "),t("td"),s._v(" "),t("td")]),s._v(" "),t("tr",[t("td",[s._v("cancelText")]),s._v(" "),t("td",[s._v("取消按钮文案")]),s._v(" "),t("td",[t("code",[s._v("String")])]),s._v(" "),t("td"),s._v(" "),t("td")]),s._v(" "),t("tr",[t("td",[s._v("overlay")]),s._v(" "),t("td",[s._v("是否显示遮罩")]),s._v(" "),t("td",[t("code",[s._v("Boolean")])]),s._v(" "),t("td"),s._v(" "),t("td")]),s._v(" "),t("tr",[t("td",[s._v("closeOnClickOverlay")]),s._v(" "),t("td",[s._v("点击遮罩是否关闭"),t("code",[s._v("ActionSheet")])]),s._v(" "),t("td",[t("code",[s._v("Boolean")])]),s._v(" "),t("td"),s._v(" "),t("td")])])])},function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("h3",{attrs:{id:"actions"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#actions","aria-hidden":"true"}},[s._v("¶")]),s._v(" actions")])},function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("p",[t("code",[s._v("API")]),s._v("中的"),t("code",[s._v("actions")]),s._v("为一个对象数组,数组中的每一个对象配置每一列,每一列有以下"),t("code",[s._v("key")]),s._v(":")])},function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("table",{staticClass:"table"},[t("thead",[t("tr",[t("th",[s._v("key")]),s._v(" "),t("th",[s._v("说明")])])]),s._v(" "),t("tbody",[t("tr",[t("td",[s._v("name")]),s._v(" "),t("td",[s._v("标题")])]),s._v(" "),t("tr",[t("td",[s._v("subname")]),s._v(" "),t("td",[s._v("二级标题")])]),s._v(" "),t("tr",[t("td",[s._v("className")]),s._v(" "),t("td",[s._v("为对应列添加特殊的"),t("code",[s._v("class")])])]),s._v(" "),t("tr",[t("td",[s._v("loading")]),s._v(" "),t("td",[s._v("是否是"),t("code",[s._v("loading")]),s._v("状态")])])])])}]}},function(s,a){s.exports={render:function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("section",[s._m(0),s._v(" "),s._m(1),s._v(" "),t("demo-block",{staticClass:"demo-box",attrs:{description:"基础用法"}},[t("div",{staticClass:"examples",slot:"examples"},[t("div",{staticClass:"uploader-container"},[t("zan-uploader",{attrs:{"before-read":s.logContent},on:{"file-readed":s.logContent}})],1)]),s._v(" "),t("div",{staticClass:"highlight",slot:"highlight"},[t("pre",[t("code",{staticClass:"hljs language-html"},[t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("div")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("class")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"uploader-container"')]),s._v(">")]),s._v("\n "),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("zan-uploader")]),s._v(" \n "),t("span",{staticClass:"hljs-attr"},[s._v(":before-read")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"logContent"')]),s._v("\n "),t("span",{staticClass:"hljs-attr"},[s._v("@file-readed")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"logContent"')]),s._v(">")]),s._v("\n "),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n"),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n")])])])]),s._v(" "),s._m(2),s._v(" "),t("demo-block",{staticClass:"demo-box",attrs:{description:"自定义上传图标"}},[t("div",{staticClass:"examples",slot:"examples"},[t("div",{staticClass:"uploader-container"},[t("zan-uploader",{on:{"file-readed":s.logContent}},[t("zan-icon",{attrs:{name:"photograph"}})],1)],1)]),s._v(" "),t("div",{staticClass:"highlight",slot:"highlight"},[t("pre",[t("code",{staticClass:"hljs language-html"},[t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("div")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("class")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"uploader-container"')]),s._v(">")]),s._v("\n "),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("zan-uploader")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("@file-readed")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"logContent"')]),s._v(">")]),s._v("\n "),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("zan-icon")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("name")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"photograph"')]),s._v(">")]),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n "),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n"),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n")])])])]),s._v(" "),s._m(3),s._v(" "),s._m(4),s._v(" "),s._m(5),s._v(" "),s._m(6)],1)},staticRenderFns:[function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("h2",{attrs:{id:"uploader-zu-jian"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#uploader-zu-jian","aria-hidden":"true"}},[s._v("¶")]),s._v(" Uploader 组件")])},function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("h3",{attrs:{id:"ji-chu-yong-fa"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#ji-chu-yong-fa","aria-hidden":"true"}},[s._v("¶")]),s._v(" 基础用法")])},function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("h3",{attrs:{id:"zi-ding-yi-shang-chuan-tu-biao"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#zi-ding-yi-shang-chuan-tu-biao","aria-hidden":"true"}},[s._v("¶")]),s._v(" 自定义上传图标")])},function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("h3",{attrs:{id:"api"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#api","aria-hidden":"true"}},[s._v("¶")]),s._v(" API")])},function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("table",{staticClass:"table"},[t("thead",[t("tr",[t("th",[s._v("参数")]),s._v(" "),t("th",[s._v("说明")]),s._v(" "),t("th",[s._v("类型")]),s._v(" "),t("th",[s._v("默认值")]),s._v(" "),t("th",[s._v("可选值")])])]),s._v(" "),t("tbody",[t("tr",[t("td",[s._v("result-type")]),s._v(" "),t("td",[s._v("读取文件的方式,以base64的方式读取;以文本的方式读取")]),s._v(" "),t("td",[t("code",[s._v("string")])]),s._v(" "),t("td",[t("code",[s._v("dataUrl")])]),s._v(" "),t("td",[t("code",[s._v("dataUrl")]),s._v(", "),t("code",[s._v("text")])])]),s._v(" "),t("tr",[t("td",[s._v("disable")]),s._v(" "),t("td",[s._v("是否禁用上传,在图片上传期间设置为true,禁止用户点击此组件上传图片")]),s._v(" "),t("td",[t("code",[s._v("boolean")])]),s._v(" "),t("td",[t("code",[s._v("false")])]),s._v(" "),t("td")]),s._v(" "),t("tr",[t("td",[s._v("before-read")]),s._v(" "),t("td",[s._v("读文件之前的钩子,参数为选择的文件,若返回 false 则停止读取文件。")]),s._v(" "),t("td",[t("code",[s._v("Function")])]),s._v(" "),t("td"),s._v(" "),t("td")]),s._v(" "),t("tr",[t("td",[s._v("file-readed")]),s._v(" "),t("td",[s._v("文件读完之后出发此事件,参数为{name:'文件名',type:'文件类型',size:'文件大小',content:'读的内容'}")]),s._v(" "),t("td",[t("code",[s._v("Function")])]),s._v(" "),t("td"),s._v(" "),t("td")])])])},function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("h3",{attrs:{id:"slot"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#slot","aria-hidden":"true"}},[s._v("¶")]),s._v(" Slot")])},function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("table",{staticClass:"table"},[t("thead",[t("tr",[t("th",[s._v("name")]),s._v(" "),t("th",[s._v("描述")])])]),s._v(" "),t("tbody",[t("tr",[t("td",[s._v("-")]),s._v(" "),t("td",[s._v("自定义上传显示图标")])])])])}]}},function(s,a){s.exports={render:function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("section",{staticClass:"demo-tab"},[t("h1",{staticClass:"demo-title"},[s._v("tab")]),t("example-block",{attrs:{title:"基础用法"}},[t("zan-tabs",[t("zan-tab",{attrs:{title:"选项一"}},[s._v("内容一")]),s._v(" "),t("zan-tab",{attrs:{title:"选项二"}},[s._v("内容二")]),s._v(" "),t("zan-tab",{attrs:{title:"选项三"}},[s._v("内容三")]),s._v(" "),t("zan-tab",{attrs:{title:"选项四"}},[s._v("内容四")]),s._v(" "),t("zan-tab",{attrs:{title:"选项五"}},[s._v("内容五")])],1)],1),t("example-block",{attrs:{title:"禁用用法"}},[t("zan-tabs",{attrs:{active:s.active}},[t("zan-tab",{attrs:{title:"选项一"}},[s._v("内容一")]),s._v(" "),t("zan-tab",{attrs:{disable:"",title:"选项二"},on:{disable:s.popalert}},[s._v("内容二")]),s._v(" "),t("zan-tab",{attrs:{title:"选项三"}},[s._v("内容三")]),s._v(" "),t("zan-tab",{attrs:{title:"选项四"}},[s._v("内容四")]),s._v(" "),t("zan-tab",{attrs:{title:"选项五"}},[s._v("内容五")])],1)],1),t("example-block",{attrs:{title:"card样式用法"}},[t("zan-tabs",{attrs:{type:"card"}},[t("zan-tab",{attrs:{title:"选项一"}},[s._v("内容一")]),s._v(" "),t("zan-tab",{attrs:{title:"选项二"}},[s._v("内容二")]),s._v(" "),t("zan-tab",{attrs:{title:"选项三"}},[s._v("内容三")]),s._v(" "),t("zan-tab",{attrs:{title:"选项四"}},[s._v("内容四")]),s._v(" "),t("zan-tab",{attrs:{title:"选项五"}},[s._v("内容五")])],1)],1),t("example-block",{attrs:{title:"自定义样式用法"}},[t("zan-tabs",{attrs:{active:"2",navclass:"custom-tabwrap"}},[t("zan-tab",{staticClass:"custom-pane",attrs:{title:"选项一"}},[s._v("内容一")]),s._v(" "),t("zan-tab",{staticClass:"custom-pane",attrs:{title:"选项二"}},[s._v("内容二")]),s._v(" "),t("zan-tab",{staticClass:"custom-pane",attrs:{title:"选项三"}},[s._v("内容三")]),s._v(" "),t("zan-tab",{staticClass:"custom-pane",attrs:{title:"选项四"}},[s._v("内容四")]),s._v(" "),t("zan-tab",{staticClass:"custom-pane",attrs:{title:"选项五"}},[s._v("内容五")])],1)],1)],1)},staticRenderFns:[]}},function(s,a){s.exports={render:function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("section",{staticClass:"demo-tag"},[t("h1",{staticClass:"demo-title"},[s._v("tag")]),t("example-block",{attrs:{title:"基础用法"}},[t("div",{staticClass:"tags-container"},[t("zan-tag",[s._v("返现")]),s._v(" "),t("zan-tag",{attrs:{plain:!0}},[s._v("返现")])],1),s._v(" "),t("div",{staticClass:"tags-container"},[t("zan-tag",{attrs:{type:"danger"}},[s._v("返现")]),s._v(" "),t("zan-tag",{attrs:{type:"danger"}},[s._v("四字标签")]),s._v(" "),t("zan-tag",{attrs:{type:"danger"}},[s._v("一")])],1)]),t("example-block",{attrs:{title:"高级用法"}},[t("div",{staticClass:"tags-container"},[t("zan-tag",{attrs:{type:"danger"}},[s._v("返现")]),s._v(" "),t("zan-tag",{attrs:{plain:!0,type:"danger"}},[s._v("返现")])],1),s._v(" "),t("div",{staticClass:"tags-container"},[t("zan-tag",{attrs:{type:"primary"}},[s._v("返现")]),s._v(" "),t("zan-tag",{attrs:{plain:!0,type:"primary"}},[s._v("返现")])],1),s._v(" "),t("div",{staticClass:"tags-container"},[t("zan-tag",{attrs:{type:"success"}},[s._v("返现")]),s._v(" "),t("zan-tag",{attrs:{plain:!0,type:"success"}},[s._v("返现")])],1),s._v(" "),t("div",{staticClass:"tags-container"},[t("zan-tag",{attrs:{type:"danger",mark:!0}},[s._v("返现")])],1)])],1)},staticRenderFns:[]}},function(s,a){s.exports={render:function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("section",[s._m(0),s._v(" "),s._m(1),s._v(" "),t("demo-block",{staticClass:"demo-box",attrs:{description:"基础用法"}},[t("div",{staticClass:"examples",slot:"examples"},[t("div",{staticClass:"zan-checkbox-wrapper"},[t("zan-checkbox",{directives:[{name:"model",rawName:"v-model",value:s.checkbox1,expression:"checkbox1"}],domProps:{value:s.checkbox1},on:{input:function(a){s.checkbox1=a}}},[s._v("复选框1")])],1)]),s._v(" "),t("div",{staticClass:"highlight",slot:"highlight"},[t("pre",[t("code",{staticClass:"hljs language-html"},[t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("div")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("class")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"zan-checkbox-wrapper"')]),s._v(">")]),s._v("\n "),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("zan-checkbox")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("v-model")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"checkbox1"')]),s._v(">")]),s._v("复选框1"),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n"),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n\n"),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("script")]),s._v(">")]),t("span",{staticClass:"javascript"},[s._v("\n"),t("span",{staticClass:"hljs-keyword"},[s._v("export")]),s._v(" "),t("span",{staticClass:"hljs-keyword"},[s._v("default")]),s._v(" {\n data() {\n "),t("span",{staticClass:"hljs-keyword"},[s._v("return")]),s._v(" {\n "),t("span",{staticClass:"hljs-attr"},[s._v("checkbox1")]),s._v(": "),t("span",{staticClass:"hljs-literal"},[s._v("true")]),s._v("\n };\n }\n}; \n")]),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n")])])])]),s._v(" "),s._m(2),s._v(" "),t("demo-block",{staticClass:"demo-box",attrs:{description:"禁用状态"}},[t("div",{staticClass:"examples",slot:"examples"},[t("div",{staticClass:"zan-checkbox-wrapper"},[t("zan-checkbox",{directives:[{name:"model",rawName:"v-model",value:s.checkbox2,expression:"checkbox2"}],domProps:{value:s.checkbox2},on:{input:function(a){s.checkbox2=a}}},[s._v("复选框2")])],1)]),s._v(" "),t("div",{staticClass:"highlight",slot:"highlight"},[t("pre",[t("code",{staticClass:"hljs language-html"},[t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("div")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("class")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"zan-checkbox-wrapper"')]),s._v(">")]),s._v("\n "),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("zan-checkbox")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("v-model")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"checkbox2"')]),s._v(">")]),s._v("复选框2"),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n"),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n\n"),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("script")]),s._v(">")]),t("span",{staticClass:"javascript"},[s._v("\n"),t("span",{staticClass:"hljs-keyword"},[s._v("export")]),s._v(" "),t("span",{staticClass:"hljs-keyword"},[s._v("default")]),s._v(" {\n data() {\n "),t("span",{staticClass:"hljs-keyword"},[s._v("return")]),s._v(" {\n "),t("span",{staticClass:"hljs-attr"},[s._v("checkbox2")]),s._v(": "),t("span",{staticClass:"hljs-literal"},[s._v("true")]),s._v("\n };\n }\n}; \n")]),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n")])])])]),s._v(" "),s._m(3),s._v(" "),t("demo-block",{staticClass:"demo-box",attrs:{description:"Checkbox组"}},[t("div",{staticClass:"examples",slot:"examples"},[t("div",{staticClass:"zan-checkbox-wrapper"},[t("zan-checkbox-group",{directives:[{name:"model",rawName:"v-model",value:s.result,expression:"result"}],domProps:{value:s.result},on:{input:function(a){s.result=a}}},s._l(s.list,function(a){return t("zan-checkbox",{attrs:{name:a}},[s._v("复选框"+s._s(a))])}))],1)]),s._v(" "),t("div",{staticClass:"highlight",slot:"highlight"},[t("pre",[t("code",{staticClass:"hljs language-html"},[t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("div")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("class")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"zan-checkbox-wrapper"')]),s._v(">")]),s._v("\n "),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("zan-checkbox-group")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("v-model")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"result"')]),s._v(">")]),s._v("\n "),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("zan-checkbox")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("v-for")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"item in list"')]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v(":name")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"item"')]),s._v(">")]),s._v("复选框"),t("span",[s._v("{{")]),s._v("item"),t("span",[s._v("}}")]),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n "),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n"),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n\n"),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("script")]),s._v(">")]),t("span",{staticClass:"javascript"},[s._v("\n"),t("span",{staticClass:"hljs-keyword"},[s._v("export")]),s._v(" "),t("span",{staticClass:"hljs-keyword"},[s._v("default")]),s._v(" {\n data() {\n "),t("span",{staticClass:"hljs-keyword"},[s._v("return")]),s._v(" {\n "),t("span",{staticClass:"hljs-attr"},[s._v("list")]),s._v(": [\n "),t("span",{staticClass:"hljs-string"},[s._v("'a'")]),s._v(",\n "),t("span",{staticClass:"hljs-string"},[s._v("'b'")]),s._v(",\n "),t("span",{staticClass:"hljs-string"},[s._v("'c'")]),s._v("\n ],\n "),t("span",{staticClass:"hljs-attr"},[s._v("result")]),s._v(": ["),t("span",{staticClass:"hljs-string"},[s._v("'a'")]),s._v(", "),t("span",{staticClass:"hljs-string"},[s._v("'b'")]),s._v("]\n };\n },\n\n "),t("span",{staticClass:"hljs-attr"},[s._v("watch")]),s._v(": {\n result(val) {\n "),t("span",{staticClass:"hljs-built_in"},[s._v("console")]),s._v(".log(val);\n }\n }\n};\n")]),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n")])])])]),s._v(" "),s._m(4),s._v(" "),t("demo-block",{staticClass:"demo-box",attrs:{description:"禁用Checkbox组"}},[t("div",{staticClass:"examples",slot:"examples"},[t("div",{staticClass:"zan-checkbox-wrapper"},[t("zan-checkbox-group",{directives:[{name:"model",rawName:"v-model",value:s.result,expression:"result"}],attrs:{disabled:""},domProps:{value:s.result},on:{input:function(a){s.result=a}}},s._l(s.list,function(a){return t("zan-checkbox",{attrs:{name:a}},[s._v("复选框"+s._s(a))])}))],1)]),s._v(" "),t("div",{staticClass:"highlight",slot:"highlight"},[t("pre",[t("code",{staticClass:"hljs language-html"},[t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("div")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("class")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"zan-checkbox-wrapper"')]),s._v(">")]),s._v("\n "),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("zan-checkbox-group")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("v-model")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"result"')]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("disabled")]),s._v(">")]),s._v("\n "),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("zan-checkbox")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("v-for")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"item in list"')]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v(":name")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"item"')]),s._v(">")]),s._v("复选框"),t("span",[s._v("{{")]),s._v("item"),t("span",[s._v("}}")]),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n "),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n"),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n\n"),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("script")]),s._v(">")]),t("span",{staticClass:"javascript"},[s._v("\n"),t("span",{staticClass:"hljs-keyword"},[s._v("export")]),s._v(" "),t("span",{staticClass:"hljs-keyword"},[s._v("default")]),s._v(" {\n data() {\n "),t("span",{staticClass:"hljs-keyword"},[s._v("return")]),s._v(" {\n "),t("span",{staticClass:"hljs-attr"},[s._v("list")]),s._v(": [\n "),t("span",{staticClass:"hljs-string"},[s._v("'a'")]),s._v(",\n "),t("span",{staticClass:"hljs-string"},[s._v("'b'")]),s._v(",\n "),t("span",{staticClass:"hljs-string"},[s._v("'c'")]),s._v("\n ],\n "),t("span",{staticClass:"hljs-attr"},[s._v("result")]),s._v(": ["),t("span",{staticClass:"hljs-string"},[s._v("'a'")]),s._v(", "),t("span",{staticClass:"hljs-string"},[s._v("'b'")]),s._v("]\n };\n }\n};\n")]),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n")])])])]),s._v(" "),s._m(5),s._v(" "),t("demo-block",{staticClass:"demo-box",attrs:{description:"与Cell组件一起使用"}},[t("div",{staticClass:"examples",slot:"examples"},[t("zan-checkbox-group",{directives:[{name:"model",rawName:"v-model",value:s.result,expression:"result"}],domProps:{value:s.result},on:{input:function(a){s.result=a}}},[t("zan-cell-group",s._l(s.list,function(a){return t("zan-cell",[t("zan-checkbox",{attrs:{name:a}},[s._v("复选框"+s._s(a))])],1)}))],1)],1),s._v(" "),t("div",{staticClass:"highlight",slot:"highlight"},[t("pre",[t("code",{staticClass:"hljs language-html"},[t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("zan-checkbox-group")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("v-model")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"result"')]),s._v(">")]),s._v("\n "),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("zan-cell-group")]),s._v(">")]),s._v("\n "),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("zan-cell")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("v-for")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"item in list"')]),s._v(">")]),s._v("\n "),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("zan-checkbox")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v(":name")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"item"')]),s._v(">")]),s._v("复选框"),t("span",[s._v("{{")]),s._v("item"),t("span",[s._v("}}")]),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n "),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n "),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n"),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n\n"),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("script")]),s._v(">")]),t("span",{staticClass:"javascript"},[s._v("\n"),t("span",{staticClass:"hljs-keyword"},[s._v("export")]),s._v(" "),t("span",{staticClass:"hljs-keyword"},[s._v("default")]),s._v(" {\n data() {\n "),t("span",{staticClass:"hljs-keyword"},[s._v("return")]),s._v(" {\n "),t("span",{staticClass:"hljs-attr"},[s._v("list")]),s._v(": [\n "),t("span",{staticClass:"hljs-string"},[s._v("'a'")]),s._v(",\n "),t("span",{staticClass:"hljs-string"},[s._v("'b'")]),s._v(",\n "),t("span",{staticClass:"hljs-string"},[s._v("'c'")]),s._v("\n ],\n "),t("span",{staticClass:"hljs-attr"},[s._v("result")]),s._v(": ["),t("span",{staticClass:"hljs-string"},[s._v("'a'")]),s._v(", "),t("span",{staticClass:"hljs-string"},[s._v("'b'")]),s._v("]\n };\n }\n};\n")]),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n")])])])]),s._v(" "),s._m(6),s._v(" "),s._m(7),s._v(" "),s._m(8),s._v(" "),s._m(9),s._v(" "),s._m(10),s._v(" "),s._m(11)],1)},staticRenderFns:[function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("h2",{attrs:{id:"checkbox-zu-jian"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#checkbox-zu-jian","aria-hidden":"true"}},[s._v("¶")]),s._v(" Checkbox组件")])},function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("h3",{attrs:{id:"ji-chu-yong-fa"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#ji-chu-yong-fa","aria-hidden":"true"}},[s._v("¶")]),s._v(" 基础用法")])},function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("h3",{attrs:{id:"jin-yong-zhuang-tai"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#jin-yong-zhuang-tai","aria-hidden":"true"}},[s._v("¶")]),s._v(" 禁用状态")])},function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("h3",{attrs:{id:"checkbox-zu"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#checkbox-zu","aria-hidden":"true"}},[s._v("¶")]),s._v(" Checkbox组")])},function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("h3",{attrs:{id:"jin-yong-checkbox-zu"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#jin-yong-checkbox-zu","aria-hidden":"true"}},[s._v("¶")]),s._v(" 禁用Checkbox组")])},function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("h3",{attrs:{id:"yu-cell-zu-jian-yi-qi-shi-yong"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#yu-cell-zu-jian-yi-qi-shi-yong","aria-hidden":"true"}},[s._v("¶")]),s._v(" 与Cell组件一起使用")])},function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("h3",{attrs:{id:"checkbox-api"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#checkbox-api","aria-hidden":"true"}},[s._v("¶")]),s._v(" Checkbox API")])},function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("table",{staticClass:"table"},[t("thead",[t("tr",[t("th",[s._v("参数")]),s._v(" "),t("th",[s._v("说明")]),s._v(" "),t("th",[s._v("类型")]),s._v(" "),t("th",[s._v("默认值")]),s._v(" "),t("th",[s._v("可选值")])])]),s._v(" "),t("tbody",[t("tr",[t("td",[s._v("disabled")]),s._v(" "),t("td",[s._v("是否禁用单选框")]),s._v(" "),t("td",[t("code",[s._v("boolean")])]),s._v(" "),t("td",[t("code",[s._v("false")])]),s._v(" "),t("td")]),s._v(" "),t("tr",[t("td",[s._v("name")]),s._v(" "),t("td",[s._v("根据这个来判断radio是否选中")]),s._v(" "),t("td",[t("code",[s._v("boolean")])]),s._v(" "),t("td",[t("code",[s._v("false")])]),s._v(" "),t("td")])])])},function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("h3",{attrs:{id:"checkboxgroup-api"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#checkboxgroup-api","aria-hidden":"true"}},[s._v("¶")]),s._v(" CheckboxGroup API")])},function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("table",{staticClass:"table"},[t("thead",[t("tr",[t("th",[s._v("参数")]),s._v(" "),t("th",[s._v("说明")]),s._v(" "),t("th",[s._v("类型")]),s._v(" "),t("th",[s._v("默认值")]),s._v(" "),t("th",[s._v("可选值")])])]),s._v(" "),t("tbody",[t("tr",[t("td",[s._v("disabled")]),s._v(" "),t("td",[s._v("是否禁用单选框")]),s._v(" "),t("td",[t("code",[s._v("boolean")])]),s._v(" "),t("td",[t("code",[s._v("false")])]),s._v(" "),t("td")])])])},function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("h3",{attrs:{id:"checkboxgroup-event"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#checkboxgroup-event","aria-hidden":"true"}},[s._v("¶")]),s._v(" CheckboxGroup Event")])},function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("table",{staticClass:"table"},[t("thead",[t("tr",[t("th",[s._v("事件名称")]),s._v(" "),t("th",[s._v("说明")]),s._v(" "),t("th",[s._v("回调参数")])])]),s._v(" "),t("tbody",[t("tr",[t("td",[s._v("change")]),s._v(" "),t("td",[s._v("当绑定值变化时触发的事件")]),s._v(" "),t("td",[s._v("当前组件的值")])])])])}]}},function(s,a){s.exports={render:function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("section",[s._m(0),s._v(" "),s._m(1),s._v(" "),t("demo-block",{staticClass:"demo-box",attrs:{description:"基础用法"}},[t("div",{staticClass:"examples",slot:"examples"},[t("div",{staticClass:"demo-loading"},[t("h2",{staticClass:"demo-sub-title"},[s._v("渐变深色spinner")]),s._v(" "),t("div",{staticClass:"demo-loading__example"},[t("zan-loading",{staticClass:"some-customized-class"})],1),s._v(" "),t("h2",{staticClass:"demo-sub-title"},[s._v("渐变浅色spinner")]),s._v(" "),t("div",{staticClass:"demo-loading__example demo-loading__example--with-bg"},[t("zan-loading",{staticClass:"some-customized-class",attrs:{color:"white"}})],1),s._v(" "),t("h2",{staticClass:"demo-sub-title"},[s._v("单色spinner")]),s._v(" "),t("div",{staticClass:"demo-loading__example"},[t("zan-loading",{staticClass:"some-customized-class",attrs:{type:"circle",color:"white"}})],1),s._v(" "),t("h2",{staticClass:"demo-sub-title"},[s._v("单色spinner")]),s._v(" "),t("div",{staticClass:"demo-loading__example"},[t("zan-loading",{staticClass:"some-customized-class",attrs:{type:"circle",color:"black"}})],1)])]),s._v(" "),t("div",{staticClass:"highlight",slot:"highlight"},[t("pre",[t("code",{staticClass:"hljs language-html"},[t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("div")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("class")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"demo-loading"')]),s._v(">")]),s._v("\n "),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("h2")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("class")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"demo-sub-title"')]),s._v(">")]),s._v("渐变深色spinner"),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n "),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("div")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("class")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"demo-loading__example"')]),s._v(">")]),s._v("\n "),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("zan-loading")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("class")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"some-customized-class"')]),s._v(">")]),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n "),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n "),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("h2")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("class")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"demo-sub-title"')]),s._v(">")]),s._v("渐变浅色spinner"),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n "),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("div")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("class")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"demo-loading__example demo-loading__example--with-bg"')]),s._v(">")]),s._v("\n "),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("zan-loading")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("class")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"some-customized-class"')]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v(":color")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v("\"'white'\"")]),s._v(">")]),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n "),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n "),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("h2")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("class")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"demo-sub-title"')]),s._v(">")]),s._v("单色spinner"),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n "),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("div")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("class")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"demo-loading__example"')]),s._v(">")]),s._v("\n "),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("zan-loading")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("class")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"some-customized-class"')]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v(":type")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v("\"'circle'\"")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v(":color")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v("\"'white'\"")]),s._v(">")]),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n "),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n "),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("h2")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("class")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"demo-sub-title"')]),s._v(">")]),s._v("单色spinner"),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n "),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("div")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("class")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"demo-loading__example"')]),s._v(">")]),s._v("\n "),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("zan-loading")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("class")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"some-customized-class"')]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v(":type")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v("\"'circle'\"")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v(":color")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v("\"'black'\"")]),s._v(">")]),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n "),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n"),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n")])])])]),s._v(" "),s._m(2),s._v(" "),s._m(3)],1)},staticRenderFns:[function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("h2",{attrs:{id:"loading-jia-zai-zhong"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#loading-jia-zai-zhong","aria-hidden":"true"}},[s._v("¶")]),s._v(" Loading 加载中")])},function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("h3",{attrs:{id:"ji-chu-yong-fa"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#ji-chu-yong-fa","aria-hidden":"true"}},[s._v("¶")]),s._v(" 基础用法")])},function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("h3",{attrs:{id:"api"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#api","aria-hidden":"true"}},[s._v("¶")]),s._v(" API")])},function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("table",{staticClass:"table"},[t("thead",[t("tr",[t("th",[s._v("参数")]),s._v(" "),t("th",[s._v("说明")]),s._v(" "),t("th",[s._v("类型")]),s._v(" "),t("th",[s._v("默认值")]),s._v(" "),t("th",[s._v("可选值")])])]),s._v(" "),t("tbody",[t("tr",[t("td",[s._v("color")]),s._v(" "),t("td",[t("code",[s._v("loading")]),s._v("颜色")]),s._v(" "),t("td",[t("code",[s._v("string")])]),s._v(" "),t("td",[t("code",[s._v("black")])]),s._v(" "),t("td",[t("code",[s._v("black")]),s._v(", "),t("code",[s._v("white")])])]),s._v(" "),t("tr",[t("td",[s._v("type")]),s._v(" "),t("td",[t("code",[s._v("loading")]),s._v("类型")]),s._v(" "),t("td",[t("code",[s._v("string")])]),s._v(" "),t("td",[t("code",[s._v("gradient-circle")])]),s._v(" "),t("td",[t("code",[s._v("gradient-circle")]),s._v(", "),t("code",[s._v("circle")])])])])])}]}},function(s,a){s.exports={render:function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("section",[s._m(0),s._v(" "),s._m(1),s._v(" "),t("demo-block",{staticClass:"demo-box",attrs:{description:"基础用法"}},[t("div",{staticClass:"examples",slot:"examples"},[t("div",{staticClass:"tags-container"},[t("zan-tag",[s._v("返现")]),s._v(" "),t("zan-tag",{attrs:{plain:!0}},[s._v("返现")])],1),s._v(" "),t("div",{staticClass:"tags-container"},[t("zan-tag",{attrs:{type:"danger"}},[s._v("返现")]),s._v(" "),t("zan-tag",{attrs:{type:"danger"}},[s._v("四字标签")]),s._v(" "),t("zan-tag",{attrs:{type:"danger"}},[s._v("一")])],1)]),s._v(" "),t("div",{staticClass:"highlight",slot:"highlight"},[t("pre",[t("code",{staticClass:"hljs language-html"},[t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("div")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("class")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"tags-container"')]),s._v(">")]),s._v("\n "),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("zan-tag")]),s._v(">")]),s._v("返现"),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n "),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("zan-tag")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v(":plain")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"true"')]),s._v(">")]),s._v("返现"),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n"),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n"),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("div")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("class")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"tags-container"')]),s._v(">")]),s._v("\n "),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("zan-tag")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("type")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"danger"')]),s._v(">")]),s._v("返现"),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n "),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("zan-tag")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("type")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"danger"')]),s._v(">")]),s._v("四字标签"),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n "),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("zan-tag")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("type")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"danger"')]),s._v(">")]),s._v("一"),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n"),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n")])])])]),s._v(" "),s._m(2),s._v(" "),t("demo-block",{staticClass:"demo-box",attrs:{description:"高级用法"}},[t("div",{staticClass:"examples",slot:"examples"},[t("div",{staticClass:"tags-container"},[t("zan-tag",{attrs:{type:"danger"}},[s._v("返现")]),s._v(" "),t("zan-tag",{attrs:{plain:!0,type:"danger"}},[s._v("返现")])],1),s._v(" "),t("div",{staticClass:"tags-container"},[t("zan-tag",{attrs:{type:"primary"}},[s._v("返现")]),s._v(" "),t("zan-tag",{attrs:{plain:!0,type:"primary"}},[s._v("返现")])],1),s._v(" "),t("div",{staticClass:"tags-container"},[t("zan-tag",{attrs:{type:"success"}},[s._v("返现")]),s._v(" "),t("zan-tag",{attrs:{plain:!0,type:"success"}},[s._v("返现")])],1),s._v(" "),t("div",{staticClass:"tags-container"},[t("zan-tag",{attrs:{type:"danger",mark:!0}},[s._v("返现")])],1)]),s._v(" "),t("div",{staticClass:"highlight",slot:"highlight"},[t("pre",[t("code",{staticClass:"hljs language-html"},[t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("div")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("class")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"tags-container"')]),s._v(">")]),s._v("\n "),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("zan-tag")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("type")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"danger"')]),s._v(">")]),s._v("返现"),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n "),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("zan-tag")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v(":plain")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"true"')]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("type")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"danger"')]),s._v(">")]),s._v("返现"),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n"),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n"),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("div")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("class")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"tags-container"')]),s._v(">")]),s._v("\n "),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("zan-tag")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("type")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"primary"')]),s._v(">")]),s._v("返现"),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n "),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("zan-tag")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v(":plain")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"true"')]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("type")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"primary"')]),s._v(">")]),s._v("返现"),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n"),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n"),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("div")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("class")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"tags-container"')]),s._v(">")]),s._v("\n "),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("zan-tag")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("type")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"success"')]),s._v(">")]),s._v("返现"),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n "),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("zan-tag")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v(":plain")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"true"')]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("type")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"success"')]),s._v(">")]),s._v("返现"),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n"),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n"),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("div")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("class")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"tags-container"')]),s._v(">")]),s._v("\n "),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("zan-tag")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("type")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"danger"')]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v(":mark")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"true"')]),s._v(">")]),s._v("返现"),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n"),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n")])])])]),s._v(" "),s._m(3),s._v(" "),s._m(4),s._v(" "),s._m(5),s._v(" "),s._m(6)],1)},staticRenderFns:[function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("h2",{attrs:{id:"tag-zu-jian"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#tag-zu-jian","aria-hidden":"true"}},[s._v("¶")]),s._v(" Tag 组件")])},function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("h3",{attrs:{id:"ji-chu-yong-fa"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#ji-chu-yong-fa","aria-hidden":"true"}},[s._v("¶")]),s._v(" 基础用法")])},function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("h3",{attrs:{id:"gao-ji-yong-fa"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#gao-ji-yong-fa","aria-hidden":"true"}},[s._v("¶")]),s._v(" 高级用法")])},function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("h3",{attrs:{id:"api"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#api","aria-hidden":"true"}},[s._v("¶")]),s._v(" API")])},function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("table",{staticClass:"table"},[t("thead",[t("tr",[t("th",[s._v("参数")]),s._v(" "),t("th",[s._v("说明")]),s._v(" "),t("th",[s._v("类型")]),s._v(" "),t("th",[s._v("默认值")]),s._v(" "),t("th",[s._v("可选值")])])]),s._v(" "),t("tbody",[t("tr",[t("td",[s._v("plain")]),s._v(" "),t("td",[s._v("是否是空心tag")]),s._v(" "),t("td",[t("code",[s._v("boolean")])]),s._v(" "),t("td",[t("code",[s._v("false")])]),s._v(" "),t("td")]),s._v(" "),t("tr",[t("td",[s._v("mark")]),s._v(" "),t("td",[s._v("是否是标记")]),s._v(" "),t("td",[t("code",[s._v("boolean")])]),s._v(" "),t("td",[t("code",[s._v("false")])]),s._v(" "),t("td")]),s._v(" "),t("tr",[t("td",[s._v("type")]),s._v(" "),t("td",[s._v("tag类型")]),s._v(" "),t("td",[t("code",[s._v("string")])]),s._v(" "),t("td",[t("code",[s._v("''")])]),s._v(" "),t("td",[t("code",[s._v("primary")]),s._v(", "),t("code",[s._v("success")]),s._v(", "),t("code",[s._v("danger")])])])])])},function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("h3",{attrs:{id:"slot"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#slot","aria-hidden":"true"}},[s._v("¶")]),s._v(" Slot")])},function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("table",{staticClass:"table"},[t("thead",[t("tr",[t("th",[s._v("name")]),s._v(" "),t("th",[s._v("描述")])])]),s._v(" "),t("tbody",[t("tr",[t("td",[s._v("-")]),s._v(" "),t("td",[s._v("自定义tag显示内容")])])])])}]}},function(s,a){s.exports={render:function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("section",{staticClass:"demo-quantity"},[t("h1",{staticClass:"demo-title"},[s._v("quantity")]),t("example-block",{attrs:{title:"基础用法"}},[t("zan-quantity",{directives:[{name:"model",rawName:"v-model",value:s.quantity1,expression:"quantity1"}],domProps:{value:s.quantity1},on:{input:function(a){s.quantity1=a}}}),s._v(" "),t("p",{staticClass:"curr-quantity"},[s._v("当前值:"+s._s(s.quantity1))])],1),t("example-block",{attrs:{title:"禁用Quantity"}},[t("zan-quantity",{directives:[{name:"model",rawName:"v-model",value:s.quantity1,expression:"quantity1"}],attrs:{disabled:""},domProps:{value:s.quantity1},on:{input:function(a){s.quantity1=a}}})],1),t("example-block",{attrs:{title:"高级用法"}},[t("zan-quantity",{directives:[{name:"model",rawName:"v-model",value:s.quantity2,expression:"quantity2"}],attrs:{min:"5",max:"40",step:"2","default-value":"9"},domProps:{value:s.quantity2},on:{input:function(a){s.quantity2=a}}}),s._v(" "),t("p",{staticClass:"curr-quantity"},[s._v("当前值:"+s._s(s.quantity2))])],1)],1)},staticRenderFns:[]}},function(s,a){s.exports={render:function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("section",[s._m(0),s._v(" "),s._m(1),s._v(" "),t("demo-block",{staticClass:"demo-box",attrs:{description:"基础用法"}},[t("div",{staticClass:"examples",slot:"examples"},[t("div",{staticClass:"zan-radios"},[t("zan-radio",{directives:[{name:"model",rawName:"v-model",value:s.radio1,expression:"radio1"}],attrs:{name:"1"},domProps:{value:s.radio1},on:{input:function(a){s.radio1=a}}},[s._v("单选框1")]),s._v(" "),t("zan-radio",{directives:[{name:"model",rawName:"v-model",value:s.radio1,expression:"radio1"}],attrs:{name:"2"},domProps:{value:s.radio1},on:{input:function(a){s.radio1=a}}},[s._v("单选框2")])],1)]),s._v(" "),t("div",{staticClass:"highlight",slot:"highlight"},[t("pre",[t("code",{staticClass:"hljs language-html"},[t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("div")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("class")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"zan-radios"')]),s._v(">")]),s._v("\n "),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("zan-radio")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("name")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"1"')]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("v-model")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"radio1"')]),s._v(">")]),s._v("单选框1"),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n "),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("zan-radio")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("name")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"2"')]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("v-model")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"radio1"')]),s._v(">")]),s._v("单选框2"),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n"),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n\n"),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("script")]),s._v(">")]),t("span",{staticClass:"javascript"},[s._v("\n"),t("span",{staticClass:"hljs-keyword"},[s._v("export")]),s._v(" "),t("span",{staticClass:"hljs-keyword"},[s._v("default")]),s._v(" {\n data() {\n "),t("span",{staticClass:"hljs-keyword"},[s._v("return")]),s._v(" {\n "),t("span",{staticClass:"hljs-attr"},[s._v("radio1")]),s._v(": "),t("span",{staticClass:"hljs-string"},[s._v("'1'")]),s._v("\n }\n }\n};\n")]),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n")])])])]),s._v(" "),s._m(2),s._v(" "),t("demo-block",{staticClass:"demo-box",attrs:{description:"禁用状态"}},[t("div",{staticClass:"examples",slot:"examples"},[t("div",{staticClass:"zan-radios"},[t("zan-radio",{directives:[{name:"model",rawName:"v-model",value:s.radio2,expression:"radio2"}],attrs:{name:"1",disabled:""},domProps:{value:s.radio2},on:{input:function(a){s.radio2=a}}},[s._v("未选中禁用")]),s._v(" "),t("zan-radio",{directives:[{name:"model",rawName:"v-model",value:s.radio2,expression:"radio2"}],attrs:{name:"2",disabled:""},domProps:{value:s.radio2},on:{input:function(a){s.radio2=a}}},[s._v("选中且禁用")])],1)]),s._v(" "),t("div",{staticClass:"highlight",slot:"highlight"},[t("pre",[t("code",{staticClass:"hljs language-html"},[t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("div")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("class")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"zan-radios"')]),s._v(">")]),s._v("\n "),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("zan-radio")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("name")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"1"')]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("v-model")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"radio2"')]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("disabled")]),s._v(">")]),s._v("未选中禁用"),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n "),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("zan-radio")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("name")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"2"')]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("v-model")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"radio2"')]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("disabled")]),s._v(">")]),s._v("选中且禁用"),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n"),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n\n"),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("script")]),s._v(">")]),t("span",{staticClass:"javascript"},[s._v("\n"),t("span",{staticClass:"hljs-keyword"},[s._v("export")]),s._v(" "),t("span",{staticClass:"hljs-keyword"},[s._v("default")]),s._v(" {\n data() {\n "),t("span",{staticClass:"hljs-keyword"},[s._v("return")]),s._v(" {\n "),t("span",{staticClass:"hljs-attr"},[s._v("radio2")]),s._v(": "),t("span",{staticClass:"hljs-string"},[s._v("'2'")]),s._v("\n }\n }\n};\n")]),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n")])])])]),s._v(" "),s._m(3),s._v(" "),t("demo-block",{staticClass:"demo-box",attrs:{description:"radio组"}},[t("div",{staticClass:"examples",slot:"examples"},[t("div",{staticClass:"zan-radios"},[t("zan-radio-group",{directives:[{name:"model",rawName:"v-model",value:s.radio3,expression:"radio3"}],domProps:{value:s.radio3},on:{input:function(a){s.radio3=a}}},[t("zan-radio",{attrs:{name:"1"}},[s._v("单选框1")]),s._v(" "),t("zan-radio",{attrs:{name:"2"}},[s._v("单选框2")])],1)],1)]),s._v(" "),t("div",{staticClass:"highlight",slot:"highlight"},[t("pre",[t("code",{staticClass:"hljs language-html"},[t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("div")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("class")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"zan-radios"')]),s._v(">")]),s._v("\n "),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("zan-radio-group")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("v-model")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"radio3"')]),s._v(">")]),s._v("\n "),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("zan-radio")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("name")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"1"')]),s._v(">")]),s._v("单选框1"),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n "),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("zan-radio")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("name")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"2"')]),s._v(">")]),s._v("单选框2"),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n "),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n"),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n \n"),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("script")]),s._v(">")]),t("span",{staticClass:"javascript"},[s._v("\n"),t("span",{staticClass:"hljs-keyword"},[s._v("export")]),s._v(" "),t("span",{staticClass:"hljs-keyword"},[s._v("default")]),s._v(" {\n data() {\n "),t("span",{staticClass:"hljs-keyword"},[s._v("return")]),s._v(" {\n "),t("span",{staticClass:"hljs-attr"},[s._v("radio3")]),s._v(": "),t("span",{staticClass:"hljs-string"},[s._v("'1'")]),s._v("\n }\n }\n};\n")]),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n")])])])]),s._v(" "),s._m(4),s._v(" "),t("demo-block",{staticClass:"demo-box",attrs:{description:"与Cell组件一起使用"}},[t("div",{staticClass:"examples",slot:"examples"},[t("zan-radio-group",{directives:[{name:"model",rawName:"v-model",value:s.radio4,expression:"radio4"}],domProps:{value:s.radio4},on:{input:function(a){s.radio4=a}}},[t("zan-cell-group",[t("zan-cell",[t("zan-radio",{attrs:{name:"1"}},[s._v("单选框1")])],1),s._v(" "),t("zan-cell",[t("zan-radio",{attrs:{name:"2"}},[s._v("单选框2")])],1)],1)],1)],1),s._v(" "),t("div",{staticClass:"highlight",slot:"highlight"},[t("pre",[t("code",{staticClass:"hljs language-html"},[t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("zan-radio-group")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("v-model")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"radio4"')]),s._v(">")]),s._v("\n "),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("zan-cell-group")]),s._v(">")]),s._v("\n "),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("zan-cell")]),s._v(">")]),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("zan-radio")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("name")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"1"')]),s._v(">")]),s._v("单选框1"),t("span",{staticClass:"hljs-tag"},[s._v("")]),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n "),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("zan-cell")]),s._v(">")]),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("zan-radio")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("name")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"2"')]),s._v(">")]),s._v("单选框2"),t("span",{staticClass:"hljs-tag"},[s._v("")]),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n "),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n"),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n\n"),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("script")]),s._v(">")]),t("span",{staticClass:"javascript"},[s._v("\n"),t("span",{staticClass:"hljs-keyword"},[s._v("export")]),s._v(" "),t("span",{staticClass:"hljs-keyword"},[s._v("default")]),s._v(" {\n data() {\n "),t("span",{staticClass:"hljs-keyword"},[s._v("return")]),s._v(" {\n "),t("span",{staticClass:"hljs-attr"},[s._v("radio4")]),s._v(": "),t("span",{staticClass:"hljs-string"},[s._v("'1'")]),s._v("\n }\n }\n};\n")]),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n")])])])]),s._v(" "),s._m(5),s._v(" "),s._m(6),s._v(" "),s._m(7),s._v(" "),s._m(8),s._v(" "),s._m(9),s._v(" "),s._m(10)],1)},staticRenderFns:[function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("h2",{attrs:{id:"radio-zu-jian"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#radio-zu-jian","aria-hidden":"true"}},[s._v("¶")]),s._v(" Radio组件")])},function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("h3",{attrs:{id:"ji-chu-yong-fa"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#ji-chu-yong-fa","aria-hidden":"true"}},[s._v("¶")]),s._v(" 基础用法")])},function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("h3",{attrs:{id:"jin-yong-zhuang-tai"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#jin-yong-zhuang-tai","aria-hidden":"true"}},[s._v("¶")]),s._v(" 禁用状态")])},function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("h3",{attrs:{id:"radio-zu"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#radio-zu","aria-hidden":"true"}},[s._v("¶")]),s._v(" radio组")])},function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("h3",{attrs:{id:"yu-cell-zu-jian-yi-qi-shi-yong"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#yu-cell-zu-jian-yi-qi-shi-yong","aria-hidden":"true"}},[s._v("¶")]),s._v(" 与Cell组件一起使用")])},function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("h3",{attrs:{id:"radio-api"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#radio-api","aria-hidden":"true"}},[s._v("¶")]),s._v(" Radio API")])},function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("table",{staticClass:"table"},[t("thead",[t("tr",[t("th",[s._v("参数")]),s._v(" "),t("th",[s._v("说明")]),s._v(" "),t("th",[s._v("类型")]),s._v(" "),t("th",[s._v("默认值")]),s._v(" "),t("th",[s._v("可选值")])])]),s._v(" "),t("tbody",[t("tr",[t("td",[s._v("disabled")]),s._v(" "),t("td",[s._v("是否禁用单选框")]),s._v(" "),t("td",[t("code",[s._v("boolean")])]),s._v(" "),t("td",[t("code",[s._v("false")])]),s._v(" "),t("td")]),s._v(" "),t("tr",[t("td",[s._v("name")]),s._v(" "),t("td",[s._v("根据这个来判断radio是否选中")]),s._v(" "),t("td",[t("code",[s._v("boolean")])]),s._v(" "),t("td",[t("code",[s._v("false")])]),s._v(" "),t("td")])])])},function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("h3",{attrs:{id:"radiogroup-api"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#radiogroup-api","aria-hidden":"true"}},[s._v("¶")]),s._v(" RadioGroup API")])},function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("table",{staticClass:"table"},[t("thead",[t("tr",[t("th",[s._v("参数")]),s._v(" "),t("th",[s._v("说明")]),s._v(" "),t("th",[s._v("类型")]),s._v(" "),t("th",[s._v("默认值")]),s._v(" "),t("th",[s._v("可选值")])])]),s._v(" "),t("tbody",[t("tr",[t("td",[s._v("disabled")]),s._v(" "),t("td",[s._v("是否禁用单选框")]),s._v(" "),t("td",[t("code",[s._v("boolean")])]),s._v(" "),t("td",[t("code",[s._v("false")])]),s._v(" "),t("td")])])])},function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("h3",{attrs:{id:"radiogroup-event"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#radiogroup-event","aria-hidden":"true"}},[s._v("¶")]),s._v(" RadioGroup Event")])},function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("table",{staticClass:"table"},[t("thead",[t("tr",[t("th",[s._v("事件名称")]),s._v(" "),t("th",[s._v("说明")]),s._v(" "),t("th",[s._v("回调参数")])])]),s._v(" "),t("tbody",[t("tr",[t("td",[s._v("change")]),s._v(" "),t("td",[s._v("当绑定值变化时触发的事件")]),s._v(" "),t("td",[s._v("当前组件的值")])])])])}]}},function(s,a){s.exports={render:function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("section",[s._m(0),s._v(" "),s._m(1),s._v(" "),t("demo-block",{staticClass:"demo-box",attrs:{description:"基础用法"}},[t("div",{staticClass:"examples",slot:"examples"},[t("zan-tabs",[t("zan-tab",{attrs:{title:"选项一"}},[s._v("内容一")]),s._v(" "),t("zan-tab",{attrs:{title:"选项二"}},[s._v("内容二")]),s._v(" "),t("zan-tab",{attrs:{title:"选项三"}},[s._v("内容三")]),s._v(" "),t("zan-tab",{attrs:{title:"选项四"}},[s._v("内容四")]),s._v(" "),t("zan-tab",{attrs:{title:"选项五"}},[s._v("内容五")])],1)],1),s._v(" "),t("div",{staticClass:"highlight",slot:"highlight"},[t("pre",[t("code",{staticClass:"hljs language-html"},[t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("zan-tabs")]),s._v(">")]),s._v("\n "),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("zan-tab")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("title")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"选项一"')]),s._v(">")]),s._v("内容一"),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n "),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("zan-tab")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("title")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"选项二"')]),s._v(">")]),s._v("内容二"),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n "),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("zan-tab")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("title")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"选项三"')]),s._v(">")]),s._v("内容三"),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n "),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("zan-tab")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("title")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"选项四"')]),s._v(">")]),s._v("内容四"),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n "),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("zan-tab")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("title")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"选项五"')]),s._v(">")]),s._v("内容五"),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n"),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n")])])])]),s._v(" "),s._m(2),s._v(" "),t("demo-block",{staticClass:"demo-box",attrs:{description:"禁用用法"}},[t("div",{staticClass:"examples",slot:"examples"},[t("zan-tabs",{attrs:{active:s.active}},[t("zan-tab",{attrs:{title:"选项一"}},[s._v("内容一")]),s._v(" "),t("zan-tab",{attrs:{disable:"",title:"选项二"},on:{disable:s.popalert}},[s._v("内容二")]),s._v(" "),t("zan-tab",{attrs:{title:"选项三"}},[s._v("内容三")]),s._v(" "),t("zan-tab",{attrs:{title:"选项四"}},[s._v("内容四")]),s._v(" "),t("zan-tab",{attrs:{title:"选项五"}},[s._v("内容五")])],1)],1),s._v(" "),t("div",{staticClass:"highlight",slot:"highlight"},[t("pre",[t("code",{staticClass:"hljs language-html"},[t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("zan-tabs")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v(":active")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"active"')]),s._v(">")]),s._v("\n "),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("zan-tab")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("title")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"选项一"')]),s._v(">")]),s._v("内容一"),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n "),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("zan-tab")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("disable")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("title")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"选项二"')]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("@disable")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"popalert"')]),s._v(">")]),s._v("内容二"),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n "),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("zan-tab")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("title")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"选项三"')]),s._v(">")]),s._v("内容三"),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n "),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("zan-tab")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("title")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"选项四"')]),s._v(">")]),s._v("内容四"),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n "),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("zan-tab")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("title")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"选项五"')]),s._v(">")]),s._v("内容五"),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n"),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n"),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("script")]),s._v(">")]),t("span",{staticClass:"javascript"},[s._v("\n"),t("span",{staticClass:"hljs-keyword"},[s._v("export")]),s._v(" "),t("span",{staticClass:"hljs-keyword"},[s._v("default")]),s._v(" {\n "),t("span",{staticClass:"hljs-attr"},[s._v("methods")]),s._v(": {\n popalert() {\n alert("),t("span",{staticClass:"hljs-string"},[s._v("'haha'")]),s._v(")\n }\n }\n};\n")]),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n")])])])]),s._v(" "),s._m(3),s._v(" "),t("demo-block",{staticClass:"demo-box",attrs:{description:"card样式用法"}},[t("div",{staticClass:"examples",slot:"examples"},[t("zan-tabs",{attrs:{type:"card"}},[t("zan-tab",{attrs:{title:"选项一"}},[s._v("内容一")]),s._v(" "),t("zan-tab",{attrs:{title:"选项二"}},[s._v("内容二")]),s._v(" "),t("zan-tab",{attrs:{title:"选项三"}},[s._v("内容三")]),s._v(" "),t("zan-tab",{attrs:{title:"选项四"}},[s._v("内容四")]),s._v(" "),t("zan-tab",{attrs:{title:"选项五"}},[s._v("内容五")])],1)],1),s._v(" "),t("div",{staticClass:"highlight",slot:"highlight"},[t("pre",[t("code",{staticClass:"hljs language-html"},[t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("zan-tabs")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("type")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"card"')]),s._v(">")]),s._v("\n "),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("zan-tab")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("title")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"选项一"')]),s._v(">")]),s._v("内容一"),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n "),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("zan-tab")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("title")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"选项二"')]),s._v(">")]),s._v("内容二"),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n "),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("zan-tab")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("title")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"选项三"')]),s._v(">")]),s._v("内容三"),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n "),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("zan-tab")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("title")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"选项四"')]),s._v(">")]),s._v("内容四"),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n "),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("zan-tab")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("title")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"选项五"')]),s._v(">")]),s._v("内容五"),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n"),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n")])])])]),s._v(" "),s._m(4),s._v(" "),t("demo-block",{staticClass:"demo-box",attrs:{description:"自定义样式用法"}},[t("div",{staticClass:"examples",slot:"examples"},[t("zan-tabs",{attrs:{active:"2",navclass:"custom-tabwrap"}},[t("zan-tab",{staticClass:"custom-pane",attrs:{title:"选项一"}},[s._v("内容一")]),s._v(" "),t("zan-tab",{staticClass:"custom-pane",attrs:{title:"选项二"}},[s._v("内容二")]),s._v(" "),t("zan-tab",{staticClass:"custom-pane",attrs:{title:"选项三"}},[s._v("内容三")]),s._v(" "),t("zan-tab",{staticClass:"custom-pane",attrs:{title:"选项四"}},[s._v("内容四")]),s._v(" "),t("zan-tab",{staticClass:"custom-pane",attrs:{title:"选项五"}},[s._v("内容五")])],1)],1),s._v(" "),t("div",{staticClass:"highlight",slot:"highlight"},[t("pre",[t("code",{staticClass:"hljs language-html"},[t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("zan-tabs")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("active")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"2"')]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("navclass")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"custom-tabwrap"')]),s._v(">")]),s._v("\n "),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("zan-tab")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("title")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"选项一"')]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("class")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"custom-pane"')]),s._v(">")]),s._v("内容一"),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n "),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("zan-tab")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("title")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"选项二"')]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("class")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"custom-pane"')]),s._v(">")]),s._v("内容二"),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n "),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("zan-tab")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("title")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"选项三"')]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("class")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"custom-pane"')]),s._v(">")]),s._v("内容三"),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n "),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("zan-tab")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("title")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"选项四"')]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("class")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"custom-pane"')]),s._v(">")]),s._v("内容四"),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n "),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("zan-tab")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("title")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"选项五"')]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("class")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"custom-pane"')]),s._v(">")]),s._v("内容五"),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n"),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n"),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("style")]),s._v(">")]),t("span",{staticClass:"css"},[s._v("\n "),t("span",{staticClass:"hljs-selector-class"},[s._v(".page-tab")]),s._v(" {\n "),t("span",{staticClass:"hljs-attribute"},[s._v("padding")]),s._v(": "),t("span",{staticClass:"hljs-number"},[s._v("0")]),s._v(" "),t("span",{staticClass:"hljs-number"},[s._v("15px")]),s._v(";\n }\n "),t("span",{staticClass:"hljs-selector-class"},[s._v(".custom-tabwrap")]),s._v(" "),t("span",{staticClass:"hljs-selector-class"},[s._v(".zan-tab-active")]),s._v("{\n "),t("span",{staticClass:"hljs-attribute"},[s._v("color")]),s._v(": "),t("span",{staticClass:"hljs-number"},[s._v("#20a0ff")]),s._v(";\n }\n "),t("span",{staticClass:"hljs-selector-class"},[s._v(".custom-tabwrap")]),s._v(" "),t("span",{staticClass:"hljs-selector-class"},[s._v(".zan-tabs-nav-bar")]),s._v("{\n "),t("span",{staticClass:"hljs-attribute"},[s._v("background")]),s._v(": "),t("span",{staticClass:"hljs-number"},[s._v("#20a0ff")]),s._v(";\n }\n "),t("span",{staticClass:"hljs-selector-class"},[s._v(".custom-tab")]),s._v(" {\n "),t("span",{staticClass:"hljs-attribute"},[s._v("font-weight")]),s._v(": bold;\n }\n "),t("span",{staticClass:"hljs-selector-class"},[s._v(".custom-pane")]),s._v(" {\n "),t("span",{staticClass:"hljs-attribute"},[s._v("text-align")]),s._v(": center;\n "),t("span",{staticClass:"hljs-attribute"},[s._v("height")]),s._v(": "),t("span",{staticClass:"hljs-number"},[s._v("50px")]),s._v(";\n "),t("span",{staticClass:"hljs-attribute"},[s._v("line-height")]),s._v(": "),t("span",{staticClass:"hljs-number"},[s._v("50px")]),s._v(";\n }\n")]),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n")])])])]),s._v(" "),s._m(5),s._v(" "),s._m(6),s._v(" "),s._m(7),s._v(" "),s._m(8)],1)},staticRenderFns:[function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("h2",{attrs:{id:"tab-zu-jian"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#tab-zu-jian","aria-hidden":"true"}},[s._v("¶")]),s._v(" Tab 组件")])},function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("h3",{attrs:{id:"ji-chu-yong-fa"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#ji-chu-yong-fa","aria-hidden":"true"}},[s._v("¶")]),s._v(" 基础用法")])},function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("h3",{attrs:{id:"jin-yong-yong-fa"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#jin-yong-yong-fa","aria-hidden":"true"}},[s._v("¶")]),s._v(" 禁用用法")])},function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("h3",{attrs:{id:"card-yang-shi-yong-fa"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#card-yang-shi-yong-fa","aria-hidden":"true"}},[s._v("¶")]),s._v(" card样式用法")])},function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("h3",{attrs:{id:"zi-ding-yi-yang-shi-yong-fa"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#zi-ding-yi-yang-shi-yong-fa","aria-hidden":"true"}},[s._v("¶")]),s._v(" 自定义样式用法")])},function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("h3",{attrs:{id:"zan-tabs-api"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#zan-tabs-api","aria-hidden":"true"}},[s._v("¶")]),s._v(" zan-tabs API")])},function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("table",{staticClass:"table"},[t("thead",[t("tr",[t("th",[s._v("参数")]),s._v(" "),t("th",[s._v("说明")]),s._v(" "),t("th",[s._v("类型")]),s._v(" "),t("th",[s._v("默认值")]),s._v(" "),t("th",[s._v("可选")])])]),s._v(" "),t("tbody",[t("tr",[t("td",[s._v("classtype")]),s._v(" "),t("td",[s._v("两种UI")]),s._v(" "),t("td",[t("code",[s._v("string")])]),s._v(" "),t("td",[t("code",[s._v("line")])]),s._v(" "),t("td",[t("code",[s._v("line")]),s._v(", "),t("code",[s._v("card")])])]),s._v(" "),t("tr",[t("td",[s._v("active")]),s._v(" "),t("td",[s._v("默认激活的tab")]),s._v(" "),t("td",[t("code",[s._v("string")]),s._v(", "),t("code",[s._v("number")])]),s._v(" "),t("td",[t("code",[s._v("0")])]),s._v(" "),t("td")]),s._v(" "),t("tr",[t("td",[s._v("navclass")]),s._v(" "),t("td",[s._v("tabs的内部nav上的自定义classname")]),s._v(" "),t("td",[t("code",[s._v("string")])]),s._v(" "),t("td"),s._v(" "),t("td")])])])},function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("h3",{attrs:{id:"zan-tab-api"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#zan-tab-api","aria-hidden":"true"}},[s._v("¶")]),s._v(" zan-tab API")])},function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("table",{staticClass:"table"},[t("thead",[t("tr",[t("th",[s._v("参数")]),s._v(" "),t("th",[s._v("说明")]),s._v(" "),t("th",[s._v("类型")]),s._v(" "),t("th",[s._v("默认值")]),s._v(" "),t("th",[s._v("可选")])])]),s._v(" "),t("tbody",[t("tr",[t("td",[s._v("title")]),s._v(" "),t("td",[s._v("tab的标题")]),s._v(" "),t("td",[t("code",[s._v("string")])]),s._v(" "),t("td"),s._v(" "),t("td")]),s._v(" "),t("tr",[t("td",[s._v("disable")]),s._v(" "),t("td",[s._v("是否禁用这个tab")]),s._v(" "),t("td",[t("code",[s._v("boolean")])]),s._v(" "),t("td",[t("code",[s._v("false")])]),s._v(" "),t("td")])])])}]}},function(s,a){s.exports={render:function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("section",{staticClass:"demo-swipe"},[t("h1",{staticClass:"demo-title"},[s._v("swipe")]),t("example-block",{attrs:{title:"基础用法"}},[t("zan-swipe",[t("zan-swipe-item",[t("img",{attrs:{src:"https://img.yzcdn.cn/upload_files/2017/03/14/FmTPs0SeyQaAOSK1rRe1sL8RcwSY.jpeg?imageView2/2/w/980/h/980/q/75/format/webp",alt:""}})]),s._v(" "),t("zan-swipe-item",[t("img",{attrs:{src:"https://img.yzcdn.cn/upload_files/2017/03/15/FvexrWlG_WxtCE9Omo5l27n_mAG_.jpeg?imageView2/2/w/980/h/980/q/75/format/webp",alt:""}})])],1)],1),t("example-block",{attrs:{title:"自动轮播"}},[t("zan-swipe",{attrs:{"auto-play":!0}},[t("zan-swipe-item",[t("img",{attrs:{src:"https://img.yzcdn.cn/upload_files/2017/03/14/FmTPs0SeyQaAOSK1rRe1sL8RcwSY.jpeg?imageView2/2/w/980/h/980/q/75/format/webp",alt:""}})]),s._v(" "),t("zan-swipe-item",[t("img",{attrs:{src:"https://img.yzcdn.cn/upload_files/2017/03/15/FvexrWlG_WxtCE9Omo5l27n_mAG_.jpeg?imageView2/2/w/980/h/980/q/75/format/webp",alt:""}})])],1)],1)],1)},staticRenderFns:[]}},function(s,a){s.exports={render:function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("section",{staticClass:"demo-waterfall"},[t("h1",{staticClass:"demo-title"},[s._v("waterfall")]),t("example-block",{attrs:{title:"基础用法"}},[t("div",{staticClass:"waterfall"},[t("div",{directives:[{name:"waterfall-lower",rawName:"v-waterfall-lower",value:s.loadMore,expression:"loadMore"},{name:"waterfall-upper",rawName:"v-waterfall-upper",value:s.loadMoreUpper,expression:"loadMoreUpper"}],attrs:{"waterfall-disabled":"isWaterfallDisabled","waterfall-offset":"400"}},[s._l(s.list,function(a){return t("div",{staticClass:"waterfall-item",staticStyle:{"text-align":"center"}},[s._v("\n "+s._s(a)+"\n ")])}),s._v(" "),s.loading?t("div",{staticStyle:{"text-align":"center"}},[s._v("\n loading\n ")]):s._e()],2)])])],1)},staticRenderFns:[]}},function(s,a){s.exports={render:function(){var s=this,a=s.$createElement;return(s._self._c||a)("section")},staticRenderFns:[]}},function(s,a){s.exports={render:function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("section",[s._m(0),s._v(" "),t("p",[s._v("面板只是一个容器,里面可以放入自定义的内容。")]),s._v(" "),s._m(1),s._v(" "),t("demo-block",{staticClass:"demo-box",attrs:{description:"基础用法"}},[t("div",{staticClass:"examples",slot:"examples"},[t("zan-panel",{attrs:{title:"标题",desc:"标题描述",status:"状态"}},[t("div",{staticClass:"panel-content"},[s._v("\n panel内容\n ")])])],1),s._v(" "),t("div",{staticClass:"highlight",slot:"highlight"},[t("pre",[t("code",{staticClass:"hljs language-html"},[t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("zan-panel")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("title")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"标题"')]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("desc")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"标题描述"')]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("status")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"状态"')]),s._v(">")]),s._v("\n "),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("div")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("class")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"panel-content"')]),s._v(">")]),s._v("\n panel内容\n "),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n"),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n")])])])]),s._v(" "),s._m(2),s._v(" "),s._m(3),s._v(" "),t("demo-block",{staticClass:"demo-box",attrs:{description:"高级用法"}},[t("div",{staticClass:"examples",slot:"examples"},[t("zan-panel",{attrs:{title:"标题",desc:"标题描述",status:"状态"}},[t("zan-card",{attrs:{title:"商品名称是什么,两行显示状态如效果图,多余多余多余两行显示状态如效果图,多余多余多余两行显示状态如效果图,多余多余多余两行显示状态如效果图,多余多余多余两行显示状态如效果图,多余多余多余",desc:"商品SKU1,商品SKU2",thumb:"https://img.yzcdn.cn/upload_files/2017/02/17/FnDwvwHmU-OiqsbjAO5X7wh1KWrR.jpg!100x100.jpg"}},[t("div",{staticClass:"zan-card__row",slot:"title"},[t("h4",{staticClass:"zan-card__title"},[s._v("商品名称是什么,两行显示状态如效果图,多余多余多余两行显示状态如效果图,多余多余多余两行显示状态如效果图,多余多余多余两行显示状态如效果图,多余多余多余两行显示状态如效果图,多余多余多余")]),s._v(" "),t("span",{staticClass:"zan-card__price"},[s._v("¥ 2.00")])]),s._v(" "),t("div",{staticClass:"zan-card__row",slot:"desc"},[t("h4",{staticClass:"zan-card__desc"},[s._v("商品sku")]),s._v(" "),t("span",{staticClass:"zan-card__num"},[s._v("x 2")])]),s._v(" "),t("div",{staticClass:"zan-card__footer",slot:"footer"},[t("zan-button",{attrs:{size:"mini"}},[s._v("按钮一")]),s._v(" "),t("zan-button",{attrs:{size:"mini"}},[s._v("按钮二")])],1)]),s._v(" "),t("div",{staticClass:"zan-panel-sum"},[s._v("\n 合计:"),t("span",[s._v("¥ 1999.90")])]),s._v(" "),t("div",{staticClass:"zan-panel-buttons",slot:"footer"},[t("zan-button",{attrs:{size:"small"}},[s._v("按钮一")]),s._v(" "),t("zan-button",{attrs:{size:"small",type:"danger"}},[s._v("按钮二")])],1)],1)],1),s._v(" "),t("div",{staticClass:"highlight",slot:"highlight"},[t("pre",[t("code",{staticClass:"hljs language-html"},[t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("zan-panel")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("title")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"标题"')]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("desc")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"标题描述"')]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("status")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"状态"')]),s._v(">")]),s._v("\n "),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("zan-card")]),s._v("\n "),t("span",{staticClass:"hljs-attr"},[s._v("title")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"商品名称是什么,两行显示状态如效果图,多余多余多余两行显示状态如效果图,多余多余多余两行显示状态如效果图,多余多余多余两行显示状态如效果图,多余多余多余两行显示状态如效果图,多余多余多余"')]),s._v("\n "),t("span",{staticClass:"hljs-attr"},[s._v("desc")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"商品SKU1,商品SKU2"')]),s._v("\n "),t("span",{staticClass:"hljs-attr"},[s._v("thumb")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"https://img.yzcdn.cn/upload_files/2017/02/17/FnDwvwHmU-OiqsbjAO5X7wh1KWrR.jpg!100x100.jpg"')]),s._v(">")]),s._v("\n "),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("div")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("class")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"zan-card__row"')]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("slot")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"title"')]),s._v(">")]),s._v("\n "),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("h4")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("class")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"zan-card__title"')]),s._v(">")]),s._v("商品名称是什么,两行显示状态如效果图,多余多余多余两行显示状态如效果图,多余多余多余两行显示状态如效果图,多余多余多余两行显示状态如效果图,多余多余多余两行显示状态如效果图,多余多余多余"),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n "),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("span")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("class")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"zan-card__price"')]),s._v(">")]),s._v("¥ 2.00"),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n "),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n "),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("div")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("class")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"zan-card__row"')]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("slot")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"desc"')]),s._v(">")]),s._v("\n "),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("h4")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("class")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"zan-card__desc"')]),s._v(">")]),s._v("商品sku"),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n "),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("span")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("class")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"zan-card__num"')]),s._v(">")]),s._v("x 2"),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n "),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n "),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("div")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("class")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"zan-card__footer"')]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("slot")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"footer"')]),s._v(">")]),s._v("\n "),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("zan-button")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("size")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"mini"')]),s._v(">")]),s._v("按钮一"),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n "),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("zan-button")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("size")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"mini"')]),s._v(">")]),s._v("按钮二"),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n "),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n "),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n "),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("div")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("class")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"zan-panel-sum"')]),s._v(">")]),s._v("\n 合计:"),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("span")]),s._v(">")]),s._v("¥ 1999.90"),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n "),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n "),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("div")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("class")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"zan-panel-buttons"')]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("slot")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"footer"')]),s._v(">")]),s._v("\n "),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("zan-button")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("size")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"small"')]),s._v(">")]),s._v("按钮一"),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n "),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("zan-button")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("size")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"small"')]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("type")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"danger"')]),s._v(">")]),s._v("按钮二"),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n "),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n"),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n")])])])]),s._v(" "),s._m(4),s._v(" "),s._m(5),s._v(" "),s._m(6),s._v(" "),s._m(7)],1)},staticRenderFns:[function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("h2",{attrs:{id:"panel-mian-ban"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#panel-mian-ban","aria-hidden":"true"}},[s._v("¶")]),s._v(" Panel 面板")])},function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("h3",{attrs:{id:"ji-chu-yong-fa"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#ji-chu-yong-fa","aria-hidden":"true"}},[s._v("¶")]),s._v(" 基础用法")])},function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("h3",{attrs:{id:"gao-ji-yong-fa"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#gao-ji-yong-fa","aria-hidden":"true"}},[s._v("¶")]),s._v(" 高级用法")])},function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("p",[s._v("使用具名"),t("code",[s._v("slot")]),s._v("自定义内容。")])},function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("h3",{attrs:{id:"api"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#api","aria-hidden":"true"}},[s._v("¶")]),s._v(" API")])},function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("table",{staticClass:"table"},[t("thead",[t("tr",[t("th",[s._v("参数")]),s._v(" "),t("th",[s._v("说明")]),s._v(" "),t("th",[s._v("类型")]),s._v(" "),t("th",[s._v("默认值")]),s._v(" "),t("th",[s._v("可选值")])])]),s._v(" "),t("tbody",[t("tr",[t("td",[s._v("title")]),s._v(" "),t("td",[s._v("标题")]),s._v(" "),t("td",[t("code",[s._v("string")])]),s._v(" "),t("td"),s._v(" "),t("td")]),s._v(" "),t("tr",[t("td",[s._v("desc")]),s._v(" "),t("td",[s._v("描述")]),s._v(" "),t("td",[t("code",[s._v("string")])]),s._v(" "),t("td"),s._v(" "),t("td")]),s._v(" "),t("tr",[t("td",[s._v("status")]),s._v(" "),t("td",[s._v("状态")]),s._v(" "),t("td",[t("code",[s._v("string")])]),s._v(" "),t("td"),s._v(" "),t("td")])])])},function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("h3",{attrs:{id:"slot"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#slot","aria-hidden":"true"}},[s._v("¶")]),s._v(" Slot")])},function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("table",{staticClass:"table"},[t("thead",[t("tr",[t("th",[s._v("name")]),s._v(" "),t("th",[s._v("描述")])])]),s._v(" "),t("tbody",[t("tr",[t("td",[s._v("-")]),s._v(" "),t("td",[s._v("自定义内容")])]),s._v(" "),t("tr",[t("td",[s._v("header")]),s._v(" "),t("td",[s._v("自定义header")])]),s._v(" "),t("tr",[t("td",[s._v("footer")]),s._v(" "),t("td",[s._v("自定义footer")])])])])}]}},function(s,a){s.exports={render:function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("section",{staticClass:"demo-steps"},[t("h1",{staticClass:"demo-title"},[s._v("steps")]),t("example-block",{attrs:{title:"基础用法"}},[t("zan-steps",{attrs:{active:s.active,icon:"certificate","icon-class":"steps-success",title:"等待商家发货",description:"等待商家发货等待商家发货等待商家发货等待商家发货等待商家发货"}},[t("zan-step",[s._v("买家下单")]),s._v(" "),t("zan-step",[s._v("商家接单")]),s._v(" "),t("zan-step",[s._v("买家提货")]),s._v(" "),t("zan-step",[s._v("交易完成")])],1),s._v(" "),t("zan-button",{on:{click:s.nextStep}},[s._v("下一步")])],1),t("example-block",{attrs:{title:"只显示步骤条"}},[t("zan-steps",{attrs:{active:s.active}},[t("zan-step",[s._v("买家下单")]),s._v(" "),t("zan-step",[s._v("商家接单")]),s._v(" "),t("zan-step",[s._v("买家提货")]),s._v(" "),t("zan-step",[s._v("交易完成")])],1)],1)],1)},staticRenderFns:[]}},function(s,a){s.exports={render:function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("section",{staticClass:"demo-field"},[t("h1",{staticClass:"demo-title"},[s._v("field")]),t("example-block",{attrs:{title:"基础用法"}},[t("zan-cell-group",[t("zan-field",{directives:[{name:"model",rawName:"v-model",value:s.username,expression:"username"}],attrs:{type:"text",label:"用户名:",placeholder:"请输入用户名",required:""},domProps:{value:s.username},on:{input:function(a){s.username=a}}}),s._v(" "),t("zan-field",{attrs:{type:"password",label:"密码:",placeholder:"请输入密码",required:""}}),s._v(" "),t("zan-field",{attrs:{type:"textarea",label:"个人介绍:",placeholder:"请输入个人介绍",required:""}})],1)],1),t("example-block",{attrs:{title:"无label的输入框"}},[t("zan-cell-group",[t("zan-field",{attrs:{type:"text",placeholder:"请输入用户名"}})],1)],1),t("example-block",{attrs:{title:"带border的输入框"}},[t("div",{staticClass:"zan-field-wrapper"},[t("zan-field",{attrs:{type:"text",placeholder:"请输入用户名",border:""}})],1)]),t("example-block",{attrs:{title:"禁用的输入框"}},[t("zan-cell-group",[t("zan-field",{directives:[{name:"model",rawName:"v-model",value:s.username,expression:"username"}],attrs:{label:"用户名:",type:"text",placeholder:"请输入用户名",disabled:""},domProps:{value:s.username},on:{input:function(a){s.username=a}}})],1)],1),t("example-block",{attrs:{title:"错误的输入框"}},[t("zan-cell-group",[t("zan-field",{attrs:{label:"用户名:",type:"text",placeholder:"请输入用户名",error:""}})],1)],1),t("example-block",{attrs:{title:"错误的输入框"}},[t("zan-cell-group",[t("zan-field",{attrs:{label:"留言:",type:"textarea",placeholder:"请输入留言",rows:"1",autosize:""}})],1)],1)],1)},staticRenderFns:[]}},function(s,a){s.exports={render:function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("section",{staticClass:"demo-progress"},[t("h1",{staticClass:"demo-title"},[s._v("progress")]),t("example-block",{attrs:{title:"基础用法"}},[t("div",{staticClass:"demo-progress__wrapper"},[t("zan-progress",{staticClass:"demo-progress__demo1",attrs:{percentage:0}})],1),s._v(" "),t("div",{staticClass:"demo-progress__wrapper"},[t("zan-progress",{staticClass:"demo-progress__demo2",attrs:{percentage:46}})],1),s._v(" "),t("div",{staticClass:"demo-progress__wrapper"},[t("zan-progress",{staticClass:"demo-progress__demo1",attrs:{percentage:100}})],1)]),t("example-block",{attrs:{title:"Inactive"}},[t("div",{staticClass:"demo-progress__wrapper"},[t("zan-progress",{staticClass:"demo-progress__demo1",attrs:{inactive:!0,percentage:0}})],1),s._v(" "),t("div",{staticClass:"demo-progress__wrapper"},[t("zan-progress",{staticClass:"demo-progress__demo2",attrs:{inactive:!0,percentage:46}})],1),s._v(" "),t("div",{staticClass:"demo-progress__wrapper"},[t("zan-progress",{staticClass:"demo-progress__demo1",attrs:{inactive:!0,percentage:100}})],1)]),t("example-block",{attrs:{title:"自定义颜色"}},[t("div",{staticClass:"demo-progress__wrapper"},[t("zan-progress",{staticClass:"demo-progress__demo1",attrs:{"pivot-text":"红色",color:"#ed5050",percentage:26}})],1),s._v(" "),t("div",{staticClass:"demo-progress__wrapper"},[t("zan-progress",{staticClass:"demo-progress__demo1",attrs:{"pivot-text":"橙色",color:"#f60",percentage:46}})],1),s._v(" "),t("div",{staticClass:"demo-progress__wrapper"},[t("zan-progress",{staticClass:"demo-progress__demo1",attrs:{"pivot-text":"黄色",color:"#f09000",percentage:66}})],1)])],1)},staticRenderFns:[]}},function(s,a){s.exports={render:function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("section",[s._m(0),s._v(" "),s._m(1),s._v(" "),t("demo-block",{staticClass:"demo-box",attrs:{description:"基础用法"}},[t("div",{staticClass:"examples",slot:"examples"},[t("div",{staticClass:"zan-row"},[t("zan-button",{on:{click:function(a){s.popupShow1=!0}}},[s._v("从下方弹出popup")])],1),s._v(" "),t("zan-popup",{directives:[{name:"model",rawName:"v-model",value:s.popupShow1,expression:"popupShow1"}],staticClass:"zan-popup-1",attrs:{position:"bottom"},domProps:{value:s.popupShow1},on:{input:function(a){s.popupShow1=a}}},[t("zan-button",{on:{click:s.showDialog}},[s._v("弹出dialog")])],1),s._v(" "),t("div",{staticClass:"zan-row"},[t("zan-button",{on:{click:function(a){s.popupShow2=!0}}},[s._v("从上方弹出popup")])],1),s._v(" "),t("zan-popup",{directives:[{name:"model",rawName:"v-model",value:s.popupShow2,expression:"popupShow2"}],staticClass:"zan-popup-2",attrs:{position:"top",overlay:!1},domProps:{value:s.popupShow2},on:{input:function(a){s.popupShow2=a}}},[s._v("\n 更新成功\n")]),s._v(" "),t("div",{staticClass:"zan-row"},[t("zan-button",{on:{click:function(a){s.popupShow3=!0}}},[s._v("从右方弹出popup")])],1),s._v(" "),t("zan-popup",{directives:[{name:"model",rawName:"v-model",value:s.popupShow3,expression:"popupShow3"}],staticClass:"zan-popup-3",attrs:{position:"right",overlay:!1},domProps:{value:s.popupShow3},on:{input:function(a){s.popupShow3=a}}},[t("zan-button",{nativeOn:{click:function(a){s.popupShow3=!1}}},[s._v("关闭 popup")])],1),s._v(" "),t("div",{staticClass:"zan-row"},[t("zan-button",{on:{click:function(a){s.popupShow4=!0}}},[s._v("从中间弹出popup")])],1),s._v(" "),t("zan-popup",{directives:[{name:"model",rawName:"v-model",value:s.popupShow4,expression:"popupShow4"}],staticClass:"zan-popup-4",domProps:{value:s.popupShow4},on:{input:function(a){s.popupShow4=a}}},[s._v("\n 从中间弹出popup\n")])],1),s._v(" "),t("div",{staticClass:"highlight",slot:"highlight"},[t("pre",[t("code",{staticClass:"hljs language-html"},[t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("div")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("class")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"zan-row"')]),s._v(">")]),s._v("\n "),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("zan-button")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("@click")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"popupShow1 = true;"')]),s._v(">")]),s._v("从下方弹出popup"),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n"),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n"),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("zan-popup")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("v-model")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"popupShow1"')]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("position")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"bottom"')]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("class")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"zan-popup-1"')]),s._v(">")]),s._v("\n "),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("zan-button")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("@click")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"showDialog"')]),s._v(">")]),s._v("弹出dialog"),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n"),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n\n"),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("div")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("class")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"zan-row"')]),s._v(">")]),s._v("\n "),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("zan-button")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("@click")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"popupShow2 = true"')]),s._v(">")]),s._v("从上方弹出popup"),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n"),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n"),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("zan-popup")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("v-model")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"popupShow2"')]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("position")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"top"')]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("class")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"zan-popup-2"')]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v(":overlay")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"false"')]),s._v(">")]),s._v("\n 更新成功\n"),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n\n"),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("div")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("class")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"zan-row"')]),s._v(">")]),s._v("\n "),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("zan-button")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("@click")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"popupShow3 = true"')]),s._v(">")]),s._v("从右方弹出popup"),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n"),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n"),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("zan-popup")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("v-model")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"popupShow3"')]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("position")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"right"')]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("class")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"zan-popup-3"')]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v(":overlay")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"false"')]),s._v(">")]),s._v("\n "),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("zan-button")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("@click.native")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"popupShow3 = false"')]),s._v(">")]),s._v("关闭 popup"),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n"),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n\n"),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("div")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("class")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"zan-row"')]),s._v(">")]),s._v("\n "),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("zan-button")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("@click")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"popupShow4 = true"')]),s._v(">")]),s._v("从中间弹出popup"),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n"),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n"),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("zan-popup")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("v-model")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"popupShow4"')]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("class")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"zan-popup-4"')]),s._v(">")]),s._v("\n 从中间弹出popup\n"),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n\n"),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("script")]),s._v(">")]),t("span",{staticClass:"javascript"},[s._v("\n"),t("span",{staticClass:"hljs-keyword"},[s._v("export")]),s._v(" "),t("span",{staticClass:"hljs-keyword"},[s._v("default")]),s._v(" {\n data() {\n "),t("span",{staticClass:"hljs-keyword"},[s._v("return")]),s._v(" {\n "),t("span",{staticClass:"hljs-attr"},[s._v("popupShow1")]),s._v(": "),t("span",{staticClass:"hljs-literal"},[s._v("false")]),s._v(",\n "),t("span",{staticClass:"hljs-attr"},[s._v("popupShow2")]),s._v(": "),t("span",{staticClass:"hljs-literal"},[s._v("false")]),s._v(",\n "),t("span",{staticClass:"hljs-attr"},[s._v("popupShow3")]),s._v(": "),t("span",{staticClass:"hljs-literal"},[s._v("false")]),s._v(",\n "),t("span",{staticClass:"hljs-attr"},[s._v("popupShow4")]),s._v(": "),t("span",{staticClass:"hljs-literal"},[s._v("false")]),s._v("\n }\n },\n\n "),t("span",{staticClass:"hljs-attr"},[s._v("watch")]),s._v(": {\n popupShow2(val) {\n "),t("span",{staticClass:"hljs-keyword"},[s._v("if")]),s._v(" (val) {\n setTimeout("),t("span",{staticClass:"hljs-function"},[t("span",{staticClass:"hljs-params"},[s._v("()")]),s._v(" =>")]),s._v(" {\n "),t("span",{staticClass:"hljs-keyword"},[s._v("this")]),s._v(".popupShow2 = "),t("span",{staticClass:"hljs-literal"},[s._v("false")]),s._v(";\n }, "),t("span",{staticClass:"hljs-number"},[s._v("2000")]),s._v(");\n }\n }\n }\n};\n")]),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n\n")])])])]),s._v(" "),t("p",[s._v("点击以下按钮查看手机端效果:")]),s._v(" "),t("p",[t("zan-button",{on:{click:function(a){s.mobileShow=!0}}},[s._v("点击查看手机端效果")]),s._v(" "),t("mobile-popup",{directives:[{name:"model",rawName:"v-model",value:s.mobileShow,expression:"mobileShow"}],attrs:{url:s.mobileUrl},domProps:{value:s.mobileShow},on:{input:function(a){s.mobileShow=a}}})],1),s._v(" "),s._m(2),s._v(" "),s._m(3)],1)},staticRenderFns:[function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("h2",{attrs:{id:"popup-zu-jian"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#popup-zu-jian","aria-hidden":"true"}},[s._v("¶")]),s._v(" Popup组件")])},function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("h3",{attrs:{id:"ji-chu-yong-fa"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#ji-chu-yong-fa","aria-hidden":"true"}},[s._v("¶")]),s._v(" 基础用法")])},function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("h3",{attrs:{id:"api"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#api","aria-hidden":"true"}},[s._v("¶")]),s._v(" API")])},function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("table",{staticClass:"table"},[t("thead",[t("tr",[t("th",[s._v("参数")]),s._v(" "),t("th",[s._v("说明")]),s._v(" "),t("th",[s._v("类型")]),s._v(" "),t("th",[s._v("默认值")]),s._v(" "),t("th",[s._v("可选值")])])]),s._v(" "),t("tbody",[t("tr",[t("td",[s._v("value")]),s._v(" "),t("td",[s._v("利用"),t("code",[s._v("v-model")]),s._v("绑定当前组件是否显示")]),s._v(" "),t("td",[t("code",[s._v("boolean")])]),s._v(" "),t("td"),s._v(" "),t("td")])])])}]}},function(s,a){s.exports={render:function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("zan-popup",{directives:[{name:"model",rawName:"v-model",value:s.currentValue,expression:"currentValue"}],domProps:{value:s.currentValue},on:{input:function(a){s.currentValue=a}}},[t("div",{staticClass:"mobile-popup"},[t("iframe",{staticClass:"mobile-popup-iframe",attrs:{src:s.url}})],1)])},staticRenderFns:[]}},function(s,a){s.exports={render:function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("section",[s._m(0),s._v(" "),s._m(1),s._v(" "),t("demo-block",{staticClass:"demo-box",attrs:{description:"基础用法"}},[t("div",{staticClass:"examples",slot:"examples"},[t("zan-quantity",{directives:[{name:"model",rawName:"v-model",value:s.quantity1,expression:"quantity1"}],domProps:{value:s.quantity1},on:{input:function(a){s.quantity1=a}}}),s._v(" "),t("p",{staticClass:"curr-quantity"},[s._v("当前值:"+s._s(s.quantity1))])],1),s._v(" "),t("div",{staticClass:"highlight",slot:"highlight"},[t("pre",[t("code",{staticClass:"hljs language-html"},[t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("zan-quantity")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("v-model")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"quantity1"')]),s._v(">")]),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n"),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("p")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("class")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"curr-quantity"')]),s._v(">")]),s._v("当前值:"),t("span",[s._v("{{")]),s._v(" quantity1 "),t("span",[s._v("}}")]),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n")])])])]),s._v(" "),s._m(2),s._v(" "),t("demo-block",{staticClass:"demo-box",attrs:{description:"禁用Quantity"}},[t("div",{staticClass:"examples",slot:"examples"},[t("zan-quantity",{directives:[{name:"model",rawName:"v-model",value:s.quantity1,expression:"quantity1"}],attrs:{disabled:""},domProps:{value:s.quantity1},on:{input:function(a){s.quantity1=a}}})],1),s._v(" "),t("div",{staticClass:"highlight",slot:"highlight"},[t("pre",[t("code",{staticClass:"hljs language-html"},[t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("zan-quantity")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("v-model")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"quantity1"')]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("disabled")]),s._v(">")]),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n")])])])]),s._v(" "),s._m(3),s._v(" "),s._m(4),s._v(" "),t("demo-block",{staticClass:"demo-box",attrs:{description:"高级用法"}},[t("div",{staticClass:"examples",slot:"examples"},[t("zan-quantity",{directives:[{name:"model",rawName:"v-model",value:s.quantity2,expression:"quantity2"}],attrs:{min:"5",max:"40",step:"2","default-value":"9"},domProps:{value:s.quantity2},on:{input:function(a){s.quantity2=a}}}),s._v(" "),t("p",{staticClass:"curr-quantity"},[s._v("当前值:"+s._s(s.quantity2))])],1),s._v(" "),t("div",{staticClass:"highlight",slot:"highlight"},[t("pre",[t("code",{staticClass:"hljs language-html"},[t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("zan-quantity")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("v-model")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"quantity2"')]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("min")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"5"')]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("max")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"40"')]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("step")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"2"')]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("default-value")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"9"')]),s._v(">")]),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n"),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("p")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("class")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"curr-quantity"')]),s._v(">")]),s._v("当前值:"),t("span",[s._v("{{")]),s._v(" quantity2 "),t("span",[s._v("}}")]),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n")])])])]),s._v(" "),s._m(5),s._v(" "),s._m(6)],1)},staticRenderFns:[function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("h2",{attrs:{id:"quantity"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#quantity","aria-hidden":"true"}},[s._v("¶")]),s._v(" Quantity")])},function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("h3",{attrs:{id:"ji-chu-yong-fa"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#ji-chu-yong-fa","aria-hidden":"true"}},[s._v("¶")]),s._v(" 基础用法")])},function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("h3",{attrs:{id:"jin-yong-quantity"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#jin-yong-quantity","aria-hidden":"true"}},[s._v("¶")]),s._v(" 禁用Quantity")])},function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("h3",{attrs:{id:"gao-ji-yong-fa"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#gao-ji-yong-fa","aria-hidden":"true"}},[s._v("¶")]),s._v(" 高级用法")])},function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("p",[s._v("默认是每次加减为1,可以对组件设置"),t("code",[s._v("step")]),s._v("、"),t("code",[s._v("min")]),s._v("、"),t("code",[s._v("max")]),s._v("、"),t("code",[s._v("defaultValue")]),s._v("属性。")])},function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("h3",{attrs:{id:"api"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#api","aria-hidden":"true"}},[s._v("¶")]),s._v(" API")])},function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("table",{staticClass:"table"},[t("thead",[t("tr",[t("th",[s._v("参数")]),s._v(" "),t("th",[s._v("说明")]),s._v(" "),t("th",[s._v("类型")]),s._v(" "),t("th",[s._v("默认值")]),s._v(" "),t("th",[s._v("可选值")])])]),s._v(" "),t("tbody",[t("tr",[t("td",[s._v("min")]),s._v(" "),t("td",[s._v("最小值")]),s._v(" "),t("td",[t("code",[s._v("string")]),s._v(", "),t("code",[s._v("number")])]),s._v(" "),t("td",[t("code",[s._v("1")])]),s._v(" "),t("td")]),s._v(" "),t("tr",[t("td",[s._v("max")]),s._v(" "),t("td",[s._v("最大值")]),s._v(" "),t("td",[t("code",[s._v("string")]),s._v(", "),t("code",[s._v("number")])]),s._v(" "),t("td"),s._v(" "),t("td")]),s._v(" "),t("tr",[t("td",[s._v("step")]),s._v(" "),t("td",[s._v("步数")]),s._v(" "),t("td",[t("code",[s._v("string")]),s._v(", "),t("code",[s._v("number")])]),s._v(" "),t("td",[t("code",[s._v("1")])]),s._v(" "),t("td")]),s._v(" "),t("tr",[t("td",[s._v("disabled")]),s._v(" "),t("td",[s._v("是否被禁用了")]),s._v(" "),t("td",[t("code",[s._v("boolean")])]),s._v(" "),t("td",[t("code",[s._v("false")])]),s._v(" "),t("td")]),s._v(" "),t("tr",[t("td",[s._v("defaultValue")]),s._v(" "),t("td",[s._v("默认值")]),s._v(" "),t("td",[t("code",[s._v("string")]),s._v(", "),t("code",[s._v("number")])]),s._v(" "),t("td",[t("code",[s._v("1")])]),s._v(" "),t("td")])])])}]}},function(s,a){s.exports={render:function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("section",[s._m(0),s._v(" "),s._m(1),s._v(" "),t("demo-block",{staticClass:"demo-box",attrs:{description:"基础用法"}},[t("div",{staticClass:"examples",slot:"examples"},[t("zan-badge-group",{attrs:{"active-key":s.activeKey}},[t("zan-badge",{attrs:{mark:"0",title:"热销榜",info:"8",url:"http://baidu.com"},on:{click:s.onItemClick}}),s._v(" "),t("zan-badge",{attrs:{mark:"1",title:"花式寿司",info:"99"},on:{click:s.onItemClick}}),s._v(" "),t("zan-badge",{attrs:{mark:"2",title:"火炽寿司"},on:{click:s.onItemClick}}),s._v(" "),t("zan-badge",{attrs:{mark:"3",title:"手握寿司",info:"199"},on:{click:s.onItemClick}})],1)],1),s._v(" "),t("div",{staticClass:"highlight",slot:"highlight"},[t("pre",[t("code",{staticClass:"hljs language-html"},[t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("zan-badge-group")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v(":active-key")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"activeKey"')]),s._v(">")]),s._v("\n "),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("zan-badge")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("mark")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"0"')]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("title")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"热销榜"')]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("info")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"8"')]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("url")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"http://baidu.com"')]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("@click")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"onItemClick"')]),s._v(">")]),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n "),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("zan-badge")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("mark")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"1"')]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("title")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"花式寿司"')]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("info")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"99"')]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("@click")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"onItemClick"')]),s._v(">")]),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n "),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("zan-badge")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("mark")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"2"')]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("title")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"火炽寿司"')]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("@click")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"onItemClick"')]),s._v(">")]),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n "),t("span",{staticClass:"hljs-tag"},[s._v("<"),t("span",{staticClass:"hljs-name"},[s._v("zan-badge")]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("mark")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"3"')]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("title")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"手握寿司"')]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("info")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"199"')]),s._v(" "),t("span",{staticClass:"hljs-attr"},[s._v("@click")]),s._v("="),t("span",{staticClass:"hljs-string"},[s._v('"onItemClick"')]),s._v(">")]),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n"),t("span",{staticClass:"hljs-tag"},[s._v("")]),s._v("\n")])])])]),s._v(" "),s._m(2),s._v(" "),s._m(3),s._v(" "),s._m(4),s._v(" "),s._m(5)],1)},staticRenderFns:[function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("h2",{attrs:{id:"badge"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#badge","aria-hidden":"true"}},[s._v("¶")]),s._v(" Badge")])},function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("h3",{attrs:{id:"ji-chu-yong-fa"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#ji-chu-yong-fa","aria-hidden":"true"}},[s._v("¶")]),s._v(" 基础用法")])},function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("h3",{attrs:{id:"z-badge-group-api"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#z-badge-group-api","aria-hidden":"true"}},[s._v("¶")]),s._v(" z-badge-group API")])},function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("table",{staticClass:"table"},[t("thead",[t("tr",[t("th",[s._v("参数")]),s._v(" "),t("th",[s._v("说明")]),s._v(" "),t("th",[s._v("类型")]),s._v(" "),t("th",[s._v("默认值")]),s._v(" "),t("th",[s._v("必须")])])]),s._v(" "),t("tbody",[t("tr",[t("td",[s._v("active-key")]),s._v(" "),t("td",[s._v("激活的"),t("code",[s._v("badge")]),s._v("的索引")]),s._v(" "),t("td",[t("code",[s._v("string")])]),s._v(" "),t("td",[t("code",[s._v("0")]),s._v("但必须子badge里的mark是有"),t("code",[s._v("0")]),s._v("位索引")]),s._v(" "),t("td")])])])},function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("h3",{attrs:{id:"z-badge-api"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#z-badge-api","aria-hidden":"true"}},[s._v("¶")]),s._v(" z-badge API")])},function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("table",{staticClass:"table"},[t("thead",[t("tr",[t("th",[s._v("参数")]),s._v(" "),t("th",[s._v("说明")]),s._v(" "),t("th",[s._v("类型")]),s._v(" "),t("th",[s._v("默认值")]),s._v(" "),t("th",[s._v("必须")])])]),s._v(" "),t("tbody",[t("tr",[t("td",[s._v("mark")]),s._v(" "),t("td",[s._v("badge的唯一key值")]),s._v(" "),t("td",[t("code",[s._v("string")])]),s._v(" "),t("td",[t("code",[s._v("''")])]),s._v(" "),t("td",[t("code",[s._v("required")])])]),s._v(" "),t("tr",[t("td",[s._v("title")]),s._v(" "),t("td",[s._v("badge的文案标题")]),s._v(" "),t("td",[t("code",[s._v("string")])]),s._v(" "),t("td",[t("code",[s._v("''")])]),s._v(" "),t("td",[t("code",[s._v("required")])])]),s._v(" "),t("tr",[t("td",[s._v("info")]),s._v(" "),t("td",[s._v("当前badge的提示消息数量")]),s._v(" "),t("td",[t("code",[s._v("string")])]),s._v(" "),t("td",[t("code",[s._v("''")])]),s._v(" "),t("td")]),s._v(" "),t("tr",[t("td",[s._v("url")]),s._v(" "),t("td",[s._v("跳转链接")]),s._v(" "),t("td",[t("code",[s._v("string")])]),s._v(" "),t("td",[s._v("全连接直接跳转或者hash")]),s._v(" "),t("td")])])])}]}},function(s,a){s.exports={render:function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("section",{staticClass:"demo-button"},[t("h1",{staticClass:"demo-title"},[s._v("button")]),t("example-block",{attrs:{title:"按钮功能"}},[t("zan-row",[t("zan-col",{attrs:{span:"24"}},[t("zan-button",{attrs:{block:""}},[s._v("default")])],1),s._v(" "),t("zan-col",{attrs:{span:"24"}},[t("zan-button",{attrs:{type:"primary",block:""}},[s._v("primary")])],1),s._v(" "),t("zan-col",{attrs:{span:"24"}},[t("zan-button",{attrs:{type:"danger",block:""}},[s._v("danger")])],1)],1)],1),t("example-block",{attrs:{title:"禁用状态"}},[t("zan-row",[t("zan-col",{attrs:{span:"24"}},[t("zan-button",{attrs:{disabled:"",block:""}},[s._v("diabled")])],1)],1)],1),t("example-block",{attrs:{title:"按钮尺寸"}},[t("zan-row",[t("zan-col",{attrs:{span:"24"}},[t("zan-button",{attrs:{size:"large"}},[s._v("large")])],1)],1),s._v(" "),t("zan-row",{attrs:{gutter:"10"}},[t("zan-col",{attrs:{span:"8"}},[t("zan-button",{attrs:{type:"primary",block:""}},[s._v("normal")])],1),s._v(" "),t("zan-col",{attrs:{span:"8"}},[t("zan-button",{attrs:{size:"small",block:""}},[s._v("small")])],1),s._v(" "),t("zan-col",{attrs:{span:"8"}},[t("zan-button",{attrs:{size:"mini",block:""}},[s._v("mini")])],1)],1)],1),t("example-block",{attrs:{title:"自定义按钮标签"}},[t("zan-row",[t("zan-col",{attrs:{span:"24"}},[t("zan-button",{attrs:{tag:"a",type:"primary",href:"https://www.youzan.com",target:"_blank"}},[s._v("a标签按钮")])],1)],1)],1),t("example-block",{attrs:{title:"loading按钮"}},[t("zan-row",[t("zan-col",{attrs:{span:"24"}},[t("zan-button",{attrs:{type:"primary",loading:"",block:""}},[s._v("loading")])],1),s._v(" "),t("zan-col",{attrs:{span:"24"}},[t("zan-button",{attrs:{loading:"",block:""}})],1)],1)],1),t("example-block",{attrs:{title:"button group"}},[t("div",{staticClass:"button-group"},[t("zan-button",{attrs:{type:"primary",size:"small"}},[s._v("确认付款")]),s._v(" "),t("zan-button",{attrs:{size:"small"}},[s._v("确认收货")]),s._v(" "),t("zan-button",{attrs:{size:"small"}},[s._v("取消订单")])],1)])],1)},staticRenderFns:[]}},function(s,a){s.exports={render:function(){var s=this,a=s.$createElement;s._self._c;return s._m(0)},staticRenderFns:[function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("section",[t("h2",{attrs:{id:"kuai-su-shang-shou"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#kuai-su-shang-shou","aria-hidden":"true"}},[s._v("¶")]),s._v(" 快速上手")]),s._v(" "),t("h3",{attrs:{id:"wan-zheng-yin-ru"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#wan-zheng-yin-ru","aria-hidden":"true"}},[s._v("¶")]),s._v(" 完整引入")]),s._v(" "),t("pre",[t("code",{staticClass:"hljs language-javascript"},[t("span",{staticClass:"hljs-keyword"},[s._v("import")]),s._v(" Vue "),t("span",{staticClass:"hljs-keyword"},[s._v("from")]),s._v(" "),t("span",{staticClass:"hljs-string"},[s._v("'vue'")]),s._v(";\n"),t("span",{staticClass:"hljs-keyword"},[s._v("import")]),s._v(" ZanUI "),t("span",{staticClass:"hljs-keyword"},[s._v("from")]),s._v(" "),t("span",{staticClass:"hljs-string"},[s._v("'@youzan/zanui-vue'")]),s._v(";\n"),t("span",{staticClass:"hljs-keyword"},[s._v("import")]),s._v(" "),t("span",{staticClass:"hljs-string"},[s._v("'@youzan/zanui-vue/lib/zanui-css/index.css'")]),s._v(";\n\nVue.use(ZanUI);\n")])]),s._v(" "),t("h3",{attrs:{id:"an-xu-yin-ru"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#an-xu-yin-ru","aria-hidden":"true"}},[s._v("¶")]),s._v(" 按需引入")]),s._v(" "),t("pre",[t("code",{staticClass:"hljs language-javascript"},[t("span",{staticClass:"hljs-keyword"},[s._v("import")]),s._v(" Vue "),t("span",{staticClass:"hljs-keyword"},[s._v("from")]),s._v(" "),t("span",{staticClass:"hljs-string"},[s._v("'vue'")]),s._v(";\n"),t("span",{staticClass:"hljs-keyword"},[s._v("import")]),s._v(" { Button, Cell } "),t("span",{staticClass:"hljs-keyword"},[s._v("from")]),s._v(" "),t("span",{staticClass:"hljs-string"},[s._v("'@youzan/zanui-vue'")]),s._v(";\n"),t("span",{staticClass:"hljs-keyword"},[s._v("import")]),s._v(" "),t("span",{staticClass:"hljs-string"},[s._v("'@youzan/zanui-vue/lib/zanui-css/button.css'")]),s._v(";\n"),t("span",{staticClass:"hljs-keyword"},[s._v("import")]),s._v(" "),t("span",{staticClass:"hljs-string"},[s._v("'@youzan/zanui-vue/lib/zanui-css/cell.css'")]),s._v(";\n\nVue.component(Button.name, Button);\nVue.component(Cell.name, Cell);\n")])])])}]}},function(s,a,t){var n=t(357);"string"==typeof n&&(n=[[s.i,n,""]]),n.locals&&(s.exports=n.locals);t(275)("5ae488ab",n,!0)},function(s,a,t){var n=t(358);"string"==typeof n&&(n=[[s.i,n,""]]),n.locals&&(s.exports=n.locals);t(275)("a6a3f51c",n,!0)},function(s,a,t){var n=t(359);"string"==typeof n&&(n=[[s.i,n,""]]),n.locals&&(s.exports=n.locals);t(275)("bdbfa558",n,!0)},function(s,a,t){var n=t(360);"string"==typeof n&&(n=[[s.i,n,""]]),n.locals&&(s.exports=n.locals);t(275)("d08eb6dc",n,!0)},function(s,a,t){var n=t(361);"string"==typeof n&&(n=[[s.i,n,""]]),n.locals&&(s.exports=n.locals);t(275)("4b7f6176",n,!0)},function(s,a,t){var n=t(362);"string"==typeof n&&(n=[[s.i,n,""]]),n.locals&&(s.exports=n.locals);t(275)("18315e2a",n,!0)},function(s,a,t){var n=t(363);"string"==typeof n&&(n=[[s.i,n,""]]),n.locals&&(s.exports=n.locals);t(275)("35e0d5c8",n,!0)},function(s,a,t){var n=t(364);"string"==typeof n&&(n=[[s.i,n,""]]),n.locals&&(s.exports=n.locals);t(275)("7ebbf6ae",n,!0)},function(s,a,t){var n=t(365);"string"==typeof n&&(n=[[s.i,n,""]]),n.locals&&(s.exports=n.locals);t(275)("5567916b",n,!0)},function(s,a,t){var n=t(366);"string"==typeof n&&(n=[[s.i,n,""]]),n.locals&&(s.exports=n.locals);t(275)("71d4cbfe",n,!0)},function(s,a,t){var n=t(367);"string"==typeof n&&(n=[[s.i,n,""]]),n.locals&&(s.exports=n.locals);t(275)("6aad1ea0",n,!0)},function(s,a,t){var n=t(368);"string"==typeof n&&(n=[[s.i,n,""]]),n.locals&&(s.exports=n.locals);t(275)("14dcf62d",n,!0)},function(s,a,t){var n=t(369);"string"==typeof n&&(n=[[s.i,n,""]]),n.locals&&(s.exports=n.locals);t(275)("4ff18ad0",n,!0)},function(s,a,t){var n=t(370);"string"==typeof n&&(n=[[s.i,n,""]]),n.locals&&(s.exports=n.locals);t(275)("376fbe74",n,!0)},function(s,a,t){var n=t(371);"string"==typeof n&&(n=[[s.i,n,""]]),n.locals&&(s.exports=n.locals);t(275)("8054d5bc",n,!0)},function(s,a,t){var n=t(372);"string"==typeof n&&(n=[[s.i,n,""]]),n.locals&&(s.exports=n.locals);t(275)("34888959",n,!0)},function(s,a,t){var n=t(373);"string"==typeof n&&(n=[[s.i,n,""]]),n.locals&&(s.exports=n.locals);t(275)("58afb7ba",n,!0)},function(s,a,t){var n=t(374);"string"==typeof n&&(n=[[s.i,n,""]]),n.locals&&(s.exports=n.locals);t(275)("71f8fdac",n,!0)},function(s,a,t){var n=t(375);"string"==typeof n&&(n=[[s.i,n,""]]),n.locals&&(s.exports=n.locals);t(275)("4c3cf589",n,!0)},function(s,a,t){var n=t(376);"string"==typeof n&&(n=[[s.i,n,""]]),n.locals&&(s.exports=n.locals);t(275)("b3cf406c",n,!0)},function(s,a,t){var n=t(377);"string"==typeof n&&(n=[[s.i,n,""]]),n.locals&&(s.exports=n.locals);t(275)("322a37e0",n,!0)},function(s,a,t){var n=t(378);"string"==typeof n&&(n=[[s.i,n,""]]),n.locals&&(s.exports=n.locals);t(275)("90b906da",n,!0)},function(s,a,t){var n=t(379);"string"==typeof n&&(n=[[s.i,n,""]]),n.locals&&(s.exports=n.locals);t(275)("21701913",n,!0)},function(s,a){s.exports=function(s,a){for(var t=[],n={},l=0;lh1,.page-content section>h2,.page-content section>h3,.page-content section>h4,.page-content section>h5,.page-content section>h6{color:#333;line-height:1.5;margin:20px 0;font-weight:400}.page-content section>h1 a,.page-content section>h2 a,.page-content section>h3 a,.page-content section>h4 a,.page-content section>h5 a,.page-content section>h6 a{float:left;margin-left:-20px;opacity:0;cursor:pointer}.page-content section>h1 a:hover,.page-content section>h1:hover a,.page-content section>h2 a:hover,.page-content section>h2:hover a,.page-content section>h3 a:hover,.page-content section>h3:hover a,.page-content section>h4 a:hover,.page-content section>h4:hover a,.page-content section>h5 a:hover,.page-content section>h5:hover a,.page-content section>h6 a:hover,.page-content section>h6:hover a{opacity:.4}.page-content section>h1{font-size:40px}.page-content section>h2{font-size:36px}.page-content section>h3{font-size:30px}.page-content section>h4{font-size:24px}.page-content section>h5{font-size:14px}.page-content section>h6,.page-content section>p{font-size:14px;color:#666}.page-content section>p{line-height:20px;margin:14px 0}.page-content section>ol li,.page-content section>ul li{color:#666;font-size:14px;line-height:20px;margin:10px 0 10px 20px;padding-left:20px;position:relative}.page-content section>ol li li,.page-content section>ul li li{margin-left:0}.page-content section>ol li:before,.page-content section>ul li:before{content:"";position:absolute;width:8px;height:8px;box-sizing:border-box;border:2px solid #999;border-radius:50%;top:6px;left:0}.page-content .table code,.page-content li>code,.page-content p>code{background-color:#f2f2f2;display:inline-block;border:1px solid #e5e5e5;padding:2px 4px;color:#333;margin:0 3px}.table{border-collapse:collapse;width:100%;background-color:#fff;color:#333;font-size:14px;margin-bottom:45px}.table th{text-align:left;border:1px solid #e5e5e5;background-color:#f2f2f2;padding:10px}.table th:first-child{padding-left:10px}.table td{border:1px solid #e5e5e5;padding:10px}.page-footer{height:150px;margin-top:40px;background-color:#fff}.hljs{display:block;overflow-x:auto;padding:.5em;background:#fff}.hljs,.hljs-subst{color:#000}.hljs-addition,.hljs-meta,.hljs-string,.hljs-symbol,.hljs-template-tag,.hljs-template-variable{color:#756bb1}.hljs-comment,.hljs-quote{color:#636363}.hljs-bullet,.hljs-link,.hljs-literal,.hljs-number,.hljs-regexp{color:#31a354}.hljs-deletion,.hljs-variable{color:#88f}.hljs-built_in,.hljs-doctag,.hljs-keyword,.hljs-name,.hljs-section,.hljs-selector-class,.hljs-selector-id,.hljs-selector-tag,.hljs-strong,.hljs-tag,.hljs-title,.hljs-type{color:#3182bd}.hljs-emphasis{font-style:italic}.hljs-attribute{color:#e6550d}.side-nav{width:220px;box-sizing:border-box;padding:40px 0;display:table-cell;border-right:1px solid #e5e5e5}.side-nav li{list-style:none}.side-nav ul{padding:0;margin:0;overflow:hidden}.side-nav .nav-item a{font-size:16px;color:#333;line-height:40px;height:40px;margin:0;padding:0;text-decoration:none;display:block;position:relative;-webkit-transition:all .3s;transition:all .3s;padding:0 20px}.side-nav .nav-item a.active{color:#38f;background-color:#f2f2f2}.side-nav .nav-item .nav-item a{display:block;height:40px;line-height:40px;font-size:14px;padding-left:44px}.side-nav .nav-item .nav-item a:hover{color:#38f}.side-nav .nav-group__title{font-size:12px;color:#666;padding-left:28px;line-height:26px;margin-top:10px}.demo-block{-webkit-transition:.2s;transition:.2s;overflow:hidden;margin-bottom:20px}.demo-block code{font-family:Menlo,Monaco,Consolas,Courier,monospace}.demo-block .examples{width:320px;float:right;padding:10px 0 0;min-height:200px;max-height:600px;overflow:auto;background-color:#f8f8f8}.demo-block .examples,.demo-block .highlight{box-sizing:border-box;border:1px solid #e5e5e5}.demo-block .highlight{margin-right:345px;border-radius:4px}.demo-block .highlight pre{margin:0}.demo-block .highlight code.hljs{margin:0;border:none;max-height:none;border-radius:0;padding:20px;background-color:#f8f8f8}.demo-block .highlight code.hljs:before{content:none}.footer-nav{padding:24px 0;font-size:30px;overflow:hidden}.footer-nav__link{color:#38f;overflow:hidden;padding-top:35px;position:relative}.footer-nav__link .zan-icon{width:20px;display:block;font-size:12px;line-height:20px;border:2px solid #38f;border-radius:50%;text-align:center;margin-bottom:10px;position:absolute;top:0}.footer-nav__left{float:left}.footer-nav__left .zan-icon{-webkit-transform:rotate(180deg);transform:rotate(180deg);left:0}.footer-nav__right{float:right}.footer-nav__right .zan-icon{right:0}@-webkit-keyframes loading{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@keyframes loading{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}.zan-loading{width:30px;height:30px;line-height:0;font-size:0}.zan-loading__spinner{display:inline-block;height:100%;width:100%;-webkit-animation:loading .8s linear;-webkit-animation-iteration-count:infinite;animation:loading .8s linear;animation-iteration-count:infinite}.zan-loading__spinner--circle{border-radius:100%;border:3px solid transparent;box-sizing:border-box}.zan-loading__spinner--circle.zan-loading__spinner--black{border-color:#c9c9c9;border-top-color:#666}.zan-loading__spinner--circle.zan-loading__spinner--white{border-color:rgba(0,0,0,.5);border-top-color:transparent}.zan-loading__spinner--gradient-circle.zan-loading__spinner--black{background:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADwAAAA8CAYAAAA6/NlyAAAAAXNSR0IArs4c6QAADitJREFUaAXNmmuMVVcVx++9M8PMMAwMj5GCpJjGtKVIfQxIpcGGtwylwQ+iND4iJI1GTU2jjZqmYvzQVNLY1JiaftPU1mjSftBAeA4FQagQSCoYq0EUeU55zTCvO/fh77/uWZtzh7kzd17ATvZde6+99t7rv9baj3POTSbGKB08eLC2o6OjKZ/PfyyZTN7HNPdRboTWU6+DJnO5XGcqlbpBuZX8b/IpZN6bMGHCu4sWLeqiPuopOZoj7tq1ayrjPY7SK6GfIFcBCnzJhP3AoC0FUdLcSQDDyifjfHi9tB2Ht62ysvLtJUuWfKAOo5FGBfCOHTvmA2gTCi6GVqCYgRHQbDabEiXbXHFgkusLmLrJYSjrh7ws1kJ+dfny5X8ZKegRAd6+ffvCioqKb6PUpyKQ0ieAVXk4gGUb7xcfDyP8lfqLK1euPAAdVhoW4H379jX29PR8nxlXk0OIAhxdbcgA2kM6LidNI0+bfNTPdTHPxvup3SOBrurzNvNvXrNmzQWNNZTkk5Tdh3W6GAVepEN91CkAjuoBLHVtTAaKcpHcSABrHvp3YISnCPNdqpebXImy5Hfu3PlVAPwC4Tom1KTKnryeQKas8SSENSyX24HJtMHJiPXM8wYO+Fa5fW2+coRPnDgx7uzZs88h+wRWFbCiXTUaw41nCrG2bXyUGtDDPh7CHm0DhjRz2zw+qOqUf9fb2/tMc3NzT6RLSeKTlBTYv3//ZNbLywz8sID6RK5gfwpITmtOsgA2AMgHg2iyqJ/kzIA+nuToFjYt2t2jt8hpHJJhYLyjVVVVTw52hLkSha59fuVZwP6cweaRrRVaKPSR7a8aFx1KmPtY9A8OiZe9PU4x0oJMJvPm1q1bq+P8vuUBAV+4cOFHTDSPwQJIlZUYqCiLH8+aiHqYTx6P+gRevMCQ5knnqW/Ux1lxD5us9xGNhBZwUXk5dOinUBIwm8GXGehx9YFaVwGKl/sZL8ipIFn18bI1DvCj8PYUGcuBOFhvLqLIBjkanmRz/U6RQKwSFwzs3bt3LyIEZSmNZTIoL22EWHKBr7IYUbs1UPZ2tbUDZC8XiYNY/xyb2aXu7u5L48aN06XkQ7RPR34m9DHoUuhkTRmtfY1jYK1AI8mt4rp7XW3xKPkCF5QdYsaTdwq8lpaWaayFP8CYIKZPhDI2MFR9rF/UZmVvd3lk9pB/C8gjbCQZyoMm5q5kt13IGBsRbtZcpJKA1RjXJ5rADdDO3E3MXXQ5qeyrBWCfZpDxGkttlF1Es3vZqNpiPBc8TuNLK1asOFYkXEYlMoyujQdYUgvw8vNEx4KoqxvWKPxiZQpC4jl/EhH0AvWvR/2NeKNVuBs3MdAvZTWlSNCpW87qkqHdyi4L3cLN5/Wo36gQgD/FXD9hMHMOZdMjAhyWmOsCLdITozWvWrVqnyvjjVZnEA2uMqSQVO6nLhlL9JGX28jfGG2wmoAxX4NsILeT3cgWymgY6jK6ksuoTZn0Y3ghBcBsVHrieRgBQ+w0SBYXggyDSpGvodiIH92Kp7hZY3nsRZ/PwWkTl7KAeYqXnRcoop8hcj/rjAAY129Aeef72oVVSHTUHTHndQQlnGPNPwvYU6HjGBWY433m36R5SQEkeptXoSlltSl7Qj7JyfBdV8sA6/qI0CMIBc/Fyy7cD31p9erVY+bZvvMBugW9niMLtYHTkiqVBFxtGGIVXtYRWFjgXB/1SsbetUCRC09Ct3ha7cpMdIxQe4PybU3M+SoTHtakADfvquhZPCVvVpFcwRH1RXgFwGzfjwmkEtaQwKCeBvAr1uEO/BCiz6Ojea/v9OCwBxbxVVaWKPTz4iU57GsAvBVGVdRgA0lQAiQPHViFXRG5d7D0s4XmO/PL9VHRtRadLKYNVUEVA4lDXF9rp5KZMmXKtBThrMc+P+MshKl7KIsqfMMTPQOL9fs7A/PmrOj0q5u1gje1aTkvKpvT5Ehy1bVr1x6tpOP9QiCmUtTooW08mq1JFPk21oNuU3c0ocdBQLVBJ7si0g/9BcSzHGbAItqUYj3MQqawgJFUJ61jJZWVo7J5mvqBcu/G1nGMfqQDumwjhzUrrKqLxrNUiOoP6Oy6FyHxhDJkBHJYryirnfSuhO+StNeBgUHhrPdKVVGuhKelqsWsNtEHVZhCJ5nFUAuklxGg+RZPXzTm3fFzBh3tNRHqOEDbtMSHp6xXRh7W98gCNQLm2RuhFtdRR61dbxq1zx7MPaJUXV19Lp1OK0rl2bBh9TOoAQZDvdwcHgVBZJ52qo7ucRmEgRM8vN81gNHnfOSFgcDG8U+S28K6pUVlxXFe4JTd81FbbsaMGRTvjsRbSoWvvQ8uRyNkLU47+xOWl+VdtcU9zidQfSG8KxLRNgPdytYF2aRCWoAVyv40pCei4HWVld3j0LsGMHrNJJeNGNm8FvwVgRksYRDzOI+D0weTvY3t9w5lLjDoe1TqTBS6wasMYl7FIOZ1eR9eNsqfHMokYymLXiuGMj7y76W4Jv6XTrZRiZLiG5U+edjm5SGNzCPIlL1RDEWhocjqDSfya4bSB73/lOIc+5dAepK3uW6GGxYGyVLPih9FQi1PKvNc/k5RHKHPtuEeXY4eePhoihfiJyjoPxVxL/vNy3gyCDIKa6sD/IlyJhhjmZJfF0rMm540adKfU1zCuwHzd4RsDQPOkkLZM+Gcj0LbAFNfxOvTh0oMPOZsfRlBSXugL3cyMB6eP39+p99QDnpHGopuW33rsgayYM5t8j63mzL3z4Y6JzjeUh8DzBrdCw59Dgk7NQLZQfL9e/bsue2hTWQ9jZ6PSvlyEzgyNTU19v4tHNr89UjvifyzRrljyUCbed0z5M8q5U4QlwOsNqpfw/PIjDcPVN6DjhslYK92VGCgtwDcpHI8FSL4JgcZhXRIhNf3eAX6Az5nnAnMMSjoQzd35wt8bNMLea0p0wOeUa/71Ogd9Bw/fvx55wcPi8Fm8AJyc7xR1PsxoH2ghtrfGdQW8UQ7McQWPk+Oyasfnbn19fXjzp8/n+jq6so3NjbmT58+nZg+fXp+9uzZBkx86XT06FGRBLIB8ObNm8PXyyLAOl9R/qfWgx+OH12iA0Dx5WEBZd0bdY8jq0F/s3Tp0q2SG61E9NQxVl1DQwMHRTZ/8eLFHP/FzONpA3Tjxo1ca2trYuHChTkZZOrUqcbn5WR+1qxZ+WPHjmXWr1+vW6KlIsDisJafwauLC80FgF4WdYAUgwXFB7ANilL/oPy6Po2IP9yk18f0bQBYCrC5q1ev5gRYwNva2hI8/Ofwel4eraury3Of0H6S4KyVURIctznksnPnzk3HdbgFcPSvnVdQulae9ETZAMI3ilEcsB1jKIMt7BWu7uEJFDhMFOxk8vfjFvbx+qP0S27btq0eMI2Uq+kvpTOi8DLSgZShnIevu0F+zpw5ZgBujOZ5hboiAAMlTp482U443wTBpLcAliL6ksjAPySHds2kNgdM0d59oYQBlTJkhTrEaEYGQKkOZI9T/hv5Cu1XWG/thKLW4njaq/FiLRtLPU9ik+mbRi7LdN205bja9sIPgBnL1iPPwlkBF2hlQjnX3t6ukPZI6+CioRtkUQqAirhUAK23+l+R8lEywAKhzCQQ27HdEFnJYhB1yKOkHidlJwGXa3pol5L6vJrBI/rvhxRqY6wMEaH/TYvfhXwWoN0aC+OkZUSNQ/+8DCBKOFuIs1aznLF5wNqcKjPGjbVr1/b7YqPkebZs2bI/osA7AuU5AgPbPG0eFiIpYEx+orKDNQpbYnkpjiF8d3cDJgGR1FrFaxW1tbVJZZRWqOi9ub6OVADE+JLBQCnJM1aKYylFvYII0a6d6OzsTJcCKx3DOaxK38QG8drly5fvAfBH0RdiAWFrlLK5HmXRy4p6mpKVNYyELaQpK8RyeFB/C8zSLgETgioJgNa8PXICqJq+WeoypIBqU8rxmUQv3LUM0qLaxEQnTpxofBmCsXrWrVt33UYt8VPSw5LXGmDX20Lxn/IuipinNJHaoZbFV1lJXlSdoslSliEs3CUTtZks9bCkYh4zjysgAC3vpniPVsFS0PGYdA/TV8/yerxVNCQJ8TTHU2t8fJukz0+YsA+/qHrkyBF9iNqIEvrHu4FzzzKxha0cJw/T0cDRrkWeQ5leAabcTX8ZQ2tLXu+mr9ZfhyiAbbNCtoucA2iP+mNArVltWr0ypo4aqnkc0SuLarcmrK9z07uAvDmiSPk+lbIAex/O6GYG/RLzyNoCYZsXZc1tLhZVRcpGPFMcJQ0wyhlgDNQDAL1c0C0tAKaPyTGnNjlFhwymogEEeFrjs5nZPBjsPGf+ZddxMDokwBqMJ6SPM/k3yTUC6p6lbMeBQEohQEhBeUgKyhgG3IHS33Zt+hlA6l2KCuq9MgA5jax25R6NRyjbbk+Y29sXPJvGeKf5y7D90WUwoN4+ZMDq2NLS0oAyG1Dq0xEYeyOC0nbjkoKISXEB1U3HAEPZn7IKTVE7doRFYwg4/XXummcBk4anY8k8TN+M6syrM/rytGnT/tPfOYvcgGlYgH1E7rkPosQ6FNAuLlBaz1qnUsxeGwkA4ORxAZeyAqJ12CNZeAZQ7RpDVMBF1c7aNsAYSTu7duBTPOoNuBMjUzKNCLCPynXwAYDplelD6GreRnn3sIAbgMgovqZLAgasMBtgQAvzB6zdU9yPr/mcw6WjAtgnP3To0ER28yYUnkdIfhh+Up4WABlAgLWmVYdvgCibR70dw4mvW9Ul2s6xWf+vnL/2uw6D0VEFHJ9M/6bnce0jeGcmik8lN9A+HsCaU99yBUzrtpOQ74CvnfY6ZXmzFW/GLyfxoUdU/j+IDynLAWtddgAAAABJRU5ErkJggg==");background-size:contain}.zan-loading__spinner--gradient-circle.zan-loading__spinner--white{background:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADwAAAA8CAYAAAA6/NlyAAAAAXNSR0IArs4c6QAACZBJREFUaAXNmm2opVUVx+dOpWmNWZNpFkNEqIW9OUU2YkaRlZXUh4ikF3JAiIpCKCxCCokwicIIsw99CJsiIT8kChXOFGmNNahYSBYTZo2mFaYzmqbefr8z539bZ8/znJd77sss+J+199prr7X+ez/7eZ57zl3YsEqyuLh4FKG3glPBi4c4Dr0JPAMsgIfBfnA/+DPYC24HNy8sLDyCXnEx6YoJJDcT7J3gbPAq8DSQHNEbsSn2xeJQV/t/sd0KrgfXQP4f6BWRFDFXMIi+hgDbwZngKSBkaG6oRNp+H+Hq9ySdneAKiP/KgXlkLsIQfR3JPw5OA4lVydqel3CN9xviXQrxG9HLkhQ502SIehY/Dd4OKqHEq0XGVv3MZz9j1b/PL5e+vteAL0D8XvRMkoRTT4Ksl+2lwJuP0hZYi6/t1m8ewuY9AC6A9M/sTCspYip/yH4Ix28A77IRV16slWQRXfAd1PSxWRJPtcMEPYKgnwfnDoM7L4uVGLUfmzrtOm4Y+xmbxi+XdFecHxDrQnb7UQOPkyTs9YHssxn8OngFqIVlblcBjrUF9vnhOhI3ftFtzr68e4hzHqTHPsIS1KSHyHBnv8bAy8vgWl++SR2i6bf6tRi+T81HtgO1P5Ywjp8Dkq0kbU8D3EYkc0aMpVN3MuaaV1t8urTjkvZq7JVewqzUB5jlW1OVWkBtVx/bday2W79J/bqrtd3Oq2PnUfsnWof0q2NsG5iwjY4r5Xh8XJy0qz22LF7Goh9i3i5wE9gH7hvC8eeB48GJ4CzwJuA9Q+nLV/PEbzCBj+S0/17O808yEK3DiED2uRiuBs8cDsSnJoqtJqjjTr0BfA/8lsSPa5gk5H4qPr69nQ/OAZPyJH/8mLL09HCht5J75OWkOurs7l6COhtkLLoSik2ddsZvw/ZVEt2CXrZQh+fxYqA2R+JHJ2+tofrZvpo6PoJeEo1LQpKtdL4JtGcselIi41xGgqtsrJRQ0wXE+iJw95VaR2pTp13H9T+Hmn5hQ4nToEPwK2m8ctD5/1h8aqAkyJiXz2cIPPdfM8PcI4q63ojhO+AY0NaBaWSD6rhjv6auN9tQMuil7F88vlzkrhqtXysZU0v2w6tF1sTE3oV6G3gQKFnotj0YbD5eD7c3xLZEGMP7YyxaQsGTtEX6avvu7F70qgo57iSBf3ObtyVsXy7CdotPYRvIgDAr4KPgdGAwJaTSHhg7Prw5rcpl3JHLnd6J3Xd6JeQO9ro/szBvhaOPwKVL2ruyASpRxyOxV30LBeyIw1ppcl5Brt3DfO1Otv2U5bcw77Mz2GH0WXaKSEwJwbQHxuHH5bWzxu2LyZfda1NrD68sgD7v8WMjW/109CnA89gFzAMJeX12stI+b9dFyO0OXwtCLpd31yI4Jk6H69E2vDPnGUfzEJGoJCP2f5jOOupvNblDPuYsQvp+g3qGxpNAdm+czkQfDbems476JnJbS71sLSf9Lr1Vwi8EEp0k+rjTN3JJTfVuPCngPOPDGq4nRruz9vvkZAlvGY5KZhrc3BdtHey7Sk65eDf20hUeU6E9OEXDc0B22NWRdC4HmofI3w+xrJ/hblJnR0Ourcbx8DtBJ+/SVRJA4kr60WO/Mzo4Zc0+95EpO6vuk9S+SaejQVZAXWEAiWfc/uFE+B7qkcw4stYceZY7nHObVWh1nLPj6R8O2lo9t9PKRlfGnyy7xF0Nyey6fpu7nNfJ9vwZ8y6EcMhlt7t0Yh9OhP0uLFdk6hunFyX8r3EeZSyLcnyxrXdzy4wFHJCwt/auHW1tT+AnXg0OF3nLjIXcLuG/gJxR9STxJXyWG8WkeMsapwZvuO+YcfK1Ev5TM6lvZ2M/Cv/600szfc26/mzrFxezyB4J/x74PxV1l9u2QSUc+7ka1ll6f13oqesx7L/cyEv4f2jcAbKDIVXnaVMyto1L6mUHTWv/Se5tZB38QT9D9t1wfdgdVvxTKxJS47SLsz0T1kF/ZRk5f+ScEN5F2z/5ssvq3JX79Ems9Jpf2uT8JLWdAWYRue1wgnc6vw18gEB7aPqzxiyynXl3M3+un1WmTUgub1QSvmvaOUO/G6jxPttLbykEO5X+l4YO41TOc3wO0LiIgD7PV02o70iCbwGpOXW0OjXEbv8e6nvERibb9teHL6NeOuh0fxjEOTWYnr6P+7vSqnz1Q11eiUeYCDF38rftgcPwIz5ewUvf0LSEfb5eUmY5qSWYQK026HcJfl2ZP3cTsv7HkPBeYk7vL+rkt69Exx6fx6nJuQMZIayFBBeiPCuRBGj7rT1B/4DjVSTxp5FlC3X4xcSxwBurZEI0edJnaGkh0lY7/gR1+Pxdki7Cvr1cDnyjqhKCXVpbrgQTKbvBT8GddYUd6BNIGmMTOA54Zo2Vp4faPNG2Rd8CMLThIXKnHvujZ3hg4YPEp6E+24wbXIk2kO0QrXb9Upg3Nc/274B/mQl/cdTfb1sk5uJK1MV2RyThC5E5fAsMcecYV9HHfhBiWYADkHXuiByywxmF9LtofzB9tIGVJGiJJlEWIn4WqO1RoI9ktakt6MFhf/9QezfVL4RdgErYOcZOHn2TK3o/ZDu/2MiLB3NGhQk/xvJzkCBJEsckzHjs6Xdp50QcV1w4YS3+FZa+bW3j7HUc14E81kfW0cGLx0G/zs9vYz0BvARYiJKiu3RIqHNJuwP6Zoe1i4jElGgv8exabM43v3HdcbU2dez6muPfoFdcoV4ZnoHLcPgjSAKTiCq13/rZl0Ck+mYRHctuaRMSiM12l93x2F2I+6m5xsc0KjpPFM6z3+SfD84ECSgRxX5s6pBT6+OZs50z6dlKX+1NTW3Bas+w89ytzK9aH/PkLNt2V++dRBafwQqqx4o7Da7EyRfwSs5CIrbrWGt3rCLj2aHo7GqXziXuXNvCXfXVMbkd65VJZ3hkIkGvY7f/hvGjIL9YhETIh7g7YNvzqnZn4kNzSSRWJaTUjjnPxTCP833FVHtF3EVN3uWnljbZxIkkuA2ni4AvForJ6+pmAbp0JVznGEdSqSe7rV1b+tEPYLtjVrIGM8Cyhd32PwfeDbyLh7ha5Ix5FiWXMxqdMxqt3XmtrleKZ3UvRMfeifHplbkIJyrET6btV6b52ieEqw6REGx1xlstYX/Pkqg7O5esCOFUAPFjaG8F/tX1AmD87FB0Syj9Ou659w/2feCvEHVxVkRWlHCtCPLeXF4ETgSbwbHAd2dzerOUqI8qH1M+mv4JvFTdTe+89eUE08rI/wCfdm58JaCP1gAAAABJRU5ErkJggg==");background-size:contain}.zan-button{position:relative;padding:0;display:inline-block;height:45px;line-height:43px;border-radius:4px;border:0;box-sizing:border-box;font-size:16px;text-align:center;-webkit-appearance:none;-moz-appearance:none;appearance:none;outline:0;overflow:hidden}.zan-button:after{content:" ";position:absolute 0 0 0 0;background-color:#000;opacity:0}.zan-button:not(.is-disabled):active:after{opacity:.3}.zan-button+.zan-button{margin-left:10px}.zan-button+.zan-button--block{margin-left:0}.zan-button--default{color:#333;background-color:#fff;border:1px solid #bbb}.zan-button--primary{color:#fff;background-color:#4b0;border:1px solid #0a0}.zan-button--danger{color:#fff;background-color:#f44;border:1px solid #e33}.zan-button--large{width:100%;height:50px;line-height:48px;font-size:16px}.zan-button--normal{padding:0 10px;font-size:14px}.zan-button--small{min-width:60px;height:30px;line-height:28px;font-size:12px}.zan-button--mini{display:inline-block;width:50px;height:22px;line-height:20px;font-size:10px}.zan-button--mini+.zan-button--mini{margin-left:5px}.zan-button--disabled{color:#999;background-color:#e5e5e5;border:1px solid #cacaca}.zan-button--block{display:block;width:100%}.zan-button--loading .zan-button__text{display:none}.zan-button__icon-loading{display:inline-block;width:16px;height:16px;vertical-align:middle}.zan-cell-group{padding-left:15px;position:relative;background-color:#fff}.zan-cell-group:after{content:"";position:absolute;top:0;left:0;box-sizing:border-box;width:200%;height:200%;-webkit-transform:scale(.5);transform:scale(.5);-webkit-transform-origin:left top;transform-origin:left top;-webkit-perspective:1000;-webkit-backface-visibility:hidden;pointer-events:none;border-top:1px solid #e5e5e5;border-bottom:1px solid #e5e5e5}.zan-cell{display:block;position:relative;padding:10px 15px 10px 0;box-sizing:border-box;line-height:22px;background-color:#fff;color:#333;font-size:14px;text-decoration:none;overflow:hidden}.zan-cell .zan-icon-arrow{position:absolute;top:50%;right:15px;-webkit-transform:translateY(-50%);transform:translateY(-50%);color:#999;font-size:12px}.zan-cell:after{content:"";position:absolute;top:0;left:0;box-sizing:border-box;width:200%;height:200%;-webkit-transform:scale(.5);transform:scale(.5);-webkit-transform-origin:left top;transform-origin:left top;-webkit-perspective:1000;-webkit-backface-visibility:hidden;pointer-events:none;border-bottom:1px solid #e5e5e5}.zan-cell:last-child:after{border-bottom:0}.zan-cell__title{float:left}.zan-cell__title.zan-cell__required:before{content:"*";position:absolute;left:-7px;font-size:14px;color:#f44}.zan-cell__label{display:block;font-size:12px;line-height:1.2;color:#666}.zan-cell__value{float:right;overflow:hidden}.zan-cell__value.is-alone{float:none}.zan-cell__value.is-link{margin-right:20px}.zan-card{padding:5px 15px 5px 115px;height:90px;background:#fafafa;overflow:hidden;position:relative;margin-top:10px}.zan-card:first-child{margin-top:0}.zan-card__img{width:90px;height:90px;border:0;position:absolute;top:5px;left:15px}.zan-card__content{display:table;width:100%}.zan-card__content.is-center{display:table;height:90px}.zan-card__content.is-center .zan-card__info{display:table-cell;vertical-align:middle}.zan-card__row{overflow:hidden;padding-right:80px;position:relative}.zan-card__title{line-height:20px;color:#333;max-height:40px;margin-bottom:5px;-webkit-line-clamp:2}.zan-card__desc,.zan-card__title{word-break:break-all;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-box-orient:vertical}.zan-card__desc{font-size:12px;color:#666;max-height:20px;-webkit-line-clamp:1}.zan-card__price{font-size:14px;color:#333}.zan-card__num,.zan-card__price{position:absolute;top:0;right:0;width:80px;text-align:right}.zan-card__num{font-size:12px;color:#666}.zan-card__footer{position:absolute;right:15px;bottom:5px}.zan-card__footer .zan-button{margin-left:5px}.zan-modal{position:fixed;width:100%;height:100%;top:0;left:0;background-color:rgba(0,0,0,.701961);-webkit-transition:all .5s ease-out;transition:all .5s ease-out}.zan-popup{position:fixed;background-color:#fff;top:50%;left:50%;-webkit-transform:translate3d(-50%,-50%,0);transform:translate3d(-50%,-50%,0);-webkit-backface-visibility:hidden;backface-visibility:hidden;-webkit-transition:.2s ease-out;transition:.2s ease-out}.zan-popup--top{width:100%;top:0;right:auto;bottom:auto;left:50%;-webkit-transform:translate3d(-50%,0,0);transform:translate3d(-50%,0,0)}.zan-popup--right{top:50%;right:0;bottom:auto;left:auto;-webkit-transform:translate3d(0,-50%,0);transform:translate3d(0,-50%,0)}.zan-popup--bottom{width:100%;top:auto;bottom:0;right:auto;left:50%;-webkit-transform:translate3d(-50%,0,0);transform:translate3d(-50%,0,0)}.zan-popup--left{top:50%;right:auto;bottom:auto;left:0;-webkit-transform:translate3d(0,-50%,0);transform:translate3d(0,-50%,0)}.popup-slide-top-enter,.popup-slide-top-leave-active{-webkit-transform:translate3d(-50%,-100%,0);transform:translate3d(-50%,-100%,0)}.popup-slide-right-enter,.popup-slide-right-leave-active{-webkit-transform:translate3d(100%,-50%,0);transform:translate3d(100%,-50%,0)}.popup-slide-bottom-enter,.popup-slide-bottom-leave-active{-webkit-transform:translate3d(-50%,100%,0);transform:translate3d(-50%,100%,0)}.popup-slide-left-enter,.popup-slide-left-leave-active{-webkit-transform:translate3d(-100%,-50%,0);transform:translate3d(-100%,-50%,0)}.popup-fade-enter,.popup-fade-leave-active{opacity:0}.zan-dialog-wrapper{position:absolute}.zan-dialog{position:fixed;top:50%;left:50%;-webkit-transform:translate3d(-50%,-50%,0);transform:translate3d(-50%,-50%,0);background-color:#fff;width:85%;border-radius:4px;font-size:16px;overflow:hidden;-webkit-backface-visibility:hidden;backface-visibility:hidden;-webkit-transition:.2s;transition:.2s}.zan-dialog__header{padding:15px 0 0}.zan-dialog__content{padding:15px 20px;min-height:36px;position:relative}.zan-dialog__content:after{content:"";position:absolute;top:0;left:0;box-sizing:border-box;width:200%;height:200%;-webkit-transform:scale(.5);transform:scale(.5);-webkit-transform-origin:left top;transform-origin:left top;-webkit-perspective:1000;-webkit-backface-visibility:hidden;pointer-events:none;border-bottom:1px solid #e5e5e5}.zan-dialog__title{text-align:center;padding-left:0;margin-bottom:0;font-size:16px;color:#333}.zan-dialog__message{color:#999;margin:0;font-size:14px;line-height:1.5}.zan-dialog__footer{font-size:14px;overflow:hidden}.zan-dialog__footer.is-twobtn .zan-dialog__btn{width:50%}.zan-dialog__footer.is-twobtn .zan-dialog__cancel:after{content:"";position:absolute;top:0;left:0;box-sizing:border-box;width:200%;height:200%;-webkit-transform:scale(.5);transform:scale(.5);-webkit-transform-origin:left top;transform-origin:left top;-webkit-perspective:1000;-webkit-backface-visibility:hidden;pointer-events:none;border-right:1px solid #e5e5e5}.zan-dialog__btn{line-height:40px;border:0;background-color:#fff;float:left;box-sizing:border-box;text-align:center;position:relative}.zan-dialog__cancel{color:#333}.zan-dialog__confirm{color:#00c000;width:100%}.dialog-bounce-enter{opacity:0;-webkit-transform:translate3d(-50%,-50%,0) scale(.7);transform:translate3d(-50%,-50%,0) scale(.7)}.dialog-bounce-leave-active{opacity:0;-webkit-transform:translate3d(-50%,-50%,0) scale(.9);transform:translate3d(-50%,-50%,0) scale(.9)}.zan-field{width:100%}.zan-field .zan-cell__title,.zan-field .zan-cell__value{float:none;box-sizing:border-box}.zan-field .zan-cell__title{width:90px;position:absolute;top:10px;left:0}.zan-field .zan-cell__value{width:100%;padding-left:90px}.zan-field--hastextarea .zan-field__control{min-height:60px}.zan-field--nolabel .zan-cell__title{display:none}.zan-field--nolabel .zan-cell__value{width:100%;padding-left:0}.zan-field--disabled .zan-field__control{color:#999}.zan-field--error .zan-field__control{color:#ed5050}.zan-field--border .zan-field__control{padding-left:10px}.zan-field--border:after{border-radius:2px;border:1px solid #e5e5e5}.zan-field--border:after,.zan-field--border:last-child:after{content:"";position:absolute;top:0;left:0;box-sizing:border-box;width:200%;height:200%;-webkit-transform:scale(.5);transform:scale(.5);-webkit-transform-origin:left top;transform-origin:left top;-webkit-perspective:1000;-webkit-backface-visibility:hidden;pointer-events:none}.zan-field--border:last-child:after{border-bottom:1px solid #e5e5e5}.zan-field--autosize .zan-field__control{min-height:0}.zan-field__control{border:0;font-size:14px;line-height:22px;display:block;width:100%;resize:none;outline:0}@font-face{font-family:zan-icon;src:url("//b.yzcdn.cn/zanui/icon/zanui-icon-d64cb2f719.eot");src:url("//b.yzcdn.cn/zanui/icon/zanui-icon-d64cb2f719.eot?#iefix") format("embedded-opentype"),url("//b.yzcdn.cn/zanui/icon/zanui-icon-d64cb2f719.woff2") format("woff2"),url("//b.yzcdn.cn/zanui/icon/zanui-icon-d64cb2f719.woff") format("woff"),url("//b.yzcdn.cn/zanui/icon/zanui-icon-d64cb2f719.ttf") format("truetype")}.zan-icon,.zan-icon:before{display:inline-block}.zan-icon:before{font-family:zan-icon!important;font-style:normal;font-weight:400;speak:none;text-decoration:inherit;width:1em;text-align:center;font-variant:normal;text-transform:none;line-height:1em;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.zan-icon-qr-invalid:before{content:"\E800"}.zan-icon-qr:before{content:"\E801"}.zan-icon-exchange:before{content:"\E802"}.zan-icon-close:before{content:"\E803"}.zan-icon-location:before{content:"\E804"}.zan-icon-upgrade:before{content:"\E805"}.zan-icon-check:before{content:"\E806"}.zan-icon-checked:before{content:"\E807"}.zan-icon-like-o:before{content:"\E808"}.zan-icon-like:before{content:"\E809"}.zan-icon-chat:before{content:"\E80A"}.zan-icon-shop:before{content:"\E80B"}.zan-icon-photograph:before{content:"\E80C"}.zan-icon-add:before{content:"\E80D"}.zan-icon-add2:before{content:"\E80E"}.zan-icon-photo:before{content:"\E80F"}.zan-icon-logistics:before{content:"\E810"}.zan-icon-edit:before{content:"\E811"}.zan-icon-passed:before{content:"\E812"}.zan-icon-cart:before{content:"\E813"}.zan-icon-arrow:before{content:"\E814"}.zan-icon-gift:before{content:"\E815"}.zan-icon-search:before{content:"\E816"}.zan-icon-clear:before{content:"\E817"}.zan-icon-success:before{content:"\E818"}.zan-icon-fail:before{content:"\E819"}.zan-picker{overflow:hidden;background-color:#fff}.zan-picker__toolbar{height:40px;line-height:40px;overflow:hidden;padding:0 15px;position:relative}.zan-picker__toolbar:after{content:"";position:absolute;top:0;left:0;box-sizing:border-box;width:200%;height:200%;-webkit-transform:scale(.5);transform:scale(.5);-webkit-transform-origin:left top;transform-origin:left top;-webkit-perspective:1000;-webkit-backface-visibility:hidden;pointer-events:none;border-top:1px solid #e5e5e5;border-bottom:1px solid #e5e5e5}.zan-picker__cancel{color:#38f;float:left}.zan-picker__confirm{color:#38f;float:right}.zan-picker__columns{position:relative;overflow:hidden}.zan-picker__columns--1 .zan-picker-column{width:100%}.zan-picker__columns--2 .zan-picker-column{width:50%}.zan-picker__columns--3 .zan-picker-column{width:33.333%}.zan-picker__columns--4 .zan-picker-column{width:25%}.zan-picker__columns--5 .zan-picker-column{width:20%}.zan-picker-center-highlight{box-sizing:border-box;position:absolute;left:0;width:100%;top:50%;margin-top:-18px;pointer-events:none}.zan-picker-center-highlight:after,.zan-picker-center-highlight:before{content:"";position:absolute;height:1px;width:100%;background-color:#eaeaea;display:block;zan-index:15;-webkit-transform:scaleY(.5);transform:scaleY(.5)}.zan-picker-center-highlight:before{left:0;top:0;bottom:auto;right:auto}.zan-picker-center-highlight:after{left:0;bottom:0;right:auto;top:auto}.zan-picker-column{font-size:18px;overflow:hidden;position:relative;max-height:100%;float:left;text-align:center}.zan-picker-column__item{height:44px;line-height:44px;padding:0 10px;white-space:nowrap;position:relative;overflow:hidden;text-overflow:ellipsis;color:#707274;left:0;top:0;width:100%;box-sizing:border-box;-webkit-transition-duration:.3s;transition-duration:.3s;-webkit-backface-visibility:hidden;backface-visibility:hidden}.zan-picker-column__item--selected{color:#000;-webkit-transform:translateZ(0) rotateX(0);transform:translateZ(0) rotateX(0)}.picker-column-wrapper{-webkit-transition-duration:.3s;transition-duration:.3s;-webkit-transition-timing-function:ease-out;transition-timing-function:ease-out;-webkit-backface-visibility:hidden;backface-visibility:hidden}.picker-column-wrapper.dragging,.picker-column-wrapper.dragging .picker-item{-webkit-transition-duration:0s;transition-duration:0s}.zan-radio{overflow:hidden}.zan-radio .zan-icon{font-size:22px;line-height:1}.zan-radio .zan-icon-checked{color:#06bf04}.zan-radio .zan-icon-check{color:#999}.zan-radio--disabled .zan-icon{color:#d1dbe5}.zan-radio__input{position:relative;height:22px;float:left}.zan-radio__control{position:absolute;top:0;left:0;width:22px;height:22px;opacity:0;margin:0}.zan-radio__label{line-height:22px;display:block;margin-left:37px}.zan-switch{height:31px;width:51px;display:inline-block;position:relative;background:#fff;border-radius:16px}.zan-switch:after{content:"";position:absolute;top:0;left:0;box-sizing:border-box;width:200%;height:200%;-webkit-transform:scale(.5);transform:scale(.5);-webkit-transform-origin:left top;transform-origin:left top;-webkit-perspective:1000;-webkit-backface-visibility:hidden;pointer-events:none;border:1px solid rgba(0,0,0,.1);border-width:3px;border-radius:32px}.zan-switch__node{width:28px;height:28px;border-radius:13.5px;background-color:#fff;position:absolute;box-shadow:0 3px 1px 0 rgba(0,0,0,.05),0 2px 2px 0 rgba(0,0,0,.1),0 3px 3px 0 rgba(0,0,0,.05);left:1px;top:1px;z-index:2}.zan-switch__node:after{content:"";position:absolute;top:0;left:0;box-sizing:border-box;width:200%;height:200%;-webkit-transform:scale(.5);transform:scale(.5);-webkit-transform-origin:left top;transform-origin:left top;-webkit-perspective:1000;-webkit-backface-visibility:hidden;pointer-events:none;border:1px solid rgba(0,0,0,.1);border-radius:27px}.zan-switch__loading{width:16px;height:16px;position:relative;left:50%;top:50%;-webkit-transform:translate3d(-50%,-50%,0);transform:translate3d(-50%,-50%,0)}.zan-switch--on{background-color:#44db5e}.zan-switch--on .zan-switch__node{-webkit-transform:translateX(20px);transform:translateX(20px)}.zan-switch--on:after{border-color:#44db5e}.zan-switch--off{background-color:#fff;border-color:rgba(0,0,0,.1)}.zan-switch--disabled{opacity:.4}.zan-badge-group{position:relative;width:85px}.zan-badge-group:after{content:"";position:absolute;top:0;left:0;box-sizing:border-box;width:200%;height:200%;-webkit-transform:scale(.5);transform:scale(.5);-webkit-transform-origin:left top;transform-origin:left top;-webkit-perspective:1000;-webkit-backface-visibility:hidden;pointer-events:none;border-top:1px solid #e5e5e5}.zan-badge{display:block;overflow:hidden;position:relative;padding:20px 12px;box-sizing:border-box;line-height:1.4;background-color:#f8f8f8;color:#666;font-size:14px;text-decoration:none;word-break:break-all}.zan-badge:after{content:"";position:absolute;top:0;left:0;box-sizing:border-box;width:200%;height:200%;-webkit-transform:scale(.5);transform:scale(.5);-webkit-transform-origin:left top;transform-origin:left top;-webkit-perspective:1000;-webkit-backface-visibility:hidden;pointer-events:none;border-bottom:1px solid #e5e5e5}.zan-badge:last-child:after{border-bottom:0}.zan-badge.is-select{font-weight:700;color:#333;background-color:#fff}.zan-badge.is-select .zan-badge__active{display:block}.zan-badge.is-select:after{-webkit-transform:scale(.5);-webkit-transform-origin:left top;border-top:1px solid #e5e5e5;border-right:1px solid #e5e5e5;content:"";position:absolute;top:0;left:0;box-sizing:border-box;width:200%;height:200%;transform:scale(.5);transform-origin:left top;-webkit-perspective:1000;-webkit-backface-visibility:hidden;pointer-events:none;border-left:1px solid #e5e5e5}.zan-badge__active{display:none;left:0;top:0;width:3px;height:100%}.zan-badge__active,.zan-badge__info{position:absolute;background-color:#f44}.zan-badge__info{top:2px;right:2px;font-size:10px;-webkit-transform:scale(.8);transform:scale(.8);text-align:center;box-sizing:border-box;padding:0 6px;min-width:18px;height:18px;line-height:18px;border-radius:9px;color:#fff}.zan-search{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:distribute;justify-content:space-around;-webkit-box-align:center;-ms-flex-align:center;align-items:center;position:relative;box-sizing:border-box;padding:4px 15px;background-color:#f2f2f2}.zan-search .zan-icon-search{color:#666;position:absolute;top:9px;left:10px;font-size:16px}.zan-search .zan-icon-clear{display:none;position:absolute;right:5px;top:8px;color:#888}.zan-search--focus .zan-search__input-wrap{width:82%}.zan-search--focus .zan-icon-clear{display:inline-block}.zan-search__input-wrap{position:relative;width:90%;padding:8px 24px 8px 35px;border:1px solid #e5e5e5;border-radius:4px;background-color:#fff}.zan-search__input-wrap input{width:100%;height:14px;font-size:14px;color:#999;border:none;outline:none}.zan-search__cancel{display:none;color:#4b0;font-size:14px;white-space:nowrap;margin-left:5px}.zan-search__cancel--focus{display:block}.zan-panel{background:#fff;border-top:1px solid #e5e5e5}.zan-panel,.zan-panel__header{border-bottom:1px solid #e5e5e5}.zan-panel__header{padding:10px 15px;position:relative}.zan-panel__title{font-size:14px;color:#333}.zan-panel__desc{font-size:12px;color:#666}.zan-panel__status{font-size:14px;position:absolute;top:10px;right:15px;color:#f44}.zan-panel__footer{border-top:1px solid #e5e5e5;padding:10px 15px}.zan-steps{overflow:hidden;padding:0 10px;background-color:#fff}.zan-steps--4 .zan-step{width:33.2%}.zan-steps--3 .zan-step{width:50%}.zan-steps__icon{font-size:40px;line-height:1;float:left;margin-right:10px}.zan-steps__message{display:table;height:40px;margin:15px 0}.zan-steps__message .zan-steps__message-wrapper{display:table-cell;vertical-align:middle}.zan-steps__title{font-size:14px;color:#333}.zan-steps__desc{font-size:12px;line-height:1.5;color:#999;max-height:18px;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical}.zan-steps__items{margin:0 0 10px;overflow:hidden;padding-bottom:20px;position:relative}.zan-step{font-size:14px;float:left;position:relative;color:#999}.zan-step .zan-step__circle-container{position:absolute;top:28px;left:-8px;padding:0 8px;background-color:#fff;z-index:1}.zan-step:first-child .zan-step__title{-webkit-transform:none;transform:none;margin-left:0}.zan-step:last-child{position:absolute;right:10px;width:auto}.zan-step:last-child .zan-step__title{-webkit-transform:none;transform:none;margin-left:0}.zan-step:last-child .zan-step__circle-container{left:auto;right:-9px}.zan-step:last-child .zan-step__line{width:0}.zan-step--finish{color:#333}.zan-step--finish .zan-step__circle,.zan-step--finish .zan-step__line{background-color:#06bf04}.zan-step--process{color:#333}.zan-step--process .zan-step__circle-container{top:24px}.zan-step--process .zan-icon{font-size:12px;color:#06bf04;line-height:1;display:block}.zan-step__circle{display:block;width:5px;height:5px;background-color:#888;border-radius:50%}.zan-step__title{font-size:12px;-webkit-transform:translate3d(-50%,0,0);transform:translate3d(-50%,0,0);display:inline-block;margin-left:3px}.zan-step__line{position:absolute;left:0;top:30px;width:100%;height:1px;background-color:#e5e5e5}.zan-tag{position:relative;display:inline-block;line-height:14px;padding:1px 5px;border-radius:2px;font-size:10px;background:#c9c9c9;color:#fff}.zan-tag:after{content:"";position:absolute;top:0;left:0;box-sizing:border-box;width:200%;height:200%;-webkit-transform:scale(.5);transform:scale(.5);-webkit-transform-origin:left top;transform-origin:left top;-webkit-perspective:1000;-webkit-backface-visibility:hidden;pointer-events:none;border:1px solid #c9c9c9;border-radius:4px}.zan-tag.is-mark{border-radius:0 8px 8px 0}.zan-tag.is-mark:after{border-radius:0 16px 16px 0}.zan-tag.is-plain{background:#fff;color:#c9c9c9}.zan-tag--success{background:#06bf04}.zan-tag--success:after{border-color:#06bf04}.zan-tag--success.is-plain{color:#06bf04}.zan-tag--danger{background:#f44}.zan-tag--danger:after{border-color:#f44}.zan-tag--danger.is-plain{color:#f44}.zan-tag--primary{background:#38f}.zan-tag--primary:after{border-color:#38f}.zan-tag--primary.is-plain{color:#38f}.zan-checkbox{overflow:hidden}.zan-checkbox .zan-icon{font-size:22px;line-height:1}.zan-checkbox .zan-icon-checked{color:#06bf04}.zan-checkbox .zan-icon-check{color:#999}.zan-checkbox--disabled .zan-icon{color:#d1dbe5}.zan-checkbox__input{position:relative;height:22px;margin-right:15px;float:left}.zan-checkbox__control{position:absolute;top:0;left:0;width:22px;height:22px;opacity:0;margin:0}.zan-checkbox__label{line-height:22px;margin-left:37px;display:block}.zan-tabs{position:relative}.zan-tabs--col-2 .zan-tab{width:50%}.zan-tabs--col-3 .zan-tab{width:33.33333333333333%}.zan-tabs--col-4 .zan-tab{width:25%}.zan-tabs--col-5 .zan-tab{width:20%}.zan-tabs__nav{overflow:hidden;-webkit-transition:-webkit-transform .5s cubic-bezier(.645,.045,.355,1);transition:-webkit-transform .5s cubic-bezier(.645,.045,.355,1);transition:transform .5s cubic-bezier(.645,.045,.355,1);transition:transform .5s cubic-bezier(.645,.045,.355,1),-webkit-transform .5s cubic-bezier(.645,.045,.355,1);position:relative}.zan-tabs__nav--line{height:44px;background-color:#fff}.zan-tabs__nav--line .zan-tabs-nav-bar{display:block}.zan-tabs__nav--line:after{-webkit-transform:scale(.5);-webkit-transform-origin:left top;border-top:1px solid #e5e5e5;content:"";position:absolute;top:0;left:0;box-sizing:border-box;width:200%;height:200%;transform:scale(.5);transform-origin:left top;-webkit-perspective:1000;-webkit-backface-visibility:hidden;pointer-events:none;border-bottom:1px solid #e5e5e5}.zan-tabs__nav--card{height:28px;margin:0 15px;background-color:#fff;border-radius:2px;border:1px solid #666;overflow:hidden}.zan-tabs__nav--card .zan-tabs__nav-bar{display:none}.zan-tabs__nav--card .zan-tab{color:#666;line-height:28px;border-right:1px solid #666}.zan-tabs__nav--card .zan-tab:last-child{border-right:none}.zan-tabs__nav--card .zan-tab.zan-tab--active{background-color:#666;color:#fff}.zan-tabs__nav-bar{z-index:1;position:absolute;left:0;bottom:0;height:2px;background-color:#f13e3a;-webkit-transition:-webkit-transform .3s cubic-bezier(.645,.045,.355,1);transition:-webkit-transform .3s cubic-bezier(.645,.045,.355,1);transition:transform .3s cubic-bezier(.645,.045,.355,1);transition:transform .3s cubic-bezier(.645,.045,.355,1),-webkit-transform .3s cubic-bezier(.645,.045,.355,1);-webkit-transform-origin:0 0;transform-origin:0 0}.zan-tab{color:#333;font-size:14px;line-height:44px;box-sizing:border-box;-webkit-transition:color .3s cubic-bezier(.645,.045,.355,1);transition:color .3s cubic-bezier(.645,.045,.355,1);cursor:pointer;text-align:center;float:left}.zan-tab--active{color:#f44}.zan-tab__pane{display:none}.zan-tab__pane--select{display:block}.zan-col{float:left;box-sizing:border-box}.zan-col-1{width:4.166666666666667%}.zan-col-2{width:8.333333333333334%}.zan-col-3{width:12.5%}.zan-col-4{width:16.666666666666668%}.zan-col-5{width:20.833333333333336%}.zan-col-6{width:25%}.zan-col-7{width:29.166666666666668%}.zan-col-8{width:33.333333333333336%}.zan-col-9{width:37.5%}.zan-col-10{width:41.66666666666667%}.zan-col-11{width:45.833333333333336%}.zan-col-12{width:50%}.zan-col-13{width:54.16666666666667%}.zan-col-14{width:58.333333333333336%}.zan-col-15{width:62.50000000000001%}.zan-col-16{width:66.66666666666667%}.zan-col-17{width:70.83333333333334%}.zan-col-18{width:75%}.zan-col-19{width:79.16666666666667%}.zan-col-20{width:83.33333333333334%}.zan-col-21{width:87.5%}.zan-col-22{width:91.66666666666667%}.zan-col-23{width:95.83333333333334%}.zan-col-24{width:100%}.zan-col-offset-1{margin-left:4.166666666666667%}.zan-col-offset-2{margin-left:8.333333333333334%}.zan-col-offset-3{margin-left:12.5%}.zan-col-offset-4{margin-left:16.666666666666668%}.zan-col-offset-5{margin-left:20.833333333333336%}.zan-col-offset-6{margin-left:25%}.zan-col-offset-7{margin-left:29.166666666666668%}.zan-col-offset-8{margin-left:33.333333333333336%}.zan-col-offset-9{margin-left:37.5%}.zan-col-offset-10{margin-left:41.66666666666667%}.zan-col-offset-11{margin-left:45.833333333333336%}.zan-col-offset-12{margin-left:50%}.zan-col-offset-13{margin-left:54.16666666666667%}.zan-col-offset-14{margin-left:58.333333333333336%}.zan-col-offset-15{margin-left:62.50000000000001%}.zan-col-offset-16{margin-left:66.66666666666667%}.zan-col-offset-17{margin-left:70.83333333333334%}.zan-col-offset-18{margin-left:75%}.zan-col-offset-19{margin-left:79.16666666666667%}.zan-col-offset-20{margin-left:83.33333333333334%}.zan-col-offset-21{margin-left:87.5%}.zan-col-offset-22{margin-left:91.66666666666667%}.zan-col-offset-23{margin-left:95.83333333333334%}.zan-col-offset-24{margin-left:100%}.zan-row{zoom:1}.zan-row:after{content:"";display:table;clear:both}.zan-image-preview{position:fixed;top:0;left:0;width:100%;height:100%;overflow:auto}.zan-image-preview .zan-swipe{height:100%}.zan-image-preview__image{display:block;width:100%;height:auto;-webkit-transition:.2s ease-out;transition:.2s ease-out;position:absolute;left:0}.zan-image-preview__image--center{top:50%;-webkit-transform:translate3d(0,-50%,0);transform:translate3d(0,-50%,0)}.zan-actionsheet{position:fixed;width:100%;top:auto;bottom:0;right:auto;left:50%;-webkit-transform:translate3d(-50%,0,0);transform:translate3d(-50%,0,0);-webkit-backface-visibility:hidden;backface-visibility:hidden;-webkit-transition:.2s ease-out;transition:.2s ease-out;background-color:#e0e0e0}.zan-actionsheet--withtitle{background-color:#fff}.zan-actionsheet__item{line-height:50px;text-align:center;color:#333;font-size:16px;position:relative;background-color:#fff}.zan-actionsheet__item:after{content:"";position:absolute;top:0;left:0;box-sizing:border-box;width:200%;height:200%;-webkit-transform:scale(.5);transform:scale(.5);-webkit-transform-origin:left top;transform-origin:left top;-webkit-perspective:1000;-webkit-backface-visibility:hidden;pointer-events:none;border-top:1px solid #e5e5e5}.zan-actionsheet__item--loading{padding:10px 0}.zan-actionsheet__subname{color:#666;font-size:12px}.zan-actionsheet__loading{margin:0 auto}.zan-actionsheet__button{display:block;margin-top:5px;line-height:50px;color:#333;font-size:16px;text-align:center;background-color:#fff}.zan-actionsheet__header{line-height:44px;color:#333;text-align:center;position:relative}.zan-actionsheet__header .zan-icon-close{position:absolute;font-size:22px;line-height:22px;top:11px;right:15px}.zan-actionsheet__header:after{content:"";position:absolute;top:0;left:0;box-sizing:border-box;width:200%;height:200%;-webkit-transform:scale(.5);transform:scale(.5);-webkit-transform-origin:left top;transform-origin:left top;-webkit-perspective:1000;-webkit-backface-visibility:hidden;pointer-events:none;border-top:1px solid #e5e5e5;border-bottom:1px solid #e5e5e5}.actionsheet-float-enter,.actionsheet-float-leave-active{-webkit-transform:translate3d(-50%,100%,0);transform:translate3d(-50%,100%,0)}.zan-quantity{font-size:0}.zan-quantity__stepper{width:40px;height:30px;box-sizing:border-box;background-color:#fff;border:1px solid #999;position:relative;outline:0;padding:5px;vertical-align:middle}.zan-quantity__stepper:before{width:9px;height:1px}.zan-quantity__stepper:after{width:1px;height:9px}.zan-quantity__stepper:after,.zan-quantity__stepper:before{content:"";position:absolute;margin:auto;top:0;left:0;right:0;bottom:0;background-color:#6c6c6c}.zan-quantity__minus{border-radius:2px 0 0 2px}.zan-quantity__minus:after{display:none}.zan-quantity__minus--disabled{background-color:#f8f8f8;border-color:#e8e8e8 #999 #e8e8e8 #e8e8e8}.zan-quantity__plus{border-radius:0 2px 2px 0}.zan-quantity__plus--disabled{background-color:#f8f8f8;border-color:#e8e8e8 #e8e8e8 #e8e8e8 #999}.zan-quantity__input{width:33px;height:26px;padding:1px;border:1px solid #999;border-width:1px 0;border-radius:0;box-sizing:content-box;color:#666;font-size:14px;outline:0;vertical-align:middle;text-align:center;-webkit-appearance:none}.zan-progress__bar{height:4px;border-radius:4.5px;width:100%;background:#e5e5e5;position:relative}.zan-progress__bar__finished-portion{border-radius:4.5px;height:100%;position:absolute;left:0;display:inline-block}.zan-progress__bar__pivot{padding:2px 0;font-size:8px;position:absolute;border-radius:6px;width:28px;background-color:#e5e5e5;line-height:8px;text-align:center;top:50%;-webkit-transform:translate3d(0,-50%,0);transform:translate3d(0,-50%,0)}.zan-toast{position:fixed;z-index:3001;border-radius:5px;background-color:#272727;opacity:.7;top:50%;left:50%;-webkit-transform:translate3d(-50%,-50%,0);transform:translate3d(-50%,-50%,0);font-size:12px;color:#fff;text-align:center;line-height:12px}.zan-toast__overlay{position:fixed;left:0;top:0;background:transparent;height:100vh;width:100vh;z-index:3000}.zan-toast--loading{padding:45px}.zan-toast--html,.zan-toast--text{padding:12px;min-width:200px}.zan-toast--default{width:120px;height:120px}.zan-toast--default .zan-toast__icon{padding-top:20px;font-size:50px}.zan-toast--default .zan-toast__text{padding-bottom:20px;font-size:14px}.zan-uploader{position:relative;display:inline-block}.zan-uploader input[type=file i]::-webkit-file-upload-button{cursor:pointer}.zan-uploader__input{position:absolute;top:0;right:0;bottom:0;left:0;display:block;width:100%;height:100%;opacity:0;cursor:pointer}.zan-swipe{position:relative;overflow:hidden;width:100%}.zan-swipe-item{display:none;width:100%;height:100%;overflow:hidden;text-align:center}.zan-swipe-item img{width:100%;height:auto}.zan-swipe-item:first-child{display:block} \ No newline at end of file diff --git a/docs/dist/zanui-docs.js b/docs/dist/zanui-docs.js deleted file mode 100644 index 207ee13fa..000000000 --- a/docs/dist/zanui-docs.js +++ /dev/null @@ -1 +0,0 @@ -!function(t){function e(n){if(r[n])return r[n].exports;var i=r[n]={i:n,l:!1,exports:{}};return t[n].call(i.exports,i,i.exports,e),i.l=!0,i.exports}var n=window.webpackJsonp;window.webpackJsonp=function(e,r,a){for(var o,s,u=0,l=[];u-1)return t.splice(n,1)}}function o(t,e){return hn.call(t,e)}function s(t){return"string"==typeof t||"number"==typeof t}function u(t){var e=Object.create(null);return function(n){return e[n]||(e[n]=t(n))}}function l(t,e){function n(n){var r=arguments.length;return r?r>1?t.apply(e,arguments):t.call(e,n):t.call(e)}return n._length=t.length,n}function c(t,e){e=e||0;for(var n=t.length-e,r=new Array(n);n--;)r[n]=t[n+e];return r}function f(t,e){for(var n in e)t[n]=e[n];return t}function d(t){return null!==t&&"object"==typeof t}function p(t){return gn.call(t)===yn}function h(t){for(var e={},n=0;n=0&&Wn[n].id>t.id;)n--;Wn.splice(Math.max(n,Xn)+1,0,t)}else Wn.push(t);Zn||(Zn=!0,An(H))}}function G(t){nr.clear(),K(t,nr)}function K(t,e){var n,r,i=Array.isArray(t);if((i||d(t))&&Object.isExtensible(t)){if(t.__ob__){var a=t.__ob__.dep.id;if(e.has(a))return;e.add(a)}if(i)for(n=t.length;n--;)K(t[n],e);else for(r=Object.keys(t),n=r.length;n--;)K(t[r[n]],e)}}function W(t){t._watchers=[];var e=t.$options;e.props&&Y(t,e.props),e.methods&&Q(t,e.methods),e.data?Z(t):E(t._data={},!0),e.computed&&J(t,e.computed),e.watch&&tt(t,e.watch)}function Y(t,e){var n=t.$options.propsData||{},r=t.$options._propKeys=Object.keys(e),i=!t.$parent;qn.shouldConvert=i;for(var a=0;a-1:t.test(e)}function Ut(t){for(var e=t.data,n=t,r=t;r.child;)r=r.child._vnode,r.data&&(e=Gt(r.data,e));for(;n=n.parent;)n.data&&(e=Gt(e,n.data));return Kt(e)}function Gt(t,e){return{staticClass:Wt(t.staticClass,e.staticClass),class:t.class?[t.class,e.class]:e.class}}function Kt(t){var e=t.class,n=t.staticClass;return n||e?Wt(n,Yt(e)):""}function Wt(t,e){return t?e?t+" "+e:t:e||""}function Yt(t){var e="";if(!t)return e;if("string"==typeof t)return t;if(Array.isArray(t)){for(var n,r=0,i=t.length;r-1?Pr[t]=e.constructor===window.HTMLUnknownElement||e.constructor===window.HTMLElement:Pr[t]=/HTMLUnknownElement/.test(e.toString())}function Xt(t){if("string"==typeof t){if(!(t=document.querySelector(t)))return document.createElement("div")}return t}function Qt(t,e){var n=document.createElement(t);return"select"!==t?n:(e.data&&e.data.attrs&&"multiple"in e.data.attrs&&n.setAttribute("multiple","multiple"),n)}function te(t,e){return document.createElementNS(Or[t],e)}function ee(t){return document.createTextNode(t)}function ne(t){return document.createComment(t)}function re(t,e,n){t.insertBefore(e,n)}function ie(t,e){t.removeChild(e)}function ae(t,e){t.appendChild(e)}function oe(t){return t.parentNode}function se(t){return t.nextSibling}function ue(t){return t.tagName}function le(t,e){t.textContent=e}function ce(t,e,n){t.setAttribute(e,n)}function fe(t,e){var n=t.data.ref;if(n){var r=t.context,i=t.child||t.elm,o=r.$refs;e?Array.isArray(o[n])?a(o[n],i):o[n]===i&&(o[n]=void 0):t.data.refInFor?Array.isArray(o[n])&&o[n].indexOf(i)<0?o[n].push(i):o[n]=[i]:o[n]=i}}function de(t){return null==t}function pe(t){return null!=t}function he(t,e){return t.key===e.key&&t.tag===e.tag&&t.isComment===e.isComment&&!t.data==!e.data}function ve(t,e,n){var r,i,a={};for(r=e;r<=n;++r)i=t[r].key,pe(i)&&(a[i]=r);return a}function me(t,e){(t.data.directives||e.data.directives)&&_e(t,e)}function _e(t,e){var n,r,i,a=t===Tr,o=e===Tr,s=ge(t.data.directives,t.context),u=ge(e.data.directives,e.context),l=[],c=[];for(n in u)r=s[n],i=u[n],r?(i.oldValue=r.value,be(i,"update",e,t),i.def&&i.def.componentUpdated&&c.push(i)):(be(i,"bind",e,t),i.def&&i.def.inserted&&l.push(i));if(l.length){var f=function(){for(var n=0;n-1?e.split(/\s+/).forEach(function(e){return t.classList.add(e)}):t.classList.add(e);else{var n=" "+t.getAttribute("class")+" ";n.indexOf(" "+e+" ")<0&&t.setAttribute("class",(n+e).trim())}}function Ve(t,e){if(e&&e.trim())if(t.classList)e.indexOf(" ")>-1?e.split(/\s+/).forEach(function(e){return t.classList.remove(e)}):t.classList.remove(e);else{for(var n=" "+t.getAttribute("class")+" ",r=" "+e+" ";n.indexOf(r)>=0;)n=n.replace(r," ");t.setAttribute("class",n.trim())}}function Le(t){ei(function(){ei(t)})}function Re(t,e){(t._transitionClasses||(t._transitionClasses=[])).push(e),Ne(t,e)}function De(t,e){t._transitionClasses&&a(t._transitionClasses,e),Ve(t,e)}function Fe(t,e,n){var r=Ie(t,e),i=r.type,a=r.timeout,o=r.propCount;if(!i)return n();var s=i===Yr?Xr:ti,u=0,l=function(){t.removeEventListener(s,c),n()},c=function(e){e.target===t&&++u>=o&&l()};setTimeout(function(){u0&&(n=Yr,c=o,f=a.length):e===Zr?l>0&&(n=Zr,c=l,f=u.length):(c=Math.max(o,l),n=c>0?o>l?Yr:Zr:null,f=n?n===Yr?a.length:u.length:0),{type:n,timeout:c,propCount:f,hasTransform:n===Yr&&ni.test(r[Jr+"Property"])}}function Be(t,e){for(;t.length1,T=n._enterCb=Ke(function(){S&&(De(n,O),De(n,k)),T.cancelled?(S&&De(n,C),P&&P(n)):z&&z(n),n._enterCb=null});t.data.show||ot(t.data.hook||(t.data.hook={}),"insert",function(){var e=n.parentNode,r=e&&e._pending&&e._pending[t.key];r&&r.context===t.context&&r.tag===t.tag&&r.elm._leaveCb&&r.elm._leaveCb(),E&&E(n,T)},"transition-insert"),M&&M(n),S&&(Re(n,C),Re(n,k),Le(function(){Re(n,O),De(n,C),T.cancelled||j||Fe(n,a,T)})),t.data.show&&(e&&e(),E&&E(n,T)),S||j||T()}}}function Ue(t,e){function n(){_.cancelled||(t.data.show||((r.parentNode._pending||(r.parentNode._pending={}))[t.key]=t),c&&c(r),v&&(Re(r,s),Re(r,l),Le(function(){Re(r,u),De(r,s),_.cancelled||m||Fe(r,o,_)})),f&&f(r,_),v||m||_())}var r=t.elm;r._enterCb&&(r._enterCb.cancelled=!0,r._enterCb());var i=Ge(t.data.transition);if(!i)return e();if(!r._leaveCb&&1===r.nodeType){var a=i.css,o=i.type,s=i.leaveClass,u=i.leaveToClass,l=i.leaveActiveClass,c=i.beforeLeave,f=i.leave,d=i.afterLeave,p=i.leaveCancelled,h=i.delayLeave,v=a!==!1&&!zn,m=f&&(f._length||f.length)>1,_=r._leaveCb=Ke(function(){r.parentNode&&r.parentNode._pending&&(r.parentNode._pending[t.key]=null),v&&(De(r,u),De(r,l)),_.cancelled?(v&&De(r,s),p&&p(r)):(e(),d&&d(r)),r._leaveCb=null});h?h(n):n()}}function Ge(t){if(t){if("object"==typeof t){var e={};return t.css!==!1&&f(e,ri(t.name||"v")),f(e,t),e}return"string"==typeof t?ri(t):void 0}}function Ke(t){var e=!1;return function(){e||(e=!0,t())}}function We(t,e){e.data.show||He(e)}function Ye(t,e,n){var r=e.value,i=t.multiple;if(!i||Array.isArray(r)){for(var a,o,s=0,u=t.options.length;s-1,o.selected!==a&&(o.selected=a);else if(_(Je(o),r))return void(t.selectedIndex!==s&&(t.selectedIndex=s));i||(t.selectedIndex=-1)}}function Ze(t,e){for(var n=0,r=e.length;n0,Pn=Mn&&Mn.indexOf("edge/")>0,Sn=Mn&&Mn.indexOf("android")>0,jn=Mn&&/iphone|ipad|ipod|ios/.test(Mn),Tn=function(){return void 0===fn&&(fn=!On&&void 0!==e&&"server"===e.process.env.VUE_ENV),fn},$n=On&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__,An=function(){function t(){r=!1;var t=n.slice(0);n.length=0;for(var e=0;e1?c(n):n;for(var r=c(arguments,1),i=0,a=n.length;i1&&(e[n[0].trim()]=n[1].trim())}}),e}),Br=/^--/,qr=/\s*!important$/,Hr=function(t,e,n){Br.test(e)?t.style.setProperty(e,n):qr.test(n)?t.style.setProperty(e,n.replace(qr,""),"important"):t.style[Gr(e)]=n},Ur=["Webkit","Moz","ms"],Gr=u(function(t){if(mr=mr||document.createElement("div"),"filter"!==(t=vn(t))&&t in mr.style)return t;for(var e=t.charAt(0).toUpperCase()+t.slice(1),n=0;nd?(l=de(n[m+1])?null:n[m+1].elm,v(t,l,n,f,m,r)):f>m&&_(t,e,c,d)}function b(t,e,n,r){if(t!==e){if(e.isStatic&&t.isStatic&&e.key===t.key&&(e.isCloned||e.isOnce))return e.elm=t.elm,void(e.child=t.child);var i,a=e.data,o=pe(a);o&&pe(i=a.hook)&&pe(i=i.prepatch)&&i(t,e);var s=e.elm=t.elm,u=t.children,l=e.children;if(o&&f(e)){for(i=0;i1?e-1:0),r=1;r0&&this.__events[t].splice(n,1):delete this.__events[t]}}};var s=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||function(t,e){return window.setTimeout(t,1e3/60)},u=window.cancelAnimationFrame||window.mozCancelAnimationFrame||window.webkitCancelAnimationFrame||window.msRequestAnimationFrame||function(t){clearTimeout(t)},l=function(t,e,n){e=e.split(/\s+/),e.forEach(function(e){return t.addEventListener(e,n)})},c=function(t,e,n){e=e.split(/\s+/),e.forEach(function(e){return t.removeEventListener(e,n)})};e.extend=o,e.EventEmitter=r,e.requestAnimationFrame=s,e.cancelAnimationFrame=u,e.bindEvents=l,e.removeEvents=c},function(t,e,n){t.exports={default:n(138),__esModule:!0}},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},function(t,e,n){var r=n(18),i=n(3).document,a=r(i)&&r(i.createElement);t.exports=function(t){return a?i.createElement(t):{}}},function(t,e,n){var r=n(10).f,i=n(17),a=n(1)("toStringTag");t.exports=function(t,e,n){t&&!i(t=n?t:t.prototype,a)&&r(t,a,{configurable:!0,value:e})}},function(t,e,n){var r=n(46)("keys"),i=n(49);t.exports=function(t){return r[t]||(r[t]=i(t))}},function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},function(t,e,n){var r=n(41),i=n(23);t.exports=function(t){return r(i(t))}},function(t,e){t.exports={"zh-CN":[{name:"开发指南",groups:[{list:[{path:"/install",title:"安装"},{path:"/quickstart",title:"快速上手"}]}]},{name:"ZanUI组件",showInMobile:!0,groups:[{groupName:"基础组件",list:[{path:"/button",title:"Button"},{path:"/icon",title:"Icon"},{path:"/cell",title:"Cell"},{path:"/progress",title:"Progress"},{path:"/panel",title:"Panel"},{path:"/card",title:"Card"},{path:"/loading",title:"Loading"},{path:"/steps",title:"Steps"},{path:"/tag",title:"Tag"},{path:"/badge",title:"Badge"},{path:"/tab",title:"Tab"},{path:"/popup",title:"Popup"},{path:"/swipe",title:"Swipe"},{path:"/search",title:"Search"},{path:"/quantity",title:"Quantity"},{path:"/waterfall",title:"Waterfall"},{path:"/image-preview",title:"ImagePreview"}]},{groupName:"表单",list:[{path:"/switch",title:"Switch"},{path:"/field",title:"Field"},{path:"/radio",title:"Radio"},{path:"/checkbox",title:"Checkbox"},{path:"/uploader",title:"Uploader"}]},{groupName:"操作反馈",list:[{path:"/actionsheet",title:"ActionSheet"},{path:"/toast",title:"Toast"},{path:"/picker",title:"Picker"},{path:"/datetime-picker",title:"Datetime Picker"},{path:"/dialog",title:"Dialog"}]}]}]}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}var i=n(92),a=r(i),o=n(119),s=r(o),u=n(101),l=r(u),c=n(111),f=r(c),d=n(33),p=r(d),h=n(11),v=r(h),m=n(95),_=r(m),g=n(107),y=r(g),b=n(53),x=r(b),w=n(34),C=r(w),k=n(110),O=r(k),M=n(126),E=r(M),z=n(12),P=r(z),S=n(105),j=r(S),T=n(94),$=r(T),A=n(115),N=r(A),V=n(122),L=r(V),R=n(97),D=r(R),F=n(96),I=r(F),B=n(90),q=r(B),H=n(91),U=r(H),G=n(113),K=r(G),W=n(114),Y=r(W),Z=n(121),J=r(Z),X=n(120),Q=r(X),tt=n(104),et=r(tt),nt=n(102),rt=r(nt),it=n(98),at=r(it),ot=n(112),st=r(ot),ut=n(89),lt=r(ut),ct=n(109),ft=r(ct),dt=n(108),pt=r(dt),ht=n(123),vt=r(ht),mt=n(125),_t=r(mt),gt=n(36),yt=r(gt),bt=n(35),xt=r(bt),wt=n(99),Ct=r(wt),kt=function t(e){t.installed||(e.component(a.default.name,a.default),e.component(s.default.name,s.default),e.component(l.default.name,l.default),e.component(f.default.name,f.default),e.component(p.default.name,p.default),e.component(v.default.name,v.default),e.component(_.default.name,_.default),e.component(y.default.name,y.default),e.component(C.default.name,C.default),e.component(O.default.name,O.default),e.component(P.default.name,P.default),e.component(j.default.name,j.default),e.component($.default.name,$.default),e.component(N.default.name,N.default),e.component(L.default.name,L.default),e.component(D.default.name,D.default),e.component(I.default.name,I.default),e.component(q.default.name,q.default),e.component(U.default.name,U.default),e.component(K.default.name,K.default),e.component(Y.default.name,Y.default),e.component(J.default.name,J.default),e.component(Q.default.name,Q.default),e.component(at.default.name,at.default),e.component(st.default.name,st.default),e.component(lt.default.name,lt.default),e.component(ft.default.name,ft.default),e.component(pt.default.name,pt.default),e.component(_t.default.name,_t.default),e.component(yt.default.name,yt.default),e.component(xt.default.name,xt.default),e.component(Ct.default.name,Ct.default))};"undefined"!=typeof window&&window.Vue&&kt(window.Vue),t.exports={install:kt,version:"0.0.41",Button:a.default,Switch:s.default,Field:l.default,Radio:f.default,Cell:p.default,Icon:v.default,CellGroup:_.default,Popup:y.default,Dialog:x.default,Picker:C.default,RadioGroup:O.default,Waterfall:E.default,Loading:P.default,Panel:j.default,Card:$.default,Steps:N.default,Tag:L.default,Checkbox:D.default,CheckboxGroup:I.default,BadgeGroup:q.default,Badge:U.default,Search:K.default,Step:Y.default,Tabs:J.default,Tab:Q.default,Lazyload:et.default,ImagePreview:rt.default,Col:at.default,Row:st.default,Actionsheet:lt.default,Quantity:ft.default,Progress:pt.default,Toast:vt.default,Uploader:_t.default,Swipe:yt.default,SwipeItem:xt.default,DatetimePicker:Ct.default}},function(t,e,n){var r=n(157),i=n(39);t.exports=Object.keys||function(t){return r(t,i)}},function(t,e,n){var r=n(23);t.exports=function(t){return Object(r(t))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(180),i=function(t){return t&&t.__esModule?t:{default:t}}(r);e.default=i.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(192),i=function(t){return t&&t.__esModule?t:{default:t}}(r);e.default=i.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(202),i=function(t){return t&&t.__esModule?t:{default:t}}(r);e.default=i.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(203),i=function(t){return t&&t.__esModule?t:{default:t}}(r);e.default=i.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={methods:{findParentByComponentName:function(t){if(!this.parentGroup){for(var e=this.$parent;e;){if(e.$options.name===t){this.parentGroup=e;break}e=e.$parent}return this.parentGroup}}}}},function(t,e,n){var r=n(15),i=n(1)("toStringTag"),a="Arguments"==r(function(){return arguments}()),o=function(t,e){try{return t[e]}catch(t){}};t.exports=function(t){var e,n,s;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=o(e=Object(t),i))?n:a?r(e):"Object"==(s=r(e))&&"function"==typeof e.callee?"Arguments":s}},function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,e,n){t.exports=n(3).document&&document.documentElement},function(t,e,n){var r=n(15);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},function(t,e,n){"use strict";var r=n(43),i=n(8),a=n(160),o=n(7),s=n(17),u=n(9),l=n(149),c=n(25),f=n(156),d=n(1)("iterator"),p=!([].keys&&"next"in[].keys()),h=function(){return this};t.exports=function(t,e,n,v,m,_,g){l(n,e,v);var y,b,x,w=function(t){if(!p&&t in M)return M[t];switch(t){case"keys":return function(){return new n(this,t)};case"values":return function(){return new n(this,t)}}return function(){return new n(this,t)}},C=e+" Iterator",k="values"==m,O=!1,M=t.prototype,E=M[d]||M["@@iterator"]||m&&M[m],z=E||w(m),P=m?k?w("entries"):z:void 0,S="Array"==e?M.entries||E:E;if(S&&(x=f(S.call(new t)))!==Object.prototype&&(c(x,C,!0),r||s(x,d)||o(x,d,h)),k&&E&&"values"!==E.name&&(O=!0,z=function(){return E.call(this)}),r&&!g||!p&&!O&&M[d]||o(M,d,z),u[e]=z,u[C]=h,m)if(y={values:k?z:w("values"),keys:_?z:w("keys"),entries:P},g)for(b in y)b in M||a(M,b,y[b]);else i(i.P+i.F*(p||O),e,y);return y}},function(t,e){t.exports=!0},function(t,e,n){var r=n(5),i=n(154),a=n(39),o=n(26)("IE_PROTO"),s=function(){},u=function(){var t,e=n(24)("iframe"),r=a.length;for(e.style.display="none",n(40).appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write(""),t.close(),u=t.F;r--;)delete u.prototype[a[r]];return u()};t.exports=Object.create||function(t,e){var n;return null!==t?(s.prototype=r(t),n=new s,s.prototype=null,n[o]=t):n=u(),void 0===e?n:i(n,e)}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e,n){var r=n(3),i=r["__core-js_shared__"]||(r["__core-js_shared__"]={});t.exports=function(t){return i[t]||(i[t]={})}},function(t,e,n){var r,i,a,o=n(16),s=n(146),u=n(40),l=n(24),c=n(3),f=c.process,d=c.setImmediate,p=c.clearImmediate,h=c.MessageChannel,v=0,m={},_=function(){var t=+this;if(m.hasOwnProperty(t)){var e=m[t];delete m[t],e()}},g=function(t){_.call(t.data)};d&&p||(d=function(t){for(var e=[],n=1;arguments.length>n;)e.push(arguments[n++]);return m[++v]=function(){s("function"==typeof t?t:Function(t),e)},r(v),v},p=function(t){delete m[t]},"process"==n(15)(f)?r=function(t){f.nextTick(o(_,t,1))}:h?(i=new h,a=i.port2,i.port1.onmessage=g,r=o(a.postMessage,a,1)):c.addEventListener&&"function"==typeof postMessage&&!c.importScripts?(r=function(t){c.postMessage(t+"","*")},c.addEventListener("message",g,!1)):r="onreadystatechange"in l("script")?function(t){u.appendChild(l("script")).onreadystatechange=function(){u.removeChild(this),_.call(t)}}:function(t){setTimeout(o(_,t,1),0)}),t.exports={set:d,clear:p}},function(t,e,n){var r=n(27),i=Math.min;t.exports=function(t){return t>0?i(r(t),9007199254740991):0}},function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+r).toString(36))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(t,e){function r(t){i.push({path:"/component"+t.path,component:function(r){n.e(0).then(function(){var i=[e?n(253)("./examples-dist"+t.path+".vue"):n(254)("./examples-docs"+t.path+".md")];r.apply(null,i)}.bind(this)).catch(n.oe)}})}var i=[];return t["zh-CN"].forEach(function(t){t.groups?t.groups.forEach(function(t){t.list.forEach(function(t){r(t)})}):t.children?t.children.forEach(function(t){r(t)}):r(t)}),i};e.default=r},function(t,e){},function(t,e,n){"use strict";function r(t,e){t||"undefined"!=typeof console&&console.warn("[vue-router] "+e)}function i(t,e){switch(typeof e){case"undefined":return;case"object":return e;case"function":return e(t);case"boolean":return e?t.params:void 0;default:r(!1,'props in "'+t.path+'" is a '+typeof e+", expecting an object, function or boolean.")}}function a(t,e){if(void 0===e&&(e={}),t){var n;try{n=o(t)}catch(t){n={}}for(var r in e)n[r]=e[r];return n}return e}function o(t){var e={};return(t=t.trim().replace(/^(\?|#|&)/,""))?(t.split("&").forEach(function(t){var n=t.replace(/\+/g," ").split("="),r=St(n.shift()),i=n.length>0?St(n.join("=")):null;void 0===e[r]?e[r]=i:Array.isArray(e[r])?e[r].push(i):e[r]=[e[r],i]}),e):e}function s(t){var e=t?Object.keys(t).map(function(e){var n=t[e];if(void 0===n)return"";if(null===n)return Pt(e);if(Array.isArray(n)){var r=[];return n.slice().forEach(function(t){void 0!==t&&(null===t?r.push(Pt(e)):r.push(Pt(e)+"="+Pt(t)))}),r.join("&")}return Pt(e)+"="+Pt(n)}).filter(function(t){return t.length>0}).join("&"):null;return e?"?"+e:""}function u(t,e,n){var r={name:e.name||t&&t.name,meta:t&&t.meta||{},path:e.path||"/",hash:e.hash||"",query:e.query||{},params:e.params||{},fullPath:c(e),matched:t?l(t):[]};return n&&(r.redirectedFrom=c(n)),Object.freeze(r)}function l(t){for(var e=[];t;)e.unshift(t),t=t.parent;return e}function c(t){var e=t.path,n=t.query;void 0===n&&(n={});var r=t.hash;return void 0===r&&(r=""),(e||"/")+s(n)+r}function f(t,e){return e===Tt?t===e:!!e&&(t.path&&e.path?t.path.replace(jt,"")===e.path.replace(jt,"")&&t.hash===e.hash&&d(t.query,e.query):!(!t.name||!e.name)&&(t.name===e.name&&t.hash===e.hash&&d(t.query,e.query)&&d(t.params,e.params)))}function d(t,e){void 0===t&&(t={}),void 0===e&&(e={});var n=Object.keys(t),r=Object.keys(e);return n.length===r.length&&n.every(function(n){return String(t[n])===String(e[n])})}function p(t,e){return 0===t.path.replace(jt,"/").indexOf(e.path.replace(jt,"/"))&&(!e.hash||t.hash===e.hash)&&h(t.query,e.query)}function h(t,e){for(var n in e)if(!(n in t))return!1;return!0}function v(t){if(!(t.metaKey||t.ctrlKey||t.shiftKey||t.defaultPrevented||void 0!==t.button&&0!==t.button)){if(t.target&&t.target.getAttribute){var e=t.target.getAttribute("target");if(/\b_blank\b/i.test(e))return}return t.preventDefault&&t.preventDefault(),!0}}function m(t){if(t)for(var e,n=0;n=0&&(e=t.slice(r),t=t.slice(0,r));var i=t.indexOf("?");return i>=0&&(n=t.slice(i+1),t=t.slice(0,i)),{path:t,query:n,hash:e}}function b(t){return t.replace(/\/\//g,"/")}function x(t,e,n){var r=e||Object.create(null),i=n||Object.create(null);return t.forEach(function(t){w(r,i,t)}),{pathMap:r,nameMap:i}}function w(t,e,n,r,i){var a=n.path,o=n.name,s={path:C(a,r),components:n.components||{default:n.component},instances:{},name:o,parent:r,matchAs:i,redirect:n.redirect,beforeEnter:n.beforeEnter,meta:n.meta||{},props:null==n.props?{}:n.components?n.props:{default:n.props}};if(n.children&&n.children.forEach(function(n){var r=i?b(i+"/"+n.path):void 0;w(t,e,n,s,r)}),void 0!==n.alias)if(Array.isArray(n.alias))n.alias.forEach(function(i){var a={path:i,children:n.children};w(t,e,a,r,s.path)});else{var u={path:n.alias,children:n.children};w(t,e,u,r,s.path)}t[s.path]||(t[s.path]=s),o&&(e[o]||(e[o]=s))}function C(t,e){return t=t.replace(/\/$/,""),"/"===t[0]?t:null==e?t:b(e.path+"/"+t)}function k(t,e){for(var n,r=[],i=0,a=0,o="",s=e&&e.delimiter||"/";null!=(n=Ht.exec(t));){var u=n[0],l=n[1],c=n.index;if(o+=t.slice(a,c),a=c+u.length,l)o+=l[1];else{var f=t[a],d=n[2],p=n[3],h=n[4],v=n[5],m=n[6],_=n[7];o&&(r.push(o),o="");var g=null!=d&&null!=f&&f!==d,y="+"===m||"*"===m,b="?"===m||"*"===m,x=n[2]||s,w=h||v;r.push({name:p||i++,prefix:d||"",delimiter:x,optional:b,repeat:y,partial:g,asterisk:!!_,pattern:w?S(w):_?".*":"[^"+P(x)+"]+?"})}}return a-1&&(r.params[u]=e.params[u]);if(a)return r.path=D(a.path,r.params,'named route "'+i+'"'),o(a,r,n)}else if(r.path){r.params={};for(var f in l)if(q(f,r.params,r.path))return o(l[f],r,n)}return o(null,r)}function i(t,e){var i=t.redirect,a="function"==typeof i?i(u(t,e)):i;if("string"==typeof a&&(a={path:a}),!a||"object"!=typeof a)return o(null,e);var s=a,l=s.name,f=s.path,d=e.query,p=e.hash,h=e.params;if(d=s.hasOwnProperty("query")?s.query:d,p=s.hasOwnProperty("hash")?s.hash:p,h=s.hasOwnProperty("params")?s.params:h,l){c[l];return n({_normalized:!0,name:l,query:d,hash:p,params:h},void 0,e)}if(f){var v=H(f,t);return n({_normalized:!0,path:D(v,h,'redirect route with path "'+v+'"'),query:d,hash:p},void 0,e)}return r(!1,"invalid redirect option: "+JSON.stringify(a)),o(null,e)}function a(t,e,r){var i=D(r,e.params,'aliased route with path "'+r+'"'),a=n({_normalized:!0,path:i});if(a){var s=a.matched,u=s[s.length-1];return e.params=a.params,o(u,e)}return o(null,e)}function o(t,e,n){return t&&t.redirect?i(t,n||e):t&&t.matchAs?a(t,e,t.matchAs):u(t,e,n)}var s=x(t),l=s.pathMap,c=s.nameMap;return{match:n,addRoutes:e}}function q(t,e,n){var r=R(t),i=r.regexp,a=r.keys,o=n.match(i);if(!o)return!1;if(!e)return!0;for(var s=1,u=o.length;s=t.length?n():t[i]?e(t[i],function(){r(i+1)}):r(i+1)};r(0)}function at(t){if(!t)if(Vt){var e=document.querySelector("base");t=e&&e.getAttribute("href")||"/"}else t="/";return"/"!==t.charAt(0)&&(t="/"+t),t.replace(/\/$/,"")}function ot(t,e){var n,r=Math.max(t.length,e.length);for(n=0;n=0?e:0)+"#"+t)}function Ot(t,e,n){var r="hash"===n?"#"+e:e;return t?b(t+"/"+r):r}Object.defineProperty(e,"__esModule",{value:!0});var Mt,Et={name:"router-view",functional:!0,props:{name:{type:String,default:"default"}},render:function(t,e){var n=e.props,r=e.children,a=e.parent,o=e.data;o.routerView=!0;for(var s=n.name,u=a.$route,l=a._routerViewCache||(a._routerViewCache={}),c=0,f=!1;a;)a.$vnode&&a.$vnode.data.routerView&&c++,a._inactive&&(f=!0),a=a.$parent;if(o.routerViewDepth=c,f)return t(l[s],o,r);var d=u.matched[c];if(!d)return l[s]=null,t();var p=l[s]=d.components[s],h=o.hook||(o.hook={});return h.init=function(t){d.instances[s]=t.child},h.prepatch=function(t,e){d.instances[s]=e.child},h.destroy=function(t){d.instances[s]===t.child&&(d.instances[s]=void 0)},o.props=i(u,d.props&&d.props[s]),t(p,o,r)}},zt=function(t){return"%"+t.charCodeAt(0).toString(16)},Pt=function(t){return encodeURIComponent(t).replace(/[!'()*]/g,zt).replace(/%2C/g,",")},St=decodeURIComponent,jt=/\/?$/,Tt=u(null,{path:"/"}),$t=[String,Object],At=[String,Array],Nt={name:"router-link",props:{to:{type:$t,required:!0},tag:{type:String,default:"a"},exact:Boolean,append:Boolean,replace:Boolean,activeClass:String,event:{type:At,default:"click"}},render:function(t){var e=this,n=this.$router,r=this.$route,i=n.resolve(this.to,r,this.append),a=i.location,o=i.route,s=i.href,l={},c=this.activeClass||n.options.linkActiveClass||"router-link-active",d=a.path?u(null,a):o;l[c]=this.exact?f(r,d):p(r,d);var h=function(t){v(t)&&(e.replace?n.replace(a):n.push(a))},_={click:v};Array.isArray(this.event)?this.event.forEach(function(t){_[t]=h}):_[this.event]=h;var g={class:l};if("a"===this.tag)g.on=_,g.attrs={href:s};else{var y=m(this.$slots.default);if(y){y.isStatic=!1;var b=Mt.util.extend;(y.data=b({},y.data)).on=_;(y.data.attrs=b({},y.data.attrs)).href=s}else g.on=_}return t(this.tag,g,this.$slots.default)}},Vt="undefined"!=typeof window,Lt=Array.isArray||function(t){return"[object Array]"==Object.prototype.toString.call(t)},Rt=Lt,Dt=L,Ft=k,It=O,Bt=z,qt=V,Ht=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");Dt.parse=Ft,Dt.compile=It,Dt.tokensToFunction=Bt,Dt.tokensToRegExp=qt;var Ut=Object.create(null),Gt=Object.create(null),Kt=Object.create(null),Wt=Vt&&function(){var t=window.navigator.userAgent;return(t.indexOf("Android 2.")===-1&&t.indexOf("Android 4.0")===-1||t.indexOf("Mobile Safari")===-1||t.indexOf("Chrome")!==-1||t.indexOf("Windows Phone")!==-1)&&(window.history&&"pushState"in window.history)}(),Yt=Vt&&window.performance&&window.performance.now?window.performance:Date,Zt=Q(),Jt=function(t,e){this.router=t,this.base=at(e),this.current=Tt,this.pending=null,this.ready=!1,this.readyCbs=[]};Jt.prototype.listen=function(t){this.cb=t},Jt.prototype.onReady=function(t){this.ready?t():this.readyCbs.push(t)},Jt.prototype.transitionTo=function(t,e,n){var r=this,i=this.router.match(t,this.current);this.confirmTransition(i,function(){r.updateRoute(i),e&&e(i),r.ensureURL(),r.ready||(r.ready=!0,r.readyCbs.forEach(function(t){t(i)}))},n)},Jt.prototype.confirmTransition=function(t,e,n){var r=this,i=this.current,a=function(){n&&n()};if(f(t,i)&&t.matched.length===i.matched.length)return this.ensureURL(),a();var o=ot(this.current.matched,t.matched),s=o.updated,u=o.deactivated,l=o.activated,c=[].concat(lt(u),this.router.beforeHooks,ct(s),l.map(function(t){return t.beforeEnter}),vt(l));this.pending=t;var d=function(e,n){if(r.pending!==t)return a();e(t,i,function(t){t===!1?(r.ensureURL(!0),a()):"string"==typeof t||"object"==typeof t?("object"==typeof t&&t.replace?r.replace(t):r.push(t),a()):n(t)})};it(c,d,function(){var n=[],i=function(){return r.current===t};it(dt(l,n,i),d,function(){if(r.pending!==t)return a();r.pending=null,e(t),r.router.app&&r.router.app.$nextTick(function(){n.forEach(function(t){return t()})})})})},Jt.prototype.updateRoute=function(t){var e=this.current;this.current=t,this.cb&&this.cb(t),this.router.afterHooks.forEach(function(n){n&&n(t,e)})};var Xt=function(t){function e(e,n){var r=this;t.call(this,e,n);var i=e.options.scrollBehavior;i&&U(),window.addEventListener("popstate",function(t){r.transitionTo(yt(r.base),function(t){i&&G(e,t,r.current,!0)})})}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.go=function(t){window.history.go(t)},e.prototype.push=function(t,e,n){var r=this;this.transitionTo(t,function(t){nt(b(r.base+t.fullPath)),G(r.router,t,r.current,!1),e&&e(t)},n)},e.prototype.replace=function(t,e,n){var r=this;this.transitionTo(t,function(t){rt(b(r.base+t.fullPath)),G(r.router,t,r.current,!1),e&&e(t)},n)},e.prototype.ensureURL=function(t){if(yt(this.base)!==this.current.fullPath){var e=b(this.base+this.current.fullPath);t?nt(e):rt(e)}},e.prototype.getCurrentLocation=function(){return yt(this.base)},e}(Jt),Qt=function(t){function e(e,n,r){t.call(this,e,n),r&&bt(this.base)||xt()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.setupListeners=function(){var t=this;window.addEventListener("hashchange",function(){xt()&&t.transitionTo(wt(),function(t){kt(t.fullPath)})})},e.prototype.push=function(t,e,n){this.transitionTo(t,function(t){Ct(t.fullPath),e&&e(t)},n)},e.prototype.replace=function(t,e,n){this.transitionTo(t,function(t){kt(t.fullPath),e&&e(t)},n)},e.prototype.go=function(t){window.history.go(t)},e.prototype.ensureURL=function(t){var e=this.current.fullPath;wt()!==e&&(t?Ct(e):kt(e))},e.prototype.getCurrentLocation=function(){return wt()},e}(Jt),te=function(t){function e(e,n){t.call(this,e,n),this.stack=[],this.index=-1}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.push=function(t,e,n){var r=this;this.transitionTo(t,function(t){r.stack=r.stack.slice(0,r.index+1).concat(t),r.index++,e&&e(t)},n)},e.prototype.replace=function(t,e,n){var r=this;this.transitionTo(t,function(t){r.stack=r.stack.slice(0,r.index).concat(t),e&&e(t)},n)},e.prototype.go=function(t){var e=this,n=this.index+t;if(!(n<0||n>=this.stack.length)){var r=this.stack[n];this.confirmTransition(r,function(){e.index=n,e.updateRoute(r)})}},e.prototype.getCurrentLocation=function(){var t=this.stack[this.stack.length-1];return t?t.fullPath:"/"},e.prototype.ensureURL=function(){},e}(Jt),ee=function(t){void 0===t&&(t={}),this.app=null,this.apps=[],this.options=t,this.beforeHooks=[],this.afterHooks=[],this.matcher=B(t.routes||[]);var e=t.mode||"hash";switch(this.fallback="history"===e&&!Wt,this.fallback&&(e="hash"),Vt||(e="abstract"),this.mode=e,e){case"history":this.history=new Xt(this,t.base);break;case"hash":this.history=new Qt(this,t.base,this.fallback);break;case"abstract":this.history=new te(this,t.base)}},ne={currentRoute:{}};ee.prototype.match=function(t,e,n){return this.matcher.match(t,e,n)},ne.currentRoute.get=function(){return this.history&&this.history.current},ee.prototype.init=function(t){var e=this;if(this.apps.push(t),!this.app){this.app=t;var n=this.history;if(n instanceof Xt)n.transitionTo(n.getCurrentLocation());else if(n instanceof Qt){var r=function(){n.setupListeners()};n.transitionTo(n.getCurrentLocation(),r,r)}n.listen(function(t){e.apps.forEach(function(e){e._route=t})})}},ee.prototype.beforeEach=function(t){this.beforeHooks.push(t)},ee.prototype.afterEach=function(t){this.afterHooks.push(t)},ee.prototype.onReady=function(t){this.history.onReady(t)},ee.prototype.push=function(t,e,n){this.history.push(t,e,n)},ee.prototype.replace=function(t,e,n){this.history.replace(t,e,n)},ee.prototype.go=function(t){this.history.go(t)},ee.prototype.back=function(){this.go(-1)},ee.prototype.forward=function(){this.go(1)},ee.prototype.getMatchedComponents=function(t){var e=t?this.resolve(t).route:this.currentRoute;return e?[].concat.apply([],e.matched.map(function(t){return Object.keys(t.components).map(function(e){return t.components[e]})})):[]},ee.prototype.resolve=function(t,e,n){var r=F(t,e||this.history.current,n),i=this.match(r,e),a=i.redirectedFrom||i.fullPath;return{location:r,route:i,href:Ot(this.history.base,a,this.mode),normalizedTo:r,resolved:i}},ee.prototype.addRoutes=function(t){this.matcher.addRoutes(t),this.history.current!==Tt&&this.history.transitionTo(this.history.getCurrentLocation())},Object.defineProperties(ee.prototype,ne),ee.install=_,ee.version="2.2.1",Vt&&window.Vue&&window.Vue.use(ee),e.default=ee},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(100),i=function(t){return t&&t.__esModule?t:{default:t}}(r);e.default=i.default},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var i=n(13),a=r(i),o=n(12),s=r(o),u=n(11),l=r(u);e.default={name:"zan-actionsheet",mixins:[a.default],components:{ZanLoading:s.default,ZanIcon:l.default},props:{value:{},actions:{type:Array,default:function(){return[]}},title:String,cancelText:String,overlay:{default:!0},closeOnClickOverlay:{type:Boolean,default:!0}},data:function(){return{currentValue:this.value}},watch:{currentValue:function(t){this.$emit("input",t)},value:function(t){this.currentValue=t}},mounted:function(){this.value&&(this.currentValue=!0,this.open())},methods:{handleItemClick:function(t){}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"zan-badge-group",props:{activeKey:{type:[Number,String],default:0}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"zan-badge",props:{mark:{type:[Number,String],required:!0},title:{type:String,required:!0},url:{type:String,default:"javascript:;"},info:{type:String}},methods:{handleClick:function(t){this.$emit("click",t,{mark:this.mark,title:this.title,url:this.url,info:this.info})}},computed:{classNames:function(){return{"is-select":this.mark===this.$parent.activeKey}}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"zan-card",props:{thumb:{type:String,required:!0},title:String,desc:String}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"zan-cell-group"}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"zan-cell",props:{icon:String,title:String,value:[String,Number],url:String,label:String,isLink:Boolean,required:Boolean},methods:{handleClick:function(){this.$emit("click")}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"zan-checkbox-group",props:{value:{},disabled:Boolean},watch:{value:function(t){this.$emit("change",t)}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(37),i=function(t){return t&&t.__esModule?t:{default:t}}(r);e.default={name:"zan-checkbox",mixins:[i.default],props:{disabled:Boolean,value:{},name:[String,Number]},computed:{isGroup:function(){return!!this.findParentByComponentName("zan-checkbox-group")},currentValue:{get:function(){return this.isGroup&&this.parentGroup?this.parentGroup.value.indexOf(this.name)!==-1:this.value},set:function(t){if(this.isGroup&&this.parentGroup){var e=this.parentGroup.value.slice();if(t)e.indexOf(this.name)===-1&&(e.push(this.name),this.parentGroup.$emit("input",e));else{var n=e.indexOf(this.name);n!==-1&&(e.splice(n,1),this.parentGroup.$emit("input",e))}}else this.$emit("input",t)}},isChecked:function(){return"[object Boolean]"==={}.toString.call(this.currentValue)?this.currentValue:Array.isArray(this.currentValue)?this.currentValue.indexOf(this.name)>-1:void 0},isDisabled:function(){return this.isGroup&&this.parentGroup?this.parentGroup.disabled||this.disabled:this.disabled}},methods:{handleLabelClick:function(){this.isDisabled||(this.currentValue=!this.currentValue)}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"zan-col",props:{span:[Number,String],offset:[Number,String],prefix:{type:String,default:"zan"}},computed:{gutter:function(){return Number(this.$parent.gutter)},style:function(){var t=this.gutter/2+"px";return this.gutter?{paddingLeft:t,paddingRight:t}:null}}}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var i=n(136),a=r(i),o=n(34),s=r(o),u=["time","date","datetime"];e.default={name:"zan-datetime-picker",components:{Picker:s.default},props:{type:{type:String,default:"datetime",validator:function(t){return u.indexOf(t)>-1}},visibleItemCount:{type:Number,default:5},minDate:{type:Date,default:function(){return new Date((new Date).getFullYear()-10,0,1)}},maxDate:{type:Date,default:function(){return new Date((new Date).getFullYear()+10,11,31)}},minHour:{type:Number,default:0},maxHour:{type:Number,default:23},value:null},data:function(){return{innerValue:this.val}},watch:{value:function(t){this.innerValue=t},innerValue:function(t){console.log(t+"!!!"),this.$emit("input",t)}},computed:{ranges:function(){if(console.log(this.innerValue+"!!"),"time"===this.type)return[[this.minHour,this.maxHour],[0,59]];var t=this.getBoundary("max",this.innerValue),e=t.maxYear,n=t.maxDate,r=t.maxMonth,i=t.maxHour,a=t.maxMinute,o=this.getBoundary("min",this.innerValue),s=o.minYear,u=o.minDate,l=o.minMonth,c=o.minHour,f=o.minMinute,d=[[s,e],[l,r],[u,n],[c,i],[f,a]];return"date"===this.type&&d.splice(3,2),d},columns:function(){var t=this;return this.ranges.map(function(e){return{values:t.times(e[1]-e[0]+1,function(t){var n=e[0]+t;return n<10?"0"+n:""+n})}})}},methods:{times:function(t,e){for(var n=-1,r=Array(t);++n-1},handlePickerConfirm:function(t){this.$emit("confirm",this.innerValue)},handlePickerChange:function(t,e,n){console.log(this.innerValue);var r=void 0;if("time"===this.type)r=e.join(":");else{var i=this.getTrueValue(e[0]),a=this.getTrueValue(e[1]),o=this.getMonthEndDay(i,a),s=this.getTrueValue(e[2]);s=s>o?o:s;var u=0,l=0;"datetime"===this.type&&(u=this.getTrueValue(e[3]),l=this.getTrueValue(e[4])),r=new Date(i,a-1,s,u,l)}this.innerValue=r,console.log(r,this.innerValue)}},created:function(){if(this.innerValue=this.value,!this.innerValue)if(this.type.indexOf("date")>-1)this.innerValue=this.minDate;else{var t=this.minHour;this.innerValue=(t>10?t:"0"+t)+":00"}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(13),i=function(t){return t&&t.__esModule?t:{default:t}}(r);e.default={name:"zan-dialog",mixins:[i.default],props:{overlay:{default:!0},closeOnClickOverlay:{default:!0},lockOnScroll:{default:!0}},data:function(){return{title:"",message:"",type:"",showConfirmButton:!0,showCancelButton:!1,confirmButtonText:"确认",cancelButtonText:"取消",callback:null}},methods:{handleAction:function(t){this.value=!1,this.callback&&this.callback(t)},close:function(){var t=this;this.closing||(this.closing=!0,this.value=!1,this.lockOnScroll&&setTimeout(function(){t.modal&&"hidden"!==t.bodyOverflow&&(document.body.style.overflow=t.bodyOverflow),t.bodyOverflow=null},200),this.opened=!1,this.doAfterClose())}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(33),i=function(t){return t&&t.__esModule?t:{default:t}}(r),a=["text","number","email","url","tel","date","datetime","password","textarea"];e.default={name:"zan-field",components:{zanCell:i.default},props:{type:{type:String,default:"text",validate:function(t){return a.indexOf(t)>-1}},placeholder:String,value:{},label:String,disabled:Boolean,error:Boolean,readonly:Boolean,required:Boolean,maxlength:[String,Number],border:Boolean,rows:[String,Number],cols:[String,Number],autosize:{type:Boolean,default:!1,validate:function(t){if(t&&"textarea"!==this.type)return!1}}},data:function(){return{currentValue:this.value}},watch:{value:function(t){this.currentValue=t},currentValue:function(t){this.autosize&&"textarea"===this.type&&this.sizeAdjust(),this.$emit("input",t)}},methods:{handleInput:function(t){this.currentValue=t.target.value},sizeAdjust:function(){var t=this.$refs.textareaElement,e=parseInt(t.style.paddingBottom,10)+parseInt(t.style.paddingTop,10)||0;t.style.height="0px",t.style.height=t.scrollHeight-e+"px"},handleInputFocus:function(){this.$emit("focus")}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"zan-icon",props:{name:String},methods:{handleIconClick:function(t){this.$emit("click",t)}}}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var i=n(13),a=r(i),o=n(36),s=r(o),u=n(35),l=r(u);e.default={name:"zan-image-preview",mixins:[a.default],components:{ZanSwipe:s.default,ZanSwipeItem:l.default},props:{overlay:{default:!0},lockOnScroll:{default:!0},closeOnClickOverlay:{default:!0}},data:function(){return{images:[],viewportSize:null}},methods:{handlePreviewClick:function(){this.value=!1},close:function(){var t=this;this.closing||(this.closing=!0,this.value=!1,this.lockOnScroll&&setTimeout(function(){t.modal&&"hidden"!==t.bodyOverflow&&(document.body.style.overflow=t.bodyOverflow),t.bodyOverflow=null},200),this.opened=!1,this.doAfterClose())}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=["gradient-circle","circle"],i=["black","white"];e.default={name:"zan-loading",props:{type:{type:String,default:"gradient-circle",validate:function(t){return r.indexOf(t)>-1}},color:{type:String,default:"black",validate:function(t){return i.indexOf(t)>-1}}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"zan-panel",props:{title:String,desc:String,status:String}}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var i=n(132),a=r(i),o=n(106),s=r(o);e.default={name:"zan-picker-column",props:{visibileColumnCount:{type:Number,default:5},values:{type:Array,default:function(){return[]}},className:{type:String,default:""},itemHeight:{type:Number,default:44},value:{},valueKey:String},data:function(){return{currentValue:this.value,currentValues:this.values,isDragging:!1}},watch:{value:function(t){this.currentValue=t},values:function(t){this.currentValues=t},currentValues:function(t){this.valueIndex===-1&&(this.currentValue=(t||[])[0])},currentValue:function(t){this.doOnValueChange(),this.$emit("change",this)}},computed:{visibleContentHeight:function(){return this.itemHeight*this.visibileColumnCount},valueIndex:function(){return this.currentValues.indexOf(this.currentValue)},dragRange:function(){var t=this.currentValues,e=this.visibileColumnCount,n=this.itemHeight;return[-n*(t.length-Math.ceil(e/2)),n*Math.floor(e/2)]},classNames:function(){return this.className.split(" ")}},mounted:function(){this.initEvents(),this.doOnValueChange()},methods:{value2Translate:function(t){var e=this.currentValues,n=e.indexOf(t),r=Math.floor(this.visibileColumnCount/2),i=this.itemHeight;if(n!==-1)return(n-r)*-i},translate2Value:function(t){var e=this.itemHeight;t=Math.round(t/e)*e;var n=-(t-Math.floor(this.visibileColumnCount/2)*e)/e;return this.currentValues[n]},initEvents:function(){var t,e,n,r=this,i=this.$refs.wrapper,o={};(0,s.default)(i,{start:function(t){o={range:r.dragRange,start:new Date,startLeft:t.pageX,startTop:t.pageY,startTranslateTop:a.default.getElementTranslate(i).top},n=i.querySelectorAll(".zan-picker-item")},drag:function(n){r.isDragging=!0,o.left=n.pageX,o.top=n.pageY;var s=o.top-o.startTop,u=o.startTranslateTop+s;a.default.translateElement(i,null,u),t=u-e||u,e=u},end:function(){if(r.isDragging){r.isDragging=!1;var e,n=a.default.getElementTranslate(i).top,s=new Date-o.start;s<300&&(e=n+7*t);var u=o.range;r.$nextTick(function(){var t,o=r.itemHeight;t=e?Math.round(e/o)*o:Math.round(n/o)*o,t=Math.max(Math.min(t,u[1]),u[0]),a.default.translateElement(i,null,t),r.currentValue=r.translate2Value(t)})}o={}}})},doOnValueChange:function(){var t=this.currentValue,e=this.$refs.wrapper;this.$emit("input",this.currentValue),a.default.translateElement(e,null,this.value2Translate(t))}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(191),i=function(t){return t&&t.__esModule?t:{default:t}}(r);e.default={name:"zan-picker",components:{PickerColumn:i.default},props:{visibileColumnCount:{type:Number,default:5},itemHeight:{type:Number,default:44},columns:{type:Array,default:function(){return[]}},showToolbar:{type:Boolean,default:!1},valueKey:String},computed:{values:function t(){var e=this.columns||[],t=[];return e.forEach(function(e){t.push(e.value||e.values[e.defaultIndex||0])}),t}},methods:{handlePickerCancel:function(){this.$emit("cancel",this.values)},handlePickerConfirm:function(){this.$emit("confirm",this.values)},columnValueChange:function(t){this.$emit("change",this,this.values,t)},getColumn:function(t){return this.$children.filter(function(t){return"zan-picker-column"===t.$options.name})[t]},getColumnValue:function(t){var e=this.getColumn(t);return e&&e.values[e.valueIndex]},setColumnValue:function(t,e){var n=this.getColumn(t);n&&(n.currentValue=e)},getColumnValues:function(t){var e=this.getColumn(t);return e&&e.currentValues},setColumnValues:function(t,e){var n=this.getColumn(t);n&&(n.currentValues=e)},getValues:function(){return this.values},setValues:function(t){var e=this;t.forEach(function(t,n){e.setColumnValue(n,t)})}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(13),i=function(t){return t&&t.__esModule?t:{default:t}}(r);e.default={name:"zan-popup",mixins:[i.default],props:{overlay:{default:!0},lockOnScroll:{default:!1},closeOnClickOverlay:{default:!0},transition:{type:String,default:"popup-slide"},position:{type:String,default:""}},data:function(){return{currentValue:!1,currentTransition:this.transition}},watch:{currentValue:function(t){this.$emit("input",t)},value:function(t){this.currentValue=t}},beforeMount:function(){"popup-fade"!==this.transition&&(this.currentTransition="popup-slide-"+this.position)},mounted:function(){this.value&&(this.currentValue=!0,this.open())}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"zan-progress",props:{percentage:{type:Number,required:!0,validate:function(t){return t<=100&&t>=0}},inactive:{type:Boolean,default:!1},pivotText:{type:String,default:function(){return this.percentage.toString()+"%"}},color:{type:String,default:"#38f"},textColor:{type:String,default:"#fff"}},computed:{currentPivotText:function(){return this.pivotText?this.pivotText:this.this.percentage.toString()+"%"},componentColor:function(){return this.inactive?"#cacaca":this.color},pivotStyle:function t(){var t={backgroundColor:this.componentColor,color:this.textColor,left:this.percentage+"%",marginLeft:"-14px"};return this.percentage<=5?(t.left="0%",t.marginLeft="0"):this.percentage>=95?(t.left="100%",t.marginLeft="-28px"):(t.left=this.percentage+"%",t.marginLeft="-14px"),t}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"zan-quantity",props:{min:{type:[String,Number],default:1},max:{type:[String,Number],default:1/0},value:{},step:{type:[String,Number],default:1},disabled:Boolean,defaultValue:{type:[String,Number],default:1}},data:function(){return{currentValue:this.value?+this.value:+this.defaultValue}},computed:{isMinusDisabled:function(){var t=+this.min,e=+this.step,n=+this.currentValue;return t===n||n-et||this.disabled}},watch:{currentValue:function(t){this.$emit("input",+t)},value:function(t){t&&(this.currentValue=+t)}},methods:{handleInputChange:function(t){var e=+t.target.value,n=+this.max,r=+this.min;e>n?e=n:e-1}},message:{type:String,default:"",validate:function(t){if("success"===this.type||"fail"===this.type)return t.length<=16}},forbidClick:{type:Boolean,default:!1}},data:function(){return{visible:!1}},computed:{displayStyle:function(){return l.indexOf(this.type)>-1?"default":this.type}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"zan-uploader",props:{disabled:{type:Boolean,default:!1},beforeRead:Function,resultType:{type:String,default:"dataUrl",validator:function(t){return"dataUrl"===t||"text"===t}}},methods:{onValueChange:function(t){var e=this;if(!this.disabled){var n=t.target.files,r=n[0];if(r&&(!this.beforeRead||this.beforeRead(r))){var i=new FileReader;i.onload=function(t){e.$emit("file-readed",{name:r.name,type:r.type,size:r.size,content:t.target.result}),e.$refs.input.value=""},"dataUrl"===this.resultType?i.readAsDataURL(r):"text"===this.resultType&&i.readAsText(r)}}}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(175),i=function(t){return t&&t.__esModule?t:{default:t}}(r);e.default=i.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(176),i=function(t){return t&&t.__esModule?t:{default:t}}(r);e.default=i.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(177),i=function(t){return t&&t.__esModule?t:{default:t}}(r);e.default=i.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(93),i=function(t){return t&&t.__esModule?t:{default:t}}(r);e.default=i.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=["mini","small","normal","large"],i=["default","danger","primary"];e.default={name:"zan-button",props:{disabled:Boolean,loading:Boolean,block:Boolean,tag:{type:String,default:"button"},nativeType:String,type:{type:String,default:"default",validator:function(t){return i.indexOf(t)>-1}},size:{type:String,default:"normal",validator:function(t){return r.indexOf(t)>-1}}},methods:{handleClick:function(t){this.$emit("click",t)}},render:function(t){var e=this.type,n=this.nativeType,r=this.size,i=this.disabled,a=this.loading,o=this.block;return t(this.tag,{attrs:{type:n,disabled:i},class:["zan-button","zan-button--"+e,"zan-button--"+r,{"zan-button--disabled":i,"zan-button--loading":a,"zan-button--block":o}],on:{click:this.handleClick}},[a?t("zan-loading",{class:"zan-button__icon-loading",attrs:{type:"circle",color:"default"===e?"black":"white"}},[]):null,t("span",{class:"zan-button__text"},[this.$slots.default])])}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(178),i=function(t){return t&&t.__esModule?t:{default:t}}(r);e.default=i.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(179),i=function(t){return t&&t.__esModule?t:{default:t}}(r);e.default=i.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(181),i=function(t){return t&&t.__esModule?t:{default:t}}(r);e.default=i.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(182),i=function(t){return t&&t.__esModule?t:{default:t}}(r);e.default=i.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(183),i=function(t){return t&&t.__esModule?t:{default:t}}(r);e.default=i.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(184),i=function(t){return t&&t.__esModule?t:{default:t}}(r);e.default=i.default},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var i=n(135),a=r(i),o=n(2),s=r(o),u=n(185),l=r(u),c=n(14),f=r(c),d=s.default.extend(l.default),p=void 0,h=void 0,v=[],m=function(t){if(p){var e=p.callback;"function"==typeof e&&e(t),p.resolve&&"confirm"===t?p.resolve(t):p.reject&&"cancel"===t&&p.reject(t)}},_=function(){h=new d({el:document.createElement("div")}),h.callback=m},g=function(){if(h||_(),!h.value&&v.length>0){p=v.shift();var t=p.options;for(var e in t)t.hasOwnProperty(e)&&(h[e]=t[e]);void 0===t.callback&&(h.callback=m),document.body.appendChild(h.$el),s.default.nextTick(function(){h.value=!0})}},y=function(t){return new a.default(function(e,n){v.push({options:(0,f.default)({},t),callback:t.callback,resolve:e,reject:n}),g()})};y.alert=function(t){return y((0,f.default)({type:"alert",closeOnClickOverlay:!1,showCancelButton:!1},t))},y.confirm=function(t){return y((0,f.default)({type:"confirm",closeOnClickOverlay:!0,showCancelButton:!0},t))},y.close=function(){h.value=!1,v=[],p=null},e.default=y},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(186),i=function(t){return t&&t.__esModule?t:{default:t}}(r);e.default=i.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(103),i=function(t){return t&&t.__esModule?t:{default:t}}(r);e.default=i.default},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var i=n(2),a=r(i),o=n(188),s=r(o),u=n(14),l=(r(u),void 0),c=a.default.extend(s.default),f=function(){l=new c({el:document.createElement("div")})},d=function(t){l||f(),l.value||(l.images=t,document.body.appendChild(l.$el),a.default.nextTick(function(){l.value=!0}))};e.default=d},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={install:function(t,e){function n(){o.scrollTop===a?(window.cancelAnimationFrame(i),window.dispatchEvent(s)):a=o.scrollTop,window.requestAnimationFrame(n)}function r(t){if(t){var n=this.modifiers.fade||e.fade,r=this.modifiers.nohori||e.nohori;n&&(this.el.style.opacity=0,this.el.style.transition="opacity .3s",this.el.style.webkitTransition="opacity .3s");var i=function(){if(null!==this.el){var e=this.el.getBoundingClientRect(),n=document.head.parentNode.clientWidth,a=document.head.parentNode.clientHeight,s=function(){this.el.src=t,this.el.addEventListener("load",o),window.removeEventListener("scrollEnd",i,!0),window.removeEventListener("resize",i,!0)}.bind(this);this.el.src!==t&&(r?e.bottom>=0&&e.top<=a&&s():e.bottom>=0&&e.top<=a&&e.right>=0&&e.left<=n&&s())}}.bind(this),a=function(){i(),this.el&&this.el.removeEventListener("load",a),window.addEventListener("scrollEnd",i,!0),window.addEventListener("resize",i,!0)}.bind(this),o=function(){null!==this.el&&(n&&(this.el.style.opacity=1),this.el.removeEventListener("load",o))}.bind(this);this.el.addEventListener("load",a)}}e=e||{fade:!1,nohori:!1};var i=null,a=0,o=document.body,s=document.createEvent("HTMLEvents");s.initEvent("scrollEnd",!0,!1),document.addEventListener("scroll",function(){i||(i=window.requestAnimationFrame(n))},!0),t.directive("lazyload",r)}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(190),i=function(t){return t&&t.__esModule?t:{default:t}}(r);e.default=i.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){var n=function(t){e.drag&&e.drag(o?t.changedTouches[0]||t.touches[0]:t)},r=function t(r){o||(document.removeEventListener("mousemove",n),document.removeEventListener("mouseup",t)),document.onselectstart=null,document.ondragstart=null,a=!1,e.end&&e.end(o?r.changedTouches[0]||r.touches[0]:r)};t.addEventListener(o?"touchstart":"mousedown",function(t){a||(document.onselectstart=function(){return!1},document.ondragstart=function(){return!1},o||(document.addEventListener("mousemove",n),document.addEventListener("mouseup",r)),a=!0,e.start&&(t.preventDefault(),e.start(o?t.changedTouches[0]||t.touches[0]:t)))}),o&&(t.addEventListener("touchmove",n),t.addEventListener("touchend",r),t.addEventListener("touchcancel",r))};var r=n(2),i=function(t){return t&&t.__esModule?t:{default:t}}(r),a=!1,o=!i.default.prototype.$isServer&&"ontouchstart"in window},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(193),i=function(t){return t&&t.__esModule?t:{default:t}}(r);e.default=i.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(194),i=function(t){return t&&t.__esModule?t:{default:t}}(r);e.default=i.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(195),i=function(t){return t&&t.__esModule?t:{default:t}}(r);e.default=i.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(196),i=function(t){return t&&t.__esModule?t:{default:t}}(r);e.default=i.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(197),i=function(t){return t&&t.__esModule?t:{default:t}}(r);e.default=i.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(198),i=function(t){return t&&t.__esModule?t:{default:t}}(r);e.default=i.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(199),i=function(t){return t&&t.__esModule?t:{default:t}}(r);e.default=i.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(200),i=function(t){return t&&t.__esModule?t:{default:t}}(r);e.default=i.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(201),i=function(t){return t&&t.__esModule?t:{default:t}}(r);e.default=i.default},function(t,e,n){"use strict";function r(t,e){o.EventEmitter.apply(this,arguments),this.isStarting=!1,this.startPt=null,this.endPt=null,this.isDeaf=!1,this.options=(0,o.extend)({listenMoving:!1},e),this.host=t,this.onTouchStart=this.onTouchStart.bind(this),this.onTouchMove=this.onTouchMove.bind(this),this.onTouchEnd=this.onTouchEnd.bind(this),this.bind(this.host)}Object.defineProperty(e,"__esModule",{value:!0});var i=n(21),a=function(t){return t&&t.__esModule?t:{default:t}}(i),o=n(20);r.prototype=(0,a.default)(new o.EventEmitter),(0,o.extend)(r.prototype,{bind:function(t){(0,o.bindEvents)(t,"touchstart mousedown",this.onTouchStart),this.options.listenMoving&&(0,o.bindEvents)(window,"touchmove mousemove",this.onTouchMove),(0,o.bindEvents)(window,"touchend mouseup touchcancel",this.onTouchEnd)},onTouchStart:function(t){this.isDeaf||this.isStarting||(this.isStarting=!0,this.orgDirection=null,this.startPt=this.pointerEventToXY(t))},onTouchMove:function(t){this.isStarting&&this.caculate(t)},onTouchEnd:function(t){this.isStarting&&(this.isStarting=!1,this.caculate(t,!0))},caculate:function(t,e){var n,r;this.endPt=this.pointerEventToXY(t),n=this.startPt.y-this.endPt.y,r=this.startPt.x-this.endPt.x,n&&this.emit(n>0?"up":"down",n,e,t),r&&this.emit(r>0?"left":"right",r,e,t),null==this.orgDirection&&(this.orgDirection=Math.abs(r)>Math.abs(n)),this.emit("move",{x:r,y:n},e,t,{orgDirection:this.orgDirection})},pointerEventToXY:function(t){var e={x:0,y:0},n=t.type;if(t.originalEvent&&(t=t.originalEvent),["touchstart","touchmove","touchend","touchcancel"].indexOf(n)>-1){var r=t.touches[0]||t.changedTouches[0];e.x=r.pageX,e.y=r.pageY}else["mousedown","mouseup","mousemove","mouseover","mouseout","mouseenter","mouseleave"].indexOf(n)>-1&&(e.x=t.pageX,e.y=t.pageY);return e},deaf:function(){this.isDeaf=!0},undeaf:function(){this.isDeaf=!1},destroy:function(){(0,o.removeEvents)(this.host,"touchstart mousedown",this.onTouchStart),this.options.listenMoving&&(0,o.removeEvents)(window,"touchmove mousemove",this.onTouchMove),(0,o.removeEvents)(window,"touchend mouseup touchcancel",this.onTouchEnd)}}),e.default=r},function(t,e,n){"use strict";function r(t,e){o.EventEmitter.apply(this,arguments),this.wrapElem=t,this.wrapSize={width:function(){return t.clientWidth},height:function(){return t.clientHeight}},this.options=(0,o.extend)({loop:!0,autoPlay:!1,startIndex:0},e),this.init.apply(this,arguments)}Object.defineProperty(e,"__esModule",{value:!0});var i=n(21),a=function(t){return t&&t.__esModule?t:{default:t}}(i),o=n(20),s=function(t,e){Array.prototype.forEach.call(t,function(t){(0,o.extend)(t.style,e)})};r.prototype=(0,a.default)(new o.EventEmitter),(0,o.extend)(r.prototype,{init:function(){this.update()},getCurrentDist:function(){return this.mCache.currentDist},update:function(){var t=this,e=this.pages;if(this.pages=this.wrapElem.querySelectorAll(".zan-swipe-item"),e&&e.length===this.pages.length){if(Array.prototype.every.call(this.pages,function(n,r){return t.pages[r]===e[r]}))return}var n={position:"absolute",top:0,left:0,width:"100%",height:"100%","-webkit-transform":"translate3d(-9999px, 0, 0)","pointer-events":"none"};s(this.pages,n),this.mCache={dist:0,offsetPage:0},this.setCurrentPage(0),this.movePage(this.options.startIndex*this.wrapSize.width(),!0)},renderPage:function(){var t,e,n,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,a=this.wrapSize.width(),o=i*a-r,s=o-a,u=o+a;t=this.getCurrentPage(),t&&(t.style["-webkit-transform"]="translate3d("+o+"px, 0, 0)",t.style.display="block"),e=this.pages[this.mapLoopPage(i-1)],e&&(Math.abs(s)<=a?e.style["-webkit-transform"]="translate3d("+s+"px, 0, 0)":this.pages.length>2&&(e.style["-webkit-transform"]="translate3d(-9999px, 0, 0)")),(n=this.pages[this.mapLoopPage(i+1)])&&(Math.abs(u)<=a?n.style["-webkit-transform"]="translate3d("+u+"px, 0, 0)":this.pages.length>2&&(n.style["-webkit-transform"]="translate3d(-9999px, 0, 0)"))},movePage:function(t,e){var n;this.mCache.currentDist=t+this.mCache.dist,e&&(this.mCache.dist+=t),n=Math.round(this.mCache.currentDist/this.wrapSize.width())||0,n!==this.mCache.offsetPage&&(this.setCurrentPage(n),this.emit("pageChangeEnd",this.getCurrentPage(),this.currentIndex,this.mCache.offsetPage),this.mCache.offsetPage=n),this.renderPage(this.mCache.currentDist,n)},getCurrentPage:function(){return this.pages[this.currentIndex]},mapLoopPage:function(t){if(this.options.loop){var e=t<0?-1:1,n=this.pages.length;return Math.abs(n+e*Math.abs(t)%n)%n}return t>=this.pages.length||t<0?this.pages.length:t},setCurrentPage:function(t){this.currentIndex=this.mapLoopPage(t)}}),e.default=r},function(t,e,n){"use strict";function r(t,e,n){var r=t.wrapElem,i=this;o.EventEmitter.apply(this,arguments),this.scroll=t,this.input=e,this.input.on("move",this.movementReact.bind(this)),this.wrapSize={width:function(){return r.clientWidth},height:function(){return r.clientHieght}},this.options=(0,o.extend)({intervalTween:3e3,threshold:20},n),this.scroll.options.autoPlay&&this.initMove(),this.on("bounceEnd",function(){i.scroll.options.autoPlay&&i.initMove(),i.input.undeaf()}).on("bounceStart",function(){i.input.deaf()})}Object.defineProperty(e,"__esModule",{value:!0});var i=n(21),a=function(t){return t&&t.__esModule?t:{default:t}}(i),o=n(20);r.prototype=(0,a.default)(new o.EventEmitter),(0,o.extend)(r.prototype,{clearTransition:function(){(0,o.cancelAnimationFrame)(this.transitionReq)},movementReact:function(t,e,n,r){e&&this.launch(r.orgDirection?t.x:0),this.clearMove()},launch:function(t){var e=this,n=t/Math.abs(t),r=0,i=e.wrapSize.width(),a=Math.round(t/i),o=this.scroll.mCache.offsetPage;r=i*a,0===r&&Math.abs(t)>e.options.threshold&&(r=i*n),e.scroll.options.loop||(o<=0&&(r=Math.abs(t)>e.options.threshold&&n>0?i*n:i*(a-o)),1===this.scroll.pages.length?r=0:o>=this.scroll.pages.length-1&&(r=Math.abs(t)>e.options.threshold&&n<0?i*n:i*(a-o+this.scroll.pages.length-1))),this.initTween(r-t,150,"bounce")},initTween:function(t,e,n){function r(){if((i=new Date-s)>e)return a.emit(n,{x:t},!0),void a.emit(n+"End");a.emit(n,{x:t/e*i},!1),a.tweenRid=(0,o.requestAnimationFrame)(r)}if(0!==t){var i,a=this,s=new Date;this.cancelTween(),this.emit(n+"Start"),r()}},cancelTween:function(){(0,o.cancelAnimationFrame)(this.tweenRid)},initMove:function(){function t(){n.currentIndex!==n.pages.length-1||n.options.loop?e.initTween(e.wrapSize.width(),200,"autoPlay"):e.initTween(-e.wrapSize.width()*(n.pages.length-1),200,"autoPlay"),e.moveTid=setTimeout(t,r)}var e=this,n=this.scroll,r=e.options.intervalTween;this.clearMove(),e.moveTid=setTimeout(t,r)},clearMove:function(){clearTimeout(this.moveTid)}}),e.default=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(204),i=function(t){return t&&t.__esModule?t:{default:t}}(r);e.default=i.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(205),i=function(t){return t&&t.__esModule?t:{default:t}}(r);e.default=i.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(206),i=function(t){return t&&t.__esModule?t:{default:t}}(r);e.default=i.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(207),i=function(t){return t&&t.__esModule?t:{default:t}}(r);e.default=i.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(124),i=function(t){return t&&t.__esModule?t:{default:t}}(r);e.default=i.default},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var i=n(2),a=r(i),o=n(14),s=r(o),u=a.default.extend(n(208)),l=[],c=function(){if(l.length>0){var t=l[0];return l.splice(0,1),t}return new u({el:document.createElement("div")})},f=function(t){t&&l.push(t)},d=function(t){t.target.parentNode&&t.target.parentNode.removeChild(t.target)},p=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.duration||3e3,n=c();return f(n),n.closed=!1,clearTimeout(n.timer),n.type=t.type?t.type:"text",n.message="string"==typeof t?t:t.message,n.forbidClick=!!t.forbidClick&&t.forbidClick,n.clear=function(){n.closed||(n.visible=!1,n.$el.addEventListener("transitionend",d),n.closed=!0)},document.body.appendChild(n.$el),a.default.nextTick(function(){n.visible=!0,n.$el.removeEventListener("transitionend",d),n.timer=setTimeout(function(){n.clear()},e)}),n};p.loading=function(t){return new p((0,s.default)({type:"loading"},t))},p.success=function(t){var e="string"==typeof t?t:t.message;return new p((0,s.default)({type:"success",message:e},t))},p.fail=function(t){var e="string"==typeof t?t:t.message;return new p((0,s.default)({type:"fail",message:e},t))},e.default=p},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(209),i=function(t){return t&&t.__esModule?t:{default:t}}(r);e.default=i.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(128),i=function(t){return t&&t.__esModule?t:{default:t}}(r);e.default=i.default},function(t,e,n){"use strict";function r(){var t=this;this.scrollEventListener=u.default.debounce(i.bind(this),200),this.scrollEventTarget=u.default.getScrollEventTarget(this.el);var e=this.el.getAttribute("waterfall-disabled"),n=!1;e&&(this.vm.$watch(e,function(e){t.disabled=e,t.scrollEventListener()}),n=Boolean(this.vm[e])),this.disabled=n;var r=this.el.getAttribute("waterfall-offset");this.offset=Number(r)||c,this.scrollEventTarget.addEventListener("scroll",this.scrollEventListener),this.scrollEventListener()}function i(){var t=this.el,e=this.scrollEventTarget;if(!this.disabled){var n=u.default.getScrollTop(e),r=n+u.default.getVisibleHeight(e),i=!1;if(t===e)i=e.scollHeight-r0}a&&this.cb.upper&&this.cb.upper({target:e,top:n})}}function a(t){t[l].vm.$nextTick(function(){u.default.isAttached(t)&&r.call(t[l])})}function o(t){var e=t[l];e.vm._isMounted?a(t):e.vm.$on("hook:mounted",function(){a(t)})}Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return{bind:function(e,n,r){e[l]||(e[l]={el:e,vm:r.context,cb:{}}),e[l].cb[t]=n.value,o(e)},update:function(t){t[l].scrollEventListener()},unbind:function(t){var e=t[l];e.scrollEventTarget.removeEventListener("scroll",e.scrollEventListener)}}};var s=n(131),u=function(t){return t&&t.__esModule?t:{default:t}}(s),l="@@Waterfall",c=300},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var i=n(127),a=r(i),o=n(2),s=r(o),u=function(t){t.directive("WaterfallLower",(0,a.default)("lower")),t.directive("WaterfallUpper",(0,a.default)("upper"))};s.default.prototype.$isServer||s.default.use(u),a.default.install=u,e.default=a.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(2),i=(function(t){t&&t.__esModule?t:{default:t}}(r),n(130)),a=function(){var t=window.popupContext&&window.popupContext.modalDom;return t?window.popupContext.hasModal=!0:(window.popupContext.hasModal=!1,t=document.createElement("div"),window.popupContext.modalDom=t,t.addEventListener("touchmove",function(t){t.preventDefault(),t.stopPropagation()}),t.addEventListener("click",function(){o.handleOverlayClick&&o.handleOverlayClick()})),t},o={nextZIndex:function(){return this.popupContext.zIndex++},getInstance:function(t){return this.popupContext.instances[t]},register:function(t,e,n){t&&e&&(this.popupContext=n,this.popupContext.instances[t]=e)},deregister:function(t){t&&(this.popupContext.instances[t]=null,delete this.popupContext.instances[t])},handleOverlayClick:function(){var t=this.popupContext.modalStack[this.popupContext.modalStack.length-1];if(t){var e=o.getInstance(t.id);e&&e.closeOnClickOverlay&&e.close()}},openModal:function(t,e,n){if(t&&void 0!==e){for(var r=this.popupContext.modalStack,o=0,s=r.length;o0){if(n[n.length-1].id===t)n.pop(),n.length>0&&(r.style.zIndex=n[n.length-1].zIndex);else for(var i=n.length-1;i>=0;i--)if(n[i].id===t){n.splice(i,1);break}}0===n.length&&setTimeout(function(){r.parentNode&&r.parentNode.removeChild(r),r.style.display="none",e.modalDom=null},200)}};e.default=o},function(t,e,n){"use strict";function r(t,e){if(!t||!e)return!1;if(e.indexOf(" ")!==-1)throw new Error("className should not contain space.");return t.classList?t.classList.contains(e):(" "+t.className+" ").indexOf(" "+e+" ")>-1}function i(t,e){if(t){for(var n=t.className,i=(e||"").split(" "),a=0,o=i.length;ac;)if((s=u[c++])!=s)return!0}else for(;l>c;c++)if((t||c in u)&&u[c]===n)return t||c||0;return!t&&-1}}},function(t,e,n){var r=n(16),i=n(148),a=n(147),o=n(5),s=n(48),u=n(166),l={},c={},e=t.exports=function(t,e,n,f,d){var p,h,v,m,_=d?function(){return t}:u(t),g=r(n,f,e?2:1),y=0;if("function"!=typeof _)throw TypeError(t+" is not iterable!");if(a(_)){for(p=s(t.length);p>y;y++)if((m=e?g(o(h=t[y])[0],h[1]):g(t[y]))===l||m===c)return m}else for(v=_.call(t);!(h=v.next()).done;)if((m=i(v,g,h.value,e))===l||m===c)return m};e.BREAK=l,e.RETURN=c},function(t,e,n){t.exports=!n(6)&&!n(19)(function(){return 7!=Object.defineProperty(n(24)("div"),"a",{get:function(){return 7}}).a})},function(t,e){t.exports=function(t,e,n){var r=void 0===n;switch(e.length){case 0:return r?t():t.call(n);case 1:return r?t(e[0]):t.call(n,e[0]);case 2:return r?t(e[0],e[1]):t.call(n,e[0],e[1]);case 3:return r?t(e[0],e[1],e[2]):t.call(n,e[0],e[1],e[2]);case 4:return r?t(e[0],e[1],e[2],e[3]):t.call(n,e[0],e[1],e[2],e[3])}return t.apply(n,e)}},function(t,e,n){var r=n(9),i=n(1)("iterator"),a=Array.prototype;t.exports=function(t){return void 0!==t&&(r.Array===t||a[i]===t)}},function(t,e,n){var r=n(5);t.exports=function(t,e,n,i){try{return i?e(r(n)[0],n[1]):e(n)}catch(e){var a=t.return;throw void 0!==a&&r(a.call(t)),e}}},function(t,e,n){"use strict";var r=n(44),i=n(45),a=n(25),o={};n(7)(o,n(1)("iterator"),function(){return this}),t.exports=function(t,e,n){t.prototype=r(o,{next:i(1,n)}),a(t,e+" Iterator")}},function(t,e,n){var r=n(1)("iterator"),i=!1;try{var a=[7][r]();a.return=function(){i=!0},Array.from(a,function(){throw 2})}catch(t){}t.exports=function(t,e){if(!e&&!i)return!1;var n=!1;try{var a=[7],o=a[r]();o.next=function(){return{done:n=!0}},a[r]=function(){return o},t(a)}catch(t){}return n}},function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},function(t,e,n){var r=n(3),i=n(47).set,a=r.MutationObserver||r.WebKitMutationObserver,o=r.process,s=r.Promise,u="process"==n(15)(o);t.exports=function(){var t,e,n,l=function(){var r,i;for(u&&(r=o.domain)&&r.exit();t;){i=t.fn,t=t.next;try{i()}catch(r){throw t?n():e=void 0,r}}e=void 0,r&&r.enter()};if(u)n=function(){o.nextTick(l)};else if(a){var c=!0,f=document.createTextNode("");new a(l).observe(f,{characterData:!0}),n=function(){f.data=c=!c}}else if(s&&s.resolve){var d=s.resolve();n=function(){d.then(l)}}else n=function(){i.call(r,l)};return function(r){var i={fn:r,next:void 0};e&&(e.next=i),t||(t=i,n()),e=i}}},function(t,e,n){"use strict";var r=n(31),i=n(155),a=n(158),o=n(32),s=n(41),u=Object.assign;t.exports=!u||n(19)(function(){var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach(function(t){e[t]=t}),7!=u({},t)[n]||Object.keys(u({},e)).join("")!=r})?function(t,e){for(var n=o(t),u=arguments.length,l=1,c=i.f,f=a.f;u>l;)for(var d,p=s(arguments[l++]),h=c?r(p).concat(c(p)):r(p),v=h.length,m=0;v>m;)f.call(p,d=h[m++])&&(n[d]=p[d]);return n}:u},function(t,e,n){var r=n(10),i=n(5),a=n(31);t.exports=n(6)?Object.defineProperties:function(t,e){i(t);for(var n,o=a(e),s=o.length,u=0;s>u;)r.f(t,n=o[u++],e[n]);return t}},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e,n){var r=n(17),i=n(32),a=n(26)("IE_PROTO"),o=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=i(t),r(t,a)?t[a]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?o:null}},function(t,e,n){var r=n(17),i=n(28),a=n(143)(!1),o=n(26)("IE_PROTO");t.exports=function(t,e){var n,s=i(t),u=0,l=[];for(n in s)n!=o&&r(s,n)&&l.push(n);for(;e.length>u;)r(s,n=e[u++])&&(~a(l,n)||l.push(n));return l}},function(t,e){e.f={}.propertyIsEnumerable},function(t,e,n){var r=n(7);t.exports=function(t,e,n){for(var i in e)n&&t[i]?t[i]=e[i]:r(t,i,e[i]);return t}},function(t,e,n){t.exports=n(7)},function(t,e,n){"use strict";var r=n(3),i=n(4),a=n(10),o=n(6),s=n(1)("species");t.exports=function(t){var e="function"==typeof i[t]?i[t]:r[t];o&&e&&!e[s]&&a.f(e,s,{configurable:!0,get:function(){return this}})}},function(t,e,n){var r=n(5),i=n(22),a=n(1)("species");t.exports=function(t,e){var n,o=r(t).constructor;return void 0===o||void 0==(n=r(o)[a])?e:i(n)}},function(t,e,n){var r=n(27),i=n(23);t.exports=function(t){return function(e,n){var a,o,s=String(i(e)),u=r(n),l=s.length;return u<0||u>=l?t?"":void 0:(a=s.charCodeAt(u),a<55296||a>56319||u+1===l||(o=s.charCodeAt(u+1))<56320||o>57343?t?s.charAt(u):a:t?s.slice(u,u+2):o-56320+(a-55296<<10)+65536)}}},function(t,e,n){var r=n(27),i=Math.max,a=Math.min;t.exports=function(t,e){return t=r(t),t<0?i(t+e,0):a(t,e)}},function(t,e,n){var r=n(18);t.exports=function(t,e){if(!r(t))return t;var n,i;if(e&&"function"==typeof(n=t.toString)&&!r(i=n.call(t)))return i;if("function"==typeof(n=t.valueOf)&&!r(i=n.call(t)))return i;if(!e&&"function"==typeof(n=t.toString)&&!r(i=n.call(t)))return i;throw TypeError("Can't convert object to primitive value")}},function(t,e,n){var r=n(38),i=n(1)("iterator"),a=n(9);t.exports=n(4).getIteratorMethod=function(t){if(void 0!=t)return t[i]||t["@@iterator"]||a[r(t)]}},function(t,e,n){"use strict";var r=n(141),i=n(151),a=n(9),o=n(28);t.exports=n(42)(Array,"Array",function(t,e){this._t=o(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,i(1)):"keys"==e?i(0,n):"values"==e?i(0,t[n]):i(0,[n,t[n]])},"values"),a.Arguments=a.Array,r("keys"),r("values"),r("entries")},function(t,e,n){var r=n(8);r(r.S+r.F,"Object",{assign:n(153)})},function(t,e,n){var r=n(8);r(r.S,"Object",{create:n(44)})},function(t,e,n){var r=n(8);r(r.S+r.F*!n(6),"Object",{defineProperty:n(10).f})},function(t,e){},function(t,e,n){"use strict";var r,i,a,o=n(43),s=n(3),u=n(16),l=n(38),c=n(8),f=n(18),d=n(22),p=n(142),h=n(144),v=n(162),m=n(47).set,_=n(152)(),g=s.TypeError,y=s.process,b=s.Promise,y=s.process,x="process"==l(y),w=function(){},C=!!function(){try{var t=b.resolve(1),e=(t.constructor={})[n(1)("species")]=function(t){t(w,w)};return(x||"function"==typeof PromiseRejectionEvent)&&t.then(w)instanceof e}catch(t){}}(),k=function(t,e){return t===e||t===b&&e===a},O=function(t){var e;return!(!f(t)||"function"!=typeof(e=t.then))&&e},M=function(t){return k(b,t)?new E(t):new i(t)},E=i=function(t){var e,n;this.promise=new t(function(t,r){if(void 0!==e||void 0!==n)throw g("Bad Promise constructor");e=t,n=r}),this.resolve=d(e),this.reject=d(n)},z=function(t){try{t()}catch(t){return{error:t}}},P=function(t,e){if(!t._n){t._n=!0;var n=t._c;_(function(){for(var r=t._v,i=1==t._s,a=0;n.length>a;)!function(e){var n,a,o=i?e.ok:e.fail,s=e.resolve,u=e.reject,l=e.domain;try{o?(i||(2==t._h&&T(t),t._h=1),o===!0?n=r:(l&&l.enter(),n=o(r),l&&l.exit()),n===e.promise?u(g("Promise-chain cycle")):(a=O(n))?a.call(n,s,u):s(n)):u(r)}catch(t){u(t)}}(n[a++]);t._c=[],t._n=!1,e&&!t._h&&S(t)})}},S=function(t){m.call(s,function(){var e,n,r,i=t._v;if(j(t)&&(e=z(function(){x?y.emit("unhandledRejection",i,t):(n=s.onunhandledrejection)?n({promise:t,reason:i}):(r=s.console)&&r.error&&r.error("Unhandled promise rejection",i)}),t._h=x||j(t)?2:1),t._a=void 0,e)throw e.error})},j=function(t){if(1==t._h)return!1;for(var e,n=t._a||t._c,r=0;n.length>r;)if(e=n[r++],e.fail||!j(e.promise))return!1;return!0},T=function(t){m.call(s,function(){var e;x?y.emit("rejectionHandled",t):(e=s.onrejectionhandled)&&e({promise:t,reason:t._v})})},$=function(t){var e=this;e._d||(e._d=!0,e=e._w||e,e._v=t,e._s=2,e._a||(e._a=e._c.slice()),P(e,!0))},A=function(t){var e,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===t)throw g("Promise can't be resolved itself");(e=O(t))?_(function(){var r={_w:n,_d:!1};try{e.call(t,u(A,r,1),u($,r,1))}catch(t){$.call(r,t)}}):(n._v=t,n._s=1,P(n,!1))}catch(t){$.call({_w:n,_d:!1},t)}}};C||(b=function(t){p(this,b,"Promise","_h"),d(t),r.call(this);try{t(u(A,this,1),u($,this,1))}catch(t){$.call(this,t)}},r=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},r.prototype=n(159)(b.prototype,{then:function(t,e){var n=M(v(this,b));return n.ok="function"!=typeof t||t,n.fail="function"==typeof e&&e,n.domain=x?y.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&P(this,!1),n.promise},catch:function(t){return this.then(void 0,t)}}),E=function(){var t=new r;this.promise=t,this.resolve=u(A,t,1),this.reject=u($,t,1)}),c(c.G+c.W+c.F*!C,{Promise:b}),n(25)(b,"Promise"),n(161)("Promise"),a=n(4).Promise,c(c.S+c.F*!C,"Promise",{reject:function(t){var e=M(this);return(0,e.reject)(t),e.promise}}),c(c.S+c.F*(o||!C),"Promise",{resolve:function(t){if(t instanceof b&&k(t.constructor,this))return t;var e=M(this);return(0,e.resolve)(t),e.promise}}),c(c.S+c.F*!(C&&n(150)(function(t){b.all(t).catch(w)})),"Promise",{all:function(t){var e=this,n=M(e),r=n.resolve,i=n.reject,a=z(function(){var n=[],a=0,o=1;h(t,!1,function(t){var s=a++,u=!1;n.push(void 0),o++,e.resolve(t).then(function(t){u||(u=!0,n[s]=t,--o||r(n))},i)}),--o||r(n)});return a&&i(a.error),n.promise},race:function(t){var e=this,n=M(e),r=n.reject,i=z(function(){h(t,!1,function(t){e.resolve(t).then(n.resolve,r)})});return i&&r(i.error),n.promise}})},function(t,e,n){"use strict";var r=n(163)(!0);n(42)(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,e=this._t,n=this._i;return n>=e.length?{value:void 0,done:!0}:(t=r(e,n),this._i+=t.length,{value:t,done:!1})})},function(t,e,n){n(167);for(var r=n(3),i=n(7),a=n(9),o=n(1)("toStringTag"),s=["NodeList","DOMTokenList","MediaList","StyleSheetList","CSSRuleList"],u=0;u<5;u++){var l=s[u],c=r[l],f=c&&c.prototype;f&&!f[o]&&i(f,o,l),a[l]=a.Array}},function(t,e,n){var r=n(0)(n(54),n(234),null,null);t.exports=r.exports},function(t,e,n){var r=n(0)(n(55),n(237),null,null);t.exports=r.exports},function(t,e,n){var r=n(0)(n(56),n(214),null,null);t.exports=r.exports},function(t,e,n){var r=n(0)(n(57),n(216),null,null);t.exports=r.exports},function(t,e,n){var r=n(0)(n(58),n(219),null,null);t.exports=r.exports},function(t,e,n){var r=n(0)(n(59),n(233),null,null);t.exports=r.exports},function(t,e,n){var r=n(0)(n(60),n(215),null,null);t.exports=r.exports},function(t,e,n){var r=n(0)(n(61),n(224),null,null);t.exports=r.exports},function(t,e,n){var r=n(0)(n(62),n(223),null,null);t.exports=r.exports},function(t,e,n){var r=n(0)(n(63),n(220),null,null);t.exports=r.exports},function(t,e,n){var r=n(0)(n(64),n(222),null,null);t.exports=r.exports},function(t,e,n){var r=n(0)(n(65),n(238),null,null);t.exports=r.exports},function(t,e,n){var r=n(0)(n(66),n(231),null,null);t.exports=r.exports},function(t,e,n){var r=n(0)(n(67),n(221),null,null);t.exports=r.exports},function(t,e,n){var r=n(0)(n(68),n(235),null,null);t.exports=r.exports},function(t,e,n){var r=n(0)(n(69),n(229),null,null);t.exports=r.exports},function(t,e,n){var r=n(0)(n(70),n(243),null,null);t.exports=r.exports},function(t,e,n){var r=n(0)(n(71),n(217),null,null);t.exports=r.exports},function(t,e,n){var r=n(0)(n(72),n(244),null,null);t.exports=r.exports},function(t,e,n){var r=n(0)(n(73),n(227),null,null);t.exports=r.exports},function(t,e,n){var r=n(0)(n(74),n(236),null,null);t.exports=r.exports},function(t,e,n){var r=n(0)(n(75),n(210),null,null);t.exports=r.exports},function(t,e,n){var r=n(0)(n(76),n(240),null,null);t.exports=r.exports},function(t,e,n){var r=n(0)(n(77),n(232),null,null);t.exports=r.exports},function(t,e,n){var r=n(0)(n(78),n(218),null,null);t.exports=r.exports},function(t,e,n){var r=n(0)(n(79),n(212),null,null);t.exports=r.exports},function(t,e,n){var r=n(0)(n(80),n(228),null,null);t.exports=r.exports},function(t,e,n){var r=n(0)(n(81),n(226),null,null);t.exports=r.exports},function(t,e,n){var r=n(0)(n(82),n(213),null,null);t.exports=r.exports},function(t,e,n){var r=n(0)(n(83),n(241),null,null);t.exports=r.exports},function(t,e,n){var r=n(0)(n(84),n(242),null,null);t.exports=r.exports},function(t,e,n){var r=n(0)(n(85),n(230),null,null);t.exports=r.exports},function(t,e,n){var r=n(0)(n(86),n(211),null,null);t.exports=r.exports},function(t,e,n){var r=n(0)(n(87),n(225),null,null);t.exports=r.exports},function(t,e,n){var r=n(0)(n(88),n(239),null,null);t.exports=r.exports},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement;return(t._self._c||e)("div",{staticClass:"zan-radio-group"},[t._t("default")],2)},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement;return(t._self._c||e)("span",{staticClass:"zan-tag",class:[t.type?"zan-tag--"+t.type:"",{"is-plain":t.plain,"is-mark":t.mark}]},[t._t("default")],2)},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"zan-step",class:t.statusClass},[n("div",{staticClass:"zan-step__circle-container"},["process"!==t.status?n("i",{staticClass:"zan-step__circle"}):n("i",{staticClass:"zan-icon zan-icon-checked"})]),t._v(" "),n("p",{staticClass:"zan-step__title"},[t._t("default")],2),t._v(" "),n("div",{staticClass:"zan-step__line"})])},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement;return(t._self._c||e)("div",{staticClass:"zan-swipe"},[t._t("default")],2)},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("a",{staticClass:"zan-badge",class:t.classNames,attrs:{href:t.url},on:{click:t.handleClick}},[n("div",{staticClass:"zan-badge__active"}),t._v(" "),t.info?n("div",{staticClass:"zan-badge__info"},[t._v(t._s(t.info))]):t._e(),t._v("\n "+t._s(t.title)+"\n")])},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement;return(t._self._c||e)("div",{staticClass:"zan-checkbox-group"},[t._t("default")],2)},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"zan-card"},[n("img",{staticClass:"zan-card__img",attrs:{src:t.thumb,alt:""}}),t._v(" "),n("div",{staticClass:"zan-card__content",class:{"is-center":!this.$slots.footer}},[n("div",{staticClass:"zan-card__info"},[t._t("title",[n("h4",{staticClass:"zan-card__title",domProps:{textContent:t._s(t.title)}})]),t._v(" "),t._t("desc",[t.desc?n("p",{staticClass:"zan-card__desc",domProps:{textContent:t._s(t.desc)}}):t._e()]),t._v(" "),t._t("tags")],2),t._v(" "),t._t("footer")],2)])},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"zan-picker"},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.showToolbar,expression:"showToolbar"}],staticClass:"zan-picker__toolbar"},[t._t("default",[n("a",{staticClass:"zan-picker__cancel",attrs:{href:"javascript:void(0)"},on:{click:t.handlePickerCancel}},[t._v("取消")]),t._v(" "),n("a",{staticClass:"zan-picker__confirm",attrs:{href:"javascript:void(0)"},on:{click:t.handlePickerConfirm}},[t._v("完成")])])],2),t._v(" "),n("div",{staticClass:"zan-picker__columns",class:["zan-picker__columns--"+t.columns.length]},[t._l(t.columns,function(e,r){return n("picker-column",{directives:[{name:"model",rawName:"v-model",value:t.values[r],expression:"values[index]"}],attrs:{values:e.values,"class-name":e.className,itemHeight:t.itemHeight,"visible-item-count":t.visibleItemCount,"value-key":t.valueKey},domProps:{value:t.values[r]},on:{change:function(e){t.columnValueChange(r)},input:function(e){var n=t.values,i=r;Array.isArray(n)?n.splice(i,1,e):t.values[r]=e}}})}),t._v(" "),n("div",{staticClass:"zan-picker-center-highlight",style:{height:t.itemHeight+"px",marginTop:-t.itemHeight/2+"px"}})],2)])},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"zan-search",class:{"zan-search--focus":t.isFocus}},[n("div",{staticClass:"zan-search__input-wrap"},[n("zan-icon",{attrs:{name:"search"}}),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.value,expression:"value"},{name:"refocus",rawName:"v-refocus",value:t.focusStatus,expression:"focusStatus"}],attrs:{type:"text",placeholder:t.placeholder},domProps:{value:t._s(t.value)},on:{focus:t.handleFocus,keyup:function(e){t._k(e.keyCode,"enter",13)||t.handleSearch(e)},input:function(e){e.target.composing||(t.value=e.target.value)}}}),t._v(" "),n("zan-icon",{attrs:{name:"clear"},on:{click:t.handleClean}})],1),t._v(" "),n("div",{staticClass:"zan-search__cancel",class:{"zan-search__cancel--focus":t.isFocus},on:{click:t.handleBack}},[t._v("取消")])])},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement;return(t._self._c||e)("div",{staticClass:"zan-cell-group"},[t._t("default")],2)},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement;return(t._self._c||e)("zan-picker",{attrs:{columns:t.columns,"visible-item-count":t.visibleItemCount,showToolbar:""},on:{change:t.handlePickerChange,confirm:t.handlePickerConfirm}})},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("transition",{attrs:{name:"image-fade"}},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.value,expression:"value"}],ref:"previewContainer",staticClass:"zan-image-preview",on:{click:t.handlePreviewClick}},[n("zan-swipe",t._l(t.images,function(t){return n("zan-swipe-item",[n("img",{staticClass:"zan-image-preview__image",class:{"zan-image-preview__image--center":!0},attrs:{src:t,alt:""}})])}))],1)])},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("transition",{attrs:{name:"dialog-bounce"}},[n("div",{staticClass:"zan-dialog-wrapper"},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.value,expression:"value"}],staticClass:"zan-dialog"},[t.title?n("div",{staticClass:"zan-dialog__header"},[n("div",{staticClass:"zan-dialog__title",domProps:{textContent:t._s(t.title)}})]):t._e(),t._v(" "),t.message?n("div",{staticClass:"zan-dialog__content"},[n("div",{staticClass:"zan-dialog__message",domProps:{innerHTML:t._s(t.message)}})]):t._e(),t._v(" "),n("div",{staticClass:"zan-dialog__footer",class:{"is-twobtn":t.showCancelButton&&t.showConfirmButton}},[n("button",{directives:[{name:"show",rawName:"v-show",value:t.showCancelButton,expression:"showCancelButton"}],staticClass:"zan-dialog__btn zan-dialog__cancel",on:{click:function(e){t.handleAction("cancel")}}},[t._v(t._s(t.cancelButtonText))]),t._v(" "),n("button",{directives:[{name:"show",rawName:"v-show",value:t.showConfirmButton,expression:"showConfirmButton"}],staticClass:"zan-dialog__btn zan-dialog__confirm",on:{click:function(e){t.handleAction("confirm")}}},[t._v(t._s(t.confirmButtonText))])])])])])},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement;return(t._self._c||e)("div",{class:[t.prefix+"-col",(n={},n[t.prefix+"-col-"+t.span]=t.span,n[t.prefix+"-col-offset-"+t.offset]=t.offset,n)],style:t.style},[t._t("default")],2);var n},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"zan-checkbox",class:{"zan-checkbox--disabled":t.isDisabled}},[n("span",{staticClass:"zan-checkbox__input"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.currentValue,expression:"currentValue"}],staticClass:"zan-checkbox__control",attrs:{type:"checkbox",disabled:t.isDisabled},domProps:{checked:Array.isArray(t.currentValue)?t._i(t.currentValue,null)>-1:t.currentValue},on:{change:function(e){var n=t.currentValue,r=e.target,i=!!r.checked;if(Array.isArray(n)){var a=t._i(n,null);i?a<0&&(t.currentValue=n.concat(null)):a>-1&&(t.currentValue=n.slice(0,a).concat(n.slice(a+1)))}else t.currentValue=i}}}),t._v(" "),n("span",{staticClass:"zan-icon",class:{"zan-icon-checked":t.isChecked,"zan-icon-check":!t.isChecked}})]),t._v(" "),n("span",{staticClass:"zan-checkbox__label",on:{click:t.handleLabelClick}},[t._t("default")],2)])},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("transition",{attrs:{name:"zan-toast"}},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.visible,expression:"visible"}],staticClass:"zan-toast-wrapper"},[n("div",{staticClass:"zan-toast",class:["zan-toast--"+t.displayStyle]},["text"===t.displayStyle?[n("div",{staticClass:"zan-toast__text"},[t._v(t._s(t.message))])]:t._e(),t._v(" "),"loading"===t.displayStyle?["loading"===t.type?n("zan-loading",{attrs:{type:"gradient-circle",color:"white"}}):t._e()]:t._e(),t._v(" "),"default"===t.displayStyle?[n("zan-icon",{staticClass:"zan-toast__icon",attrs:{name:t.type}}),t._v(" "),n("div",{staticClass:"zan-toast__text"},[t._v(t._s(t.message))])]:t._e(),t._v(" "),"html"===t.displayStyle?[n("div",{staticClass:"zan-toast__text",domProps:{innerHTML:t._s(t.message)}})]:t._e()],2),t._v(" "),t.forbidClick?n("div",{staticClass:"zan-toast__overlay"}):t._e()])])},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement;return(t._self._c||e)("div",{staticClass:"zan-swipe-item"},[t._t("default")],2)},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"zan-progress"},[n("div",{staticClass:"zan-progress__bar"},[n("span",{staticClass:"zan-progress__bar__finished-portion",style:{backgroundColor:t.componentColor,width:t.percentage+"%"}}),t._v(" "),n("span",{staticClass:"zan-progress__bar__pivot",style:t.pivotStyle},[t._v(t._s(t.currentPivotText))])])])},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"zan-steps",class:"zan-steps--"+t.steps.length},[t.icon?n("div",{staticClass:"zan-steps__status"},[n("i",{staticClass:"zan-icon zan-steps__icon",class:t.computedIconClass}),t._v(" "),n("div",{staticClass:"zan-steps__message"},[n("div",{staticClass:"zan-steps__message-wrapper"},[n("h4",{staticClass:"zan-steps__title",domProps:{textContent:t._s(t.title)}}),t._v(" "),n("p",{staticClass:"zan-steps__desc",domProps:{textContent:t._s(t.description)}})])]),t._v(" "),t._t("message-extra")],2):t._e(),t._v(" "),n("div",{staticClass:"zan-steps__items"},[t._t("default")],2)])},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"zan-panel"},[n("div",{staticClass:"zan-panel__header"},[t._t("header",[n("h4",{staticClass:"zan-panel__title",domProps:{textContent:t._s(t.title)}}),t._v(" "),t.desc?n("span",{staticClass:"zan-panel__desc",domProps:{textContent:t._s(t.desc)}}):t._e(),t._v(" "),t.status?n("span",{staticClass:"zan-panel__status",domProps:{textContent:t._s(t.status)}}):t._e()])],2),t._v(" "),n("div",{staticClass:"zan-panel__content"},[t._t("default")],2),t._v(" "),this.$slots.footer?n("div",{staticClass:"zan-panel__footer"},[t._t("footer")],2):t._e()])},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"zan-tabs"},[n("div",{staticClass:"zan-tabs__nav",class:t.classNames},[n("div",{staticClass:"zan-tabs__nav-bar",style:t.navBarStyle}),t._v(" "),t._l(t.tabs,function(e,r){return n("div",{ref:"tabkey",refInFor:!0,staticClass:"zan-tab",class:{"zan-tab--active":r==t.switchActiveTabKey},on:{click:function(n){t.handleTabClick(r,e)}}},[t._v("\n "+t._s(e.title)+"\n ")])})],2),t._v(" "),n("div",{staticClass:"zan-tabs__content"},[t._t("default")],2)])},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement;return(t._self._c||e)("i",{staticClass:"zan-icon",class:"zan-icon-"+t.name,on:{click:t.handleIconClick}})},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement;return(t._self._c||e)("div",{class:t.prefix+"-row",style:t.style},[t._t("default")],2)},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("a",{staticClass:"zan-cell",attrs:{href:t.url},on:{click:t.handleClick}},[this.$slots.title||t.title||t.label?n("div",{class:{"zan-cell__title":!0,"zan-cell__required":t.required}},[t._t("icon",[t.icon?n("i",{staticClass:"zan-icon",class:"zan-icon-"+t.icon}):t._e()]),t._v(" "),t._t("title",[n("span",{staticClass:"zan-cell__text",domProps:{textContent:t._s(t.title)}}),t._v(" "),t.label?n("span",{staticClass:"zan-cell__label",domProps:{textContent:t._s(t.label)}}):t._e()])],2):t._e(),t._v(" "),n("div",{staticClass:"zan-cell__value",class:{"is-link":t.isLink,"is-alone":!this.$slots.title&&!t.title&&!t.label}},[t._t("default",[n("span",{domProps:{textContent:t._s(t.value)}})])],2),t._v(" "),t.isLink?n("i",{staticClass:"zan-icon zan-icon-arrow"}):t._e()])},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("transition",{attrs:{name:"actionsheet-float"}},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.currentValue,expression:"currentValue"}],staticClass:"zan-actionsheet",class:[t.title?"zan-actionsheet--withtitle":""]},[t.title?n("div",{staticClass:"zan-actionsheet__header"},[n("h3",{domProps:{textContent:t._s(t.title)}}),t._v(" "),n("zan-icon",{attrs:{name:"close"},on:{click:function(e){e.stopPropagation(),t.currentValue=!1}}})],1):t._e(),t._v(" "),t.title?[n("div",{staticClass:"zan-actionsheet__content"},[t._t("default")],2)]:[n("ul",{staticClass:"zan-actionsheet__list"},t._l(t.actions,function(e){return n("li",{staticClass:"zan-actionsheet__item",class:[e.className,e.loading?"zan-actionsheet__item--loading":""],on:{click:function(n){n.stopPropagation(),t.handleItemClick(e)}}},[e.loading?[n("zan-loading",{staticClass:"zan-actionsheet__loading",attrs:{type:"circle",color:"black"}})]:[n("span",{staticClass:"zan-actionsheet__name"},[t._v(t._s(e.name))]),t._v(" "),e.subname?n("span",{staticClass:"zan-actionsheet__subname"},[t._v(t._s(e.subname))]):t._e()]],2)})),t._v(" "),t.cancelText?n("a",{staticClass:"zan-actionsheet__button",on:{click:function(e){e.stopPropagation(),t.currentValue=!1}}},[t._v(t._s(t.cancelText))]):t._e()]],2)])},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"zan-loading"},[n("span",{staticClass:"zan-loading__spinner",class:["zan-loading__spinner--"+t.type,"zan-loading__spinner--"+t.color]})])},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"zan-quantity"},[n("button",{staticClass:"zan-quantity__stepper zan-quantity__minus",class:{"zan-quantity__minus--disabled":t.isMinusDisabled},on:{click:function(e){t.handleChange("minus")}}}),t._v(" "),n("input",{staticClass:"zan-quantity__input",attrs:{type:"text",disabled:t.disabled},domProps:{value:t.currentValue},on:{input:t.handleInputChange}}),t._v(" "),n("button",{staticClass:"zan-quantity__stepper zan-quantity__plus",class:{"zan-quantity__plus--disabled":t.isPlusDisabled},on:{click:function(e){t.handleChange("plus")}}})])},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement;return(t._self._c||e)("div",{staticClass:"zan-badge-group"},[t._t("default")],2)},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("zan-cell",{staticClass:"zan-field",class:{"zan-field--hastextarea":"textarea"===t.type,"zan-field--nolabel":!t.label,"zan-field--disabled":t.disabled,"zan-field--error":t.error,"zan-field--border":t.border,"zan-field--autosize":t.autosize},attrs:{title:t.label,required:t.required}},["textarea"===t.type?n("textarea",{directives:[{name:"model",rawName:"v-model",value:t.currentValue,expression:"currentValue"}],ref:"textareaElement",staticClass:"zan-field__control",attrs:{placeholder:t.placeholder,maxlength:t.maxlength,disabled:t.disabled,readonly:t.readonly,rows:t.rows,cols:t.cols},domProps:{value:t._s(t.currentValue)},on:{focus:t.handleInputFocus,input:function(e){e.target.composing||(t.currentValue=e.target.value)}}}):n("input",{staticClass:"zan-field__control",attrs:{type:t.type,placeholder:t.placeholder,maxlength:t.maxlength,disabled:t.disabled,readonly:t.readonly},domProps:{value:t.currentValue},on:{input:t.handleInput,focus:t.handleInputFocus}})])},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"zan-uploader"},[t._t("default",[n("div",[n("zan-button",{attrs:{block:""}},[t._v("上传文件")])],1)]),t._v(" "),n("input",{ref:"input",staticClass:"zan-uploader__input",attrs:{type:"file"},on:{change:t.onValueChange}})],2)},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"zan-radio",class:{"zan-radio--disabled":t.isDisabled},on:{click:t.handleRadioClick}},[n("span",{staticClass:"zan-radio__input"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.currentValue,expression:"currentValue"}],staticClass:"zan-radio__control",attrs:{type:"radio",disabled:t.isDisabled},domProps:{value:t.name,checked:t._q(t.currentValue,t.name)},on:{change:function(e){t.currentValue=t.name}}}),t._v(" "),n("span",{staticClass:"zan-icon",class:{"zan-icon-checked":t.currentValue===t.name,"zan-icon-check":t.currentValue!==t.name}})]),t._v(" "),n("span",{staticClass:"zan-radio__label",on:{click:t.handleLabelClick}},[t._t("default")],2)])},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"zan-switch",class:t.switchStates,on:{click:t.toggleState}},[n("div",{staticClass:"zan-switch__node"},[t.loading?n("zan-loading",{staticClass:"zan-switch__loading"}):t._e()],1),t._v(" "),n("div",{staticClass:"zan-switch__bg"})])},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement;return(t._self._c||e)("div",{staticClass:"zan-tab__pane",class:t.classNames},[t._t("default")],2)},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"zan-picker-column",class:t.classNames},[n("div",{ref:"wrapper",staticClass:"zan-picker-column-wrapper",class:{dragging:t.isDragging},style:{height:t.visibleContentHeight+"px"}},t._l(t.currentValues,function(e){return n("div",{staticClass:"zan-picker-column__item",class:{"zan-picker-column__item--selected":e===t.currentValue},style:{height:t.itemHeight+"px",lineHeight:t.itemHeight+"px"}},[t._v("\n "+t._s("object"==typeof e&&e[t.valueKey]?e[t.valueKey]:e)+"\n ")])}))])},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("transition",{attrs:{name:t.currentTransition}},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.currentValue,expression:"currentValue"}],staticClass:"zan-popup",class:[t.position?"zan-popup--"+t.position:""]},[t._t("default")],2)])},staticRenderFns:[]}},function(t,e){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(n=window)}t.exports=n},,function(t,e,n){n(264);var r=n(0)(n(258),n(270),null,null);t.exports=r.exports},function(t,e,n){n(265);var r=n(0)(n(259),n(271),null,null);t.exports=r.exports},function(t,e,n){n(266);var r=n(0)(n(260),n(272),null,null);t.exports=r.exports},function(t,e,n){n(263);var r=n(0)(n(261),n(269),null,null);t.exports=r.exports},function(t,e){t.exports=function(){var t=[];return t.toString=function(){for(var t=[],e=0;e=0&&m.splice(e,1)}function o(t){var e=document.createElement("style");return e.type="text/css",i(t,e),e}function s(t,e){var n,r,i;if(e.singleton){var s=v++;n=h||(h=o(e)),r=u.bind(null,n,s,!1),i=u.bind(null,n,s,!0)}else n=o(e),r=l.bind(null,n),i=function(){a(n)};return r(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;r(t=e)}else i()}}function u(t,e,n,r){var i=n?"":r.css;if(t.styleSheet)t.styleSheet.cssText=_(e,i);else{var a=document.createTextNode(i),o=t.childNodes;o[e]&&t.removeChild(o[e]),o.length?t.insertBefore(a,o[e]):t.appendChild(a)}}function l(t,e){var n=e.css,r=e.media,i=e.sourceMap;if(r&&t.setAttribute("media",r),i&&(n+="\n/*# sourceURL="+i.sources[0]+" */",n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(i))))+" */"),t.styleSheet)t.styleSheet.cssText=n;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(n))}}var c={},f=function(t){var e;return function(){return void 0===e&&(e=t.apply(this,arguments)),e}},d=f(function(){return/msie [6-9]\b/.test(window.navigator.userAgent.toLowerCase())}),p=f(function(){return document.head||document.getElementsByTagName("head")[0]}),h=null,v=0,m=[];t.exports=function(t,e){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");e=e||{},void 0===e.singleton&&(e.singleton=d()),void 0===e.insertAt&&(e.insertAt="bottom");var i=r(t);return n(i,e),function(t){for(var a=[],o=0;o-1)return t.splice(n,1)}}function a(t,e){return hn.call(t,e)}function s(t){return"string"==typeof t||"number"==typeof t}function u(t){var e=Object.create(null);return function(n){return e[n]||(e[n]=t(n))}}function l(t,e){function n(n){var r=arguments.length;return r?r>1?t.apply(e,arguments):t.call(e,n):t.call(e)}return n._length=t.length,n}function c(t,e){e=e||0;for(var n=t.length-e,r=new Array(n);n--;)r[n]=t[n+e];return r}function f(t,e){for(var n in e)t[n]=e[n];return t}function d(t){return null!==t&&"object"==typeof t}function p(t){return yn.call(t)===gn}function h(t){for(var e={},n=0;n=0&&Wn[n].id>t.id;)n--;Wn.splice(Math.max(n,Xn)+1,0,t)}else Wn.push(t);Zn||(Zn=!0,An(H))}}function G(t){nr.clear(),K(t,nr)}function K(t,e){var n,r,i=Array.isArray(t);if((i||d(t))&&Object.isExtensible(t)){if(t.__ob__){var o=t.__ob__.dep.id;if(e.has(o))return;e.add(o)}if(i)for(n=t.length;n--;)K(t[n],e);else for(r=Object.keys(t),n=r.length;n--;)K(t[r[n]],e)}}function W(t){t._watchers=[];var e=t.$options;e.props&&Y(t,e.props),e.methods&&Q(t,e.methods),e.data?Z(t):M(t._data={},!0),e.computed&&J(t,e.computed),e.watch&&tt(t,e.watch)}function Y(t,e){var n=t.$options.propsData||{},r=t.$options._propKeys=Object.keys(e),i=!t.$parent;qn.shouldConvert=i;for(var o=0;o-1:t.test(e)}function Ut(t){for(var e=t.data,n=t,r=t;r.child;)r=r.child._vnode,r.data&&(e=Gt(r.data,e));for(;n=n.parent;)n.data&&(e=Gt(e,n.data));return Kt(e)}function Gt(t,e){return{staticClass:Wt(t.staticClass,e.staticClass),class:t.class?[t.class,e.class]:e.class}}function Kt(t){var e=t.class,n=t.staticClass;return n||e?Wt(n,Yt(e)):""}function Wt(t,e){return t?e?t+" "+e:t:e||""}function Yt(t){var e="";if(!t)return e;if("string"==typeof t)return t;if(Array.isArray(t)){for(var n,r=0,i=t.length;r-1?zr[t]=e.constructor===window.HTMLUnknownElement||e.constructor===window.HTMLElement:zr[t]=/HTMLUnknownElement/.test(e.toString())}function Xt(t){if("string"==typeof t){if(!(t=document.querySelector(t)))return document.createElement("div")}return t}function Qt(t,e){var n=document.createElement(t);return"select"!==t?n:(e.data&&e.data.attrs&&"multiple"in e.data.attrs&&n.setAttribute("multiple","multiple"),n)}function te(t,e){return document.createElementNS(Or[t],e)}function ee(t){return document.createTextNode(t)}function ne(t){return document.createComment(t)}function re(t,e,n){t.insertBefore(e,n)}function ie(t,e){t.removeChild(e)}function oe(t,e){t.appendChild(e)}function ae(t){return t.parentNode}function se(t){return t.nextSibling}function ue(t){return t.tagName}function le(t,e){t.textContent=e}function ce(t,e,n){t.setAttribute(e,n)}function fe(t,e){var n=t.data.ref;if(n){var r=t.context,i=t.child||t.elm,a=r.$refs;e?Array.isArray(a[n])?o(a[n],i):a[n]===i&&(a[n]=void 0):t.data.refInFor?Array.isArray(a[n])&&a[n].indexOf(i)<0?a[n].push(i):a[n]=[i]:a[n]=i}}function de(t){return null==t}function pe(t){return null!=t}function he(t,e){return t.key===e.key&&t.tag===e.tag&&t.isComment===e.isComment&&!t.data==!e.data}function ve(t,e,n){var r,i,o={};for(r=e;r<=n;++r)i=t[r].key,pe(i)&&(o[i]=r);return o}function me(t,e){(t.data.directives||e.data.directives)&&_e(t,e)}function _e(t,e){var n,r,i,o=t===jr,a=e===jr,s=ye(t.data.directives,t.context),u=ye(e.data.directives,e.context),l=[],c=[];for(n in u)r=s[n],i=u[n],r?(i.oldValue=r.value,be(i,"update",e,t),i.def&&i.def.componentUpdated&&c.push(i)):(be(i,"bind",e,t),i.def&&i.def.inserted&&l.push(i));if(l.length){var f=function(){for(var n=0;n-1?e.split(/\s+/).forEach(function(e){return t.classList.add(e)}):t.classList.add(e);else{var n=" "+t.getAttribute("class")+" ";n.indexOf(" "+e+" ")<0&&t.setAttribute("class",(n+e).trim())}}function Le(t,e){if(e&&e.trim())if(t.classList)e.indexOf(" ")>-1?e.split(/\s+/).forEach(function(e){return t.classList.remove(e)}):t.classList.remove(e);else{for(var n=" "+t.getAttribute("class")+" ",r=" "+e+" ";n.indexOf(r)>=0;)n=n.replace(r," ");t.setAttribute("class",n.trim())}}function Ne(t){ei(function(){ei(t)})}function Re(t,e){(t._transitionClasses||(t._transitionClasses=[])).push(e),Ve(t,e)}function De(t,e){t._transitionClasses&&o(t._transitionClasses,e),Le(t,e)}function Fe(t,e,n){var r=Ie(t,e),i=r.type,o=r.timeout,a=r.propCount;if(!i)return n();var s=i===Yr?Xr:ti,u=0,l=function(){t.removeEventListener(s,c),n()},c=function(e){e.target===t&&++u>=a&&l()};setTimeout(function(){u0&&(n=Yr,c=a,f=o.length):e===Zr?l>0&&(n=Zr,c=l,f=u.length):(c=Math.max(a,l),n=c>0?a>l?Yr:Zr:null,f=n?n===Yr?o.length:u.length:0),{type:n,timeout:c,propCount:f,hasTransform:n===Yr&&ni.test(r[Jr+"Property"])}}function Be(t,e){for(;t.length1,j=n._enterCb=Ke(function(){P&&(De(n,O),De(n,k)),j.cancelled?(P&&De(n,C),z&&z(n)):S&&S(n),n._enterCb=null});t.data.show||at(t.data.hook||(t.data.hook={}),"insert",function(){var e=n.parentNode,r=e&&e._pending&&e._pending[t.key];r&&r.context===t.context&&r.tag===t.tag&&r.elm._leaveCb&&r.elm._leaveCb(),M&&M(n,j)},"transition-insert"),E&&E(n),P&&(Re(n,C),Re(n,k),Ne(function(){Re(n,O),De(n,C),j.cancelled||T||Fe(n,o,j)})),t.data.show&&(e&&e(),M&&M(n,j)),P||T||j()}}}function Ue(t,e){function n(){_.cancelled||(t.data.show||((r.parentNode._pending||(r.parentNode._pending={}))[t.key]=t),c&&c(r),v&&(Re(r,s),Re(r,l),Ne(function(){Re(r,u),De(r,s),_.cancelled||m||Fe(r,a,_)})),f&&f(r,_),v||m||_())}var r=t.elm;r._enterCb&&(r._enterCb.cancelled=!0,r._enterCb());var i=Ge(t.data.transition);if(!i)return e();if(!r._leaveCb&&1===r.nodeType){var o=i.css,a=i.type,s=i.leaveClass,u=i.leaveToClass,l=i.leaveActiveClass,c=i.beforeLeave,f=i.leave,d=i.afterLeave,p=i.leaveCancelled,h=i.delayLeave,v=o!==!1&&!Sn,m=f&&(f._length||f.length)>1,_=r._leaveCb=Ke(function(){r.parentNode&&r.parentNode._pending&&(r.parentNode._pending[t.key]=null),v&&(De(r,u),De(r,l)),_.cancelled?(v&&De(r,s),p&&p(r)):(e(),d&&d(r)),r._leaveCb=null});h?h(n):n()}}function Ge(t){if(t){if("object"==typeof t){var e={};return t.css!==!1&&f(e,ri(t.name||"v")),f(e,t),e}return"string"==typeof t?ri(t):void 0}}function Ke(t){var e=!1;return function(){e||(e=!0,t())}}function We(t,e){e.data.show||He(e)}function Ye(t,e,n){var r=e.value,i=t.multiple;if(!i||Array.isArray(r)){for(var o,a,s=0,u=t.options.length;s-1,a.selected!==o&&(a.selected=o);else if(_(Je(a),r))return void(t.selectedIndex!==s&&(t.selectedIndex=s));i||(t.selectedIndex=-1)}}function Ze(t,e){for(var n=0,r=e.length;n0,zn=En&&En.indexOf("edge/")>0,Pn=En&&En.indexOf("android")>0,Tn=En&&/iphone|ipad|ipod|ios/.test(En),jn=function(){return void 0===fn&&(fn=!On&&void 0!==e&&"server"===e.process.env.VUE_ENV),fn},$n=On&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__,An=function(){function t(){r=!1;var t=n.slice(0);n.length=0;for(var e=0;e1?c(n):n;for(var r=c(arguments,1),i=0,o=n.length;i1&&(e[n[0].trim()]=n[1].trim())}}),e}),Br=/^--/,qr=/\s*!important$/,Hr=function(t,e,n){Br.test(e)?t.style.setProperty(e,n):qr.test(n)?t.style.setProperty(e,n.replace(qr,""),"important"):t.style[Gr(e)]=n},Ur=["Webkit","Moz","ms"],Gr=u(function(t){if(mr=mr||document.createElement("div"),"filter"!==(t=vn(t))&&t in mr.style)return t;for(var e=t.charAt(0).toUpperCase()+t.slice(1),n=0;nd?(l=de(n[m+1])?null:n[m+1].elm,v(t,l,n,f,m,r)):f>m&&_(t,e,c,d)}function b(t,e,n,r){if(t!==e){if(e.isStatic&&t.isStatic&&e.key===t.key&&(e.isCloned||e.isOnce))return e.elm=t.elm,void(e.child=t.child);var i,o=e.data,a=pe(o);a&&pe(i=o.hook)&&pe(i=i.prepatch)&&i(t,e);var s=e.elm=t.elm,u=t.children,l=e.children;if(a&&f(e)){for(i=0;i1?e-1:0),r=1;r0&&this.__events[t].splice(n,1):delete this.__events[t]}}};var s=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||function(t,e){return window.setTimeout(t,1e3/60)},u=window.cancelAnimationFrame||window.mozCancelAnimationFrame||window.webkitCancelAnimationFrame||window.msRequestAnimationFrame||function(t){clearTimeout(t)},l=function(t,e,n){e=e.split(/\s+/),e.forEach(function(e){return t.addEventListener(e,n)})},c=function(t,e,n){e=e.split(/\s+/),e.forEach(function(e){return t.removeEventListener(e,n)})};e.extend=a,e.EventEmitter=r,e.requestAnimationFrame=s,e.cancelAnimationFrame=u,e.bindEvents=l,e.removeEvents=c},function(t,e,n){t.exports={default:n(138),__esModule:!0}},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},function(t,e,n){var r=n(18),i=n(3).document,o=r(i)&&r(i.createElement);t.exports=function(t){return o?i.createElement(t):{}}},function(t,e,n){var r=n(10).f,i=n(17),o=n(1)("toStringTag");t.exports=function(t,e,n){t&&!i(t=n?t:t.prototype,o)&&r(t,o,{configurable:!0,value:e})}},function(t,e,n){var r=n(46)("keys"),i=n(49);t.exports=function(t){return r[t]||(r[t]=i(t))}},function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},function(t,e,n){var r=n(41),i=n(23);t.exports=function(t){return r(i(t))}},function(t,e){t.exports={"zh-CN":[{name:"开发指南",groups:[{list:[{path:"/install",title:"安装"},{path:"/quickstart",title:"快速上手"}]}]},{name:"ZanUI组件",showInMobile:!0,groups:[{groupName:"基础组件",list:[{path:"/button",title:"Button"},{path:"/icon",title:"Icon"},{path:"/cell",title:"Cell"},{path:"/progress",title:"Progress"},{path:"/panel",title:"Panel"},{path:"/card",title:"Card"},{path:"/loading",title:"Loading"},{path:"/steps",title:"Steps"},{path:"/tag",title:"Tag"},{path:"/badge",title:"Badge"},{path:"/tab",title:"Tab"},{path:"/popup",title:"Popup"},{path:"/swipe",title:"Swipe"},{path:"/search",title:"Search"},{path:"/quantity",title:"Quantity"},{path:"/waterfall",title:"Waterfall"},{path:"/image-preview",title:"ImagePreview"}]},{groupName:"表单",list:[{path:"/switch",title:"Switch"},{path:"/field",title:"Field"},{path:"/radio",title:"Radio"},{path:"/checkbox",title:"Checkbox"},{path:"/uploader",title:"Uploader"}]},{groupName:"操作反馈",list:[{path:"/actionsheet",title:"ActionSheet"},{path:"/toast",title:"Toast"},{path:"/picker",title:"Picker"},{path:"/datetime-picker",title:"Datetime Picker"},{path:"/dialog",title:"Dialog"}]}]}]}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}var i=n(92),o=r(i),a=n(119),s=r(a),u=n(101),l=r(u),c=n(111),f=r(c),d=n(33),p=r(d),h=n(11),v=r(h),m=n(95),_=r(m),y=n(107),g=r(y),b=n(53),x=r(b),w=n(34),C=r(w),k=n(110),O=r(k),E=n(126),M=r(E),S=n(12),z=r(S),P=n(105),T=r(P),j=n(94),$=r(j),A=n(115),V=r(A),L=n(122),N=r(L),R=n(97),D=r(R),F=n(96),I=r(F),B=n(90),q=r(B),H=n(91),U=r(H),G=n(113),K=r(G),W=n(114),Y=r(W),Z=n(121),J=r(Z),X=n(120),Q=r(X),tt=n(104),et=r(tt),nt=n(102),rt=r(nt),it=n(98),ot=r(it),at=n(112),st=r(at),ut=n(89),lt=r(ut),ct=n(109),ft=r(ct),dt=n(108),pt=r(dt),ht=n(123),vt=r(ht),mt=n(125),_t=r(mt),yt=n(36),gt=r(yt),bt=n(35),xt=r(bt),wt=n(99),Ct=r(wt),kt=function t(e){t.installed||(e.component(o.default.name,o.default),e.component(s.default.name,s.default),e.component(l.default.name,l.default),e.component(f.default.name,f.default),e.component(p.default.name,p.default),e.component(v.default.name,v.default),e.component(_.default.name,_.default),e.component(g.default.name,g.default),e.component(C.default.name,C.default),e.component(O.default.name,O.default),e.component(z.default.name,z.default),e.component(T.default.name,T.default),e.component($.default.name,$.default),e.component(V.default.name,V.default),e.component(N.default.name,N.default),e.component(D.default.name,D.default),e.component(I.default.name,I.default),e.component(q.default.name,q.default),e.component(U.default.name,U.default),e.component(K.default.name,K.default),e.component(Y.default.name,Y.default),e.component(J.default.name,J.default),e.component(Q.default.name,Q.default),e.component(ot.default.name,ot.default),e.component(st.default.name,st.default),e.component(lt.default.name,lt.default),e.component(ft.default.name,ft.default),e.component(pt.default.name,pt.default),e.component(_t.default.name,_t.default),e.component(gt.default.name,gt.default),e.component(xt.default.name,xt.default),e.component(Ct.default.name,Ct.default))};"undefined"!=typeof window&&window.Vue&&kt(window.Vue),t.exports={install:kt,version:"0.0.41",Button:o.default,Switch:s.default,Field:l.default,Radio:f.default,Cell:p.default,Icon:v.default,CellGroup:_.default,Popup:g.default,Dialog:x.default,Picker:C.default,RadioGroup:O.default,Waterfall:M.default,Loading:z.default,Panel:T.default,Card:$.default,Steps:V.default,Tag:N.default,Checkbox:D.default,CheckboxGroup:I.default,BadgeGroup:q.default,Badge:U.default,Search:K.default,Step:Y.default,Tabs:J.default,Tab:Q.default,Lazyload:et.default,ImagePreview:rt.default,Col:ot.default,Row:st.default,Actionsheet:lt.default,Quantity:ft.default,Progress:pt.default,Toast:vt.default,Uploader:_t.default,Swipe:gt.default,SwipeItem:xt.default,DatetimePicker:Ct.default}},function(t,e,n){var r=n(157),i=n(39);t.exports=Object.keys||function(t){return r(t,i)}},function(t,e,n){var r=n(23);t.exports=function(t){return Object(r(t))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(180),i=function(t){return t&&t.__esModule?t:{default:t}}(r);e.default=i.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(192),i=function(t){return t&&t.__esModule?t:{default:t}}(r);e.default=i.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(202),i=function(t){return t&&t.__esModule?t:{default:t}}(r);e.default=i.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(203),i=function(t){return t&&t.__esModule?t:{default:t}}(r);e.default=i.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={methods:{findParentByComponentName:function(t){if(!this.parentGroup){for(var e=this.$parent;e;){if(e.$options.name===t){this.parentGroup=e;break}e=e.$parent}return this.parentGroup}}}}},function(t,e,n){var r=n(15),i=n(1)("toStringTag"),o="Arguments"==r(function(){return arguments}()),a=function(t,e){try{return t[e]}catch(t){}};t.exports=function(t){var e,n,s;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=a(e=Object(t),i))?n:o?r(e):"Object"==(s=r(e))&&"function"==typeof e.callee?"Arguments":s}},function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,e,n){t.exports=n(3).document&&document.documentElement},function(t,e,n){var r=n(15);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},function(t,e,n){"use strict";var r=n(43),i=n(8),o=n(160),a=n(7),s=n(17),u=n(9),l=n(149),c=n(25),f=n(156),d=n(1)("iterator"),p=!([].keys&&"next"in[].keys()),h=function(){return this};t.exports=function(t,e,n,v,m,_,y){l(n,e,v);var g,b,x,w=function(t){if(!p&&t in E)return E[t];switch(t){case"keys":return function(){return new n(this,t)};case"values":return function(){return new n(this,t)}}return function(){return new n(this,t)}},C=e+" Iterator",k="values"==m,O=!1,E=t.prototype,M=E[d]||E["@@iterator"]||m&&E[m],S=M||w(m),z=m?k?w("entries"):S:void 0,P="Array"==e?E.entries||M:M;if(P&&(x=f(P.call(new t)))!==Object.prototype&&(c(x,C,!0),r||s(x,d)||a(x,d,h)),k&&M&&"values"!==M.name&&(O=!0,S=function(){return M.call(this)}),r&&!y||!p&&!O&&E[d]||a(E,d,S),u[e]=S,u[C]=h,m)if(g={values:k?S:w("values"),keys:_?S:w("keys"),entries:z},y)for(b in g)b in E||o(E,b,g[b]);else i(i.P+i.F*(p||O),e,g);return g}},function(t,e){t.exports=!0},function(t,e,n){var r=n(5),i=n(154),o=n(39),a=n(26)("IE_PROTO"),s=function(){},u=function(){var t,e=n(24)("iframe"),r=o.length;for(e.style.display="none",n(40).appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write(""),t.close(),u=t.F;r--;)delete u.prototype[o[r]];return u()};t.exports=Object.create||function(t,e){var n;return null!==t?(s.prototype=r(t),n=new s,s.prototype=null,n[a]=t):n=u(),void 0===e?n:i(n,e)}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e,n){var r=n(3),i=r["__core-js_shared__"]||(r["__core-js_shared__"]={});t.exports=function(t){return i[t]||(i[t]={})}},function(t,e,n){var r,i,o,a=n(16),s=n(146),u=n(40),l=n(24),c=n(3),f=c.process,d=c.setImmediate,p=c.clearImmediate,h=c.MessageChannel,v=0,m={},_=function(){var t=+this;if(m.hasOwnProperty(t)){var e=m[t];delete m[t],e()}},y=function(t){_.call(t.data)};d&&p||(d=function(t){for(var e=[],n=1;arguments.length>n;)e.push(arguments[n++]);return m[++v]=function(){s("function"==typeof t?t:Function(t),e)},r(v),v},p=function(t){delete m[t]},"process"==n(15)(f)?r=function(t){f.nextTick(a(_,t,1))}:h?(i=new h,o=i.port2,i.port1.onmessage=y,r=a(o.postMessage,o,1)):c.addEventListener&&"function"==typeof postMessage&&!c.importScripts?(r=function(t){c.postMessage(t+"","*")},c.addEventListener("message",y,!1)):r="onreadystatechange"in l("script")?function(t){u.appendChild(l("script")).onreadystatechange=function(){u.removeChild(this),_.call(t)}}:function(t){setTimeout(a(_,t,1),0)}),t.exports={set:d,clear:p}},function(t,e,n){var r=n(27),i=Math.min;t.exports=function(t){return t>0?i(r(t),9007199254740991):0}},function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+r).toString(36))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(t,e){function r(t){i.push({path:"/component"+t.path,component:function(r){n.e(0).then(function(){var i=[e?n(253)("./examples-dist"+t.path+".vue"):n(254)("./examples-docs"+t.path+".md")];r.apply(null,i)}.bind(this)).catch(n.oe)}})}var i=[];return t["zh-CN"].forEach(function(t){t.groups?t.groups.forEach(function(t){t.list.forEach(function(t){r(t)})}):t.children?t.children.forEach(function(t){r(t)}):r(t)}),i};e.default=r},function(t,e){},function(t,e,n){"use strict";function r(t,e){t||"undefined"!=typeof console&&console.warn("[vue-router] "+e)}function i(t,e){switch(typeof e){case"undefined":return;case"object":return e;case"function":return e(t);case"boolean":return e?t.params:void 0;default:r(!1,'props in "'+t.path+'" is a '+typeof e+", expecting an object, function or boolean.")}}function o(t,e){if(void 0===e&&(e={}),t){var n;try{n=a(t)}catch(t){n={}}for(var r in e)n[r]=e[r];return n}return e}function a(t){var e={};return(t=t.trim().replace(/^(\?|#|&)/,""))?(t.split("&").forEach(function(t){var n=t.replace(/\+/g," ").split("="),r=Pt(n.shift()),i=n.length>0?Pt(n.join("=")):null;void 0===e[r]?e[r]=i:Array.isArray(e[r])?e[r].push(i):e[r]=[e[r],i]}),e):e}function s(t){var e=t?Object.keys(t).map(function(e){var n=t[e];if(void 0===n)return"";if(null===n)return zt(e);if(Array.isArray(n)){var r=[];return n.slice().forEach(function(t){void 0!==t&&(null===t?r.push(zt(e)):r.push(zt(e)+"="+zt(t)))}),r.join("&")}return zt(e)+"="+zt(n)}).filter(function(t){return t.length>0}).join("&"):null;return e?"?"+e:""}function u(t,e,n){var r={name:e.name||t&&t.name,meta:t&&t.meta||{},path:e.path||"/",hash:e.hash||"",query:e.query||{},params:e.params||{},fullPath:c(e),matched:t?l(t):[]};return n&&(r.redirectedFrom=c(n)),Object.freeze(r)}function l(t){for(var e=[];t;)e.unshift(t),t=t.parent;return e}function c(t){var e=t.path,n=t.query;void 0===n&&(n={});var r=t.hash;return void 0===r&&(r=""),(e||"/")+s(n)+r}function f(t,e){return e===jt?t===e:!!e&&(t.path&&e.path?t.path.replace(Tt,"")===e.path.replace(Tt,"")&&t.hash===e.hash&&d(t.query,e.query):!(!t.name||!e.name)&&(t.name===e.name&&t.hash===e.hash&&d(t.query,e.query)&&d(t.params,e.params)))}function d(t,e){void 0===t&&(t={}),void 0===e&&(e={});var n=Object.keys(t),r=Object.keys(e);return n.length===r.length&&n.every(function(n){return String(t[n])===String(e[n])})}function p(t,e){return 0===t.path.replace(Tt,"/").indexOf(e.path.replace(Tt,"/"))&&(!e.hash||t.hash===e.hash)&&h(t.query,e.query)}function h(t,e){for(var n in e)if(!(n in t))return!1;return!0}function v(t){if(!(t.metaKey||t.ctrlKey||t.shiftKey||t.defaultPrevented||void 0!==t.button&&0!==t.button)){if(t.target&&t.target.getAttribute){var e=t.target.getAttribute("target");if(/\b_blank\b/i.test(e))return}return t.preventDefault&&t.preventDefault(),!0}}function m(t){if(t)for(var e,n=0;n=0&&(e=t.slice(r),t=t.slice(0,r));var i=t.indexOf("?");return i>=0&&(n=t.slice(i+1),t=t.slice(0,i)),{path:t,query:n,hash:e}}function b(t){return t.replace(/\/\//g,"/")}function x(t,e,n){var r=e||Object.create(null),i=n||Object.create(null);return t.forEach(function(t){w(r,i,t)}),{pathMap:r,nameMap:i}}function w(t,e,n,r,i){var o=n.path,a=n.name,s={path:C(o,r),components:n.components||{default:n.component},instances:{},name:a,parent:r,matchAs:i,redirect:n.redirect,beforeEnter:n.beforeEnter,meta:n.meta||{},props:null==n.props?{}:n.components?n.props:{default:n.props}};if(n.children&&n.children.forEach(function(n){var r=i?b(i+"/"+n.path):void 0;w(t,e,n,s,r)}),void 0!==n.alias)if(Array.isArray(n.alias))n.alias.forEach(function(i){var o={path:i,children:n.children};w(t,e,o,r,s.path)});else{var u={path:n.alias,children:n.children};w(t,e,u,r,s.path)}t[s.path]||(t[s.path]=s),a&&(e[a]||(e[a]=s))}function C(t,e){return t=t.replace(/\/$/,""),"/"===t[0]?t:null==e?t:b(e.path+"/"+t)}function k(t,e){for(var n,r=[],i=0,o=0,a="",s=e&&e.delimiter||"/";null!=(n=Ht.exec(t));){var u=n[0],l=n[1],c=n.index;if(a+=t.slice(o,c),o=c+u.length,l)a+=l[1];else{var f=t[o],d=n[2],p=n[3],h=n[4],v=n[5],m=n[6],_=n[7];a&&(r.push(a),a="");var y=null!=d&&null!=f&&f!==d,g="+"===m||"*"===m,b="?"===m||"*"===m,x=n[2]||s,w=h||v;r.push({name:p||i++,prefix:d||"",delimiter:x,optional:b,repeat:g,partial:y,asterisk:!!_,pattern:w?P(w):_?".*":"[^"+z(x)+"]+?"})}}return o-1&&(r.params[u]=e.params[u]);if(o)return r.path=D(o.path,r.params,'named route "'+i+'"'),a(o,r,n)}else if(r.path){r.params={};for(var f in l)if(q(f,r.params,r.path))return a(l[f],r,n)}return a(null,r)}function i(t,e){var i=t.redirect,o="function"==typeof i?i(u(t,e)):i;if("string"==typeof o&&(o={path:o}),!o||"object"!=typeof o)return a(null,e);var s=o,l=s.name,f=s.path,d=e.query,p=e.hash,h=e.params;if(d=s.hasOwnProperty("query")?s.query:d,p=s.hasOwnProperty("hash")?s.hash:p,h=s.hasOwnProperty("params")?s.params:h,l){c[l];return n({_normalized:!0,name:l,query:d,hash:p,params:h},void 0,e)}if(f){var v=H(f,t);return n({_normalized:!0,path:D(v,h,'redirect route with path "'+v+'"'),query:d,hash:p},void 0,e)}return r(!1,"invalid redirect option: "+JSON.stringify(o)),a(null,e)}function o(t,e,r){var i=D(r,e.params,'aliased route with path "'+r+'"'),o=n({_normalized:!0,path:i});if(o){var s=o.matched,u=s[s.length-1];return e.params=o.params,a(u,e)}return a(null,e)}function a(t,e,n){return t&&t.redirect?i(t,n||e):t&&t.matchAs?o(t,e,t.matchAs):u(t,e,n)}var s=x(t),l=s.pathMap,c=s.nameMap;return{match:n,addRoutes:e}}function q(t,e,n){var r=R(t),i=r.regexp,o=r.keys,a=n.match(i);if(!a)return!1;if(!e)return!0;for(var s=1,u=a.length;s=t.length?n():t[i]?e(t[i],function(){r(i+1)}):r(i+1)};r(0)}function ot(t){if(!t)if(Lt){var e=document.querySelector("base");t=e&&e.getAttribute("href")||"/"}else t="/";return"/"!==t.charAt(0)&&(t="/"+t),t.replace(/\/$/,"")}function at(t,e){var n,r=Math.max(t.length,e.length);for(n=0;n=0?e:0)+"#"+t)}function Ot(t,e,n){var r="hash"===n?"#"+e:e;return t?b(t+"/"+r):r}Object.defineProperty(e,"__esModule",{value:!0});var Et,Mt={name:"router-view",functional:!0,props:{name:{type:String,default:"default"}},render:function(t,e){var n=e.props,r=e.children,o=e.parent,a=e.data;a.routerView=!0;for(var s=n.name,u=o.$route,l=o._routerViewCache||(o._routerViewCache={}),c=0,f=!1;o;)o.$vnode&&o.$vnode.data.routerView&&c++,o._inactive&&(f=!0),o=o.$parent;if(a.routerViewDepth=c,f)return t(l[s],a,r);var d=u.matched[c];if(!d)return l[s]=null,t();var p=l[s]=d.components[s],h=a.hook||(a.hook={});return h.init=function(t){d.instances[s]=t.child},h.prepatch=function(t,e){d.instances[s]=e.child},h.destroy=function(t){d.instances[s]===t.child&&(d.instances[s]=void 0)},a.props=i(u,d.props&&d.props[s]),t(p,a,r)}},St=function(t){return"%"+t.charCodeAt(0).toString(16)},zt=function(t){return encodeURIComponent(t).replace(/[!'()*]/g,St).replace(/%2C/g,",")},Pt=decodeURIComponent,Tt=/\/?$/,jt=u(null,{path:"/"}),$t=[String,Object],At=[String,Array],Vt={name:"router-link",props:{to:{type:$t,required:!0},tag:{type:String,default:"a"},exact:Boolean,append:Boolean,replace:Boolean,activeClass:String,event:{type:At,default:"click"}},render:function(t){var e=this,n=this.$router,r=this.$route,i=n.resolve(this.to,r,this.append),o=i.location,a=i.route,s=i.href,l={},c=this.activeClass||n.options.linkActiveClass||"router-link-active",d=o.path?u(null,o):a;l[c]=this.exact?f(r,d):p(r,d);var h=function(t){v(t)&&(e.replace?n.replace(o):n.push(o))},_={click:v};Array.isArray(this.event)?this.event.forEach(function(t){_[t]=h}):_[this.event]=h;var y={class:l};if("a"===this.tag)y.on=_,y.attrs={href:s};else{var g=m(this.$slots.default);if(g){g.isStatic=!1;var b=Et.util.extend;(g.data=b({},g.data)).on=_;(g.data.attrs=b({},g.data.attrs)).href=s}else y.on=_}return t(this.tag,y,this.$slots.default)}},Lt="undefined"!=typeof window,Nt=Array.isArray||function(t){return"[object Array]"==Object.prototype.toString.call(t)},Rt=Nt,Dt=N,Ft=k,It=O,Bt=S,qt=L,Ht=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");Dt.parse=Ft,Dt.compile=It,Dt.tokensToFunction=Bt,Dt.tokensToRegExp=qt;var Ut=Object.create(null),Gt=Object.create(null),Kt=Object.create(null),Wt=Lt&&function(){var t=window.navigator.userAgent;return(t.indexOf("Android 2.")===-1&&t.indexOf("Android 4.0")===-1||t.indexOf("Mobile Safari")===-1||t.indexOf("Chrome")!==-1||t.indexOf("Windows Phone")!==-1)&&(window.history&&"pushState"in window.history)}(),Yt=Lt&&window.performance&&window.performance.now?window.performance:Date,Zt=Q(),Jt=function(t,e){this.router=t,this.base=ot(e),this.current=jt,this.pending=null,this.ready=!1,this.readyCbs=[]};Jt.prototype.listen=function(t){this.cb=t},Jt.prototype.onReady=function(t){this.ready?t():this.readyCbs.push(t)},Jt.prototype.transitionTo=function(t,e,n){var r=this,i=this.router.match(t,this.current);this.confirmTransition(i,function(){r.updateRoute(i),e&&e(i),r.ensureURL(),r.ready||(r.ready=!0,r.readyCbs.forEach(function(t){t(i)}))},n)},Jt.prototype.confirmTransition=function(t,e,n){var r=this,i=this.current,o=function(){n&&n()};if(f(t,i)&&t.matched.length===i.matched.length)return this.ensureURL(),o();var a=at(this.current.matched,t.matched),s=a.updated,u=a.deactivated,l=a.activated,c=[].concat(lt(u),this.router.beforeHooks,ct(s),l.map(function(t){return t.beforeEnter}),vt(l));this.pending=t;var d=function(e,n){if(r.pending!==t)return o();e(t,i,function(t){t===!1?(r.ensureURL(!0),o()):"string"==typeof t||"object"==typeof t?("object"==typeof t&&t.replace?r.replace(t):r.push(t),o()):n(t)})};it(c,d,function(){var n=[],i=function(){return r.current===t};it(dt(l,n,i),d,function(){if(r.pending!==t)return o();r.pending=null,e(t),r.router.app&&r.router.app.$nextTick(function(){n.forEach(function(t){return t()})})})})},Jt.prototype.updateRoute=function(t){var e=this.current;this.current=t,this.cb&&this.cb(t),this.router.afterHooks.forEach(function(n){n&&n(t,e)})};var Xt=function(t){function e(e,n){var r=this;t.call(this,e,n);var i=e.options.scrollBehavior;i&&U(),window.addEventListener("popstate",function(t){r.transitionTo(gt(r.base),function(t){i&&G(e,t,r.current,!0)})})}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.go=function(t){window.history.go(t)},e.prototype.push=function(t,e,n){var r=this;this.transitionTo(t,function(t){nt(b(r.base+t.fullPath)),G(r.router,t,r.current,!1),e&&e(t)},n)},e.prototype.replace=function(t,e,n){var r=this;this.transitionTo(t,function(t){rt(b(r.base+t.fullPath)),G(r.router,t,r.current,!1),e&&e(t)},n)},e.prototype.ensureURL=function(t){if(gt(this.base)!==this.current.fullPath){var e=b(this.base+this.current.fullPath);t?nt(e):rt(e)}},e.prototype.getCurrentLocation=function(){return gt(this.base)},e}(Jt),Qt=function(t){function e(e,n,r){t.call(this,e,n),r&&bt(this.base)||xt()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.setupListeners=function(){var t=this;window.addEventListener("hashchange",function(){xt()&&t.transitionTo(wt(),function(t){kt(t.fullPath)})})},e.prototype.push=function(t,e,n){this.transitionTo(t,function(t){Ct(t.fullPath),e&&e(t)},n)},e.prototype.replace=function(t,e,n){this.transitionTo(t,function(t){kt(t.fullPath),e&&e(t)},n)},e.prototype.go=function(t){window.history.go(t)},e.prototype.ensureURL=function(t){var e=this.current.fullPath;wt()!==e&&(t?Ct(e):kt(e))},e.prototype.getCurrentLocation=function(){return wt()},e}(Jt),te=function(t){function e(e,n){t.call(this,e,n),this.stack=[],this.index=-1}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.push=function(t,e,n){var r=this;this.transitionTo(t,function(t){r.stack=r.stack.slice(0,r.index+1).concat(t),r.index++,e&&e(t)},n)},e.prototype.replace=function(t,e,n){var r=this;this.transitionTo(t,function(t){r.stack=r.stack.slice(0,r.index).concat(t),e&&e(t)},n)},e.prototype.go=function(t){var e=this,n=this.index+t;if(!(n<0||n>=this.stack.length)){var r=this.stack[n];this.confirmTransition(r,function(){e.index=n,e.updateRoute(r)})}},e.prototype.getCurrentLocation=function(){var t=this.stack[this.stack.length-1];return t?t.fullPath:"/"},e.prototype.ensureURL=function(){},e}(Jt),ee=function(t){void 0===t&&(t={}),this.app=null,this.apps=[],this.options=t,this.beforeHooks=[],this.afterHooks=[],this.matcher=B(t.routes||[]);var e=t.mode||"hash";switch(this.fallback="history"===e&&!Wt,this.fallback&&(e="hash"),Lt||(e="abstract"),this.mode=e,e){case"history":this.history=new Xt(this,t.base);break;case"hash":this.history=new Qt(this,t.base,this.fallback);break;case"abstract":this.history=new te(this,t.base)}},ne={currentRoute:{}};ee.prototype.match=function(t,e,n){return this.matcher.match(t,e,n)},ne.currentRoute.get=function(){return this.history&&this.history.current},ee.prototype.init=function(t){var e=this;if(this.apps.push(t),!this.app){this.app=t;var n=this.history;if(n instanceof Xt)n.transitionTo(n.getCurrentLocation());else if(n instanceof Qt){var r=function(){n.setupListeners()};n.transitionTo(n.getCurrentLocation(),r,r)}n.listen(function(t){e.apps.forEach(function(e){e._route=t})})}},ee.prototype.beforeEach=function(t){this.beforeHooks.push(t)},ee.prototype.afterEach=function(t){this.afterHooks.push(t)},ee.prototype.onReady=function(t){this.history.onReady(t)},ee.prototype.push=function(t,e,n){this.history.push(t,e,n)},ee.prototype.replace=function(t,e,n){this.history.replace(t,e,n)},ee.prototype.go=function(t){this.history.go(t)},ee.prototype.back=function(){this.go(-1)},ee.prototype.forward=function(){this.go(1)},ee.prototype.getMatchedComponents=function(t){var e=t?this.resolve(t).route:this.currentRoute;return e?[].concat.apply([],e.matched.map(function(t){return Object.keys(t.components).map(function(e){return t.components[e]})})):[]},ee.prototype.resolve=function(t,e,n){var r=F(t,e||this.history.current,n),i=this.match(r,e),o=i.redirectedFrom||i.fullPath;return{location:r,route:i,href:Ot(this.history.base,o,this.mode),normalizedTo:r,resolved:i}},ee.prototype.addRoutes=function(t){this.matcher.addRoutes(t),this.history.current!==jt&&this.history.transitionTo(this.history.getCurrentLocation())},Object.defineProperties(ee.prototype,ne),ee.install=_,ee.version="2.2.1",Lt&&window.Vue&&window.Vue.use(ee),e.default=ee},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(100),i=function(t){return t&&t.__esModule?t:{default:t}}(r);e.default=i.default},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var i=n(13),o=r(i),a=n(12),s=r(a),u=n(11),l=r(u);e.default={name:"zan-actionsheet",mixins:[o.default],components:{ZanLoading:s.default,ZanIcon:l.default},props:{value:{},actions:{type:Array,default:function(){return[]}},title:String,cancelText:String,overlay:{default:!0},closeOnClickOverlay:{type:Boolean,default:!0}},data:function(){return{currentValue:this.value}},watch:{currentValue:function(t){this.$emit("input",t)},value:function(t){this.currentValue=t}},mounted:function(){this.value&&(this.currentValue=!0,this.open())},methods:{handleItemClick:function(t){}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"zan-badge-group",props:{activeKey:{type:[Number,String],default:0}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"zan-badge",props:{mark:{type:[Number,String],required:!0},title:{type:String,required:!0},url:{type:String,default:"javascript:;"},info:{type:String}},methods:{handleClick:function(t){this.$emit("click",t,{mark:this.mark,title:this.title,url:this.url,info:this.info})}},computed:{classNames:function(){return{"is-select":this.mark===this.$parent.activeKey}}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"zan-card",props:{thumb:{type:String,required:!0},title:String,desc:String}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"zan-cell-group"}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"zan-cell",props:{icon:String,title:String,value:[String,Number],url:String,label:String,isLink:Boolean,required:Boolean},methods:{handleClick:function(){this.$emit("click")}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"zan-checkbox-group",props:{value:{},disabled:Boolean},watch:{value:function(t){this.$emit("change",t)}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(37),i=function(t){return t&&t.__esModule?t:{default:t}}(r);e.default={name:"zan-checkbox",mixins:[i.default],props:{disabled:Boolean,value:{},name:[String,Number]},computed:{isGroup:function(){return!!this.findParentByComponentName("zan-checkbox-group")},currentValue:{get:function(){return this.isGroup&&this.parentGroup?this.parentGroup.value.indexOf(this.name)!==-1:this.value},set:function(t){if(this.isGroup&&this.parentGroup){var e=this.parentGroup.value.slice();if(t)e.indexOf(this.name)===-1&&(e.push(this.name),this.parentGroup.$emit("input",e));else{var n=e.indexOf(this.name);n!==-1&&(e.splice(n,1),this.parentGroup.$emit("input",e))}}else this.$emit("input",t)}},isChecked:function(){return"[object Boolean]"==={}.toString.call(this.currentValue)?this.currentValue:Array.isArray(this.currentValue)?this.currentValue.indexOf(this.name)>-1:void 0},isDisabled:function(){return this.isGroup&&this.parentGroup?this.parentGroup.disabled||this.disabled:this.disabled}},methods:{handleLabelClick:function(){this.isDisabled||(this.currentValue=!this.currentValue)}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"zan-col",props:{span:[Number,String],offset:[Number,String],prefix:{type:String,default:"zan"}},computed:{gutter:function(){return Number(this.$parent.gutter)},style:function(){var t=this.gutter/2+"px";return this.gutter?{paddingLeft:t,paddingRight:t}:null}}}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var i=n(136),o=r(i),a=n(34),s=r(a),u=["time","date","datetime"];e.default={name:"zan-datetime-picker",components:{Picker:s.default},props:{type:{type:String,default:"datetime",validator:function(t){return u.indexOf(t)>-1}},visibleItemCount:{type:Number,default:5},minDate:{type:Date,default:function(){return new Date((new Date).getFullYear()-10,0,1)}},maxDate:{type:Date,default:function(){return new Date((new Date).getFullYear()+10,11,31)}},minHour:{type:Number,default:0},maxHour:{type:Number,default:23},value:null},data:function(){return{innerValue:this.val}},watch:{value:function(t){this.innerValue=t},innerValue:function(t){console.log(t+"!!!"),this.$emit("input",t)}},computed:{ranges:function(){if(console.log(this.innerValue+"!!"),"time"===this.type)return[[this.minHour,this.maxHour],[0,59]];var t=this.getBoundary("max",this.innerValue),e=t.maxYear,n=t.maxDate,r=t.maxMonth,i=t.maxHour,o=t.maxMinute,a=this.getBoundary("min",this.innerValue),s=a.minYear,u=a.minDate,l=a.minMonth,c=a.minHour,f=a.minMinute,d=[[s,e],[l,r],[u,n],[c,i],[f,o]];return"date"===this.type&&d.splice(3,2),d},columns:function(){var t=this;return this.ranges.map(function(e){return{values:t.times(e[1]-e[0]+1,function(t){var n=e[0]+t;return n<10?"0"+n:""+n})}})}},methods:{times:function(t,e){for(var n=-1,r=Array(t);++n-1},handlePickerConfirm:function(t){this.$emit("confirm",this.innerValue)},handlePickerChange:function(t,e,n){console.log(this.innerValue);var r=void 0;if("time"===this.type)r=e.join(":");else{var i=this.getTrueValue(e[0]),o=this.getTrueValue(e[1]),a=this.getMonthEndDay(i,o),s=this.getTrueValue(e[2]);s=s>a?a:s;var u=0,l=0;"datetime"===this.type&&(u=this.getTrueValue(e[3]),l=this.getTrueValue(e[4])),r=new Date(i,o-1,s,u,l)}this.innerValue=r,console.log(r,this.innerValue)}},created:function(){if(this.innerValue=this.value,!this.innerValue)if(this.type.indexOf("date")>-1)this.innerValue=this.minDate;else{var t=this.minHour;this.innerValue=(t>10?t:"0"+t)+":00"}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(13),i=function(t){return t&&t.__esModule?t:{default:t}}(r);e.default={name:"zan-dialog",mixins:[i.default],props:{overlay:{default:!0},closeOnClickOverlay:{default:!0},lockOnScroll:{default:!0}},data:function(){return{title:"",message:"",type:"",showConfirmButton:!0,showCancelButton:!1,confirmButtonText:"确认",cancelButtonText:"取消",callback:null}},methods:{handleAction:function(t){this.value=!1,this.callback&&this.callback(t)},close:function(){var t=this;this.closing||(this.closing=!0,this.value=!1,this.lockOnScroll&&setTimeout(function(){t.modal&&"hidden"!==t.bodyOverflow&&(document.body.style.overflow=t.bodyOverflow),t.bodyOverflow=null},200),this.opened=!1,this.doAfterClose())}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(33),i=function(t){return t&&t.__esModule?t:{default:t}}(r),o=["text","number","email","url","tel","date","datetime","password","textarea"];e.default={name:"zan-field",components:{zanCell:i.default},props:{type:{type:String,default:"text",validate:function(t){return o.indexOf(t)>-1}},placeholder:String,value:{},label:String,disabled:Boolean,error:Boolean,readonly:Boolean,required:Boolean,maxlength:[String,Number],border:Boolean,rows:[String,Number],cols:[String,Number],autosize:{type:Boolean,default:!1,validate:function(t){if(t&&"textarea"!==this.type)return!1}}},data:function(){return{currentValue:this.value}},watch:{value:function(t){this.currentValue=t},currentValue:function(t){this.autosize&&"textarea"===this.type&&this.sizeAdjust(),this.$emit("input",t)}},methods:{handleInput:function(t){this.currentValue=t.target.value},sizeAdjust:function(){var t=this.$refs.textareaElement,e=parseInt(t.style.paddingBottom,10)+parseInt(t.style.paddingTop,10)||0;t.style.height="0px",t.style.height=t.scrollHeight-e+"px"},handleInputFocus:function(){this.$emit("focus")}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"zan-icon",props:{name:String},methods:{handleIconClick:function(t){this.$emit("click",t)}}}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var i=n(13),o=r(i),a=n(36),s=r(a),u=n(35),l=r(u);e.default={name:"zan-image-preview",mixins:[o.default],components:{ZanSwipe:s.default,ZanSwipeItem:l.default},props:{overlay:{default:!0},lockOnScroll:{default:!0},closeOnClickOverlay:{default:!0}},data:function(){return{images:[],viewportSize:null}},methods:{handlePreviewClick:function(){this.value=!1},close:function(){var t=this;this.closing||(this.closing=!0,this.value=!1,this.lockOnScroll&&setTimeout(function(){t.modal&&"hidden"!==t.bodyOverflow&&(document.body.style.overflow=t.bodyOverflow),t.bodyOverflow=null},200),this.opened=!1,this.doAfterClose())}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=["gradient-circle","circle"],i=["black","white"];e.default={name:"zan-loading",props:{type:{type:String,default:"gradient-circle",validate:function(t){return r.indexOf(t)>-1}},color:{type:String,default:"black",validate:function(t){return i.indexOf(t)>-1}}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"zan-panel",props:{title:String,desc:String,status:String}}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var i=n(132),o=r(i),a=n(106),s=r(a);e.default={name:"zan-picker-column",props:{visibileColumnCount:{type:Number,default:5},values:{type:Array,default:function(){return[]}},className:{type:String,default:""},itemHeight:{type:Number,default:44},value:{},valueKey:String},data:function(){return{currentValue:this.value,currentValues:this.values,isDragging:!1}},watch:{value:function(t){this.currentValue=t},values:function(t){this.currentValues=t},currentValues:function(t){this.valueIndex===-1&&(this.currentValue=(t||[])[0])},currentValue:function(t){this.doOnValueChange(),this.$emit("change",this)}},computed:{visibleContentHeight:function(){return this.itemHeight*this.visibileColumnCount},valueIndex:function(){return this.currentValues.indexOf(this.currentValue)},dragRange:function(){var t=this.currentValues,e=this.visibileColumnCount,n=this.itemHeight;return[-n*(t.length-Math.ceil(e/2)),n*Math.floor(e/2)]},classNames:function(){return this.className.split(" ")}},mounted:function(){this.initEvents(),this.doOnValueChange()},methods:{value2Translate:function(t){var e=this.currentValues,n=e.indexOf(t),r=Math.floor(this.visibileColumnCount/2),i=this.itemHeight;if(n!==-1)return(n-r)*-i},translate2Value:function(t){var e=this.itemHeight;t=Math.round(t/e)*e;var n=-(t-Math.floor(this.visibileColumnCount/2)*e)/e;return this.currentValues[n]},initEvents:function(){var t,e,n,r=this,i=this.$refs.wrapper,a={};(0,s.default)(i,{start:function(t){a={range:r.dragRange,start:new Date,startLeft:t.pageX,startTop:t.pageY,startTranslateTop:o.default.getElementTranslate(i).top},n=i.querySelectorAll(".zan-picker-item")},drag:function(n){r.isDragging=!0,a.left=n.pageX,a.top=n.pageY;var s=a.top-a.startTop,u=a.startTranslateTop+s;o.default.translateElement(i,null,u),t=u-e||u,e=u},end:function(){if(r.isDragging){r.isDragging=!1;var e,n=o.default.getElementTranslate(i).top,s=new Date-a.start;s<300&&(e=n+7*t);var u=a.range;r.$nextTick(function(){var t,a=r.itemHeight;t=e?Math.round(e/a)*a:Math.round(n/a)*a,t=Math.max(Math.min(t,u[1]),u[0]),o.default.translateElement(i,null,t),r.currentValue=r.translate2Value(t)})}a={}}})},doOnValueChange:function(){var t=this.currentValue,e=this.$refs.wrapper;this.$emit("input",this.currentValue),o.default.translateElement(e,null,this.value2Translate(t))}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(191),i=function(t){return t&&t.__esModule?t:{default:t}}(r);e.default={name:"zan-picker",components:{PickerColumn:i.default},props:{visibileColumnCount:{type:Number,default:5},itemHeight:{type:Number,default:44},columns:{type:Array,default:function(){return[]}},showToolbar:{type:Boolean,default:!1},valueKey:String},computed:{values:function t(){var e=this.columns||[],t=[];return e.forEach(function(e){t.push(e.value||e.values[e.defaultIndex||0])}),t}},methods:{handlePickerCancel:function(){this.$emit("cancel",this.values)},handlePickerConfirm:function(){this.$emit("confirm",this.values)},columnValueChange:function(t){this.$emit("change",this,this.values,t)},getColumn:function(t){return this.$children.filter(function(t){return"zan-picker-column"===t.$options.name})[t]},getColumnValue:function(t){var e=this.getColumn(t);return e&&e.values[e.valueIndex]},setColumnValue:function(t,e){var n=this.getColumn(t);n&&(n.currentValue=e)},getColumnValues:function(t){var e=this.getColumn(t);return e&&e.currentValues},setColumnValues:function(t,e){var n=this.getColumn(t);n&&(n.currentValues=e)},getValues:function(){return this.values},setValues:function(t){var e=this;t.forEach(function(t,n){e.setColumnValue(n,t)})}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(13),i=function(t){return t&&t.__esModule?t:{default:t}}(r);e.default={name:"zan-popup",mixins:[i.default],props:{overlay:{default:!0},lockOnScroll:{default:!1},closeOnClickOverlay:{default:!0},transition:{type:String,default:"popup-slide"},position:{type:String,default:""}},data:function(){return{currentValue:!1,currentTransition:this.transition}},watch:{currentValue:function(t){this.$emit("input",t)},value:function(t){this.currentValue=t}},beforeMount:function(){"popup-fade"!==this.transition&&(this.currentTransition="popup-slide-"+this.position)},mounted:function(){this.value&&(this.currentValue=!0,this.open())}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"zan-progress",props:{percentage:{type:Number,required:!0,validate:function(t){return t<=100&&t>=0}},inactive:{type:Boolean,default:!1},pivotText:{type:String,default:function(){return this.percentage.toString()+"%"}},color:{type:String,default:"#38f"},textColor:{type:String,default:"#fff"}},computed:{currentPivotText:function(){return this.pivotText?this.pivotText:this.this.percentage.toString()+"%"},componentColor:function(){return this.inactive?"#cacaca":this.color},pivotStyle:function t(){var t={backgroundColor:this.componentColor,color:this.textColor,left:this.percentage+"%",marginLeft:"-14px"};return this.percentage<=5?(t.left="0%",t.marginLeft="0"):this.percentage>=95?(t.left="100%",t.marginLeft="-28px"):(t.left=this.percentage+"%",t.marginLeft="-14px"),t}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"zan-quantity",props:{min:{type:[String,Number],default:1},max:{type:[String,Number],default:1/0},value:{},step:{type:[String,Number],default:1},disabled:Boolean,defaultValue:{type:[String,Number],default:1}},data:function(){return{currentValue:this.value?+this.value:+this.defaultValue}},computed:{isMinusDisabled:function(){var t=+this.min,e=+this.step,n=+this.currentValue;return t===n||n-et||this.disabled}},watch:{currentValue:function(t){this.$emit("input",+t)},value:function(t){t&&(this.currentValue=+t)}},methods:{handleInputChange:function(t){var e=+t.target.value,n=+this.max,r=+this.min;e>n?e=n:e-1}},message:{type:String,default:"",validate:function(t){if("success"===this.type||"fail"===this.type)return t.length<=16}},forbidClick:{type:Boolean,default:!1}},data:function(){return{visible:!1}},computed:{displayStyle:function(){return l.indexOf(this.type)>-1?"default":this.type}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"zan-uploader",props:{disabled:{type:Boolean,default:!1},beforeRead:Function,resultType:{type:String,default:"dataUrl",validator:function(t){return"dataUrl"===t||"text"===t}}},methods:{onValueChange:function(t){var e=this;if(!this.disabled){var n=t.target.files,r=n[0];if(r&&(!this.beforeRead||this.beforeRead(r))){var i=new FileReader;i.onload=function(t){e.$emit("file-readed",{name:r.name,type:r.type,size:r.size,content:t.target.result}),e.$refs.input.value=""},"dataUrl"===this.resultType?i.readAsDataURL(r):"text"===this.resultType&&i.readAsText(r)}}}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(175),i=function(t){return t&&t.__esModule?t:{default:t}}(r);e.default=i.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(176),i=function(t){return t&&t.__esModule?t:{default:t}}(r);e.default=i.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(177),i=function(t){return t&&t.__esModule?t:{default:t}}(r);e.default=i.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(93),i=function(t){return t&&t.__esModule?t:{default:t}}(r);e.default=i.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=["mini","small","normal","large"],i=["default","danger","primary"];e.default={name:"zan-button",props:{disabled:Boolean,loading:Boolean,block:Boolean,tag:{type:String,default:"button"},nativeType:String,type:{type:String,default:"default",validator:function(t){return i.indexOf(t)>-1}},size:{type:String,default:"normal",validator:function(t){return r.indexOf(t)>-1}}},methods:{handleClick:function(t){this.$emit("click",t)}},render:function(t){var e=this.type,n=this.nativeType,r=this.size,i=this.disabled,o=this.loading,a=this.block;return t(this.tag,{attrs:{type:n,disabled:i},class:["zan-button","zan-button--"+e,"zan-button--"+r,{"zan-button--disabled":i,"zan-button--loading":o,"zan-button--block":a}],on:{click:this.handleClick}},[o?t("zan-loading",{class:"zan-button__icon-loading",attrs:{type:"circle",color:"default"===e?"black":"white"}},[]):null,t("span",{class:"zan-button__text"},[this.$slots.default])])}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(178),i=function(t){return t&&t.__esModule?t:{default:t}}(r);e.default=i.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(179),i=function(t){return t&&t.__esModule?t:{default:t}}(r);e.default=i.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(181),i=function(t){return t&&t.__esModule?t:{default:t}}(r);e.default=i.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(182),i=function(t){return t&&t.__esModule?t:{default:t}}(r);e.default=i.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(183),i=function(t){return t&&t.__esModule?t:{default:t}}(r);e.default=i.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(184),i=function(t){return t&&t.__esModule?t:{default:t}}(r);e.default=i.default},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var i=n(135),o=r(i),a=n(2),s=r(a),u=n(185),l=r(u),c=n(14),f=r(c),d=s.default.extend(l.default),p=void 0,h=void 0,v=[],m=function(t){if(p){var e=p.callback;"function"==typeof e&&e(t),p.resolve&&"confirm"===t?p.resolve(t):p.reject&&"cancel"===t&&p.reject(t)}},_=function(){h=new d({el:document.createElement("div")}),h.callback=m},y=function(){if(h||_(),!h.value&&v.length>0){p=v.shift();var t=p.options;for(var e in t)t.hasOwnProperty(e)&&(h[e]=t[e]);void 0===t.callback&&(h.callback=m),document.body.appendChild(h.$el),s.default.nextTick(function(){h.value=!0})}},g=function(t){return new o.default(function(e,n){v.push({options:(0,f.default)({},t),callback:t.callback,resolve:e,reject:n}),y()})};g.alert=function(t){return g((0,f.default)({type:"alert",closeOnClickOverlay:!1,showCancelButton:!1},t))},g.confirm=function(t){return g((0,f.default)({type:"confirm",closeOnClickOverlay:!0,showCancelButton:!0},t))},g.close=function(){h.value=!1,v=[],p=null},e.default=g},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(186),i=function(t){return t&&t.__esModule?t:{default:t}}(r);e.default=i.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(103),i=function(t){return t&&t.__esModule?t:{default:t}}(r);e.default=i.default},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var i=n(2),o=r(i),a=n(188),s=r(a),u=n(14),l=(r(u),void 0),c=o.default.extend(s.default),f=function(){l=new c({el:document.createElement("div")})},d=function(t){l||f(),l.value||(l.images=t,document.body.appendChild(l.$el),o.default.nextTick(function(){l.value=!0}))};e.default=d},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={install:function(t,e){function n(){a.scrollTop===o?(window.cancelAnimationFrame(i),window.dispatchEvent(s)):o=a.scrollTop,window.requestAnimationFrame(n)}function r(t){if(t){var n=this.modifiers.fade||e.fade,r=this.modifiers.nohori||e.nohori;n&&(this.el.style.opacity=0,this.el.style.transition="opacity .3s",this.el.style.webkitTransition="opacity .3s");var i=function(){if(null!==this.el){var e=this.el.getBoundingClientRect(),n=document.head.parentNode.clientWidth,o=document.head.parentNode.clientHeight,s=function(){this.el.src=t,this.el.addEventListener("load",a),window.removeEventListener("scrollEnd",i,!0),window.removeEventListener("resize",i,!0)}.bind(this);this.el.src!==t&&(r?e.bottom>=0&&e.top<=o&&s():e.bottom>=0&&e.top<=o&&e.right>=0&&e.left<=n&&s())}}.bind(this),o=function(){i(),this.el&&this.el.removeEventListener("load",o),window.addEventListener("scrollEnd",i,!0),window.addEventListener("resize",i,!0)}.bind(this),a=function(){null!==this.el&&(n&&(this.el.style.opacity=1),this.el.removeEventListener("load",a))}.bind(this);this.el.addEventListener("load",o)}}e=e||{fade:!1,nohori:!1};var i=null,o=0,a=document.body,s=document.createEvent("HTMLEvents");s.initEvent("scrollEnd",!0,!1),document.addEventListener("scroll",function(){i||(i=window.requestAnimationFrame(n))},!0),t.directive("lazyload",r)}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(190),i=function(t){return t&&t.__esModule?t:{default:t}}(r);e.default=i.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){var n=function(t){e.drag&&e.drag(a?t.changedTouches[0]||t.touches[0]:t)},r=function t(r){a||(document.removeEventListener("mousemove",n),document.removeEventListener("mouseup",t)),document.onselectstart=null,document.ondragstart=null,o=!1,e.end&&e.end(a?r.changedTouches[0]||r.touches[0]:r)};t.addEventListener(a?"touchstart":"mousedown",function(t){o||(document.onselectstart=function(){return!1},document.ondragstart=function(){return!1},a||(document.addEventListener("mousemove",n),document.addEventListener("mouseup",r)),o=!0,e.start&&(t.preventDefault(),e.start(a?t.changedTouches[0]||t.touches[0]:t)))}),a&&(t.addEventListener("touchmove",n),t.addEventListener("touchend",r),t.addEventListener("touchcancel",r))};var r=n(2),i=function(t){return t&&t.__esModule?t:{default:t}}(r),o=!1,a=!i.default.prototype.$isServer&&"ontouchstart"in window},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(193),i=function(t){return t&&t.__esModule?t:{default:t}}(r);e.default=i.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(194),i=function(t){return t&&t.__esModule?t:{default:t}}(r);e.default=i.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(195),i=function(t){return t&&t.__esModule?t:{default:t}}(r);e.default=i.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(196),i=function(t){return t&&t.__esModule?t:{default:t}}(r);e.default=i.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(197),i=function(t){return t&&t.__esModule?t:{default:t}}(r);e.default=i.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(198),i=function(t){return t&&t.__esModule?t:{default:t}}(r);e.default=i.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(199),i=function(t){return t&&t.__esModule?t:{default:t}}(r);e.default=i.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(200),i=function(t){return t&&t.__esModule?t:{default:t}}(r);e.default=i.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(201),i=function(t){return t&&t.__esModule?t:{default:t}}(r);e.default=i.default},function(t,e,n){"use strict";function r(t,e){a.EventEmitter.apply(this,arguments),this.isStarting=!1,this.startPt=null,this.endPt=null,this.isDeaf=!1,this.options=(0,a.extend)({listenMoving:!1},e),this.host=t,this.onTouchStart=this.onTouchStart.bind(this),this.onTouchMove=this.onTouchMove.bind(this),this.onTouchEnd=this.onTouchEnd.bind(this),this.bind(this.host)}Object.defineProperty(e,"__esModule",{value:!0});var i=n(21),o=function(t){return t&&t.__esModule?t:{default:t}}(i),a=n(20);r.prototype=(0,o.default)(new a.EventEmitter),(0,a.extend)(r.prototype,{bind:function(t){(0,a.bindEvents)(t,"touchstart mousedown",this.onTouchStart),this.options.listenMoving&&(0,a.bindEvents)(window,"touchmove mousemove",this.onTouchMove),(0,a.bindEvents)(window,"touchend mouseup touchcancel",this.onTouchEnd)},onTouchStart:function(t){this.isDeaf||this.isStarting||(this.isStarting=!0,this.orgDirection=null,this.startPt=this.pointerEventToXY(t))},onTouchMove:function(t){this.isStarting&&this.caculate(t)},onTouchEnd:function(t){this.isStarting&&(this.isStarting=!1,this.caculate(t,!0))},caculate:function(t,e){var n,r;this.endPt=this.pointerEventToXY(t),n=this.startPt.y-this.endPt.y,r=this.startPt.x-this.endPt.x,n&&this.emit(n>0?"up":"down",n,e,t),r&&this.emit(r>0?"left":"right",r,e,t),null==this.orgDirection&&(this.orgDirection=Math.abs(r)>Math.abs(n)),this.emit("move",{x:r,y:n},e,t,{orgDirection:this.orgDirection})},pointerEventToXY:function(t){var e={x:0,y:0},n=t.type;if(t.originalEvent&&(t=t.originalEvent),["touchstart","touchmove","touchend","touchcancel"].indexOf(n)>-1){var r=t.touches[0]||t.changedTouches[0];e.x=r.pageX,e.y=r.pageY}else["mousedown","mouseup","mousemove","mouseover","mouseout","mouseenter","mouseleave"].indexOf(n)>-1&&(e.x=t.pageX,e.y=t.pageY);return e},deaf:function(){this.isDeaf=!0},undeaf:function(){this.isDeaf=!1},destroy:function(){(0,a.removeEvents)(this.host,"touchstart mousedown",this.onTouchStart),this.options.listenMoving&&(0,a.removeEvents)(window,"touchmove mousemove",this.onTouchMove),(0,a.removeEvents)(window,"touchend mouseup touchcancel",this.onTouchEnd)}}),e.default=r},function(t,e,n){"use strict";function r(t,e){a.EventEmitter.apply(this,arguments),this.wrapElem=t,this.wrapSize={width:function(){return t.clientWidth},height:function(){return t.clientHeight}},this.options=(0,a.extend)({loop:!0,autoPlay:!1,startIndex:0},e),this.init.apply(this,arguments)}Object.defineProperty(e,"__esModule",{value:!0});var i=n(21),o=function(t){return t&&t.__esModule?t:{default:t}}(i),a=n(20),s=function(t,e){Array.prototype.forEach.call(t,function(t){(0,a.extend)(t.style,e)})};r.prototype=(0,o.default)(new a.EventEmitter),(0,a.extend)(r.prototype,{init:function(){this.update()},getCurrentDist:function(){return this.mCache.currentDist},update:function(){var t=this,e=this.pages;if(this.pages=this.wrapElem.querySelectorAll(".zan-swipe-item"),e&&e.length===this.pages.length){if(Array.prototype.every.call(this.pages,function(n,r){return t.pages[r]===e[r]}))return}var n={position:"absolute",top:0,left:0,width:"100%",height:"100%","-webkit-transform":"translate3d(-9999px, 0, 0)","pointer-events":"none"};s(this.pages,n),this.mCache={dist:0,offsetPage:0},this.setCurrentPage(0),this.movePage(this.options.startIndex*this.wrapSize.width(),!0)},renderPage:function(){var t,e,n,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,o=this.wrapSize.width(),a=i*o-r,s=a-o,u=a+o;t=this.getCurrentPage(),t&&(t.style["-webkit-transform"]="translate3d("+a+"px, 0, 0)",t.style.display="block"),e=this.pages[this.mapLoopPage(i-1)],e&&(Math.abs(s)<=o?e.style["-webkit-transform"]="translate3d("+s+"px, 0, 0)":this.pages.length>2&&(e.style["-webkit-transform"]="translate3d(-9999px, 0, 0)")),(n=this.pages[this.mapLoopPage(i+1)])&&(Math.abs(u)<=o?n.style["-webkit-transform"]="translate3d("+u+"px, 0, 0)":this.pages.length>2&&(n.style["-webkit-transform"]="translate3d(-9999px, 0, 0)"))},movePage:function(t,e){var n;this.mCache.currentDist=t+this.mCache.dist,e&&(this.mCache.dist+=t),n=Math.round(this.mCache.currentDist/this.wrapSize.width())||0,n!==this.mCache.offsetPage&&(this.setCurrentPage(n),this.emit("pageChangeEnd",this.getCurrentPage(),this.currentIndex,this.mCache.offsetPage),this.mCache.offsetPage=n),this.renderPage(this.mCache.currentDist,n)},getCurrentPage:function(){return this.pages[this.currentIndex]},mapLoopPage:function(t){if(this.options.loop){var e=t<0?-1:1,n=this.pages.length;return Math.abs(n+e*Math.abs(t)%n)%n}return t>=this.pages.length||t<0?this.pages.length:t},setCurrentPage:function(t){this.currentIndex=this.mapLoopPage(t)}}),e.default=r},function(t,e,n){"use strict";function r(t,e,n){var r=t.wrapElem,i=this;a.EventEmitter.apply(this,arguments),this.scroll=t,this.input=e,this.input.on("move",this.movementReact.bind(this)),this.wrapSize={width:function(){return r.clientWidth},height:function(){return r.clientHieght}},this.options=(0,a.extend)({intervalTween:3e3,threshold:20},n),this.scroll.options.autoPlay&&this.initMove(),this.on("bounceEnd",function(){i.scroll.options.autoPlay&&i.initMove(),i.input.undeaf()}).on("bounceStart",function(){i.input.deaf()})}Object.defineProperty(e,"__esModule",{value:!0});var i=n(21),o=function(t){return t&&t.__esModule?t:{default:t}}(i),a=n(20);r.prototype=(0,o.default)(new a.EventEmitter),(0,a.extend)(r.prototype,{clearTransition:function(){(0,a.cancelAnimationFrame)(this.transitionReq)},movementReact:function(t,e,n,r){e&&this.launch(r.orgDirection?t.x:0),this.clearMove()},launch:function(t){var e=this,n=t/Math.abs(t),r=0,i=e.wrapSize.width(),o=Math.round(t/i),a=this.scroll.mCache.offsetPage;r=i*o,0===r&&Math.abs(t)>e.options.threshold&&(r=i*n),e.scroll.options.loop||(a<=0&&(r=Math.abs(t)>e.options.threshold&&n>0?i*n:i*(o-a)),1===this.scroll.pages.length?r=0:a>=this.scroll.pages.length-1&&(r=Math.abs(t)>e.options.threshold&&n<0?i*n:i*(o-a+this.scroll.pages.length-1))),this.initTween(r-t,150,"bounce")},initTween:function(t,e,n){function r(){if((i=new Date-s)>e)return o.emit(n,{x:t},!0),void o.emit(n+"End");o.emit(n,{x:t/e*i},!1),o.tweenRid=(0,a.requestAnimationFrame)(r)}if(0!==t){var i,o=this,s=new Date;this.cancelTween(),this.emit(n+"Start"),r()}},cancelTween:function(){(0,a.cancelAnimationFrame)(this.tweenRid)},initMove:function(){function t(){n.currentIndex!==n.pages.length-1||n.options.loop?e.initTween(e.wrapSize.width(),200,"autoPlay"):e.initTween(-e.wrapSize.width()*(n.pages.length-1),200,"autoPlay"),e.moveTid=setTimeout(t,r)}var e=this,n=this.scroll,r=e.options.intervalTween;this.clearMove(),e.moveTid=setTimeout(t,r)},clearMove:function(){clearTimeout(this.moveTid)}}),e.default=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(204),i=function(t){return t&&t.__esModule?t:{default:t}}(r);e.default=i.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(205),i=function(t){return t&&t.__esModule?t:{default:t}}(r);e.default=i.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(206),i=function(t){return t&&t.__esModule?t:{default:t}}(r);e.default=i.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(207),i=function(t){return t&&t.__esModule?t:{default:t}}(r);e.default=i.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(124),i=function(t){return t&&t.__esModule?t:{default:t}}(r);e.default=i.default},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var i=n(2),o=r(i),a=n(14),s=r(a),u=o.default.extend(n(208)),l=[],c=function(){if(l.length>0){var t=l[0];return l.splice(0,1),t}return new u({el:document.createElement("div")})},f=function(t){t&&l.push(t)},d=function(t){t.target.parentNode&&t.target.parentNode.removeChild(t.target)},p=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.duration||3e3,n=c();return f(n),n.closed=!1,clearTimeout(n.timer),n.type=t.type?t.type:"text",n.message="string"==typeof t?t:t.message,n.forbidClick=!!t.forbidClick&&t.forbidClick,n.clear=function(){n.closed||(n.visible=!1,n.$el.addEventListener("transitionend",d),n.closed=!0)},document.body.appendChild(n.$el),o.default.nextTick(function(){n.visible=!0,n.$el.removeEventListener("transitionend",d),n.timer=setTimeout(function(){n.clear()},e)}),n};p.loading=function(t){return new p((0,s.default)({type:"loading"},t))},p.success=function(t){var e="string"==typeof t?t:t.message;return new p((0,s.default)({type:"success",message:e},t))},p.fail=function(t){var e="string"==typeof t?t:t.message;return new p((0,s.default)({type:"fail",message:e},t))},e.default=p},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(209),i=function(t){return t&&t.__esModule?t:{default:t}}(r);e.default=i.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(128),i=function(t){return t&&t.__esModule?t:{default:t}}(r);e.default=i.default},function(t,e,n){"use strict";function r(){var t=this;this.scrollEventListener=u.default.debounce(i.bind(this),200),this.scrollEventTarget=u.default.getScrollEventTarget(this.el);var e=this.el.getAttribute("waterfall-disabled"),n=!1;e&&(this.vm.$watch(e,function(e){t.disabled=e,t.scrollEventListener()}),n=Boolean(this.vm[e])),this.disabled=n;var r=this.el.getAttribute("waterfall-offset");this.offset=Number(r)||c,this.scrollEventTarget.addEventListener("scroll",this.scrollEventListener),this.scrollEventListener()}function i(){var t=this.el,e=this.scrollEventTarget;if(!this.disabled){var n=u.default.getScrollTop(e),r=n+u.default.getVisibleHeight(e),i=!1;if(t===e)i=e.scollHeight-r0}o&&this.cb.upper&&this.cb.upper({target:e,top:n})}}function o(t){t[l].vm.$nextTick(function(){u.default.isAttached(t)&&r.call(t[l])})}function a(t){var e=t[l];e.vm._isMounted?o(t):e.vm.$on("hook:mounted",function(){o(t)})}Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return{bind:function(e,n,r){e[l]||(e[l]={el:e,vm:r.context,cb:{}}),e[l].cb[t]=n.value,a(e)},update:function(t){t[l].scrollEventListener()},unbind:function(t){var e=t[l];e.scrollEventTarget.removeEventListener("scroll",e.scrollEventListener)}}};var s=n(131),u=function(t){return t&&t.__esModule?t:{default:t}}(s),l="@@Waterfall",c=300},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var i=n(127),o=r(i),a=n(2),s=r(a),u=function(t){t.directive("WaterfallLower",(0,o.default)("lower")),t.directive("WaterfallUpper",(0,o.default)("upper"))};s.default.prototype.$isServer||s.default.use(u),o.default.install=u,e.default=o.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(2),i=(function(t){t&&t.__esModule?t:{default:t}}(r),n(130)),o=function(){var t=window.popupContext&&window.popupContext.modalDom;return t?window.popupContext.hasModal=!0:(window.popupContext.hasModal=!1,t=document.createElement("div"),window.popupContext.modalDom=t,t.addEventListener("touchmove",function(t){t.preventDefault(),t.stopPropagation()}),t.addEventListener("click",function(){a.handleOverlayClick&&a.handleOverlayClick()})),t},a={nextZIndex:function(){return this.popupContext.zIndex++},getInstance:function(t){return this.popupContext.instances[t]},register:function(t,e,n){t&&e&&(this.popupContext=n,this.popupContext.instances[t]=e)},deregister:function(t){t&&(this.popupContext.instances[t]=null,delete this.popupContext.instances[t])},handleOverlayClick:function(){var t=this.popupContext.modalStack[this.popupContext.modalStack.length-1];if(t){var e=a.getInstance(t.id);e&&e.closeOnClickOverlay&&e.close()}},openModal:function(t,e,n){if(t&&void 0!==e){for(var r=this.popupContext.modalStack,a=0,s=r.length;a0){if(n[n.length-1].id===t)n.pop(),n.length>0&&(r.style.zIndex=n[n.length-1].zIndex);else for(var i=n.length-1;i>=0;i--)if(n[i].id===t){n.splice(i,1);break}}0===n.length&&setTimeout(function(){r.parentNode&&r.parentNode.removeChild(r),r.style.display="none",e.modalDom=null},200)}};e.default=a},function(t,e,n){"use strict";function r(t,e){if(!t||!e)return!1;if(e.indexOf(" ")!==-1)throw new Error("className should not contain space.");return t.classList?t.classList.contains(e):(" "+t.className+" ").indexOf(" "+e+" ")>-1}function i(t,e){if(t){for(var n=t.className,i=(e||"").split(" "),o=0,a=i.length;oc;)if((s=u[c++])!=s)return!0}else for(;l>c;c++)if((t||c in u)&&u[c]===n)return t||c||0;return!t&&-1}}},function(t,e,n){var r=n(16),i=n(148),o=n(147),a=n(5),s=n(48),u=n(166),l={},c={},e=t.exports=function(t,e,n,f,d){var p,h,v,m,_=d?function(){return t}:u(t),y=r(n,f,e?2:1),g=0;if("function"!=typeof _)throw TypeError(t+" is not iterable!");if(o(_)){for(p=s(t.length);p>g;g++)if((m=e?y(a(h=t[g])[0],h[1]):y(t[g]))===l||m===c)return m}else for(v=_.call(t);!(h=v.next()).done;)if((m=i(v,y,h.value,e))===l||m===c)return m};e.BREAK=l,e.RETURN=c},function(t,e,n){t.exports=!n(6)&&!n(19)(function(){return 7!=Object.defineProperty(n(24)("div"),"a",{get:function(){return 7}}).a})},function(t,e){t.exports=function(t,e,n){var r=void 0===n;switch(e.length){case 0:return r?t():t.call(n);case 1:return r?t(e[0]):t.call(n,e[0]);case 2:return r?t(e[0],e[1]):t.call(n,e[0],e[1]);case 3:return r?t(e[0],e[1],e[2]):t.call(n,e[0],e[1],e[2]);case 4:return r?t(e[0],e[1],e[2],e[3]):t.call(n,e[0],e[1],e[2],e[3])}return t.apply(n,e)}},function(t,e,n){var r=n(9),i=n(1)("iterator"),o=Array.prototype;t.exports=function(t){return void 0!==t&&(r.Array===t||o[i]===t)}},function(t,e,n){var r=n(5);t.exports=function(t,e,n,i){try{return i?e(r(n)[0],n[1]):e(n)}catch(e){var o=t.return;throw void 0!==o&&r(o.call(t)),e}}},function(t,e,n){"use strict";var r=n(44),i=n(45),o=n(25),a={};n(7)(a,n(1)("iterator"),function(){return this}),t.exports=function(t,e,n){t.prototype=r(a,{next:i(1,n)}),o(t,e+" Iterator")}},function(t,e,n){var r=n(1)("iterator"),i=!1;try{var o=[7][r]();o.return=function(){i=!0},Array.from(o,function(){throw 2})}catch(t){}t.exports=function(t,e){if(!e&&!i)return!1;var n=!1;try{var o=[7],a=o[r]();a.next=function(){return{done:n=!0}},o[r]=function(){return a},t(o)}catch(t){}return n}},function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},function(t,e,n){var r=n(3),i=n(47).set,o=r.MutationObserver||r.WebKitMutationObserver,a=r.process,s=r.Promise,u="process"==n(15)(a);t.exports=function(){var t,e,n,l=function(){var r,i;for(u&&(r=a.domain)&&r.exit();t;){i=t.fn,t=t.next;try{i()}catch(r){throw t?n():e=void 0,r}}e=void 0,r&&r.enter()};if(u)n=function(){a.nextTick(l)};else if(o){var c=!0,f=document.createTextNode("");new o(l).observe(f,{characterData:!0}),n=function(){f.data=c=!c}}else if(s&&s.resolve){var d=s.resolve();n=function(){d.then(l)}}else n=function(){i.call(r,l)};return function(r){var i={fn:r,next:void 0};e&&(e.next=i),t||(t=i,n()),e=i}}},function(t,e,n){"use strict";var r=n(31),i=n(155),o=n(158),a=n(32),s=n(41),u=Object.assign;t.exports=!u||n(19)(function(){var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach(function(t){e[t]=t}),7!=u({},t)[n]||Object.keys(u({},e)).join("")!=r})?function(t,e){for(var n=a(t),u=arguments.length,l=1,c=i.f,f=o.f;u>l;)for(var d,p=s(arguments[l++]),h=c?r(p).concat(c(p)):r(p),v=h.length,m=0;v>m;)f.call(p,d=h[m++])&&(n[d]=p[d]);return n}:u},function(t,e,n){var r=n(10),i=n(5),o=n(31);t.exports=n(6)?Object.defineProperties:function(t,e){i(t);for(var n,a=o(e),s=a.length,u=0;s>u;)r.f(t,n=a[u++],e[n]);return t}},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e,n){var r=n(17),i=n(32),o=n(26)("IE_PROTO"),a=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=i(t),r(t,o)?t[o]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?a:null}},function(t,e,n){var r=n(17),i=n(28),o=n(143)(!1),a=n(26)("IE_PROTO");t.exports=function(t,e){var n,s=i(t),u=0,l=[];for(n in s)n!=a&&r(s,n)&&l.push(n);for(;e.length>u;)r(s,n=e[u++])&&(~o(l,n)||l.push(n));return l}},function(t,e){e.f={}.propertyIsEnumerable},function(t,e,n){var r=n(7);t.exports=function(t,e,n){for(var i in e)n&&t[i]?t[i]=e[i]:r(t,i,e[i]);return t}},function(t,e,n){t.exports=n(7)},function(t,e,n){"use strict";var r=n(3),i=n(4),o=n(10),a=n(6),s=n(1)("species");t.exports=function(t){var e="function"==typeof i[t]?i[t]:r[t];a&&e&&!e[s]&&o.f(e,s,{configurable:!0,get:function(){return this}})}},function(t,e,n){var r=n(5),i=n(22),o=n(1)("species");t.exports=function(t,e){var n,a=r(t).constructor;return void 0===a||void 0==(n=r(a)[o])?e:i(n)}},function(t,e,n){var r=n(27),i=n(23);t.exports=function(t){return function(e,n){var o,a,s=String(i(e)),u=r(n),l=s.length;return u<0||u>=l?t?"":void 0:(o=s.charCodeAt(u),o<55296||o>56319||u+1===l||(a=s.charCodeAt(u+1))<56320||a>57343?t?s.charAt(u):o:t?s.slice(u,u+2):a-56320+(o-55296<<10)+65536)}}},function(t,e,n){var r=n(27),i=Math.max,o=Math.min;t.exports=function(t,e){return t=r(t),t<0?i(t+e,0):o(t,e)}},function(t,e,n){var r=n(18);t.exports=function(t,e){if(!r(t))return t;var n,i;if(e&&"function"==typeof(n=t.toString)&&!r(i=n.call(t)))return i;if("function"==typeof(n=t.valueOf)&&!r(i=n.call(t)))return i;if(!e&&"function"==typeof(n=t.toString)&&!r(i=n.call(t)))return i;throw TypeError("Can't convert object to primitive value")}},function(t,e,n){var r=n(38),i=n(1)("iterator"),o=n(9);t.exports=n(4).getIteratorMethod=function(t){if(void 0!=t)return t[i]||t["@@iterator"]||o[r(t)]}},function(t,e,n){"use strict";var r=n(141),i=n(151),o=n(9),a=n(28);t.exports=n(42)(Array,"Array",function(t,e){this._t=a(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,i(1)):"keys"==e?i(0,n):"values"==e?i(0,t[n]):i(0,[n,t[n]])},"values"),o.Arguments=o.Array,r("keys"),r("values"),r("entries")},function(t,e,n){var r=n(8);r(r.S+r.F,"Object",{assign:n(153)})},function(t,e,n){var r=n(8);r(r.S,"Object",{create:n(44)})},function(t,e,n){var r=n(8);r(r.S+r.F*!n(6),"Object",{defineProperty:n(10).f})},function(t,e){},function(t,e,n){"use strict";var r,i,o,a=n(43),s=n(3),u=n(16),l=n(38),c=n(8),f=n(18),d=n(22),p=n(142),h=n(144),v=n(162),m=n(47).set,_=n(152)(),y=s.TypeError,g=s.process,b=s.Promise,g=s.process,x="process"==l(g),w=function(){},C=!!function(){try{var t=b.resolve(1),e=(t.constructor={})[n(1)("species")]=function(t){t(w,w)};return(x||"function"==typeof PromiseRejectionEvent)&&t.then(w)instanceof e}catch(t){}}(),k=function(t,e){return t===e||t===b&&e===o},O=function(t){var e;return!(!f(t)||"function"!=typeof(e=t.then))&&e},E=function(t){return k(b,t)?new M(t):new i(t)},M=i=function(t){var e,n;this.promise=new t(function(t,r){if(void 0!==e||void 0!==n)throw y("Bad Promise constructor");e=t,n=r}),this.resolve=d(e),this.reject=d(n)},S=function(t){try{t()}catch(t){return{error:t}}},z=function(t,e){if(!t._n){t._n=!0;var n=t._c;_(function(){for(var r=t._v,i=1==t._s,o=0;n.length>o;)!function(e){var n,o,a=i?e.ok:e.fail,s=e.resolve,u=e.reject,l=e.domain;try{a?(i||(2==t._h&&j(t),t._h=1),a===!0?n=r:(l&&l.enter(),n=a(r),l&&l.exit()),n===e.promise?u(y("Promise-chain cycle")):(o=O(n))?o.call(n,s,u):s(n)):u(r)}catch(t){u(t)}}(n[o++]);t._c=[],t._n=!1,e&&!t._h&&P(t)})}},P=function(t){m.call(s,function(){var e,n,r,i=t._v;if(T(t)&&(e=S(function(){x?g.emit("unhandledRejection",i,t):(n=s.onunhandledrejection)?n({promise:t,reason:i}):(r=s.console)&&r.error&&r.error("Unhandled promise rejection",i)}),t._h=x||T(t)?2:1),t._a=void 0,e)throw e.error})},T=function(t){if(1==t._h)return!1;for(var e,n=t._a||t._c,r=0;n.length>r;)if(e=n[r++],e.fail||!T(e.promise))return!1;return!0},j=function(t){m.call(s,function(){var e;x?g.emit("rejectionHandled",t):(e=s.onrejectionhandled)&&e({promise:t,reason:t._v})})},$=function(t){var e=this;e._d||(e._d=!0,e=e._w||e,e._v=t,e._s=2,e._a||(e._a=e._c.slice()),z(e,!0))},A=function(t){var e,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===t)throw y("Promise can't be resolved itself");(e=O(t))?_(function(){var r={_w:n,_d:!1};try{e.call(t,u(A,r,1),u($,r,1))}catch(t){$.call(r,t)}}):(n._v=t,n._s=1,z(n,!1))}catch(t){$.call({_w:n,_d:!1},t)}}};C||(b=function(t){p(this,b,"Promise","_h"),d(t),r.call(this);try{t(u(A,this,1),u($,this,1))}catch(t){$.call(this,t)}},r=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},r.prototype=n(159)(b.prototype,{then:function(t,e){var n=E(v(this,b));return n.ok="function"!=typeof t||t,n.fail="function"==typeof e&&e,n.domain=x?g.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&z(this,!1),n.promise},catch:function(t){return this.then(void 0,t)}}),M=function(){var t=new r;this.promise=t,this.resolve=u(A,t,1),this.reject=u($,t,1)}),c(c.G+c.W+c.F*!C,{Promise:b}),n(25)(b,"Promise"),n(161)("Promise"),o=n(4).Promise,c(c.S+c.F*!C,"Promise",{reject:function(t){var e=E(this);return(0,e.reject)(t),e.promise}}),c(c.S+c.F*(a||!C),"Promise",{resolve:function(t){if(t instanceof b&&k(t.constructor,this))return t;var e=E(this);return(0,e.resolve)(t),e.promise}}),c(c.S+c.F*!(C&&n(150)(function(t){b.all(t).catch(w)})),"Promise",{all:function(t){var e=this,n=E(e),r=n.resolve,i=n.reject,o=S(function(){var n=[],o=0,a=1;h(t,!1,function(t){var s=o++,u=!1;n.push(void 0),a++,e.resolve(t).then(function(t){u||(u=!0,n[s]=t,--a||r(n))},i)}),--a||r(n)});return o&&i(o.error),n.promise},race:function(t){var e=this,n=E(e),r=n.reject,i=S(function(){h(t,!1,function(t){e.resolve(t).then(n.resolve,r)})});return i&&r(i.error),n.promise}})},function(t,e,n){"use strict";var r=n(163)(!0);n(42)(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,e=this._t,n=this._i;return n>=e.length?{value:void 0,done:!0}:(t=r(e,n),this._i+=t.length,{value:t,done:!1})})},function(t,e,n){n(167);for(var r=n(3),i=n(7),o=n(9),a=n(1)("toStringTag"),s=["NodeList","DOMTokenList","MediaList","StyleSheetList","CSSRuleList"],u=0;u<5;u++){var l=s[u],c=r[l],f=c&&c.prototype;f&&!f[a]&&i(f,a,l),o[l]=o.Array}},function(t,e,n){var r=n(0)(n(54),n(234),null,null);t.exports=r.exports},function(t,e,n){var r=n(0)(n(55),n(237),null,null);t.exports=r.exports},function(t,e,n){var r=n(0)(n(56),n(214),null,null);t.exports=r.exports},function(t,e,n){var r=n(0)(n(57),n(216),null,null);t.exports=r.exports},function(t,e,n){var r=n(0)(n(58),n(219),null,null);t.exports=r.exports},function(t,e,n){var r=n(0)(n(59),n(233),null,null);t.exports=r.exports},function(t,e,n){var r=n(0)(n(60),n(215),null,null);t.exports=r.exports},function(t,e,n){var r=n(0)(n(61),n(224),null,null);t.exports=r.exports},function(t,e,n){var r=n(0)(n(62),n(223),null,null);t.exports=r.exports},function(t,e,n){var r=n(0)(n(63),n(220),null,null);t.exports=r.exports},function(t,e,n){var r=n(0)(n(64),n(222),null,null);t.exports=r.exports},function(t,e,n){var r=n(0)(n(65),n(238),null,null);t.exports=r.exports},function(t,e,n){var r=n(0)(n(66),n(231),null,null);t.exports=r.exports},function(t,e,n){var r=n(0)(n(67),n(221),null,null);t.exports=r.exports},function(t,e,n){var r=n(0)(n(68),n(235),null,null);t.exports=r.exports},function(t,e,n){var r=n(0)(n(69),n(229),null,null);t.exports=r.exports},function(t,e,n){var r=n(0)(n(70),n(243),null,null);t.exports=r.exports},function(t,e,n){var r=n(0)(n(71),n(217),null,null);t.exports=r.exports},function(t,e,n){var r=n(0)(n(72),n(244),null,null);t.exports=r.exports},function(t,e,n){var r=n(0)(n(73),n(227),null,null);t.exports=r.exports},function(t,e,n){var r=n(0)(n(74),n(236),null,null);t.exports=r.exports},function(t,e,n){var r=n(0)(n(75),n(210),null,null);t.exports=r.exports},function(t,e,n){var r=n(0)(n(76),n(240),null,null);t.exports=r.exports},function(t,e,n){var r=n(0)(n(77),n(232),null,null);t.exports=r.exports},function(t,e,n){var r=n(0)(n(78),n(218),null,null);t.exports=r.exports},function(t,e,n){var r=n(0)(n(79),n(212),null,null);t.exports=r.exports},function(t,e,n){var r=n(0)(n(80),n(228),null,null);t.exports=r.exports},function(t,e,n){var r=n(0)(n(81),n(226),null,null);t.exports=r.exports},function(t,e,n){var r=n(0)(n(82),n(213),null,null);t.exports=r.exports},function(t,e,n){var r=n(0)(n(83),n(241),null,null);t.exports=r.exports},function(t,e,n){var r=n(0)(n(84),n(242),null,null);t.exports=r.exports},function(t,e,n){var r=n(0)(n(85),n(230),null,null);t.exports=r.exports},function(t,e,n){var r=n(0)(n(86),n(211),null,null);t.exports=r.exports},function(t,e,n){var r=n(0)(n(87),n(225),null,null);t.exports=r.exports},function(t,e,n){var r=n(0)(n(88),n(239),null,null);t.exports=r.exports},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement;return(t._self._c||e)("div",{staticClass:"zan-radio-group"},[t._t("default")],2)},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement;return(t._self._c||e)("span",{staticClass:"zan-tag",class:[t.type?"zan-tag--"+t.type:"",{"is-plain":t.plain,"is-mark":t.mark}]},[t._t("default")],2)},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"zan-step",class:t.statusClass},[n("div",{staticClass:"zan-step__circle-container"},["process"!==t.status?n("i",{staticClass:"zan-step__circle"}):n("i",{staticClass:"zan-icon zan-icon-checked"})]),t._v(" "),n("p",{staticClass:"zan-step__title"},[t._t("default")],2),t._v(" "),n("div",{staticClass:"zan-step__line"})])},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement;return(t._self._c||e)("div",{staticClass:"zan-swipe"},[t._t("default")],2)},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("a",{staticClass:"zan-badge",class:t.classNames,attrs:{href:t.url},on:{click:t.handleClick}},[n("div",{staticClass:"zan-badge__active"}),t._v(" "),t.info?n("div",{staticClass:"zan-badge__info"},[t._v(t._s(t.info))]):t._e(),t._v("\n "+t._s(t.title)+"\n")])},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement;return(t._self._c||e)("div",{staticClass:"zan-checkbox-group"},[t._t("default")],2)},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"zan-card"},[n("img",{staticClass:"zan-card__img",attrs:{src:t.thumb,alt:""}}),t._v(" "),n("div",{staticClass:"zan-card__content",class:{"is-center":!this.$slots.footer}},[n("div",{staticClass:"zan-card__info"},[t._t("title",[n("h4",{staticClass:"zan-card__title",domProps:{textContent:t._s(t.title)}})]),t._v(" "),t._t("desc",[t.desc?n("p",{staticClass:"zan-card__desc",domProps:{textContent:t._s(t.desc)}}):t._e()]),t._v(" "),t._t("tags")],2),t._v(" "),t._t("footer")],2)])},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"zan-picker"},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.showToolbar,expression:"showToolbar"}],staticClass:"zan-picker__toolbar"},[t._t("default",[n("a",{staticClass:"zan-picker__cancel",attrs:{href:"javascript:void(0)"},on:{click:t.handlePickerCancel}},[t._v("取消")]),t._v(" "),n("a",{staticClass:"zan-picker__confirm",attrs:{href:"javascript:void(0)"},on:{click:t.handlePickerConfirm}},[t._v("完成")])])],2),t._v(" "),n("div",{staticClass:"zan-picker__columns",class:["zan-picker__columns--"+t.columns.length]},[t._l(t.columns,function(e,r){return n("picker-column",{directives:[{name:"model",rawName:"v-model",value:t.values[r],expression:"values[index]"}],attrs:{values:e.values,"class-name":e.className,itemHeight:t.itemHeight,"visible-item-count":t.visibleItemCount,"value-key":t.valueKey},domProps:{value:t.values[r]},on:{change:function(e){t.columnValueChange(r)},input:function(e){var n=t.values,i=r;Array.isArray(n)?n.splice(i,1,e):t.values[r]=e}}})}),t._v(" "),n("div",{staticClass:"zan-picker-center-highlight",style:{height:t.itemHeight+"px",marginTop:-t.itemHeight/2+"px"}})],2)])},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"zan-search",class:{"zan-search--focus":t.isFocus}},[n("div",{staticClass:"zan-search__input-wrap"},[n("zan-icon",{attrs:{name:"search"}}),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.value,expression:"value"},{name:"refocus",rawName:"v-refocus",value:t.focusStatus,expression:"focusStatus"}],attrs:{type:"text",placeholder:t.placeholder},domProps:{value:t._s(t.value)},on:{focus:t.handleFocus,keyup:function(e){t._k(e.keyCode,"enter",13)||t.handleSearch(e)},input:function(e){e.target.composing||(t.value=e.target.value)}}}),t._v(" "),n("zan-icon",{attrs:{name:"clear"},on:{click:t.handleClean}})],1),t._v(" "),n("div",{staticClass:"zan-search__cancel",class:{"zan-search__cancel--focus":t.isFocus},on:{click:t.handleBack}},[t._v("取消")])])},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement;return(t._self._c||e)("div",{staticClass:"zan-cell-group"},[t._t("default")],2)},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement;return(t._self._c||e)("zan-picker",{attrs:{columns:t.columns,"visible-item-count":t.visibleItemCount,showToolbar:""},on:{change:t.handlePickerChange,confirm:t.handlePickerConfirm}})},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("transition",{attrs:{name:"image-fade"}},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.value,expression:"value"}],ref:"previewContainer",staticClass:"zan-image-preview",on:{click:t.handlePreviewClick}},[n("zan-swipe",t._l(t.images,function(t){return n("zan-swipe-item",[n("img",{staticClass:"zan-image-preview__image",class:{"zan-image-preview__image--center":!0},attrs:{src:t,alt:""}})])}))],1)])},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("transition",{attrs:{name:"dialog-bounce"}},[n("div",{staticClass:"zan-dialog-wrapper"},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.value,expression:"value"}],staticClass:"zan-dialog"},[t.title?n("div",{staticClass:"zan-dialog__header"},[n("div",{staticClass:"zan-dialog__title",domProps:{textContent:t._s(t.title)}})]):t._e(),t._v(" "),t.message?n("div",{staticClass:"zan-dialog__content"},[n("div",{staticClass:"zan-dialog__message",domProps:{innerHTML:t._s(t.message)}})]):t._e(),t._v(" "),n("div",{staticClass:"zan-dialog__footer",class:{"is-twobtn":t.showCancelButton&&t.showConfirmButton}},[n("button",{directives:[{name:"show",rawName:"v-show",value:t.showCancelButton,expression:"showCancelButton"}],staticClass:"zan-dialog__btn zan-dialog__cancel",on:{click:function(e){t.handleAction("cancel")}}},[t._v(t._s(t.cancelButtonText))]),t._v(" "),n("button",{directives:[{name:"show",rawName:"v-show",value:t.showConfirmButton,expression:"showConfirmButton"}],staticClass:"zan-dialog__btn zan-dialog__confirm",on:{click:function(e){t.handleAction("confirm")}}},[t._v(t._s(t.confirmButtonText))])])])])])},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement;return(t._self._c||e)("div",{class:[t.prefix+"-col",(n={},n[t.prefix+"-col-"+t.span]=t.span,n[t.prefix+"-col-offset-"+t.offset]=t.offset,n)],style:t.style},[t._t("default")],2);var n},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"zan-checkbox",class:{"zan-checkbox--disabled":t.isDisabled}},[n("span",{staticClass:"zan-checkbox__input"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.currentValue,expression:"currentValue"}],staticClass:"zan-checkbox__control",attrs:{type:"checkbox",disabled:t.isDisabled},domProps:{checked:Array.isArray(t.currentValue)?t._i(t.currentValue,null)>-1:t.currentValue},on:{change:function(e){var n=t.currentValue,r=e.target,i=!!r.checked;if(Array.isArray(n)){var o=t._i(n,null);i?o<0&&(t.currentValue=n.concat(null)):o>-1&&(t.currentValue=n.slice(0,o).concat(n.slice(o+1)))}else t.currentValue=i}}}),t._v(" "),n("span",{staticClass:"zan-icon",class:{"zan-icon-checked":t.isChecked,"zan-icon-check":!t.isChecked}})]),t._v(" "),n("span",{staticClass:"zan-checkbox__label",on:{click:t.handleLabelClick}},[t._t("default")],2)])},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("transition",{attrs:{name:"zan-toast"}},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.visible,expression:"visible"}],staticClass:"zan-toast-wrapper"},[n("div",{staticClass:"zan-toast",class:["zan-toast--"+t.displayStyle]},["text"===t.displayStyle?[n("div",{staticClass:"zan-toast__text"},[t._v(t._s(t.message))])]:t._e(),t._v(" "),"loading"===t.displayStyle?["loading"===t.type?n("zan-loading",{attrs:{type:"gradient-circle",color:"white"}}):t._e()]:t._e(),t._v(" "),"default"===t.displayStyle?[n("zan-icon",{staticClass:"zan-toast__icon",attrs:{name:t.type}}),t._v(" "),n("div",{staticClass:"zan-toast__text"},[t._v(t._s(t.message))])]:t._e(),t._v(" "),"html"===t.displayStyle?[n("div",{staticClass:"zan-toast__text",domProps:{innerHTML:t._s(t.message)}})]:t._e()],2),t._v(" "),t.forbidClick?n("div",{staticClass:"zan-toast__overlay"}):t._e()])])},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement;return(t._self._c||e)("div",{staticClass:"zan-swipe-item"},[t._t("default")],2)},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"zan-progress"},[n("div",{staticClass:"zan-progress__bar"},[n("span",{staticClass:"zan-progress__bar__finished-portion",style:{backgroundColor:t.componentColor,width:t.percentage+"%"}}),t._v(" "),n("span",{staticClass:"zan-progress__bar__pivot",style:t.pivotStyle},[t._v(t._s(t.currentPivotText))])])])},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"zan-steps",class:"zan-steps--"+t.steps.length},[t.icon?n("div",{staticClass:"zan-steps__status"},[n("i",{staticClass:"zan-icon zan-steps__icon",class:t.computedIconClass}),t._v(" "),n("div",{staticClass:"zan-steps__message"},[n("div",{staticClass:"zan-steps__message-wrapper"},[n("h4",{staticClass:"zan-steps__title",domProps:{textContent:t._s(t.title)}}),t._v(" "),n("p",{staticClass:"zan-steps__desc",domProps:{textContent:t._s(t.description)}})])]),t._v(" "),t._t("message-extra")],2):t._e(),t._v(" "),n("div",{staticClass:"zan-steps__items"},[t._t("default")],2)])},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"zan-panel"},[n("div",{staticClass:"zan-panel__header"},[t._t("header",[n("h4",{staticClass:"zan-panel__title",domProps:{textContent:t._s(t.title)}}),t._v(" "),t.desc?n("span",{staticClass:"zan-panel__desc",domProps:{textContent:t._s(t.desc)}}):t._e(),t._v(" "),t.status?n("span",{staticClass:"zan-panel__status",domProps:{textContent:t._s(t.status)}}):t._e()])],2),t._v(" "),n("div",{staticClass:"zan-panel__content"},[t._t("default")],2),t._v(" "),this.$slots.footer?n("div",{staticClass:"zan-panel__footer"},[t._t("footer")],2):t._e()])},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"zan-tabs"},[n("div",{staticClass:"zan-tabs__nav",class:t.classNames},[n("div",{staticClass:"zan-tabs__nav-bar",style:t.navBarStyle}),t._v(" "),t._l(t.tabs,function(e,r){return n("div",{ref:"tabkey",refInFor:!0,staticClass:"zan-tab",class:{"zan-tab--active":r==t.switchActiveTabKey},on:{click:function(n){t.handleTabClick(r,e)}}},[t._v("\n "+t._s(e.title)+"\n ")])})],2),t._v(" "),n("div",{staticClass:"zan-tabs__content"},[t._t("default")],2)])},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement;return(t._self._c||e)("i",{staticClass:"zan-icon",class:"zan-icon-"+t.name,on:{click:t.handleIconClick}})},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement;return(t._self._c||e)("div",{class:t.prefix+"-row",style:t.style},[t._t("default")],2)},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("a",{staticClass:"zan-cell",attrs:{href:t.url},on:{click:t.handleClick}},[this.$slots.title||t.title||t.label?n("div",{class:{"zan-cell__title":!0,"zan-cell__required":t.required}},[t._t("icon",[t.icon?n("i",{staticClass:"zan-icon",class:"zan-icon-"+t.icon}):t._e()]),t._v(" "),t._t("title",[n("span",{staticClass:"zan-cell__text",domProps:{textContent:t._s(t.title)}}),t._v(" "),t.label?n("span",{staticClass:"zan-cell__label",domProps:{textContent:t._s(t.label)}}):t._e()])],2):t._e(),t._v(" "),n("div",{staticClass:"zan-cell__value",class:{"is-link":t.isLink,"is-alone":!this.$slots.title&&!t.title&&!t.label}},[t._t("default",[n("span",{domProps:{textContent:t._s(t.value)}})])],2),t._v(" "),t.isLink?n("i",{staticClass:"zan-icon zan-icon-arrow"}):t._e()])},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("transition",{attrs:{name:"actionsheet-float"}},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.currentValue,expression:"currentValue"}],staticClass:"zan-actionsheet",class:[t.title?"zan-actionsheet--withtitle":""]},[t.title?n("div",{staticClass:"zan-actionsheet__header"},[n("h3",{domProps:{textContent:t._s(t.title)}}),t._v(" "),n("zan-icon",{attrs:{name:"close"},on:{click:function(e){e.stopPropagation(),t.currentValue=!1}}})],1):t._e(),t._v(" "),t.title?[n("div",{staticClass:"zan-actionsheet__content"},[t._t("default")],2)]:[n("ul",{staticClass:"zan-actionsheet__list"},t._l(t.actions,function(e){return n("li",{staticClass:"zan-actionsheet__item",class:[e.className,e.loading?"zan-actionsheet__item--loading":""],on:{click:function(n){n.stopPropagation(),t.handleItemClick(e)}}},[e.loading?[n("zan-loading",{staticClass:"zan-actionsheet__loading",attrs:{type:"circle",color:"black"}})]:[n("span",{staticClass:"zan-actionsheet__name"},[t._v(t._s(e.name))]),t._v(" "),e.subname?n("span",{staticClass:"zan-actionsheet__subname"},[t._v(t._s(e.subname))]):t._e()]],2)})),t._v(" "),t.cancelText?n("a",{staticClass:"zan-actionsheet__button",on:{click:function(e){e.stopPropagation(),t.currentValue=!1}}},[t._v(t._s(t.cancelText))]):t._e()]],2)])},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"zan-loading"},[n("span",{staticClass:"zan-loading__spinner",class:["zan-loading__spinner--"+t.type,"zan-loading__spinner--"+t.color]})])},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"zan-quantity"},[n("button",{staticClass:"zan-quantity__stepper zan-quantity__minus",class:{"zan-quantity__minus--disabled":t.isMinusDisabled},on:{click:function(e){t.handleChange("minus")}}}),t._v(" "),n("input",{staticClass:"zan-quantity__input",attrs:{type:"text",disabled:t.disabled},domProps:{value:t.currentValue},on:{input:t.handleInputChange}}),t._v(" "),n("button",{staticClass:"zan-quantity__stepper zan-quantity__plus",class:{"zan-quantity__plus--disabled":t.isPlusDisabled},on:{click:function(e){t.handleChange("plus")}}})])},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement;return(t._self._c||e)("div",{staticClass:"zan-badge-group"},[t._t("default")],2)},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("zan-cell",{staticClass:"zan-field",class:{"zan-field--hastextarea":"textarea"===t.type,"zan-field--nolabel":!t.label,"zan-field--disabled":t.disabled,"zan-field--error":t.error,"zan-field--border":t.border,"zan-field--autosize":t.autosize},attrs:{title:t.label,required:t.required}},["textarea"===t.type?n("textarea",{directives:[{name:"model",rawName:"v-model",value:t.currentValue,expression:"currentValue"}],ref:"textareaElement",staticClass:"zan-field__control",attrs:{placeholder:t.placeholder,maxlength:t.maxlength,disabled:t.disabled,readonly:t.readonly,rows:t.rows,cols:t.cols},domProps:{value:t._s(t.currentValue)},on:{focus:t.handleInputFocus,input:function(e){e.target.composing||(t.currentValue=e.target.value)}}}):n("input",{staticClass:"zan-field__control",attrs:{type:t.type,placeholder:t.placeholder,maxlength:t.maxlength,disabled:t.disabled,readonly:t.readonly},domProps:{value:t.currentValue},on:{input:t.handleInput,focus:t.handleInputFocus}})])},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"zan-uploader"},[t._t("default",[n("div",[n("zan-button",{attrs:{block:""}},[t._v("上传文件")])],1)]),t._v(" "),n("input",{ref:"input",staticClass:"zan-uploader__input",attrs:{type:"file"},on:{change:t.onValueChange}})],2)},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"zan-radio",class:{"zan-radio--disabled":t.isDisabled},on:{click:t.handleRadioClick}},[n("span",{staticClass:"zan-radio__input"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.currentValue,expression:"currentValue"}],staticClass:"zan-radio__control",attrs:{type:"radio",disabled:t.isDisabled},domProps:{value:t.name,checked:t._q(t.currentValue,t.name)},on:{change:function(e){t.currentValue=t.name}}}),t._v(" "),n("span",{staticClass:"zan-icon",class:{"zan-icon-checked":t.currentValue===t.name,"zan-icon-check":t.currentValue!==t.name}})]),t._v(" "),n("span",{staticClass:"zan-radio__label",on:{click:t.handleLabelClick}},[t._t("default")],2)])},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"zan-switch",class:t.switchStates,on:{click:t.toggleState}},[n("div",{staticClass:"zan-switch__node"},[t.loading?n("zan-loading",{staticClass:"zan-switch__loading"}):t._e()],1),t._v(" "),n("div",{staticClass:"zan-switch__bg"})])},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement;return(t._self._c||e)("div",{staticClass:"zan-tab__pane",class:t.classNames},[t._t("default")],2)},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"zan-picker-column",class:t.classNames},[n("div",{ref:"wrapper",staticClass:"zan-picker-column-wrapper",class:{dragging:t.isDragging},style:{height:t.visibleContentHeight+"px"}},t._l(t.currentValues,function(e){return n("div",{staticClass:"zan-picker-column__item",class:{"zan-picker-column__item--selected":e===t.currentValue},style:{height:t.itemHeight+"px",lineHeight:t.itemHeight+"px"}},[t._v("\n "+t._s("object"==typeof e&&e[t.valueKey]?e[t.valueKey]:e)+"\n ")])}))])},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("transition",{attrs:{name:t.currentTransition}},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.currentValue,expression:"currentValue"}],staticClass:"zan-popup",class:[t.position?"zan-popup--"+t.position:""]},[t._t("default")],2)])},staticRenderFns:[]}},function(t,e){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e,n){n(267);var r=n(0)(n(257),n(273),null,null);t.exports=r.exports},,,,,function(t,e){t.exports=function(){var t=[];return t.toString=function(){for(var t=[],e=0;e=0&&m.splice(e,1)}function a(t){var e=document.createElement("style");return e.type="text/css",i(t,e),e}function s(t,e){var n,r,i;if(e.singleton){var s=v++;n=h||(h=a(e)),r=u.bind(null,n,s,!1),i=u.bind(null,n,s,!0)}else n=a(e),r=l.bind(null,n),i=function(){o(n)};return r(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;r(t=e)}else i()}}function u(t,e,n,r){var i=n?"":r.css;if(t.styleSheet)t.styleSheet.cssText=_(e,i);else{var o=document.createTextNode(i),a=t.childNodes;a[e]&&t.removeChild(a[e]),a.length?t.insertBefore(o,a[e]):t.appendChild(o)}}function l(t,e){var n=e.css,r=e.media,i=e.sourceMap;if(r&&t.setAttribute("media",r),i&&(n+="\n/*# sourceURL="+i.sources[0]+" */",n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(i))))+" */"),t.styleSheet)t.styleSheet.cssText=n;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(n))}}var c={},f=function(t){var e;return function(){return void 0===e&&(e=t.apply(this,arguments)),e}},d=f(function(){return/msie [6-9]\b/.test(window.navigator.userAgent.toLowerCase())}),p=f(function(){return document.head||document.getElementsByTagName("head")[0]}),h=null,v=0,m=[];t.exports=function(t,e){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");e=e||{},void 0===e.singleton&&(e.singleton=d()),void 0===e.insertAt&&(e.insertAt="bottom");var i=r(t);return n(i,e),function(t){for(var o=[],a=0;a - + ZanUI - @@ -12,6 +11,5 @@ - diff --git a/examples.html b/examples.html deleted file mode 100644 index 715ea4c4a..000000000 --- a/examples.html +++ /dev/null @@ -1,17 +0,0 @@ - - - - - - ZanUI - - - - -
- -
- - - - diff --git a/package.json b/package.json index bf961c80c..8559ded01 100644 --- a/package.json +++ b/package.json @@ -11,21 +11,22 @@ ], "scripts": { "bootstrap": "yarn || npm i --registry=http://registry.npm.qima-inc.com", - "dev": "npm run build:file && webpack-dev-server --inline --history-api-fallback --hot --config build/webpack.config.js", + "dev": "npm run build:file && webpack-dev-server --inline --history-api-fallback --hot --config build/webpack.config.js --content-base ./", "build:file": "node build/bin/build-entry.js", "build:utils": "cross-env BABEL_ENV=utils babel src --out-dir lib --ignore src/index.js", "build:zanui-css": "gulp build --gulpfile packages/zanui-css/gulpfile.js && cp-cli packages/zanui-css/lib lib/zanui-css", "build:components": "webpack --progress --hide-modules --config build/webpack.components.js", "build:zanui": "webpack --progress --hide-modules --config build/webpack.build.js && webpack --progress --hide-modules --config build/webpack.build.min.js", "build:example": "node build/genExamples.js", - "build:docs": "npm run build:example && cross-env NODE_ENV=production webpack --progress --hide-modules --config build/webpack.config.js", + "deploy": "npm run deploy:docs && gh-pages -d docs/dist && rimraf docs/dist", + "deploy:docs": "rimraf docs/dist && npm run build:example && cross-env NODE_ENV=production webpack --progress --hide-modules --config build/webpack.config.js", "dist": "npm run clean && npm run build:file && npm run lint && npm run build:zanui && npm run build:components && npm run build:utils && npm run build:zanui-css", "clean": "rimraf lib && rimraf packages/*/lib", "lint": "eslint src/**/*.js packages/**/*.{js,vue} --quiet", "test": "karma start test/unit/karma.conf.js --single-run; npm run coverage", "test:watch": "karma start test/unit/karma.conf.js", "coverage": "find test/unit/coverage/lcov-report -name 'index.html' | sed -n 1,1p | xargs -I {} open {} ", - "deploy": "sh build/release.sh" + "release": "npm run bootstrap && sh build/release.sh" }, "repository": { "type": "git", @@ -77,6 +78,7 @@ "extract-text-webpack-plugin": "^2.0.0-beta.5", "file-loader": "^0.9.0", "file-save": "^0.2.0", + "gh-pages": "^0.12.0", "gulp": "^3.9.1", "gulp-util": "^3.0.8", "highlight.js": "^9.8.0",