halo-fe 1.0.19 → 1.0.21

Sign up to get free protection for your applications and to get access to all the features.
Files changed (78) hide show
  1. package/dist/main.js +676 -667
  2. package/esm/@types/CreateFeOptions.d.ts +25 -0
  3. package/esm/@types/index.d.ts +2 -0
  4. package/esm/coms/@types/ScrollerProps.d.ts +15 -0
  5. package/esm/coms/@types/index.d.ts +2 -0
  6. package/esm/coms/Scroller.vue.d.ts +1 -1
  7. package/esm/coms/conditions/@types/ConditionGroupProps.d.ts +11 -0
  8. package/esm/coms/conditions/@types/ConditionProps.d.ts +18 -0
  9. package/esm/coms/conditions/@types/index.d.ts +3 -0
  10. package/esm/coms/conditions/Condition.vue.d.ts +1 -1
  11. package/esm/coms/conditions/Index.vue.d.ts +1 -1
  12. package/esm/coms/controls/@types/CodeEmit.d.ts +23 -0
  13. package/esm/coms/controls/@types/CodeProps.d.ts +28 -0
  14. package/esm/coms/controls/@types/Range.d.ts +26 -0
  15. package/esm/coms/controls/@types/RichTextOptions.d.ts +14 -0
  16. package/esm/coms/controls/@types/RichTextProps.d.ts +12 -0
  17. package/esm/coms/controls/@types/index.d.ts +6 -0
  18. package/esm/coms/controls/Code.vue.d.ts +1 -1
  19. package/esm/coms/controls/RichText.vue.d.ts +1 -1
  20. package/esm/coms/controls/index.d.ts +1 -1
  21. package/esm/coms/index.d.ts +1 -1
  22. package/esm/coms/layouts/@types/RowProps.d.ts +14 -0
  23. package/esm/coms/layouts/@types/index.d.ts +2 -0
  24. package/esm/coms/layouts/Row.vue.d.ts +1 -1
  25. package/esm/coms/layouts/index.d.ts +1 -1
  26. package/esm/coms/progresses/@types/SocketProgressProps.d.ts +23 -0
  27. package/esm/coms/progresses/@types/index.d.ts +2 -0
  28. package/esm/coms/progresses/SocketProgress.vue.d.ts +1 -1
  29. package/esm/coms/tabs/@types/TabProps.d.ts +7 -0
  30. package/esm/coms/tabs/@types/index.d.ts +2 -0
  31. package/esm/coms/tabs/Tab.vue.d.ts +1 -1
  32. package/esm/drivers/@types/IDispose.d.ts +10 -0
  33. package/esm/drivers/@types/IDriver.d.ts +10 -0
  34. package/esm/drivers/@types/IOpen.d.ts +10 -0
  35. package/esm/drivers/@types/index.d.ts +4 -0
  36. package/esm/drivers/bridges/IBridge.d.ts +1 -1
  37. package/esm/drivers/builders/IBuilder.d.ts +1 -1
  38. package/esm/drivers/cdns/ICdn.d.ts +1 -1
  39. package/esm/drivers/excels/IExcel.d.ts +1 -1
  40. package/esm/drivers/explainers/IExplainer.d.ts +1 -1
  41. package/esm/drivers/features/IFeature.d.ts +1 -1
  42. package/esm/drivers/https/Http.d.ts +15 -9
  43. package/esm/drivers/https/IHttp.d.ts +1 -1
  44. package/esm/drivers/https/implements/DefaultHttp.d.ts +6 -0
  45. package/esm/drivers/https/implements/HaloHttp.d.ts +3 -8
  46. package/esm/drivers/https/implements/MkHttp.d.ts +1 -6
  47. package/esm/drivers/i18ns/I18n.d.ts +0 -3
  48. package/esm/drivers/i18ns/I18nFactory.d.ts +0 -4
  49. package/esm/drivers/i18ns/II18n.d.ts +16 -2
  50. package/esm/drivers/index.d.ts +1 -1
  51. package/esm/drivers/messengers/IMessenger.d.ts +1 -1
  52. package/esm/drivers/providers/IProvider.d.ts +1 -1
  53. package/esm/drivers/signers/Signer.d.ts +3 -0
  54. package/esm/drivers/ssos/ISso.d.ts +1 -1
  55. package/esm/drivers/tasks/ITask.d.ts +1 -1
  56. package/esm/drivers/templates/ITemplate.d.ts +1 -1
  57. package/esm/drivers/videos/IVideo.d.ts +1 -1
  58. package/esm/drivers/voices/IVoice.d.ts +1 -1
  59. package/esm/factorying/Factory.d.ts +1 -1
  60. package/esm/factorying/index.d.ts +3 -7
  61. package/esm/helpers/@types/JsonConfig.d.ts +10 -0
  62. package/esm/helpers/@types/TreeNodeProp.d.ts +9 -0
  63. package/esm/helpers/@types/index.d.ts +3 -0
  64. package/esm/helpers/JsonHelper.d.ts +1 -1
  65. package/esm/main.d.ts +2 -2
  66. package/esm/svcs/@types/Dictionary.d.ts +4 -0
  67. package/esm/svcs/@types/index.d.ts +1 -0
  68. package/esm/svcs/implement/ConfigSvc.d.ts +2 -2
  69. package/esm/svcs/implement/LogSvc.d.ts +3 -0
  70. package/esm/svcs/index.d.ts +1 -1
  71. package/esm/utilities/@types/DragEvent.d.ts +11 -0
  72. package/esm/utilities/@types/DragOptions.d.ts +28 -0
  73. package/esm/utilities/@types/Position.d.ts +15 -0
  74. package/esm/utilities/@types/Rect.d.ts +10 -0
  75. package/esm/utilities/@types/index.d.ts +5 -0
  76. package/esm/utilities/EventUtility.d.ts +1 -1
  77. package/esm/utilities/index.d.ts +1 -1
  78. package/package.json +1 -1
@@ -0,0 +1,25 @@
1
+ import { IMessenger } from "../drivers";
2
+ /**
3
+ * 初始化选项
4
+ */
5
+ declare class CreateFeOptions {
6
+ /**
7
+ * 消息发送对象
8
+ */
9
+ messenger: IMessenger;
10
+ /**
11
+ * 基准请求地址
12
+ */
13
+ baseUrl: string;
14
+ /**
15
+ * 自定义语言包
16
+ */
17
+ lang: {
18
+ [key: string]: any;
19
+ };
20
+ /**
21
+ * CDN类型
22
+ */
23
+ cdn: 'Local' | "Third" | string;
24
+ }
25
+ export default CreateFeOptions;
@@ -0,0 +1,2 @@
1
+ import CreateFeOptions from "./CreateFeOptions";
2
+ export { CreateFeOptions };
@@ -0,0 +1,15 @@
1
+ /**
2
+ * 滚动条选项
3
+ */
4
+ interface ScrollerProps {
5
+ /**
6
+ * 选项配置
7
+ */
8
+ options: {
9
+ /**
10
+ * 滚动条距顶部距离
11
+ */
12
+ scrollTop?: number;
13
+ };
14
+ }
15
+ export default ScrollerProps;
@@ -0,0 +1,2 @@
1
+ import ScrollerProps from "./ScrollerProps";
2
+ export { type ScrollerProps };
@@ -1,4 +1,4 @@
1
- import ScrollerProps from "./types/ScrollerProps";
1
+ import ScrollerProps from "./@types/ScrollerProps";
2
2
  declare function __VLS_template(): {
3
3
  default?(_: {}): any;
4
4
  };
@@ -0,0 +1,11 @@
1
+ import ConditionProps from "./ConditionProps";
2
+ /**
3
+ * 条件组类型
4
+ */
5
+ interface ConditionGroupProps {
6
+ /**
7
+ * 条件集合
8
+ */
9
+ conditions: ConditionProps[];
10
+ }
11
+ export default ConditionGroupProps;
@@ -0,0 +1,18 @@
1
+ /**
2
+ * 条件属性
3
+ */
4
+ interface ConditionProps {
5
+ /**
6
+ * 字段名
7
+ */
8
+ name: string;
9
+ /**
10
+ * 操作符
11
+ */
12
+ operator: string;
13
+ /**
14
+ * 值
15
+ */
16
+ value: string;
17
+ }
18
+ export default ConditionProps;
@@ -0,0 +1,3 @@
1
+ import ConditionGroupProps from "./ConditionGroupProps";
2
+ import ConditionProps from "./ConditionProps";
3
+ export { type ConditionGroupProps, type ConditionProps };
@@ -1,4 +1,4 @@
1
- import { ConditionProps } from "./types";
1
+ import { ConditionProps } from "./@types";
2
2
  declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<ConditionProps>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<ConditionProps>>>, {}, {}>;
3
3
  export default _default;
4
4
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
@@ -1,4 +1,4 @@
1
- import { ConditionGroupProps } from "./types";
1
+ import { ConditionGroupProps } from "./@types";
2
2
  declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<ConditionGroupProps>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<ConditionGroupProps>>>, {}, {}>;
3
3
  export default _default;
4
4
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
@@ -0,0 +1,23 @@
1
+ import { Monaco } from "../../../plugins";
2
+ /**
3
+ * 代码控件事件
4
+ */
5
+ interface CodeEmit {
6
+ /**
7
+ * 挂载完毕事件
8
+ */
9
+ (event: 'mounted', monaco: typeof Monaco, editor: Monaco.editor.IStandaloneCodeEditor): void;
10
+ /**
11
+ * 值变动事件
12
+ */
13
+ (event: 'change', value: string): void;
14
+ /**
15
+ * 滚动事件
16
+ */
17
+ (event: 'scroll', scrollTop: number): void;
18
+ /**
19
+ * 值更新
20
+ */
21
+ (event: 'update:modelValue', value: any): void;
22
+ }
23
+ export default CodeEmit;
@@ -0,0 +1,28 @@
1
+ import Range from "./Range";
2
+ /**
3
+ * 代码属性
4
+ */
5
+ interface CodeProps {
6
+ /**
7
+ * 配置
8
+ */
9
+ config?: {
10
+ readonly?: boolean;
11
+ lineNumbers?: string;
12
+ minimap?: boolean;
13
+ category?: string;
14
+ schema?: any;
15
+ language?: string;
16
+ scrollTop?: number;
17
+ selection?: Range;
18
+ };
19
+ /**
20
+ * 是否显示边框
21
+ */
22
+ border?: boolean;
23
+ /**
24
+ * 值
25
+ */
26
+ modelValue?: string;
27
+ }
28
+ export default CodeProps;
@@ -0,0 +1,26 @@
1
+ /**
2
+ * 范围
3
+ */
4
+ declare class Range {
5
+ /**
6
+ * 起始行号
7
+ */
8
+ startLine: number;
9
+ /**
10
+ * 结束行号
11
+ */
12
+ endLine: number;
13
+ /**
14
+ * 起始列
15
+ */
16
+ startColumn: number;
17
+ /**
18
+ * 结束列
19
+ */
20
+ endColumn: number;
21
+ /**
22
+ * 初始化
23
+ */
24
+ constructor(startLine: number, endLine: number, startColumn: number, endColumn: number);
25
+ }
26
+ export default Range;
@@ -0,0 +1,14 @@
1
+ /**
2
+ * 富文本选项配置
3
+ */
4
+ export interface RichTextOptions {
5
+ /**
6
+ * 是否只读
7
+ */
8
+ readonly?: boolean;
9
+ /**
10
+ * 滚动条距离顶部的距离
11
+ */
12
+ scrollTop?: number;
13
+ }
14
+ export default RichTextOptions;
@@ -0,0 +1,12 @@
1
+ import { RichTextOptions } from "./RichTextOptions";
2
+ /**
3
+ * 富文本属性
4
+ */
5
+ interface RichTextProps {
6
+ /**
7
+ * 默认配置选项
8
+ * 必填,否则内部状态变化,会导致响应状态丢失
9
+ */
10
+ options: RichTextOptions;
11
+ }
12
+ export default RichTextProps;
@@ -0,0 +1,6 @@
1
+ import CodeEmit from "./CodeEmit";
2
+ import CodeProps from "./CodeProps";
3
+ import Range from "./Range";
4
+ import RichTextOptions from "./RichTextOptions";
5
+ import RichTextProps from "./RichTextProps";
6
+ export { type CodeEmit, type CodeProps, Range, type RichTextOptions, type RichTextProps, };
@@ -1,5 +1,5 @@
1
1
  import { type Monaco } from "../../plugins";
2
- import { CodeProps } from "./types";
2
+ import { CodeProps } from "./@types";
3
3
  declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<CodeProps>, {
4
4
  config: any;
5
5
  }>, {
@@ -1,4 +1,4 @@
1
- import { RichTextProps } from "./types";
1
+ import { RichTextProps } from "./@types";
2
2
  declare let __VLS_typeProps: RichTextProps;
3
3
  type __VLS_PublicProps = {
4
4
  modelValue?: string;
@@ -3,5 +3,5 @@ import HaCompare from "./Compare.vue";
3
3
  import HaOption from "./Option.vue";
4
4
  import HaRichText from "./RichText.vue";
5
5
  import HaSelect from "./Select.vue";
6
- export * from "./types";
6
+ export * from "./@types";
7
7
  export { HaCode, HaCompare, HaOption, HaRichText, HaSelect };
@@ -8,5 +8,5 @@ export * from "./layouts";
8
8
  export * from "./progresses";
9
9
  export * from "./tables";
10
10
  export * from "./tabs";
11
- export * from "./types";
11
+ export * from "./@types";
12
12
  export { HaEmpty, HaFill, HaScroller, HaTimer };
@@ -0,0 +1,14 @@
1
+ /**
2
+ * 行属性
3
+ */
4
+ interface RowProps {
5
+ /**
6
+ * 单元格间隙
7
+ */
8
+ gap?: number;
9
+ /**
10
+ * 对齐方向(right)
11
+ */
12
+ direction?: string;
13
+ }
14
+ export default RowProps;
@@ -0,0 +1,2 @@
1
+ import RowProps from "./RowProps";
2
+ export { type RowProps };
@@ -1,4 +1,4 @@
1
- import { RowProps } from "./types";
1
+ import { RowProps } from "./@types";
2
2
  declare function __VLS_template(): {
3
3
  default?(_: {}): any;
4
4
  };
@@ -1,5 +1,5 @@
1
1
  import HaCol from "./Col.vue";
2
2
  import HaContainer from "./Container.vue";
3
3
  import HaRow from "./Row.vue";
4
- export * from "./types";
4
+ export * from "./@types";
5
5
  export { HaCol, HaContainer, HaRow, };
@@ -0,0 +1,23 @@
1
+ /**
2
+ * 实时进度属性
3
+ */
4
+ interface SocketProgressProps {
5
+ /**
6
+ * 进度数据
7
+ */
8
+ progress: {
9
+ /**
10
+ * 成功数量
11
+ */
12
+ succeed: number;
13
+ /**
14
+ * 异常数量
15
+ */
16
+ errored: number;
17
+ /**
18
+ * 总数量
19
+ */
20
+ total: number;
21
+ };
22
+ }
23
+ export default SocketProgressProps;
@@ -0,0 +1,2 @@
1
+ import SocketProgressProps from "./SocketProgressProps";
2
+ export { SocketProgressProps };
@@ -1,4 +1,4 @@
1
- import { SocketProgressProps } from "./types";
1
+ import { SocketProgressProps } from "./@types";
2
2
  declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<SocketProgressProps>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<SocketProgressProps>>>, {}, {}>;
3
3
  export default _default;
4
4
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
@@ -0,0 +1,7 @@
1
+ interface TabProps {
2
+ /**
3
+ * 是否在切换Tab时自动销毁数据
4
+ */
5
+ destroy: boolean;
6
+ }
7
+ export default TabProps;
@@ -0,0 +1,2 @@
1
+ import TabProps from "./TabProps";
2
+ export { type TabProps };
@@ -1,4 +1,4 @@
1
- import { TabProps } from "./types";
1
+ import { TabProps } from "./@types";
2
2
  declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<TabProps>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<TabProps>>>, {}, {}>;
3
3
  export default _default;
4
4
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
@@ -0,0 +1,10 @@
1
+ /**
2
+ * 可释放接口
3
+ */
4
+ interface IDispose {
5
+ /**
6
+ * 资源释放
7
+ */
8
+ dispose(): void;
9
+ }
10
+ export default IDispose;
@@ -0,0 +1,10 @@
1
+ /**
2
+ * 驱动接口
3
+ */
4
+ interface IDriver {
5
+ /**
6
+ * 类型
7
+ */
8
+ type: string;
9
+ }
10
+ export default IDriver;
@@ -0,0 +1,10 @@
1
+ /**
2
+ * 开启接口
3
+ */
4
+ interface IOpen {
5
+ /**
6
+ * 开启
7
+ */
8
+ open(conn?: string): Promise<void>;
9
+ }
10
+ export default IOpen;
@@ -0,0 +1,4 @@
1
+ import IDispose from "./IDispose";
2
+ import IDriver from "./IDriver";
3
+ import IOpen from "./IOpen";
4
+ export { type IDispose, type IDriver, type IOpen };
@@ -1,4 +1,4 @@
1
- import { IDriver } from "../types";
1
+ import { IDriver } from "../@types";
2
2
  /**
3
3
  * Android/IOS 操作系统通信桥
4
4
  */
@@ -1,4 +1,4 @@
1
- import { IDriver } from "../types";
1
+ import { IDriver } from "../@types";
2
2
  import { ProviderTable } from "./entities";
3
3
  /**
4
4
  * 构建器接口
@@ -1,4 +1,4 @@
1
- import { IDriver } from "../types";
1
+ import { IDriver } from "../@types";
2
2
  /**
3
3
  * CDN接口
4
4
  */
@@ -1,4 +1,4 @@
1
- import { IDriver, IOpen } from "../types";
1
+ import { IDriver, IOpen } from "../@types";
2
2
  /**
3
3
  * Excel操作接口
4
4
  */
@@ -1,4 +1,4 @@
1
- import { IDriver } from "../types";
1
+ import { IDriver } from "../@types";
2
2
  interface IExplainer extends IDriver {
3
3
  }
4
4
  export default IExplainer;
@@ -1,4 +1,4 @@
1
- import { IDriver } from "../types";
1
+ import { IDriver } from "../@types";
2
2
  /**
3
3
  * 特征接口
4
4
  */
@@ -6,19 +6,25 @@ import HttpResponse from "./entities/HttpResponse";
6
6
  */
7
7
  declare abstract class Http implements IHttp {
8
8
  type: string;
9
+ /**
10
+ * 默认请求器
11
+ */
12
+ http: IHttp;
9
13
  open(conn: string): Promise<void>;
10
- onRequest: (request: HttpRequest) => Promise<void>;
11
- onResponse: (response: HttpResponse) => Promise<void>;
12
- get(path: string, params?: any): Promise<any>;
13
- sendGet(path: string, params?: any): Promise<HttpResponse>;
14
- post(path: string, body: any): Promise<any>;
15
- sendPost(path: string, body?: any): Promise<HttpResponse>;
16
- patch(path: string): Promise<any>;
17
- sendPatch(path: string, pairs?: any): Promise<HttpResponse>;
14
+ get onRequest(): (request: HttpRequest) => Promise<void>;
15
+ set onRequest(value: (request: HttpRequest) => Promise<void>);
16
+ get onResponse(): (response: HttpResponse) => Promise<void>;
17
+ set onResponse(value: (response: HttpResponse) => Promise<void>);
18
+ get: (path: string, params?: any) => Promise<any>;
19
+ sendGet: (path: string, params?: any) => Promise<HttpResponse>;
20
+ post: (path: string, body: any) => Promise<any>;
21
+ sendPost: (path: string, body?: any) => Promise<HttpResponse>;
22
+ patch: (path: string) => Promise<any>;
23
+ sendPatch: (path: string, pairs?: any) => Promise<HttpResponse>;
18
24
  abstract send(request: HttpRequest): Promise<HttpResponse>;
19
25
  /**
20
26
  * 获取请求消息
21
27
  */
22
- getRequest(method: string, contentType: string, path: string, body?: any): HttpRequest;
28
+ getRequest: (method: string, contentType: string, path: string, body?: any) => HttpRequest;
23
29
  }
24
30
  export default Http;
@@ -1,6 +1,6 @@
1
1
  import HttpRequest from "./entities/HttpRequest";
2
2
  import HttpResponse from "./entities/HttpResponse";
3
- import { IDriver, IOpen } from "../types";
3
+ import { IDriver, IOpen } from "../@types";
4
4
  /**
5
5
  * 请求器接口
6
6
  */
@@ -8,6 +8,12 @@ import HttpResponse from "../entities/HttpResponse";
8
8
  declare class DefaultHttp extends Http {
9
9
  type: string;
10
10
  baseUrl: string;
11
+ _onRequest: any;
12
+ _onResponse: any;
13
+ get onRequest(): (request: HttpRequest) => Promise<void>;
14
+ set onRequest(value: (request: HttpRequest) => Promise<void>);
15
+ get onResponse(): (response: HttpResponse) => Promise<void>;
16
+ set onResponse(value: (response: HttpResponse) => Promise<void>);
11
17
  send(request: HttpRequest): Promise<HttpResponse>;
12
18
  /**
13
19
  * 使用Fetch发送请求,谷歌插件场景专用
@@ -1,7 +1,6 @@
1
1
  import Http from "../Http";
2
2
  import HttpRequest from "../entities/HttpRequest";
3
3
  import HttpResponse from "../entities/HttpResponse";
4
- import IHttp from "../IHttp";
5
4
  import { ISso, SsoUser } from "../../ssos";
6
5
  import { ISigner } from "../../signers";
7
6
  /**
@@ -29,10 +28,6 @@ declare class HaloHttp extends Http {
29
28
  * 当前终端
30
29
  */
31
30
  platform: string;
32
- /**
33
- * 默认请求器
34
- */
35
- http: IHttp;
36
31
  /**
37
32
  * 单点登录配置
38
33
  */
@@ -48,14 +43,14 @@ declare class HaloHttp extends Http {
48
43
  /**
49
44
  * 发送请求
50
45
  */
51
- send(request: HttpRequest): Promise<HttpResponse>;
46
+ send: (request: HttpRequest) => Promise<HttpResponse>;
52
47
  /**
53
48
  * 请求预处理
54
49
  */
55
- beforeRequest(request: HttpRequest): Promise<void>;
50
+ beforeRequest: (request: HttpRequest) => Promise<void>;
56
51
  /**
57
52
  * 处理网络错误和响应错误场景
58
53
  */
59
- handleError(error: any): Promise<never>;
54
+ handleError: (error: any) => Promise<never>;
60
55
  }
61
56
  export default HaloHttp;
@@ -1,7 +1,6 @@
1
1
  import Http from "../Http";
2
2
  import HttpRequest from "../entities/HttpRequest";
3
3
  import HttpResponse from "../entities/HttpResponse";
4
- import IHttp from "../IHttp";
5
4
  import { IHasher } from "../../hashers";
6
5
  /**
7
6
  * MK请求器
@@ -20,10 +19,6 @@ declare class MkHttp extends Http {
20
19
  * AppSecret
21
20
  */
22
21
  appSecret: string;
23
- /**
24
- * 默认请求器
25
- */
26
- requester: IHttp;
27
22
  /**
28
23
  * Hash计算器
29
24
  */
@@ -35,6 +30,6 @@ declare class MkHttp extends Http {
35
30
  /**
36
31
  * 危险操作,会暴露敏感信息
37
32
  */
38
- send(request: HttpRequest): Promise<HttpResponse>;
33
+ send: (request: HttpRequest) => Promise<HttpResponse>;
39
34
  }
40
35
  export default MkHttp;
@@ -26,9 +26,6 @@ declare abstract class I18n implements II18n {
26
26
  * 设置标题
27
27
  */
28
28
  setTitle: (title?: string, env?: string) => void;
29
- /**
30
- * 添加自定义多语言包
31
- */
32
29
  addMessages: (messages: {
33
30
  [key: string]: string;
34
31
  }) => void;
@@ -5,9 +5,5 @@ import II18n from "./II18n";
5
5
  */
6
6
  declare class I18nFactory extends Factory<II18n> {
7
7
  open(): void;
8
- /**
9
- * 获取默认多语言
10
- */
11
- getDefault(): Promise<II18n>;
12
8
  }
13
9
  export default I18nFactory;
@@ -1,4 +1,4 @@
1
- import { IDriver, IOpen } from "../types";
1
+ import { IDriver, IOpen } from "../@types";
2
2
  /**
3
3
  * 多语言翻译接口
4
4
  */
@@ -59,7 +59,21 @@ interface II18n extends IDriver, IOpen {
59
59
  */
60
60
  t_title(): string;
61
61
  /**
62
- * 加载指定语言包
62
+ * 设置多语言标题
63
+ */
64
+ setI18nTitle(key: string): void;
65
+ /**
66
+ * 设置标题
67
+ */
68
+ setTitle(title: string, env: string): void;
69
+ /**
70
+ * 添加自定义多语言包
71
+ */
72
+ addMessages(messages: {
73
+ [key: string]: string;
74
+ }): void;
75
+ /**
76
+ * 加载指定语言包,需http请求器先加载完毕
63
77
  */
64
78
  loadI18n(lang?: string): Promise<void>;
65
79
  }
@@ -1,3 +1,4 @@
1
+ export * from "./@types";
1
2
  export * from "./bridges";
2
3
  export * from "./builders";
3
4
  export * from "./cdns";
@@ -14,6 +15,5 @@ export * from "./signers";
14
15
  export * from "./ssos";
15
16
  export * from "./tasks";
16
17
  export * from "./templates";
17
- export * from "./types";
18
18
  export * from "./videos";
19
19
  export * from "./voices";
@@ -1,4 +1,4 @@
1
- import { IDriver } from "../types";
1
+ import { IDriver } from "../@types";
2
2
  /**
3
3
  * 消息提示接口,下游自己定义
4
4
  */
@@ -1,4 +1,4 @@
1
- import { IDriver } from "../types";
1
+ import { IDriver } from "../@types";
2
2
  /**
3
3
  * 数据库提供程序接口
4
4
  */
@@ -1,4 +1,7 @@
1
1
  import ISigner from "./ISigner";
2
+ /**
3
+ * 签名器基类
4
+ */
2
5
  declare abstract class Signer implements ISigner {
3
6
  type: string;
4
7
  abstract open(auth: {