变更
This commit is contained in:
parent
30528311c1
commit
0c45925be9
@ -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 "";
|
||||
}
|
||||
}
|
||||
};
|
||||
|
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 "";
|
||||
}
|
||||
}
|
||||
};
|
||||
|
@ -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` : "";
|
||||
}
|
||||
}
|
||||
};
|
||||
|
@ -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";
|
||||
|
||||
|
2
types/component/tag/interface.d.ts
vendored
2
types/component/tag/interface.d.ts
vendored
@ -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";
|
||||
|
56
umd/index.js
56
umd/index.js
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user