nimble-ui-pc
Version:
基础vue ui库 配置化组件 后台管理系统组件
1 lines • 5.57 kB
JavaScript
module.exports=function(t){var e={};function n(i){if(e[i])return e[i].exports;var u=e[i]={i:i,l:!1,exports:{}};return t[i].call(u.exports,u,u.exports,n),u.l=!0,u.exports}return n.m=t,n.c=e,n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:i})},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="h75y")}({"+b8q":function(t,e,n){"use strict";var i={extends:n("jeun").a},u=n("VU/8")(i,null,!1,null,null,null);e.a=u.exports},"16/I":function(t,e,n){"use strict";var i=n("ekq3");var u=n("1JEl");e.a=Object(u.a)(function(t){return{model:{prop:"mValue",event:"valueChange"},props:{mValue:(t=t||{}).value||{}},data:function(){var e={myValue:Object(i.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(i.a)(t.mValueChange,[e,n],this)&&(this.myValue=e)},myValue:function(e,n){!1!==Object(i.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(i.a)(t,[n]))});return t};var i=n("ekq3")},"2HHg":function(t,e,n){"use strict";e.a=function(t){t&&!t.install&&(t.install=function(e){var n=t.name||"",i=e.component(n);i||e.component(n,t)});return t}},"B/FW":function(t,e){},"F/C+":function(t,e,n){"use strict";var i=n("2HHg");e.a=i.a},"VU/8":function(t,e){t.exports=function(t,e,n,i,u,l){var r,o=t=t||{},a=typeof t.default;"object"!==a&&"function"!==a||(r=t,o=t.default);var s,c="function"==typeof o?o.options:o;if(e&&(c.render=e.render,c.staticRenderFns=e.staticRenderFns,c._compiled=!0),n&&(c.functional=!0),u&&(c._scopeId=u),l?(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__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(l)},c._ssrRegister=s):i&&(s=i),s){var f=c.functional,d=f?c.render:c.beforeCreate;f?(c._injectStyles=s,c.render=function(t,e){return s.call(e),d(t,e)}):c.beforeCreate=d?[].concat(d,s):[s]}return{esModule:r,exports:o,options:c}}},ekq3:function(t,e,n){"use strict";var i=n("zagf");e.a=i.a},fWbh:function(t,e){},h75y:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n("F/C+"),u={name:"NupEditSelectInputControl",extends:n("sAdx").a,props:{isEditable:{type:Boolean,default:!1}},data:function(){return{editable:this.isEditable,multiple:!1,timer:null}},watch:{isEditable:function(t){t&&(this.editable=t)}},methods:{stoptimer:function(t){t&&null!==this.timer&&(clearTimeout(this.timer),this.timer=null)},toggleStatus:function(t){var e=this,n=e.editable?200:0,i=e.controlConfig||{};e.timer=setTimeout(function(){null!==e.timer&&e.myValue&&(e.editable=!e.editable,e.editable?(setTimeout(function(){var t=e.$refs||{};t.inputRef&&t.inputRef.focus()},0),"select"===i.type&&e.$emit("chooseOption")):e.$emit("textBlur",t))},n)}}},l={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"edit-select-input-container"},[t.editable?[t.controlConfig&&"select"===t.controlConfig.type?[n("el-select",{ref:"inputRef",staticClass:"select-wrapper",attrs:{multiple:t.multiple||t.controlConfig.multiple},on:{"visible-change":t.stoptimer,blur:t.toggleStatus},model:{value:t.myValue,callback:function(e){t.myValue=e},expression:"myValue"}},t._l(t.controlConfig.list,function(t){return n("el-option",{key:t.value,attrs:{label:t.nameText,value:t.value}})}))]:[n("el-input",{ref:"inputRef",staticClass:"input-wrapper",attrs:{size:"medium"},on:{blur:t.toggleStatus},model:{value:t.myValue,callback:function(e){t.myValue=e},expression:"myValue"}})]]:[n("div",{on:{click:t.toggleStatus}},[t._v(t._s(t.myValue))])]],2)},staticRenderFns:[]};var r=n("VU/8")(u,l,!1,function(t){n("fWbh")},null,null).exports;e.default=Object(i.a)(r)},jeun:function(t,e,n){"use strict";n("B/FW");var i=n("VU/8")({},null,!1,null,null,null);e.a=i.exports},sAdx:function(t,e,n){"use strict";var i=n("16/I"),u={extends:n("+b8q").a},l={extends:n("VU/8")(u,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(t){this.myValueData=t}})],computed:{hasBlur:function(){var t=!1,e=this.controlConfig;if(e){var n=this.formModel,i=n&&n.get(e.controlName);i&&i.isBlur&&(t=i.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,i=e.formModel;setTimeout(function(){if(i&&n){var u=i.get(n.controlName);u&&(u.isBlur=!0)}e.isBlur=!0,e.$emit("blur",t)},200)},extendClick:function(t){this.$emit("extendClick",t)}}},r=n("VU/8")(l,null,!1,null,null,null);e.a=r.exports},zagf:function(t,e,n){"use strict";e.a=function(t,e,n){var i=t;t instanceof Function&&(i=t.apply(n,e));return i}}});