@lx-frontend/wrap-element-ui 1.0.11-beta.0 → 1.0.11-beta.2

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.11-beta.0",
3
+ "version": "1.0.11-beta.2",
4
4
  "description": "wrap-element-ui",
5
5
  "author": "",
6
6
  "main": "src/components/index.ts",
@@ -9,13 +9,16 @@
9
9
  @show="() => emit('popover-show')"
10
10
  >
11
11
  <template slot="reference">
12
+ <slot
13
+ v-if="column.customColorLabel"
14
+ name="custom"
15
+ />
12
16
  <!-- 筛选中,或排序中,高亮 -->
13
- <span :class="['editable-table__sort-reference', headActive && 'editable-table__sort-reference--active']">
14
- <slot
15
- v-if="column.customColorLabel"
16
- name="custom"
17
- />
18
- <span v-else>{{ column.label }}</span>
17
+ <span
18
+ v-else
19
+ :class="['editable-table__sort-reference', headActive && 'editable-table__sort-reference--active']"
20
+ >
21
+ {{ column.label }}
19
22
  <div :class="['editable-table__sort-icon', headActive && 'editable-table__sort-icon--active']" />
20
23
  </span>
21
24
  </template>
@@ -99,43 +99,42 @@
99
99
  <!-- 颜色选择列 -->
100
100
  <el-table-column
101
101
  v-if="colorList && colorList.length > 0"
102
- :width="colorFilterConfig ? '40px' : '22px'"
102
+ width="22px"
103
103
  class-name="editable-table__color-column no-inner-cell-border"
104
104
  :fixed="leftFixedColumnCount > 0 ? 'left' : false"
105
105
  :filtered-value="filteredValue[colorFilterConfig?.prop]"
106
106
  >
107
107
  <template #header="scope">
108
- <div v-if="colorFilterConfig">
109
- <biz-table-header-popover
110
- :head-active="isColumnHeadActive(colorFilterConfig)"
111
- :column="colorFilterConfig"
112
- :showing-columns="showingColumns"
113
- :temp-summary-list="tempSummaryList"
114
- :temp-sorting-column="tempSortingColumn"
115
- :temp-sort-type="tempSortType"
116
- :temp-filtered-value="tempFilteredValue"
117
- :temp-search-value="tempSearchValue"
118
- @update:tempSummaryList="val => { tempSummaryList = val }"
119
- @update:tempFilteredValue="(key, value) => { $set(tempFilteredValue, key, value) }"
120
- @update:tempSearchValue="(key, value) => { $set(tempSearchValue, key, value) }"
121
- @popover-show="() => handleHeaderPopoverShow(colorFilterConfig)"
122
- @update:sort="(type) => handleSort(type, colorFilterConfig)"
123
- @reset="() => handleHeaderOperationReset(colorFilterConfig, scope)"
124
- @confirm="() => handleHeaderOperationConfirm(colorFilterConfig, scope)"
125
- >
126
- <template #custom>
127
- <div class="editable-table__color-icon" />
128
- </template>
129
- <template #filter-item="item">
130
- <slot
131
- :name="colorFilterConfig.prop + '-filter-item'"
132
- v-bind="item"
133
- >
134
- {{ item.text }}
135
- </slot>
136
- </template>
137
- </biz-table-header-popover>
138
- </div>
108
+ <biz-table-header-popover
109
+ v-if="colorFilterConfig"
110
+ :head-active="isColumnHeadActive(colorFilterConfig)"
111
+ :column="colorFilterConfig"
112
+ :showing-columns="showingColumns"
113
+ :temp-summary-list="tempSummaryList"
114
+ :temp-sorting-column="tempSortingColumn"
115
+ :temp-sort-type="tempSortType"
116
+ :temp-filtered-value="tempFilteredValue"
117
+ :temp-search-value="tempSearchValue"
118
+ @update:tempSummaryList="val => { tempSummaryList = val }"
119
+ @update:tempFilteredValue="(key, value) => { $set(tempFilteredValue, key, value) }"
120
+ @update:tempSearchValue="(key, value) => { $set(tempSearchValue, key, value) }"
121
+ @popover-show="() => handleHeaderPopoverShow(colorFilterConfig)"
122
+ @update:sort="(type) => handleSort(type, colorFilterConfig)"
123
+ @reset="() => handleHeaderOperationReset(colorFilterConfig, scope)"
124
+ @confirm="() => handleHeaderOperationConfirm(colorFilterConfig, scope)"
125
+ >
126
+ <template #custom>
127
+ <div class="editable-table__color-icon" />
128
+ </template>
129
+ <template #filter-item="item">
130
+ <slot
131
+ :name="colorFilterConfig.prop + '-filter-item'"
132
+ v-bind="item"
133
+ >
134
+ {{ item.text }}
135
+ </slot>
136
+ </template>
137
+ </biz-table-header-popover>
139
138
  <div
140
139
  v-else
141
140
  class="editable-table__color-icon"