@lx-frontend/wrap-element-ui 1.0.22-beta.1 → 1.0.22-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,11 +1,11 @@
|
|
|
1
|
-
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
2
|
-
// @ts-nocheck
|
|
3
1
|
import { computed, nextTick, ref, Ref, watch } from 'vue'
|
|
4
2
|
import {
|
|
3
|
+
FilterItem,
|
|
5
4
|
FilterListType,
|
|
6
5
|
IColumnConfig,
|
|
7
6
|
IEmits,
|
|
8
7
|
IFilterInput,
|
|
8
|
+
IFilterSolt,
|
|
9
9
|
IProps
|
|
10
10
|
} from '../types';
|
|
11
11
|
|
|
@@ -146,7 +146,7 @@ export function useColumnHeaderOperation({ props, tableDomRef, emit, showingColu
|
|
|
146
146
|
|
|
147
147
|
const processFilter = (filters: FilterListType) => {
|
|
148
148
|
filters
|
|
149
|
-
.filter(item => item.type !== 'slot')
|
|
149
|
+
.filter((item): item is Exclude<FilterItem, IFilterSolt> => item.type !== 'slot')
|
|
150
150
|
.forEach((item) => {
|
|
151
151
|
if (item.type === 'doubleDatePicker' || item.type === 'monthDayPicker') {
|
|
152
152
|
const [start, end] = item.prop
|
|
@@ -250,7 +250,7 @@ export function useColumnHeaderOperation({ props, tableDomRef, emit, showingColu
|
|
|
250
250
|
|
|
251
251
|
function handleResetFilterValue (column: IColumnConfig) {
|
|
252
252
|
(column.filters || [])
|
|
253
|
-
.filter(item => item.type !== 'slot')
|
|
253
|
+
.filter((item): item is Exclude<FilterItem, IFilterSolt> => item.type !== 'slot')
|
|
254
254
|
.forEach(
|
|
255
255
|
(item) => {
|
|
256
256
|
if (item.type === 'radio' || item.type === 'checkbox') {
|
|
@@ -296,7 +296,7 @@ export function useColumnHeaderOperation({ props, tableDomRef, emit, showingColu
|
|
|
296
296
|
// 设置搜索和过滤参数时,如果使用 showingColumns 遍历,会导致通过外部设置未显示的列的搜索和过滤参数丢失
|
|
297
297
|
[props.colorFilterConfig, ...props.columnConfig].forEach(column => {
|
|
298
298
|
(column?.filters ?? [])
|
|
299
|
-
.filter(item => item.type !== 'slot')
|
|
299
|
+
.filter((item): item is Exclude<FilterItem, IFilterSolt> => item.type !== 'slot')
|
|
300
300
|
.forEach(
|
|
301
301
|
(item) => {
|
|
302
302
|
if (item.type === 'doubleDatePicker' || item.type === 'monthDayPicker') {
|