feat: 登录页改造

This commit is contained in:
kailong321200875
2023-07-10 20:40:36 +08:00
parent b1a83f6018
commit 5312951359
9 changed files with 197 additions and 164 deletions

View File

@@ -15,7 +15,6 @@ export interface TableExpose {
setColumn: (columnProps: TableSetProps[]) => void
addColumn: (column: TableColumn, index?: number) => void
delColumn: (field: string) => void
selections: Recordable[]
elTableRef: ComponentRef<typeof ElTable>
}

View File

@@ -230,18 +230,11 @@ export default defineComponent({
}
}
const selections = ref<Recordable[]>([])
const selectionChange = (selection: Recordable[]) => {
selections.value = selection
}
expose({
setProps,
setColumn,
delColumn,
addColumn,
selections,
elTableRef
})
@@ -409,12 +402,7 @@ export default defineComponent({
return () => (
<div v-loading={unref(getProps).loading}>
<ElTable
ref={elTableRef}
data={unref(getProps).data}
onSelection-change={selectionChange}
{...unref(getBindValue)}
>
<ElTable ref={elTableRef} data={unref(getProps).data} {...unref(getBindValue)}>
{{
default: () => renderTableColumn(),
empty: () => getSlot(slots, 'empty') || unref(getProps).emptyText,