UNPKG

npmcompenent

Version:

## Project setup ``` npm install ```

2 lines 3.15 kB
(function(e,n){"object"===typeof exports&&"object"===typeof module?module.exports=n():"function"===typeof define&&define.amd?define([],n):"object"===typeof exports?exports["vcolorpicker"]=n():e["vcolorpicker"]=n()})("undefined"!==typeof self?self:this,(function(){return function(e){var n={};function t(o){if(n[o])return n[o].exports;var r=n[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,t),r.l=!0,r.exports}return t.m=e,t.c=n,t.d=function(e,n,o){t.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:o})},t.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,n){if(1&n&&(e=t(e)),8&n)return e;if(4&n&&"object"===typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(t.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var r in e)t.d(o,r,function(n){return e[n]}.bind(null,r));return o},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,n){return Object.prototype.hasOwnProperty.call(e,n)},t.p="",t(t.s="fb15")}({f6fd:function(e,n){(function(e){var n="currentScript",t=e.getElementsByTagName("script");n in e||Object.defineProperty(e,n,{get:function(){try{throw new Error}catch(o){var e,n=(/.*at [^\(]*\((.*):.+:.+\)$/gi.exec(o.stack)||[!1])[1];for(e in t)if(t[e].src==n||"interactive"==t[e].readyState)return t[e];return null}}})})(document)},fb15:function(e,n,t){"use strict";var o;(t.r(n),"undefined"!==typeof window)&&(t("f6fd"),(o=window.document.currentScript)&&(o=o.src.match(/(.+\/)[^/]+\.js(\?.*)?$/))&&(t.p=o[1]));var r=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",[e._v("这是demo组件")])},i=[],c={name:"demoComponent"},u=c;function f(e,n,t,o,r,i,c,u){var f,a="function"===typeof e?e.options:e;if(n&&(a.render=n,a.staticRenderFns=t,a._compiled=!0),o&&(a.functional=!0),i&&(a._scopeId="data-v-"+i),c?(f=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(c)},a._ssrRegister=f):r&&(f=u?function(){r.call(this,this.$root.$options.shadowRoot)}:r),f)if(a.functional){a._injectStyles=f;var l=a.render;a.render=function(e,n){return f.call(n),l(e,n)}}else{var s=a.beforeCreate;a.beforeCreate=s?[].concat(s,f):[f]}return{exports:e,options:a}}var a=f(u,r,i,!1,null,null,null),l=a.exports;l.install=function(e){e.component(l.name,l)};var s=l,d=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",[e._v("这是一个新的demo组件")])},p=[],m={name:"newDemo"},v=m,_=f(v,d,p,!1,null,null,null),y=_.exports;y.install=function(e){e.component(y.name,y)};var b=y;const h=[s,b],w=function(e){w.installed||h.forEach(n=>{e.component(n.name,n)})};"undefined"!=typeof window&&window.Vue&&w(window.Vue);var x={install:w,demoComponent:s,newDemo:b};n["default"]=x}})})); //# sourceMappingURL=vcolorpicker.umd.min.js.map