🐛(table): 修改 table-row 组件 props 命名

This commit is contained in:
就眠儀式 2022-05-29 01:13:42 +08:00
parent 62585e9e56
commit e5fd1c6995
2 changed files with 11 additions and 3 deletions

View File

@ -8,7 +8,7 @@ export default {
import { computed, ref, useSlots, WritableComputedRef } from "vue"; import { computed, ref, useSlots, WritableComputedRef } from "vue";
import { Recordable } from "../../types"; import { Recordable } from "../../types";
export interface LayTableProps { export interface LayTableRowProps {
selectedKeys: Recordable[]; selectedKeys: Recordable[];
tableColumnKeys: Recordable[]; tableColumnKeys: Recordable[];
columns: Recordable[]; columns: Recordable[];
@ -25,8 +25,8 @@ const emit = defineEmits([
"update:selectedKeys", "update:selectedKeys",
]); ]);
const props = withDefaults(defineProps<LayTableProps>(), { const props = withDefaults(defineProps<LayTableRowProps>(), {
checkbox: false, checkbox: false
}); });
const tableSelectedKeys: WritableComputedRef<Recordable[]> = computed({ const tableSelectedKeys: WritableComputedRef<Recordable[]> = computed({

View File

@ -362,6 +362,14 @@
border-radius: 2px; border-radius: 2px;
} }
.layui-table-cell-expand-icon-none {
display: none;
}
.layui-table-cell-expand-icon-hidden {
visibility: hidden;
}
.layui-table-body { .layui-table-body {
position: relative; position: relative;
overflow: auto; overflow: auto;