resolver-egretimp-plus 0.0.122 → 0.0.123
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
|
@@ -133,6 +133,10 @@ export default {
|
|
|
133
133
|
// 获取表格列的属性配置
|
|
134
134
|
const getTableColumnProps = (config, idx) => {
|
|
135
135
|
const nextList = tableColumnConfigs.value.slice(idx + 1)
|
|
136
|
+
// 当前config表格列是最后一个显示列,并且后面有hidden的列
|
|
137
|
+
const isEndConfig = !nextList?.filter(config => {
|
|
138
|
+
return config.displayType != DISPLAY_HIDDEN && !(config.width == 0 || config.width == '0px' || config.hidden == '1')
|
|
139
|
+
})?.length
|
|
136
140
|
const nextConfig = nextList.find(config => config.displayType != DISPLAY_HIDDEN)
|
|
137
141
|
const props = Object.keys(ElTableColumn.props).reduce((ret, key) => {
|
|
138
142
|
if (hasOwn(config, key)) {
|
|
@@ -153,6 +157,9 @@ export default {
|
|
|
153
157
|
if (nextConfig && (nextConfig.width == 0 || nextConfig.width == '0px' || nextConfig.hidden == '1')) {
|
|
154
158
|
props.className = `${props.className || ''} next-hidden-column`
|
|
155
159
|
}
|
|
160
|
+
if (isEndConfig) {
|
|
161
|
+
props.className = `${props.className || ''} end-show-column`
|
|
162
|
+
}
|
|
156
163
|
if (
|
|
157
164
|
isPlainColumn({...config, isColumn: true}, calcDisable(config, props.mode)) &&
|
|
158
165
|
config.showOverflowTooltip !== false &&
|