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 n=i[l]={exports:{},id:l,loaded:!1};return e[l].call(n.exports,n,n.exports,t),n.loaded=!0,n.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 n=i(117),o=l(n),r=i(116),c=l(r);t.CellItem=o.default,t.CellGroup=c.default},1:function(e,t){e.exports=function(e,t,i,l){var n,o=e=e||{},r=typeof e.default;"object"!==r&&"function"!==r||(n=e,o=e.default);var c="function"==typeof o?o.options:o;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:n,exports:o,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={},n=0;n<this.length;n++){var o=this[n][0];"number"==typeof o&&(l[o]=!0)}for(n=0;n<t.length;n++){var r=t[n];"number"==typeof r[0]&&l[r[0]]||(i&&!r[2]?r[2]=i:i&&(r[2]="("+r[2]+") and ("+i+")"),e.push(r))}},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 n=0;n<l.parts.length;n++)l.parts[n](i.parts[n]);for(;n<i.parts.length;n++)l.parts.push(o(i.parts[n]));l.parts.length>i.parts.length&&(l.parts.length=i.parts.length)}else{for(var r=[],n=0;n<i.parts.length;n++)r.push(o(i.parts[n]));f[i.id]={id:i.id,refs:1,parts:r}}}}function n(){var e=document.createElement("style");return e.type="text/css",p.appendChild(e),e}function o(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 o=m++;l=d||(d=n()),t=r.bind(null,l,o,!1),i=r.bind(null,l,o,!0)}else l=n(),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 r(e,t,i,l){var n=i?"":l.css;if(e.styleSheet)e.styleSheet.cssText=x(t,n);else{var o=document.createTextNode(n),r=e.childNodes;r[t]&&e.removeChild(r[t]),r.length?e.insertBefore(o,r[t]):e.appendChild(o)}}function c(e,t){var i=t.css,l=t.media,n=t.sourceMap;if(l&&e.setAttribute("media",l),n&&(i+="\n/*# sourceURL="+n.sources[0]+" */",i+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(n))))+" */"),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={},p=s&&(document.head||document.getElementsByTagName("head")[0]),d=null,m=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 n=a(e,t);return l(n),function(t){for(var i=[],o=0;o<n.length;o++){var r=n[o],c=f[r.id];c.refs--,i.push(c)}t?(n=a(e,t),l(n)):n=[];for(var o=0;o<i.length;o++){var c=i[o];if(0===c.refs){for(var s=0;s<c.parts.length;s++)c.parts[s]();delete f[c.id]}}}};var x=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={},n=0;n<t.length;n++){var o=t[n],r=o[0],c=o[1],s=o[2],a=o[3],f={id:e+":"+n,css:c,media:s,sourceMap:a};l[r]?l[r].parts.push(f):i.push(l[r]={id:r,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:42.5px}.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:30px;overflow:hidden}.vm-cell-item:not(:last-child):after{margin-left:30px;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:37px;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:125px;color:#525252;text-align:right;font-size:32px;padding-right:30px;-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:125px}.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:55px}.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:125px;border:none;font-size:37px;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:125px;border:none;display:block;color:#a9a9a9;font-size:37px;margin-left:-10px}.vm-cell-icon{display:block;margin-right:12.5px}.vm-cell-icon img{height:50px}.vm-cell-arrow:after{margin-left:5px;margin-right:-10px;display:block;font-family:VMUI-INLAY;font-size:42px;color:#c9c9c9;content:"\\E608"}.vm-cell-title{padding:0 30px 12.5px;font-size:37px;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)("23c3e5ac",l,!0)}})});