@liujitcn/kratos-admin-core 0.0.31 → 0.0.33
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +10 -4
- package/dist/package/declarations/src/api/base/{config.d.ts → v1/config.d.ts} +1 -1
- package/dist/package/declarations/src/api/base/{file.d.ts → v1/file.d.ts} +3 -1
- package/dist/package/declarations/src/api/base/{language.d.ts → v1/language.d.ts} +1 -1
- package/dist/package/declarations/src/api/base/{login.d.ts → v1/login.d.ts} +2 -2
- package/dist/package/declarations/src/api/base/{mfa.d.ts → v1/mfa.d.ts} +3 -3
- package/dist/package/declarations/src/api/base/{oauth.d.ts → v1/oauth.d.ts} +1 -1
- package/dist/package/declarations/src/api/system/{auth.d.ts → admin/v1/auth.d.ts} +2 -2
- package/dist/package/declarations/src/api/system/{base_dict.d.ts → admin/v1/base_dict.d.ts} +1 -1
- package/dist/package/declarations/src/api/system/{base_tenant.d.ts → admin/v1/base_tenant.d.ts} +2 -2
- package/dist/package/declarations/src/components/ProTable/index.vue.d.ts +114 -0
- package/dist/package/declarations/src/components/TreeFilter/index.vue.d.ts +84 -76
- package/dist/package/declarations/src/components/Upload/File.vue.d.ts +1 -1
- package/dist/package/declarations/src/components/Upload/Files.vue.d.ts +1 -1
- package/dist/package/declarations/src/components/Upload/Img.vue.d.ts +1 -1
- package/dist/package/declarations/src/components/Upload/Imgs.vue.d.ts +1 -1
- package/dist/package/declarations/src/components/WangEditor/index.vue.d.ts +2 -0
- package/dist/package/declarations/src/documentTitle.d.ts +2 -0
- package/dist/package/declarations/src/format.d.ts +1 -1
- package/dist/package/declarations/src/index.d.ts +2 -1
- package/dist/package/declarations/src/locales/generated.d.ts +68 -0
- package/dist/package/declarations/src/modules/index.d.ts +1 -3
- package/dist/package/declarations/src/request.d.ts +1 -1
- package/dist/package/declarations/src/routers/index.d.ts +1 -1
- package/dist/package/declarations/src/rpc/base/v1/login.d.ts +5 -3
- package/dist/package/declarations/src/rpc/system/admin/v1/auth.d.ts +13 -0
- package/dist/package/declarations/src/rpc/system/admin/v1/base_dict.d.ts +0 -101
- package/dist/package/declarations/src/rpc/system/common/v1/common.d.ts +26 -0
- package/dist/package/declarations/src/stores/interface/index.d.ts +6 -1
- package/dist/package/declarations/src/stores/modules/user.d.ts +2 -4
- package/dist/package/declarations/src/utils/passwordStrength.d.ts +1 -12
- package/dist/package/declarations/src/utils/request.d.ts +13 -2
- package/dist/package/declarations/src/utils/utils.d.ts +4 -0
- package/dist/package/src/api/base/{config.ts → v1/config.ts} +2 -2
- package/dist/package/src/api/base/{file.ts → v1/file.ts} +20 -24
- package/dist/package/src/api/base/{language.ts → v1/language.ts} +2 -2
- package/dist/package/src/api/base/{login.ts → v1/login.ts} +3 -3
- package/dist/package/src/api/base/{mfa.ts → v1/mfa.ts} +4 -4
- package/dist/package/src/api/base/{oauth.ts → v1/oauth.ts} +2 -2
- package/dist/package/src/api/system/{auth.ts → admin/v1/auth.ts} +3 -3
- package/dist/package/src/api/system/{base_dict.ts → admin/v1/base_dict.ts} +2 -2
- package/dist/package/src/api/system/{base_tenant.ts → admin/v1/base_tenant.ts} +3 -3
- package/dist/package/src/bootstrap.ts +6 -5
- package/dist/package/src/components/CronExpression/index.vue +4 -3
- package/dist/package/src/components/Dialog/ProDialog.vue +1 -0
- package/dist/package/src/components/ImportExcel/index.vue +4 -2
- package/dist/package/src/components/MarkdownPreview/index.vue +1 -1
- package/dist/package/src/components/PasswordStrength/index.vue +1 -1
- package/dist/package/src/components/ProTable/components/TableColumn.vue +14 -6
- package/dist/package/src/components/ProTable/index.vue +3 -3
- package/dist/package/src/components/RichTextPreview/index.vue +12 -1
- package/dist/package/src/components/SelectIcon/index.vue +3 -2
- package/dist/package/src/components/Upload/File.vue +2 -2
- package/dist/package/src/components/Upload/Files.vue +2 -2
- package/dist/package/src/components/Upload/Img.vue +7 -5
- package/dist/package/src/components/Upload/Imgs.vue +6 -5
- package/dist/package/src/components/WangEditor/index.vue +10 -7
- package/dist/package/src/documentTitle.ts +8 -0
- package/dist/package/src/format.ts +1 -1
- package/dist/package/src/index.ts +2 -1
- package/dist/package/src/layouts/components/Header/components/Avatar.vue +7 -6
- package/dist/package/src/layouts/components/Header/components/InfoDialog.vue +3 -2
- package/dist/package/src/layouts/components/Header/components/PasswordDialog.vue +3 -2
- package/dist/package/src/layouts/components/Header/components/SearchMenu.vue +16 -8
- package/dist/package/src/layouts/components/LockScreen.vue +175 -52
- package/dist/package/src/layouts/components/Tabs/index.vue +12 -3
- package/dist/package/src/layouts/components/ThemeDrawer/index.scss +4 -4
- package/dist/package/src/locales/en-US.json +15 -2
- package/dist/package/src/locales/ja-JP.json +15 -2
- package/dist/package/src/locales/zh-CN.json +15 -2
- package/dist/package/src/locales/zh-TW.json +15 -2
- package/dist/package/src/modules/index.ts +2 -4
- package/dist/package/src/request.ts +3 -0
- package/dist/package/src/routers/index.ts +15 -14
- package/dist/package/src/rpc/base/v1/config.ts +1 -1
- package/dist/package/src/rpc/base/v1/file.ts +1 -1
- package/dist/package/src/rpc/base/v1/language.ts +1 -1
- package/dist/package/src/rpc/base/v1/login.ts +5 -3
- package/dist/package/src/rpc/base/v1/mfa.ts +1 -1
- package/dist/package/src/rpc/base/v1/oauth.ts +1 -1
- package/dist/package/src/rpc/base/v1/oauth_client.ts +1 -1
- package/dist/package/src/rpc/common/v1/common.ts +1 -1
- package/dist/package/src/rpc/common/v1/enum.ts +1 -1
- package/dist/package/src/rpc/common/v1/types.ts +1 -1
- package/dist/package/src/rpc/google/protobuf/empty.ts +1 -1
- package/dist/package/src/rpc/google/protobuf/wrappers.ts +1 -1
- package/dist/package/src/rpc/system/admin/v1/auth.ts +14 -1
- package/dist/package/src/rpc/system/admin/v1/base_dict.ts +1 -113
- package/dist/package/src/rpc/system/admin/v1/base_i18n.ts +1 -1
- package/dist/package/src/rpc/system/admin/v1/base_tenant.ts +1 -1
- package/dist/package/src/rpc/system/admin/v1/common.ts +1 -1
- package/dist/package/src/rpc/system/common/v1/common.ts +35 -0
- package/dist/package/src/stores/interface/index.ts +6 -1
- package/dist/package/src/stores/modules/auth.ts +1 -1
- package/dist/package/src/stores/modules/config.ts +2 -2
- package/dist/package/src/stores/modules/dict.ts +1 -1
- package/dist/package/src/stores/modules/user.ts +21 -22
- package/dist/package/src/styles/element.scss +35 -4
- package/dist/package/src/typings/global.d.ts +6 -0
- package/dist/package/src/utils/passwordCrypto.ts +169 -12
- package/dist/package/src/utils/passwordStrength.ts +7 -24
- package/dist/package/src/utils/request.ts +155 -36
- package/dist/package/src/utils/tenant.ts +1 -1
- package/dist/package/src/utils/utils.ts +25 -6
- package/dist/package/src/views/login/components/LoginForm.vue +36 -21
- package/dist/package/src/views/login/index.scss +2 -2
- package/dist/package/types/generated/auto-imports.d.ts +2 -0
- package/package.json +2 -1
- package/types/generated/auto-imports.d.ts +2 -0
- package/vite.config.ts +24 -1
package/README.md
CHANGED
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
kratos-admin 前端底座包。它不包含具体业务模块,提供登录、MFA 校验、菜单、用户信息、应用启动、动态路由、布局、运行状态、公共组件和静态状态页;MFA 绑定面板与恢复码弹窗由登录页和 System 模块共用。宿主可以只安装 core;个人中心、AI 助手和系统管理能力必须由 System 模块提供。
|
|
4
4
|
|
|
5
|
+
浏览器认证使用 Cookie-only 刷新令牌与内存访问令牌。Core 不持久化任何访问令牌或刷新令牌,刷新请求统一携带 `X-Refresh-Token-Transport: cookie` 并启用凭据 Cookie。
|
|
6
|
+
|
|
5
7
|
## 目录结构
|
|
6
8
|
|
|
7
9
|
```text
|
|
@@ -9,8 +11,8 @@ packages/core
|
|
|
9
11
|
├── build/ # Vite 配置辅助函数和插件组合
|
|
10
12
|
├── src
|
|
11
13
|
│ ├── api/ # 按 Proto 领域组织的底座请求
|
|
12
|
-
│ │ ├── base/
|
|
13
|
-
│ │ └── system/
|
|
14
|
+
│ │ ├── base/v1/ # 登录、MFA、OAuth、配置和文件请求
|
|
15
|
+
│ │ └── system/admin/v1/ # 用户、字典和租户运行请求
|
|
14
16
|
│ ├── assets/ # 字体、图标和图片资源
|
|
15
17
|
│ ├── components/ # 公共 Vue 组件
|
|
16
18
|
│ ├── config/ # 前端运行配置
|
|
@@ -68,8 +70,8 @@ packages/core
|
|
|
68
70
|
| `src/bootstrap.ts` | 创建 Vue 应用,注册 core 与宿主选择的业务模块后挂载。 |
|
|
69
71
|
| `src/App.vue` | 根组件和路由出口。 |
|
|
70
72
|
| `src/vite-env.d.ts` | Vite、构建变量和 `import.meta.glob` 类型引用。 |
|
|
71
|
-
| `src/api/base/*.ts` | Proto `base`
|
|
72
|
-
| `src/api/system/*.ts`
|
|
73
|
+
| `src/api/base/v1/*.ts` | Proto `base/v1` 服务的登录、MFA、OAuth、配置和文件请求。 |
|
|
74
|
+
| `src/api/system/admin/v1/*.ts` | Proto `system/admin/v1` 服务的认证、字典和租户运行请求。 |
|
|
73
75
|
| `src/assets/fonts/` | 应用字体及字体样式。 |
|
|
74
76
|
| `src/assets/iconfont/` | 内置图标字体。 |
|
|
75
77
|
| `src/assets/images/` | Logo、登录、错误页、头像和 OAuth 图标。 |
|
|
@@ -98,6 +100,7 @@ packages/core
|
|
|
98
100
|
| `src/config/nprogress.ts` | 页面切换进度条配置。 |
|
|
99
101
|
| `src/directives/index.ts` | 全局指令安装入口。 |
|
|
100
102
|
| `src/directives/modules/*.ts` | 权限、复制、防抖、拖拽、长按、节流和水印指令。 |
|
|
103
|
+
| `src/documentTitle.ts` | 使用后端站点名称统一更新浏览器标题。 |
|
|
101
104
|
| `src/enums/httpEnum.ts` | HTTP 状态和请求相关枚举。 |
|
|
102
105
|
| `src/hooks/interface/index.ts` | hooks 共用类型。 |
|
|
103
106
|
| `src/hooks/useAuthButtons.ts` | 页面按钮权限计算。 |
|
|
@@ -146,6 +149,7 @@ core 通过 `ADMIN_STATIC_VIEWS` 注册全部默认静态页面,后注册业
|
|
|
146
149
|
| 能力 | 入口 |
|
|
147
150
|
| ---------------- | ----------------------------------------------------------- |
|
|
148
151
|
| 应用与模块注册 | `@liujitcn/kratos-admin-core` |
|
|
152
|
+
| 浏览器标题 | `@liujitcn/kratos-admin-core` |
|
|
149
153
|
| 请求客户端 | `@liujitcn/kratos-admin-core/request` |
|
|
150
154
|
| 路由与跳转 | `@liujitcn/kratos-admin-core/navigation` |
|
|
151
155
|
| 权限 | `@liujitcn/kratos-admin-core/auth` |
|
|
@@ -159,6 +163,8 @@ core 通过 `ADMIN_STATIC_VIEWS` 注册全部默认静态页面,后注册业
|
|
|
159
163
|
|
|
160
164
|
其他 Vue 组件以 `package.json#exports` 中的明确白名单为准。禁止使用 `components/ProTable/index.vue`、`utils/*`、`hooks/*`、`stores/modules/*` 等实现路径。发布构建会把内部 `@/` 别名转换成包内相对路径,内部实现不占用公共子路径。
|
|
161
165
|
|
|
166
|
+
`setAdminDocumentTitle` 使用公共配置接口返回的 `sysName` 作为应用名称,配置接口失败或未返回名称时回退宿主的 `VITE_GLOB_APP_TITLE`。
|
|
167
|
+
|
|
162
168
|
## 命令
|
|
163
169
|
|
|
164
170
|
```bash
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ConfigService, GetConfigRequest, GetConfigResponse } from "
|
|
1
|
+
import type { ConfigService, GetConfigRequest, GetConfigResponse } from "../../../rpc/base/v1/config";
|
|
2
2
|
/** 系统配置公共服务 */
|
|
3
3
|
export declare class ConfigServiceImpl implements ConfigService {
|
|
4
4
|
/** 获取系统配置 */
|
|
@@ -1,10 +1,12 @@
|
|
|
1
|
-
import type { MultiUploadFileResponse, FileInfo } from "
|
|
1
|
+
import type { MultiUploadFileResponse, FileInfo } from "../../../rpc/base/v1/file";
|
|
2
2
|
/** 文件服务 */
|
|
3
3
|
export declare class FileServiceImpl {
|
|
4
4
|
/** 多个文件上传 */
|
|
5
5
|
MultiUploadFile(files: File[], fileType: string): Promise<MultiUploadFileResponse>;
|
|
6
6
|
/** 上传文件 */
|
|
7
7
|
UploadFile(file: File, fileType: string): Promise<FileInfo>;
|
|
8
|
+
/** 读取文件内容并返回 Blob。 */
|
|
9
|
+
GetFileBlob(file: string, fileName: string): Promise<Blob>;
|
|
8
10
|
/** 下载文件 */
|
|
9
11
|
DownloadFile(file: string, fileName: string): Promise<void>;
|
|
10
12
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { LanguageService, OptionLanguageRequest, OptionLanguageResponse } from "
|
|
1
|
+
import type { LanguageService, OptionLanguageRequest, OptionLanguageResponse } from "../../../rpc/base/v1/language";
|
|
2
2
|
/** 语言公共服务。 */
|
|
3
3
|
export declare class LanguageServiceImpl implements LanguageService {
|
|
4
4
|
/** 查询当前支持的语言选项。 */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { CaptchaRequest, CaptchaResponse, LogoutRequest, LoginRequest, LoginResponse, PasswordPublicKeyRequest, PasswordPublicKeyResponse, RefreshTokenRequest, RefreshTokenResponse, VerifyCaptchaRequest, VerifyCaptchaResponse, LoginService } from "
|
|
2
|
-
import type { Empty } from "
|
|
1
|
+
import type { CaptchaRequest, CaptchaResponse, LogoutRequest, LoginRequest, LoginResponse, PasswordPublicKeyRequest, PasswordPublicKeyResponse, RefreshTokenRequest, RefreshTokenResponse, VerifyCaptchaRequest, VerifyCaptchaResponse, LoginService } from "../../../rpc/base/v1/login";
|
|
2
|
+
import type { Empty } from "../../../rpc/google/protobuf/empty";
|
|
3
3
|
/** 登录公共服务 */
|
|
4
4
|
export declare class LoginServiceImpl implements LoginService {
|
|
5
5
|
/** 验证码 */
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { LoginResponse } from "
|
|
2
|
-
import type { BeginMfaDisableRequest, BeginMfaDisableResponse, BeginMfaEnrollmentRequest, BeginMfaEnrollmentResponse, BeginMfaSetupRequest, BeginMfaSetupResponse, ConfirmMfaEnrollmentRequest, ConfirmMfaEnrollmentResponse, ConfirmMfaSetupRequest, ConfirmMfaSetupResponse, DisableMfaRequest, GetMfaStatusRequest, MfaService, MfaStatusResponse, RecoveryCodesResponse, RegenerateMfaRecoveryCodesRequest, VerifyMfaRequest } from "
|
|
3
|
-
import type { Empty } from "
|
|
1
|
+
import type { LoginResponse } from "../../../rpc/base/v1/login";
|
|
2
|
+
import type { BeginMfaDisableRequest, BeginMfaDisableResponse, BeginMfaEnrollmentRequest, BeginMfaEnrollmentResponse, BeginMfaSetupRequest, BeginMfaSetupResponse, ConfirmMfaEnrollmentRequest, ConfirmMfaEnrollmentResponse, ConfirmMfaSetupRequest, ConfirmMfaSetupResponse, DisableMfaRequest, GetMfaStatusRequest, MfaService, MfaStatusResponse, RecoveryCodesResponse, RegenerateMfaRecoveryCodesRequest, VerifyMfaRequest } from "../../../rpc/base/v1/mfa";
|
|
3
|
+
import type { Empty } from "../../../rpc/google/protobuf/empty";
|
|
4
4
|
/** 多因素认证公共服务。 */
|
|
5
5
|
export declare class MfaServiceImpl implements MfaService {
|
|
6
6
|
/** 校验登录阶段多因素认证。 */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { CreateOauthAuthorizationRequest, CreateOauthAuthorizationResponse, ExchangeOauthTicketRequest, ExchangeOauthTicketResponse, ListOauthProviderRequest, ListOauthProviderResponse } from "
|
|
1
|
+
import type { CreateOauthAuthorizationRequest, CreateOauthAuthorizationResponse, ExchangeOauthTicketRequest, ExchangeOauthTicketResponse, ListOauthProviderRequest, ListOauthProviderResponse } from "../../../rpc/base/v1/oauth";
|
|
2
2
|
/** OauthServiceImpl 三方登录服务。 */
|
|
3
3
|
export declare class OauthServiceImpl {
|
|
4
4
|
/** 查询三方登录方式 */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { GetUserInfoRequest, ListUserButtonRequest, TreeRouteResponse, TreeUserMenuRequest, UserInfoForm } from "
|
|
2
|
-
import type { StringValues } from "
|
|
1
|
+
import type { GetUserInfoRequest, ListUserButtonRequest, TreeRouteResponse, TreeUserMenuRequest, UserInfoForm } from "../../../../rpc/system/admin/v1/auth";
|
|
2
|
+
import type { StringValues } from "../../../../rpc/common/v1/types";
|
|
3
3
|
/** AuthServiceImpl 管理端运行壳认证服务。 */
|
|
4
4
|
export declare class AuthServiceImpl {
|
|
5
5
|
/** 获取当前登录用户。 */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { OptionBaseDictRequest, OptionBaseDictResponse } from "
|
|
1
|
+
import type { OptionBaseDictRequest, OptionBaseDictResponse } from "../../../../rpc/system/admin/v1/base_dict";
|
|
2
2
|
/** BaseDictServiceImpl 管理端运行壳字典服务。 */
|
|
3
3
|
export declare class BaseDictServiceImpl {
|
|
4
4
|
/** 查询全局字典选项。 */
|
package/dist/package/declarations/src/api/system/{base_tenant.d.ts → admin/v1/base_tenant.d.ts}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { SelectOptionResponse } from "
|
|
2
|
-
import type { OptionBaseTenantRequest } from "
|
|
1
|
+
import type { SelectOptionResponse } from "../../../../rpc/common/v1/common";
|
|
2
|
+
import type { OptionBaseTenantRequest } from "../../../../rpc/system/admin/v1/base_tenant";
|
|
3
3
|
/** BaseTenantServiceImpl 管理端运行壳租户服务。 */
|
|
4
4
|
export declare class BaseTenantServiceImpl {
|
|
5
5
|
/** 查询租户选项。 */
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
import { type TableInstance } from "element-plus";
|
|
2
|
+
import { ColumnProps, HeaderActionProps, ProTableProps } from "../../components/ProTable/interface";
|
|
3
|
+
declare var __VLS_6: {
|
|
4
|
+
selectedList: any[];
|
|
5
|
+
selectedListIds: (string | number)[];
|
|
6
|
+
isSelected: boolean;
|
|
7
|
+
}, __VLS_16: {}, __VLS_80: {}, __VLS_95: "expand", __VLS_96: {
|
|
8
|
+
row: {
|
|
9
|
+
[x: string]: any;
|
|
10
|
+
};
|
|
11
|
+
column: import("element-plus").TableColumnCtx<{
|
|
12
|
+
[x: string]: any;
|
|
13
|
+
}>;
|
|
14
|
+
$index: number;
|
|
15
|
+
}, __VLS_129: string, __VLS_130: any, __VLS_133: {}, __VLS_136: {}, __VLS_138: {};
|
|
16
|
+
type __VLS_Slots = {} & {
|
|
17
|
+
[K in NonNullable<typeof __VLS_95>]?: (props: typeof __VLS_96) => any;
|
|
18
|
+
} & {
|
|
19
|
+
[K in NonNullable<typeof __VLS_129>]?: (props: typeof __VLS_130) => any;
|
|
20
|
+
} & {
|
|
21
|
+
tableHeader?: (props: typeof __VLS_6) => any;
|
|
22
|
+
} & {
|
|
23
|
+
toolButton?: (props: typeof __VLS_16) => any;
|
|
24
|
+
} & {
|
|
25
|
+
default?: (props: typeof __VLS_80) => any;
|
|
26
|
+
} & {
|
|
27
|
+
append?: (props: typeof __VLS_133) => any;
|
|
28
|
+
} & {
|
|
29
|
+
empty?: (props: typeof __VLS_136) => any;
|
|
30
|
+
} & {
|
|
31
|
+
pagination?: (props: typeof __VLS_138) => any;
|
|
32
|
+
};
|
|
33
|
+
declare const __VLS_base: import("vue").DefineComponent<ProTableProps, {
|
|
34
|
+
element: globalThis.Ref<TableInstance | undefined, TableInstance | undefined>;
|
|
35
|
+
loading: globalThis.Ref<boolean, boolean>;
|
|
36
|
+
tableData: globalThis.ComputedRef<any[]>;
|
|
37
|
+
radio: globalThis.Ref<string, string>;
|
|
38
|
+
pageable: globalThis.Ref<{
|
|
39
|
+
page_num: number;
|
|
40
|
+
page_size: number;
|
|
41
|
+
total: number;
|
|
42
|
+
}, {
|
|
43
|
+
page_num: number;
|
|
44
|
+
page_size: number;
|
|
45
|
+
total: number;
|
|
46
|
+
}>;
|
|
47
|
+
searchParam: globalThis.Ref<{
|
|
48
|
+
[key: string]: any;
|
|
49
|
+
}, {
|
|
50
|
+
[key: string]: any;
|
|
51
|
+
}>;
|
|
52
|
+
searchInitParam: globalThis.Ref<{
|
|
53
|
+
[key: string]: any;
|
|
54
|
+
}, {
|
|
55
|
+
[key: string]: any;
|
|
56
|
+
}>;
|
|
57
|
+
isSelected: globalThis.Ref<boolean, boolean>;
|
|
58
|
+
selectedList: globalThis.Ref<any[], any[]>;
|
|
59
|
+
selectedListIds: globalThis.ComputedRef<(string | number)[]>;
|
|
60
|
+
getTableList: () => Promise<void>;
|
|
61
|
+
search: () => void;
|
|
62
|
+
reset: () => void;
|
|
63
|
+
handleSizeChange: (val: number) => void;
|
|
64
|
+
handleCurrentChange: (val: number) => void;
|
|
65
|
+
clearSelection: () => void;
|
|
66
|
+
getTotal: () => number;
|
|
67
|
+
enumMap: globalThis.Ref<Map<string, {
|
|
68
|
+
[key: string]: any;
|
|
69
|
+
}[]> & Omit<Map<string, {
|
|
70
|
+
[key: string]: any;
|
|
71
|
+
}[]>, keyof Map<any, any>>, Map<string, {
|
|
72
|
+
[key: string]: any;
|
|
73
|
+
}[]> | (Map<string, {
|
|
74
|
+
[key: string]: any;
|
|
75
|
+
}[]> & Omit<Map<string, {
|
|
76
|
+
[key: string]: any;
|
|
77
|
+
}[]>, keyof Map<any, any>>)>;
|
|
78
|
+
refreshEnums: () => Promise<void>;
|
|
79
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
80
|
+
search: () => any;
|
|
81
|
+
reset: () => any;
|
|
82
|
+
refresh: () => any;
|
|
83
|
+
dragSort: (args_0: {
|
|
84
|
+
newIndex?: number;
|
|
85
|
+
oldIndex?: number;
|
|
86
|
+
}) => any;
|
|
87
|
+
}, string, import("vue").PublicProps, Readonly<ProTableProps> & Readonly<{
|
|
88
|
+
onSearch?: (() => any) | undefined;
|
|
89
|
+
onReset?: (() => any) | undefined;
|
|
90
|
+
onRefresh?: (() => any) | undefined;
|
|
91
|
+
onDragSort?: ((args_0: {
|
|
92
|
+
newIndex?: number;
|
|
93
|
+
oldIndex?: number;
|
|
94
|
+
}) => any) | undefined;
|
|
95
|
+
}>, {
|
|
96
|
+
columns: ColumnProps[];
|
|
97
|
+
pagination: boolean;
|
|
98
|
+
border: boolean;
|
|
99
|
+
searchCol: number | Record<import("../Grid/interface/index.js").BreakPoint, number>;
|
|
100
|
+
rowKey: string;
|
|
101
|
+
headerActions: HeaderActionProps[];
|
|
102
|
+
requestAuto: boolean;
|
|
103
|
+
initParam: any;
|
|
104
|
+
toolButton: ("refresh" | "setting" | "search")[] | boolean;
|
|
105
|
+
restoreSelectedRowKeys: Array<string | number>;
|
|
106
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
107
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
108
|
+
declare const _default: typeof __VLS_export;
|
|
109
|
+
export default _default;
|
|
110
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
111
|
+
new (): {
|
|
112
|
+
$slots: S;
|
|
113
|
+
};
|
|
114
|
+
};
|