@cosyst/ui-lib 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +0 -0
- package/lib/demo.html +1 -0
- package/lib/index.common.js +2378 -0
- package/lib/index.css +1 -0
- package/lib/index.umd.js +2397 -0
- package/lib/index.umd.min.js +1 -0
- package/package.json +46 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(function(t,r){"object"===typeof exports&&"object"===typeof module?module.exports=r(require("vue")):"function"===typeof define&&define.amd?define([],r):"object"===typeof exports?exports["index"]=r(require("vue")):t["index"]=r(t["Vue"])})("undefined"!==typeof self?self:this,t=>(()=>{var r={5608(){},9274(r){"use strict";r.exports=t},9306(t,r,e){"use strict";var n=e(4901),o=e(6823),i=TypeError;t.exports=function(t){if(n(t))return t;throw new i(o(t)+" is not a function")}},8551(t,r,e){"use strict";var n=e(34),o=String,i=TypeError;t.exports=function(t){if(n(t))return t;throw new i(o(t)+" is not an object")}},235(t,r,e){"use strict";var n=e(9213).forEach,o=e(4598),i=o("forEach");t.exports=i?[].forEach:function(t){return n(this,t,arguments.length>1?arguments[1]:void 0)}},9617(t,r,e){"use strict";var n=e(5397),o=e(5610),i=e(6198),u=function(t){return function(r,e,u){var s=n(r),c=i(s);if(0===c)return!t&&-1;var a,f=o(u,c);if(t&&e!==e){while(c>f)if(a=s[f++],a!==a)return!0}else for(;c>f;f++)if((t||f in s)&&s[f]===e)return t||f||0;return!t&&-1}};t.exports={includes:u(!0),indexOf:u(!1)}},9213(t,r,e){"use strict";var n=e(6080),o=e(7055),i=e(8981),u=e(6198),s=e(1469),c=e(4659),a=function(t){var r=1===t,e=2===t,a=3===t,f=4===t,p=6===t,l=7===t,v=5===t||p;return function(y,b,d){for(var h,g,m=i(y),x=o(m),w=u(x),S=n(b,d),O=0,j=0,P=r?s(y,w):e||l?s(y,0):void 0;w>O;O++)if((v||O in x)&&(h=x[O],g=S(h,O,m),t))if(r)c(P,O,g);else if(g)switch(t){case 3:return!0;case 5:return h;case 6:return O;case 2:c(P,j++,h)}else switch(t){case 4:return!1;case 7:c(P,j++,h)}return p?-1:a||f?f:P}};t.exports={forEach:a(0),map:a(1),filter:a(2),some:a(3),every:a(4),find:a(5),findIndex:a(6),filterReject:a(7)}},4598(t,r,e){"use strict";var n=e(9039);t.exports=function(t,r){var e=[][t];return!!e&&n(function(){e.call(null,r||function(){return 1},1)})}},7433(t,r,e){"use strict";var n=e(4376),o=e(3517),i=e(34),u=e(8227),s=u("species"),c=Array;t.exports=function(t){var r;return n(t)&&(r=t.constructor,o(r)&&(r===c||n(r.prototype))?r=void 0:i(r)&&(r=r[s],null===r&&(r=void 0))),void 0===r?c:r}},1469(t,r,e){"use strict";var n=e(7433);t.exports=function(t,r){return new(n(t))(0===r?0:r)}},2195(t,r,e){"use strict";var n=e(9504),o=n({}.toString),i=n("".slice);t.exports=function(t){return i(o(t),8,-1)}},6955(t,r,e){"use strict";var n=e(2140),o=e(4901),i=e(2195),u=e(8227),s=u("toStringTag"),c=Object,a="Arguments"===i(function(){return arguments}()),f=function(t,r){try{return t[r]}catch(e){}};t.exports=n?i:function(t){var r,e,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(e=f(r=c(t),s))?e:a?i(r):"Object"===(n=i(r))&&o(r.callee)?"Arguments":n}},7740(t,r,e){"use strict";var n=e(9297),o=e(5031),i=e(7347),u=e(4913);t.exports=function(t,r,e){for(var s=o(r),c=u.f,a=i.f,f=0;f<s.length;f++){var p=s[f];n(t,p)||e&&n(e,p)||c(t,p,a(r,p))}}},6699(t,r,e){"use strict";var n=e(3724),o=e(4913),i=e(6980);t.exports=n?function(t,r,e){return o.f(t,r,i(1,e))}:function(t,r,e){return t[r]=e,t}},6980(t){"use strict";t.exports=function(t,r){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:r}}},4659(t,r,e){"use strict";var n=e(3724),o=e(4913),i=e(6980);t.exports=function(t,r,e){n?o.f(t,r,i(0,e)):t[r]=e}},2106(t,r,e){"use strict";var n=e(283),o=e(4913);t.exports=function(t,r,e){return e.get&&n(e.get,r,{getter:!0}),e.set&&n(e.set,r,{setter:!0}),o.f(t,r,e)}},6840(t,r,e){"use strict";var n=e(4901),o=e(4913),i=e(283),u=e(9433);t.exports=function(t,r,e,s){s||(s={});var c=s.enumerable,a=void 0!==s.name?s.name:r;if(n(e)&&i(e,a,s),s.global)c?t[r]=e:u(r,e);else{try{s.unsafe?t[r]&&(c=!0):delete t[r]}catch(f){}c?t[r]=e:o.f(t,r,{value:e,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return t}},9433(t,r,e){"use strict";var n=e(4576),o=Object.defineProperty;t.exports=function(t,r){try{o(n,t,{value:r,configurable:!0,writable:!0})}catch(e){n[t]=r}return r}},3724(t,r,e){"use strict";var n=e(9039);t.exports=!n(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})},4055(t,r,e){"use strict";var n=e(4576),o=e(34),i=n.document,u=o(i)&&o(i.createElement);t.exports=function(t){return u?i.createElement(t):{}}},8727(t){"use strict";t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},2839(t,r,e){"use strict";var n=e(4576),o=n.navigator,i=o&&o.userAgent;t.exports=i?String(i):""},9519(t,r,e){"use strict";var n,o,i=e(4576),u=e(2839),s=i.process,c=i.Deno,a=s&&s.versions||c&&c.version,f=a&&a.v8;f&&(n=f.split("."),o=n[0]>0&&n[0]<4?1:+(n[0]+n[1])),!o&&u&&(n=u.match(/Edge\/(\d+)/),(!n||n[1]>=74)&&(n=u.match(/Chrome\/(\d+)/),n&&(o=+n[1]))),t.exports=o},6518(t,r,e){"use strict";var n=e(4576),o=e(7347).f,i=e(6699),u=e(6840),s=e(9433),c=e(7740),a=e(2796);t.exports=function(t,r){var e,f,p,l,v,y,b=t.target,d=t.global,h=t.stat;if(f=d?n:h?n[b]||s(b,{}):n[b]&&n[b].prototype,f)for(p in r){if(v=r[p],t.dontCallGetSet?(y=o(f,p),l=y&&y.value):l=f[p],e=a(d?p:b+(h?".":"#")+p,t.forced),!e&&void 0!==l){if(typeof v==typeof l)continue;c(v,l)}(t.sham||l&&l.sham)&&i(v,"sham",!0),u(f,p,v,t)}}},9039(t){"use strict";t.exports=function(t){try{return!!t()}catch(r){return!0}}},6080(t,r,e){"use strict";var n=e(7476),o=e(9306),i=e(616),u=n(n.bind);t.exports=function(t,r){return o(t),void 0===r?t:i?u(t,r):function(){return t.apply(r,arguments)}}},616(t,r,e){"use strict";var n=e(9039);t.exports=!n(function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})},9565(t,r,e){"use strict";var n=e(616),o=Function.prototype.call;t.exports=n?o.bind(o):function(){return o.apply(o,arguments)}},350(t,r,e){"use strict";var n=e(3724),o=e(9297),i=Function.prototype,u=n&&Object.getOwnPropertyDescriptor,s=o(i,"name"),c=s&&"something"===function(){}.name,a=s&&(!n||n&&u(i,"name").configurable);t.exports={EXISTS:s,PROPER:c,CONFIGURABLE:a}},7476(t,r,e){"use strict";var n=e(2195),o=e(9504);t.exports=function(t){if("Function"===n(t))return o(t)}},9504(t,r,e){"use strict";var n=e(616),o=Function.prototype,i=o.call,u=n&&o.bind.bind(i,i);t.exports=n?u:function(t){return function(){return i.apply(t,arguments)}}},7751(t,r,e){"use strict";var n=e(4576),o=e(4901),i=function(t){return o(t)?t:void 0};t.exports=function(t,r){return arguments.length<2?i(n[t]):n[t]&&n[t][r]}},5966(t,r,e){"use strict";var n=e(9306),o=e(4117);t.exports=function(t,r){var e=t[r];return o(e)?void 0:n(e)}},4576(t,r,e){"use strict";var n=function(t){return t&&t.Math===Math&&t};t.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof e.g&&e.g)||n("object"==typeof this&&this)||function(){return this}()||Function("return this")()},9297(t,r,e){"use strict";var n=e(9504),o=e(8981),i=n({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,r){return i(o(t),r)}},421(t){"use strict";t.exports={}},5917(t,r,e){"use strict";var n=e(3724),o=e(9039),i=e(4055);t.exports=!n&&!o(function(){return 7!==Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a})},7055(t,r,e){"use strict";var n=e(9504),o=e(9039),i=e(2195),u=Object,s=n("".split);t.exports=o(function(){return!u("z").propertyIsEnumerable(0)})?function(t){return"String"===i(t)?s(t,""):u(t)}:u},3706(t,r,e){"use strict";var n=e(9504),o=e(4901),i=e(7629),u=n(Function.toString);o(i.inspectSource)||(i.inspectSource=function(t){return u(t)}),t.exports=i.inspectSource},1181(t,r,e){"use strict";var n,o,i,u=e(8622),s=e(4576),c=e(34),a=e(6699),f=e(9297),p=e(7629),l=e(6119),v=e(421),y="Object already initialized",b=s.TypeError,d=s.WeakMap,h=function(t){return i(t)?o(t):n(t,{})},g=function(t){return function(r){var e;if(!c(r)||(e=o(r)).type!==t)throw new b("Incompatible receiver, "+t+" required");return e}};if(u||p.state){var m=p.state||(p.state=new d);m.get=m.get,m.has=m.has,m.set=m.set,n=function(t,r){if(m.has(t))throw new b(y);return r.facade=t,m.set(t,r),r},o=function(t){return m.get(t)||{}},i=function(t){return m.has(t)}}else{var x=l("state");v[x]=!0,n=function(t,r){if(f(t,x))throw new b(y);return r.facade=t,a(t,x,r),r},o=function(t){return f(t,x)?t[x]:{}},i=function(t){return f(t,x)}}t.exports={set:n,get:o,has:i,enforce:h,getterFor:g}},4376(t,r,e){"use strict";var n=e(2195);t.exports=Array.isArray||function(t){return"Array"===n(t)}},4901(t){"use strict";var r="object"==typeof document&&document.all;t.exports="undefined"==typeof r&&void 0!==r?function(t){return"function"==typeof t||t===r}:function(t){return"function"==typeof t}},3517(t,r,e){"use strict";var n=e(9504),o=e(9039),i=e(4901),u=e(6955),s=e(7751),c=e(3706),a=function(){},f=s("Reflect","construct"),p=/^\s*(?:class|function)\b/,l=n(p.exec),v=!p.test(a),y=function(t){if(!i(t))return!1;try{return f(a,[],t),!0}catch(r){return!1}},b=function(t){if(!i(t))return!1;switch(u(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return v||!!l(p,c(t))}catch(r){return!0}};b.sham=!0,t.exports=!f||o(function(){var t;return y(y.call)||!y(Object)||!y(function(){t=!0})||t})?b:y},2796(t,r,e){"use strict";var n=e(9039),o=e(4901),i=/#|\.prototype\./,u=function(t,r){var e=c[s(t)];return e===f||e!==a&&(o(r)?n(r):!!r)},s=u.normalize=function(t){return String(t).replace(i,".").toLowerCase()},c=u.data={},a=u.NATIVE="N",f=u.POLYFILL="P";t.exports=u},4117(t){"use strict";t.exports=function(t){return null===t||void 0===t}},34(t,r,e){"use strict";var n=e(4901);t.exports=function(t){return"object"==typeof t?null!==t:n(t)}},6395(t){"use strict";t.exports=!1},757(t,r,e){"use strict";var n=e(7751),o=e(4901),i=e(1625),u=e(7040),s=Object;t.exports=u?function(t){return"symbol"==typeof t}:function(t){var r=n("Symbol");return o(r)&&i(r.prototype,s(t))}},6198(t,r,e){"use strict";var n=e(8014);t.exports=function(t){return n(t.length)}},283(t,r,e){"use strict";var n=e(9504),o=e(9039),i=e(4901),u=e(9297),s=e(3724),c=e(350).CONFIGURABLE,a=e(3706),f=e(1181),p=f.enforce,l=f.get,v=String,y=Object.defineProperty,b=n("".slice),d=n("".replace),h=n([].join),g=s&&!o(function(){return 8!==y(function(){},"length",{value:8}).length}),m=String(String).split("String"),x=t.exports=function(t,r,e){"Symbol("===b(v(r),0,7)&&(r="["+d(v(r),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),e&&e.getter&&(r="get "+r),e&&e.setter&&(r="set "+r),(!u(t,"name")||c&&t.name!==r)&&(s?y(t,"name",{value:r,configurable:!0}):t.name=r),g&&e&&u(e,"arity")&&t.length!==e.arity&&y(t,"length",{value:e.arity});try{e&&u(e,"constructor")&&e.constructor?s&&y(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(o){}var n=p(t);return u(n,"source")||(n.source=h(m,"string"==typeof r?r:"")),t};Function.prototype.toString=x(function(){return i(this)&&l(this).source||a(this)},"toString")},741(t){"use strict";var r=Math.ceil,e=Math.floor;t.exports=Math.trunc||function(t){var n=+t;return(n>0?e:r)(n)}},4913(t,r,e){"use strict";var n=e(3724),o=e(5917),i=e(8686),u=e(8551),s=e(6969),c=TypeError,a=Object.defineProperty,f=Object.getOwnPropertyDescriptor,p="enumerable",l="configurable",v="writable";r.f=n?i?function(t,r,e){if(u(t),r=s(r),u(e),"function"===typeof t&&"prototype"===r&&"value"in e&&v in e&&!e[v]){var n=f(t,r);n&&n[v]&&(t[r]=e.value,e={configurable:l in e?e[l]:n[l],enumerable:p in e?e[p]:n[p],writable:!1})}return a(t,r,e)}:a:function(t,r,e){if(u(t),r=s(r),u(e),o)try{return a(t,r,e)}catch(n){}if("get"in e||"set"in e)throw new c("Accessors not supported");return"value"in e&&(t[r]=e.value),t}},7347(t,r,e){"use strict";var n=e(3724),o=e(9565),i=e(8773),u=e(6980),s=e(5397),c=e(6969),a=e(9297),f=e(5917),p=Object.getOwnPropertyDescriptor;r.f=n?p:function(t,r){if(t=s(t),r=c(r),f)try{return p(t,r)}catch(e){}if(a(t,r))return u(!o(i.f,t,r),t[r])}},8480(t,r,e){"use strict";var n=e(1828),o=e(8727),i=o.concat("length","prototype");r.f=Object.getOwnPropertyNames||function(t){return n(t,i)}},3717(t,r){"use strict";r.f=Object.getOwnPropertySymbols},1625(t,r,e){"use strict";var n=e(9504);t.exports=n({}.isPrototypeOf)},1828(t,r,e){"use strict";var n=e(9504),o=e(9297),i=e(5397),u=e(9617).indexOf,s=e(421),c=n([].push);t.exports=function(t,r){var e,n=i(t),a=0,f=[];for(e in n)!o(s,e)&&o(n,e)&&c(f,e);while(r.length>a)o(n,e=r[a++])&&(~u(f,e)||c(f,e));return f}},8773(t,r){"use strict";var e={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,o=n&&!e.call({1:2},1);r.f=o?function(t){var r=n(this,t);return!!r&&r.enumerable}:e},3179(t,r,e){"use strict";var n=e(2140),o=e(6955);t.exports=n?{}.toString:function(){return"[object "+o(this)+"]"}},4270(t,r,e){"use strict";var n=e(9565),o=e(4901),i=e(34),u=TypeError;t.exports=function(t,r){var e,s;if("string"===r&&o(e=t.toString)&&!i(s=n(e,t)))return s;if(o(e=t.valueOf)&&!i(s=n(e,t)))return s;if("string"!==r&&o(e=t.toString)&&!i(s=n(e,t)))return s;throw new u("Can't convert object to primitive value")}},5031(t,r,e){"use strict";var n=e(7751),o=e(9504),i=e(8480),u=e(3717),s=e(8551),c=o([].concat);t.exports=n("Reflect","ownKeys")||function(t){var r=i.f(s(t)),e=u.f;return e?c(r,e(t)):r}},7750(t,r,e){"use strict";var n=e(4117),o=TypeError;t.exports=function(t){if(n(t))throw new o("Can't call method on "+t);return t}},6119(t,r,e){"use strict";var n=e(5745),o=e(3392),i=n("keys");t.exports=function(t){return i[t]||(i[t]=o(t))}},7629(t,r,e){"use strict";var n=e(6395),o=e(4576),i=e(9433),u="__core-js_shared__",s=t.exports=o[u]||i(u,{});(s.versions||(s.versions=[])).push({version:"3.49.0",mode:n?"pure":"global",copyright:"© 2013–2025 Denis Pushkarev (zloirock.ru), 2025–2026 CoreJS Company (core-js.io). All rights reserved.",license:"https://github.com/zloirock/core-js/blob/v3.49.0/LICENSE",source:"https://github.com/zloirock/core-js"})},5745(t,r,e){"use strict";var n=e(7629);t.exports=function(t,r){return n[t]||(n[t]=r||{})}},4495(t,r,e){"use strict";var n=e(9519),o=e(9039),i=e(4576),u=i.String;t.exports=!!Object.getOwnPropertySymbols&&!o(function(){var t=Symbol("symbol detection");return!u(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&n&&n<41})},5610(t,r,e){"use strict";var n=e(1291),o=Math.max,i=Math.min;t.exports=function(t,r){var e=n(t);return e<0?o(e+r,0):i(e,r)}},5397(t,r,e){"use strict";var n=e(7055),o=e(7750);t.exports=function(t){return n(o(t))}},1291(t,r,e){"use strict";var n=e(741);t.exports=function(t){var r=+t;return r!==r||0===r?0:n(r)}},8014(t,r,e){"use strict";var n=e(1291),o=Math.min;t.exports=function(t){var r=n(t);return r>0?o(r,9007199254740991):0}},8981(t,r,e){"use strict";var n=e(7750),o=Object;t.exports=function(t){return o(n(t))}},2777(t,r,e){"use strict";var n=e(9565),o=e(34),i=e(757),u=e(5966),s=e(4270),c=e(8227),a=TypeError,f=c("toPrimitive");t.exports=function(t,r){if(!o(t)||i(t))return t;var e,c=u(t,f);if(c){if(void 0===r&&(r="default"),e=n(c,t,r),!o(e)||i(e))return e;throw new a("Can't convert object to primitive value")}return void 0===r&&(r="number"),s(t,r)}},6969(t,r,e){"use strict";var n=e(2777),o=e(757);t.exports=function(t){var r=n(t,"string");return o(r)?r:r+""}},2140(t,r,e){"use strict";var n=e(8227),o=n("toStringTag"),i={};i[o]="z",t.exports="[object z]"===String(i)},6823(t){"use strict";var r=String;t.exports=function(t){try{return r(t)}catch(e){return"Object"}}},3392(t,r,e){"use strict";var n=e(9504),o=0,i=Math.random(),u=n(1.1.toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+u(++o+i,36)}},7040(t,r,e){"use strict";var n=e(4495);t.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},8686(t,r,e){"use strict";var n=e(3724),o=e(9039);t.exports=n&&o(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})},8622(t,r,e){"use strict";var n=e(4576),o=e(4901),i=n.WeakMap;t.exports=o(i)&&/native code/.test(String(i))},8227(t,r,e){"use strict";var n=e(4576),o=e(5745),i=e(9297),u=e(3392),s=e(4495),c=e(7040),a=n.Symbol,f=o("wks"),p=c?a["for"]||a:a&&a.withoutSetter||u;t.exports=function(t){return i(f,t)||(f[t]=s&&i(a,t)?a[t]:p("Symbol."+t)),f[t]}},1629(t,r,e){"use strict";var n=e(6518),o=e(235);n({target:"Array",proto:!0,forced:[].forEach!==o},{forEach:o})},2010(t,r,e){"use strict";var n=e(3724),o=e(350).EXISTS,i=e(9504),u=e(2106),s=Function.prototype,c=i(s.toString),a=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,f=i(a.exec),p="name";n&&!o&&u(s,p,{configurable:!0,get:function(){try{return f(a,c(this))[1]}catch(t){return""}}})},6099(t,r,e){"use strict";var n=e(2140),o=e(6840),i=e(3179);n||o(Object.prototype,"toString",i,{unsafe:!0})}},e={};function n(t){var o=e[t];if(void 0!==o)return o.exports;var i=e[t]={exports:{}};return r[t].call(i.exports,i,i.exports,n),i.exports}(()=>{n.d=(t,r)=>{for(var e in r)n.o(r,e)&&!n.o(t,e)&&Object.defineProperty(t,e,{enumerable:!0,get:r[e]})}})(),(()=>{n.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"===typeof window)return window}}()})(),(()=>{n.o=(t,r)=>Object.prototype.hasOwnProperty.call(t,r)})(),(()=>{n.r=t=>{"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}})(),(()=>{n.p=""})();var o={};return(()=>{"use strict";if(n.r(o),n.d(o,{CsButton:()=>d,default:()=>w,utils:()=>h}),"undefined"!==typeof window){var t=window.document.currentScript,r=t&&t.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);r&&(n.p=r[1])}n(1629),n(2010),n(6099);function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},e(t)}function i(t,r){if("object"!=e(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,r||"default");if("object"!=e(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}function u(t){var r=i(t,"string");return"symbol"==e(r)?r:r+""}function s(t,r,e){return(r=u(r))in t?Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[r]=e,t}function c(t,r){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);r&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),e.push.apply(e,n)}return e}function a(t){for(var r=1;r<arguments.length;r++){var e=null!=arguments[r]?arguments[r]:{};r%2?c(Object(e),!0).forEach(function(r){s(t,r,e[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):c(Object(e)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))})}return t}n(9274);var f=function(){var t=this,r=t._self._c;return r("button",{staticClass:"my-button",on:{click:t.handleClick}},[r("span",{staticClass:"my-button__text"},[t._t("default",function(){return[t._v("自定义按钮")]})],2)])},p=[];const l={name:"CsButton",props:{type:{type:String,default:"default"}},data:function(){return{isActive:!1}},methods:{handleClick:function(t){this.$emit("click",t)}}},v=l;function y(t,r,e,n,o,i,u,s){var c,a="function"===typeof t?t.options:t;if(r&&(a.render=r,a.staticRenderFns=e,a._compiled=!0),n&&(a.functional=!0),i&&(a._scopeId="data-v-"+i),u?(c=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(u)},a._ssrRegister=c):o&&(c=s?function(){o.call(this,(a.functional?this.parent:this).$root.$options.shadowRoot)}:o),c)if(a.functional){a._injectStyles=c;var f=a.render;a.render=function(t,r){return c.call(r),f(t,r)}}else{var p=a.beforeCreate;a.beforeCreate=p?[].concat(p,c):[c]}return{exports:t,options:a}}var b=y(v,f,p,!1,null,"9b0df464",null);const d=b.exports;var h=n(5608),g=[d],m=function(t){m.installed||(m.installed=!0,g.forEach(function(r){var e,n=(null===(e=r.options)||void 0===e?void 0:e.name)||r.name;n&&t.component(n,r)}))};"undefined"!==typeof window&&window.Vue&&m(window.Vue);const x=a({install:m},g),w=x})(),o})());
|
package/package.json
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@cosyst/ui-lib",
|
|
3
|
+
"version": "0.0.3",
|
|
4
|
+
"description": "基于 Vue2 的组件库",
|
|
5
|
+
"private": false,
|
|
6
|
+
"main": "lib/index.umd.js",
|
|
7
|
+
"style": "lib/index.css",
|
|
8
|
+
"scripts": {
|
|
9
|
+
"serve": "vue-cli-service serve",
|
|
10
|
+
"build": "vue-cli-service build",
|
|
11
|
+
"build:lib": "vue-cli-service build --target lib --name index --dest lib packages/index.js",
|
|
12
|
+
"release": "node build/publish.js",
|
|
13
|
+
"docs:dev": "vuepress dev docs",
|
|
14
|
+
"docs:build": "vuepress build docs",
|
|
15
|
+
"ci": "npm run build:lib && npm run docs:build"
|
|
16
|
+
},
|
|
17
|
+
"dependencies": {
|
|
18
|
+
"vue": "^2.7.16"
|
|
19
|
+
},
|
|
20
|
+
"peerDependencies": {
|
|
21
|
+
"vue": "^2.7.16"
|
|
22
|
+
},
|
|
23
|
+
"devDependencies": {
|
|
24
|
+
"@babel/core": "^7.29.7",
|
|
25
|
+
"@babel/preset-env": "^7.29.7",
|
|
26
|
+
"@vue/cli-plugin-babel": "^5.0.0",
|
|
27
|
+
"@vue/cli-service": "~5.0.0",
|
|
28
|
+
"babel-loader": "^8.2.5",
|
|
29
|
+
"sass": "^1.70.0",
|
|
30
|
+
"sass-loader": "^12.6.0",
|
|
31
|
+
"vue-template-compiler": "^2.7.16",
|
|
32
|
+
"vuepress": "^1.9.10"
|
|
33
|
+
},
|
|
34
|
+
"resolutions": {
|
|
35
|
+
"**/vuepress/**/webpack": "^4.46.0"
|
|
36
|
+
},
|
|
37
|
+
"keywords": [
|
|
38
|
+
"vue2",
|
|
39
|
+
"vue2.7",
|
|
40
|
+
"component",
|
|
41
|
+
"library"
|
|
42
|
+
],
|
|
43
|
+
"files": [
|
|
44
|
+
"lib"
|
|
45
|
+
]
|
|
46
|
+
}
|