@ibiz-template/runtime 0.7.41-alpha.155 → 0.7.41-alpha.157
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/dist/index.esm.js +1 -1
- package/dist/index.system.min.js +1 -1
- package/out/controller/control/caption-bar/caption-bar.controller.js +1 -1
- package/out/interface/api/util/i-api-message-util.d.ts +15 -4
- package/out/interface/api/util/i-api-message-util.d.ts.map +1 -1
- package/out/interface/api/util/i-api-notification-util.d.ts +6 -0
- package/out/interface/api/util/i-api-notification-util.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/controller/control/caption-bar/caption-bar.controller.ts +1 -1
- package/src/interface/api/util/i-api-message-util.ts +37 -4
- package/src/interface/api/util/i-api-notification-util.ts +6 -0
|
@@ -23,7 +23,7 @@ export class CaptionBarController extends ControlController {
|
|
|
23
23
|
if (ibiz.config.view.onlyShowDataInfo && showDataInfoBar && dataInfo) {
|
|
24
24
|
this.state.caption = dataInfo;
|
|
25
25
|
}
|
|
26
|
-
else if (!ibiz.config.view.enableDataInfoBar) {
|
|
26
|
+
else if (!ibiz.config.view.enableDataInfoBar || !showDataInfoBar) {
|
|
27
27
|
this.state.caption = `${this.view.model.caption}`;
|
|
28
28
|
}
|
|
29
29
|
else {
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { IApiParams } from '@ibiz-template/core';
|
|
1
2
|
/**
|
|
2
3
|
* @description 消息提示参数接口
|
|
3
4
|
* @export
|
|
@@ -34,6 +35,12 @@ export interface IApiMessageParams {
|
|
|
34
35
|
* @memberof IApiMessageParams
|
|
35
36
|
*/
|
|
36
37
|
styleType?: 'alert';
|
|
38
|
+
/**
|
|
39
|
+
* @description 设置 message 的根元素,默认为 document.body
|
|
40
|
+
* @type {(string | HTMLElement)}
|
|
41
|
+
* @memberof IApiMessageParams
|
|
42
|
+
*/
|
|
43
|
+
appendTo?: string | HTMLElement;
|
|
37
44
|
}
|
|
38
45
|
/**
|
|
39
46
|
* @description 主动操作后的反馈提示,顶部居中显示,并自动消失
|
|
@@ -46,33 +53,37 @@ export interface IApiMessageUtil {
|
|
|
46
53
|
* @param {string} msg 消息内容
|
|
47
54
|
* @param {number} [duration] 持续时间,单位:秒,默认:1.5
|
|
48
55
|
* @param {boolean} [closable] 显示关闭按钮,默认:false
|
|
56
|
+
* @param {IApiParams} [options] 额外参数
|
|
49
57
|
* @memberof IApiMessageUtil
|
|
50
58
|
*/
|
|
51
|
-
info(msg: string, duration?: number, closable?: boolean): void;
|
|
59
|
+
info(msg: string, duration?: number, closable?: boolean, options?: IApiParams): void;
|
|
52
60
|
/**
|
|
53
61
|
* @description 显示成功提示消息
|
|
54
62
|
* @param {string} msg 消息内容
|
|
55
63
|
* @param {number} [duration] 持续时间,单位:秒,默认:1.5
|
|
56
64
|
* @param {boolean} [closable] 显示关闭按钮,默认:false
|
|
65
|
+
* @param {IApiParams} [options] 额外参数
|
|
57
66
|
* @memberof IApiMessageUtil
|
|
58
67
|
*/
|
|
59
|
-
success(msg: string, duration?: number, closable?: boolean): void;
|
|
68
|
+
success(msg: string, duration?: number, closable?: boolean, options?: IApiParams): void;
|
|
60
69
|
/**
|
|
61
70
|
* @description 显示警告提示消息
|
|
62
71
|
* @param {string} msg 消息内容
|
|
63
72
|
* @param {number} [duration] 持续时间,单位:秒,默认:1.5
|
|
64
73
|
* @param {boolean} [closable] 显示关闭按钮,默认:false
|
|
74
|
+
* @param {IApiParams} [options] 额外参数
|
|
65
75
|
* @memberof IApiMessageUtil
|
|
66
76
|
*/
|
|
67
|
-
warning(msg: string, duration?: number, closable?: boolean): void;
|
|
77
|
+
warning(msg: string, duration?: number, closable?: boolean, options?: IApiParams): void;
|
|
68
78
|
/**
|
|
69
79
|
* @description 显示错误提示消息
|
|
70
80
|
* @param {string} msg 消息内容
|
|
71
81
|
* @param {number} [duration] 持续时间,单位:秒,默认:1.5
|
|
72
82
|
* @param {boolean} [closable] 显示关闭按钮,默认:false
|
|
83
|
+
* @param {IApiParams} [options] 额外参数
|
|
73
84
|
* @memberof IApiMessageUtil
|
|
74
85
|
*/
|
|
75
|
-
error(msg: string, duration?: number, closable?: boolean): void;
|
|
86
|
+
error(msg: string, duration?: number, closable?: boolean, options?: IApiParams): void;
|
|
76
87
|
/**
|
|
77
88
|
* @description 通用消息方法,支持自定义图标、持续时间等参数
|
|
78
89
|
* @param {IApiMessageParams} params 配置详细的参数,详情参见:https://element-plus.org/zh-CN/component/message.html#message-%E9%85%8D%E7%BD%AE%E9%A1%B9
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"i-api-message-util.d.ts","sourceRoot":"","sources":["../../../../src/interface/api/util/i-api-message-util.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,WAAW,iBAAiB;IAChC;;;;OAIG;IACH,IAAI,CAAC,EAAE,SAAS,GAAG,MAAM,GAAG,SAAS,GAAG,OAAO,CAAC;IAChD;;;;OAIG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;;;OAIG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB;;;;OAIG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"i-api-message-util.d.ts","sourceRoot":"","sources":["../../../../src/interface/api/util/i-api-message-util.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEjD;;;;GAIG;AACH,MAAM,WAAW,iBAAiB;IAChC;;;;OAIG;IACH,IAAI,CAAC,EAAE,SAAS,GAAG,MAAM,GAAG,SAAS,GAAG,OAAO,CAAC;IAChD;;;;OAIG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;;;OAIG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB;;;;OAIG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,WAAW,CAAC;CACjC;AAED;;;;GAIG;AACH,MAAM,WAAW,eAAe;IAC9B;;;;;;;OAOG;IACH,IAAI,CACF,GAAG,EAAE,MAAM,EACX,QAAQ,CAAC,EAAE,MAAM,EACjB,QAAQ,CAAC,EAAE,OAAO,EAClB,OAAO,CAAC,EAAE,UAAU,GACnB,IAAI,CAAC;IAER;;;;;;;OAOG;IACH,OAAO,CACL,GAAG,EAAE,MAAM,EACX,QAAQ,CAAC,EAAE,MAAM,EACjB,QAAQ,CAAC,EAAE,OAAO,EAClB,OAAO,CAAC,EAAE,UAAU,GACnB,IAAI,CAAC;IAER;;;;;;;OAOG;IACH,OAAO,CACL,GAAG,EAAE,MAAM,EACX,QAAQ,CAAC,EAAE,MAAM,EACjB,QAAQ,CAAC,EAAE,OAAO,EAClB,OAAO,CAAC,EAAE,UAAU,GACnB,IAAI,CAAC;IACR;;;;;;;OAOG;IACH,KAAK,CACH,GAAG,EAAE,MAAM,EACX,QAAQ,CAAC,EAAE,MAAM,EACjB,QAAQ,CAAC,EAAE,OAAO,EAClB,OAAO,CAAC,EAAE,UAAU,GACnB,IAAI,CAAC;IACR;;;;OAIG;IACH,MAAM,CAAC,MAAM,EAAE,iBAAiB,GAAG,IAAI,CAAC;CACzC"}
|
|
@@ -40,6 +40,12 @@ export interface IApiNotificationParams {
|
|
|
40
40
|
* @memberof IApiNotificationParams
|
|
41
41
|
*/
|
|
42
42
|
class?: string;
|
|
43
|
+
/**
|
|
44
|
+
* @description 设置 message 的根元素,默认为 document.body
|
|
45
|
+
* @type {(string | HTMLElement)}
|
|
46
|
+
* @memberof IApiNotificationParams
|
|
47
|
+
*/
|
|
48
|
+
appendTo?: string | HTMLElement;
|
|
43
49
|
/**
|
|
44
50
|
* @description 点击事件回调
|
|
45
51
|
* @memberof IApiNotificationParams
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"i-api-notification-util.d.ts","sourceRoot":"","sources":["../../../../src/interface/api/util/i-api-notification-util.ts"],"names":[],"mappings":"AACA;;;;GAIG;AACH,MAAM,WAAW,sBAAsB;IACrC;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,WAAW,GAAG,UAAU,GAAG,cAAc,GAAG,aAAa,CAAC;IACrE;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB;AAED;;;;GAIG;AACH,MAAM,WAAW,oBAAoB;IACnC;;;;OAIG;IACH,OAAO,CAAC,MAAM,EAAE,sBAAsB,GAAG,IAAI,CAAC;IAC9C;;;;OAIG;IACH,IAAI,CAAC,MAAM,EAAE,sBAAsB,GAAG,IAAI,CAAC;IAC3C;;;;OAIG;IACH,OAAO,CAAC,MAAM,EAAE,sBAAsB,GAAG,IAAI,CAAC;IAC9C;;;;OAIG;IACH,OAAO,CAAC,MAAM,EAAE,sBAAsB,GAAG,IAAI,CAAC;IAC9C;;;;OAIG;IACH,KAAK,CAAC,MAAM,EAAE,sBAAsB,GAAG,IAAI,CAAC;CAC7C"}
|
|
1
|
+
{"version":3,"file":"i-api-notification-util.d.ts","sourceRoot":"","sources":["../../../../src/interface/api/util/i-api-notification-util.ts"],"names":[],"mappings":"AACA;;;;GAIG;AACH,MAAM,WAAW,sBAAsB;IACrC;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,WAAW,GAAG,UAAU,GAAG,cAAc,GAAG,aAAa,CAAC;IACrE;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,WAAW,CAAC;IAChC;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB;AAED;;;;GAIG;AACH,MAAM,WAAW,oBAAoB;IACnC;;;;OAIG;IACH,OAAO,CAAC,MAAM,EAAE,sBAAsB,GAAG,IAAI,CAAC;IAC9C;;;;OAIG;IACH,IAAI,CAAC,MAAM,EAAE,sBAAsB,GAAG,IAAI,CAAC;IAC3C;;;;OAIG;IACH,OAAO,CAAC,MAAM,EAAE,sBAAsB,GAAG,IAAI,CAAC;IAC9C;;;;OAIG;IACH,OAAO,CAAC,MAAM,EAAE,sBAAsB,GAAG,IAAI,CAAC;IAC9C;;;;OAIG;IACH,KAAK,CAAC,MAAM,EAAE,sBAAsB,GAAG,IAAI,CAAC;CAC7C"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ibiz-template/runtime",
|
|
3
|
-
"version": "0.7.41-alpha.
|
|
3
|
+
"version": "0.7.41-alpha.157",
|
|
4
4
|
"description": "运行时逻辑库",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "out/index.js",
|
|
@@ -70,5 +70,5 @@
|
|
|
70
70
|
"qx-util": "^0.4.8",
|
|
71
71
|
"ramda": "^0.29.0"
|
|
72
72
|
},
|
|
73
|
-
"gitHead": "
|
|
73
|
+
"gitHead": "be1b4c79c7258f6df383101346da09d2abbbaf12"
|
|
74
74
|
}
|
|
@@ -34,7 +34,7 @@ export class CaptionBarController
|
|
|
34
34
|
const { showDataInfoBar } = this.view.model as IData;
|
|
35
35
|
if (ibiz.config.view.onlyShowDataInfo && showDataInfoBar && dataInfo) {
|
|
36
36
|
this.state.caption = dataInfo;
|
|
37
|
-
} else if (!ibiz.config.view.enableDataInfoBar) {
|
|
37
|
+
} else if (!ibiz.config.view.enableDataInfoBar || !showDataInfoBar) {
|
|
38
38
|
this.state.caption = `${this.view.model.caption}`;
|
|
39
39
|
} else {
|
|
40
40
|
this.state.caption = `${this.view.model.caption}${
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { IApiParams } from '@ibiz-template/core';
|
|
2
|
+
|
|
1
3
|
/**
|
|
2
4
|
* @description 消息提示参数接口
|
|
3
5
|
* @export
|
|
@@ -37,6 +39,13 @@ export interface IApiMessageParams {
|
|
|
37
39
|
* @memberof IApiMessageParams
|
|
38
40
|
*/
|
|
39
41
|
styleType?: 'alert';
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* @description 设置 message 的根元素,默认为 document.body
|
|
45
|
+
* @type {(string | HTMLElement)}
|
|
46
|
+
* @memberof IApiMessageParams
|
|
47
|
+
*/
|
|
48
|
+
appendTo?: string | HTMLElement;
|
|
40
49
|
}
|
|
41
50
|
|
|
42
51
|
/**
|
|
@@ -50,35 +59,59 @@ export interface IApiMessageUtil {
|
|
|
50
59
|
* @param {string} msg 消息内容
|
|
51
60
|
* @param {number} [duration] 持续时间,单位:秒,默认:1.5
|
|
52
61
|
* @param {boolean} [closable] 显示关闭按钮,默认:false
|
|
62
|
+
* @param {IApiParams} [options] 额外参数
|
|
53
63
|
* @memberof IApiMessageUtil
|
|
54
64
|
*/
|
|
55
|
-
info(
|
|
65
|
+
info(
|
|
66
|
+
msg: string,
|
|
67
|
+
duration?: number,
|
|
68
|
+
closable?: boolean,
|
|
69
|
+
options?: IApiParams,
|
|
70
|
+
): void;
|
|
56
71
|
|
|
57
72
|
/**
|
|
58
73
|
* @description 显示成功提示消息
|
|
59
74
|
* @param {string} msg 消息内容
|
|
60
75
|
* @param {number} [duration] 持续时间,单位:秒,默认:1.5
|
|
61
76
|
* @param {boolean} [closable] 显示关闭按钮,默认:false
|
|
77
|
+
* @param {IApiParams} [options] 额外参数
|
|
62
78
|
* @memberof IApiMessageUtil
|
|
63
79
|
*/
|
|
64
|
-
success(
|
|
80
|
+
success(
|
|
81
|
+
msg: string,
|
|
82
|
+
duration?: number,
|
|
83
|
+
closable?: boolean,
|
|
84
|
+
options?: IApiParams,
|
|
85
|
+
): void;
|
|
65
86
|
|
|
66
87
|
/**
|
|
67
88
|
* @description 显示警告提示消息
|
|
68
89
|
* @param {string} msg 消息内容
|
|
69
90
|
* @param {number} [duration] 持续时间,单位:秒,默认:1.5
|
|
70
91
|
* @param {boolean} [closable] 显示关闭按钮,默认:false
|
|
92
|
+
* @param {IApiParams} [options] 额外参数
|
|
71
93
|
* @memberof IApiMessageUtil
|
|
72
94
|
*/
|
|
73
|
-
warning(
|
|
95
|
+
warning(
|
|
96
|
+
msg: string,
|
|
97
|
+
duration?: number,
|
|
98
|
+
closable?: boolean,
|
|
99
|
+
options?: IApiParams,
|
|
100
|
+
): void;
|
|
74
101
|
/**
|
|
75
102
|
* @description 显示错误提示消息
|
|
76
103
|
* @param {string} msg 消息内容
|
|
77
104
|
* @param {number} [duration] 持续时间,单位:秒,默认:1.5
|
|
78
105
|
* @param {boolean} [closable] 显示关闭按钮,默认:false
|
|
106
|
+
* @param {IApiParams} [options] 额外参数
|
|
79
107
|
* @memberof IApiMessageUtil
|
|
80
108
|
*/
|
|
81
|
-
error(
|
|
109
|
+
error(
|
|
110
|
+
msg: string,
|
|
111
|
+
duration?: number,
|
|
112
|
+
closable?: boolean,
|
|
113
|
+
options?: IApiParams,
|
|
114
|
+
): void;
|
|
82
115
|
/**
|
|
83
116
|
* @description 通用消息方法,支持自定义图标、持续时间等参数
|
|
84
117
|
* @param {IApiMessageParams} params 配置详细的参数,详情参见:https://element-plus.org/zh-CN/component/message.html#message-%E9%85%8D%E7%BD%AE%E9%A1%B9
|
|
@@ -41,6 +41,12 @@ export interface IApiNotificationParams {
|
|
|
41
41
|
* @memberof IApiNotificationParams
|
|
42
42
|
*/
|
|
43
43
|
class?: string;
|
|
44
|
+
/**
|
|
45
|
+
* @description 设置 message 的根元素,默认为 document.body
|
|
46
|
+
* @type {(string | HTMLElement)}
|
|
47
|
+
* @memberof IApiNotificationParams
|
|
48
|
+
*/
|
|
49
|
+
appendTo?: string | HTMLElement;
|
|
44
50
|
/**
|
|
45
51
|
* @description 点击事件回调
|
|
46
52
|
* @memberof IApiNotificationParams
|