@beeapi/nutui
Version:
一套轻量级移动端Vue组件库
7 lines • 41 kB
JavaScript
/*!
* @beeapi/nutui v2.2.10 - notify.js, 451ed2404bee284b891e, Sat Dec 19 2020 12:06:10 GMT+0800 (中国标准时间)
* (c) 2017-2020 JDC
* Released under the MIT License.
*/
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("vue")):"function"==typeof define&&define.amd?define("notify",["vue"],e):"object"==typeof exports?exports.notify=e(require("vue")):t.notify=e(t.Vue)}("undefined"!=typeof self?self:this,(function(t){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="./",n(n.s=155)}([function(t,e,n){"use strict";function r(t,e,n,r,o,i,s,l){var a,c="function"==typeof t?t.options:t;if(e&&(c.render=e,c.staticRenderFns=n,c._compiled=!0),r&&(c.functional=!0),i&&(c._scopeId="data-v-"+i),s?(a=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(s)},c._ssrRegister=a):o&&(a=l?function(){o.call(this,(c.functional?this.parent:this).$root.$options.shadowRoot)}:o),a)if(c.functional){c._injectStyles=a;var u=c.render;c.render=function(t,e){return a.call(e),u(t,e)}}else{var d=c.beforeCreate;c.beforeCreate=d?[].concat(d,a):[a]}return{exports:t,options:c}}n.d(e,"a",(function(){return r}))},function(e,n){e.exports=t},function(t,e){function n(){return t.exports=n=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},n.apply(this,arguments)}t.exports=n},function(t,e){t.exports=function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}},,function(t,e,n){"use strict";n.d(e,"b",(function(){return f})),n.d(e,"a",(function(){return g}));var r=n(3),o=n.n(r),i=n(2),s=n.n(i),l=n(1),a=n.n(l),c=n(13);function u(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}var d,h=[],p=2e3,f={lockCount:0,get topStack(){return h[h.length-1]},getZIndex:function(t){if(!t)return++p;var e=h.find((function(e){return e.config.id===t}));return e?e.config.zIndex:++p},updateOverlay:function(){var t,e,n=f.clickHandle,r=f.topStack;if(d||(t=c.a,e={nativeOn:{click:n}},d=new a.a({props:t.props,render:function(n){return n(t,function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?u(Object(n),!0).forEach((function(e){o()(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({props:this.$props},e))}}).$mount()),r){var i=r.vm,l=r.config,h=i.$el;h&&h.parentNode&&11!==h.parentNode.nodeType?h.parentNode.appendChild(d.$el):document.body.appendChild(d.$el),s()(d,l,{value:!0})}else d.value=!1},openModal:function(t,e){var n=e.zIndex,r=e.duration,o=e.overlayClass,i=e.overlayStyle,s=e.id;h.push({vm:t,config:{id:s,zIndex:n,duration:r,overlayClass:o,overlayStyle:i}}),f.updateOverlay()},clickHandle:function(){var t=f.topStack;h.length&&t.vm.closeOnClickOverlay&&(t.vm.$emit("click-overlay"),t.vm.close())},closeOverlay:function(t){h.length&&(f.topStack.vm===t?(h.pop(),f.updateOverlay()):h=h.filter((function(e){return e.vm!==t})))}},v={value:{type:Boolean,default:!1},overlay:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},duration:{type:Number,default:.3},closeOnClickOverlay:{type:Boolean,default:!0},overlayClass:{type:String,default:""},overlayStyle:{type:Object,default:function(){return null}},zIndex:{type:Number}};function g(){var t=this;if(!this)return{};var e={};return Object.keys(v).forEach((function(n){e[n]=t[n]})),e}},,function(t,e,n){"use strict";var r=["top","action","cross","down","right","more","notice","plus","search","trolley","tick","minus","circle-cross"],o={name:"nut-icon",props:{type:{type:String,default:""},size:{type:String,default:""},color:{type:String,default:"#2e2d2d"},url:{type:String,default:""}},data:function(){return{icon:null}},watch:{url:function(t){this.icon=t}},created:function(){this.url?(this.icon=this.url,this.type="self"):-1===r.indexOf(this.type)?console.error("nut-icon组件type值("+this.type+")有误,无此icon!"):this.icon=n(19)("./"+this.type+".svg")}},i=n(0),s=Object(i.a)(o,(function(){var t=this.$createElement;return(this._self._c||t)("i",{class:["nut-icon","nut-icon-"+this.type],style:{height:this.size,width:this.size,color:this.color},domProps:{innerHTML:this._s(this.icon)}})}),[],!1,null,null,null);e.a=s.exports},,,,function(t,e){t.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 4"><rect x="14" y="20" width="16" height="4" rx="2" transform="translate(-14 -20)" fill-rule="evenodd"/></svg>'},function(t,e){t.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><g fill-rule="evenodd"><rect y="6" width="16" height="4" rx="2"/><rect transform="rotate(90 8 8)" y="6" width="16" height="4" rx="2"/></g></svg>'},function(t,e,n){"use strict";n.d(e,"b",(function(){return r}));var r={value:{type:Boolean,default:!1},overlay:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},duration:{type:Number,default:.3},closeOnClickOverlay:{type:Boolean,default:!0},overlayClass:{type:String,default:""},overlayStyle:{type:Object,default:function(){}},zIndex:{type:Number}},o={name:"nut-popup-overlay",props:r,methods:{touchmove:function(t){this.lockScroll&&t.preventDefault()}}},i=n(0),s=Object(i.a)(o,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("transition",{attrs:{name:"popup-fade"}},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.value,expression:"value"}],staticClass:"popup-bg nut-mask",class:t.overlayClass,style:Object.assign({},{animationDuration:t.duration+"s"},t.overlayStyle,{zIndex:t.zIndex}),on:{touchmove:function(e){return e.stopPropagation(),t.touchmove(e)}}})])}),[],!1,null,null,null);e.a=s.exports},function(t,e){t.exports='\r\n<svg width="13px" height="13px" viewBox="0 0 13 13" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">\r\n \x3c!-- Generator: Sketch 52.2 (67145) - http://www.bohemiancoding.com/sketch --\x3e\r\n <title>icon_address_black</title>\r\n <desc>Created with Sketch.</desc>\r\n <g id="搜索流程" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">\r\n <g id="3_搜索流程-copy" transform="translate(-137.000000, -90.000000)" fill="#333333">\r\n <g id="icon_address" transform="translate(137.000000, 90.000000)">\r\n <g id="分组">\r\n <path d="M8.84815,8.7378 C8.06565,9.3058 7.28265,9.8733 6.50015,10.4408 C5.71715,9.8733 4.93465,9.3058 4.15165,8.7378 C2.74865,7.7203 2.16065,5.9148 2.69565,4.2658 C3.23065,2.6168 4.76665,1.5003 6.50015,1.5003 C8.23365,1.5003 9.76965,2.6168 10.30465,4.2658 C10.83915,5.9148 10.25165,7.7203 8.84815,8.7378 M11.25565,3.9568 C10.58715,1.8958 8.66665,0.4998 6.50015,0.4998 C4.33315,0.4998 2.41315,1.8958 1.74415,3.9568 C1.07565,6.0183 1.81065,8.2753 3.56465,9.5478 C4.39665,10.1508 5.22815,10.7538 6.05965,11.3568 C6.32215,11.5478 6.67765,11.5478 6.94065,11.3568 C7.77215,10.7538 8.60365,10.1508 9.43515,9.5478 C11.18915,8.2753 11.92415,6.0183 11.25565,3.9568" id="Fill-2"></path>\r\n <path d="M7.9143,4.08595 C7.7188,3.89045 7.4023,3.89045 7.2068,4.08595 C7.0118,4.28145 7.0118,4.59745 7.2068,4.79295 C7.8373,5.42295 7.3908,6.49995 6.4998,6.49995 C5.6093,6.49995 5.1628,5.42295 5.7928,4.79295 C5.9878,4.59745 5.9878,4.28145 5.7928,4.08595 C5.5978,3.89045 5.2808,3.89045 5.0858,4.08595 C3.8258,5.34595 4.7183,7.49995 6.4998,7.49995 C8.2818,7.49995 9.1743,5.34595 7.9143,4.08595" id="Fill-4"></path>\r\n <path d="M8,12 L5,12 C4.724,12 4.5,12.2235 4.5,12.5 C4.5,12.7765 4.724,13 5,13 L8,13 C8.276,13 8.5,12.7765 8.5,12.5 C8.5,12.2235 8.276,12 8,12" id="Fill-6"></path>\r\n </g>\r\n </g>\r\n </g>\r\n </g>\r\n</svg>'},function(t,e){t.exports='\r\n<svg width="20px" height="20px" viewBox="0 0 20 20" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">\r\n \x3c!-- Generator: Sketch 59 (86127) - https://sketch.com --\x3e\r\n <title>back_original 2</title>\r\n <desc>Created with Sketch.</desc>\r\n <g id="地址选择" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">\r\n <g id="地址选择1" transform="translate(-18.000000, -284.000000)" fill="#333333">\r\n <g id="back_original-2" transform="translate(18.000000, 284.000000)">\r\n <path d="M4,10.0009322 C3.99859741,10.5049575 4.39578918,10.8616307 4.4994895,10.9579412 L12.2671305,18.7441237 C12.6723966,19.0981592 13.322967,19.083897 13.7141881,18.7069986 C14.1081366,18.3274726 14.0918341,17.7356488 13.6838673,17.379254 L6.23965094,10.0009322 L13.6838673,2.62261026 C14.0891334,2.26857481 14.1054091,1.67176406 13.7141881,1.2948657 C13.3202395,0.915339684 12.6750973,0.901345866 12.2671305,1.25774058 L4.4994895,9.03838594 C4.40147558,9.15875944 4.00141004,9.49690678 4,10.0009322 Z" id="back_original"></path>\r\n </g>\r\n </g>\r\n </g>\r\n</svg>'},function(t,e){t.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 30 30"><path d="M30 15c0 8.285-6.716 15-15 15-8.284 0-15-6.715-15-15C0 6.716 6.716 0 15 0c8.284 0 15 6.716 15 15zM10.56 8.44a1.501 1.501 0 0 0-2.12 2.121l4.439 4.44-4.44 4.438a1.5 1.5 0 0 0 2.121 2.122l4.44-4.44 4.44 4.44a1.501 1.501 0 0 0 2.12-2.122l-11-11zm11 2.12a1.5 1.5 0 0 0-2.12-2.121l-2 2a1.5 1.5 0 0 0 2.12 2.122l2-2z" fill-rule="evenodd" fill-opacity=".6"/></svg>'},function(t,e){t.exports='\r\n<svg width="13px" height="13px" viewBox="0 0 13 13" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">\r\n \x3c!-- Generator: Sketch 52.2 (67145) - http://www.bohemiancoding.com/sketch --\x3e\r\n <title>Fill 3</title>\r\n <desc>Created with Sketch.</desc>\r\n <g id="地址选择" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">\r\n <g id="地址选择-已有地址" transform="translate(-18.000000, -384.000000)" fill="#F2270C">\r\n <g id="Fill-3" transform="translate(18.000000, 384.000000)">\r\n <path d="M3.8235773,10.236 C2.6030773,9.113 1.3830773,7.9905 0.162577302,6.868 C-0.172922698,6.5595 0.0455773022,6 0.501077302,6 L1.0030773,6 C1.7555773,6 2.4800773,6.2825 3.0335773,6.792 C3.5180773,7.2375 4.0025773,7.6835 4.4870773,8.129 C5.9855773,6.6965 7.4835773,5.264 8.9820773,3.8315 C9.5400773,3.298 10.2825773,3 11.0545773,3 L11.4990773,3 C11.9500773,3 12.1705773,3.5495 11.8445773,3.861 C9.6265773,5.982 7.4090773,8.102 5.1910773,10.223 C4.7860773,10.6105 4.1415773,10.589 3.7625773,10.175 C3.7620773,10.1765 3.7615773,10.1775 3.7610773,10.1785" id="Fill-2"></path>\r\n </g>\r\n </g>\r\n </g>\r\n</svg>'},function(t,e){t.exports='\r\n<svg width="13px" height="13px" viewBox="0 0 13 13" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">\r\n \x3c!-- Generator: Sketch 52.2 (67145) - http://www.bohemiancoding.com/sketch --\x3e\r\n <title>Fill 3</title>\r\n <desc>Created with Sketch.</desc>\r\n <g id="分类" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">\r\n <g id="4-排序状态" transform="translate(-18.000000, -296.000000)" fill="#F2270C">\r\n <g id="分组-2-copy" transform="translate(0.000000, 222.000000)">\r\n <g id="Fill-3" transform="translate(18.000000, 74.000000)">\r\n <path d="M3.8235773,10.236 C2.6030773,9.113 1.3830773,7.9905 0.162577302,6.868 C-0.172922698,6.5595 0.0455773022,6 0.501077302,6 L1.0030773,6 C1.7555773,6 2.4800773,6.2825 3.0335773,6.792 C3.5180773,7.2375 4.0025773,7.6835 4.4870773,8.129 C5.9855773,6.6965 7.4835773,5.264 8.9820773,3.8315 C9.5400773,3.298 10.2825773,3 11.0545773,3 L11.4990773,3 C11.9500773,3 12.1705773,3.5495 11.8445773,3.861 C9.6265773,5.982 7.4090773,8.102 5.1910773,10.223 C4.7860773,10.6105 4.1415773,10.589 3.7625773,10.175 C3.7620773,10.1765 3.7615773,10.1775 3.7610773,10.1785" id="Fill-2"></path>\r\n </g>\r\n </g>\r\n </g>\r\n </g>\r\n</svg>'},function(t,e,n){var r={"./action.svg":20,"./address-location.svg":14,"./arrow-to-left.svg":21,"./arrow-to-top.svg":22,"./arrows-back.svg":15,"./back.svg":23,"./checked.svg":24,"./checked2.svg":25,"./circle-cross.svg":16,"./close.svg":26,"./cross.svg":27,"./down.svg":28,"./github.svg":29,"./hook-red.svg":17,"./message.svg":30,"./minus.svg":11,"./more.svg":31,"./more2.svg":32,"./more3.svg":33,"./notice.svg":34,"./plus.svg":12,"./qrcode.svg":35,"./right.svg":36,"./search.svg":37,"./search2.svg":38,"./share.svg":39,"./tick-red.svg":18,"./tick.svg":40,"./top.svg":41,"./trolley.svg":42,"./unchecked.svg":43};function o(t){var e=i(t);return n(e)}function i(t){if(!n.o(r,t)){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}return r[t]}o.keys=function(){return Object.keys(r)},o.resolve=i,t.exports=o,o.id=19},function(t,e){t.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><g fill-rule="evenodd"><path d="M.5 12c0 6.351 5.149 11.5 11.5 11.5S23.5 18.351 23.5 12 18.351.5 12 .5.5 5.649.5 12z" stroke-opacity=".6" stroke="currentColor" fill="#FFF"/><path d="M10.909 4.364h2.182v2.182h-2.182zM10.909 8.727h2.182v10.909h-2.182z"/></g></svg>'},function(t,e){t.exports='<svg width="19" height="36" xmlns="http://www.w3.org/2000/svg"><path d="M18.552 35.569a1.5 1.5 0 0 1-2.121-.017c-5.952-6.05-9.905-10.1-15.857-16.15a2 2 0 0 1 0-2.804c5.952-6.05 9.905-10.1 15.857-16.15a1.5 1.5 0 1 1 2.138 2.104C12.847 8.368 9.125 12.184 3.403 18c5.722 5.816 9.444 9.632 15.166 15.448a1.5 1.5 0 0 1-.017 2.121z" fill="#2E2D2D" fill-rule="evenodd"/></svg>'},function(t,e){t.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 31 39"><g fill-rule="evenodd"><path d="M1.41 0C.63 0 0 .672 0 1.5S.63 3 1.41 3h28.18C30.37 3 31 2.328 31 1.5S30.369 0 29.59 0H1.41zM17 7.5a1.5 1.5 0 0 0-3 0v30a1.5 1.5 0 1 0 3 0v-30zM8.44 12.44l-8 8a1.5 1.5 0 1 0 2.12 2.12l8-8a1.5 1.5 0 1 0-2.12-2.12z"/><path d="M16.56 6.44l14 14a1.5 1.5 0 1 1-2.12 2.12l-14-14a1.5 1.5 0 1 1 2.12-2.12z"/></g></svg>'},function(t,e){t.exports='\r\n<svg width="20px" height="20px" viewBox="0 0 20 20" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">\r\n \x3c!-- Generator: Sketch 59 (86127) - https://sketch.com --\x3e\r\n <title>back_original 2</title>\r\n <desc>Created with Sketch.</desc>\r\n <g id="地址选择" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">\r\n <g id="地址选择1" transform="translate(-18.000000, -284.000000)" fill="#333333">\r\n <g id="back_original-2" transform="translate(18.000000, 284.000000)">\r\n <path d="M4,10.0009322 C3.99859741,10.5049575 4.39578918,10.8616307 4.4994895,10.9579412 L12.2671305,18.7441237 C12.6723966,19.0981592 13.322967,19.083897 13.7141881,18.7069986 C14.1081366,18.3274726 14.0918341,17.7356488 13.6838673,17.379254 L6.23965094,10.0009322 L13.6838673,2.62261026 C14.0891334,2.26857481 14.1054091,1.67176406 13.7141881,1.2948657 C13.3202395,0.915339684 12.6750973,0.901345866 12.2671305,1.25774058 L4.4994895,9.03838594 C4.40147558,9.15875944 4.00141004,9.49690678 4,10.0009322 Z" id="back_original"></path>\r\n </g>\r\n </g>\r\n </g>\r\n</svg>'},function(t,e){t.exports='<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 50 50"><defs><path d="M38 19C38 8.507 29.493 0 19 0S0 8.507 0 19s8.507 19 19 19 19-8.507 19-19" id="b"/><filter x="-28.9%" y="-18.4%" width="157.9%" height="157.9%" filterUnits="objectBoundingBox" id="a"><feOffset dy="4" in="SourceAlpha" result="shadowOffsetOuter1"/><feGaussianBlur stdDeviation="3" in="shadowOffsetOuter1" result="shadowBlurOuter1"/><feColorMatrix values="0 0 0 0 0.941176471 0 0 0 0 0.145098039 0 0 0 0 0.0588235294 0 0 0 0.15 0" in="shadowBlurOuter1"/></filter></defs><g fill="none" fill-rule="evenodd"><g transform="translate(6 2)"><use fill="#000" filter="url(#a)" xlink:href="#b"/><use fill="#F0250F" xlink:href="#b"/></g><path d="M16 31h20V11H16z"/><path fill="#FFF" d="M16 21l2.5-2.5 5 4.5 10-9.5L36 16 24 28h-1z"/></g></svg>'},function(t,e){t.exports='<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 50 50"><defs><path d="M19 0C8.506 0 0 8.506 0 19s8.506 19 19 19 19-8.506 19-19S29.494 0 19 0z" id="b"/><filter x="-28.9%" y="-18.4%" width="157.9%" height="157.9%" filterUnits="objectBoundingBox" id="a"><feOffset dy="4" in="SourceAlpha" result="shadowOffsetOuter1"/><feGaussianBlur stdDeviation="3" in="shadowOffsetOuter1" result="shadowBlurOuter1"/><feComposite in="shadowBlurOuter1" in2="SourceAlpha" operator="out" result="shadowBlurOuter1"/><feColorMatrix values="0 0 0 0 0.941176471 0 0 0 0 0.145098039 0 0 0 0 0.0588235294 0 0 0 0.15 0" in="shadowBlurOuter1"/></filter></defs><g fill-rule="evenodd"><g transform="translate(6 2)"><use fill="#000" filter="url(#a)" xlink:href="#b"/><path stroke="#F0250F" stroke-width="3" d="M19 1.5C9.335 1.5 1.5 9.335 1.5 19S9.335 36.5 19 36.5 36.5 28.665 36.5 19 28.665 1.5 19 1.5z" stroke-linejoin="square" fill="#FFF"/></g><path d="M37 21c0-6.627-5.373-12-12-12s-12 5.373-12 12 5.373 12 12 12 12-5.373 12-12" fill="#F0250F"/></g></svg>'},function(t,e){t.exports='\r\n<svg width="20px" height="20px" viewBox="0 0 20 20" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">\r\n <title>btn_close</title>\r\n <g id="页面-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">\r\n <g id="4_商品详情页-赠品" transform="translate(-337.000000, -305.000000)">\r\n <g id="弹层" transform="translate(0.000000, 287.000000)">\r\n <g id="关闭" transform="translate(337.000000, 18.000000)">\r\n <circle id="椭圆形" fill="#F2F2F2" cx="10" cy="10" r="10"></circle>\r\n <path d="M12.2803,8.7803 C11.9873,9.0733 11.5128,9.0733 11.2198,8.7803 C10.9268,8.4878 10.9268,8.0128 11.2198,7.7198 L12.7198,6.2198 C13.0128,5.9268 13.4873,5.9268 13.7803,6.2198 C14.0733,6.5123 14.0733,6.9878 13.7803,7.2803 L12.2803,8.7803 Z" id="Fill-5" fill="#8C8C8C"></path>\r\n <path d="M13.7803,12.71975 C14.0733,13.01225 14.0733,13.48775 13.7803,13.78025 C13.4873,14.07325 13.0128,14.07325 12.7198,13.78025 C11.8128,12.87375 10.9068,11.96725 9.9998,11.06075 C9.0933,11.96725 8.1868,12.87375 7.2803,13.78025 C6.9873,14.07325 6.5128,14.07325 6.2198,13.78025 C5.9268,13.48775 5.9268,13.01225 6.2198,12.71975 C7.1263,11.81325 8.0328,10.90675 8.9393,10.00025 C8.0328,9.09375 7.1263,8.18725 6.2198,7.28025 C5.9268,6.98775 5.9268,6.51225 6.2198,6.21975 C6.5128,5.92675 6.9873,5.92675 7.2803,6.21975 C9.4468,8.38625 11.6138,10.55325 13.7803,12.71975" id="Fill-8" fill="#8C8C8C"></path>\r\n </g>\r\n </g>\r\n </g>\r\n </g>\r\n</svg>'},function(t,e){t.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 30 30"><g fill-rule="evenodd"><path d="M.44 2.56A1.5 1.5 0 1 1 2.56.44l27 27a1.5 1.5 0 1 1-2.12 2.12L15 17.123 2.56 29.56A1.5 1.5 0 1 1 .44 27.44L12.878 15 .44 2.56zM27.44.44a1.5 1.5 0 1 1 2.12 2.12l-9 9a1.5 1.5 0 1 1-2.12-2.12l9-9z"/></g></svg>'},function(t,e){t.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 30 11"><path d="M15 7.757L27.737.21a1.5 1.5 0 0 1 1.53 2.58c-4.5 2.668-9 5.334-13.5 8a1.503 1.503 0 0 1-1.53 0c-4.5-2.666-9-5.332-13.5-8A1.5 1.5 0 1 1 2.266.21C6.51 2.726 10.756 5.24 15 7.757" fill-rule="evenodd"/></svg>'},function(t,e){t.exports='<svg height="24" class="octicon octicon-mark-github" viewBox="0 0 16 16" version="1.1" width="24" aria-hidden="true"><path fill-rule="evenodd" d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.013 8.013 0 0 0 16 8c0-4.42-3.58-8-8-8z"></path></svg>'},function(t,e){t.exports='<svg width="40" height="40" xmlns="http://www.w3.org/2000/svg"><g fill="#2E2D2D" fill-rule="evenodd"><path d="M10 35.899c1.369-.79 2.743-1.58 4.111-2.371a1.377 1.377 0 0 1 1.136-.15l.021.006a18.57 18.57 0 0 0 7.865.348 18.198 18.198 0 0 0 4.757-1.507 17.286 17.286 0 0 0 2.912-1.763 16.288 16.288 0 0 0 2.467-2.282 15.604 15.604 0 0 0 1.874-2.649c.254-.455.485-.924.69-1.403A14.457 14.457 0 0 0 37 18.5a14.416 14.416 0 0 0-1.167-5.63 15.083 15.083 0 0 0-2.564-4.052 16.092 16.092 0 0 0-2.467-2.282 16.79 16.79 0 0 0-1.412-.954 17.746 17.746 0 0 0-4.655-1.968 18.577 18.577 0 0 0-9.467 0 18.085 18.085 0 0 0-3.155 1.159c-.512.246-1.013.515-1.5.809A16.774 16.774 0 0 0 7.901 7.62a15.883 15.883 0 0 0-2.184 2.487A15.346 15.346 0 0 0 4.17 12.87a14.413 14.413 0 0 0-.886 2.852A14.162 14.162 0 0 0 3 18.5c0 .932.101 1.862.284 2.776a14.455 14.455 0 0 0 1.212 3.56 1.5 1.5 0 1 1-2.691 1.324C-2.282 17.851.85 8.412 8.399 3.434c7.336-4.837 17.307-4.554 24.314.787 7.227 5.508 9.538 15.166 4.84 23.136-4.552 7.722-13.987 11.064-22.468 9.073l-5.829 3.367a1.5 1.5 0 0 1-2.249-1.299v-7C7.007 30.67 7.672 30 8.5 30c.828 0 1.5.67 1.5 1.498v4.401"/><path d="M18.5 17h3a1.5 1.5 0 1 1 0 3h-3a1.5 1.5 0 1 1 0-3M31.5 17a1.5 1.5 0 1 1 0 3h-3a1.5 1.5 0 1 1 0-3h3M11.5 17a1.5 1.5 0 1 1 0 3h-3a1.5 1.5 0 1 1 0-3h3"/></g></svg>'},function(t,e){t.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 35 9"><g transform="translate(0 -13)" fill-rule="evenodd"><rect opacity=".3" y="15" width="5" height="5" rx="2.5"/><circle opacity=".8" cx="17.5" cy="17.5" r="4.5"/><rect opacity=".3" x="30" y="15" width="5" height="5" rx="2.5"/></g></svg>'},function(t,e){t.exports='<svg width="37" height="37" xmlns="http://www.w3.org/2000/svg"><g fill="#2E2D2D" fill-rule="evenodd"><path d="M34.414 29.914a2 2 0 0 0 0-2.828l-4.5-4.5a2 2 0 0 0-2.828 0l-4.5 4.5a2 2 0 0 0 0 2.828l4.5 4.5a2 2 0 0 0 2.828 0l4.5-4.5" opacity=".35"/><path d="M34 13a1 1 0 0 1-1 1h-9a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h9a1 1 0 0 1 1 1v9zM33 0h-9a4 4 0 0 0-4 4v9a4 4 0 0 0 4 4h9a4 4 0 0 0 4-4V4a4 4 0 0 0-4-4zM14 13a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h9a1 1 0 0 1 1 1v9zM13 0H4a4 4 0 0 0-4 4v9a4 4 0 0 0 4 4h9a4 4 0 0 0 4-4V4a4 4 0 0 0-4-4zM14 33a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1v-9a1 1 0 0 1 1-1h9a1 1 0 0 1 1 1v9zm-1-13H4a4 4 0 0 0-4 4v9a4 4 0 0 0 4 4h9a4 4 0 0 0 4-4v-9a4 4 0 0 0-4-4zM33.707 29.207l-4.5 4.5a.999.999 0 0 1-1.414 0l-4.5-4.5a.999.999 0 0 1 0-1.414l4.5-4.5a.999.999 0 0 1 1.414 0l4.5 4.5a.999.999 0 0 1 0 1.414zm2.122-3.536l-4.5-4.5a4.002 4.002 0 0 0-5.658 0l-4.5 4.5a4.002 4.002 0 0 0 0 5.658l4.5 4.5a4.002 4.002 0 0 0 5.658 0l4.5-4.5a4.002 4.002 0 0 0 0-5.658z"/></g></svg>'},function(t,e){t.exports='<svg width="39" height="7" xmlns="http://www.w3.org/2000/svg"><g transform="translate(-1 -17)" fill="#2E2D2D" fill-rule="evenodd"><circle cx="36.5" cy="20.5" r="3.5"/><circle cx="20.5" cy="20.5" r="3.5"/><circle cx="4.5" cy="20.5" r="3.5"/></g></svg>'},function(t,e){t.exports='<svg t="1591940507377" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="1389" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><defs><style type="text/css"></style></defs><path d="M512 256c117.632 0 213.333333 95.701333 213.333333 213.333333v149.333334c0 13.845333 4.501333 27.328 12.8 38.4L789.333333 725.333333H234.666667l51.2-68.266666c8.298667-11.072 12.8-24.554667 12.8-38.4v-149.333334c0-117.632 95.701333-213.333333 213.333333-213.333333m0-64c-153.173333 0-277.333333 124.16-277.333333 277.333333v149.333334l-64 85.333333v42.666667c0 23.466667 19.2 42.666667 42.666666 42.666666h597.333334c23.466667 0 42.666667-19.2 42.666666-42.666666v-42.666667l-64-85.333333v-149.333334c0-153.173333-124.16-277.333333-277.333333-277.333333zM512 853.333333a64 64 0 0 1-64-64h-64c0 70.570667 57.429333 128 128 128s128-57.429333 128-128h-64a64 64 0 0 1-64 64z" p-id="1390"></path><path d="M512 256a42.666667 42.666667 0 1 1-0.021333-85.312A42.666667 42.666667 0 0 1 512 256h97.621333A105.962667 105.962667 0 0 0 618.666667 213.333333c0-58.816-47.850667-106.666667-106.666667-106.666666s-106.666667 47.850667-106.666667 106.666666c0 15.189333 3.306667 29.568 9.045334 42.666667H512z" p-id="1391"></path></svg>'},function(t,e){t.exports='<svg width="40" height="39" xmlns="http://www.w3.org/2000/svg"><g fill="#2E2D2D" fill-rule="evenodd"><path d="M34 39a6 6 0 0 0 6-6v-3.5a1.5 1.5 0 1 0-3 0V33a3 3 0 0 1-3 3H6a3 3 0 0 1-3-3v-3.5a1.5 1.5 0 1 0-3 0V33a6 6 0 0 0 6 6h28M38.5 18a1.5 1.5 0 1 1 0 3h-5a1.5 1.5 0 1 1 0-3h5M26.5 18a1.5 1.5 0 1 1 0 3h-25a1.5 1.5 0 1 1 0-3h25M40 6a6 6 0 0 0-6-6H6a6 6 0 0 0-6 6v3.5a1.5 1.5 0 1 0 3 0V6a3 3 0 0 1 3-3h28a3 3 0 0 1 3 3v3.5a1.5 1.5 0 1 0 3 0V6"/></g></svg>'},function(t,e){t.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 11 30"><g fill="none" fill-rule="evenodd"><path d="M-11 0h30v30h-30z"/><path d="M7.757 15C5.241 10.755 2.727 6.51.21 2.266A1.5 1.5 0 0 1 2.79.736l8 13.499c.28.472.28 1.058 0 1.53l-8 13.5a1.499 1.499 0 1 1-2.58-1.53L7.757 15z" fill="currentColor"/></g></svg>'},function(t,e){t.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 27 27"><path d="M13.658 22.979c-5.511.363-10.273-3.81-10.637-9.321-.363-5.511 3.81-10.273 9.321-10.637 5.511-.363 10.273 3.81 10.637 9.321.363 5.511-3.81 10.273-9.321 10.637zM26.56 24.44l-3.369-3.37c4.277-5.4 3.599-13.197-1.545-17.778-5.144-4.581-12.968-4.355-17.838.516-4.871 4.87-5.097 12.694-.516 17.838 4.581 5.143 12.378 5.822 17.778 1.545l3.37 3.37a1.5 1.5 0 0 0 2.12-2.121z" fill-rule="evenodd"/></svg>'},function(t,e){t.exports='<svg width="40" height="40" xmlns="http://www.w3.org/2000/svg"><g fill="#2E2D2D" fill-rule="evenodd"><path d="M24.495 34.027a1.5 1.5 0 0 1 1.03 2.818c-8.971 3.28-18.983-.611-23.385-9.088C-2.262 19.28.313 8.852 8.156 3.4 16-2.053 26.671-.834 33.083 6.246c6.412 7.08 6.571 17.82.371 25.087l6.107 6.107a1.501 1.501 0 0 1-2.122 2.121l-7.125-7.126a1.501 1.501 0 0 1 0-2.121c5.773-5.773 6.273-14.967 1.161-21.333-5.113-6.365-14.198-7.86-21.08-3.469-6.883 4.392-9.354 13.262-5.736 20.58 3.619 7.319 12.168 10.739 19.836 7.935"/><path d="M27.272 15.453a1.5 1.5 0 0 0 2.757-1.182 12 12 0 0 0-6.299-6.299 1.5 1.5 0 0 0-1.182 2.757 9 9 0 0 1 4.821 4.959"/></g></svg>'},function(t,e){t.exports='<svg width="40" height="40" xmlns="http://www.w3.org/2000/svg"><g fill="#2E2D2D" fill-rule="evenodd"><path d="M31 40H6a6 6 0 0 1-6-6V11a6 6 0 0 1 6-6h9.5a1.5 1.5 0 0 1 0 3H6a3 3 0 0 0-3 3v23a3 3 0 0 0 3 3h25a3 3 0 0 0 3-3v-9.5a1.5 1.5 0 0 1 3 0V34a6 6 0 0 1-6 6"/><path d="M39.435 5.313l-.024-.004a1.5 1.5 0 0 1 .15 2.252l-5 5a1.502 1.502 0 0 1-2.122 0 1.502 1.502 0 0 1 0-2.122l2.397-2.397C26.474 8.652 20 15.615 20 24v2.5a1.5 1.5 0 0 1-3 0V24c0-10.07 7.856-18.391 17.91-18.97-.824-.822-1.647-1.646-2.471-2.47a1.502 1.502 0 0 1 0-2.121 1.502 1.502 0 0 1 2.122 0l5 5"/></g></svg>'},function(t,e){t.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 21"><path d="M10 13.5l-7-6-3 3L10.5 21 28 3.5l-3-3z" fill-rule="evenodd"/></svg>'},function(t,e){t.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 31 33"><g fill-rule="evenodd"><path d="M17 1.5a1.5 1.5 0 0 0-3 0v30a1.5 1.5 0 1 0 3 0v-30zM8.44 6.44l-8 8a1.5 1.5 0 1 0 2.12 2.12l8-8a1.5 1.5 0 1 0-2.12-2.12z"/><path d="M16.56.44l14 14a1.5 1.5 0 1 1-2.12 2.12l-14-14A1.5 1.5 0 1 1 16.56.44z"/></g></svg>'},function(t,e){t.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 35 39"><path d="M3.63 5h22.363c5.789 0 9.278 4.972 8.312 10.342L32.6 24.037c-.56 3.69-4.112 5.893-7.9 5.893H5.27C4.513 29.93 4 29.274 4 28.52c0-.756.615-1.52 1.37-1.52H24.7c2.58 0 4.874-1.242 5.203-3.408l1.713-8.732C32.293 11.094 29.999 8 25.993 8H2.553C1.748 8 1.108 7.772.99 7.026L.017 1.581a1.367 1.367 0 1 1 2.699-.428L3.63 5zM3.5 16h12a1.5 1.5 0 0 1 1.5 1.5v.047a1.5 1.5 0 0 1-1.5 1.5h-12a1.5 1.5 0 0 1-1.5-1.5V17.5A1.5 1.5 0 0 1 3.5 16zM7 39a3 3 0 1 1 0-6 3 3 0 0 1 0 6zm20 0a3 3 0 1 1 0-6 3 3 0 0 1 0 6z" fill-rule="evenodd"/></svg>'},function(t,e){t.exports='<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 50 50"><defs><path d="M0 19c0 10.494 8.506 19 19 19s19-8.506 19-19S29.494 0 19 0 0 8.506 0 19z" id="b"/><filter x="-28.9%" y="-18.4%" width="157.9%" height="157.9%" filterUnits="objectBoundingBox" id="a"><feOffset dy="4" in="SourceAlpha" result="shadowOffsetOuter1"/><feGaussianBlur stdDeviation="3" in="shadowOffsetOuter1" result="shadowBlurOuter1"/><feComposite in="shadowBlurOuter1" in2="SourceAlpha" operator="out" result="shadowBlurOuter1"/><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.05 0" in="shadowBlurOuter1"/></filter></defs><g transform="translate(6 2)" fill="none" fill-rule="evenodd"><use fill="#000" filter="url(#a)" xlink:href="#b"/><path stroke-opacity=".6" stroke="#848484" stroke-width="3" d="M1.5 19c0 9.665 7.835 17.5 17.5 17.5S36.5 28.665 36.5 19 28.665 1.5 19 1.5 1.5 9.335 1.5 19z" stroke-linejoin="square" fill="#FFF"/></g></svg>'},function(t,e,n){"use strict";var r=n(3),o=n.n(r),i=n(1),s=n.n(i),l=n(7);var a=s.a.extend({data:function(){return{direction:""}},methods:{touchStart:function(t){this.resetTouchStatus(),this.startX=t.touches[0].clientX,this.startY=t.touches[0].clientY},touchMove:function(t){var e,n,r=t.touches[0];this.deltaX=r.clientX-this.startX,this.deltaY=r.clientY-this.startY,this.offsetX=Math.abs(this.deltaX),this.offsetY=Math.abs(this.deltaY),this.direction=this.direction||(e=this.offsetX,n=this.offsetY,e>n&&e>10?"horizontal":n>e&&n>10?"vertical":"")},resetTouchStatus:function(){this.direction="",this.deltaX=0,this.deltaY=0,this.offsetX=0,this.offsetY=0}}}),c=n(5),u=n(13),d=!1;try{var h=Object.defineProperty({},"passive",{get:function(){d=!0}});window.addEventListener("test",null,h)}catch(t){}function p(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];t.addEventListener(e,n,!!d&&{capture:!1,passive:r})}function f(t,e,n){t.removeEventListener(e,n)}n(54);function v(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function g(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?v(Object(n),!0).forEach((function(e){o()(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):v(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var w=/scroll|auto/i,m={id:{type:String|Number,default:""},position:{type:String,default:"center"},transition:String,closeable:{type:Boolean,default:!1},closeIconPosition:{type:String,default:"top-right"},closeIcon:{type:String,default:"cross"},closeOnClickOverlay:{type:Boolean,default:!0},destroyOnClose:{type:Boolean,default:!1},getContainer:String,round:{type:Boolean,default:!1}},y={name:"nut-popup",mixins:[a],components:{icon:l.a},props:g(g({},u.b),m),created:function(){this.transition?this.transitionName=this.transition:this.transitionName="popup-slide-".concat(this.position)},mounted:function(){this.value&&this.open()},beforeDestroy:function(){this.value&&this.close()},activated:function(){this.keepAlive&&(this.$emit("input",!0),this.keepAlive=!1)},deactivated:function(){this.value&&(this.close(),this.keepAlive=!0)},watch:{value:function(t){this[t?"open":"close"]()},position:function(t){this.transitionName="center"===t?"popup-fade":"popup-slide-".concat(this.position)},getContainer:"portal",overlay:"renderOverlay"},data:function(){return{showSlot:!0,transitionName:"popup-fade-center",overlayInstant:null}},computed:{transitionDuration:function(){return this.duration?this.duration+"s":"initial"}},methods:{open:function(){if(!this.opened){this.destroyOnClose&&(this.showSlot=!0),this.opened=!0,this.$emit("open");var t=this.duration,e=this.overlayClass,n=this.overlayStyle,r=this.lockScroll,o=this.closeOnClickOverlay,i={id:this.id,zIndex:this.zIndex?this.zIndex:c.b.getZIndex(this.id),duration:t,overlayClass:e,overlayStyle:n,lockScroll:r,closeOnClickOverlay:o};this.renderOverlay(i),this.lockScroll&&(p(document,"touchstart",this.touchStart),p(document,"touchmove",this.onTouchMove),c.b.lockCount||document.body.classList.add("nut-overflow-hidden"),c.b.lockCount++),this.$el.style.zIndex=this.zIndex?this.zIndex+1:c.b.getZIndex()}},renderOverlay:function(t){this.value&&(this.overlay?c.b.openModal(this,t):c.b.closeOverlay(this))},onTouchMove:function(t){this.touchMove(t);var e=this.getScroller(t.target),n=e||this.$el,r=n.scrollHeight,o=n.offsetHeight,i=n.scrollTop;(this.deltaY>0&&0===i||this.deltaY<0&&i+o>=r)&&t.cancelable&&t.preventDefault()},getScroller:function(t){for(var e=t;e&&"HTML"!==e.tagName&&1===e.nodeType;){var n=window.getComputedStyle(e).overflowY;if(w.test(n))return e;e=e.parentNode}},close:function(){var t=this;this.opened&&(this.$emit("close"),this.opened=!1,this.lockScroll&&(c.b.lockCount--,f(document,"touchstart",this.touchStart),f(document,"touchmove",this.onTouchMove),c.b.lockCount||document.body.classList.remove("nut-overflow-hidden")),this.destroyOnClose&&setTimeout((function(){t.showSlot=!1}),1e3*this.duration),c.b.closeOverlay(this),this.$emit("input",!1))},getElement:function(t){return document.querySelector(t)},portal:function(){var t,e=this.getContainer,n=this.$el;e?t=this.getElement(e):this.$parent&&(t=this.$parent.$el),t&&t!==n.parentNode&&t.appendChild(n)}}},x=n(0),C=Object(x.a)(y,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("transition",{attrs:{name:t.transitionName},on:{"after-enter":function(e){return t.$emit("opened")},"after-leave":function(e){return t.$emit("closed")}}},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.value,expression:"value"}],ref:"popupBox",staticClass:"popup-box",class:["popup-"+t.position,{round:t.round}],style:{animationDuration:t.transitionDuration},on:{click:function(e){return t.$emit("click",this)}}},[t.showSlot?t._t("default"):t._e(),t._v(" "),t.closeable?n("icon",{staticClass:"nutui-popup__close-icon",class:"nutui-popup__close-icon--"+t.closeIconPosition,attrs:{type:t.closeIcon,size:"12px"},nativeOn:{click:function(e){return t.$emit("input",!1)}}}):t._e()],2)])}),[],!1,null,null,null);e.a=C.exports},,,,,,,,,,function(t,e,n){},,,,,,,,,function(t,e,n){},function(t,e,n){"use strict";n.r(e);var r=n(44),o=(n(63),n(5));n.d(e,"getProps",(function(){return o.a}));var i=n(13);n.d(e,"overlayProps",(function(){return i.b})),r.a.install=function(t){t.component(r.a.name,r.a)},e.default=r.a},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){},,,,,,,,,,,,,function(t,e,n){"use strict";n.r(e);var r=n(2),o=n.n(r),i=n(3),s=n.n(i),l=n(1),a=n.n(l),c=n(64),u=n(44);function d(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function h(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?d(Object(n),!0).forEach((function(e){s()(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var p={name:"nut-notify",props:h(h({},c.overlayProps),{},{color:{type:String,default:""},msg:{type:[Number,String],default:""},duration:{type:[Number,String],default:3e3},className:{type:String,default:""},background:{type:String,default:""},type:{type:String,default:"danger"},showPopup:{type:Boolean,default:!1}}),watch:{showPopup:{handler:function(t){t&&(this.curVisible=t,this.show())}}},data:function(){return{timer:null,curVisible:!1}},components:{"nut-popup":u.a},methods:{handleClick:function(){"function"==typeof this.onClick&&this.onClick()},handleOpened:function(){"function"==typeof this.onOpened&&this.onOpened()},handleClosed:function(){"function"==typeof this.onClosed&&this.onClosed()},show:function(t){var e=this;this.clearTimer(),clearTimeout(this.textTimer),this.duration&&(this.timer=setTimeout((function(){e.hide(t)}),this.duration))},hide:function(t){var e=this;this.clearTimer(),this.curVisible=!1,t?clearTimeout(this.textTimer):this.textTimer=setTimeout((function(){clearTimeout(e.textTimer)}),300)},clearTimer:function(){this.timer&&(clearTimeout(this.timer),this.timer=null)}},destroyed:function(){this.textTimer=null,this.timer=null}},f=n(0),v=Object(f.a)(p,(function(){var t=this,e=t.$createElement;return(t._self._c||e)("nut-popup",{class:["nut-notify","nut-notify--"+t.type,{className:t.className}],style:{color:t.color,background:t.background},attrs:{position:"top",overlay:!1,lockScroll:!1},on:{click:t.handleClick,opened:t.handleOpened,closed:t.handleClosed},model:{value:t.curVisible,callback:function(e){t.curVisible=e},expression:"curVisible"}},[t.$slots.default?[t._t("default")]:[t._v(t._s(t.msg))]],2)}),[],!1,null,null,null).exports;function g(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function w(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?g(Object(n),!0).forEach((function(e){s()(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):g(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var m,y=a.a.extend(v),x=[],C={},b={type:"danger",showPopup:!1,msg:"",color:void 0,background:void 0,duration:3e3,className:"",onClosed:null,onClick:null,onOpened:null,textTimer:null},O=w({},b);function k(t){var e={id:"0"};return o()(e,O,C[t.type],t),e.id&&x[e.id]?((m=x[e.id]).hide(!0),m=o()(m,e)):(m=new y({propsData:e}),m=o()(m,t),e.id&&(x[e.id]=m)),m.vm=m.$mount(),document.body.appendChild(m.$el),a.a.nextTick((function(){m.showPopup=!0})),m}function S(t){t||console.warn("[NutUI Toast]: msg不能为空")}var M={text:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return S(t),k(w(w({},e),{},{msg:t}))},primary:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return S(t),k(w(w({},e),{},{msg:t,type:"primary"}))},success:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return S(t),k(w(w({},e),{},{msg:t,type:"success"}))},danger:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return S(t),k(w(w({},e),{},{msg:t,type:"danger"}))},warn:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return S(t),k(w(w({},e),{},{msg:t,type:"warning"}))},setDefaultOptions:function(t,e){"string"==typeof t?C[t]=e:o()(O,t)},resetDefaultOptions:function(t){"string"==typeof t?C[t]=null:(O=w({},b),C={})}},j=(n(142),[M,v]);j.install=function(t){t.prototype.$notify=M,t.component(v.name,v)};e.default=j}])}));
//# sourceMappingURL=notify.js.map