UNPKG

v-area-picker

Version:
1 lines 29.2 kB
!function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var n,r=e();for(n in r)("object"==typeof exports?exports:t)[n]=r[n]}}(window,function(){return r={},o.m=n=[,function(t,e,n){"use strict";function r(t,e,n,r,o,i,a,s){var c,u,l="function"==typeof t?t.options:t;return e&&(l.render=e,l.staticRenderFns=n,l._compiled=!0),r&&(l.functional=!0),i&&(l._scopeId="data-v-"+i),a?l._ssrRegister=c=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),o&&o.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)}:o&&(c=s?function(){o.call(this,(l.functional?this.parent:this).$root.$options.shadowRoot)}:o),c&&(l.functional?(l._injectStyles=c,u=l.render,l.render=function(t,e){return c.call(e),u(t,e)}):(s=l.beforeCreate,l.beforeCreate=s?[].concat(s,c):[c])),{exports:t,options:l}}n.d(e,"a",function(){return r})},,function(t,e,o){"use strict";var n,r,s=function(){return n=void 0===n?Boolean(window&&document&&document.all&&!window.atob):n},i=(r={},function(t){if(void 0===r[t]){var e=document.querySelector(t);if(window.HTMLIFrameElement&&e instanceof window.HTMLIFrameElement)try{e=e.contentDocument.head}catch(t){e=null}r[t]=e}return r[t]}),u=[];function l(t){for(var e=-1,n=0;n<u.length;n++)if(u[n].identifier===t){e=n;break}return e}function c(t,e){for(var n={},r=[],o=0;o<t.length;o++){var i=t[o],a=e.base?i[0]+e.base:i[0],s=n[a]||0,c="".concat(a," ").concat(s);n[a]=s+1;s=l(c),i={css:i[1],media:i[2],sourceMap:i[3]};-1!==s?(u[s].references++,u[s].updater(i)):u.push({identifier:c,updater:function(e,t){var n,r,o;{var i;o=t.singleton?(i=h++,n=v=v||f(t),r=p.bind(null,n,i,!1),p.bind(null,n,i,!0)):(n=f(t),r=function(t,e,n){var r=n.css,o=n.media,n=n.sourceMap;o?t.setAttribute("media",o):t.removeAttribute("media");n&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(n))))," */"));if(t.styleSheet)t.styleSheet.cssText=r;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(r))}}.bind(null,n,t),function(){!function(t){if(null===t.parentNode)return;t.parentNode.removeChild(t)}(n)})}return r(e),function(t){t?t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap||r(e=t):o()}}(i,e),references:1}),r.push(c)}return r}function f(t){var e,n=document.createElement("style"),r=t.attributes||{};if(void 0!==r.nonce||(e=o.nc)&&(r.nonce=e),Object.keys(r).forEach(function(t){n.setAttribute(t,r[t])}),"function"==typeof t.insert)t.insert(n);else{t=i(t.insert||"head");if(!t)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");t.appendChild(n)}return n}var a,d=(a=[],function(t,e){return a[t]=e,a.filter(Boolean).join("\n")});function p(t,e,n,r){n=n?"":r.media?"@media ".concat(r.media," {").concat(r.css,"}"):r.css;t.styleSheet?t.styleSheet.cssText=d(e,n):(r=document.createTextNode(n),(n=t.childNodes)[e]&&t.removeChild(n[e]),n.length?t.insertBefore(r,n[e]):t.appendChild(r))}var v=null,h=0;t.exports=function(t,i){(i=i||{}).singleton||"boolean"==typeof i.singleton||(i.singleton=s());var a=c(t=t||[],i);return function(t){if(t=t||[],"[object Array]"===Object.prototype.toString.call(t)){for(var e=0;e<a.length;e++){var n=l(a[e]);u[n].references--}for(var t=c(t,i),r=0;r<a.length;r++){var o=l(a[r]);0===u[o].references&&(u[o].updater(),u.splice(o,1))}a=t}}}},function(t,e,n){!function(d){t.exports=function(){"use strict";var t=function t(e){var n=e.id;var r=e.viewBox;var o=e.content;this.id=n;this.viewBox=r;this.content=o};t.prototype.stringify=function t(){return this.content},t.prototype.toString=function t(){return this.stringify()},t.prototype.destroy=function t(){var e=this;["id","viewBox","content"].forEach(function(t){return delete e[t]})};var r=function(t){var e=!!document.importNode;var n=(new DOMParser).parseFromString(t,"image/svg+xml").documentElement;if(e)return document.importNode(n,true);return n},e=typeof window!=="undefined"?window:typeof d!=="undefined"?d:typeof self!=="undefined"?self:{};function n(t,e){return e={exports:{}},t(e,e.exports),e.exports}var o=n(function(n,t){(function(t,e){if(false);else n.exports=e()})(e,function(){function i(t){var e=t&&typeof t==="object";return e&&Object.prototype.toString.call(t)!=="[object RegExp]"&&Object.prototype.toString.call(t)!=="[object Date]"}function r(t){return Array.isArray(t)?[]:{}}function a(t,e){var n=e&&e.clone===true;return n&&i(t)?u(r(t),t,e):t}function s(n,t,r){var o=n.slice();t.forEach(function(t,e){if(typeof o[e]==="undefined")o[e]=a(t,r);else if(i(t))o[e]=u(n[e],t,r);else if(n.indexOf(t)===-1)o.push(a(t,r))});return o}function c(e,n,r){var o={};if(i(e))Object.keys(e).forEach(function(t){o[t]=a(e[t],r)});Object.keys(n).forEach(function(t){if(!i(n[t])||!e[t])o[t]=a(n[t],r);else o[t]=u(e[t],n[t],r)});return o}function u(t,e,n){var r=Array.isArray(e);var o=n||{arrayMerge:s};var i=o.arrayMerge||s;if(r)return Array.isArray(t)?i(t,e,n):a(e,n);else return c(t,e,n)}u.all=function t(e,n){if(!Array.isArray(e)||e.length<2)throw new Error("first argument should be an array with at least two elements");return e.reduce(function(t,e){return u(t,e,n)})};return u})}),i=n(function(t,e){var n={svg:{name:"xmlns",uri:"http://www.w3.org/2000/svg"},xlink:{name:"xmlns:xlink",uri:"http://www.w3.org/1999/xlink"}};e.default=n;t.exports=e.default}),a=function(n){return Object.keys(n).map(function(t){var e=n[t].toString().replace(/"/g,"&quot;");return t+'="'+e+'"'}).join(" ")},s=i.svg,c=i.xlink,u={};u[s.name]=s.uri,u[c.name]=c.uri;var l=function(t,e){if(t===void 0)t="";var n=o(u,e||{});var r=a(n);return"<svg "+r+">"+t+"</svg>"},f;return function(e){function n(){e.apply(this,arguments)}if(e)n.__proto__=e;n.prototype=Object.create(e&&e.prototype);n.prototype.constructor=n;var t={isMounted:{}};t.isMounted.get=function(){return!!this.node};n.createFromExistingNode=function t(e){return new n({id:e.getAttribute("id"),viewBox:e.getAttribute("viewBox"),content:e.outerHTML})};n.prototype.destroy=function t(){if(this.isMounted)this.unmount();e.prototype.destroy.call(this)};n.prototype.mount=function t(e){if(this.isMounted)return this.node;var n=typeof e==="string"?document.querySelector(e):e;var r=this.render();this.node=r;n.appendChild(r);return r};n.prototype.render=function t(){var e=this.stringify();return r(l(e)).childNodes[0]};n.prototype.unmount=function t(){this.node.parentNode.removeChild(this.node)};Object.defineProperties(n.prototype,t);return n}(t)}()}.call(this,n(10))},function(t,e,n){!function(H){t.exports=function(){"use strict";var e=typeof window!=="undefined"?window:typeof H!=="undefined"?H:typeof self!=="undefined"?self:{};function t(t,e){return e={exports:{}},t(e,e.exports),e.exports}var c=t(function(n,t){(function(t,e){if(false);else n.exports=e()})(e,function(){function i(t){var e=t&&typeof t==="object";return e&&Object.prototype.toString.call(t)!=="[object RegExp]"&&Object.prototype.toString.call(t)!=="[object Date]"}function r(t){return Array.isArray(t)?[]:{}}function a(t,e){var n=e&&e.clone===true;return n&&i(t)?u(r(t),t,e):t}function s(n,t,r){var o=n.slice();t.forEach(function(t,e){if(typeof o[e]==="undefined")o[e]=a(t,r);else if(i(t))o[e]=u(n[e],t,r);else if(n.indexOf(t)===-1)o.push(a(t,r))});return o}function c(e,n,r){var o={};if(i(e))Object.keys(e).forEach(function(t){o[t]=a(e[t],r)});Object.keys(n).forEach(function(t){if(!i(n[t])||!e[t])o[t]=a(n[t],r);else o[t]=u(e[t],n[t],r)});return o}function u(t,e,n){var r=Array.isArray(e);var o=n||{arrayMerge:s};var i=o.arrayMerge||s;if(r)return Array.isArray(t)?i(t,e,n):a(e,n);else return c(t,e,n)}u.all=function t(e,n){if(!Array.isArray(e)||e.length<2)throw new Error("first argument should be an array with at least two elements");return e.reduce(function(t,e){return u(t,e,n)})};return u})});function u(r){r=r||Object.create(null);return{on:function t(e,n){(r[e]||(r[e]=[])).push(n)},off:function t(e,n){if(r[e])r[e].splice(r[e].indexOf(n)>>>0,1)},emit:function t(e,n){(r[e]||[]).map(function(t){t(n)});(r["*"]||[]).map(function(t){t(e,n)})}}}var n=t(function(t,e){var n={svg:{name:"xmlns",uri:"http://www.w3.org/2000/svg"},xlink:{name:"xmlns:xlink",uri:"http://www.w3.org/1999/xlink"}};e.default=n;t.exports=e.default}),o=function(n){return Object.keys(n).map(function(t){var e=n[t].toString().replace(/"/g,"&quot;");return t+'="'+e+'"'}).join(" ")},r=n.svg,i=n.xlink,a={};a[r.name]=r.uri,a[i.name]=i.uri;var s=function(t,e){if(t===void 0)t="";var n=c(a,e||{});var r=o(n);return"<svg "+r+">"+t+"</svg>"},l=n.svg,f=n.xlink,d={attrs:((p={style:["position: absolute","width: 0","height: 0"].join("; "),"aria-hidden":"true"})[l.name]=l.uri,p[f.name]=f.uri,p)},p,v=function t(e){this.config=c(d,e||{});this.symbols=[]};v.prototype.add=function t(e){var n=this;var r=n.symbols;var o=this.find(e.id);if(o){r[r.indexOf(o)]=e;return false}r.push(e);return true},v.prototype.remove=function t(e){var n=this;var r=n.symbols;var o=this.find(e);if(o){r.splice(r.indexOf(o),1);o.destroy();return true}return false},v.prototype.find=function t(e){return this.symbols.filter(function(t){return t.id===e})[0]||null},v.prototype.has=function t(e){return this.find(e)!==null},v.prototype.stringify=function t(){var e=this.config;var n=e.attrs;var r=this.symbols.map(function(t){return t.stringify()}).join("");return s(r,n)},v.prototype.toString=function t(){return this.stringify()},v.prototype.destroy=function t(){this.symbols.forEach(function(t){return t.destroy()})};var h=function t(e){var n=e.id;var r=e.viewBox;var o=e.content;this.id=n;this.viewBox=r;this.content=o};h.prototype.stringify=function t(){return this.content},h.prototype.toString=function t(){return this.stringify()},h.prototype.destroy=function t(){var e=this;["id","viewBox","content"].forEach(function(t){return delete e[t]})};var m=function(t){var e=!!document.importNode;var n=(new DOMParser).parseFromString(t,"image/svg+xml").documentElement;if(e)return document.importNode(n,true);return n},b=function(e){function n(){e.apply(this,arguments)}if(e)n.__proto__=e;n.prototype=Object.create(e&&e.prototype);n.prototype.constructor=n;var t={isMounted:{}};t.isMounted.get=function(){return!!this.node};n.createFromExistingNode=function t(e){return new n({id:e.getAttribute("id"),viewBox:e.getAttribute("viewBox"),content:e.outerHTML})};n.prototype.destroy=function t(){if(this.isMounted)this.unmount();e.prototype.destroy.call(this)};n.prototype.mount=function t(e){if(this.isMounted)return this.node;var n=typeof e==="string"?document.querySelector(e):e;var r=this.render();this.node=r;n.appendChild(r);return r};n.prototype.render=function t(){var e=this.stringify();return m(s(e)).childNodes[0]};n.prototype.unmount=function t(){this.node.parentNode.removeChild(this.node)};Object.defineProperties(n.prototype,t);return n}(h),y={autoConfigure:true,mountTo:"body",syncUrlsWithBaseTag:false,listenLocationChangeEvent:true,locationChangeEvent:"locationChange",locationChangeAngularEmitter:false,usagesToUpdate:"use[*|href]",moveGradientsOutsideSymbol:false},g=function(t){return Array.prototype.slice.call(t,0)},w={isChrome:function(){return/chrome/i.test(navigator.userAgent)},isFirefox:function(){return/firefox/i.test(navigator.userAgent)},isIE:function(){return/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent)},isEdge:function(){return/edge/i.test(navigator.userAgent)}},x=function(t,e){var n=document.createEvent("CustomEvent");n.initCustomEvent(t,false,false,e);window.dispatchEvent(n)},_=function(t){var e=[];g(t.querySelectorAll("style")).forEach(function(t){t.textContent+="";e.push(t)});return e},C=function(t){return(t||window.location.href).split("#")[0]},S=function(r){angular.module("ng").run(["$rootScope",function(t){t.$on("$locationChangeSuccess",function(t,e,n){x(r,{oldUrl:n,newUrl:e})})}])},E="linearGradient, radialGradient, pattern, mask, clipPath",O=function(t,n){if(n===void 0)n=E;g(t.querySelectorAll("symbol")).forEach(function(e){g(e.querySelectorAll(n)).forEach(function(t){e.parentNode.insertBefore(t,e)})});return t};function k(t,o){var e=g(t).reduce(function(t,e){if(!e.attributes)return t;var n=g(e.attributes);var r=o?n.filter(o):n;return t.concat(r)},[]);return e}var j=n.xlink.uri,M="xlink:href",A=/[{}|\\\^\[\]`"<>]/g;function T(t){return t.replace(A,function(t){return"%"+t[0].charCodeAt(0).toString(16).toUpperCase()})}function B(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function N(t,r,o){g(t).forEach(function(t){var e=t.getAttribute(M);if(e&&e.indexOf(r)===0){var n=e.replace(r,o);t.setAttributeNS(j,M,n)}});return t}var L=["clipPath","colorProfile","src","cursor","fill","filter","marker","markerStart","markerMid","markerEnd","mask","stroke","style"],U=L.map(function(t){return"["+t+"]"}).join(","),$=function(t,e,n,r){var o=T(n);var i=T(r);var a=t.querySelectorAll(U);var s=k(a,function(t){var e=t.localName;var n=t.value;return L.indexOf(e)!==-1&&n.indexOf("url("+o)!==-1});s.forEach(function(t){return t.value=t.value.replace(new RegExp(B(o),"g"),i)});N(e,o,i)},P={MOUNT:"mount",SYMBOL_MOUNT:"symbol_mount"},R=function(s){function t(t){var e=this;if(t===void 0)t={};s.call(this,c(y,t));var n=u();this._emitter=n;this.node=null;var r=this;var o=r.config;if(o.autoConfigure)this._autoConfigure(t);if(o.syncUrlsWithBaseTag){var i=document.getElementsByTagName("base")[0].getAttribute("href");n.on(P.MOUNT,function(){return e.updateUrls("#",i)})}var a=this._handleLocationChange.bind(this);this._handleLocationChange=a;if(o.listenLocationChangeEvent)window.addEventListener(o.locationChangeEvent,a);if(o.locationChangeAngularEmitter)S(o.locationChangeEvent);n.on(P.MOUNT,function(t){if(o.moveGradientsOutsideSymbol)O(t)});n.on(P.SYMBOL_MOUNT,function(t){if(o.moveGradientsOutsideSymbol)O(t.parentNode);if(w.isIE()||w.isEdge())_(t)})}if(s)t.__proto__=s;t.prototype=Object.create(s&&s.prototype);t.prototype.constructor=t;var e={isMounted:{}};e.isMounted.get=function(){return!!this.node};t.prototype._autoConfigure=function t(e){var n=this;var r=n.config;if(typeof e.syncUrlsWithBaseTag==="undefined")r.syncUrlsWithBaseTag=typeof document.getElementsByTagName("base")[0]!=="undefined";if(typeof e.locationChangeAngularEmitter==="undefined")r.locationChangeAngularEmitter=typeof window.angular!=="undefined";if(typeof e.moveGradientsOutsideSymbol==="undefined")r.moveGradientsOutsideSymbol=w.isFirefox()};t.prototype._handleLocationChange=function t(e){var n=e.detail;var r=n.oldUrl;var o=n.newUrl;this.updateUrls(r,o)};t.prototype.add=function t(e){var n=this;var r=s.prototype.add.call(this,e);if(this.isMounted&&r){e.mount(n.node);this._emitter.emit(P.SYMBOL_MOUNT,e.node)}return r};t.prototype.attach=function t(e){var n=this;var r=this;if(r.isMounted)return r.node;var o=typeof e==="string"?document.querySelector(e):e;r.node=o;this.symbols.forEach(function(t){t.mount(r.node);n._emitter.emit(P.SYMBOL_MOUNT,t.node)});g(o.querySelectorAll("symbol")).forEach(function(t){var e=b.createFromExistingNode(t);e.node=t;r.add(e)});this._emitter.emit(P.MOUNT,o);return o};t.prototype.destroy=function t(){var e=this;var n=e.config;var r=e.symbols;var o=e._emitter;r.forEach(function(t){return t.destroy()});o.off("*");window.removeEventListener(n.locationChangeEvent,this._handleLocationChange);if(this.isMounted)this.unmount()};t.prototype.mount=function t(e,n){if(e===void 0)e=this.config.mountTo;if(n===void 0)n=false;var r=this;if(r.isMounted)return r.node;var o=typeof e==="string"?document.querySelector(e):e;var i=r.render();this.node=i;if(n&&o.childNodes[0])o.insertBefore(i,o.childNodes[0]);else o.appendChild(i);this._emitter.emit(P.MOUNT,i);return i};t.prototype.render=function t(){return m(this.stringify())};t.prototype.unmount=function t(){this.node.parentNode.removeChild(this.node)};t.prototype.updateUrls=function t(e,n){if(!this.isMounted)return false;var r=document.querySelectorAll(this.config.usagesToUpdate);$(this.node,r,C(e)+"#",C(n)+"#");return true};Object.defineProperties(t.prototype,e);return t}(v),q=t(function(n){!function(t,e){n.exports=e()}("domready",function(){var e=[],t,n=document,r=n.documentElement.doScroll,o="DOMContentLoaded",i=(r?/^loaded|^c/:/^loaded|^i|^c/).test(n.readyState);if(!i)n.addEventListener(o,t=function(){n.removeEventListener(o,t);i=1;while(t=e.shift())t()});return function(t){i?setTimeout(t,0):e.push(t)}})}),D="__SVG_SPRITE_NODE__",F="__SVG_SPRITE__",I,G;if(!!window[F])G=window[F];else{G=new R({attrs:{id:D,"aria-hidden":"true"}});window[F]=G}var z=function(){var t=document.getElementById(D);if(t)G.attach(t);else G.mount(document.body,true)},V;if(document.body)z();else q(z);return G}()}.call(this,n(10))},,,,function(t,e,n){"use strict";t.exports=function(n){var c=[];return c.toString=function(){return this.map(function(t){var e=function(t,e){var n=t[1]||"",r=t[3];if(!r)return n;if(e&&"function"==typeof btoa){t=function(t){t=btoa(unescape(encodeURIComponent(JSON.stringify(t)))),t="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(t);return"/*# ".concat(t," */")}(r),e=r.sources.map(function(t){return"/*# sourceURL=".concat(r.sourceRoot||"").concat(t," */")});return[n].concat(e).concat([t]).join("\n")}return[n].join("\n")}(t,n);return t[2]?"@media ".concat(t[2]," {").concat(e,"}"):e}).join("")},c.i=function(t,e,n){"string"==typeof t&&(t=[[null,t,""]]);var r={};if(n)for(var o=0;o<this.length;o++){var i=this[o][0];null!=i&&(r[i]=!0)}for(var a=0;a<t.length;a++){var s=[].concat(t[a]);n&&r[s[0]]||(e&&(s[2]?s[2]="".concat(e," and ").concat(s[2]):s[2]=e),c.push(s))}},c}},function(t,e){var n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e,n){"use strict";var r=function(){var t=this.$createElement,t=this._self._c||t;return t("svg",[t("use",{attrs:{"xlink:href":"#"+this.name}})])};r._withStripped=!0;var o,i=n(13);(o=i).keys().map(o);var a={name:"Icon",props:{name:{type:String,required:!0}}},n=n(1),r=Object(n.a)(a,r,[],!1,null,null,null);r.options.__file="src/components/icon.vue";e.a=r.exports},,function(t,e,n){var r={"./close.svg":14,"./ok.svg":15};function o(t){t=i(t);return n(t)}function i(t){if(n.o(r,t))return r[t];t=new Error("Cannot find module '"+t+"'");throw t.code="MODULE_NOT_FOUND",t}o.keys=function(){return Object.keys(r)},o.resolve=i,(t.exports=o).id=13},function(t,e,n){"use strict";n.r(e);var r=n(4),o=n.n(r),r=n(5),r=n.n(r),o=new o.a({id:"close",use:"close-usage",viewBox:"0 0 24 24",content:'<symbol viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="close">\n <g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">\n <g transform="translate(-14.000000, -36.000000)">\n <g transform="translate(14.000000, 35.000000)">\n <g transform="translate(0.000000, 1.000000)">\n <g fill="currentColor">\n <rect fill="#D8D8D8" opacity="0" x="0" y="0" width="24" height="24" />\n <path d="M20.3341666,4.32182541 C20.7637434,4.75140213 20.7637434,5.4478836 20.3341666,5.87746033 L14.1106349,12.0996429 L20.3341666,18.3225397 C20.7637434,18.7521164 20.7637434,19.4485979 20.3341666,19.8781746 C19.9045899,20.3077513 19.2081084,20.3077513 18.7785317,19.8781746 L12.5556349,13.6546429 L6.33345238,19.8781746 C5.90387566,20.3077513 5.20739418,20.3077513 4.77781746,19.8781746 C4.34824074,19.4485979 4.34824074,18.7521164 4.77781746,18.3225397 L10.9996349,12.0996429 L4.77781746,5.87746033 C4.34824074,5.4478836 4.34824074,4.75140213 4.77781746,4.32182541 C5.20739418,3.89224869 5.90387566,3.89224869 6.33345238,4.32182541 L12.5556349,10.5436429 L18.7785317,4.32182541 C19.2081084,3.89224869 19.9045899,3.89224869 20.3341666,4.32182541 Z" id="close_形状结合" />\n </g>\n </g>\n </g>\n </g>\n </g>\n</symbol>'});r.a.add(o);e.default=o},function(t,e,n){"use strict";n.r(e);var r=n(4),o=n.n(r),r=n(5),r=n.n(r),o=new o.a({id:"ok",use:"ok-usage",viewBox:"0 0 19 13",content:'<symbol viewBox="0 0 19 13" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="ok">\n <g id="ok_icon" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">\n <g id="ok_画板" transform="translate(-615.000000, -422.000000)" fill="currentColor" fill-rule="nonzero">\n <g id="ok_勾/选择" transform="translate(612.000000, 416.000000)">\n <path d="M19.3431547,6.3017646 C19.7840092,5.88376992 20.4802441,5.90230153 20.8982388,6.34315612 C21.2863767,6.75252109 21.2981221,7.38208643 20.9448468,7.80460568 L20.8568473,7.89824028 L10.3099527,17.8982403 C9.90341911,18.2836937 9.27903557,18.2982961 8.85614071,17.9511549 L8.76231718,17.8646281 L3.30921175,12.2249311 C2.88692066,11.7881903 2.89863449,11.0918073 3.33537532,10.6695162 C3.74092037,10.2773888 4.37034054,10.2594799 4.79629848,10.6086013 L4.8907902,10.6956798 L9.58600098,15.5520024 L19.3431547,6.3017646 Z" id="ok_路径-58" />\n </g>\n </g>\n </g>\n</symbol>'});r.a.add(o);e.default=o},,,function(t,e,n){(e=n(9)(!1)).push([t.i,".v-action-sheet .sheet-wrapper .toolbar.border-b[data-v-55b6409a]:after{position:absolute;content:' ';top:0;left:0;-webkit-transform-origin:top left;transform-origin:top left;width:100%;height:100%;-webkit-transform:scale(1);transform:scale(1);pointer-events:none}@media (-webkit-min-device-pixel-ratio:2),(min-device-pixel-ratio:2){.v-action-sheet .sheet-wrapper .toolbar.border-b[data-v-55b6409a]:after{width:200%;height:200%;-webkit-transform:scale(.5);transform:scale(.5)}}@media (-webkit-min-device-pixel-ratio:3),(min-device-pixel-ratio:3){.v-action-sheet .sheet-wrapper .toolbar.border-b[data-v-55b6409a]:after{width:300%;height:300%;-webkit-transform:scale(.3333333333333333);transform:scale(.3333333333333333)}}*[data-v-55b6409a],*[data-v-55b6409a]::after,*[data-v-55b6409a]::before{box-sizing:border-box}[data-v-55b6409a]::-webkit-scrollbar{display:none}.v-action-sheet .sheet-wrapper[data-v-55b6409a]{position:fixed;display:flex;flex-direction:column;min-height:10%;max-height:100%;width:100%;margin:0 auto;left:0;right:0;bottom:0;z-index:999;border-radius:8px 8px 0 0;background-color:#fff}.v-action-sheet .sheet-wrapper .toolbar.border-b[data-v-55b6409a]{position:relative}.v-action-sheet .sheet-wrapper .toolbar.border-b[data-v-55b6409a]:after{border-bottom:1px solid #ccc}.v-action-sheet .sheet-wrapper .toolbar .default-bar[data-v-55b6409a]{padding:0 16px;font-size:14px}.v-action-sheet .sheet-wrapper .toolbar .default-bar .title[data-v-55b6409a]{color:#333;font-size:16px;font-weight:500}.v-action-sheet .sheet-wrapper .toolbar .default-bar .cancel-pla[data-v-55b6409a]{display:flex;justify-content:center;align-items:center;color:#969799}.v-action-sheet .sheet-wrapper .toolbar .default-bar .cancel-pla .close-icon[data-v-55b6409a]{width:20px;height:20px;color:#333}.v-action-sheet .sheet-wrapper .toolbar .default-bar .confirm-pla[data-v-55b6409a]{color:#576b95}.v-action-sheet .sheet-wrapper .toolbar .default-bar .confirm-pla.disabled[data-v-55b6409a]{color:#969799}.v-action-sheet .sheet-wrapper .toolbar .default-bar .simple[data-v-55b6409a],.v-action-sheet .sheet-wrapper .toolbar .default-bar .confirm[data-v-55b6409a]{display:flex;justify-content:space-between;align-items:center;height:44px}.v-action-sheet .sheet-wrapper .toolbar .default-bar .confirm .title[data-v-55b6409a]{margin:0 16px}.v-action-sheet .sheet-wrapper .content[data-v-55b6409a]{flex:1;padding:10px 16px 16px;overflow:scroll}.v-action-sheet .sheet-wrapper .footer[data-v-55b6409a]{display:flex;align-items:center;margin:10px 16px;position:absolute;left:0;right:0;bottom:0}.v-action-sheet .sheet-wrapper .footer .bottom-button[data-v-55b6409a]{flex:1;display:flex;justify-content:space-between;align-items:center;font-size:16px;font-weight:500}.v-action-sheet .sheet-wrapper .footer .bottom-button .cancel-btn[data-v-55b6409a]{display:flex;justify-content:center;align-items:center;border:1px solid #ccc;width:140px;height:48px;border-radius:8px}.v-action-sheet .sheet-wrapper .footer .bottom-button .confirm-btn[data-v-55b6409a]{flex:1;display:flex;justify-content:center;align-items:center;height:48px;border-radius:8px;background-color:#2b6bff;color:#fff}.v-action-sheet .sheet-wrapper .footer .bottom-button .confirm-btn.disabled[data-v-55b6409a]{background-color:#969799}.v-action-sheet .sheet-wrapper .footer .bottom-button .cancel-btn + .confirm-btn[data-v-55b6409a]{margin-left:10px}.v-action-sheet .mask[data-v-55b6409a]{position:fixed;left:0;right:0;top:0;bottom:0;width:100%;height:100%;background-color:#000;opacity:.6;z-index:998}.fade-enter[data-v-55b6409a],.fade-leave-to[data-v-55b6409a]{opacity:0 !important}.fade-enter-active[data-v-55b6409a],.fade-leave-active[data-v-55b6409a]{transition:opacity .4s}.slide-top-enter[data-v-55b6409a],.slide-top-leave-to[data-v-55b6409a]{transform:translate3d(0,100%,0)}.slide-top-enter-active[data-v-55b6409a]{will-change:transform;transition:transform .4s cubic-bezier(.4,0,.2,1) 0s,opacity .2s linear}.slide-top-leave-active[data-v-55b6409a]{will-change:transform;transition:transform .2s linear 0s}",""]),t.exports=e},,,,,,,,function(t,e,n){"use strict";n.r(e);var r=function(){var e=this,t=e.$createElement,t=e._self._c||t;return t("div",{staticClass:"v-action-sheet"},[t("transition",{attrs:{name:"slide-top"}},[t("div",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],staticClass:"sheet-wrapper",style:e.innerStyle},[t("div",{staticClass:"toolbar",class:{"border-b":e.needToolbarBorder}},[e.$slots.toolbar?t("div",[e._t("toolbar")],2):t("div",{staticClass:"default-bar"},["simple"===e.toolbarMode?t("div",{staticClass:"simple"},[t("div",{staticClass:"title"},[e._v(e._s(e.title))]),e._v(" "),t("div",{staticClass:"cancel-pla",on:{click:function(t){e.$emit("cancel"),e.$emit("input",!1)}}},[t("icon",{staticClass:"close-icon",attrs:{name:"close"}})],1)]):t("div",{staticClass:"confirm"},[t("div",{staticClass:"cancel-pla",on:{click:function(t){e.$emit("cancel"),e.$emit("input",!1)}}},[e._v(e._s(e.cancelText))]),e._v(" "),t("div",{staticClass:"title"},[e._v(e._s(e.title))]),e._v(" "),t("div",{staticClass:"confirm-pla",class:{disabled:e.disabledConfirm},on:{click:function(t){e.disabledConfirm||e.$emit("confirm")}}},[e._v(e._s(e.confirmText))])])])]),e._v(" "),t("div",{staticClass:"content"},[e._t("default")],2),e._v(" "),t("div",{staticClass:"footer"},[e.$slots.footer?t("div",[e._t("footer")],2):e._e(),e._v(" "),!e.$slots.footer&&e.needBottomButton?t("div",{staticClass:"bottom-button"},["single"!==e.bottomButtonMode?t("div",{staticClass:"cancel-btn",on:{click:function(t){e.$emit("cancel"),e.$emit("input",!1)}}},[e._v(e._s(e.cancelText))]):e._e(),e._v(" "),t("div",{staticClass:"confirm-btn",class:{disabled:e.disabledConfirm},on:{click:function(t){e.disabledConfirm||e.$emit("confirm")}}},[e._v(e._s(e.confirmText))])]):e._e()])])]),e._v(" "),t("transition",{attrs:{name:"fade"}},[e.visible?t("div",{staticClass:"mask",on:{touchmove:function(t){t.preventDefault(),t.stopPropagation()},click:function(t){e.$emit("click-overlay"),e.$emit("input",!1)}}}):e._e()])],1)};r._withStripped=!0;var o={name:"VActionSheet",components:{Icon:n(11).a},props:{value:Boolean,title:{type:String,default:""},toolbarMode:{type:String,default:"confirm",validator:function(t){return["simple","confirm"].includes(t)}},bottomButtonMode:{type:String,default:"multi",validator:function(t){return["single","multi"].includes(t)}},needBottomButton:{type:Boolean,default:!1},cancelText:{type:String,default:"取消"},confirmText:{type:String,default:"确认"},innerStyle:{type:[Object,Array],default:function(){return{}}},needToolbarBorder:{type:Boolean,default:!0},disabledConfirm:{type:Boolean,default:!1}},computed:{visible:{get:function(){return this.value},set:function(t){this.$emit("input",t)}}}},i=n(3),a=n.n(i),s=n(18),i=n.n(s),s={insert:"head",singleton:!1},n=(a()(i.a,s),i.a.locals,n(1)),r=Object(n.a)(o,r,[],!1,null,"55b6409a",null);r.options.__file="src/components/action-sheet/src/action-sheet.vue";var c=r.exports;c.install=function(t){t.component(c.name,c)};e.default=c}],o.c=r,o.d=function(t,e,n){o.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},o.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},o.t=function(e,t){if(1&t&&(e=o(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)o.d(n,r,function(t){return e[t]}.bind(null,r));return n},o.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return o.d(e,"a",e),e},o.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},o.p="../dist/",o(o.s=26);function o(t){if(r[t])return r[t].exports;var e=r[t]={i:t,l:!1,exports:{}};return n[t].call(e.exports,e,e.exports,o),e.l=!0,e.exports}var n,r});