UNPKG

nimble-ui-pc

Version:

基础vue ui库 配置化组件 后台管理系统组件

1 lines 23.8 kB
module.exports=function(t){var e={};function n(o){if(e[o])return e[o].exports;var i=e[o]={i:o,l:!1,exports:{}};return t[o].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,o){n.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:o})},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="/",n(n.s="gmZ7")}({"+b8q":function(t,e,n){"use strict";var o={extends:n("jeun").a},i=n("VU/8")(o,null,!1,null,null,null);e.a=i.exports},"0Zk/":function(t,e,n){"use strict";e.a=function(t,e){return Object(o.a)(t,e).replace(/^[a-z]/,function(t){return t.toUpperCase()})};var o=n("lXuC")},"16/I":function(t,e,n){"use strict";var o=n("ekq3");var i=n("1JEl");e.a=Object(i.a)(function(t){return{model:{prop:"mValue",event:"valueChange"},props:{mValue:(t=t||{}).value||{}},data:function(){var e={myValue:Object(o.a)(t.myValueInit||this.mValue,[this.mValue],this)};return void 0===this.$options.propsData.mValue&&void 0!==e.myValue&&this._valueChange(),e},watch:{mValue:function(e,n){!1!==Object(o.a)(t.mValueChange,[e,n],this)&&(this.myValue=e)},myValue:function(e,n){!1!==Object(o.a)(t.myValueChange,[e,n],this)&&this._valueChange()}},methods:{_valueChange:function(t){void 0===t&&(t=this.myValue),this.$emit("valueChange",t)}}}})},"1JEl":function(t,e,n){"use strict";e.a=function(t){t&&!t.install&&(t.install=function(e,n){e.mixin(Object(o.a)(t,[n]))});return t};var o=n("ekq3")},"1p6n":function(t,e){},"2HHg":function(t,e,n){"use strict";e.a=function(t){t&&!t.install&&(t.install=function(e){var n=t.name||"",o=e.component(n);o||e.component(n,t)});return t}},"5fCB":function(t,e,n){"use strict";var o=n("E5mE"),i=n("eY/N");e.a=function t(){for(var e=!0,n=void 0,r=arguments.length,a=Array(r),l=0;l<r;l++)a[l]=arguments[l];if(a instanceof Array&&(n=a.slice(0,1)[0]),"boolean"==typeof n&&(e=n,a.splice(0,1),e||(n=a.splice(0,1)[0])),a&&a.length<1)return"boolean"==typeof n?a[1]:n;e&&(n=null);for(var c=0;c<a.length;c++){var s=a[c];if(s instanceof Object)if(e){for(var u in n&&n instanceof Object||(n=s instanceof Array?[]:{}),s)if(s.hasOwnProperty(u)){var f=s[u];if(m(f)){var d=m(n[u])&&n[u]||(f instanceof Array?[]:{});n[u]=t(d,f)}else void 0!==f?n[u]=f:void 0!==n[u]&&(n[u]=f)}}else n=n&&n instanceof Object?Object.assign(n,s):s}return n;function m(t){return t&&(Object(o.a)(t,"Array")||Object(i.a)(t))||!1}}},"68qm":function(t,e){},"83kI":function(t,e,n){"use strict";var o=n("yIPE"),i=n("Yx2F"),r=n("S65G"),a=n("SpSB"),l={extends:o.a,components:{UploadBtn:i.default,ColorPicker:r.default,NupLink:a.default}},c={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.controlConfig?n("div",{staticClass:"nups_extend-items"},["button"===t.controlConfig.type?[n("el-button",{staticClass:"nups_extend-btn",attrs:{type:t.controlConfig.styleType||"",size:t.controlConfig.size},on:{click:function(e){t.extendClick(t.controlConfig)}}},[t._v("\n "+t._s(t.controlConfig.nameText)+"\n ")])]:"fileButton"===t.controlConfig.type?[n("upload-btn",{attrs:{"form-model":t.formModel,config:t.config,"control-config":t.controlConfig},on:{extendClick:t.extendClick},model:{value:t.myValue,callback:function(e){t.myValue=e},expression:"myValue"}})]:"img"===t.controlConfig.type?[n("div",{staticClass:"nup_img-container",on:{click:function(e){t.extendClick(t.controlConfig)}}},[t.controlConfig.src||t.formModel&&t.formModel.get(t.config.controlName)&&t.formModel.get(t.config.controlName).value?[n("img",{attrs:{src:t.controlConfig.src||t.formModel.get(t.config.controlName).value,width:"100%",height:"100%"}})]:t._e()],2)]:"color"===t.controlConfig.type?[n("color-picker",{attrs:{"control-config":t.controlConfig,"form-model":t.formModel,config:t.config},on:{extendClick:t.extendClick},model:{value:t.myValue,callback:function(e){t.myValue=e},expression:"myValue"}})]:"link"===t.controlConfig.type?[n("nup-link",{attrs:{"control-config":t.controlConfig,"form-model":t.formModel,config:t.config,valueData:t.valueData},on:{extendClick:t.extendClick}})]:[n("span",{domProps:{innerHTML:t._s(t.controlConfig.nameText)},on:{click:function(e){t.extendClick(t.controlConfig)}}})]],2):t._e()},staticRenderFns:[]};var s=n("VU/8")(l,c,!1,function(t){n("DQfN")},null,null).exports,u=n("sAdx"),f={extends:u.a,props:{config:{type:Object}},components:{ExtendItem:s},methods:{myItemFliter:function(t){var e=t;if(this.itemFliter instanceof Function){var n=this.itemFliter(t);void 0!==n&&(e=n)}return e}}},d={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.controlConfig&&t.controlConfig.length?n("div",{staticClass:"nups_control-extend"},t._l(t.controlConfig,function(e,o){return n("extend-item",{key:o,staticClass:"nup_control-leftPadding",class:e.className||"",attrs:{"form-model":t.formModel,itemFliter:t.itemFliter,"control-config":t.myItemFliter(e),config:t.config,valueData:t.valueData},on:{extendClick:t.extendClick},model:{value:t.myValue,callback:function(e){t.myValue=e},expression:"myValue"}})})):t._e()},staticRenderFns:[]};var m=n("VU/8")(f,d,!1,function(t){n("qkpR")},null,null).exports,h={extends:u.a,components:{FormExtendFilter:m},computed:{extProps:function(){return{formModel:this.formModel,itemFliter:this.itemFliter,config:this.controlConfig,valueData:this.valueData}}},methods:{updataExtendClick:function(t){this.extendClick({controlConfig:this.controlConfig,extendConfig:t})}}},p={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return!t.bypassedWrap&&t.controlConfig?n("div",{staticClass:"nup_control-wraps"},[t.controlConfig.showNameText?n("div",{staticClass:"nup_control-usbNameText nup_control-leftPadding",class:[!t.requiredRight&&t.isRequired?"nup_is-required":""]},[t._v("\n "+t._s(t.controlConfig.nameText&&t.controlConfig.nameText+(t.controlConfig.isNoColon?"":":")||"")+"\n ")]):t._e(),t._v(" "),n("form-extend-filter",t._b({attrs:{controlConfig:t.controlConfig.prefixList},on:{extendClick:t.updataExtendClick},model:{value:t.myValue,callback:function(e){t.myValue=e},expression:"myValue"}},"form-extend-filter",t.extProps,!1)),t._v(" "),n("div",{staticClass:"nup_control-cont",class:[!t.controlConfig.showNameText&&"nup_control-leftPadding",t.controlConfig.className||""]},[t._t("default")],2),t._v(" "),n("form-extend-filter",t._b({attrs:{controlConfig:t.controlConfig.descList},on:{extendClick:t.updataExtendClick},model:{value:t.myValue,callback:function(e){t.myValue=e},expression:"myValue"}},"form-extend-filter",t.extProps,!1)),t._v(" "),t.controlConfig.showNameText&&t.requiredRight?n("div",{staticClass:"nup_ext-fix",class:[t.requiredRight&&t.isRequired?"nup_is-required-ext":""]}):t._e()],1):t.bypassedWrap?n("div",{staticClass:"form-control-container"},[t._t("default")],2):t._e()},staticRenderFns:[]};var g=n("VU/8")(h,p,!1,function(t){n("Cuff")},null,null);e.a=g.exports},"B/FW":function(t,e){},BzdL:function(t,e){},Cuff:function(t,e){},DQfN:function(t,e){},E5mE:function(t,e,n){"use strict";e.a=function(t,e){var n=!1;try{n=Object.prototype.toString.call(t)==="[object "+e+"]"}catch(t){}return n}},"F/C+":function(t,e,n){"use strict";var o=n("2HHg");e.a=o.a},HV4D:function(t,e){},IrUm:function(t,e,n){"use strict";e.a=function t(e,n,o){var i=!1;var r=e instanceof Object;var a=n instanceof Object;if(e===n)return!0;r&&r===a&&(r=Object.prototype.toString.call(e),a=Object.prototype.toString.call(n));if(!e&&n||e&&!n||r&&!a||!r&&a)return i;if(!r||!a)return e===n&&(i=!0),i;if(function(t,e){var n=!1;try{n=JSON.stringify(t)===JSON.stringify(e)}catch(t){n=!1}return n}(e,n))i=!0;else if(o&&o.length)i=s(o,e,n);else{var l=Object.keys(e),c=Object.keys(n);l.length===c.length&&(i=s(l,e,n))}return i;function s(e,n,o){for(var i=!0,r=0;r<e.length;r++){var a=e[r];if("__ob__"!==a&&!(i=t(n[a],o[a])))break}return i}}},"Q/c6":function(t,e,n){"use strict";var o=n("sAdx");var i=n("IrUm");function r(t,e){var n=-1;if(!t||!e||e.length<=0)return n;for(var o=0;o<e.length;o++)if(Object(i.a)(t,e[o])){n=o;break}return n}var a=n("5fCB");var l=n("zagf"),c={};function s(t){var e=((t||"")+"").match(/\.([a-z0-9]+)[^.]*$/i);return((e&&e[1]||"")+"").toLowerCase()}function u(t){return new Promise(function(e,n){if(!t)return e(null),null;var o=s(t&&t.name||"");if(!o||r(o,["jpg","jpeg","png","gif","bmp","jpe"])<0)return e(null),null;(function(t){return new Promise(function(e,n){var o=new FileReader;o.onload=function(){e(this.result)},o.onerror=function(t){n(t)},o.readAsDataURL(t)})})(t).then(function(t){var o,i;t?(o=t,new Promise(function(t,e){if(o){var n="";n="string"==typeof o?o:"";var r=new Image,a=Object(l.a)(i,[r,o])||!1;if(n&&c[n])return r=null,void t(c[n]);r.onload=function(){r.onload=null,r.onerror=null;var e={naturalHeight:r.naturalHeight||r.height,naturalWidth:r.naturalWidth||r.width,src:r.src,image:r};n&&(c[n]=e),t(e),r=null},r.onerror=function(t){e(t),r=null},a||(r.src=o)}else e(new Error("src不能为:"+o))})).then(e,n):e(null)},n)})}var f=n("0Zk/"),d={typeErrorMsg:"请上传正确文件格式",sizeErrorMsg:"文件大小过大",maxWidthErrorMsg:"图片宽度过大",maxHeightErrorMsg:"图片高度过大",widthErrorMsg:"图片宽度不符合",heightErrorMsg:"图片高度不符合",minWidthErrorMsg:"图片宽度不够",minHeightErrorMsg:"图片高度不够",scaleErrorMsg:"图片长宽比例不符合"},m={Image:["png","jpg","jpeg","gif"],Video:["mp4","ogg","flv","wmv","rmvb"],Ae:["zip"]};var h=function(t,e){var n=Object(a.a)(!0,d||{},e||{});return new Promise(function(e,a){var l=s(t&&t.name)||"",c=null,d=n.extension||"",h=void 0,p=(n.fileType||"")+"";!d||d instanceof Array||(h=[d]),!h&&d instanceof Array&&(h=d),!p||h&&h.length||(p=Object(f.a)(p),h=m[p]||void 0),h&&r(l,h)<0&&(c=n.typeErrorMsg),!c&&i("size",Math.max(parseInt((n.size||0)+"",10),t.size/1024),function(){c=n.sizeErrorMsg}),c||void 0===n.maxWidth&&void 0===n.maxHeight&&void 0===n.width&&void 0===n.height&&void 0===n.minWidth&&void 0===n.minHeight&&void 0===n.scale?e(c):u(t).then(function(t){if(t){var r=t.naturalWidth,a=t.naturalHeight;!c&&i("maxWidth",Math.max(r,o(n.maxWidth)),function(){c=n.maxWidthErrorMsg}),!c&&i("maxHeight",Math.max(a,o(n.maxHeight)),function(){c=n.maxHeightErrorMsg}),!c&&i("width",r,function(){c=n.widthErrorMsg}),!c&&i("height",a,function(){c=n.heightErrorMsg}),!c&&i("minWidth",Math.min(r,o(n.minWidth)),function(){c=n.minWidthErrorMsg}),!c&&i("minHeight",Math.min(a,o(n.minHeight)),function(){c=n.minHeightErrorMsg}),!c&&i("scale",r/a,function(){c=n.scaleErrorMsg})}e(c=c||null)})});function o(t){return parseInt((t||0)+"",10)||0}function i(t,e,i){o(n[t])>0&&n[t]+""!=e+""&&Object(l.a)(i)}},p=n("WGR+"),g={Image:["png","jpg","jpeg","gif"],Video:["mp4","ogg","flv","wmv","rmvb"],Ae:["zip"]},v={extends:o.a,data:function(){var t=this.controlConfig.validFile||{};return{fileType:Object(p.a)((t.type||"")+""),extension:null}},computed:{propsData:function(){var t=this.limit,e=this.myValue,n=this.controlConfig||{},o=n.showFileList||!1,i={showFileList:o};return o&&(i=Object.assign({class:[o&&(e&&e.length)>=t&&"nup_isDelAdd"],limit:t,fileList:e,showFileList:o},n.propsData||{})),i},limit:function(){var t=this.controlConfig||{},e=t.limit||1;return(t.showFileList||!1||e>1)&&(this.myValue&&this.myValue instanceof Array||(this.myValue?this.myValue=[{url:this.myValue}]:this.myValue=[])),e},accept:function(){var t=this.fileType,e=g[t]&&t;return"Ae"===e?"application/zip":(e||"*")+"/*"}},methods:{handleRemove:function(t,e){this.myValue=e},onBeforeUpload:function(t){var e=this,n=setTimeout(function(){e.$sLoading.loadingc({nameText:"文件读取中,请稍候。。。"},{key:"file_loadingc"})},200),o=t&&t.name.split(".").pop();this.extension=o;var i=Math.abs(e.controlConfig&&e.controlConfig.orientation||0),r=function(t,e){var n=t;if(t)switch(e+""){case"90":n={maxWidth:t.maxHeight,maxHeight:t.maxWidth,width:t.height,height:t.width,minWidth:t.minHeight,minHeight:t.minWidth,scale:t.scale&&1/t.scale||void 0}}return n}(e.controlConfig&&e.controlConfig.validFile,i);return new Promise(function(o,i){void 0!==n&&clearTimeout(n),r?h(t,r).then(function(t){e.$sLoading.close("file_loadingc"),t?(e.$sCommon.errorMsg(t,{type:"error"}),i(t)):o(!0)}):(e.$sLoading.close("file_loadingc"),o(!0))})},httpRequest:function(t){var e=this,n=e.fileType||"Image";return n="Ae"===n?"Image":n,new Promise(function(o,i){e.$sCommon.upload(t,{extension:e.extension,type:n,config:e.controlConfig}).then(function(t){var n=t&&t.url;n&&(e.myValue instanceof Array?e.myValue.push({url:n}):e.myValue=n,o(t))})})}}},C=n("VU/8")(v,null,!1,null,null,null);e.a=C.exports},S65G:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n("F/C+"),i={name:"NupColorPicker",extends:n("yIPE").a},r={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.controlConfig?n("div",{staticClass:"nups_color-picker"},[n("el-color-picker",{staticClass:"nup_color",attrs:{"popper-class":t.controlConfig.popperClass,readonly:t.controlConfig.readonly,disabled:t.controlConfig.disabled},on:{change:function(e){t.extendClick(t.controlConfig)},"active-change":function(e){t.setParentIsBlur()}},model:{value:t.myValue,callback:function(e){t.myValue=e},expression:"myValue"}})],1):t._e()},staticRenderFns:[]};var a=n("VU/8")(i,r,!1,function(t){n("1p6n")},null,null).exports;e.default=Object(o.a)(a)},SpSB:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n("F/C+"),i={name:"NupLink",extends:n("sAdx").a,props:{config:{type:Object}},computed:{isShowLink:function(){var t=!1,e=this.valueData,n=this.controlConfig.status;return void 0!==n?e instanceof Array?e.find(function(e){return t=o(e)}):t=o(e):t=!0,t;function o(t){return t instanceof Object&&t.select===n||t===n}}}},r={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.isShowLink?n("div",{staticClass:"nups_link",on:{click:function(e){t.extendClick(t.controlConfig)}}},[n("span",{staticClass:"nup_link-style",class:[t.controlConfig.className||""]},[t._v(t._s(t.controlConfig.nameText))])]):t._e()},staticRenderFns:[]};var a=n("VU/8")(i,r,!1,function(t){n("68qm")},null,null).exports;e.default=Object(o.a)(a)},"VU/8":function(t,e){t.exports=function(t,e,n,o,i,r){var a,l=t=t||{},c=typeof t.default;"object"!==c&&"function"!==c||(a=t,l=t.default);var s,u="function"==typeof l?l.options:l;if(e&&(u.render=e.render,u.staticRenderFns=e.staticRenderFns,u._compiled=!0),n&&(u.functional=!0),i&&(u._scopeId=i),r?(s=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),o&&o.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(r)},u._ssrRegister=s):o&&(s=o),s){var f=u.functional,d=f?u.render:u.beforeCreate;f?(u._injectStyles=s,u.render=function(t,e){return s.call(e),d(t,e)}):u.beforeCreate=d?[].concat(d,s):[s]}return{esModule:a,exports:l,options:u}}},"WGR+":function(t,e,n){"use strict";var o=n("0Zk/");e.a=o.a},Yx2F:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n("F/C+"),i={extends:n("Q/c6").a},r={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("el-upload",{staticClass:"nups_upload",attrs:{action:"",accept:t.accept,readonly:t.controlConfig.readonly,disabled:t.controlConfig.disabled,"show-file-list":!1,"http-request":t.httpRequest,"before-upload":t.onBeforeUpload}},[n("el-button",{attrs:{readonly:t.controlConfig.readonly,disabled:t.controlConfig.disabled,size:"small",type:"primary"},on:{click:function(e){t.extendClick(t.controlConfig)}}},[t._v(t._s(t.controlConfig.nameText))])],1)},staticRenderFns:[]},a=n("VU/8")(i,r,!1,null,null,null).exports;e.default=Object(o.a)(a)},c3qM:function(t,e,n){"use strict";n("BzdL");var o=n("VU/8")({methods:{_onClick:function(t){this.$emit("click",t)},_onTap:function(t){this.$emit("tap",t)},_onClickItem:function(t){this.$emit("clickItem",t)}}},null,!1,null,null,null);e.a=o.exports},"eY/N":function(t,e,n){"use strict";e.a=function(t){if(!Object(o.a)(t,"Object"))return!1;var e=Object.getPrototypeOf(t);if(!e)return!0;var n=i.call(e,"constructor")&&e.constructor;return"function"==typeof n&&i.toString.call(n)===i.toString.call(Object)};var o=n("E5mE"),i=Object.prototype.hasOwnProperty},ekq3:function(t,e,n){"use strict";var o=n("zagf");e.a=o.a},gmZ7:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n("F/C+"),i=n("ekq3"),r=n("IrUm").a,a={extends:n("c3qM").a,props:{disabled:{type:Boolean,default:!1},value:{default:""}},data:function(){return{}},watch:{},methods:{_onChange:function(t){this.$emit("change",t)}}},l={extends:n("VU/8")(a,null,!1,null,null,null).exports,props:{noValue:{default:null},diffKey:{type:Array},icon:{type:String,default:""},iconClass:{type:String,default:"nu_icon"},label:{type:String,default:""}},computed:{isPrefix:function(){var t=this.$slots.hook_prefix;return t&&t.length>0||!1},isExtfix:function(){var t=this.$slots.hook_suffix;return t&&t.length>0||!1},isDefalut:function(){var t=this.$slots.default;return t&&t.length>0||!1}},methods:{_diffValue:function(t,e){return r(t,e,this.diffKey)}}};var c=n("VU/8")(l,null,!1,function(t){n("kEgg")},null,null).exports,s=n("16/I"),u=n("iNmd"),f={extends:c,name:"NuCheckbox",props:{iconActive:{type:String,default:""},value:{default:!0}},data:function(){return{isArray:this.mValue instanceof Array}},mixins:[Object(s.a)({mValueChange:function(t){return this.myValue=t,this._setMyCheck(),!1},myValueChange:function(){return!1}}),Object(u.a)("checked",{myValueChange:function(){return this._setMyValue(),!1}})],created:function(){this.myChecked?this._setMyValue():this._setMyCheck()},methods:{_setMyCheck:function(){var t=this.value,e=this.mValue;this.myChecked=this.isArray?this._hasItem(e,t)>-1:this._diffValue(e,t)},_setMyValue:function(){var t=this;function e(e){"boolean"!=typeof t.value||e||(e=!1),t.myValue=e,t._valueChange()}t.isArray?t._setMyValueList(e):t._setMyValueObj(e)},_setMyValueObj:function(t){var e=this.myChecked,n=this.value,o=this._diffValue(this.myValue,n);e&&!o?Object(i.a)(t,[n]):!e&&o&&Object(i.a)(t,[this.noValue])},_setMyValueList:function(t){var e=this.myChecked,n=this.myValue||[],o=this.value,r=this._hasItem(n,o);e&&r<0?(n.push(o),Object(i.a)(t,[n])):!e&&r>-1&&(n.splice(r,1),Object(i.a)(t,[n]))},_hasItem:function(t,e){var n=this,o=-1;return t instanceof Array&&t.every(function(t,i){return!n._diffValue(e,t)||(o=i,!1)}),o},_diffValue:function(t,e){return"boolean"!=typeof this.value&&null!==this.value&&void 0!==this.value||(e=this.value||!1),r(t,e)}}},d={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("label",{staticClass:"nus_checkbox nus_checktmp",class:[t.disabled&&"nu_disabled"],on:{click:function(e){e.stopPropagation(),t._onClick(e)},tap:function(e){e.stopPropagation(),t._onTap(e)}}},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.myChecked,expression:"myChecked"}],attrs:{disabled:t.disabled,type:"checkbox"},domProps:{value:t.value,checked:Array.isArray(t.myChecked)?t._i(t.myChecked,t.value)>-1:t.myChecked},on:{input:t._onChange,click:function(t){t.stopPropagation()},tap:function(t){t.stopPropagation()},change:function(e){var n=t.myChecked,o=e.target,i=!!o.checked;if(Array.isArray(n)){var r=t.value,a=t._i(n,r);o.checked?a<0&&(t.myChecked=n.concat([r])):a>-1&&(t.myChecked=n.slice(0,a).concat(n.slice(a+1)))}else t.myChecked=i}}}),t._v(" "),n("div",{staticClass:"nu_check"},[t.label||t.isPrefix?n("span",{staticClass:"nu_lable nu_lable-pre"},[t._t("hook_prefix"),t._v("\n "+t._s(t.label)+"\n ")],2):t._e(),t._v(" "),t._t("hook_icon",[n("span",{staticClass:"nu_check-icon",class:t.iconClass,attrs:{"data-icon":t.icon,"data-icon-active":t.iconActive}})]),t._v(" "),t.isDefalut||t.isPrefix?n("span",{staticClass:"nu_lable"},[t._t("default"),t._v(" "),t._t("hook_suffix")],2):t._e()],2)])},staticRenderFns:[]};var m=n("VU/8")(f,d,!1,function(t){n("v+Dm")},null,null).exports,h=n("2HHg"),p=Object(h.a)(m),g=n("83kI"),v={name:"NupCheckBox",extends:n("sAdx").a,components:{FormControlWrap:g.a,NuCheckbox:p},data:function(){return{}}},C={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.controlConfig?n("form-control-wrap",{staticClass:"nups_checkbox",attrs:{bypassedWrap:t.bypassedWrap,"form-model":t.formModel,"control-config":t.controlConfig,valueData:t.myValueData},on:{extendClick:t.extendClick}},[n("div",{staticClass:"nup_checkbox-group"},t._l(t.controlConfig.list,function(e){return n("nu-checkbox",{key:e.nameText,staticClass:"nup_checkbox",attrs:{icon:"",iconActive:"",iconClass:"nup_icon",readonly:e.readonly,disabled:t.controlConfig.disabled||e.disabled,value:e.value,noValue:e.noValue},model:{value:t.myValue,callback:function(e){t.myValue=e},expression:"myValue"}},[t._v("\n "+t._s(e.nameText)+"\n ")])}))]):t._e()},staticRenderFns:[]};var y=n("VU/8")(v,C,!1,function(t){n("HV4D")},null,null).exports;e.default=Object(o.a)(y)},iNmd:function(t,e,n){"use strict";var o=n("ekq3"),i=n("WGR+");var r=n("1JEl");e.a=Object(r.a)(function(t,e){var n;e=e||{};var r={};r[t=(t||"")+""]=e.value||{};var a="my"+Object(i.a)(t);return{props:r,data:function(){var n={};return n[a]=Object(o.a)(e.myValueInit||this[t],[this[t]],this),void 0===this.$options.propsData[t]&&void 0!==n[a]&&this.$emit("update:"+t,n[a]),n},watch:(n={},n[t]=function(t,n){!1!==Object(o.a)(e.mValueChange,[t,n],this)&&(this[a]=t)},n[a]=function(n,i){!1!==Object(o.a)(e.myValueChange,[n,i],this)&&this.$emit("update:"+t,n)},n)}})},jeun:function(t,e,n){"use strict";n("B/FW");var o=n("VU/8")({},null,!1,null,null,null);e.a=o.exports},kEgg:function(t,e){},lXuC:function(t,e,n){"use strict";e.a=function(t,e){var n="("+(e||"_|-")+")";return t=(t=(t=(t+"").replace(new RegExp(n+"?(?:(?:[A-Z]{2,}[A-Z]"+n+"*$)|(?:[A-Z]{2,}(?=[A-Z])))","g"),function(t){return(((e||"")+"").split("|")[0]||"-")+(t=t.replace(new RegExp(n),"")).toLowerCase()})).replace(new RegExp("(?:^"+n+"?([a-z]))|(?:"+n+"$)","gi"),function(t,e,n){return(n||"").toLowerCase()})).replace(new RegExp(n+"([a-z])","gi"),function(t,e,n){return(n||"").toUpperCase()})}},qkpR:function(t,e){},sAdx:function(t,e,n){"use strict";var o=n("16/I"),i={extends:n("+b8q").a},r={extends:n("VU/8")(i,null,!1,null,null,null).exports,name:"NupControlExtend",props:{itemFliter:{type:Function},formModel:{type:Object},controlConfig:{type:[Object,Array]},bypassedWrap:{default:!1},valueData:{}},data:function(){return{isBlur:!1,isSyncMvalue:!0,myValueData:null}},mixins:[Object(o.a)({mValueChange:function(){return this.isSyncMvalue},myValueChange:function(t){this.myValueData=t}})],computed:{hasBlur:function(){var t=!1,e=this.controlConfig;if(e){var n=this.formModel,o=n&&n.get(e.controlName);o&&o.isBlur&&(t=o.isBlur)}return t},isRequired:function(){var t=this.controlConfig,e=!1,n=t&&t.valid;return n instanceof Array&&(n=n[0]),n instanceof Object&&(n.required||n.isChecked)&&(e=!0),e},requiredRight:function(){var t=!1,e=this.controlConfig;return e instanceof Object&&e.requiredRight&&(t=!0),t}},methods:{setIsBlur:function(t){var e=this,n=e.controlConfig,o=e.formModel;setTimeout(function(){if(o&&n){var i=o.get(n.controlName);i&&(i.isBlur=!0)}e.isBlur=!0,e.$emit("blur",t)},200)},extendClick:function(t){this.$emit("extendClick",t)}}},a=n("VU/8")(r,null,!1,null,null,null);e.a=a.exports},"v+Dm":function(t,e){},yIPE:function(t,e,n){"use strict";var o={extends:n("sAdx").a,props:{config:{type:Object}},methods:{setParentIsBlur:function(){var t=this.config,e=this.formModel;if(e&&t){var n=e.get(t.controlName);n&&(n.isBlur=!0)}}}},i=n("VU/8")(o,null,!1,null,null,null);e.a=i.exports},zagf:function(t,e,n){"use strict";e.a=function(t,e,n){var o=t;t instanceof Function&&(o=t.apply(n,e));return o}}});