mirror of
https://gitee.com/honghuangdc/soybean-admin-element-plus.git
synced 2025-12-30 10:22:25 +00:00
fix(projects): fix example page ElCard slot name error. (#74)
Co-authored-by: yuyang <yuyang@7moor.com>
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
<script setup lang="tsx">
|
||||
import { ref } from 'vue';
|
||||
import { ElButton, ElPopconfirm, ElTag } from 'element-plus';
|
||||
import { usePagination } from '@sa/alova/client';
|
||||
import { ref } from 'vue';
|
||||
import { enableStatusRecord, userGenderRecord } from '@/constants/business';
|
||||
import { batchDeleteUser, deleteUser, fetchGetUserList } from '@/service-alova/api';
|
||||
import { $t } from '@/locales';
|
||||
import { enableStatusRecord, userGenderRecord } from '@/constants/business';
|
||||
import useCheckedColumns from './hooks/use-checked-columns';
|
||||
import useTableOperate from './hooks/use-table-operate';
|
||||
import UserOperateDrawer from './modules/user-operate-drawer.vue';
|
||||
@@ -143,7 +143,7 @@ const { columnChecks, columns } = useCheckedColumns<typeof fetchGetUserList>(()
|
||||
<div class="min-h-500px flex-col-stretch gap-16px overflow-hidden lt-sm:overflow-auto">
|
||||
<UserSearch v-model:model="searchParams" @search="getDataByPage" />
|
||||
<ElCard :header="$t('page.manage.user.title')" class="sm:flex-1-hidden card-wrapper" body-class="ht50">
|
||||
<template #header-extra>
|
||||
<template #header>
|
||||
<TableHeaderOperation
|
||||
v-model:columns="columnChecks"
|
||||
:disabled-delete="checkedRowKeys.length === 0"
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
<script setup lang="tsx">
|
||||
import { ElButton, ElPopconfirm, ElTag } from 'element-plus';
|
||||
import { enableStatusRecord } from '@/constants/business';
|
||||
import { fetchGetRoleList } from '@/service/api';
|
||||
import { useTable, useTableOperate } from '@/hooks/common/table';
|
||||
import { $t } from '@/locales';
|
||||
import { enableStatusRecord } from '@/constants/business';
|
||||
import RoleOperateDrawer from './modules/role-operate-drawer.vue';
|
||||
import RoleSearch from './modules/role-search.vue';
|
||||
|
||||
@@ -113,7 +113,7 @@ function edit(id: number) {
|
||||
<div class="min-h-500px flex-col-stretch gap-16px overflow-hidden lt-sm:overflow-auto">
|
||||
<RoleSearch v-model:model="searchParams" @reset="resetSearchParams" @search="getDataByPage" />
|
||||
<ElCard :header="$t('page.manage.role.title')" class="sm:flex-1-hidden card-wrapper" body-class="ht50">
|
||||
<template #header-extra>
|
||||
<template #header>
|
||||
<TableHeaderOperation
|
||||
v-model:columns="columnChecks"
|
||||
:disabled-delete="checkedRowKeys.length === 0"
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
<script setup lang="tsx">
|
||||
import { ElButton, ElTag } from 'element-plus';
|
||||
import { utils, writeFile } from 'xlsx';
|
||||
import { useTable } from '@/hooks/common/table';
|
||||
import { fetchGetUserList } from '@/service/api';
|
||||
import { enableStatusRecord, userGenderRecord } from '@/constants/business';
|
||||
import { fetchGetUserList } from '@/service/api';
|
||||
import { useTable } from '@/hooks/common/table';
|
||||
import { $t } from '@/locales';
|
||||
|
||||
defineOptions({ name: 'ExcelPage' });
|
||||
@@ -149,7 +149,6 @@ function isTableColumnHasTitle<T>(column: UI.TableColumn<T>): column is UI.Table
|
||||
</ElButton>
|
||||
</div>
|
||||
</template>
|
||||
<template #header-extra></template>
|
||||
<div class="h-[calc(100%-50px)]">
|
||||
<ElTable v-loading="loading" height="100%" border class="sm:h-full" :data="data" row-key="id">
|
||||
<ElTableColumn v-for="col in columns" :key="col.prop" v-bind="col" />
|
||||
|
||||
Reference in New Issue
Block a user