🐛(table): 修改 table-row 组件 props 命名
This commit is contained in:
parent
62585e9e56
commit
e5fd1c6995
@ -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({
|
||||||
|
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user