🐛(table): 修复 .layui-table-total 背景色 fixed 字段不生效的问题

This commit is contained in:
就眠儀式 2022-12-07 00:34:28 +08:00
parent f393343f03
commit bb9f74922e
4 changed files with 6 additions and 6 deletions

View File

@ -39,13 +39,13 @@ const selectIcon = function (icon: string): void {
dropdownRef.value?.hide(); dropdownRef.value?.hide();
}; };
const onClear = function(): void { const onClear = function (): void {
emit("update:modelValue", ""); emit("update:modelValue", "");
} };
const hasContent = computed(() => { const hasContent = computed(() => {
return props.modelValue != null && props.modelValue != ""; return props.modelValue != null && props.modelValue != "";
}) });
const icones: Ref = ref([]); const icones: Ref = ref([]);
const total: Ref<number> = ref(icons.length); const total: Ref<number> = ref(icons.length);

View File

@ -11,7 +11,7 @@ import {
useSlots, useSlots,
getCurrentInstance, getCurrentInstance,
reactive, reactive,
onBeforeUnmount onBeforeUnmount,
} from "vue"; } from "vue";
import { TabInjectKey, TabsContext } from "../tab/interface"; import { TabInjectKey, TabsContext } from "../tab/interface";

View File

@ -44,12 +44,11 @@
.layui-table-mend, .layui-table-mend,
.layui-table-tool, .layui-table-tool,
.layui-table-total,
.layui-table-patch, .layui-table-patch,
.layui-table-click, .layui-table-click,
.layui-table-hover, .layui-table-hover,
.layui-table-header, .layui-table-header,
.layui-table-total tr, .layui-table-total td,
.layui-table thead tr, .layui-table thead tr,
.layui-table tbody tr:hover td, .layui-table tbody tr:hover td,
.layui-table.layui-table-even tr:nth-child(even) td { .layui-table.layui-table-even tr:nth-child(even) td {

View File

@ -20,6 +20,7 @@
<li>[修复] button 组件 夜间模式 下, 普通按钮边框高亮与背景色不一致的问题。</li> <li>[修复] button 组件 夜间模式 下, 普通按钮边框高亮与背景色不一致的问题。</li>
<li>[优化] checkbox 组件 默认主题 下, 勾选框多余的左边框。</li> <li>[优化] checkbox 组件 默认主题 下, 勾选框多余的左边框。</li>
<li>[优化] icon-picker 组件 下拉 图标, 在打开关闭时赋予不同的状态。</li> <li>[优化] icon-picker 组件 下拉 图标, 在打开关闭时赋予不同的状态。</li>
<li>[优化] table 组件 .layui-table-total 背景色 fixed 字段不生效的问题。</li>
</ul> </ul>
</li> </li>
</ul> </ul>