UNPKG

@xysfe/actui

Version:

A fantastic mobile ui lib implement by Vue

1 lines • 8.03 kB
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("@xysfe/actui/es/assets/mixins/visible.js")):"function"==typeof define&&define.amd?define(["@xysfe/actui/es/assets/mixins/visible.js"],e):"object"==typeof exports?exports["assets/common/button.js"]=e(require("@xysfe/actui/es/assets/mixins/visible.js")):t["assets/common/button.js"]=e(t["@xysfe/actui/es/assets/mixins/visible.js"])}("undefined"!=typeof self?self:this,function(t){return function(t){function e(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var n={};return e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="../es",e(e.s=903)}({134:function(e,n){e.exports=t},35:function(t,e){function n(t,e){var n=t[1]||"",o=t[3];if(!o)return n;if(e&&"function"==typeof btoa){var a=r(o);return[n].concat(o.sources.map(function(t){return"/*# sourceURL="+o.sourceRoot+t+" */"})).concat([a]).join("\n")}return[n].join("\n")}function r(t){return"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(t))))+" */"}t.exports=function(t){var e=[];return e.toString=function(){return this.map(function(e){var r=n(e,t);return e[2]?"@media "+e[2]+"{"+r+"}":r}).join("")},e.i=function(t,n){"string"==typeof t&&(t=[[null,t,""]]);for(var r={},o=0;o<this.length;o++){var a=this[o][0];"number"==typeof a&&(r[a]=!0)}for(o=0;o<t.length;o++){var i=t[o];"number"==typeof i[0]&&r[i[0]]||(n&&!i[2]?i[2]=n:n&&(i[2]="("+i[2]+") and ("+n+")"),e.push(i))}},e}},36:function(t,e,n){"use strict";function r(t,e,n,r){h=n,v=r||{};var a=Object(c.a)(t,e);return o(a),function(e){for(var n=[],r=0;r<a.length;r++){var i=a[r],s=f[i.id];s.refs--,n.push(s)}e?(a=Object(c.a)(t,e),o(a)):a=[];for(var r=0;r<n.length;r++){var s=n[r];if(0===s.refs){for(var u=0;u<s.parts.length;u++)s.parts[u]();delete f[s.id]}}}}function o(t){for(var e=0;e<t.length;e++){var n=t[e],r=f[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(i(n.parts[o]));r.parts.length>n.parts.length&&(r.parts.length=n.parts.length)}else{for(var a=[],o=0;o<n.parts.length;o++)a.push(i(n.parts[o]));f[n.id]={id:n.id,refs:1,parts:a}}}}function a(){var t=document.createElement("style");return t.type="text/css",l.appendChild(t),t}function i(t){var e,n,r=document.querySelector("style["+m+'~="'+t.id+'"]');if(r){if(h)return g;r.parentNode.removeChild(r)}if(y){var o=p++;r=b||(b=a()),e=s.bind(null,r,o,!1),n=s.bind(null,r,o,!0)}else r=a(),e=u.bind(null,r),n=function(){r.parentNode.removeChild(r)};return e(t),function(r){if(r){if(r.css===t.css&&r.media===t.media&&r.sourceMap===t.sourceMap)return;e(t=r)}else n()}}function s(t,e,n,r){var o=n?"":r.css;if(t.styleSheet)t.styleSheet.cssText=x(e,o);else{var a=document.createTextNode(o),i=t.childNodes;i[e]&&t.removeChild(i[e]),i.length?t.insertBefore(a,i[e]):t.appendChild(a)}}function u(t,e){var n=e.css,r=e.media,o=e.sourceMap;if(r&&t.setAttribute("media",r),v.ssrId&&t.setAttribute(m,e.id),o&&(n+="\n/*# sourceURL="+o.sources[0]+" */",n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(o))))+" */"),t.styleSheet)t.styleSheet.cssText=n;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(n))}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=r;var c=n(40),d="undefined"!=typeof document;if("undefined"!=typeof DEBUG&&DEBUG&&!d)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 f={},l=d&&(document.head||document.getElementsByTagName("head")[0]),b=null,p=0,h=!1,g=function(){},v=null,m="data-vue-ssr-id",y="undefined"!=typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase()),x=function(){var t=[];return function(e,n){return t[e]=n,t.filter(Boolean).join("\n")}}()},40:function(t,e,n){"use strict";function r(t,e){for(var n=[],r={},o=0;o<e.length;o++){var a=e[o],i=a[0],s=a[1],u=a[2],c=a[3],d={id:t+":"+o,css:s,media:u,sourceMap:c};r[i]?r[i].parts.push(d):n.push(r[i]={id:i,parts:[d]})}return n}e.a=r},676:function(t,e,n){"use strict";var r=n(134),o=n.n(r);e.a={name:"ActButton",mixins:[o.a],data:function(){return{}},props:{buttondata:{type:Object,default:function(){return{}}},type:{type:String,default:"default"},round:{type:[Boolean,String],default:"2em"}},watch:{buttondata:{deep:!0,immediate:!0,handler:function(t){this.setBtnBgColor(t)}}},methods:{btnClick:function(t){this.$emit("button-click",t)},setBtnBgColor:function(t){if(this.$refs.actbtn)if(t.btnbg){if(t.btnbg.match(/^#/)||t.btnbg.match(/^rgb/i))this.$refs.actbtn.style.background=t.btnbg;else if(t.btnbg.match(/linear-gradient/)){var e=t.btnbg.match(/(linear-gradient)\((.*)\)/);e&&e.length>=3&&(this.$refs.actbtn.style.background=e[1]+"("+e[2]+")",this.$refs.actbtn.style.background="-webkit-"+e[1]+"("+e[2]+")")}}else this.$refs.actbtn.background=""}}}},8:function(t,e,n){"use strict";function r(t,e,n,r,o,a,i,s){t=t||{};var u=typeof t.default;"object"!==u&&"function"!==u||(t=t.default);var c="function"==typeof t?t.options:t;e&&(c.render=e,c.staticRenderFns=n,c._compiled=!0),r&&(c.functional=!0),a&&(c._scopeId=a);var d;if(i?(d=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),o&&o.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(i)},c._ssrRegister=d):o&&(d=s?function(){o.call(this,this.$root.$options.shadowRoot)}:o),d)if(c.functional){c._injectStyles=d;var f=c.render;c.render=function(t,e){return d.call(e),f(t,e)}}else{var l=c.beforeCreate;c.beforeCreate=l?[].concat(l,d):[d]}return{exports:t,options:c}}e.a=r},903:function(t,e,n){"use strict";function r(t){s||n(904)}Object.defineProperty(e,"__esModule",{value:!0});var o=n(676),a=n(906),i=n(8),s=!1,u=r,c=Object(i.a)(o.a,a.a,a.b,!1,u,"data-v-44b52f03",null);c.options.__file="src\\components\\common\\button.vue",e.default=c.exports},904:function(t,e,n){var r=n(905);r.__esModule&&(r=r.default),"string"==typeof r&&(r=[[t.i,r,""]]),r.locals&&(t.exports=r.locals);var o=n(36).default;o("405ba393",r,!1,{})},905:function(t,e,n){e=t.exports=n(35)(!1),e.push([t.i,"\n.act-button[data-v-44b52f03]{display:inline-block;line-height:1;box-sizing:border-box;text-align:center;width:100%;white-space:nowrap;padding:1.15em 0;border-radius:0.5em;background:-webkit-linear-gradient(bottom, #c53530, #f9433d);background:linear-gradient(0deg, #c53530, #f9433d)\n}\n.act-button span[data-v-44b52f03]{font-size:1.6em;color:#fff\n}\n.act-button.act-button--finish[data-v-44b52f03]{color:#808080;border:solid 1px #bfbfbf;background:-webkit-linear-gradient(top, #e6e6e6 0%, #d2d2d2 65%, #bebebe 100%);background:linear-gradient(180deg, #e6e6e6 0%, #d2d2d2 65%, #bebebe 100%)\n}\n.act-button.act-button--finish span[data-v-44b52f03]{color:#808080\n}\n.act-button.act-button--glod[data-v-44b52f03]{color:#808080;box-shadow:0 0.4em 1em rgba(0,0,0,0.2);background:-webkit-linear-gradient(bottom, #e8bb8b, #fde5cb);background:linear-gradient(0deg, #e8bb8b, #fde5cb)\n}\n.act-button.act-button--glod span[data-v-44b52f03]{color:#9b5b14\n}\n",""])},906:function(t,e,n){"use strict";n.d(e,"a",function(){return r}),n.d(e,"b",function(){return o});var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{ref:"actbtn",staticClass:"act-button",class:[t.type?"act-button--"+t.type:""],style:{border:t.buttondata.btnborder,borderRadius:!0===t.round?"2em":t.round},on:{click:t.btnClick}},[t.$slots.default?n("span",{style:{color:t.buttondata.btncolor}},[t._t("default")],2):t._e()])},o=[];r._withStripped=!0}})});