12345678910 |
- (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["uview-ui/components/u-form/u-form"],{"0465":function(t,e,n){"use strict";n.r(e);var r=n("505f"),u=n.n(r);for(var f in r)"default"!==f&&function(t){n.d(e,t,(function(){return r[t]}))}(f);e["default"]=u.a},"3b0c":function(t,e,n){"use strict";n.r(e);var r=n("a97f"),u=n("0465");for(var f in u)"default"!==f&&function(t){n.d(e,t,(function(){return u[t]}))}(f);n("fa0d");var i,o=n("f0c5"),a=Object(o["a"])(u["default"],r["b"],r["c"],!1,null,"1cc99a02",null,!1,r["a"],i);e["default"]=a.exports},"505f":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r={name:"u-form",props:{model:{type:Object,default:function(){return{}}},errorType:{type:Array,default:function(){return["message","toast"]}},borderBottom:{type:Boolean,default:!0},labelPosition:{type:String,default:"left"},labelWidth:{type:[String,Number],default:90},labelAlign:{type:String,default:"left"},labelStyle:{type:Object,default:function(){return{}}}},provide:function(){return{uForm:this}},data:function(){return{rules:{}}},created:function(){this.fields=[]},methods:{setRules:function(t){this.rules=t},resetFields:function(){this.fields.map((function(t){t.resetField()}))},validate:function(t){var e=this;return new Promise((function(n){var r=!0,u=0,f=[];e.fields.map((function(i){i.validation("",(function(i){i&&(r=!1,f.push(i)),++u===e.fields.length&&(n(r),-1===e.errorType.indexOf("none")&&e.errorType.indexOf("toast")>=0&&f.length&&e.$u.toast(f[0]),"function"==typeof t&&t(r))}))}))}))}}};e.default=r},"8f20":function(t,e,n){},a97f:function(t,e,n){"use strict";var r;n.d(e,"b",(function(){return u})),n.d(e,"c",(function(){return f})),n.d(e,"a",(function(){return r}));var u=function(){var t=this,e=t.$createElement;t._self._c},f=[]},fa0d:function(t,e,n){"use strict";var r=n("8f20"),u=n.n(r);u.a}}]);
- ;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
- 'uview-ui/components/u-form/u-form-create-component',
- {
- 'uview-ui/components/u-form/u-form-create-component':(function(module, exports, __webpack_require__){
- __webpack_require__('543d')['createComponent'](__webpack_require__("3b0c"))
- })
- },
- [['uview-ui/components/u-form/u-form-create-component']]
- ]);
|