This commit is contained in:
theluyuan 2024-09-25 09:42:05 +08:00
parent 30528311c1
commit 0c45925be9
6 changed files with 46 additions and 52 deletions

View File

@ -1448,21 +1448,17 @@ const _sfc_main = 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 "";
}
}
};

View File

@ -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 "";
}
}
};

View File

@ -748,7 +748,8 @@ const renderFixedClassName = (column: any, columnIndex: number) => {
left = false;
}
}
return left ? `layui-table-fixed-left-last` : "";
return "";
// return left ? `layui-table-fixed-left-last` : "";
} else {
var right = true;
for (var i = 0; i < columnIndex; i++) {
@ -760,7 +761,8 @@ const renderFixedClassName = (column: any, columnIndex: number) => {
right = false;
}
}
return right ? `layui-table-fixed-right-first` : "";
return "";
// return right ? `layui-table-fixed-right-first` : "";
}
}
};

View File

@ -1,6 +1,6 @@
export const TAG_COLORS = ["primary", "normal", "warm", "danger"] as const;
export type TagType = typeof TAG_COLORS[number];
export type TagType = (typeof TAG_COLORS)[number];
export type TagShape = "square" | "round";

View File

@ -1,4 +1,4 @@
export declare const TAG_COLORS: readonly ["primary", "normal", "warm", "danger"];
export type TagType = typeof TAG_COLORS[number];
export type TagType = (typeof TAG_COLORS)[number];
export type TagShape = "square" | "round";
export type TagVariant = "dark" | "light" | "plain";

File diff suppressed because one or more lines are too long