UNPKG

weex-flymeui

Version:

A Flyme Style UI library based on Weex for Creator.

3 lines (2 loc) 10.1 kB
// { "framework": "Vue" } !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["npm/weex-flymeui/components/fm-textbar/index"]=t():e["npm/weex-flymeui/components/fm-textbar/index"]=t()}("undefined"!=typeof self?self:this,function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/",n(n.s=250)}({0:function(e,t){e.exports=function(e,t,n,r,o){var i,s=e=e||{},a=typeof e.default;"object"!==a&&"function"!==a||(i=e,s=e.default);var u,c="function"==typeof s?s.options:s;if(t&&(c.render=t.render,c.staticRenderFns=t.staticRenderFns),r&&(c._scopeId=r),o?(u=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),n&&n.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(o)},c._ssrRegister=u):n&&(u=n),u){var f=c.functional,l=f?c.render:c.beforeCreate;f?c.render=function(e,t){return u.call(t),l(e,t)}:c.beforeCreate=l?[].concat(l,u):[u]}return{esModule:i,exports:s,options:c}}},1:function(e,t){e.exports=function(e){var t=[];return t.toString=function(){return this.map(function(t){var n=function(e,t){var n=e[1]||"",r=e[3];if(!r)return n;if(t&&"function"==typeof btoa){var o=function(e){return"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(e))))+" */"}(r),i=r.sources.map(function(e){return"/*# sourceURL="+r.sourceRoot+e+" */"});return[n].concat(i).concat([o]).join("\n")}return[n].join("\n")}(t,e);return t[2]?"@media "+t[2]+"{"+n+"}":n}).join("")},t.i=function(e,n){"string"==typeof e&&(e=[[null,e,""]]);for(var r={},o=0;o<this.length;o++){var i=this[o][0];"number"==typeof i&&(r[i]=!0)}for(o=0;o<e.length;o++){var s=e[o];"number"==typeof s[0]&&r[s[0]]||(n&&!s[2]?s[2]=n:n&&(s[2]="("+s[2]+") and ("+n+")"),t.push(s))}},t}},2:function(e,t,n){var r="undefined"!=typeof document;if("undefined"!=typeof DEBUG&&DEBUG&&!r)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var o=n(3),i={},s=r&&(document.head||document.getElementsByTagName("head")[0]),a=null,u=0,c=!1,f=function(){},l=null,d="data-vue-ssr-id",p="undefined"!=typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());function m(e){for(var t=0;t<e.length;t++){var n=e[t],r=i[n.id];if(r){r.refs++;for(var o=0;o<r.parts.length;o++)r.parts[o](n.parts[o]);for(;o<n.parts.length;o++)r.parts.push(b(n.parts[o]));r.parts.length>n.parts.length&&(r.parts.length=n.parts.length)}else{var s=[];for(o=0;o<n.parts.length;o++)s.push(b(n.parts[o]));i[n.id]={id:n.id,refs:1,parts:s}}}}function v(){var e=document.createElement("style");return e.type="text/css",s.appendChild(e),e}function b(e){var t,n,r=document.querySelector("style["+d+'~="'+e.id+'"]');if(r){if(c)return f;r.parentNode.removeChild(r)}if(p){var o=u++;r=a||(a=v()),t=y.bind(null,r,o,!1),n=y.bind(null,r,o,!0)}else r=v(),t=function(e,t){var n=t.css,r=t.media,o=t.sourceMap;r&&e.setAttribute("media",r);l.ssrId&&e.setAttribute(d,t.id);o&&(n+="\n/*# sourceURL="+o.sources[0]+" */",n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(o))))+" */");if(e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}.bind(null,r),n=function(){r.parentNode.removeChild(r)};return t(e),function(r){if(r){if(r.css===e.css&&r.media===e.media&&r.sourceMap===e.sourceMap)return;t(e=r)}else n()}}e.exports=function(e,t,n,r){c=n,l=r||{};var s=o(e,t);return m(s),function(t){for(var n=[],r=0;r<s.length;r++){var a=s[r];(u=i[a.id]).refs--,n.push(u)}t?m(s=o(e,t)):s=[];for(r=0;r<n.length;r++){var u;if(0===(u=n[r]).refs){for(var c=0;c<u.parts.length;c++)u.parts[c]();delete i[u.id]}}}};var h=function(){var e=[];return function(t,n){return e[t]=n,e.filter(Boolean).join("\n")}}();function y(e,t,n,r){var o=n?"":r.css;if(e.styleSheet)e.styleSheet.cssText=h(t,o);else{var i=document.createTextNode(o),s=e.childNodes;s[t]&&e.removeChild(s[t]),s.length?e.insertBefore(i,s[t]):e.appendChild(i)}}},250:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(251);Object.defineProperty(t,"default",{enumerable:!0,get:function(){return function(e){return e&&e.__esModule?e:{default:e}}(r).default}})},251:function(e,t,n){var r=!1;var o=n(0)(n(254),n(255),function(e){r||n(252)},"data-v-95a96b12",null);o.options.__file="/Users/suen/Documents/develop/project/weex-flymeui/packages/fm-textbar/index.vue",o.esModule&&Object.keys(o.esModule).some(function(e){return"default"!==e&&"__"!==e.substr(0,2)})&&console.error("named exports are not supported in *.vue files."),o.options.functional&&console.error("[vue-loader] index.vue: functional components are not supported with templates, they should use render functions."),e.exports=o.exports},252:function(e,t,n){var r=n(253);"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);n(2)("4b612f94",r,!1,{})},253:function(e,t,n){(e.exports=n(1)(!1)).push([e.i,"\n.button-wrap[data-v-95a96b12] {\n -webkit-box-flex: 1;\n -webkit-flex: 1;\n flex: 1;\n height: 1.33333rem;\n -webkit-box-align: center;\n -webkit-align-items: center;\n align-items: center;\n -webkit-box-pack: center;\n -webkit-justify-content: center;\n justify-content: center;\n}\n.border[data-v-95a96b12] {\n width: 0.01852rem;\n height: 0.66667rem;\n background-color: rgba(0, 0, 0, 0.1);\n}\n.button-wrap[data-v-95a96b12]:active {\n background-color: rgba(0, 0, 0, 0.04);\n}\n.button-title[data-v-95a96b12] {\n font-size: 0.44444rem;\n color: #198DED;\n font-weight: 500;\n font-family: sans-serif-medium;\n}\n",""])},254:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){return e&&e.__esModule?e:{default:e}}(n(28));t.default={name:"FmTextbar",components:{FmFooter:r.default},props:{items:{type:Array,default:function(){return[]}},backgroundColor:{type:String,default:"#FFFFFF"}},methods:{onClick:function(e){this.$emit("fmTextbarBtnClicked",{index:e})}}}},255:function(e,t,n){e.exports={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("fm-footer",{staticStyle:e.$processStyle(void 0),style:e.$processStyle(void 0),attrs:{backgroundColor:e.backgroundColor}},[e._l(e.items,function(t,r){return[n("div",{key:r,staticClass:"button-wrap",staticStyle:e.$processStyle(void 0),style:e.$processStyle(void 0),on:{click:function(t){e.onClick(r)}}},[n("text",{staticClass:"button-title",staticStyle:e.$processStyle(void 0),style:e.$processStyle(t.color&&{color:t.color})},[e._v(e._s(t.title))])]),e._v(" "),e.items.length>=2&&r!=e.items.length-1?[n("div",{key:r,staticClass:"border",staticStyle:e.$processStyle(void 0),style:e.$processStyle(void 0)})]:e._e()]})],2)},staticRenderFns:[]},e.exports.render._withStripped=!0},28:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(29);Object.defineProperty(t,"default",{enumerable:!0,get:function(){return function(e){return e&&e.__esModule?e:{default:e}}(r).default}})},29:function(e,t,n){var r=!1;var o=n(0)(n(32),n(33),function(e){r||n(30)},"data-v-3509f5c0",null);o.options.__file="/Users/suen/Documents/develop/project/weex-flymeui/packages/fm-footer/index.vue",o.esModule&&Object.keys(o.esModule).some(function(e){return"default"!==e&&"__"!==e.substr(0,2)})&&console.error("named exports are not supported in *.vue files."),o.options.functional&&console.error("[vue-loader] index.vue: functional components are not supported with templates, they should use render functions."),e.exports=o.exports},3:function(e,t){e.exports=function(e,t){for(var n=[],r={},o=0;o<t.length;o++){var i=t[o],s=i[0],a={id:e+":"+o,css:i[1],media:i[2],sourceMap:i[3]};r[s]?r[s].parts.push(a):n.push(r[s]={id:s,parts:[a]})}return n}},30:function(e,t,n){var r=n(31);"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);n(2)("0fd6ff72",r,!1,{})},31:function(e,t,n){(e.exports=n(1)(!1)).push([e.i,"\n.fm-footer[data-v-3509f5c0] {\n -webkit-box-orient: horizontal;\n -webkit-box-direction: normal;\n -webkit-flex-direction: row;\n flex-direction: row;\n position: fixed;\n right: 0;\n bottom: 0;\n left: 0;\n height: 1.33333rem;\n -webkit-box-pack: justify;\n -webkit-justify-content: space-between;\n justify-content: space-between;\n -webkit-box-align: center;\n -webkit-align-items: center;\n align-items: center;\n border-top-width: 0.01852rem;\n border-top-color: rgba(0, 0, 0, 0.1);\n}\n.fm-footer-[data-v-3509f5c0] {\n -webkit-box-pack: center;\n -webkit-justify-content: center;\n justify-content: center;\n}\n.fm-footer-small[data-v-3509f5c0] {\n padding: 0 0.44444rem;\n}\n.fm-footer-middle[data-v-3509f5c0] {\n padding: 0px 0.83333rem\n}\n.fm-footer-large[data-v-3509f5c0] {\n padding: 0 1.02778rem;\n}\n",""])},32:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={name:"FmFooter",props:{paddingSize:{type:String,default:""},backgroundColor:{type:String,default:"#FFFFFF"}}}},33:function(e,t,n){e.exports={render:function(){var e=this.$createElement;return(this._self._c||e)("div",{staticClass:"fm-footer",class:["fm-footer-"+this.paddingSize],staticStyle:this.$processStyle(void 0),style:this.$processStyle({backgroundColor:this.backgroundColor})},[this._t("default")],2)},staticRenderFns:[]},e.exports.render._withStripped=!0}})});