zhihao-ui 1.0.2 → 1.1.0
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/dist/es/Button-CUB5krFr.js +21 -0
- package/dist/es/index.js +7 -0
- package/dist/es/utils-Dj4hZBjs.js +14 -0
- package/dist/es/vendor-Co4JjPth.js +157 -0
- package/dist/index.css +1 -0
- package/dist/types/components/Button/Button.vue.d.ts +20 -0
- package/dist/types/components/Button/index.d.ts +36 -0
- package/dist/types/components/Button/types.d.ts +7 -0
- package/dist/types/components/index.d.ts +1 -0
- package/dist/types/components/vitest.config.d.ts +2 -0
- package/dist/types/core/index.d.ts +3 -0
- package/dist/types/utils/index.d.ts +1 -0
- package/dist/types/utils/install.d.ts +6 -0
- package/dist/umd/index.css +1 -0
- package/dist/umd/index.umd.cjs +1 -0
- package/package.json +47 -44
- package/README.md +0 -14
- package/dist/style.css +0 -1
- package/dist/zhihao-ui.js +0 -40
- package/dist/zhihao-ui.mjs +0 -14309
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { defineComponent as c, useSlots as r, openBlock as _, createElementBlock as a } from "vue";
|
|
2
|
+
import { w as p } from "./utils-Dj4hZBjs.js";
|
|
3
|
+
const u = { style: { "background-color": "blue", color: "red" } }, l = /* @__PURE__ */ c({
|
|
4
|
+
name: "ZhButton",
|
|
5
|
+
__name: "Button",
|
|
6
|
+
props: {
|
|
7
|
+
type: {},
|
|
8
|
+
size: {}
|
|
9
|
+
},
|
|
10
|
+
setup(t) {
|
|
11
|
+
return r(), (e, o) => (_(), a("button", u, "this is a button"));
|
|
12
|
+
}
|
|
13
|
+
}), i = (t, e) => {
|
|
14
|
+
const o = t.__vccOpts || t;
|
|
15
|
+
for (const [n, s] of e)
|
|
16
|
+
o[n] = s;
|
|
17
|
+
return o;
|
|
18
|
+
}, m = /* @__PURE__ */ i(l, [["__scopeId", "data-v-e1dcabfd"]]), h = p(m);
|
|
19
|
+
export {
|
|
20
|
+
h as Z
|
|
21
|
+
};
|
package/dist/es/index.js
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { f as t } from "./vendor-Co4JjPth.js";
|
|
2
|
+
function n(a) {
|
|
3
|
+
return (s) => t(a, (r) => {
|
|
4
|
+
s.use(r);
|
|
5
|
+
});
|
|
6
|
+
}
|
|
7
|
+
const e = (a) => (a.install = (l) => {
|
|
8
|
+
const s = (a == null ? void 0 : a.name) || "UnnamedComponent";
|
|
9
|
+
l.component(s, a);
|
|
10
|
+
}, a);
|
|
11
|
+
export {
|
|
12
|
+
n as m,
|
|
13
|
+
e as w
|
|
14
|
+
};
|
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
var O = typeof global == "object" && global && global.Object === Object && global, B = typeof self == "object" && self && self.Object === Object && self, x = O || B || Function("return this")(), p = x.Symbol, w = Object.prototype, U = w.hasOwnProperty, M = w.toString, s = p ? p.toStringTag : void 0;
|
|
2
|
+
function R(r) {
|
|
3
|
+
var t = U.call(r, s), e = r[s];
|
|
4
|
+
try {
|
|
5
|
+
r[s] = void 0;
|
|
6
|
+
var o = !0;
|
|
7
|
+
} catch {
|
|
8
|
+
}
|
|
9
|
+
var i = M.call(r);
|
|
10
|
+
return o && (t ? r[s] = e : delete r[s]), i;
|
|
11
|
+
}
|
|
12
|
+
var G = Object.prototype, L = G.toString;
|
|
13
|
+
function N(r) {
|
|
14
|
+
return L.call(r);
|
|
15
|
+
}
|
|
16
|
+
var _ = "[object Null]", C = "[object Undefined]", d = p ? p.toStringTag : void 0;
|
|
17
|
+
function j(r) {
|
|
18
|
+
return r == null ? r === void 0 ? C : _ : d && d in Object(r) ? R(r) : N(r);
|
|
19
|
+
}
|
|
20
|
+
function l(r) {
|
|
21
|
+
return r != null && typeof r == "object";
|
|
22
|
+
}
|
|
23
|
+
var E = Array.isArray;
|
|
24
|
+
function K(r) {
|
|
25
|
+
var t = typeof r;
|
|
26
|
+
return r != null && (t == "object" || t == "function");
|
|
27
|
+
}
|
|
28
|
+
function q(r) {
|
|
29
|
+
return r;
|
|
30
|
+
}
|
|
31
|
+
var D = "[object AsyncFunction]", V = "[object Function]", X = "[object GeneratorFunction]", W = "[object Proxy]";
|
|
32
|
+
function k(r) {
|
|
33
|
+
if (!K(r))
|
|
34
|
+
return !1;
|
|
35
|
+
var t = j(r);
|
|
36
|
+
return t == V || t == X || t == D || t == W;
|
|
37
|
+
}
|
|
38
|
+
function z(r, t) {
|
|
39
|
+
for (var e = -1, o = r == null ? 0 : r.length; ++e < o && t(r[e], e, r) !== !1; )
|
|
40
|
+
;
|
|
41
|
+
return r;
|
|
42
|
+
}
|
|
43
|
+
var H = 9007199254740991, J = /^(?:0|[1-9]\d*)$/;
|
|
44
|
+
function Q(r, t) {
|
|
45
|
+
var e = typeof r;
|
|
46
|
+
return t = t ?? H, !!t && (e == "number" || e != "symbol" && J.test(r)) && r > -1 && r % 1 == 0 && r < t;
|
|
47
|
+
}
|
|
48
|
+
var Y = 9007199254740991;
|
|
49
|
+
function $(r) {
|
|
50
|
+
return typeof r == "number" && r > -1 && r % 1 == 0 && r <= Y;
|
|
51
|
+
}
|
|
52
|
+
function P(r) {
|
|
53
|
+
return r != null && $(r.length) && !k(r);
|
|
54
|
+
}
|
|
55
|
+
var Z = Object.prototype;
|
|
56
|
+
function rr(r) {
|
|
57
|
+
var t = r && r.constructor, e = typeof t == "function" && t.prototype || Z;
|
|
58
|
+
return r === e;
|
|
59
|
+
}
|
|
60
|
+
function tr(r, t) {
|
|
61
|
+
for (var e = -1, o = Array(r); ++e < r; )
|
|
62
|
+
o[e] = t(e);
|
|
63
|
+
return o;
|
|
64
|
+
}
|
|
65
|
+
var er = "[object Arguments]";
|
|
66
|
+
function T(r) {
|
|
67
|
+
return l(r) && j(r) == er;
|
|
68
|
+
}
|
|
69
|
+
var S = Object.prototype, nr = S.hasOwnProperty, or = S.propertyIsEnumerable, ar = T(/* @__PURE__ */ function() {
|
|
70
|
+
return arguments;
|
|
71
|
+
}()) ? T : function(r) {
|
|
72
|
+
return l(r) && nr.call(r, "callee") && !or.call(r, "callee");
|
|
73
|
+
};
|
|
74
|
+
function ir() {
|
|
75
|
+
return !1;
|
|
76
|
+
}
|
|
77
|
+
var F = typeof exports == "object" && exports && !exports.nodeType && exports, h = F && typeof module == "object" && module && !module.nodeType && module, cr = h && h.exports === F, v = cr ? x.Buffer : void 0, fr = v ? v.isBuffer : void 0, ur = fr || ir, sr = "[object Arguments]", br = "[object Array]", gr = "[object Boolean]", pr = "[object Date]", yr = "[object Error]", jr = "[object Function]", lr = "[object Map]", dr = "[object Number]", Tr = "[object Object]", hr = "[object RegExp]", vr = "[object Set]", Ar = "[object String]", mr = "[object WeakMap]", Or = "[object ArrayBuffer]", xr = "[object DataView]", wr = "[object Float32Array]", Er = "[object Float64Array]", $r = "[object Int8Array]", Pr = "[object Int16Array]", Sr = "[object Int32Array]", Fr = "[object Uint8Array]", Ir = "[object Uint8ClampedArray]", Br = "[object Uint16Array]", Ur = "[object Uint32Array]", n = {};
|
|
78
|
+
n[wr] = n[Er] = n[$r] = n[Pr] = n[Sr] = n[Fr] = n[Ir] = n[Br] = n[Ur] = !0;
|
|
79
|
+
n[sr] = n[br] = n[Or] = n[gr] = n[xr] = n[pr] = n[yr] = n[jr] = n[lr] = n[dr] = n[Tr] = n[hr] = n[vr] = n[Ar] = n[mr] = !1;
|
|
80
|
+
function Mr(r) {
|
|
81
|
+
return l(r) && $(r.length) && !!n[j(r)];
|
|
82
|
+
}
|
|
83
|
+
function Rr(r) {
|
|
84
|
+
return function(t) {
|
|
85
|
+
return r(t);
|
|
86
|
+
};
|
|
87
|
+
}
|
|
88
|
+
var I = typeof exports == "object" && exports && !exports.nodeType && exports, b = I && typeof module == "object" && module && !module.nodeType && module, Gr = b && b.exports === I, y = Gr && O.process, A = function() {
|
|
89
|
+
try {
|
|
90
|
+
var r = b && b.require && b.require("util").types;
|
|
91
|
+
return r || y && y.binding && y.binding("util");
|
|
92
|
+
} catch {
|
|
93
|
+
}
|
|
94
|
+
}(), m = A && A.isTypedArray, Lr = m ? Rr(m) : Mr, Nr = Object.prototype, _r = Nr.hasOwnProperty;
|
|
95
|
+
function Cr(r, t) {
|
|
96
|
+
var e = E(r), o = !e && ar(r), i = !e && !o && ur(r), a = !e && !o && !i && Lr(r), f = e || o || i || a, u = f ? tr(r.length, String) : [], g = u.length;
|
|
97
|
+
for (var c in r)
|
|
98
|
+
_r.call(r, c) && !(f && // Safari 9 has enumerable `arguments.length` in strict mode.
|
|
99
|
+
(c == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
|
|
100
|
+
i && (c == "offset" || c == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
|
|
101
|
+
a && (c == "buffer" || c == "byteLength" || c == "byteOffset") || // Skip index properties.
|
|
102
|
+
Q(c, g))) && u.push(c);
|
|
103
|
+
return u;
|
|
104
|
+
}
|
|
105
|
+
function Kr(r, t) {
|
|
106
|
+
return function(e) {
|
|
107
|
+
return r(t(e));
|
|
108
|
+
};
|
|
109
|
+
}
|
|
110
|
+
var qr = Kr(Object.keys, Object), Dr = Object.prototype, Vr = Dr.hasOwnProperty;
|
|
111
|
+
function Xr(r) {
|
|
112
|
+
if (!rr(r))
|
|
113
|
+
return qr(r);
|
|
114
|
+
var t = [];
|
|
115
|
+
for (var e in Object(r))
|
|
116
|
+
Vr.call(r, e) && e != "constructor" && t.push(e);
|
|
117
|
+
return t;
|
|
118
|
+
}
|
|
119
|
+
function Wr(r) {
|
|
120
|
+
return P(r) ? Cr(r) : Xr(r);
|
|
121
|
+
}
|
|
122
|
+
function kr(r) {
|
|
123
|
+
return function(t, e, o) {
|
|
124
|
+
for (var i = -1, a = Object(t), f = o(t), u = f.length; u--; ) {
|
|
125
|
+
var g = f[++i];
|
|
126
|
+
if (e(a[g], g, a) === !1)
|
|
127
|
+
break;
|
|
128
|
+
}
|
|
129
|
+
return t;
|
|
130
|
+
};
|
|
131
|
+
}
|
|
132
|
+
var zr = kr();
|
|
133
|
+
function Hr(r, t) {
|
|
134
|
+
return r && zr(r, t, Wr);
|
|
135
|
+
}
|
|
136
|
+
function Jr(r, t) {
|
|
137
|
+
return function(e, o) {
|
|
138
|
+
if (e == null)
|
|
139
|
+
return e;
|
|
140
|
+
if (!P(e))
|
|
141
|
+
return r(e, o);
|
|
142
|
+
for (var i = e.length, a = -1, f = Object(e); ++a < i && o(f[a], a, f) !== !1; )
|
|
143
|
+
;
|
|
144
|
+
return e;
|
|
145
|
+
};
|
|
146
|
+
}
|
|
147
|
+
var Qr = Jr(Hr);
|
|
148
|
+
function Yr(r) {
|
|
149
|
+
return typeof r == "function" ? r : q;
|
|
150
|
+
}
|
|
151
|
+
function Zr(r, t) {
|
|
152
|
+
var e = E(r) ? z : Qr;
|
|
153
|
+
return e(r, Yr(t));
|
|
154
|
+
}
|
|
155
|
+
export {
|
|
156
|
+
Zr as f
|
|
157
|
+
};
|
package/dist/index.css
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
button[data-v-e1dcabfd]{border:1px solid red}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { ButtonProps } from './types';
|
|
2
|
+
|
|
3
|
+
declare function __VLS_template(): Readonly<Record<string, any>> & Record<string, any>;
|
|
4
|
+
declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<ButtonProps>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<ButtonProps>>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
5
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
6
|
+
export default _default;
|
|
7
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
8
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
9
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
10
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
11
|
+
} : {
|
|
12
|
+
type: import('vue').PropType<T[K]>;
|
|
13
|
+
required: true;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
17
|
+
new (): {
|
|
18
|
+
$slots: S;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
export declare const ZhButton: {
|
|
2
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
|
|
3
|
+
type: {
|
|
4
|
+
type: import('vue').PropType<import('./types').ButtonType>;
|
|
5
|
+
};
|
|
6
|
+
size: {
|
|
7
|
+
type: import('vue').PropType<import('./types').ButtonSize>;
|
|
8
|
+
};
|
|
9
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
10
|
+
P: {};
|
|
11
|
+
B: {};
|
|
12
|
+
D: {};
|
|
13
|
+
C: {};
|
|
14
|
+
M: {};
|
|
15
|
+
Defaults: {};
|
|
16
|
+
}, Readonly<import('vue').ExtractPropTypes<{
|
|
17
|
+
type: {
|
|
18
|
+
type: import('vue').PropType<import('./types').ButtonType>;
|
|
19
|
+
};
|
|
20
|
+
size: {
|
|
21
|
+
type: import('vue').PropType<import('./types').ButtonSize>;
|
|
22
|
+
};
|
|
23
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, {}>;
|
|
24
|
+
__isFragment?: never;
|
|
25
|
+
__isTeleport?: never;
|
|
26
|
+
__isSuspense?: never;
|
|
27
|
+
} & import('vue').ComponentOptionsBase<Readonly<import('vue').ExtractPropTypes<{
|
|
28
|
+
type: {
|
|
29
|
+
type: import('vue').PropType<import('./types').ButtonType>;
|
|
30
|
+
};
|
|
31
|
+
size: {
|
|
32
|
+
type: import('vue').PropType<import('./types').ButtonSize>;
|
|
33
|
+
};
|
|
34
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
35
|
+
$slots: Readonly<Record<string, any>> & Record<string, any>;
|
|
36
|
+
}) & import('vue').Plugin;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Button';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './install';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
button[data-v-e1dcabfd]{border:1px solid red}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(function(a,s){typeof exports=="object"&&typeof module<"u"?s(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],s):(a=typeof globalThis<"u"?globalThis:a||self,s(a.ZhihaoUI={},a.Vue))})(this,function(a,s){"use strict";var h=typeof global=="object"&&global&&global.Object===Object&&global,M=typeof self=="object"&&self&&self.Object===Object&&self,m=h||M||Function("return this")(),p=m.Symbol,v=Object.prototype,R=v.hasOwnProperty,k=v.toString,b=p?p.toStringTag:void 0;function C(t){var r=R.call(t,b),e=t[b];try{t[b]=void 0;var o=!0}catch{}var i=k.call(t);return o&&(r?t[b]=e:delete t[b]),i}var G=Object.prototype,L=G.toString;function N(t){return L.call(t)}var Z="[object Null]",q="[object Undefined]",O=p?p.toStringTag:void 0;function d(t){return t==null?t===void 0?q:Z:O&&O in Object(t)?C(t):N(t)}function j(t){return t!=null&&typeof t=="object"}var A=Array.isArray;function K(t){var r=typeof t;return t!=null&&(r=="object"||r=="function")}function V(t){return t}var D="[object AsyncFunction]",X="[object Function]",z="[object GeneratorFunction]",W="[object Proxy]";function H(t){if(!K(t))return!1;var r=d(t);return r==X||r==z||r==D||r==W}function J(t,r){for(var e=-1,o=t==null?0:t.length;++e<o&&r(t[e],e,t)!==!1;);return t}var Q=9007199254740991,Y=/^(?:0|[1-9]\d*)$/;function tt(t,r){var e=typeof t;return r=r??Q,!!r&&(e=="number"||e!="symbol"&&Y.test(t))&&t>-1&&t%1==0&&t<r}var rt=9007199254740991;function _(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=rt}function S(t){return t!=null&&_(t.length)&&!H(t)}var et=Object.prototype;function nt(t){var r=t&&t.constructor,e=typeof r=="function"&&r.prototype||et;return t===e}function ot(t,r){for(var e=-1,o=Array(t);++e<t;)o[e]=r(e);return o}var at="[object Arguments]";function w(t){return j(t)&&d(t)==at}var B=Object.prototype,it=B.hasOwnProperty,ut=B.propertyIsEnumerable,ct=w(function(){return arguments}())?w:function(t){return j(t)&&it.call(t,"callee")&&!ut.call(t,"callee")};function st(){return!1}var E=typeof a=="object"&&a&&!a.nodeType&&a,I=E&&typeof module=="object"&&module&&!module.nodeType&&module,ft=I&&I.exports===E,P=ft?m.Buffer:void 0,bt=P?P.isBuffer:void 0,gt=bt||st,lt="[object Arguments]",pt="[object Array]",yt="[object Boolean]",dt="[object Date]",jt="[object Error]",Tt="[object Function]",ht="[object Map]",mt="[object Number]",vt="[object Object]",Ot="[object RegExp]",At="[object Set]",_t="[object String]",St="[object WeakMap]",wt="[object ArrayBuffer]",Bt="[object DataView]",Et="[object Float32Array]",It="[object Float64Array]",Pt="[object Int8Array]",$t="[object Int16Array]",Ft="[object Int32Array]",xt="[object Uint8Array]",Ut="[object Uint8ClampedArray]",Mt="[object Uint16Array]",Rt="[object Uint32Array]",n={};n[Et]=n[It]=n[Pt]=n[$t]=n[Ft]=n[xt]=n[Ut]=n[Mt]=n[Rt]=!0,n[lt]=n[pt]=n[wt]=n[yt]=n[Bt]=n[dt]=n[jt]=n[Tt]=n[ht]=n[mt]=n[vt]=n[Ot]=n[At]=n[_t]=n[St]=!1;function kt(t){return j(t)&&_(t.length)&&!!n[d(t)]}function Ct(t){return function(r){return t(r)}}var $=typeof a=="object"&&a&&!a.nodeType&&a,g=$&&typeof module=="object"&&module&&!module.nodeType&&module,Gt=g&&g.exports===$,T=Gt&&h.process,F=function(){try{var t=g&&g.require&&g.require("util").types;return t||T&&T.binding&&T.binding("util")}catch{}}(),x=F&&F.isTypedArray,Lt=x?Ct(x):kt,Nt=Object.prototype,Zt=Nt.hasOwnProperty;function qt(t,r){var e=A(t),o=!e&&ct(t),i=!e&&!o&>(t),u=!e&&!o&&!i&&Lt(t),f=e||o||i||u,l=f?ot(t.length,String):[],y=l.length;for(var c in t)Zt.call(t,c)&&!(f&&(c=="length"||i&&(c=="offset"||c=="parent")||u&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||tt(c,y)))&&l.push(c);return l}function Kt(t,r){return function(e){return t(r(e))}}var Vt=Kt(Object.keys,Object),Dt=Object.prototype,Xt=Dt.hasOwnProperty;function zt(t){if(!nt(t))return Vt(t);var r=[];for(var e in Object(t))Xt.call(t,e)&&e!="constructor"&&r.push(e);return r}function Wt(t){return S(t)?qt(t):zt(t)}function Ht(t){return function(r,e,o){for(var i=-1,u=Object(r),f=o(r),l=f.length;l--;){var y=f[++i];if(e(u[y],y,u)===!1)break}return r}}var Jt=Ht();function Qt(t,r){return t&&Jt(t,r,Wt)}function Yt(t,r){return function(e,o){if(e==null)return e;if(!S(e))return t(e,o);for(var i=e.length,u=-1,f=Object(e);++u<i&&o(f[u],u,f)!==!1;);return e}}var tr=Yt(Qt);function rr(t){return typeof t=="function"?t:V}function er(t,r){var e=A(t)?J:tr;return e(t,rr(r))}function nr(t){return e=>er(t,o=>{e.use(o)})}const or=t=>(t.install=r=>{const e=(t==null?void 0:t.name)||"UnnamedComponent";r.component(e,t)},t),ar={style:{"background-color":"blue",color:"red"}},U=or(((t,r)=>{const e=t.__vccOpts||t;for(const[o,i]of r)e[o]=i;return e})(s.defineComponent({name:"ZhButton",__name:"Button",props:{type:{},size:{}},setup(t){return s.useSlots(),(r,e)=>(s.openBlock(),s.createElementBlock("button",ar,"this is a button"))}}),[["__scopeId","data-v-e1dcabfd"]])),ir=nr([U]);a.ZhButton=U,a.default=ir,Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
package/package.json
CHANGED
|
@@ -1,45 +1,48 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "zhihao-ui",
|
|
3
|
-
"version": "1.0
|
|
4
|
-
"description": "",
|
|
5
|
-
"
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
"
|
|
10
|
-
"
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
"
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
"
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
"
|
|
29
|
-
"
|
|
30
|
-
"
|
|
31
|
-
"
|
|
32
|
-
"
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
"@
|
|
41
|
-
"
|
|
42
|
-
"
|
|
43
|
-
|
|
44
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "zhihao-ui",
|
|
3
|
+
"version": "1.1.0",
|
|
4
|
+
"description": "components",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "./dist/umd/index.umd.cjs",
|
|
7
|
+
"module": "./dist/es/index.js",
|
|
8
|
+
"types": "./dist/types/core/index.d.ts",
|
|
9
|
+
"files": [
|
|
10
|
+
"dist"
|
|
11
|
+
],
|
|
12
|
+
"exports": {
|
|
13
|
+
".": {
|
|
14
|
+
"import": "./dist/es/index.js",
|
|
15
|
+
"require": "./dist/umd/index.umd.cjs",
|
|
16
|
+
"types": "./dist/types/core/index.d.ts"
|
|
17
|
+
},
|
|
18
|
+
"./dist/": {
|
|
19
|
+
"import": "./dist/",
|
|
20
|
+
"require": "./dist/"
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
"sideEffects": [
|
|
24
|
+
"./dist/index.css"
|
|
25
|
+
],
|
|
26
|
+
|
|
27
|
+
"scripts": {
|
|
28
|
+
"build": "run-s build-only move-style",
|
|
29
|
+
"build-only": "run-p build-es build-umd",
|
|
30
|
+
"build-umd": "vite build --config vite.umd.config.ts",
|
|
31
|
+
"build-es": "vite build --config vite.es.config.ts",
|
|
32
|
+
"move-style": "move-file dist/es/index.css dist/index.css"
|
|
33
|
+
},
|
|
34
|
+
"keywords": [],
|
|
35
|
+
"author": "",
|
|
36
|
+
"license": "ISC",
|
|
37
|
+
"dependencies": {
|
|
38
|
+
"@fortawesome/fontawesome-svg-core": "^6.5.1",
|
|
39
|
+
"@fortawesome/free-solid-svg-icons": "^6.5.1",
|
|
40
|
+
"@fortawesome/vue-fontawesome": "^3.0.6",
|
|
41
|
+
"@popperjs/core": "^2.11.8",
|
|
42
|
+
"async-validator": "^4.2.5"
|
|
43
|
+
},
|
|
44
|
+
"devDependencies": {
|
|
45
|
+
"vite-plugin-dts": "^3.9.1",
|
|
46
|
+
"@zhihao-ui/components": "workspace:*"
|
|
47
|
+
}
|
|
45
48
|
}
|