@kengic/vue 0.0.2-beta.3 → 0.0.2-beta.4

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