vant/v1/async_45.9ee6f923.js
2024-04-20 08:49:23 +00:00

1 line
1.6 KiB
JavaScript

(window.webpackJsonp=window.webpackJsonp||[]).push([[45],{176:function(t,e,n){"use strict";var o=n(88);n.n(o).a},177:function(t,e,n){(t.exports=n(12)(!1)).push([t.i,".demo-uploader-container {\n padding: 10px 20px;\n font-size: 20px;\n}\n",""])},216:function(t,e,n){"use strict";n.r(e);var o={i18n:{"zh-CN":{name:"标识名称",title2:"设置 input 属性"},"en-US":{name:"Name",title2:"Set input attrs"}},methods:{logContent:function(t){console.log(t)},beforeRead:function(t){return function(e){console.log(t,e)}},toastName:function(t,e){this.$toast(e.name)}}},a=(n(176),n(7)),i=Object(a.a)(o,function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("demo-section",[n("demo-block",{attrs:{title:t.$t("basicUsage")}},[n("div",{staticClass:"demo-uploader-container"},[n("van-uploader",{attrs:{"max-size":102400,"before-read":t.beforeRead(1)},on:{oversize:function(e){return t.logContent("oversize")}}},[n("van-icon",{attrs:{name:"photograph"}})],1)],1)]),n("demo-block",{attrs:{title:t.$t("name")}},[n("div",{staticClass:"demo-uploader-container"},[n("van-uploader",{attrs:{name:"uploader","after-read":t.toastName}},[n("van-icon",{attrs:{name:"photograph"}})],1)],1)]),n("demo-block",{attrs:{title:t.$t("title2")}},[n("div",{staticClass:"demo-uploader-container"},[n("van-uploader",{attrs:{accept:"image/gif, image/jpeg",multiple:"","max-size":36e3},on:{oversize:t.logContent}},[n("van-icon",{attrs:{name:"photograph"}})],1)],1)])],1)},[],!1,null,null,null);e.default=i.exports},88:function(t,e,n){var o=n(177);"string"==typeof o&&(o=[[t.i,o,""]]);var a={hmr:!0,transform:void 0,insertInto:void 0};n(13)(o,a);o.locals&&(t.exports=o.locals)}}]);