mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
1 line
2.9 KiB
JavaScript
1 line
2.9 KiB
JavaScript
(window.webpackJsonp=window.webpackJsonp||[]).push([[33],{152:function(t,e,l){"use strict";var n=l(76);l.n(n).a},153:function(t,e,l){(t.exports=l(12)(!1)).push([t.i,".demo-slider {\n -webkit-user-select: none;\n user-select: none;\n}\n.demo-slider .van-slider {\n margin: 0 15px 30px;\n}\n.demo-slider .custom-button {\n width: 26px;\n color: #fff;\n font-size: 10px;\n line-height: 18px;\n text-align: center;\n border-radius: 100px;\n background-color: #f44;\n}\n.demo-slider .van-doc-demo-block__title {\n padding-top: 25px;\n}\n",""])},190:function(t,e,l){"use strict";l.r(e);var n={i18n:{"zh-CN":{title1:"基本用法",title2:"指定选择范围",title3:"禁用",title4:"指定步长",customStyle:"自定义样式",customButton:"自定义按钮",text:"当前值:",vertical:"垂直方向"},"en-US":{title1:"Basic Usage",title2:"Range",title3:"Disabled",title4:"Step size",customStyle:"Custom Style",customButton:"Custom Button",text:"Current value: ",vertical:"Vertical"}},data:function(){return{value1:50,value2:50,value3:50,value4:50,value5:50,value6:50,value7:50}},methods:{onChange:function(t){this.$toast(this.$t("text")+t)}}},a=(l(152),l(7)),o=Object(a.a)(n,function(){var t=this,e=t.$createElement,l=t._self._c||e;return l("demo-section",[l("demo-block",{attrs:{title:t.$t("title1")}},[l("van-slider",{on:{change:t.onChange},model:{value:t.value1,callback:function(e){t.value1=e},expression:"value1"}})],1),l("demo-block",{attrs:{title:t.$t("title2")}},[l("van-slider",{attrs:{min:10,max:90},on:{change:t.onChange},model:{value:t.value2,callback:function(e){t.value2=e},expression:"value2"}})],1),l("demo-block",{attrs:{title:t.$t("title3")}},[l("van-slider",{attrs:{disabled:""},model:{value:t.value3,callback:function(e){t.value3=e},expression:"value3"}})],1),l("demo-block",{attrs:{title:t.$t("title4")}},[l("van-slider",{attrs:{step:10},on:{change:t.onChange},model:{value:t.value4,callback:function(e){t.value4=e},expression:"value4"}})],1),l("demo-block",{attrs:{title:t.$t("customStyle")}},[l("van-slider",{attrs:{"bar-height":"4px","active-color":"#f44"},on:{change:t.onChange},model:{value:t.value5,callback:function(e){t.value5=e},expression:"value5"}})],1),l("demo-block",{attrs:{title:t.$t("customButton")}},[l("van-slider",{attrs:{"active-color":"#f44"},model:{value:t.value6,callback:function(e){t.value6=e},expression:"value6"}},[l("div",{staticClass:"custom-button",attrs:{slot:"button"},slot:"button"},[t._v("\n "+t._s(t.value6)+"\n ")])])],1),t.$attrs.weapp?t._e():l("demo-block",{attrs:{title:t.$t("vertical")}},[l("div",{style:{height:"120px",paddingLeft:"30px"}},[l("van-slider",{attrs:{vertical:""},on:{change:t.onChange},model:{value:t.value7,callback:function(e){t.value7=e},expression:"value7"}})],1)])],1)},[],!1,null,null,null);e.default=o.exports},76:function(t,e,l){var n=l(153);"string"==typeof n&&(n=[[t.i,n,""]]);var a={hmr:!0,transform:void 0,insertInto:void 0};l(13)(n,a);n.locals&&(t.exports=n.locals)}}]); |