@ibiz-template/mob-vue3-components 0.0.17 → 0.0.18-sz
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.min.css +1 -1
- package/dist/index.system.min.js +2 -2
- package/dist/index.system.min.js.map +1 -1
- package/es/editor/span/span/span.d.ts +0 -2
- package/es/mob-app/router/index.mjs +16 -1
- package/es/panel-component/panel-button/panel-button.controller.mjs +1 -1
- package/es/util/message-util/message-util.d.ts +1 -2
- package/es/util/message-util/message-util.mjs +0 -5
- package/es/view-engine/mob-edit-view.engine.mjs +5 -1
- package/es/view-engine/mob-wf-dyna-edit-view.engine.d.ts +1 -0
- package/es/view-engine/mob-wf-dyna-edit-view.engine.mjs +19 -1
- package/lib/mob-app/router/index.cjs +16 -1
- package/lib/panel-component/panel-button/panel-button.controller.cjs +1 -1
- package/lib/util/message-util/message-util.cjs +0 -5
- package/lib/view-engine/mob-edit-view.engine.cjs +5 -1
- package/lib/view-engine/mob-wf-dyna-edit-view.engine.cjs +18 -0
- package/package.json +12 -12
|
@@ -33,10 +33,8 @@ export declare const IBizSpan: import("vue").DefineComponent<{
|
|
|
33
33
|
text: string;
|
|
34
34
|
id: string;
|
|
35
35
|
color?: string | undefined;
|
|
36
|
-
bkcolor?: string | undefined;
|
|
37
36
|
children?: any[] | undefined;
|
|
38
37
|
textCls?: string | undefined;
|
|
39
|
-
cls?: string | undefined;
|
|
40
38
|
disableSelect?: boolean | undefined;
|
|
41
39
|
sysImage?: {
|
|
42
40
|
codeName?: string | undefined;
|
|
@@ -48,7 +48,22 @@ class AppRouter {
|
|
|
48
48
|
}
|
|
49
49
|
const authority = await AuthGuard();
|
|
50
50
|
if (authority) {
|
|
51
|
-
|
|
51
|
+
const url = window.appRedirectViewUrl;
|
|
52
|
+
if (url) {
|
|
53
|
+
delete window.appRedirectViewUrl;
|
|
54
|
+
const i = url.lastIndexOf("?");
|
|
55
|
+
if (i !== -1) {
|
|
56
|
+
Object.assign(window, {
|
|
57
|
+
appRedirectViewQuery: url.slice(i)
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
next({
|
|
61
|
+
path: `/${url}`,
|
|
62
|
+
replace: true
|
|
63
|
+
});
|
|
64
|
+
} else {
|
|
65
|
+
next();
|
|
66
|
+
}
|
|
52
67
|
} else {
|
|
53
68
|
next(false);
|
|
54
69
|
}
|
|
@@ -79,7 +79,7 @@ class PanelButtonController extends PanelItemController {
|
|
|
79
79
|
* @memberof PanelButtonController
|
|
80
80
|
*/
|
|
81
81
|
async updateButtonState() {
|
|
82
|
-
await this.state.uiActionState.update(this.
|
|
82
|
+
await this.state.uiActionState.update(this.data);
|
|
83
83
|
}
|
|
84
84
|
/**
|
|
85
85
|
* 行为点击
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { IMessageUtil } from '@ibiz-template/runtime';
|
|
2
2
|
/**
|
|
3
3
|
* 消息通知
|
|
4
4
|
*
|
|
@@ -13,5 +13,4 @@ export declare class MessageUtil implements IMessageUtil {
|
|
|
13
13
|
success(msg: string, duration?: number, _closable?: boolean): void;
|
|
14
14
|
warning(msg: string, duration?: number, _closable?: boolean): void;
|
|
15
15
|
error(msg: string, duration?: number, _closable?: boolean): void;
|
|
16
|
-
notice(params: IMessageParams): void;
|
|
17
16
|
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { RuntimeError } from '@ibiz-template/core';
|
|
2
1
|
import { showNotify } from 'vant';
|
|
3
2
|
|
|
4
3
|
"use strict";
|
|
@@ -31,10 +30,6 @@ class MessageUtil {
|
|
|
31
30
|
type: "danger"
|
|
32
31
|
});
|
|
33
32
|
}
|
|
34
|
-
// eslint-disable-next-line no-unused-vars, @typescript-eslint/no-unused-vars
|
|
35
|
-
notice(params) {
|
|
36
|
-
throw new RuntimeError("\u6CA1\u6709\u5B9E\u73B0");
|
|
37
|
-
}
|
|
38
33
|
}
|
|
39
34
|
|
|
40
35
|
export { MessageUtil };
|
|
@@ -21,6 +21,10 @@ class MobEditViewEngine extends ViewEngineBase {
|
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
23
|
});
|
|
24
|
+
if (!this.view.slotProps.form) {
|
|
25
|
+
this.view.slotProps.form = {};
|
|
26
|
+
}
|
|
27
|
+
this.view.slotProps.form.loadDefault = false;
|
|
24
28
|
}
|
|
25
29
|
/**
|
|
26
30
|
* 获取所有的工具栏控制器
|
|
@@ -87,7 +91,7 @@ class MobEditViewEngine extends ViewEngineBase {
|
|
|
87
91
|
formDataStateChange(event);
|
|
88
92
|
evt.emit("onDataChange", { ...event, actionType: "REMOVE" });
|
|
89
93
|
});
|
|
90
|
-
if (model.loadDefault) {
|
|
94
|
+
if (!this.view.state.noLoadDefault && model.loadDefault) {
|
|
91
95
|
this.load();
|
|
92
96
|
}
|
|
93
97
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { RuntimeModelError } from '@ibiz-template/core';
|
|
1
|
+
import { RuntimeModelError, findRecursiveChild } from '@ibiz-template/core';
|
|
2
2
|
import { getControl, getWFSubmitViewId, OpenAppViewCommand } from '@ibiz-template/runtime';
|
|
3
3
|
import { createUUID } from 'qx-util';
|
|
4
4
|
import { MobEditViewEngine } from './mob-edit-view.engine.mjs';
|
|
@@ -277,6 +277,24 @@ class MobWFDynaEditViewEngine extends MobEditViewEngine {
|
|
|
277
277
|
}
|
|
278
278
|
}
|
|
279
279
|
}
|
|
280
|
+
calcViewFooterVisible() {
|
|
281
|
+
let showFooter = false;
|
|
282
|
+
if (this.isExistAndInLayout("footertoolbar")) {
|
|
283
|
+
showFooter = true;
|
|
284
|
+
} else {
|
|
285
|
+
const layout = this.view.model.viewLayoutPanel;
|
|
286
|
+
if (layout) {
|
|
287
|
+
const ins = findRecursiveChild(layout, "wf_action_button", {
|
|
288
|
+
compareField: "id",
|
|
289
|
+
childrenFields: ["panelItems", "rootPanelItems"]
|
|
290
|
+
});
|
|
291
|
+
if (ins) {
|
|
292
|
+
showFooter = true;
|
|
293
|
+
}
|
|
294
|
+
}
|
|
295
|
+
}
|
|
296
|
+
return showFooter;
|
|
297
|
+
}
|
|
280
298
|
}
|
|
281
299
|
|
|
282
300
|
export { MobWFDynaEditViewEngine };
|
|
@@ -50,7 +50,22 @@ class AppRouter {
|
|
|
50
50
|
}
|
|
51
51
|
const authority = await authGuard.AuthGuard();
|
|
52
52
|
if (authority) {
|
|
53
|
-
|
|
53
|
+
const url = window.appRedirectViewUrl;
|
|
54
|
+
if (url) {
|
|
55
|
+
delete window.appRedirectViewUrl;
|
|
56
|
+
const i = url.lastIndexOf("?");
|
|
57
|
+
if (i !== -1) {
|
|
58
|
+
Object.assign(window, {
|
|
59
|
+
appRedirectViewQuery: url.slice(i)
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
next({
|
|
63
|
+
path: `/${url}`,
|
|
64
|
+
replace: true
|
|
65
|
+
});
|
|
66
|
+
} else {
|
|
67
|
+
next();
|
|
68
|
+
}
|
|
54
69
|
} else {
|
|
55
70
|
next(false);
|
|
56
71
|
}
|
|
@@ -81,7 +81,7 @@ class PanelButtonController extends runtime.PanelItemController {
|
|
|
81
81
|
* @memberof PanelButtonController
|
|
82
82
|
*/
|
|
83
83
|
async updateButtonState() {
|
|
84
|
-
await this.state.uiActionState.update(this.
|
|
84
|
+
await this.state.uiActionState.update(this.data);
|
|
85
85
|
}
|
|
86
86
|
/**
|
|
87
87
|
* 行为点击
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var core = require('@ibiz-template/core');
|
|
4
3
|
var Vant = require('vant');
|
|
5
4
|
|
|
6
5
|
"use strict";
|
|
@@ -33,10 +32,6 @@ class MessageUtil {
|
|
|
33
32
|
type: "danger"
|
|
34
33
|
});
|
|
35
34
|
}
|
|
36
|
-
// eslint-disable-next-line no-unused-vars, @typescript-eslint/no-unused-vars
|
|
37
|
-
notice(params) {
|
|
38
|
-
throw new core.RuntimeError("\u6CA1\u6709\u5B9E\u73B0");
|
|
39
|
-
}
|
|
40
35
|
}
|
|
41
36
|
|
|
42
37
|
exports.MessageUtil = MessageUtil;
|
|
@@ -23,6 +23,10 @@ class MobEditViewEngine extends runtime.ViewEngineBase {
|
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
25
|
});
|
|
26
|
+
if (!this.view.slotProps.form) {
|
|
27
|
+
this.view.slotProps.form = {};
|
|
28
|
+
}
|
|
29
|
+
this.view.slotProps.form.loadDefault = false;
|
|
26
30
|
}
|
|
27
31
|
/**
|
|
28
32
|
* 获取所有的工具栏控制器
|
|
@@ -89,7 +93,7 @@ class MobEditViewEngine extends runtime.ViewEngineBase {
|
|
|
89
93
|
formDataStateChange(event);
|
|
90
94
|
evt.emit("onDataChange", { ...event, actionType: "REMOVE" });
|
|
91
95
|
});
|
|
92
|
-
if (model.loadDefault) {
|
|
96
|
+
if (!this.view.state.noLoadDefault && model.loadDefault) {
|
|
93
97
|
this.load();
|
|
94
98
|
}
|
|
95
99
|
}
|
|
@@ -279,6 +279,24 @@ class MobWFDynaEditViewEngine extends mobEditView_engine.MobEditViewEngine {
|
|
|
279
279
|
}
|
|
280
280
|
}
|
|
281
281
|
}
|
|
282
|
+
calcViewFooterVisible() {
|
|
283
|
+
let showFooter = false;
|
|
284
|
+
if (this.isExistAndInLayout("footertoolbar")) {
|
|
285
|
+
showFooter = true;
|
|
286
|
+
} else {
|
|
287
|
+
const layout = this.view.model.viewLayoutPanel;
|
|
288
|
+
if (layout) {
|
|
289
|
+
const ins = core.findRecursiveChild(layout, "wf_action_button", {
|
|
290
|
+
compareField: "id",
|
|
291
|
+
childrenFields: ["panelItems", "rootPanelItems"]
|
|
292
|
+
});
|
|
293
|
+
if (ins) {
|
|
294
|
+
showFooter = true;
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
}
|
|
298
|
+
return showFooter;
|
|
299
|
+
}
|
|
282
300
|
}
|
|
283
301
|
|
|
284
302
|
exports.MobWFDynaEditViewEngine = MobWFDynaEditViewEngine;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ibiz-template/mob-vue3-components",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.18-sz",
|
|
4
4
|
"description": "使用 rollup 编译 vue 组件或者 jsx",
|
|
5
5
|
"main": "lib/index.cjs",
|
|
6
6
|
"module": "es/index.mjs",
|
|
@@ -24,13 +24,13 @@
|
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"@ibiz-template-package/vs-tree-ex": "^0.1.1",
|
|
27
|
-
"@ibiz-template/core": "^0.6.
|
|
28
|
-
"@ibiz-template/model-helper": "^0.6.
|
|
29
|
-
"@ibiz-template/runtime": "^0.6.
|
|
27
|
+
"@ibiz-template/core": "^0.6.3-sz",
|
|
28
|
+
"@ibiz-template/model-helper": "^0.6.3-sz",
|
|
29
|
+
"@ibiz-template/runtime": "^0.6.3-sz",
|
|
30
30
|
"@ibiz-template/theme": "^0.6.0",
|
|
31
|
-
"@ibiz-template/vue3-util": "^0.6.
|
|
32
|
-
"@ibiz/model-core": "^0.1.
|
|
33
|
-
"@ibiz-template/mob-theme": "^0.2.
|
|
31
|
+
"@ibiz-template/vue3-util": "^0.6.3-sz",
|
|
32
|
+
"@ibiz/model-core": "^0.1.14",
|
|
33
|
+
"@ibiz-template/mob-theme": "^0.2.12",
|
|
34
34
|
"async-validator": "^4.2.5",
|
|
35
35
|
"cherry-markdown": "^0.8.26",
|
|
36
36
|
"dayjs": "^1.11.10",
|
|
@@ -62,12 +62,12 @@
|
|
|
62
62
|
"vue-tsc": "^1.8.22"
|
|
63
63
|
},
|
|
64
64
|
"peerDependencies": {
|
|
65
|
-
"@ibiz-template/core": "^0.1.
|
|
66
|
-
"@ibiz-template/model-helper": "^0.1.
|
|
67
|
-
"@ibiz-template/runtime": "^0.1.
|
|
65
|
+
"@ibiz-template/core": "^0.1.3",
|
|
66
|
+
"@ibiz-template/model-helper": "^0.1.3",
|
|
67
|
+
"@ibiz-template/runtime": "^0.1.3",
|
|
68
68
|
"@ibiz-template/theme": "^0.1.0",
|
|
69
|
-
"@ibiz-template/vue3-util": "^0.1.
|
|
70
|
-
"@ibiz/model-core": "^0.0.
|
|
69
|
+
"@ibiz-template/vue3-util": "^0.1.3",
|
|
70
|
+
"@ibiz/model-core": "^0.0.14",
|
|
71
71
|
"async-validator": "^4.2.5",
|
|
72
72
|
"dayjs": "^1.11.9",
|
|
73
73
|
"echarts": "^5.4.3",
|