mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
1 line
2.3 KiB
JavaScript
1 line
2.3 KiB
JavaScript
(window.webpackJsonp=window.webpackJsonp||[]).push([[31],{148:function(e,a,t){"use strict";var l=t(74);t.n(l).a},149:function(e,a,t){(e.exports=t(12)(!1)).push([e.i,".demo-rate {\n padding-bottom: 20px;\n background-color: #fff;\n}\n.demo-rate .van-rate {\n margin-left: 15px;\n}\n",""])},193:function(e,a,t){"use strict";t.r(a);var l={i18n:{"zh-CN":{halfStar:"半星",disabled:"禁用状态",customIcon:"自定义图标",customStyle:"自定义样式",customCount:"自定义数量",readonly:"只读状态"},"en-US":{halfStar:"Half Star",disabled:"Disabled",customIcon:"Custom Icon",customStyle:"Custom Style",customCount:"Custom Count",readonly:"Readonly"}},data:function(){return{value1:3,value2:3,value3:3,value4:2.5,value5:4,value6:3}}},o=(t(148),t(7)),n=Object(o.a)(l,function(){var e=this,a=e.$createElement,t=e._self._c||a;return t("demo-section",[t("demo-block",{attrs:{title:e.$t("basicUsage")}},[t("van-rate",{model:{value:e.value1,callback:function(a){e.value1=a},expression:"value1"}})],1),t("demo-block",{attrs:{title:e.$t("customIcon")}},[t("van-rate",{attrs:{icon:"like","void-icon":"like-o"},model:{value:e.value2,callback:function(a){e.value2=a},expression:"value2"}})],1),t("demo-block",{attrs:{title:e.$t("customStyle")}},[t("van-rate",{attrs:{size:25,color:"#f44","void-icon":"star","void-color":"#eee"},model:{value:e.value3,callback:function(a){e.value3=a},expression:"value3"}})],1),e.$attrs.weapp?e._e():t("demo-block",{attrs:{title:e.$t("halfStar")}},[t("van-rate",{attrs:{size:25,"allow-half":"","void-icon":"star","void-color":"#eee"},model:{value:e.value4,callback:function(a){e.value4=a},expression:"value4"}})],1),t("demo-block",{attrs:{title:e.$t("customCount")}},[t("van-rate",{attrs:{count:6},model:{value:e.value5,callback:function(a){e.value5=a},expression:"value5"}})],1),t("demo-block",{attrs:{title:e.$t("disabled")}},[t("van-rate",{attrs:{disabled:""},model:{value:e.value6,callback:function(a){e.value6=a},expression:"value6"}})],1),t("demo-block",{attrs:{title:e.$t("readonly")}},[t("van-rate",{attrs:{readonly:""},model:{value:e.value6,callback:function(a){e.value6=a},expression:"value6"}})],1)],1)},[],!1,null,null,null);a.default=n.exports},74:function(e,a,t){var l=t(149);"string"==typeof l&&(l=[[e.i,l,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};t(13)(l,o);l.locals&&(e.exports=l.locals)}}]); |