halo-fe 1.0.26 → 1.0.28
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/main.js +1314 -1082
- package/dist/style.css +1 -1
- package/esm/coms/@types/SocketProgressProps.d.ts +8 -0
- package/esm/coms/controls/@types/CodeProps.d.ts +1 -1
- package/esm/coms/controls/Code.vue.d.ts +1 -1
- package/esm/coms/index.d.ts +1 -0
- package/esm/coms/layouts/Row.vue.d.ts +6 -2
- package/esm/coms/texts/@types/DanceProps.d.ts +14 -0
- package/esm/coms/texts/@types/index.d.ts +2 -0
- package/esm/coms/texts/Dance.vue.d.ts +5 -0
- package/esm/coms/texts/index.d.ts +2 -0
- package/esm/drivers/builders/BuilderFactory.d.ts +1 -0
- package/esm/drivers/cdns/Cdn.d.ts +6 -6
- package/esm/drivers/cdns/CdnFactory.d.ts +1 -0
- package/esm/drivers/encoders/Encoder.d.ts +1 -1
- package/esm/drivers/encoders/EncoderFactory.d.ts +1 -0
- package/esm/drivers/excels/ExcelFactory.d.ts +1 -0
- package/esm/drivers/explainers/ExplainerFactory.d.ts +1 -0
- package/esm/drivers/features/Feature.d.ts +9 -0
- package/esm/drivers/features/FeatureFactory.d.ts +1 -0
- package/esm/drivers/features/implements/ExpressionFeature.d.ts +2 -3
- package/esm/drivers/features/implements/I18NFeature.d.ts +2 -3
- package/esm/drivers/features/implements/SortFeature.d.ts +2 -3
- package/esm/drivers/hashers/HasherFactory.d.ts +1 -0
- package/esm/drivers/https/Http.d.ts +1 -1
- package/esm/drivers/https/HttpFactory.d.ts +1 -0
- package/esm/drivers/https/implements/FeiShuHttp.d.ts +8 -0
- package/esm/drivers/i18ns/I18n.d.ts +1 -1
- package/esm/drivers/i18ns/I18nFactory.d.ts +1 -0
- package/esm/drivers/i18ns/II18n.d.ts +1 -1
- package/esm/drivers/i18ns/implements/DefaultI18n.d.ts +1 -1
- package/esm/drivers/messengers/MessengerFactory.d.ts +1 -0
- package/esm/drivers/providers/ProviderFactory.d.ts +1 -0
- package/esm/drivers/signers/SignerFactory.d.ts +1 -0
- package/esm/drivers/sockets/SocketFactory.d.ts +1 -0
- package/esm/drivers/sockets/entities/SocketResponse.d.ts +18 -2
- package/esm/drivers/sockets/entities/index.d.ts +1 -1
- package/esm/drivers/ssos/SsoFactory.d.ts +1 -0
- package/esm/drivers/tasks/TaskFactory.d.ts +1 -0
- package/esm/drivers/templates/ITemplate.d.ts +1 -1
- package/esm/drivers/templates/Template.d.ts +1 -1
- package/esm/drivers/templates/TemplateFactory.d.ts +1 -0
- package/esm/drivers/templates/implement/LiquidTemplate.d.ts +1 -1
- package/esm/drivers/util/UtilFactory.d.ts +2 -2
- package/esm/drivers/util/implements/ObjectUtil.d.ts +21 -1
- package/esm/drivers/util/implements/TimeUtil.d.ts +1 -1
- package/esm/drivers/util/index.d.ts +1 -2
- package/esm/drivers/utilities/UtilityFactory.d.ts +1 -0
- package/esm/drivers/videos/VideoFactory.d.ts +1 -0
- package/esm/drivers/voices/VoiceFactory.d.ts +1 -0
- package/esm/factory/Factory.d.ts +11 -3
- package/esm/factory/IFactory.d.ts +13 -4
- package/esm/repos/RepoFactory.d.ts +3 -3
- package/esm/repos/entities/KeyboardType.d.ts +8 -0
- package/esm/repos/entities/index.d.ts +2 -0
- package/esm/repos/implements/ModuleRepo.d.ts +36 -0
- package/esm/repos/index.d.ts +4 -3
- package/package.json +5 -5
package/dist/style.css
CHANGED
@@ -1 +1 @@
|
|
1
|
-
html{-webkit-user-select:initial;user-select:initial;font-size:14px;font-family:Consolas}a{text-decoration:none}p{margin:0;line-height:20px}input{outline:none;margin:0;font-family:inherit}ul,ol{margin:0;padding:0;outline:none}li{list-style-type:none}img{display:block}pre{margin:0;font-family:inherit}html.blue .ha-rich-text .ql-toolbar.ql-snow{border:1px solid #434e61;box-shadow:0 1px 4px #29374d;background-image:linear-gradient(to bottom,#354052,#354052)}html.blue .ha-rich-text .ql-container.ql-snow{border-color:#434e61;background:#354052}html.blue .ha-rich-text .ql-stroke{stroke:#ffffffb8}html.blue .ha-rich-text .ql-fill{fill:#ffffffb8}html.blue .ha-rich-text .ql-picker .ql-picker-label,html.blue .ha-rich-text .ql-date{color:#ffffffb8}html.light .ha-rich-text .ql-toolbar.ql-snow{border:1px solid #dcdfe6;box-shadow:0 1px 4px #ccc9;background-image:linear-gradient(to bottom,#fff,#f2f2f2)}html.light .ha-rich-text .ql-container.ql-snow{border-color:#dcdfe6}.ha-rich-text ol,.ha-rich-text ul{padding-left:1.5em}.ha-rich-text ol{counter-reset:my-counter}.ha-rich-text ol li{list-style-type:none;counter-increment:my-counter}.ha-rich-text ol li:before{content:counter(my-counter) "."}.ha-fill{width:100%;height:100%}.ha-scroller{position:relative;height:100%}.ha-scroller:hover .scroller-thumb{display:block}.ha-scroller.hover .scroller-thumb{display:block;opacity:.5}.ha-scroller .scroller-container{height:100%;overflow:auto;width:100%;scrollbar-width:none}.ha-scroller .scroller-track{position:absolute;top:0;right:0;width:8px;height:100%}.ha-scroller .scroller-thumb{display:none;position:absolute;cursor:pointer;height:30px;width:100%;-webkit-user-select:none;user-select:none;background:#a3a6ad;opacity:.3;border-radius:5px}.ha-scroller .scroller-thumb:hover{opacity:.5}.ha-card{padding:5px;border:1px solid #414243;background:#1d1e1f;box-shadow:0 0 12px #000000b8;border-radius:4px}.ha-code{width:100%;height:100%}.ha-code.border{width:calc(100% - 2px);height:calc(100% - 2px);border-radius:4px}.ha-code.border .monaco-editor,.ha-code.border .overflow-guard{border-radius:4px}.ha-code.border:has(.monaco-editor.focused){border:1px solid #007fd4}.ha-compare{width:100%;height:100%}.ha-rich-text{width:100%}.ha-rich-text .ql-date{font-family:"Font Awesome 6 Free"}.ha-rich-text .ql-date:before{content:""}.ha-rich-text .ql-toolbar{line-height:20px}.ha-rich-text .ql-toolbar.ql-snow{padding:3px;position:sticky;top:0;z-index:10;border-top-left-radius:4px;border-top-right-radius:4px}.ha-rich-text .ql-body{border-bottom-left-radius:4px;border-bottom-right-radius:4px}.ha-rich-text .ql-container{height:auto}.ha-rich-text .ql-container.ql-snow{font-family:inherit;border:0}.ha-rich-text .ql-editor{padding:8px 8px 620px;word-break:break-word;overflow:initial}.ha-rich-text .ql-formats .ql-picker+.ql-picker{display:block!important}.ha-rich-text .ql-formats .ql-picker:has(+.ql-picker){display:none}.ha-rich-text:has(.ql-editor:focus) .ql-snow.ql-toolbar{border-color:#007fd4;border-bottom-color:#4c4d4f}.ha-rich-text:has(.ql-editor:focus) .ql-snow+.ql-body{border-color:#007fd4}.ha-condition{display:flex}.ha-col{display:flex;gap:5px}.ha-container{padding:10px;width:calc(100% - 20px);height:calc(100% - 20px)}.ha-container .ha-operation:nth-child(1){margin-top:0;margin-bottom:10px;padding:8px 10px;line-height:32px}.ha-row{display:flex;gap:5px}.ha-row.between{justify-content:space-between}.ha-progress{position:absolute;width:0;z-index:1}.ha-socket-progress{width:100%;display:flex;gap:5px}.ha-socket-progress .progress-tips{display:flex;gap:5px}.ha-socket-progress .progress-tip{font-size:12px;padding:0 8px;border-radius:4px}.ha-socket-progress .progress-tip.info{color:#409eff;background:#18222c;border:1px solid #1d3043}.ha-socket-progress .progress-tip.success{color:#67c23a;background:#1c2518;border:1px solid #25371c}.ha-socket-progress .progress-tip.error{color:#f56c6c;background:#2b1d1d;border:1px solid #412626}.ha-socket-progress .progress-chart{display:flex;flex:1;align-items:center;gap:5px;width:
|
1
|
+
html{-webkit-user-select:initial;user-select:initial;font-size:14px;font-family:Consolas}a{text-decoration:none}p{margin:0;line-height:20px}input{outline:none;margin:0;font-family:inherit}ul,ol{margin:0;padding:0;outline:none}li{list-style-type:none}img{display:block}pre{margin:0;font-family:inherit}html.blue .ha-rich-text .ql-toolbar.ql-snow{border:1px solid #434e61;box-shadow:0 1px 4px #29374d;background-image:linear-gradient(to bottom,#354052,#354052)}html.blue .ha-rich-text .ql-container.ql-snow{border-color:#434e61;background:#354052}html.blue .ha-rich-text .ql-stroke{stroke:#ffffffb8}html.blue .ha-rich-text .ql-fill{fill:#ffffffb8}html.blue .ha-rich-text .ql-picker .ql-picker-label,html.blue .ha-rich-text .ql-date{color:#ffffffb8}html.light .ha-rich-text .ql-toolbar.ql-snow{border:1px solid #dcdfe6;box-shadow:0 1px 4px #ccc9;background-image:linear-gradient(to bottom,#fff,#f2f2f2)}html.light .ha-rich-text .ql-container.ql-snow{border-color:#dcdfe6}.ha-rich-text ol,.ha-rich-text ul{padding-left:1.5em}.ha-rich-text ol{counter-reset:my-counter}.ha-rich-text ol li{list-style-type:none;counter-increment:my-counter}.ha-rich-text ol li:before{content:counter(my-counter) "."}.ha-fill{width:100%;height:100%}.ha-scroller{position:relative;height:100%}.ha-scroller:hover .scroller-thumb{display:block}.ha-scroller.hover .scroller-thumb{display:block;opacity:.5}.ha-scroller .scroller-container{height:100%;overflow:auto;width:100%;scrollbar-width:none}.ha-scroller .scroller-track{position:absolute;top:0;right:0;width:8px;height:100%}.ha-scroller .scroller-thumb{display:none;position:absolute;cursor:pointer;height:30px;width:100%;-webkit-user-select:none;user-select:none;background:#a3a6ad;opacity:.3;border-radius:5px}.ha-scroller .scroller-thumb:hover{opacity:.5}.ha-card{padding:5px;border:1px solid #414243;background:#1d1e1f;box-shadow:0 0 12px #000000b8;border-radius:4px}.ha-code{width:100%;height:100%}.ha-code.border{width:calc(100% - 2px);height:calc(100% - 2px);border-radius:4px}.ha-code.border .monaco-editor,.ha-code.border .overflow-guard{border-radius:4px}.ha-code.border:has(.monaco-editor.focused){border:1px solid #007fd4}.ha-compare{width:100%;height:100%}.ha-rich-text{width:100%}.ha-rich-text .ql-date{font-family:"Font Awesome 6 Free"}.ha-rich-text .ql-date:before{content:""}.ha-rich-text .ql-toolbar{line-height:20px}.ha-rich-text .ql-toolbar.ql-snow{padding:3px;position:sticky;top:0;z-index:10;border-top-left-radius:4px;border-top-right-radius:4px}.ha-rich-text .ql-body{border-bottom-left-radius:4px;border-bottom-right-radius:4px}.ha-rich-text .ql-container{height:auto}.ha-rich-text .ql-container.ql-snow{font-family:inherit;border:0}.ha-rich-text .ql-editor{padding:8px 8px 620px;word-break:break-word;overflow:initial}.ha-rich-text .ql-formats .ql-picker+.ql-picker{display:block!important}.ha-rich-text .ql-formats .ql-picker:has(+.ql-picker){display:none}.ha-rich-text:has(.ql-editor:focus) .ql-snow.ql-toolbar{border-color:#007fd4;border-bottom-color:#4c4d4f}.ha-rich-text:has(.ql-editor:focus) .ql-snow+.ql-body{border-color:#007fd4}.ha-condition{display:flex}.ha-col{display:flex;gap:5px}.ha-container{padding:10px;width:calc(100% - 20px);height:calc(100% - 20px)}.ha-container .ha-operation:nth-child(1){margin-top:0;margin-bottom:10px;padding:8px 10px;line-height:32px}.ha-row{display:flex;gap:5px}.ha-row.between{justify-content:space-between}.ha-progress{position:absolute;width:0;z-index:1}.ha-socket-progress{width:100%;display:flex;gap:5px}.ha-socket-progress .progress-tips{display:flex;gap:5px}.ha-socket-progress .progress-tip{font-size:12px;padding:0 8px;border-radius:4px;display:flex;align-items:center}.ha-socket-progress .progress-tip.info{color:#409eff;background:#18222c;border:1px solid #1d3043}.ha-socket-progress .progress-tip.success{color:#67c23a;background:#1c2518;border:1px solid #25371c}.ha-socket-progress .progress-tip.error{color:#f56c6c;background:#2b1d1d;border:1px solid #412626}.ha-socket-progress .progress-chart{display:flex;flex:1;align-items:center;gap:5px;width:400px}.ha-socket-progress .progress-bar{height:6px;background:#363637;width:100%;border-radius:4px}.ha-socket-progress .progress-percentage{height:100%;background:#67c23a;transition:width .5s;border-radius:4px}.ha-socket-progress .progress-info{font-size:12px;display:flex;justify-content:space-between;color:#aaa}.ha-socket-progress .progress-text{color:#cfd3dc}.ha-socket-progress.warning .progress-percentage{background:#e6a23c}.ha-socket-progress.warning .progress-text{color:#e6a23c}.ha-socket-progress.error .progress-percentage{background:#f56c6c}.ha-socket-progress.error .progress-text{color:#f56c6c}@keyframes antRotate{to{transform:rotate(405deg)}}@keyframes antSpinMove{to{opacity:1}}.ha-spinner .spinner-dots{position:relative;font-size:20px;width:20px;height:20px;transform:rotate(45deg);animation:antRotate 1.2s linear infinite;margin:0 auto}.ha-spinner .spinner-dots i{position:absolute;display:block;width:9px;height:9px;border-radius:100%;transform:scale(.75);transform-origin:50% 50%;opacity:.3;animation:antSpinMove 1s linear infinite alternate}.ha-spinner .spinner-dots i:first-child{top:0;left:0}.ha-spinner .spinner-dots i:nth-child(2){top:0;right:0;animation-delay:.4s}.ha-spinner .spinner-dots i:nth-child(3){right:0;bottom:0;animation-delay:.8s}.ha-spinner .spinner-dots i:nth-child(4){bottom:0;left:0;animation-delay:1.2s}.ha-spinner .spinner-title{color:#f40}.ha-spinner .stack{color:#a3a6ad;white-space:pre-wrap}.ha-spinner .spinner-text{text-align:center;font-size:14px;margin-top:10px}.ha-spinner.is-loading{height:100%;display:flex;align-items:center;justify-content:center}.ha-spinner.is-error{padding:10px;font-size:14px;transition:none}.ha-spinner.is-error .retry{color:#38c;cursor:pointer;margin-left:5px}.ha-spinner.is-error .retry:active{color:#f40}.ha-dance{display:flex;align-items:center}.ha-dance .char{animation:animationText 1s ease-in-out infinite alternate}@keyframes animationText{0%{transform:matrix(1,0,0,1,0,-2)}to{transform:matrix(1,0,0,1,0,2)}}
|
package/esm/coms/index.d.ts
CHANGED
@@ -3,11 +3,15 @@ declare function __VLS_template(): {
|
|
3
3
|
slots: {
|
4
4
|
default?(_: {}): any;
|
5
5
|
};
|
6
|
-
refs: {
|
6
|
+
refs: {
|
7
|
+
rowRef: HTMLDivElement;
|
8
|
+
};
|
7
9
|
attrs: Partial<{}>;
|
8
10
|
};
|
9
11
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
10
|
-
declare const __VLS_component: import("vue").DefineComponent<RowProps, {
|
12
|
+
declare const __VLS_component: import("vue").DefineComponent<RowProps, {
|
13
|
+
ref: import("vue").Ref<any, any>;
|
14
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<RowProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
11
15
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
12
16
|
export default _default;
|
13
17
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
@@ -0,0 +1,5 @@
|
|
1
|
+
import { DanceProps } from "./@types";
|
2
|
+
declare const _default: import("vue").DefineComponent<DanceProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<DanceProps> & Readonly<{}>, {
|
3
|
+
delay: number;
|
4
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
5
|
+
export default _default;
|
@@ -10,14 +10,14 @@ declare abstract class Cdn implements ICdn {
|
|
10
10
|
*/
|
11
11
|
task: ITask;
|
12
12
|
openAsync(conn: string): Promise<void>;
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
13
|
+
getCrypto(): Promise<any>;
|
14
|
+
getECharts(): Promise<any>;
|
15
|
+
getElementPlus(): Promise<any>;
|
16
|
+
getFortAwesome(): Promise<any>;
|
17
17
|
getMonaco(baseUrl?: string): Promise<any>;
|
18
18
|
getQuill(): Promise<any>;
|
19
|
-
|
20
|
-
|
19
|
+
getWeiXin(): Promise<any>;
|
20
|
+
getXlsx(): Promise<any>;
|
21
21
|
/**
|
22
22
|
* 使用并发限制顺序加载资源,并防止monaco-editor的define函数冲突
|
23
23
|
*/
|
@@ -0,0 +1,9 @@
|
|
1
|
+
import IFeature from "./IFeature";
|
2
|
+
declare abstract class Feature implements IFeature {
|
3
|
+
type: string;
|
4
|
+
openAsync(conn?: string): Promise<void>;
|
5
|
+
abstract add(table: any, field: any, data: object, row: object): void;
|
6
|
+
abstract copy(table: any, field: any, data: object): void;
|
7
|
+
abstract insert(table: any, field: any, data: object, selectedRow: object, row: object): void;
|
8
|
+
}
|
9
|
+
export default Feature;
|
@@ -1,10 +1,9 @@
|
|
1
|
-
import
|
1
|
+
import Feature from "../Feature";
|
2
2
|
/**
|
3
3
|
* 表达式特征
|
4
4
|
*/
|
5
|
-
declare class ExpressionFeature
|
5
|
+
declare class ExpressionFeature extends Feature {
|
6
6
|
type: string;
|
7
|
-
openAsync(param: string): void;
|
8
7
|
add(table: any, field: any, data: {}, row: {}): void;
|
9
8
|
insert(table: any, field: any, data: object, selectedRow: object, row: object): void;
|
10
9
|
copy(table: any, field: any, data: object): void;
|
@@ -1,10 +1,9 @@
|
|
1
|
-
import
|
1
|
+
import Feature from "../Feature";
|
2
2
|
/**
|
3
3
|
* 多语言特征
|
4
4
|
*/
|
5
|
-
declare class I18NFeature
|
5
|
+
declare class I18NFeature extends Feature {
|
6
6
|
type: string;
|
7
|
-
openAsync(param: string): void;
|
8
7
|
add(table: any, field: any, data: {}, row: {}): void;
|
9
8
|
insert(table: any, field: any, data: object, selectedRow: object, row: object): void;
|
10
9
|
copy(table: any, field: any, data: object): void;
|
@@ -1,10 +1,9 @@
|
|
1
|
-
import
|
1
|
+
import Feature from "../Feature";
|
2
2
|
/**
|
3
3
|
* 排序特征
|
4
4
|
*/
|
5
|
-
declare class SortFeature
|
5
|
+
declare class SortFeature extends Feature {
|
6
6
|
type: string;
|
7
|
-
openAsync(param: string): void;
|
8
7
|
add(table: any, field: any, data: object, row: object): void;
|
9
8
|
insert(table: any, field: any, data: object, selectedRow: object, row: object): void;
|
10
9
|
copy(table: any, field: any, data: object): void;
|
@@ -29,7 +29,7 @@ declare abstract class Http implements IHttp {
|
|
29
29
|
set onRequest(value: (request: HttpRequest) => Promise<void>);
|
30
30
|
get onResponse(): (response: HttpResponse) => Promise<void>;
|
31
31
|
set onResponse(value: (response: HttpResponse) => Promise<void>);
|
32
|
-
prepareAsync(request: HttpRequest, variables
|
32
|
+
prepareAsync(request: HttpRequest, variables?: string[]): Promise<void>;
|
33
33
|
get: (path: string, params?: any) => Promise<any>;
|
34
34
|
getAsync: (path: string, params?: any) => Promise<HttpResponse>;
|
35
35
|
post: (path: string, body: any) => Promise<any>;
|
@@ -36,7 +36,7 @@ declare abstract class I18n implements II18n {
|
|
36
36
|
addMessages: (messages: {
|
37
37
|
[key: string]: string;
|
38
38
|
}) => void;
|
39
|
-
abstract
|
39
|
+
abstract loadAsync(lang: string): Promise<void>;
|
40
40
|
switch: (lang: string) => Promise<void>;
|
41
41
|
}
|
42
42
|
export default I18n;
|
@@ -8,6 +8,6 @@ declare class DefaultI18n extends I18n {
|
|
8
8
|
openAsync(conn?: string): Promise<void>;
|
9
9
|
translate: (key: string, params?: any) => string;
|
10
10
|
t_exists: (key: string) => boolean;
|
11
|
-
|
11
|
+
loadAsync: (lang: string) => Promise<void>;
|
12
12
|
}
|
13
13
|
export default DefaultI18n;
|
@@ -1,7 +1,7 @@
|
|
1
1
|
/**
|
2
2
|
* Socket响应消息
|
3
3
|
*/
|
4
|
-
|
4
|
+
declare class SocketResponse<T> {
|
5
5
|
/**
|
6
6
|
* 是否执行成功
|
7
7
|
*/
|
@@ -10,10 +10,14 @@ interface SocketResponse<T> {
|
|
10
10
|
* 异常消息
|
11
11
|
*/
|
12
12
|
message: string;
|
13
|
+
/**
|
14
|
+
* 耗时
|
15
|
+
*/
|
16
|
+
elapsed: number;
|
13
17
|
/**
|
14
18
|
* 消息类别
|
15
19
|
*/
|
16
|
-
|
20
|
+
kind: string;
|
17
21
|
/**
|
18
22
|
* 消息类型
|
19
23
|
*/
|
@@ -22,5 +26,17 @@ interface SocketResponse<T> {
|
|
22
26
|
* 数据体
|
23
27
|
*/
|
24
28
|
data: T;
|
29
|
+
/**
|
30
|
+
* 初始化并设置数据
|
31
|
+
*/
|
32
|
+
constructor(kind: string, type: string, data: T);
|
33
|
+
/**
|
34
|
+
* 成功输出
|
35
|
+
*/
|
36
|
+
onOk(message?: string): void;
|
37
|
+
/**
|
38
|
+
* 异常输出
|
39
|
+
*/
|
40
|
+
onError(message: string): void;
|
25
41
|
}
|
26
42
|
export default SocketResponse;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import ITemplate from "./ITemplate";
|
2
2
|
declare abstract class Template implements ITemplate {
|
3
3
|
type: string;
|
4
|
-
abstract
|
4
|
+
abstract renderAsync(template: string, model: any): Promise<string>;
|
5
5
|
}
|
6
6
|
export default Template;
|
@@ -1,10 +1,11 @@
|
|
1
1
|
import Factory from "../../factory/Factory";
|
2
2
|
import IUtil from "./IUtil";
|
3
|
-
import { ArrayUtil, BrowserUtil, ComponentUtil, DictionaryUtil, DomUtil, EventUtil, FileUtil, HtmlUtil, ImageUtil, JsonUtil, MathUtil, MicroUtil, MountUtil, ObjectUtil, ScrollUtil, SignUtil, StringUtil, TaskUtil, TimeUtil, TreeUtil,
|
3
|
+
import { ArrayUtil, BrowserUtil, ComponentUtil, DictionaryUtil, DomUtil, EventUtil, FileUtil, HtmlUtil, ImageUtil, JsonUtil, MathUtil, MicroUtil, MountUtil, ObjectUtil, ScrollUtil, SignUtil, StringUtil, TaskUtil, TimeUtil, TreeUtil, UrlUtil } from "./";
|
4
4
|
/**
|
5
5
|
* 帮助类工厂
|
6
6
|
*/
|
7
7
|
declare class UtilFactory extends Factory<IUtil> {
|
8
|
+
type: string;
|
8
9
|
open(): void;
|
9
10
|
get array(): ArrayUtil;
|
10
11
|
get browser(): BrowserUtil;
|
@@ -23,7 +24,6 @@ declare class UtilFactory extends Factory<IUtil> {
|
|
23
24
|
get scroll(): ScrollUtil;
|
24
25
|
get string(): StringUtil;
|
25
26
|
get task(): TaskUtil;
|
26
|
-
get type(): TypeUtil;
|
27
27
|
get time(): TimeUtil;
|
28
28
|
get tree(): TreeUtil;
|
29
29
|
get url(): UrlUtil;
|
@@ -5,7 +5,27 @@ import Util from "../Util";
|
|
5
5
|
declare class ObjectUtil extends Util {
|
6
6
|
type: string;
|
7
7
|
/**
|
8
|
-
*
|
8
|
+
* 判断输入类型是否是字符串类型 null -> false
|
9
|
+
*/
|
10
|
+
isString: (input: any) => boolean;
|
11
|
+
/**
|
12
|
+
* 判断输入类型是否是Object类型
|
13
|
+
*/
|
14
|
+
isObject: (input: any) => boolean;
|
15
|
+
/**
|
16
|
+
* 判断输入类型是否是Array类型
|
17
|
+
*/
|
18
|
+
isArray: (input: any) => boolean;
|
19
|
+
/**
|
20
|
+
* 判断输入类型是否是Number类型,null -> false
|
21
|
+
*/
|
22
|
+
isNumber: (input: any) => boolean;
|
23
|
+
/**
|
24
|
+
* 判断输入类型是否是isBoolean类型
|
25
|
+
*/
|
26
|
+
isBoolean: (input: any) => boolean;
|
27
|
+
/**
|
28
|
+
* 净化对象,只清除默认值属性
|
9
29
|
*/
|
10
30
|
pure(input: object): {};
|
11
31
|
/**
|
@@ -13,7 +13,6 @@ import MountUtil from "./implements/MountUtil";
|
|
13
13
|
import ObjectUtil from "./implements/ObjectUtil";
|
14
14
|
import StringUtil from "./implements/StringUtil";
|
15
15
|
import TaskUtil from "./implements/TaskUtil";
|
16
|
-
import TypeUtil from "./implements/TypeUtil";
|
17
16
|
import TimeUtil from "./implements/TimeUtil";
|
18
17
|
import TreeUtil from "./implements/TreeUtil";
|
19
18
|
import ScrollUtil from "./implements/ScrollUtil";
|
@@ -21,4 +20,4 @@ import JsonUtil from "./implements/JsonUtil";
|
|
21
20
|
import BrowserUtil from "./implements/BrowserUtil";
|
22
21
|
import UrlUtil from "./implements/UrlUtil";
|
23
22
|
import SignUtil from "./implements/SignUtil";
|
24
|
-
export { UtilFactory, ArrayUtil, ComponentUtil, DomUtil, DictionaryUtil, EventUtil, FileUtil, HtmlUtil, ImageUtil, MathUtil, MountUtil, ObjectUtil, MicroUtil, StringUtil, TaskUtil,
|
23
|
+
export { UtilFactory, ArrayUtil, ComponentUtil, DomUtil, DictionaryUtil, EventUtil, FileUtil, HtmlUtil, ImageUtil, MathUtil, MountUtil, ObjectUtil, MicroUtil, StringUtil, TaskUtil, TimeUtil, TreeUtil, ScrollUtil, JsonUtil, BrowserUtil, UrlUtil, SignUtil };
|
package/esm/factory/Factory.d.ts
CHANGED
@@ -6,16 +6,24 @@ import { Ref } from "../plugins";
|
|
6
6
|
*/
|
7
7
|
declare abstract class Factory<T extends IDriver> implements IFactory<T> {
|
8
8
|
/**
|
9
|
-
*
|
9
|
+
* 工厂类型,可用于异常提示
|
10
10
|
*/
|
11
|
-
|
11
|
+
type: string;
|
12
|
+
/**
|
13
|
+
* 当前驱动子类型名称和子类型的映射关系,用于快速实例化
|
14
|
+
*/
|
15
|
+
types: {
|
16
|
+
[name: string]: any;
|
17
|
+
};
|
12
18
|
/**
|
13
19
|
* 实例缓存集合
|
14
20
|
* 或者使用:Record<string, string>
|
15
21
|
*/
|
16
22
|
private created;
|
17
23
|
open(): void;
|
18
|
-
register(
|
24
|
+
register(types: {
|
25
|
+
[name: string]: any;
|
26
|
+
}): void;
|
19
27
|
/**
|
20
28
|
* 根据主键创建并开启驱动,并返回加载后的驱动信息
|
21
29
|
*/
|