@epic-designer/antd 1.0.6-beta.0 → 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.
@@ -15,7 +15,6 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
15
15
  setup(__props, { expose: __expose }) {
16
16
  var _a, _b;
17
17
  const props = __props;
18
- const designerProps = vue.inject("designerProps");
19
18
  const pageManager = vue.inject("pageManager", {});
20
19
  const form = vue.ref(null);
21
20
  const forms = vue.inject("forms", {});
@@ -87,10 +86,8 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
87
86
  validate
88
87
  });
89
88
  return (_ctx, _cache) => {
90
- var _a2;
91
89
  return vue.openBlock(), vue.createBlock(vue.unref(antDesignVue.Form), vue.mergeProps({ model: vue.unref(formData) }, componentProps.value, {
92
90
  onFinish,
93
- class: { "epic-form-mode": (_a2 = vue.unref(designerProps)) == null ? void 0 : _a2.formMode },
94
91
  onVnodeMounted: mountedForm
95
92
  }), {
96
93
  default: vue.withCtx(() => [
@@ -108,7 +105,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
108
105
  ]),
109
106
  _: 3
110
107
  /* FORWARDED */
111
- }, 16, ["model", "class"]);
108
+ }, 16, ["model"]);
112
109
  };
113
110
  }
114
111
  });
@@ -13,7 +13,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
13
13
  setup(__props, { expose: __expose }) {
14
14
  var _a, _b;
15
15
  const props = __props;
16
- const designerProps = inject("designerProps");
17
16
  const pageManager = inject("pageManager", {});
18
17
  const form = ref(null);
19
18
  const forms = inject("forms", {});
@@ -85,10 +84,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
85
84
  validate
86
85
  });
87
86
  return (_ctx, _cache) => {
88
- var _a2;
89
87
  return openBlock(), createBlock(unref(Form), mergeProps({ model: unref(formData) }, componentProps.value, {
90
88
  onFinish,
91
- class: { "epic-form-mode": (_a2 = unref(designerProps)) == null ? void 0 : _a2.formMode },
92
89
  onVnodeMounted: mountedForm
93
90
  }), {
94
91
  default: withCtx(() => [
@@ -106,7 +103,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
106
103
  ]),
107
104
  _: 3
108
105
  /* FORWARDED */
109
- }, 16, ["model", "class"]);
106
+ }, 16, ["model"]);
110
107
  };
111
108
  }
112
109
  });
package/package.json CHANGED
@@ -1,7 +1,8 @@
1
1
  {
2
2
  "name": "@epic-designer/antd",
3
- "version": "1.0.6-beta.0",
3
+ "version": "1.1.0",
4
4
  "description": "epic-designer base antd ui",
5
+ "private": false,
5
6
  "author": "kchengz",
6
7
  "type": "module",
7
8
  "files": [
package/src/form/form.vue CHANGED
@@ -1,10 +1,6 @@
1
1
  <script lang="ts" setup>
2
2
  import type { PageManager } from '@epic-designer/manager';
3
- import type {
4
- ComponentSchema,
5
- DesignerProps,
6
- FormDataModel,
7
- } from '@epic-designer/types';
3
+ import type { ComponentSchema, FormDataModel } from '@epic-designer/types';
8
4
 
9
5
  import type { VNode } from 'vue';
10
6
 
@@ -35,7 +31,6 @@ const props = withDefaults(
35
31
  },
36
32
  );
37
33
 
38
- const designerProps = inject<DesignerProps>('designerProps');
39
34
  const pageManager = inject<PageManager>('pageManager', {} as PageManager);
40
35
  const form = ref<FormInstance | null>(null);
41
36
  const forms = inject<{ [name: string]: any }>('forms', {});
@@ -139,7 +134,6 @@ defineExpose({
139
134
  :model="formData"
140
135
  v-bind="componentProps"
141
136
  @finish="onFinish"
142
- :class="{ 'epic-form-mode': designerProps?.formMode }"
143
137
  @vue:mounted="mountedForm"
144
138
  >
145
139
  <slot name="edit-node">