@lx-frontend/wrap-element-ui 1.0.22-beta.2 → 1.0.22
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,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lx-frontend/wrap-element-ui",
|
|
3
|
-
"version": "1.0.22
|
|
3
|
+
"version": "1.0.22",
|
|
4
4
|
"description": "wrap-element-ui",
|
|
5
5
|
"author": "",
|
|
6
6
|
"main": "src/components/index.ts",
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
"serve": "^14.2.3",
|
|
64
64
|
"storybook": "7.6.19",
|
|
65
65
|
"through2": "^4.0.2",
|
|
66
|
-
"typescript": "^
|
|
66
|
+
"typescript": "^4.9.5",
|
|
67
67
|
"vite": "^4.5.3",
|
|
68
68
|
"vite-plugin-dts": "^3.9.1",
|
|
69
69
|
"vite-plugin-lib-inject-css": "^2.1.1",
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { computed, nextTick, ref, Ref, watch } from 'vue'
|
|
2
2
|
import {
|
|
3
|
+
FilterItem,
|
|
3
4
|
FilterListType,
|
|
4
5
|
IColumnConfig,
|
|
5
6
|
IEmits,
|
|
6
7
|
IFilterInput,
|
|
8
|
+
IFilterSolt,
|
|
7
9
|
IProps
|
|
8
10
|
} from '../types';
|
|
9
11
|
|
|
@@ -144,7 +146,7 @@ export function useColumnHeaderOperation({ props, tableDomRef, emit, showingColu
|
|
|
144
146
|
|
|
145
147
|
const processFilter = (filters: FilterListType) => {
|
|
146
148
|
filters
|
|
147
|
-
.filter(item => item.type !== 'slot')
|
|
149
|
+
.filter((item): item is Exclude<FilterItem, IFilterSolt> => item.type !== 'slot')
|
|
148
150
|
.forEach((item) => {
|
|
149
151
|
if (item.type === 'doubleDatePicker' || item.type === 'monthDayPicker') {
|
|
150
152
|
const [start, end] = item.prop
|
|
@@ -248,7 +250,7 @@ export function useColumnHeaderOperation({ props, tableDomRef, emit, showingColu
|
|
|
248
250
|
|
|
249
251
|
function handleResetFilterValue (column: IColumnConfig) {
|
|
250
252
|
(column.filters || [])
|
|
251
|
-
.filter(item => item.type !== 'slot')
|
|
253
|
+
.filter((item): item is Exclude<FilterItem, IFilterSolt> => item.type !== 'slot')
|
|
252
254
|
.forEach(
|
|
253
255
|
(item) => {
|
|
254
256
|
if (item.type === 'radio' || item.type === 'checkbox') {
|
|
@@ -294,7 +296,7 @@ export function useColumnHeaderOperation({ props, tableDomRef, emit, showingColu
|
|
|
294
296
|
// 设置搜索和过滤参数时,如果使用 showingColumns 遍历,会导致通过外部设置未显示的列的搜索和过滤参数丢失
|
|
295
297
|
[props.colorFilterConfig, ...props.columnConfig].forEach(column => {
|
|
296
298
|
(column?.filters ?? [])
|
|
297
|
-
.filter(item => item.type !== 'slot')
|
|
299
|
+
.filter((item): item is Exclude<FilterItem, IFilterSolt> => item.type !== 'slot')
|
|
298
300
|
.forEach(
|
|
299
301
|
(item) => {
|
|
300
302
|
if (item.type === 'doubleDatePicker' || item.type === 'monthDayPicker') {
|