mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
1 line
1.0 KiB
JavaScript
1 line
1.0 KiB
JavaScript
(window.webpackJsonp=window.webpackJsonp||[]).push([[174],{199:function(e,t,n){"use strict";n.r(t);var o={i18n:{"zh-CN":{info:"密码为 6 位数字",removeMask:"明文展示"},"en-US":{info:"Some tips",removeMask:"Remove Mask"}},data:function(){return{value1:"123",value2:"123",keyboard:"value1"}},methods:{onInput:function(e){var t=this.keyboard;this[t]=(this[t]+e).slice(0,6)},onDelete:function(){var e=this.keyboard;this[e]=this[e].slice(0,this[e].length-1)}}},a=n(7),s=Object(a.a)(o,function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("demo-section",[n("demo-block",{attrs:{title:e.$t("basicUsage")}},[n("van-password-input",{attrs:{value:e.value1,info:e.$t("info")},on:{focus:function(t){e.keyboard="value1"}}}),n("van-number-keyboard",{attrs:{show:!!e.keyboard},on:{input:e.onInput,delete:e.onDelete,blur:function(t){e.keyboard=""}}})],1),n("demo-block",{attrs:{title:e.$t("removeMask")}},[n("van-password-input",{attrs:{value:e.value2,mask:!1},on:{focus:function(t){e.keyboard="value2"}}})],1)],1)},[],!1,null,null,null);t.default=s.exports}}]); |