UNPKG

nimble-ui-pc

Version:

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

1 lines 4.03 kB
module.exports=function(t){var e={};function n(o){if(e[o])return e[o].exports;var s=e[o]={i:o,l:!1,exports:{}};return t[o].call(s.exports,s,s.exports,n),s.l=!0,s.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="CH4z")}({"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}},"B/FW":function(t,e){},CH4z:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n("F/C+"),s={extends:n("jeun").a,name:"NupPageCard",props:{title:{type:String},topButton:{default:" 新建 "},bottomButton:{default:" 保存 "},showTopButton:{type:Boolean,default:!1},showBottomButton:{type:Boolean,default:!0},showHideArrow:{type:Boolean,default:!0},showPageContent:{type:Boolean,default:!0},keepHidePageContent:{type:Boolean,default:!1}},data:function(){return{isShow:!0}},mounted:function(){this.isShow=this.showPageContent,this.keepHidePageContent&&(this.isShow=!1),this.showHideArrow&&!this.isShow&&this.$refs.cardContent.classList.add("hide")},watch:{showPageContent:function(t){this.isShow=t,this.showHideArrow&&t&&this.$refs.cardContent.classList.remove("hide")}},methods:{topSubmit:function(t){this.$emit("topSubmit",t)},submit:function(t){this.$emit("submit",t)},changeShow:function(t){if(this.$emit("changeShow",t),this.keepHidePageContent)return!1;this.isShow=!this.isShow,this.$refs.cardContent.classList.toggle("hide")}}},i={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"nups_page-card"},[n("div",{staticClass:"nup_card-box"},[n("el-card",{staticClass:"nup_box-card"},[t.title||t.showHideArrow||t.showTopButton||t.$slots.hook_header?n("div",{staticClass:"nup_list-hd clearfix",attrs:{slot:"header"},slot:"header"},[n("span",{staticClass:"nup_header-title"},[t._v(t._s(t.title))]),t._v(" "),t.showHideArrow?n("i",{class:t.isShow?"el-icon-arrow-down":"el-icon-arrow-up",on:{click:t.changeShow}}):t._e(),t._v(" "),n("div",{staticClass:"nup_card-head-cont"},[t._t("hook_header")],2),t._v(" "),t.showTopButton?n("el-button",{staticClass:"nup_right-btn",attrs:{type:"primary",plain:""},on:{click:t.topSubmit}},[t._v("\n "+t._s(t.topButton)+"\n ")]):t._e()],1):t._e(),t._v(" "),n("div",{ref:"cardContent",staticClass:"nup_card-content"},[n("el-row",[n("el-col",{attrs:{span:24}},[t._t("default")],2)],1),t._v(" "),t.showBottomButton?n("el-row",[n("div",{staticClass:"nup_card-foot nup_purple-light"},[n("el-button",{attrs:{type:"primary"},on:{click:t.submit}},[t._v("\n "+t._s(t.bottomButton)+"\n ")])],1)]):t._e()],1)])],1)])},staticRenderFns:[]};var r=n("VU/8")(s,i,!1,function(t){n("lAuG")},null,null).exports;e.default=Object(o.a)(r)},"F/C+":function(t,e,n){"use strict";var o=n("2HHg");e.a=o.a},"VU/8":function(t,e){t.exports=function(t,e,n,o,s,i){var r,a=t=t||{},u=typeof t.default;"object"!==u&&"function"!==u||(r=t,a=t.default);var c,l="function"==typeof a?a.options:a;if(e&&(l.render=e.render,l.staticRenderFns=e.staticRenderFns,l._compiled=!0),n&&(l.functional=!0),s&&(l._scopeId=s),i?(c=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(i)},l._ssrRegister=c):o&&(c=o),c){var d=l.functional,p=d?l.render:l.beforeCreate;d?(l._injectStyles=c,l.render=function(t,e){return c.call(e),p(t,e)}):l.beforeCreate=p?[].concat(p,c):[c]}return{esModule:r,exports:a,options:l}}},jeun:function(t,e,n){"use strict";n("B/FW");var o=n("VU/8")({},null,!1,null,null,null);e.a=o.exports},lAuG:function(t,e){}});