feat(ui):用户

This commit is contained in:
huangqj
2024-03-07 14:03:55 +08:00
parent 8e7413da97
commit cb0e7d64ff
6 changed files with 331 additions and 8 deletions

View File

@@ -84,7 +84,7 @@ const optionsEvent = {
</AFormItem>
</AGridItem>
<AGridItem suffix>
<ASpace>
<ASpace class="flex-end">
<slot name="search-options" :option="optionsEvent">
<AButton
type="primary"
@@ -114,4 +114,8 @@ const optionsEvent = {
.search-form-conteiner {
padding: 16px 0;
}
.flex-end {
display: flex;
justify-content: end;
}
</style>

View File

@@ -33,8 +33,9 @@ const handleSearch = async (tips?: boolean) => {
onActivated(handleSearch);
</script>
<template>
<div class="search-table">
<div ref="tableContainerRef" class="search-table-container">
<slot name="header" v-bind="{ reload: handleSearch }" />
<div class="simple-table">
<div ref="tableContainerRef" class="simple-table-container">
<ATable
v-bind="{
...$attrs,
@@ -52,15 +53,15 @@ onActivated(handleSearch);
</div>
</template>
<style scoped>
.search-table {
.simple-table {
display: flex;
flex-direction: column;
height: 100%;
}
.search-table-container {
.simple-table-container {
flex: 1;
}
.search-table-header {
.simple-table-header {
display: flex;
align-items: center;
justify-content: space-between;