You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 lines
5.2 KiB
1 lines
5.2 KiB
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-68ffcc95"],{"0d2b":function(e,t,i){"use strict";var r=i("2a95");function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function n(e,t,i){return(t=function(e){var t=function(e,t){if("object"!=a(e)||!e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var r=i.call(e,t||"default");if("object"!=a(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==a(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}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=new r.a(this.validate),a=n({},this.field,this.valueModel);i.validate(a,(function(e,i){if(e){var r=e.find((function(e){return e.field===t.field}));t.errorMessage=r?r.message:""}else t.errorMessage=""}))}}}}},4850:function(e,t,i){"use strict";i("5898")},5898:function(e,t,i){},"63be":function(e,t,i){"use strict";i.r(t);var r=i("0d2b"),a=i("8ec4"),n={name:"radioBuild",mixins:[r.a,a.a],mounted:function(){this.valueModel=parseFloat(this.valueModel)},components:{useComponent:function(){return Promise.resolve().then(i.bind(null,"05f7"))}},props:{control:{type:Array,default:function(){return[]}},vertical:{type:Boolean,default:!1}},methods:{changeValue:function(e){this.$emit("changeValue",{field:e.field,value:e.value})}}},o=(i("4850"),i("2877")),s=Object(o.a)(n,(function(){var e=this,t=e._self._c;return t("div",[t("FormItem",{staticClass:"input-build",class:e.getClassName(),attrs:{label:e.title}},[t("div",{staticClass:"input-error-wrapper"},[t("RadioGroup",{ref:"radio"+e.field,attrs:{vertical:e.vertical},on:{"on-change":function(t){return e.changeEvent("change",t)}},model:{value:e.valueModel,callback:function(t){e.valueModel=t},expression:"valueModel"}},e._l(e.options,(function(i){return t("Radio",{key:i.value,attrs:{label:i.value}},[e._v(e._s(i.label))])})),1),e.errorMessage?t("div",{staticClass:"error-wrapper"},[e._v(e._s(e.errorMessage))]):e._e()],1),e.info?t("div",{staticClass:"info-wrapper"},[e._v(e._s(e.info))]):e._e()]),e._l(e.control,(function(i){return t("div",{key:i.value},[i.value===e.valueModel?[t("use-component",{attrs:{validate:e.validate,errorsValidate:e.errorsValidate,rules:i.componentsModel},on:{changeValue:e.changeValue}})]:e._e()],2)}))],2)}),[],!1,null,"0a45849a",null);t.default=s.exports}}]); |