变更
This commit is contained in:
16
lib/index.js
16
lib/index.js
@@ -40503,21 +40503,17 @@ const _sfc_main$D = defineComponent({
|
||||
const renderFixedClassName = (column, columnIndex) => {
|
||||
if (column.fixed) {
|
||||
if (column.fixed == "left") {
|
||||
var left = true;
|
||||
for (var i = columnIndex + 1; i < props.columns.length; i++) {
|
||||
if (props.columns[i].fixed && props.columns[i].fixed == "left" && tableColumnKeys.value.includes(props.columns[i].key)) {
|
||||
left = false;
|
||||
}
|
||||
if (props.columns[i].fixed && props.columns[i].fixed == "left" && tableColumnKeys.value.includes(props.columns[i].key))
|
||||
;
|
||||
}
|
||||
return left ? `layui-table-fixed-left-last` : "";
|
||||
return "";
|
||||
} else {
|
||||
var right = true;
|
||||
for (var i = 0; i < columnIndex; i++) {
|
||||
if (props.columns[i].fixed && props.columns[i].fixed == "right" && tableColumnKeys.value.includes(props.columns[i].key)) {
|
||||
right = false;
|
||||
}
|
||||
if (props.columns[i].fixed && props.columns[i].fixed == "right" && tableColumnKeys.value.includes(props.columns[i].key))
|
||||
;
|
||||
}
|
||||
return right ? `layui-table-fixed-right-first` : "";
|
||||
return "";
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user