chunk-2c944cb9.fba0433d.js 4.4 KB

1
  1. (window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-2c944cb9"],{"0d2b":function(e,t,i){"use strict";var n=i("2a95");i("8237"),t.a={props:{options:{type:Array,default:function(){return[]}},value:{type:String|Number|Array,default:""},placeholder:{type:String,default:""},title:{type:String,default:""},type:{type:String,default:"text"},suffix:{type:String,default:""},prefix:{type:String,default:""},styleModel:{type:String,default:""},className:{type:String,default:""},field:{type:String,default:""},timerType:{type:String,default:"timerange"},timerFormat:{type:String,default:"HH:mm:ss"},info:{type:String,default:""},on:{type:Object,default:function(){return{}}},validate:{type:Object,default:function(){return{}}},errorsValidate:{type:Array,default:function(){return[]}}},data:function(){return{valueModel:this.value,errorMessage:"",exampleImage:{site_logo:"/statics/system/adminSet01.png",site_logo_square:"/statics/system/adminSet02.png",login_logo:"/statics/system/adminSet03.png",admin_login_slide:"/statics/system/adminSet04.png",start_login_logo:"/statics/system/adminSet05.png",wap_login_logo:"/statics/system/mobileSet01.png",wechat_share_img:"/statics/system/mobileSet02.png",pc_logo:"/statics/system/pcSet01.png",pay_weixin_client_cert:{text:'更多详情请查看:<br><a href="https://kf.qq.com/faq/161222NneAJf161222U7fARv.html" target="_blank" rel="noopener noreferrer">https://kf.qq.com/faq/161222NneAJf161222U7fARv.html</a>',image:"/statics/system/wxSet01.png"},pay_weixin_client_key:{text:'更多详情请查看:<br><a href="https://kf.qq.com/faq/161222NneAJf161222U7fARv.html" target="_blank" rel="noopener noreferrer">https://kf.qq.com/faq/161222NneAJf161222U7fARv.html</a>',image:"/statics/system/wxSet01.png"},terminal_number:"/statics/system/yilianyunPrinter.png",config_export_siid:"/statics/system/kuadi100Dump.png",product_poster_title:"/statics/system/productSharePoster.png",product_video_status:"/statics/system/productVideo.png"},exampleSize:{site_logo:364,site_logo_square:364,login_logo:364,admin_login_slide:364,start_login_logo:364,wap_login_logo:256,wechat_share_img:256,pc_logo:364,terminal_number:364,config_export_siid:364,product_poster_title:256}}},watch:{errorsValidate:{handler:function(e){var t=this;if(e){var i=e.find((function(e){return e.field===t.field}));this.errorMessage=i?i.message:""}else this.errorMessage=""},deep:!0}},methods:{getClassName:function(){var e=["input-build-"+this.field];return this.errorMessage&&e.push("ivu-form-item-error"),(this.validate[this.field]?this.validate[this.field].filter((function(e){return!0===e.required})):[]).length&&e.push("ivu-form-item-required"),e},changeEvent:function(e,t){"change"===e&&this.$emit("changeValue",{field:this.field,value:this.valueModel}),this.on[e]&&this.on[e](t),this.validator(e)},validator:function(e){var t=this;if((this.validate[this.field]?this.validate[this.field].filter((function(t){return t.trigger===e})):[]).length){var i,a,r,s=new n.a(this.validate),l=(i={},a=this.field,r=this.valueModel,a in i?Object.defineProperty(i,a,{value:r,enumerable:!0,configurable:!0,writable:!0}):i[a]=r,i);s.validate(l,(function(e,i){if(e){var n=e.find((function(e){return e.field===t.field}));t.errorMessage=n?n.message:""}else t.errorMessage=""}))}}}}},6373:function(e,t,i){"use strict";var n=i("b63c");i.n(n).a},b63c:function(e,t,i){},ca75:function(e,t,i){"use strict";i.r(t);var n={name:"inputNumberBuild",mixins:[i("0d2b").a],props:{max:{type:Number,default:1/0},min:{type:Number,default:-1/0}}},a=(i("6373"),i("2877")),r=Object(a.a)(n,(function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[i("FormItem",{staticClass:"input-build",class:e.getClassName(),attrs:{label:e.title}},[i("div",{staticClass:"input-error-wrapper"},[i("InputNumber",{style:e.styleModel,attrs:{name:e.field,min:null===e.min?-1/0:e.min,max:null===e.max?1/0:e.max,placeholder:e.placeholder},on:{"on-blur":function(t){return e.changeEvent("blur",t)},"on-keyup":function(t){return e.changeEvent("keyup",t)},"on-focus":function(t){return e.changeEvent("focus",t)},"on-click":function(t){return e.changeEvent("click",t)},"on-change":function(t){return e.changeEvent("change",t)}},model:{value:e.valueModel,callback:function(t){e.valueModel=t},expression:"valueModel"}}),e.errorMessage?i("div",{staticClass:"error-wrapper"},[e._v(e._s(e.errorMessage))]):e._e()],1),e.info?i("div",{staticClass:"info-wrapper"},[e._v(e._s(e.info))]):e._e()])],1)}),[],!1,null,"07b78bbe",null);t.default=r.exports}}]);