cyy-test-toast
Advanced tools
Comparing version 1.0.6 to 1.0.7
@@ -1,2 +0,2 @@ | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("toastPanel",[],t):"object"==typeof exports?exports.toastPanel=t():e.toastPanel=t()}("undefined"!=typeof self?self:this,function(){return function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var n={};return t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="/dist/",t(t.s=5)}([function(e,t){function n(e,t){var n=e[1]||"",o=e[3];if(!o)return n;if(t&&"function"==typeof btoa){var i=r(o);return[n].concat(o.sources.map(function(e){return"/*# sourceURL="+o.sourceRoot+e+" */"})).concat([i]).join("\n")}return[n].join("\n")}function r(e){return"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(e))))+" */"}e.exports=function(e){var t=[];return t.toString=function(){return this.map(function(t){var r=n(t,e);return t[2]?"@media "+t[2]+"{"+r+"}":r}).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}},function(e,t,n){function r(e){for(var t=0;t<e.length;t++){var n=e[t],r=d[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 s=[],o=0;o<n.parts.length;o++)s.push(i(n.parts[o]));d[n.id]={id:n.id,refs:1,parts:s}}}}function o(){var e=document.createElement("style");return e.type="text/css",l.appendChild(e),e}function i(e){var t,n,r=document.querySelector("style["+b+'~="'+e.id+'"]');if(r){if(h)return v;r.parentNode.removeChild(r)}if(g){var i=p++;r=f||(f=o()),t=s.bind(null,r,i,!1),n=s.bind(null,r,i,!0)}else r=o(),t=a.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()}}function s(e,t,n,r){var o=n?"":r.css;if(e.styleSheet)e.styleSheet.cssText=x(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)}}function a(e,t){var n=t.css,r=t.media,o=t.sourceMap;if(r&&e.setAttribute("media",r),m.ssrId&&e.setAttribute(b,t.id),o&&(n+="\n/*# sourceURL="+o.sources[0]+" */",n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(o))))+" */"),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}var u="undefined"!=typeof document;if("undefined"!=typeof DEBUG&&DEBUG&&!u)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 c=n(9),d={},l=u&&(document.head||document.getElementsByTagName("head")[0]),f=null,p=0,h=!1,v=function(){},m=null,b="data-vue-ssr-id",g="undefined"!=typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());e.exports=function(e,t,n,o){h=n,m=o||{};var i=c(e,t);return r(i),function(t){for(var n=[],o=0;o<i.length;o++){var s=i[o],a=d[s.id];a.refs--,n.push(a)}t?(i=c(e,t),r(i)):i=[];for(var o=0;o<n.length;o++){var a=n[o];if(0===a.refs){for(var u=0;u<a.parts.length;u++)a.parts[u]();delete d[a.id]}}}};var x=function(){var e=[];return function(t,n){return e[t]=n,e.filter(Boolean).join("\n")}}()},function(e,t){e.exports=function(e,t,n,r,o,i){var s,a=e=e||{},u=typeof e.default;"object"!==u&&"function"!==u||(s=e,a=e.default);var c="function"==typeof a?a.options:a;t&&(c.render=t.render,c.staticRenderFns=t.staticRenderFns,c._compiled=!0),n&&(c.functional=!0),o&&(c._scopeId=o);var d;if(i?(d=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),r&&r.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(i)},c._ssrRegister=d):r&&(d=r),d){var l=c.functional,f=l?c.render:c.beforeCreate;l?(c._injectStyles=d,c.render=function(e,t){return d.call(t),f(e,t)}):c.beforeCreate=f?[].concat(f,d):[d]}return{esModule:s,exports:a,options:c}}},function(e,t,n){"use strict";t.a={name:"test-panel",data:function(){return{checkedNumber:""}},components:{},methods:{clickThisNumber:function(e){this.checkedNumber=this.checkedNumber.concat(e.currentTarget.innerHTML)}}}},function(e,t,n){"use strict";t.a={name:"test-toast",data:function(){return{text:"",toastHidden:!1}},created:function(){},components:{},methods:{toastPlugin:function(e,t){var n=this;this.text=e,this.toastHidden=!0,setTimeout(function(){n.toastHidden=!1},t)}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(6),o=n(11),i={};i.install=function(e,t){e.prototype.$msg="Hello I am test.js456",e.prototype.$myMethod=function(e){return!(e.length<0)&&(e=e.join("连接你我"))},e.component(r.a.name,r.a),e.component(o.a.name,o.a),e.myGlobalMethod=function(){},e.directive("my-directive",{bind:function(e,t,n,r){}}),e.mixin({created:function(){}})},t.default=i},function(e,t,n){"use strict";function r(e){n(7)}var o=n(3),i=n(10),s=n(2),a=r,u=s(o.a,i.a,!1,a,null,null);t.a=u.exports},function(e,t,n){var r=n(8);"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);n(1)("2582be19",r,!0,{})},function(e,t,n){t=e.exports=n(0)(!1),t.push([e.i,".number-show{height:20px}.number-panel ul{padding:0}.number-panel ul li{display:inline-block;width:28%;height:50px;line-height:50px;margin-top:20px;background:#ddd;border-radius:8px;margin-right:10px}.number-panel ul li input{display:none}",""])},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=i[1],u=i[2],c=i[3],d={id:e+":"+o,css:a,media:u,sourceMap:c};r[s]?r[s].parts.push(d):n.push(r[s]={id:s,parts:[d]})}return n}},function(e,t,n){"use strict";var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("div",{staticClass:"number-panel"},[n("p",{directives:[{name:"show",rawName:"v-show",value:e.checkedNumber.length>0,expression:"checkedNumber.length>0"}],staticClass:"number-show"},[e._v(e._s(e.checkedNumber))]),e._v(" "),n("p",{directives:[{name:"show",rawName:"v-show",value:!e.checkedNumber,expression:"!checkedNumber"}],staticClass:"number-show"}),e._v(" "),n("ul",[e._l(9,function(t){return n("li",{key:t,on:{click:function(t){return e.clickThisNumber(t)}}},[e._v(e._s(t))])}),e._v(" "),n("li",{on:{click:function(t){return e.clickThisNumber(t)}}},[e._v("0")])],2)])])},o=[],i={render:r,staticRenderFns:o};t.a=i},function(e,t,n){"use strict";function r(e){n(12)}var o=n(4),i=n(14),s=n(2),a=r,u=s(o.a,i.a,!1,a,null,null);t.a=u.exports},function(e,t,n){var r=n(13);"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);n(1)("727bdeb0",r,!0,{})},function(e,t,n){t=e.exports=n(0)(!1),t.push([e.i,".toast{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:0;min-height:0;text-align:center;background:rgba(0,0,0,.5);border-radius:5px;color:#fff;transition:all .5s;z-index:-1;opacity:0}.toast.active{width:150px;min-height:25px;opacity:1;z-index:11}",""])},function(e,t,n){"use strict";var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("div",{ref:"toastPosition",staticClass:"toast",class:{active:e.toastHidden}},[n("div",{staticClass:"toast-warpper"},[e._v("\n "+e._s(e.text)+"\n ")])])])},o=[],i={render:r,staticRenderFns:o};t.a=i}])}); | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("toastPanel",[],t):"object"==typeof exports?exports.toastPanel=t():e.toastPanel=t()}("undefined"!=typeof self?self:this,function(){return function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var n={};return t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="/dist/",t(t.s=5)}([function(e,t){function n(e,t){var n=e[1]||"",o=e[3];if(!o)return n;if(t&&"function"==typeof btoa){var i=r(o);return[n].concat(o.sources.map(function(e){return"/*# sourceURL="+o.sourceRoot+e+" */"})).concat([i]).join("\n")}return[n].join("\n")}function r(e){return"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(e))))+" */"}e.exports=function(e){var t=[];return t.toString=function(){return this.map(function(t){var r=n(t,e);return t[2]?"@media "+t[2]+"{"+r+"}":r}).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}},function(e,t,n){function r(e){for(var t=0;t<e.length;t++){var n=e[t],r=d[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 s=[],o=0;o<n.parts.length;o++)s.push(i(n.parts[o]));d[n.id]={id:n.id,refs:1,parts:s}}}}function o(){var e=document.createElement("style");return e.type="text/css",l.appendChild(e),e}function i(e){var t,n,r=document.querySelector("style["+b+'~="'+e.id+'"]');if(r){if(h)return v;r.parentNode.removeChild(r)}if(g){var i=p++;r=f||(f=o()),t=s.bind(null,r,i,!1),n=s.bind(null,r,i,!0)}else r=o(),t=a.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()}}function s(e,t,n,r){var o=n?"":r.css;if(e.styleSheet)e.styleSheet.cssText=x(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)}}function a(e,t){var n=t.css,r=t.media,o=t.sourceMap;if(r&&e.setAttribute("media",r),m.ssrId&&e.setAttribute(b,t.id),o&&(n+="\n/*# sourceURL="+o.sources[0]+" */",n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(o))))+" */"),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}var u="undefined"!=typeof document;if("undefined"!=typeof DEBUG&&DEBUG&&!u)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 c=n(9),d={},l=u&&(document.head||document.getElementsByTagName("head")[0]),f=null,p=0,h=!1,v=function(){},m=null,b="data-vue-ssr-id",g="undefined"!=typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());e.exports=function(e,t,n,o){h=n,m=o||{};var i=c(e,t);return r(i),function(t){for(var n=[],o=0;o<i.length;o++){var s=i[o],a=d[s.id];a.refs--,n.push(a)}t?(i=c(e,t),r(i)):i=[];for(var o=0;o<n.length;o++){var a=n[o];if(0===a.refs){for(var u=0;u<a.parts.length;u++)a.parts[u]();delete d[a.id]}}}};var x=function(){var e=[];return function(t,n){return e[t]=n,e.filter(Boolean).join("\n")}}()},function(e,t){e.exports=function(e,t,n,r,o,i){var s,a=e=e||{},u=typeof e.default;"object"!==u&&"function"!==u||(s=e,a=e.default);var c="function"==typeof a?a.options:a;t&&(c.render=t.render,c.staticRenderFns=t.staticRenderFns,c._compiled=!0),n&&(c.functional=!0),o&&(c._scopeId=o);var d;if(i?(d=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),r&&r.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(i)},c._ssrRegister=d):r&&(d=r),d){var l=c.functional,f=l?c.render:c.beforeCreate;l?(c._injectStyles=d,c.render=function(e,t){return d.call(t),f(e,t)}):c.beforeCreate=f?[].concat(f,d):[d]}return{esModule:s,exports:a,options:c}}},function(e,t,n){"use strict";t.a={name:"test-panel",data:function(){return{checkedNumber:""}},components:{},methods:{clickThisNumber:function(e){this.checkedNumber=this.checkedNumber.concat(e.currentTarget.innerHTML)}}}},function(e,t,n){"use strict";t.a={name:"test-toast",data:function(){return{text:"",toastHidden:!1}},created:function(){},components:{},methods:{toastPlugin:function(e,t){var n=this;this.text=e,this.toastHidden=!0,setTimeout(function(){n.toastHidden=!1},t)}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(6),o=n(11),i={};i.install=function(e,t){e.prototype.$msg="Hello I am test.js789",e.prototype.$myMethod=function(e){return!(e.length<0)&&(e=e.join("连接你我"))},e.component(r.a.name,r.a),e.component(o.a.name,o.a),e.myGlobalMethod=function(){},e.directive("my-directive",{bind:function(e,t,n,r){}}),e.mixin({created:function(){}})},t.default=i},function(e,t,n){"use strict";function r(e){n(7)}var o=n(3),i=n(10),s=n(2),a=r,u=s(o.a,i.a,!1,a,null,null);t.a=u.exports},function(e,t,n){var r=n(8);"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);n(1)("2582be19",r,!0,{})},function(e,t,n){t=e.exports=n(0)(!1),t.push([e.i,".number-show{height:20px}.number-panel ul{padding:0}.number-panel ul li{display:inline-block;width:28%;height:50px;line-height:50px;margin-top:20px;background:#ddd;border-radius:8px;margin-right:10px}.number-panel ul li input{display:none}",""])},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=i[1],u=i[2],c=i[3],d={id:e+":"+o,css:a,media:u,sourceMap:c};r[s]?r[s].parts.push(d):n.push(r[s]={id:s,parts:[d]})}return n}},function(e,t,n){"use strict";var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("div",{staticClass:"number-panel"},[n("p",{directives:[{name:"show",rawName:"v-show",value:e.checkedNumber.length>0,expression:"checkedNumber.length>0"}],staticClass:"number-show"},[e._v(e._s(e.checkedNumber))]),e._v(" "),n("p",{directives:[{name:"show",rawName:"v-show",value:!e.checkedNumber,expression:"!checkedNumber"}],staticClass:"number-show"}),e._v(" "),n("ul",[e._l(9,function(t){return n("li",{key:t,on:{click:function(t){return e.clickThisNumber(t)}}},[e._v(e._s(t))])}),e._v(" "),n("li",{on:{click:function(t){return e.clickThisNumber(t)}}},[e._v("0")])],2)])])},o=[],i={render:r,staticRenderFns:o};t.a=i},function(e,t,n){"use strict";function r(e){n(12)}var o=n(4),i=n(14),s=n(2),a=r,u=s(o.a,i.a,!1,a,null,null);t.a=u.exports},function(e,t,n){var r=n(13);"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);n(1)("727bdeb0",r,!0,{})},function(e,t,n){t=e.exports=n(0)(!1),t.push([e.i,".toast{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:0;min-height:0;text-align:center;background:rgba(0,0,0,.5);border-radius:5px;color:#fff;transition:all .5s;z-index:-1;opacity:0}.toast.active{width:150px;min-height:25px;opacity:1;z-index:11}",""])},function(e,t,n){"use strict";var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("div",{ref:"toastPosition",staticClass:"toast",class:{active:e.toastHidden}},[n("div",{staticClass:"toast-warpper"},[e._v("\n "+e._s(e.text)+"\n ")])])])},o=[],i={render:r,staticRenderFns:o};t.a=i}])}); | ||
//# sourceMappingURL=toastPanel.js.map |
{ | ||
"name": "cyy-test-toast", | ||
"description": "A Vue.js project", | ||
"version": "1.0.6", | ||
"version": "1.0.7", | ||
"author": "cyy9381 <cyy9381@163.com>", | ||
@@ -6,0 +6,0 @@ "license": "MIT", |
@@ -9,3 +9,3 @@ import testPanel from './panel.vue' | ||
// 4. 添加实例方法 | ||
Vue.prototype.$msg = 'Hello I am test.js456' // 给vue注册一个全局的属性 | ||
Vue.prototype.$msg = 'Hello I am test.js789' // 给vue注册一个全局的属性 | ||
Vue.prototype.$myMethod = function (arr) { // 给vue注册一个全局的方法 | ||
@@ -12,0 +12,0 @@ if (arr.length < 0) { |
Sorry, the diff of this file is not supported yet