@lx-frontend/wrap-element-ui 1.0.14-beta.8 → 1.0.14

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.14-beta.8",
3
+ "version": "1.0.14",
4
4
  "description": "wrap-element-ui",
5
5
  "author": "",
6
6
  "main": "src/components/index.ts",
@@ -1,5 +1,5 @@
1
1
  import { computed, nextTick, ref, Ref, watch } from 'vue'
2
- import { IColumnConfig, IEmits, IProps, ISearchOptions, DoubleDatePickerSearchOption, SlotSearchOption } from '../types';
2
+ import { IColumnConfig, IEmits, IProps } from '../types';
3
3
 
4
4
  interface IUseColumnHeaderOperationParams {
5
5
  props: IProps
@@ -192,7 +192,7 @@ export function useColumnHeaderOperation({ props, tableDomRef, emit, showingColu
192
192
  }
193
193
  } else if (v.type === 'doubleDatePicker' || v.type === 'slot') {
194
194
  if (v.validator) {
195
- const result = v.validator?.(tempSearchValue.value);
195
+ const result = v.validator(tempSearchValue.value);
196
196
  if (!result) validate = false;
197
197
  }
198
198
  }
@@ -54,14 +54,14 @@ type ISortOption = {
54
54
  label: string
55
55
  }
56
56
 
57
- export type InputSearchOption = {
57
+ type InputSearchOption = {
58
58
  prop: string
59
59
  label: string
60
60
  validator?: (value: string) => boolean
61
61
  type?: 'input'
62
62
  }
63
63
 
64
- export type DoubleDatePickerSearchOption = {
64
+ type DoubleDatePickerSearchOption = {
65
65
  prop: [string, string]
66
66
  label: string
67
67
  type: 'doubleDatePicker'
@@ -69,7 +69,7 @@ export type DoubleDatePickerSearchOption = {
69
69
  validator?: (tempSearchValue: Record<string, any>) => boolean
70
70
  }
71
71
 
72
- export type SlotSearchOption = {
72
+ type SlotSearchOption = {
73
73
  prop: string | string[]
74
74
  label: string
75
75
  type: 'slot'
@@ -77,7 +77,7 @@ export type SlotSearchOption = {
77
77
  validator?: (tempSearchValue: Record<string, any>) => boolean
78
78
  }
79
79
 
80
- export type ISearchOptions = (InputSearchOption | DoubleDatePickerSearchOption | SlotSearchOption)[]
80
+ type ISearchOptions = (InputSearchOption | DoubleDatePickerSearchOption | SlotSearchOption)[]
81
81
 
82
82
  type IInputColumn = IColumnConfigRequired & {
83
83
  inputType: string | number;