mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
1 line
2.5 KiB
JavaScript
1 line
2.5 KiB
JavaScript
(window.webpackJsonp=window.webpackJsonp||[]).push([[42],{170:function(t,a,n){"use strict";var o=n(85);n.n(o).a},171:function(t,a,n){(t.exports=n(12)(!1)).push([t.i,".demo-tabbar .van-tabbar {\n position: relative;\n}\n.demo-tabbar .van-tabbar-item {\n cursor: pointer;\n}\n",""])},245:function(t,a,n){"use strict";n.r(a);var o={i18n:{"zh-CN":{customIcon:"自定义图标",customColor:"自定义颜色"},"en-US":{customIcon:"Custom icon",customColor:"Custom Color"}},data:function(){return{active:0,active2:0,active3:0,icon:{normal:"https://img.yzcdn.cn/public_files/2017/10/13/c547715be149dd3faa817e4a948b40c4.png",active:"https://img.yzcdn.cn/public_files/2017/10/13/793c77793db8641c4c325b7f25bf130d.png"}}}},i=(n(170),n(7)),c=Object(i.a)(o,function(){var t=this,a=t.$createElement,n=t._self._c||a;return n("demo-section",[n("demo-block",{attrs:{title:t.$t("basicUsage")}},[n("van-tabbar",{model:{value:t.active,callback:function(a){t.active=a},expression:"active"}},[n("van-tabbar-item",{attrs:{icon:"home-o"}},[t._v(t._s(t.$t("tab")))]),n("van-tabbar-item",{attrs:{icon:"search",dot:""}},[t._v("\n "+t._s(t.$t("tab"))+"\n ")]),n("van-tabbar-item",{attrs:{icon:"friends-o",info:"5"}},[t._v("\n "+t._s(t.$t("tab"))+"\n ")]),n("van-tabbar-item",{attrs:{icon:"setting-o",info:"20"}},[t._v("\n "+t._s(t.$t("tab"))+"\n ")])],1)],1),n("demo-block",{attrs:{title:t.$t("customIcon")}},[n("van-tabbar",{model:{value:t.active2,callback:function(a){t.active2=a},expression:"active2"}},[n("van-tabbar-item",{attrs:{info:"3"},scopedSlots:t._u([{key:"icon",fn:function(a){return n("img",{attrs:{src:a.active?t.icon.active:t.icon.normal}})}}])},[n("span",[t._v(t._s(t.$t("custom")))])]),n("van-tabbar-item",{attrs:{icon:"search"}},[t._v(t._s(t.$t("tab")))]),n("van-tabbar-item",{attrs:{icon:"setting-o"}},[t._v(t._s(t.$t("tab")))])],1)],1),n("demo-block",{attrs:{title:t.$t("customColor")}},[n("van-tabbar",{attrs:{"active-color":"#07c160"},model:{value:t.active3,callback:function(a){t.active3=a},expression:"active3"}},[n("van-tabbar-item",{attrs:{icon:"home-o"}},[t._v(t._s(t.$t("tab")))]),n("van-tabbar-item",{attrs:{icon:"search"}},[t._v(t._s(t.$t("tab")))]),n("van-tabbar-item",{attrs:{icon:"friends-o"}},[t._v(t._s(t.$t("tab")))]),n("van-tabbar-item",{attrs:{icon:"setting-o"}},[t._v(t._s(t.$t("tab")))])],1)],1)],1)},[],!1,null,null,null);a.default=c.exports},85:function(t,a,n){var o=n(171);"string"==typeof o&&(o=[[t.i,o,""]]);var i={hmr:!0,transform:void 0,insertInto:void 0};n(13)(o,i);o.locals&&(t.exports=o.locals)}}]); |