@lx-frontend/wrap-element-ui 1.0.17-beta.0 → 1.0.17-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.
package/package.json
CHANGED
|
@@ -31,7 +31,6 @@
|
|
|
31
31
|
</template>
|
|
32
32
|
|
|
33
33
|
<script setup lang="ts">
|
|
34
|
-
import { defineEmits, defineProps } from 'vue';
|
|
35
34
|
import { IColumnConfig } from '../types'
|
|
36
35
|
|
|
37
36
|
defineProps<{
|
|
@@ -39,7 +38,6 @@ defineProps<{
|
|
|
39
38
|
value: any;
|
|
40
39
|
}>()
|
|
41
40
|
|
|
42
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
43
41
|
const emit = defineEmits<{
|
|
44
42
|
(e: 'input', value: any): void;
|
|
45
43
|
}>()
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
</template>
|
|
42
42
|
|
|
43
43
|
<script setup lang="ts">
|
|
44
|
-
import {
|
|
44
|
+
import { ref } from 'vue';
|
|
45
45
|
import { IDefaultOperationType } from '../types';
|
|
46
46
|
|
|
47
47
|
defineProps<{
|
|
@@ -53,7 +53,6 @@ defineProps<{
|
|
|
53
53
|
scope: any
|
|
54
54
|
}>()
|
|
55
55
|
|
|
56
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
57
56
|
const emit = defineEmits<{
|
|
58
57
|
(e: 'edit'): void
|
|
59
58
|
(e: 'delete'): void
|
|
@@ -231,7 +231,7 @@
|
|
|
231
231
|
<!-- 自定义编辑 -->
|
|
232
232
|
<slot
|
|
233
233
|
v-if="column.editSlotName"
|
|
234
|
-
v-bind="{scope, column}"
|
|
234
|
+
v-bind="returnAnyType({ scope, column })"
|
|
235
235
|
:name="column.editSlotName"
|
|
236
236
|
/>
|
|
237
237
|
<!-- 内置编辑类型 -->
|
|
@@ -315,7 +315,7 @@ import BizTableHeaderPopover from './features/bizTableHeaderPopover/index.vue'
|
|
|
315
315
|
import BizEditCell from './features/bizEditCell.vue'
|
|
316
316
|
import BizTableOperatePopover from './features/bizTableOperatePopover.vue'
|
|
317
317
|
|
|
318
|
-
import { computed,
|
|
318
|
+
import { computed, nextTick, ref, watch } from 'vue';
|
|
319
319
|
import { Message } from 'element-ui';
|
|
320
320
|
import omit from 'lodash/omit';
|
|
321
321
|
|
|
@@ -425,6 +425,10 @@ const showingColumns = ref<string[]>([]); // 表格中实际展示的列
|
|
|
425
425
|
const leftFixedColumnCount = ref(0) // 左侧固定列数量
|
|
426
426
|
const viewSettingDragSortOptions = ref<IColumnConfig[]>([])
|
|
427
427
|
|
|
428
|
+
const returnAnyType = (params): any => {
|
|
429
|
+
return params
|
|
430
|
+
}
|
|
431
|
+
|
|
428
432
|
const actualColumns = computed(() => {
|
|
429
433
|
const res: IColumnConfig[] = [];
|
|
430
434
|
let cnt = leftFixedColumnCount.value;
|
|
@@ -558,8 +562,6 @@ const beforeDragStart = () => {
|
|
|
558
562
|
return true;
|
|
559
563
|
};
|
|
560
564
|
|
|
561
|
-
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
562
|
-
// @ts-ignore
|
|
563
565
|
useDragSort({
|
|
564
566
|
emit,
|
|
565
567
|
props,
|
|
@@ -88,7 +88,6 @@ type _IColumnConfigRequired = {
|
|
|
88
88
|
/** 自定义颜色表头label */
|
|
89
89
|
customColorLabel?: boolean;
|
|
90
90
|
filters?: FilterListType;
|
|
91
|
-
selectOptions?: { label: string; value: string }[];
|
|
92
91
|
}
|
|
93
92
|
|
|
94
93
|
export type IColumnConfigRequired = _IColumnConfigRequired & Partial<Omit<TableColumn, keyof _IColumnConfigRequired>>
|