@kengic/vue 0.0.2-beta.5 → 0.0.2-beta.7

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/index.js CHANGED
@@ -1,55 +1,56 @@
1
- import { defineComponent as c, defineProps as a, createVNode as n, openBlock as p, createElementBlock as i, Fragment as m, createElementVNode as u, toDisplayString as d, unref as o, withCtx as f, createTextVNode as _ } from "vue";
1
+ import { defineComponent as c, createVNode as n, openBlock as p, createElementBlock as s, Fragment as m, createElementVNode as i, toDisplayString as u, unref as o, withCtx as d, createTextVNode as _ } from "vue";
2
2
  import { Button as l } from "ant-design-vue";
3
- const s = /* @__PURE__ */ c({
4
- setup() {
5
- const e = a({
6
- name: String
7
- });
3
+ const a = /* @__PURE__ */ c({
4
+ props: {
5
+ /** 名称. */
6
+ name: String
7
+ },
8
+ setup(e) {
8
9
  return () => n(l, {
9
10
  type: "ghost"
10
11
  }, {
11
12
  default: () => [e.name]
12
13
  });
13
14
  }
14
- }), g = /* @__PURE__ */ c({
15
+ }), f = /* @__PURE__ */ c({
15
16
  __name: "ComponentA",
16
- props: { msg: String },
17
+ props: {
18
+ msg: String
19
+ },
17
20
  setup(e) {
18
- return (t, b) => (p(), i(m, null, [
19
- u("div", null, "Hello " + d(e.msg) + "!", 1),
20
- n(o(l), { type: "primary" }, {
21
- default: f(() => [
22
- _("CLICK")
23
- ]),
24
- _: 1
25
- }),
26
- n(o(s), { name: "FOO" })
27
- ], 64));
21
+ return (t, S) => (p(), s(m, null, [i("div", null, "Hello " + u(e.msg) + "!", 1), n(o(l), {
22
+ type: "primary"
23
+ }, {
24
+ default: d(() => [_("CLICK")]),
25
+ _: 1
26
+ }), n(o(a), {
27
+ name: "FOO"
28
+ })], 64));
28
29
  }
29
30
  }), r = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
30
31
  __proto__: null,
31
- B: s,
32
- ComponentA: g
32
+ B: a,
33
+ ComponentA: f
33
34
  }, Symbol.toStringTag, { value: "Module" }));
34
- const y = 100, O = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
35
+ const g = 100, M = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
35
36
  __proto__: null,
36
- MAGIC_NUM: y
37
+ MAGIC_NUM: g
37
38
  }, Symbol.toStringTag, { value: "Module" }));
38
- function C(e, t) {
39
+ function y(e, t) {
39
40
  return e + t;
40
41
  }
41
- const j = {
42
- add: C
42
+ const O = {
43
+ add: y
43
44
  };
44
- function S(e) {
45
+ function C(e) {
45
46
  for (const t in r)
46
47
  e.component(t, r[t]);
47
48
  }
48
- const A = { install: S };
49
+ const j = { install: C };
49
50
  export {
50
- s as B,
51
- g as ComponentA,
52
- O as MyConstants,
53
- j as MyUtil,
54
- A as default
51
+ a as B,
52
+ f as ComponentA,
53
+ M as MyConstants,
54
+ O as MyUtil,
55
+ j as default
55
56
  };
@@ -1,6 +1,8 @@
1
1
  declare const B: import("vue").DefineComponent<{
2
- name: string;
3
- }, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
4
- name: string;
5
- }>, {}>;
2
+ /** 名称. */
3
+ name: StringConstructor;
4
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
5
+ /** 名称. */
6
+ name: StringConstructor;
7
+ }>>, {}>;
6
8
  export { B };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kengic/vue",
3
- "version": "0.0.2-beta.5",
3
+ "version": "0.0.2-beta.7",
4
4
  "types": "./dist/types/index.d.ts",
5
5
  "module": "./dist/index.js",
6
6
  "exports": {