UNPKG

nimble-ui-pc

Version:

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

1 lines 4.73 kB
module.exports=function(n){var t={};function e(i){if(t[i])return t[i].exports;var r=t[i]={i:i,l:!1,exports:{}};return n[i].call(r.exports,r,r.exports,e),r.l=!0,r.exports}return e.m=n,e.c=t,e.d=function(n,t,i){e.o(n,t)||Object.defineProperty(n,t,{configurable:!1,enumerable:!0,get:i})},e.n=function(n){var t=n&&n.__esModule?function(){return n.default}:function(){return n};return e.d(t,"a",t),t},e.o=function(n,t){return Object.prototype.hasOwnProperty.call(n,t)},e.p="/",e(e.s="SpSB")}({"+b8q":function(n,t,e){"use strict";var i={extends:e("jeun").a},r=e("VU/8")(i,null,!1,null,null,null);t.a=r.exports},"16/I":function(n,t,e){"use strict";var i=e("ekq3");var r=e("1JEl");t.a=Object(r.a)(function(n){return{model:{prop:"mValue",event:"valueChange"},props:{mValue:(n=n||{}).value||{}},data:function(){var t={myValue:Object(i.a)(n.myValueInit||this.mValue,[this.mValue],this)};return void 0===this.$options.propsData.mValue&&void 0!==t.myValue&&this._valueChange(),t},watch:{mValue:function(t,e){!1!==Object(i.a)(n.mValueChange,[t,e],this)&&(this.myValue=t)},myValue:function(t,e){!1!==Object(i.a)(n.myValueChange,[t,e],this)&&this._valueChange()}},methods:{_valueChange:function(n){void 0===n&&(n=this.myValue),this.$emit("valueChange",n)}}}})},"1JEl":function(n,t,e){"use strict";t.a=function(n){n&&!n.install&&(n.install=function(t,e){t.mixin(Object(i.a)(n,[e]))});return n};var i=e("ekq3")},"2HHg":function(n,t,e){"use strict";t.a=function(n){n&&!n.install&&(n.install=function(t){var e=n.name||"",i=t.component(e);i||t.component(e,n)});return n}},"68qm":function(n,t){},"B/FW":function(n,t){},"F/C+":function(n,t,e){"use strict";var i=e("2HHg");t.a=i.a},SpSB:function(n,t,e){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=e("F/C+"),r={name:"NupLink",extends:e("sAdx").a,props:{config:{type:Object}},computed:{isShowLink:function(){var n=!1,t=this.valueData,e=this.controlConfig.status;return void 0!==e?t instanceof Array?t.find(function(t){return n=i(t)}):n=i(t):n=!0,n;function i(n){return n instanceof Object&&n.select===e||n===e}}}},o={render:function(){var n=this,t=n.$createElement,e=n._self._c||t;return n.isShowLink?e("div",{staticClass:"nups_link",on:{click:function(t){n.extendClick(n.controlConfig)}}},[e("span",{staticClass:"nup_link-style",class:[n.controlConfig.className||""]},[n._v(n._s(n.controlConfig.nameText))])]):n._e()},staticRenderFns:[]};var u=e("VU/8")(r,o,!1,function(n){e("68qm")},null,null).exports;t.default=Object(i.a)(u)},"VU/8":function(n,t){n.exports=function(n,t,e,i,r,o){var u,a=n=n||{},s=typeof n.default;"object"!==s&&"function"!==s||(u=n,a=n.default);var l,c="function"==typeof a?a.options:a;if(t&&(c.render=t.render,c.staticRenderFns=t.staticRenderFns,c._compiled=!0),e&&(c.functional=!0),r&&(c._scopeId=r),o?(l=function(n){(n=n||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(n=__VUE_SSR_CONTEXT__),i&&i.call(this,n),n&&n._registeredComponents&&n._registeredComponents.add(o)},c._ssrRegister=l):i&&(l=i),l){var f=c.functional,d=f?c.render:c.beforeCreate;f?(c._injectStyles=l,c.render=function(n,t){return l.call(t),d(n,t)}):c.beforeCreate=d?[].concat(d,l):[l]}return{esModule:u,exports:a,options:c}}},ekq3:function(n,t,e){"use strict";var i=e("zagf");t.a=i.a},jeun:function(n,t,e){"use strict";e("B/FW");var i=e("VU/8")({},null,!1,null,null,null);t.a=i.exports},sAdx:function(n,t,e){"use strict";var i=e("16/I"),r={extends:e("+b8q").a},o={extends:e("VU/8")(r,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(i.a)({mValueChange:function(){return this.isSyncMvalue},myValueChange:function(n){this.myValueData=n}})],computed:{hasBlur:function(){var n=!1,t=this.controlConfig;if(t){var e=this.formModel,i=e&&e.get(t.controlName);i&&i.isBlur&&(n=i.isBlur)}return n},isRequired:function(){var n=this.controlConfig,t=!1,e=n&&n.valid;return e instanceof Array&&(e=e[0]),e instanceof Object&&(e.required||e.isChecked)&&(t=!0),t},requiredRight:function(){var n=!1,t=this.controlConfig;return t instanceof Object&&t.requiredRight&&(n=!0),n}},methods:{setIsBlur:function(n){var t=this,e=t.controlConfig,i=t.formModel;setTimeout(function(){if(i&&e){var r=i.get(e.controlName);r&&(r.isBlur=!0)}t.isBlur=!0,t.$emit("blur",n)},200)},extendClick:function(n){this.$emit("extendClick",n)}}},u=e("VU/8")(o,null,!1,null,null,null);t.a=u.exports},zagf:function(n,t,e){"use strict";t.a=function(n,t,e){var i=n;n instanceof Function&&(i=n.apply(e,t));return i}}});