@lx-frontend/wrap-element-ui 1.0.15-beta.5 → 1.0.15-beta.7

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.15-beta.5",
3
+ "version": "1.0.15-beta.7",
4
4
  "description": "wrap-element-ui",
5
5
  "author": "",
6
6
  "main": "src/components/index.ts",
@@ -4,10 +4,7 @@
4
4
  <div class="editable-table-sort-filter__search-title">
5
5
  {{ config.label || '筛选' }}
6
6
  </div>
7
- <div
8
- class="editable-table-sort-filter__date-picker-content"
9
- style="display: flex;flex-direction: column;gap: 12px;"
10
- >
7
+ <div class="editable-table-sort-filter__date-picker-content">
11
8
  <el-date-picker
12
9
  @input="val => emit('update:tempFilteredValue', config.prop[0], val || '')"
13
10
  :value="tempFilteredValue[config.prop[0]]"
@@ -1,4 +1,4 @@
1
- import dayjs, { OpUnitType } from 'dayjs';
1
+ import dayjs from 'dayjs';
2
2
 
3
3
  // 月份配置 - 月份对应的天数
4
4
  const monthConfig = [
@@ -4,10 +4,7 @@
4
4
  <div class="editable-table-sort-filter__search-title">
5
5
  {{ config.label || '筛选' }}
6
6
  </div>
7
- <div
8
- class="editable-table-sort-filter__date-picker-content"
9
- style="display: flex;flex-direction: column;gap: 12px;"
10
- >
7
+ <div class="editable-table-sort-filter__date-picker-content">
11
8
  <el-cascader
12
9
  clearable
13
10
  :value="startDate"
@@ -391,10 +391,25 @@
391
391
  margin-top: 14px;
392
392
  }
393
393
 
394
+ &__date-picker-content {
395
+ display: flex;
396
+ flex-direction: column;
397
+ gap: 12px;
398
+
399
+ .el-date-editor.el-input,
400
+ .el-date-editor.el-input__inner {
401
+ width: 100%;
402
+ }
403
+ }
404
+
394
405
  &__filter,
395
406
  &__search {
396
407
  padding: 0 14px;
397
408
 
409
+ .el-select {
410
+ width: 100%;
411
+ }
412
+
398
413
  .el-radio {
399
414
  width: 100%;
400
415
  margin-top: 10px;
@@ -439,7 +454,6 @@
439
454
  padding: 0 14px;
440
455
  display: flex;
441
456
  flex-direction: column;
442
- gap: 8px;
443
457
  }
444
458
 
445
459
  &__filter-title,
@@ -57,7 +57,7 @@ export interface IFilterColorRadio {
57
57
  type: 'colorRadio',
58
58
  prop: string,
59
59
  label?: string,
60
- options: IFilterSelectOptions[]
60
+ options: Array<IFilterSelectOptions & { color: string }>
61
61
  }
62
62
 
63
63
  export type FilterItem = IFilterInput | IFilterSelect | IFilterDoubleDatePicker | IFilterMonthDayPicker | IFilterColorRadio