UNPKG

fast-element-ui

Version:

Vue项目快速开发组件框架,使用element-ui为基础库二次封装构建。

1 lines 9.14 kB
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.FastElementUI=e():t.FastElementUI=e()}(window,(function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},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=202)}({101:function(t,e,n){var r=n(99);t.exports=r("navigator","userAgent")||""},110:function(t,e,n){n(111);var r=n(45);t.exports=r.setTimeout},111:function(t,e,n){var r=n(46),o=n(15),i=n(101),u=[].slice,c=function(t){return function(e,n){var r=arguments.length>2,o=r?u.call(arguments,2):void 0;return t(r?function(){("function"==typeof e?e:Function(e)).apply(this,o)}:e,n)}};r({global:!0,bind:!0,forced:/MSIE .\./.test(i)},{setTimeout:c(o.setTimeout),setInterval:c(o.setInterval)})},15:function(t,e,n){(function(e){var n=function(t){return t&&t.Math==Math&&t};t.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof e&&e)||Function("return this")()}).call(this,n(96))},202:function(t,e,n){"use strict";n.r(e);var r=n(4),o=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("el-container",{staticClass:"fast-border-container",style:{border:t.drawBorder}},[n("el-header",{style:{padding:t.padding},attrs:{height:t.northHeight}},[t._t("north")],2),t._v(" "),n("el-container",{style:{height:t.middleHeight}},[n("el-aside",{style:{padding:t.padding},attrs:{width:t.westWidth}},[t._t("west")],2),t._v(" "),n("el-main",{style:{padding:t.padding}},[t._t("center")],2),t._v(" "),n("el-aside",{style:{padding:t.padding},attrs:{width:t.eastWidth}},[t._t("east")],2)],1),t._v(" "),n("el-footer",{style:{padding:t.padding},attrs:{height:t.southHeight}},[t._t("south")],2),t._v(" "),t._t("default")],2)};o._withStripped=!0;var i=n(92),u=n.n(i),c={name:"FastBorderLayout",props:{border:{type:Boolean,default:!1},borderStyle:{type:String,default:"1px solid #81ADF7"},padding:{type:String,default:"0px"},northHeight:{type:String,default:"auto"},westWidth:{type:String,default:"0px"},eastWidth:{type:String,default:"0px"},southHeight:{type:String,default:"auto"}},data:function(){return this.desc="border布局,将容器分为五个区域:east、south、west、north、center",{middleHeight:"100%"}},created:function(){var t=this;u()((function(){var e=0,n=0;t.$slots.south&&t.$slots.south[0].elm&&(e=t.$slots.south[0].elm.offsetHeight),t.$slots.north&&t.$slots.north[0].elm&&(n=t.$slots.north[0].elm.offsetHeight),0!==e&&0!==n&&(t.middleHeight="".concat(t.$el.offsetHeight-e-n,"px"))}),0)},computed:{drawBorder:function(){return this.border?this.borderStyle:null}}},a=n(88),f=Object(a.a)(c,o,[],!1,null,null,null);f.options.__file="packages/border-layout/border.vue";var s=f.exports;s.install=function(t,e){if(Object(r.a)(s.name+"----install----"),e)for(var n=0;n<e.length;n++)t.use(e[n]);t.component(s.name,s)};e.default=s},21:function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},24:function(t,e,n){var r=n(21);t.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},4:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r=function(t){0}},42:function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},44:function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},45:function(t,e){t.exports={}},46:function(t,e,n){"use strict";var r=n(15),o=n(97).f,i=n(98),u=n(45),c=n(89),a=n(65),f=n(44),s=function(t){var e=function(e,n,r){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,n)}return new t(e,n,r)}return t.apply(this,arguments)};return e.prototype=t.prototype,e};t.exports=function(t,e){var n,l,p,d,h,y,v,g,b=t.target,m=t.global,x=t.stat,_=t.proto,w=m?r:x?r[b]:(r[b]||{}).prototype,j=m?u:u[b]||(u[b]={}),S=j.prototype;for(p in e)n=!i(m?p:b+(x?".":"#")+p,t.forced)&&w&&f(w,p),h=j[p],n&&(y=t.noTargetGet?(g=o(w,p))&&g.value:w[p]),d=n&&y?y:e[p],n&&typeof h==typeof d||(v=t.bind&&n?c(d,r):t.wrap&&n?s(d):_&&"function"==typeof d?c(Function.call,d):d,(t.sham||d&&d.sham||h&&h.sham)&&a(v,"sham",!0),j[p]=v,_&&(f(u,l=b+"Prototype")||a(u,l,{}),u[l][p]=d,t.real&&S&&!S[p]&&a(S,p,d)))}},65:function(t,e,n){var r=n(24),o=n(69),i=n(68);t.exports=r?function(t,e,n){return o.f(t,e,i(1,n))}:function(t,e,n){return t[e]=n,t}},67:function(t,e,n){var r=n(42);t.exports=function(t){if(!r(t))throw TypeError(String(t)+" is not an object");return t}},68:function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},69:function(t,e,n){var r=n(24),o=n(77),i=n(67),u=n(72),c=Object.defineProperty;e.f=r?c:function(t,e,n){if(i(t),e=u(e,!0),i(n),o)try{return c(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},71:function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},72:function(t,e,n){var r=n(42);t.exports=function(t,e){if(!r(t))return t;var n,o;if(e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;if("function"==typeof(n=t.valueOf)&&!r(o=n.call(t)))return o;if(!e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},75:function(t,e){t.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},76:function(t,e,n){var r=n(91),o=n(75);t.exports=function(t){return r(o(t))}},77:function(t,e,n){var r=n(24),o=n(21),i=n(93);t.exports=!r&&!o((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},78:function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t}},88:function(t,e,n){"use strict";function r(t,e,n,r,o,i,u,c){var a,f="function"==typeof t?t.options:t;if(e&&(f.render=e,f.staticRenderFns=n,f._compiled=!0),r&&(f.functional=!0),i&&(f._scopeId="data-v-"+i),u?(a=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(u)},f._ssrRegister=a):o&&(a=c?function(){o.call(this,(f.functional?this.parent:this).$root.$options.shadowRoot)}:o),a)if(f.functional){f._injectStyles=a;var s=f.render;f.render=function(t,e){return a.call(e),s(t,e)}}else{var l=f.beforeCreate;f.beforeCreate=l?[].concat(l,a):[a]}return{exports:t,options:f}}n.d(e,"a",(function(){return r}))},89:function(t,e,n){var r=n(78);t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 0:return function(){return t.call(e)};case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,o){return t.call(e,n,r,o)}}return function(){return t.apply(e,arguments)}}},91:function(t,e,n){var r=n(21),o=n(71),i="".split;t.exports=r((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==o(t)?i.call(t,""):Object(t)}:Object},92:function(t,e,n){t.exports=n(110)},93:function(t,e,n){var r=n(15),o=n(42),i=r.document,u=o(i)&&o(i.createElement);t.exports=function(t){return u?i.createElement(t):{}}},95:function(t,e,n){"use strict";var r={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,i=o&&!r.call({1:2},1);e.f=i?function(t){var e=o(this,t);return!!e&&e.enumerable}:r},96:function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==typeof window&&(n=window)}t.exports=n},97:function(t,e,n){var r=n(24),o=n(95),i=n(68),u=n(76),c=n(72),a=n(44),f=n(77),s=Object.getOwnPropertyDescriptor;e.f=r?s:function(t,e){if(t=u(t),e=c(e,!0),f)try{return s(t,e)}catch(t){}if(a(t,e))return i(!o.f.call(t,e),t[e])}},98:function(t,e,n){var r=n(21),o=/#|\.prototype\./,i=function(t,e){var n=c[u(t)];return n==f||n!=a&&("function"==typeof e?r(e):!!e)},u=i.normalize=function(t){return String(t).replace(o,".").toLowerCase()},c=i.data={},a=i.NATIVE="N",f=i.POLYFILL="P";t.exports=i},99:function(t,e,n){var r=n(45),o=n(15),i=function(t){return"function"==typeof t?t:void 0};t.exports=function(t,e){return arguments.length<2?i(r[t])||i(o[t]):r[t]&&r[t][e]||o[t]&&o[t][e]}}}).default}));