@tmagic/form 1.0.4 → 1.1.0-beta.1

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.
@@ -1,4 +1,4 @@
1
- import type { DefineComponent, Ref, ComputedRef, ComponentOptionsMixin, EmitsOptions, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes, PropType } from 'vue';
1
+ import type { DefineComponent, Ref, ComputedRef, ComputedOptions, MethodOptions, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes, PropType } from 'vue';
2
2
  import type { FormConfig, GroupListConfig } from '../schema';
3
3
  declare const _default: DefineComponent<{
4
4
  labelWidth: StringConstructor;
@@ -38,7 +38,7 @@ declare const _default: DefineComponent<{
38
38
  }>;
39
39
  changeHandler: () => void;
40
40
  length: ComputedRef<number>;
41
- Delete: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, EmitsOptions, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<{}>, {}>;
41
+ Delete: DefineComponent<{}, {}, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{}>>, {}>;
42
42
  }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, ("change" | "swap-item" | "remove-item")[], "change" | "swap-item" | "remove-item", VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
43
43
  labelWidth: StringConstructor;
44
44
  model: {
@@ -2,7 +2,7 @@ import type { DebouncedFunc } from 'lodash-es';
2
2
  import type { default } from 'element-plus/es/components/table/src/table-layout';
3
3
  import type { TableColumnCtx } from 'element-plus/es/components/table/src/table-column/defaults';
4
4
  import type { SummaryMethod, ColumnCls, ColumnStyle, Sort, TreeNode, Table } from 'element-plus/es/components/table/src/table/defaults';
5
- import type { DefineComponent, Ref, ComponentInternalInstance, CSSProperties, ExtractPropTypes, VNodeProps, AllowedComponentProps, ComponentCustomProps, Slot, ComponentPublicInstance, ComponentOptionsBase, ComputedRef, ComponentOptionsMixin, DebuggerEvent, nextTick, WatchOptions, WatchStopHandle, ShallowUnwrapRef, ComponentCustomProperties, EmitsOptions, PropType } from 'vue';
5
+ import type { DefineComponent, Ref, ComponentInternalInstance, CSSProperties, ExtractPropTypes, VNodeProps, AllowedComponentProps, ComponentCustomProps, Slot, ComponentPublicInstance, ComponentOptionsBase, ComputedRef, ComponentOptionsMixin, DebuggerEvent, nextTick, WatchOptions, WatchStopHandle, ShallowUnwrapRef, ComponentCustomProperties, ComputedOptions, MethodOptions, PropType } from 'vue';
6
6
  import type { Translator, UploadFile } from 'element-plus';
7
7
  import { ColumnConfig, FormState, SortProp, TableConfig } from '../schema';
8
8
  declare const _default: DefineComponent<{
@@ -699,11 +699,11 @@ declare const _default: DefineComponent<{
699
699
  excelBtn: Ref<any>;
700
700
  modelName: ComputedRef<string | number>;
701
701
  updateKey: Ref<number>;
702
- ArrowDown: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, EmitsOptions, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<{}>, {}>;
703
- ArrowUp: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, EmitsOptions, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<{}>, {}>;
704
- Delete: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, EmitsOptions, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<{}>, {}>;
705
- FullScreen: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, EmitsOptions, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<{}>, {}>;
706
- Grid: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, EmitsOptions, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<{}>, {}>;
702
+ ArrowDown: DefineComponent<{}, {}, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{}>>, {}>;
703
+ ArrowUp: DefineComponent<{}, {}, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{}>>, {}>;
704
+ Delete: DefineComponent<{}, {}, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{}>>, {}>;
705
+ FullScreen: DefineComponent<{}, {}, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{}>>, {}>;
706
+ Grid: DefineComponent<{}, {}, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{}>>, {}>;
707
707
  data: ComputedRef<any>;
708
708
  addable: ComputedRef<boolean | "undefined">;
709
709
  selection: ComputedRef<boolean | "single" | undefined>;
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.0.4",
2
+ "version": "1.1.0-beta.1",
3
3
  "name": "@tmagic/form",
4
4
  "sideEffects": [
5
5
  "dist/*",
@@ -32,8 +32,8 @@
32
32
  "url": "https://github.com/Tencent/tmagic-editor.git"
33
33
  },
34
34
  "dependencies": {
35
- "@element-plus/icons": "0.0.11",
36
- "@tmagic/utils": "1.0.4",
35
+ "@element-plus/icons-vue": "^2.0.6",
36
+ "@tmagic/utils": "1.1.0-beta.1",
37
37
  "element-plus": "^2.2.6",
38
38
  "lodash-es": "^4.17.21",
39
39
  "moment": "^2.29.2",
@@ -104,7 +104,7 @@
104
104
 
105
105
  <script lang="ts">
106
106
  import { computed, defineComponent, inject, PropType, ref, resolveComponent, watchEffect } from 'vue';
107
- import { WarningFilled } from '@element-plus/icons';
107
+ import { WarningFilled } from '@element-plus/icons-vue';
108
108
 
109
109
  import { ChildConfig, ContainerCommonConfig, FormState, FormValue } from '../schema';
110
110
  import { display as displayFunction, filterFunction, getRules } from '../utils/form';
@@ -2,7 +2,7 @@
2
2
  <div class="m-fields-group-list-item">
3
3
  <div>
4
4
  <el-icon style="margin-right: 7px" @click="expandHandler"
5
- ><caret-bottom v-if="expand" /><caret-right v-else
5
+ ><CaretBottom v-if="expand" /><CaretRight v-else
6
6
  /></el-icon>
7
7
 
8
8
  <el-button text @click="expandHandler">{{ title }}</el-button>
@@ -17,7 +17,7 @@
17
17
 
18
18
  <template v-if="movable()">
19
19
  <el-button v-show="index !== 0" text size="small" @click="changeOrder(-1)"
20
- >上移<el-icon><CaretRight /></el-icon
20
+ >上移<el-icon><CaretTop /></el-icon
21
21
  ></el-button>
22
22
  <el-button v-show="index !== length - 1" text size="small" @click="changeOrder(1)"
23
23
  >下移<el-icon><CaretBottom /></el-icon
@@ -41,7 +41,7 @@
41
41
 
42
42
  <script lang="ts">
43
43
  import { computed, defineComponent, inject, PropType, ref, watchEffect } from 'vue';
44
- import { CaretBottom, CaretRight, Delete } from '@element-plus/icons';
44
+ import { CaretBottom, CaretRight, CaretTop, Delete } from '@element-plus/icons-vue';
45
45
 
46
46
  import { FormState, GroupListConfig } from '../schema';
47
47
  import { filterFunction } from '../utils/form';
@@ -49,7 +49,7 @@ import { filterFunction } from '../utils/form';
49
49
  export default defineComponent({
50
50
  name: 'm-form-group-list-item',
51
51
 
52
- components: { CaretRight, CaretBottom },
52
+ components: { CaretBottom, CaretRight, CaretTop },
53
53
 
54
54
  props: {
55
55
  labelWidth: String,
@@ -51,7 +51,7 @@
51
51
 
52
52
  <script lang="ts">
53
53
  import { computed, defineComponent, inject, PropType, ref } from 'vue';
54
- import { CaretBottom, CaretRight } from '@element-plus/icons';
54
+ import { CaretBottom, CaretRight } from '@element-plus/icons-vue';
55
55
 
56
56
  import { FormState, PanelConfig } from '../schema';
57
57
  import { filterFunction } from '../utils/form';
@@ -153,7 +153,7 @@
153
153
  <script lang="ts">
154
154
  /* eslint-disable no-param-reassign */
155
155
  import { computed, defineComponent, inject, onMounted, PropType, ref, toRefs } from 'vue';
156
- import { ArrowDown, ArrowUp, Delete, FullScreen, Grid } from '@element-plus/icons';
156
+ import { ArrowDown, ArrowUp, Delete, FullScreen, Grid } from '@element-plus/icons-vue';
157
157
  import { ElMessage, ElTable, UploadFile } from 'element-plus';
158
158
  import { cloneDeep } from 'lodash-es';
159
159
  import Sortable, { SortableEvent } from 'sortablejs';