formax_sgj-ui 1.0.1 → 1.0.2

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.
@@ -36088,8 +36088,7 @@ const ${helpers.map((s) => `_${helperNameMap[s]} = ${helperNameMap[s]}`).join(",
36088
36088
  }
36089
36089
 
36090
36090
  // src/components/FormaxButton.ts
36091
- var { defineComponent, h, isVue2: isVue22 } = lib_exports;
36092
- var FormaxButton = defineComponent({
36091
+ var FormaxButton = lib_exports.defineComponent({
36093
36092
  name: "FormaxButton",
36094
36093
  props: {
36095
36094
  label: {
@@ -36114,15 +36113,15 @@ const ${helpers.map((s) => `_${helperNameMap[s]} = ${helperNameMap[s]}`).join(",
36114
36113
  fontSize: "14px"
36115
36114
  };
36116
36115
  const label = slots.default ? slots.default() : props.label;
36117
- if (isVue22) {
36118
- return h("button", {
36116
+ if (isVue2) {
36117
+ return lib_exports.h("button", {
36119
36118
  style,
36120
36119
  on: {
36121
36120
  click: (event) => emit("click", event)
36122
36121
  }
36123
36122
  }, label);
36124
36123
  } else {
36125
- return h("button", {
36124
+ return lib_exports.h("button", {
36126
36125
  style,
36127
36126
  onClick: (event) => emit("click", event)
36128
36127
  }, label);
package/dist/index.js CHANGED
@@ -54,8 +54,7 @@ var VueDemi2 = __toESM(require("vue-demi"));
54
54
 
55
55
  // src/components/FormaxButton.ts
56
56
  var VueDemi = __toESM(require("vue-demi"));
57
- var { defineComponent, h, isVue2 } = VueDemi;
58
- var FormaxButton = defineComponent({
57
+ var FormaxButton = VueDemi.defineComponent({
59
58
  name: "FormaxButton",
60
59
  props: {
61
60
  label: {
@@ -80,15 +79,15 @@ var FormaxButton = defineComponent({
80
79
  fontSize: "14px"
81
80
  };
82
81
  const label = slots.default ? slots.default() : props.label;
83
- if (isVue2) {
84
- return h("button", {
82
+ if (VueDemi.isVue2) {
83
+ return VueDemi.h("button", {
85
84
  style,
86
85
  on: {
87
86
  click: (event) => emit("click", event)
88
87
  }
89
88
  }, label);
90
89
  } else {
91
- return h("button", {
90
+ return VueDemi.h("button", {
92
91
  style,
93
92
  onClick: (event) => emit("click", event)
94
93
  }, label);
package/dist/index.mjs CHANGED
@@ -20,8 +20,7 @@ import * as VueDemi2 from "vue-demi";
20
20
 
21
21
  // src/components/FormaxButton.ts
22
22
  import * as VueDemi from "vue-demi";
23
- var { defineComponent, h, isVue2 } = VueDemi;
24
- var FormaxButton = defineComponent({
23
+ var FormaxButton = VueDemi.defineComponent({
25
24
  name: "FormaxButton",
26
25
  props: {
27
26
  label: {
@@ -46,15 +45,15 @@ var FormaxButton = defineComponent({
46
45
  fontSize: "14px"
47
46
  };
48
47
  const label = slots.default ? slots.default() : props.label;
49
- if (isVue2) {
50
- return h("button", {
48
+ if (VueDemi.isVue2) {
49
+ return VueDemi.h("button", {
51
50
  style,
52
51
  on: {
53
52
  click: (event) => emit("click", event)
54
53
  }
55
54
  }, label);
56
55
  } else {
57
- return h("button", {
56
+ return VueDemi.h("button", {
58
57
  style,
59
58
  onClick: (event) => emit("click", event)
60
59
  }, label);
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "formax_sgj-ui",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "A cross-compatible Vue component library with metadata extraction",
5
5
  "main": "dist/index.js",
6
- "module": "dist/index.mjs",
6
+ "module": "dist/index.js",
7
7
  "types": "dist/index.d.ts",
8
8
  "unpkg": "dist/index.global.js",
9
9
  "exports": {
@@ -1,9 +1,7 @@
1
1
  import * as VueDemi from 'vue-demi';
2
2
  import { FormaxComponent, ComponentMeta } from '../types';
3
3
 
4
- const { defineComponent, h, isVue2 } = VueDemi as any;
5
-
6
- export const FormaxButton = defineComponent({
4
+ export const FormaxButton = (VueDemi as any).defineComponent({
7
5
  name: 'FormaxButton',
8
6
  props: {
9
7
  label: {
@@ -29,15 +27,15 @@ export const FormaxButton = defineComponent({
29
27
 
30
28
  const label = slots.default ? slots.default() : props.label;
31
29
 
32
- if (isVue2) {
33
- return h('button', {
30
+ if ((VueDemi as any).isVue2) {
31
+ return (VueDemi as any).h('button', {
34
32
  style,
35
33
  on: {
36
34
  click: (event: Event) => emit('click', event)
37
35
  }
38
36
  }, label);
39
37
  } else {
40
- return h('button', {
38
+ return (VueDemi as any).h('button', {
41
39
  style,
42
40
  onClick: (event: Event) => emit('click', event)
43
41
  }, label);