@tmagic/form 1.1.0-beta.0 → 1.1.0-beta.3

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/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.1.0-beta.0",
2
+ "version": "1.1.0-beta.3",
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.1.0-beta.0",
35
+ "@element-plus/icons-vue": "^2.0.6",
36
+ "@tmagic/utils": "1.1.0-beta.3",
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,8 +153,8 @@
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';
157
- import { ElMessage, ElTable, UploadFile } from 'element-plus';
156
+ import { ArrowDown, ArrowUp, Delete, FullScreen, Grid } from '@element-plus/icons-vue';
157
+ import { ElMessage, UploadFile } from 'element-plus';
158
158
  import { cloneDeep } from 'lodash-es';
159
159
  import Sortable, { SortableEvent } from 'sortablejs';
160
160
 
@@ -223,7 +223,7 @@ export default defineComponent({
223
223
  let timer: NodeJS.Timeout | null = null;
224
224
  const mForm = inject<FormState | undefined>('mForm');
225
225
 
226
- const elTable = ref<InstanceType<typeof ElTable>>();
226
+ const elTable = ref<any>();
227
227
  const excelBtn = ref<any>();
228
228
  const mTable = ref<HTMLDivElement>();
229
229