@preszhou/ivue-ui
Version:
some vue components based on iview from projects
2 lines • 5.74 kB
JavaScript
(function(e,n){"object"===typeof exports&&"object"===typeof module?module.exports=n():"function"===typeof define&&define.amd?define([],n):"object"===typeof exports?exports["iview-ui"]=n():e["iview-ui"]=n()})("undefined"!==typeof self?self:this,function(){return function(e){var n={};function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}return t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:r})},t.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,n){if(1&n&&(e=t(e)),8&n)return e;if(4&n&&"object"===typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(t.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var o in e)t.d(r,o,function(n){return e[n]}.bind(null,o));return r},t.n=function(e){var n=e&&e.__esModule?function(){return e["default"]}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},t.p="",t(t.s="fae3")}({"230e":function(e,n,t){var r=t("d3f4"),o=t("7726").document,i=r(o)&&r(o.createElement);e.exports=function(e){return i?o.createElement(e):{}}},"6a99":function(e,n,t){var r=t("d3f4");e.exports=function(e,n){if(!r(e))return e;var t,o;if(n&&"function"==typeof(t=e.toString)&&!r(o=t.call(e)))return o;if("function"==typeof(t=e.valueOf)&&!r(o=t.call(e)))return o;if(!n&&"function"==typeof(t=e.toString)&&!r(o=t.call(e)))return o;throw TypeError("Can't convert object to primitive value")}},7726:function(e,n){var t=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=t)},"79e5":function(e,n){e.exports=function(e){try{return!!e()}catch(n){return!0}}},"7f7f":function(e,n,t){var r=t("86cc").f,o=Function.prototype,i=/^\s*function ([^ (]*)/,u="name";u in o||t("9e1e")&&r(o,u,{configurable:!0,get:function(){try{return(""+this).match(i)[1]}catch(e){return""}}})},"86cc":function(e,n,t){var r=t("cb7c"),o=t("c69a"),i=t("6a99"),u=Object.defineProperty;n.f=t("9e1e")?Object.defineProperty:function(e,n,t){if(r(e),n=i(n,!0),r(t),o)try{return u(e,n,t)}catch(c){}if("get"in t||"set"in t)throw TypeError("Accessors not supported!");return"value"in t&&(e[n]=t.value),e}},"9e1e":function(e,n,t){e.exports=!t("79e5")(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},c69a:function(e,n,t){e.exports=!t("9e1e")&&!t("79e5")(function(){return 7!=Object.defineProperty(t("230e")("div"),"a",{get:function(){return 7}}).a})},cb7c:function(e,n,t){var r=t("d3f4");e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},d3f4:function(e,n){e.exports=function(e){return"object"===typeof e?null!==e:"function"===typeof e}},fae3:function(e,n,t){"use strict";var r;(t.r(n),"undefined"!==typeof window)&&((r=window.document.currentScript)&&(r=r.src.match(/(.+\/)[^\/]+\.js(\?.*)?$/))&&(t.p=r[1]));t("7f7f");var o=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{staticClass:"calendar-components-page"},[t("div",{staticClass:"toggle-date-wrap"},[t("Button",[e._v("今天")]),t("i",{staticClass:"iconfont icon-prev arrow-pre middle",on:{click:e.handlePreMonth}}),t("span",{staticClass:"selected-date middle"},[e._v("\n "+e._s(e.year)+"年"+e._s(e.curMonth)+"月\n ")]),t("i",{staticClass:"iconfont icon-next middle",on:{click:e.handleNextMonth}})],1),t("div",{staticClass:"calendar-wrap"},[t("ul",{staticClass:"week-num-wrap"},e._l(e.weeks,function(n,r){return t("li",{key:r,staticClass:"week-num-list",class:{"week-num-list-first":0===r}},[e._v("\n "+e._s(n)+"\n ")])}),0),t("div",{staticClass:"days-num-wrap"},e._l(e.monthData,function(n,r){return t("div",{key:r,staticClass:"days-num"},e._l(n,function(n,r){return t("div",{key:r,staticClass:"days-ls",on:{click:function(t){return e.handleClick(n)}}},[t("div",[e._v(e._s(n.value))])])}),0)}),0)]),e._t("legend")],2)},i=[],u={name:"Calendar"},c=u;function a(e,n,t,r,o,i,u,c){var a,f="function"===typeof e?e.options:e;if(n&&(f.render=n,f.staticRenderFns=t,f._compiled=!0),r&&(f.functional=!0),i&&(f._scopeId="data-v-"+i),u?(a=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),o&&o.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(u)},f._ssrRegister=a):o&&(a=c?function(){o.call(this,this.$root.$options.shadowRoot)}:o),a)if(f.functional){f._injectStyles=a;var s=f.render;f.render=function(e,n){return a.call(n),s(e,n)}}else{var l=f.beforeCreate;f.beforeCreate=l?[].concat(l,a):[a]}return{exports:e,options:f}}var f=a(c,o,i,!1,null,null,null),s=f.exports;s.install=function(e){return e.component(s.name,s)},"undefined"!==typeof window&&window.Vue&&window.Vue.use(s);var l=s,d=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",[e._v("\n 这是一个侧边栏组件,正在更新中...\n")])},p=[],v={name:"SideBar"},y=v,_=a(y,d,p,!1,null,null,null),w=_.exports;w.install=function(e){return e.component(w.name,w)},"undefined"!==typeof window&&window.Vue&&window.Vue.use(w);var m=w,h=[l,m],b=function(e){arguments.length>1&&void 0!==arguments[1]&&arguments[1];h.map(function(n){e.component(n.name,n)})};"undefined"!==typeof window&&window.Vue&&b(window.Vue),t.d(n,"install",function(){return b}),t.d(n,"Calendar",function(){return l}),t.d(n,"SideBar",function(){return m})}})});
//# sourceMappingURL=iview-ui.umd.min.js.map