vmui
Version:
A mobile components Library with Vue2.js.
2 lines • 10.5 kB
JavaScript
/*! vmui v0.0.53 by Zhangling (c) 2017 */
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.vmui=t():e.vmui=t()}(this,function(){return function(e){function t(l){if(i[l])return i[l].exports;var r=i[l]={exports:{},id:l,loaded:!1};return e[l].call(r.exports,r,r.exports,t),r.loaded=!0,r.exports}var i={};return t.m=e,t.c=i,t.p="/dist/",t(0)}({0:function(e,t,i){"use strict";function l(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.CellGroup=t.CellItem=void 0;var r=i(117),n=l(r),o=i(116),c=l(o);t.CellItem=n.default,t.CellGroup=c.default},1:function(e,t){e.exports=function(e,t,i,l){var r,n=e=e||{},o=typeof e.default;"object"!==o&&"function"!==o||(r=e,n=e.default);var c="function"==typeof n?n.options:n;if(t&&(c.render=t.render,c.staticRenderFns=t.staticRenderFns),i&&(c._scopeId=i),l){var s=c.computed||(c.computed={});Object.keys(l).forEach(function(e){var t=l[e];s[e]=function(){return t}})}return{esModule:r,exports:n,options:c}}},2:function(e,t){e.exports=function(){var e=[];return e.toString=function(){for(var e=[],t=0;t<this.length;t++){var i=this[t];i[2]?e.push("@media "+i[2]+"{"+i[1]+"}"):e.push(i[1])}return e.join("")},e.i=function(t,i){"string"==typeof t&&(t=[[null,t,""]]);for(var l={},r=0;r<this.length;r++){var n=this[r][0];"number"==typeof n&&(l[n]=!0)}for(r=0;r<t.length;r++){var o=t[r];"number"==typeof o[0]&&l[o[0]]||(i&&!o[2]?o[2]=i:i&&(o[2]="("+o[2]+") and ("+i+")"),e.push(o))}},e}},3:function(e,t,i){function l(e){for(var t=0;t<e.length;t++){var i=e[t],l=f[i.id];if(l){l.refs++;for(var r=0;r<l.parts.length;r++)l.parts[r](i.parts[r]);for(;r<i.parts.length;r++)l.parts.push(n(i.parts[r]));l.parts.length>i.parts.length&&(l.parts.length=i.parts.length)}else{for(var o=[],r=0;r<i.parts.length;r++)o.push(n(i.parts[r]));f[i.id]={id:i.id,refs:1,parts:o}}}}function r(){var e=document.createElement("style");return e.type="text/css",m.appendChild(e),e}function n(e){var t,i,l=document.querySelector('style[data-vue-ssr-id~="'+e.id+'"]');if(l){if(u)return v;l.parentNode.removeChild(l)}if(h){var n=p++;l=d||(d=r()),t=o.bind(null,l,n,!1),i=o.bind(null,l,n,!0)}else l=r(),t=c.bind(null,l),i=function(){l.parentNode.removeChild(l)};return t(e),function(l){if(l){if(l.css===e.css&&l.media===e.media&&l.sourceMap===e.sourceMap)return;t(e=l)}else i()}}function o(e,t,i,l){var r=i?"":l.css;if(e.styleSheet)e.styleSheet.cssText=b(t,r);else{var n=document.createTextNode(r),o=e.childNodes;o[t]&&e.removeChild(o[t]),o.length?e.insertBefore(n,o[t]):e.appendChild(n)}}function c(e,t){var i=t.css,l=t.media,r=t.sourceMap;if(l&&e.setAttribute("media",l),r&&(i+="\n/*# sourceURL="+r.sources[0]+" */",i+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(r))))+" */"),e.styleSheet)e.styleSheet.cssText=i;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(i))}}var s="undefined"!=typeof document,a=i(4),f={},m=s&&(document.head||document.getElementsByTagName("head")[0]),d=null,p=0,u=!1,v=function(){},h="undefined"!=typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());e.exports=function(e,t,i){u=i;var r=a(e,t);return l(r),function(t){for(var i=[],n=0;n<r.length;n++){var o=r[n],c=f[o.id];c.refs--,i.push(c)}t?(r=a(e,t),l(r)):r=[];for(var n=0;n<i.length;n++){var c=i[n];if(0===c.refs){for(var s=0;s<c.parts.length;s++)c.parts[s]();delete f[c.id]}}}};var b=function(){var e=[];return function(t,i){return e[t]=i,e.filter(Boolean).join("\n")}}()},4:function(e,t){e.exports=function(e,t){for(var i=[],l={},r=0;r<t.length;r++){var n=t[r],o=n[0],c=n[1],s=n[2],a=n[3],f={id:e+":"+r,css:c,media:s,sourceMap:a};l[o]?l[o].parts.push(f):i.push(l[o]={id:o,parts:[f]})}return i}},28:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={name:"vm-cell-group",props:{title:String}}},29:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={name:"vm-cell-item",props:{type:{type:String,validator:function(e){return["link","a","label","div","checkbox","radio"].indexOf(e)>-1},default:"div"},arrow:{type:Boolean,default:!1},href:{type:[String,Object]}},computed:{checkLeft:function(){return!!this.$slots.left||!!this.$slots.icon},classes:function(){return this.arrow?"vm-cell-arrow":""}}}},79:function(e,t,i){t=e.exports=i(2)(),t.push([e.id,'.vm-cell{background-color:#fff;position:relative;z-index:5;margin-bottom:.875rem}.vm-cell:after{content:"";position:absolute;z-index:0;bottom:0;left:0;width:100%;height:1px;border-bottom:1px solid #b2b2b2;-webkit-transform:scaleY(.5);transform:scaleY(.5);-webkit-transform-origin:0 0;transform-origin:0 0}.vm-cell a.vm-cell-item,.vm-cell label.vm-cell-item{background-color:#fff}.vm-cell a.vm-cell-item:active,.vm-cell label.vm-cell-item:active{background-color:#f5f5f5}.vm-cell-item{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;position:relative;padding-left:.6rem;overflow:hidden}.vm-cell-item:not(:last-child):after{margin-left:.6rem;content:"";position:absolute;z-index:0;bottom:0;left:0;width:100%;height:1px;border-bottom:1px solid #d9d9d9;-webkit-transform:scaleY(.5);transform:scaleY(.5);-webkit-transform-origin:0 0;transform-origin:0 0}.vm-cell-left{color:#333;font-size:.75rem;white-space:nowrap;-ms-flex-align:center}.vm-cell-left,.vm-cell-right{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center}.vm-cell-right{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;width:100%;min-height:2.5rem;color:#525252;text-align:right;font-size:.65rem;padding-right:.6rem;-ms-flex-align:center;-webkit-box-pack:end;-webkit-justify-content:flex-end;-ms-flex-pack:end;justify-content:flex-end}.vm-cell-right input[type=date],.vm-cell-right input[type=datetime-local],.vm-cell-right input[type=time]{line-height:2.5rem}.vm-cell-right input[type=checkbox]:not(.vm-switch),.vm-cell-right input[type=radio]{position:absolute;left:-9999em}.vm-cell-right input[type=checkbox]:not(.vm-switch)+.vm-cell-checkbox-icon:after,.vm-cell-right input[type=checkbox]:not(.vm-switch)+.vm-cell-radio-icon:after,.vm-cell-right input[type=radio]+.vm-cell-checkbox-icon:after,.vm-cell-right input[type=radio]+.vm-cell-radio-icon:after{font-family:VMUI-INLAY;font-size:1.1rem}.vm-cell-right input[type=checkbox]:not(.vm-switch)+.vm-cell-radio-icon:after,.vm-cell-right input[type=radio]+.vm-cell-radio-icon:after{content:"\\E600";color:#4cd864;display:none}.vm-cell-right input[type=checkbox]:not(.vm-switch)+.vm-cell-checkbox-icon:after,.vm-cell-right input[type=radio]+.vm-cell-checkbox-icon:after{content:"\\E604";color:#d9d9d9}.vm-cell-right input[type=checkbox]:not(.vm-switch):checked+.vm-cell-radio-icon:after,.vm-cell-right input[type=radio]:checked+.vm-cell-radio-icon:after{display:inline-block}.vm-cell-right input[type=checkbox]:not(.vm-switch):checked+.vm-cell-checkbox-icon:after,.vm-cell-right input[type=radio]:checked+.vm-cell-checkbox-icon:after{color:#4cd864;content:"\\E601"}.vm-cell-right:active{background:none}.vm-cell-right input[type=date],.vm-cell-right input[type=datetime-local],.vm-cell-right input[type=number],.vm-cell-right input[type=password],.vm-cell-right input[type=text],.vm-cell-right input[type=time]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;height:2.5rem;border:none;font-size:.75rem;background:transparent;color:#555;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:start;-webkit-justify-content:flex-start;-ms-flex-pack:start;justify-content:flex-start;text-align:left}.vm-cell-right select{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;height:2.5rem;border:none;display:block;color:#a9a9a9;font-size:.75rem;margin-left:-.2rem}.vm-cell-icon{display:block;margin-right:.25rem}.vm-cell-icon img{height:1rem}.vm-cell-arrow:after{margin-left:.125rem;margin-right:-.2rem;display:block;font-family:VMUI-INLAY;font-size:.85rem;color:#c9c9c9;content:"\\E608"}.vm-cell-title{padding:0 .6rem .25rem;font-size:.75rem;text-align:left;color:#888;position:relative;z-index:1;background-color:#f5f5f5}.vm-cell-title:after{content:"";position:absolute;z-index:3;bottom:0;left:0;width:100%;height:1px;border-bottom:1px solid #d9d9d9;-webkit-transform:scaleY(.5);transform:scaleY(.5);-webkit-transform-origin:0 0;transform-origin:0 0}',""])},116:function(e,t,i){var l=i(1)(i(28),i(200),null,null);e.exports=l.exports},117:function(e,t,i){i(203);var l=i(1)(i(29),i(158),null,null);e.exports=l.exports},158:function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return"label"==e.type||"checkbox"==e.type||"radio"==e.type?i("label",{staticClass:"vm-cell-item"},[e.checkLeft?i("span",{staticClass:"vm-cell-left"},[i("span",{staticClass:"vm-cell-icon"},[e._t("icon")],2),e._v(" "),e._t("left")],2):e._e(),e._v(" "),i("label",{staticClass:"vm-cell-right",class:e.classes},[e._t("right"),e._v(" "),"checkbox"==e.type?i("i",{staticClass:"vm-cell-checkbox-icon"}):e._e(),e._v(" "),"radio"==e.type?i("i",{staticClass:"vm-cell-radio-icon"}):e._e()],2)]):"link"==e.type?i("router-link",{staticClass:"vm-cell-item",attrs:{to:e.href}},[e.checkLeft?i("div",{staticClass:"vm-cell-left"},[i("span",{staticClass:"vm-cell-icon"},[e._t("icon")],2),e._v(" "),e._t("left")],2):e._e(),e._v(" "),i("div",{staticClass:"vm-cell-right",class:e.classes},[e._t("right")],2)]):"a"==e.type?i("a",{staticClass:"vm-cell-item",attrs:{href:e.href}},[e.checkLeft?i("div",{staticClass:"vm-cell-left"},[i("span",{staticClass:"vm-cell-icon"},[e._t("icon")],2),e._v(" "),e._t("left")],2):e._e(),e._v(" "),i("div",{staticClass:"vm-cell-right",class:e.classes},[e._t("right")],2)]):i("div",{staticClass:"vm-cell-item"},[e.checkLeft?i("div",{staticClass:"vm-cell-left"},[i("span",{staticClass:"vm-cell-icon"},[e._t("icon")],2),e._v(" "),e._t("left")],2):e._e(),e._v(" "),i("div",{staticClass:"vm-cell-right",class:e.classes},[e._t("right")],2)])},staticRenderFns:[]}},200:function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"vm-cell"},[e.title?i("div",{staticClass:"vm-cell-title"},[e._v(e._s(e.title))]):e._e(),e._v(" "),e._t("default")],2)},staticRenderFns:[]}},203:function(e,t,i){var l=i(79);"string"==typeof l&&(l=[[e.id,l,""]]),l.locals&&(e.exports=l.locals);i(3)("e3e08cfc",l,!0)}})});