@ibiz-template/vue3-components 0.6.12 → 0.6.13
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-p726BxsV.js +4 -0
- package/dist/index.min.css +1 -1
- package/dist/index.system.min.js +1 -1
- package/dist/{xlsx-util-u4LQibbt.js → xlsx-util-BqNTIOJa.js} +1 -1
- package/es/control/form/form-detail/form-item/form-item.mjs +1 -1
- package/es/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-grid/repeater-grid.mjs +1 -1
- package/es/view-engine/edit-view.engine.mjs +6 -4
- package/es/view-engine/tab-search-view.engine.d.ts +14 -3
- package/es/view-engine/tab-search-view.engine.mjs +28 -0
- package/lib/control/form/form-detail/form-item/form-item.cjs +1 -1
- package/lib/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-grid/repeater-grid.cjs +1 -1
- package/lib/view-engine/edit-view.engine.cjs +6 -4
- package/lib/view-engine/tab-search-view.engine.cjs +28 -0
- package/package.json +5 -5
- package/dist/index-225rMkM4.js +0 -4
|
@@ -42,7 +42,7 @@ const FormItem = /* @__PURE__ */ defineComponent({
|
|
|
42
42
|
data: this.controller.data,
|
|
43
43
|
controller: this.controller.editor,
|
|
44
44
|
disabled: this.controller.state.disabled,
|
|
45
|
-
readonly: this.controller.
|
|
45
|
+
readonly: this.controller.state.readonly,
|
|
46
46
|
onChange: this.onValueChange,
|
|
47
47
|
controlParams: this.controller.form.controlParams,
|
|
48
48
|
onFocus: (event) => this.c.onFocus(event),
|
package/es/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-grid/repeater-grid.mjs
CHANGED
|
@@ -187,7 +187,7 @@ const RepeaterGrid = /* @__PURE__ */ defineComponent({
|
|
|
187
187
|
data: formItemC.data,
|
|
188
188
|
controller: formItemC.editor,
|
|
189
189
|
disabled: formItemC.state.disabled,
|
|
190
|
-
readonly: formItemC.
|
|
190
|
+
readonly: formItemC.state.readonly,
|
|
191
191
|
onChange: (val, name) => {
|
|
192
192
|
formItemC.setDataValue(val, name);
|
|
193
193
|
}
|
|
@@ -81,10 +81,12 @@ class EditViewEngine extends ViewEngineBase {
|
|
|
81
81
|
var _a;
|
|
82
82
|
const data = event.data[0];
|
|
83
83
|
(_a = this.toolbar) == null ? void 0 : _a.calcButtonState(data, formDeId);
|
|
84
|
-
if (
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
84
|
+
if (model.showDataInfoBar) {
|
|
85
|
+
if (data.srfkey) {
|
|
86
|
+
evt.emit("onViewInfoChange", { dataInfo: data.srfmajortext || "" });
|
|
87
|
+
} else {
|
|
88
|
+
evt.emit("onViewInfoChange", { dataInfo: "\u65B0\u5EFA" });
|
|
89
|
+
}
|
|
88
90
|
}
|
|
89
91
|
};
|
|
90
92
|
this.form.evt.on("onLoadSuccess", (event) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ISearchBarController, ISearchFormController, ITabExpPanelController, ITabSearchViewEvent, ITabSearchViewState, ViewController } from '@ibiz-template/runtime';
|
|
2
|
-
import {
|
|
2
|
+
import { IAppDETabSearchView } from '@ibiz/model-core';
|
|
3
3
|
import { TabExpViewEngine } from './tab-exp-view.engine';
|
|
4
4
|
/**
|
|
5
5
|
* 编辑视图3(分页关系)
|
|
@@ -14,13 +14,13 @@ export declare class TabSearchViewEngine extends TabExpViewEngine {
|
|
|
14
14
|
*
|
|
15
15
|
* @protected
|
|
16
16
|
* @type {ViewController<
|
|
17
|
-
*
|
|
17
|
+
* IAppDETabSearchView,
|
|
18
18
|
* ITabSearchViewState,
|
|
19
19
|
* ITabSearchViewEvent
|
|
20
20
|
* >}
|
|
21
21
|
* @memberof TabSearchViewEngine
|
|
22
22
|
*/
|
|
23
|
-
protected view: ViewController<
|
|
23
|
+
protected view: ViewController<IAppDETabSearchView, ITabSearchViewState, ITabSearchViewEvent>;
|
|
24
24
|
/**
|
|
25
25
|
* 搜索表单控制器
|
|
26
26
|
* @author lxm
|
|
@@ -52,6 +52,17 @@ export declare class TabSearchViewEngine extends TabExpViewEngine {
|
|
|
52
52
|
* @return {*} {IParams}
|
|
53
53
|
*/
|
|
54
54
|
protected getSearchParams(): IParams;
|
|
55
|
+
/**
|
|
56
|
+
* 计算视图头部元素的显示与否
|
|
57
|
+
* 所有部件容器名称均为:view_部件名称
|
|
58
|
+
* - 注意 分页导航和分页搜索的默认布局不一致
|
|
59
|
+
*
|
|
60
|
+
* 分页导航:分页导航栏在视图头中
|
|
61
|
+
*
|
|
62
|
+
* 分页搜索:分页导航栏不在视图头中
|
|
63
|
+
* @protected
|
|
64
|
+
*/
|
|
65
|
+
protected calcViewHeaderVisible(): boolean;
|
|
55
66
|
/**
|
|
56
67
|
* 重新计算视图参数
|
|
57
68
|
* @author lxm
|
|
@@ -91,6 +91,34 @@ class TabSearchViewEngine extends TabExpViewEngine {
|
|
|
91
91
|
}
|
|
92
92
|
return params;
|
|
93
93
|
}
|
|
94
|
+
/**
|
|
95
|
+
* 计算视图头部元素的显示与否
|
|
96
|
+
* 所有部件容器名称均为:view_部件名称
|
|
97
|
+
* - 注意 分页导航和分页搜索的默认布局不一致
|
|
98
|
+
*
|
|
99
|
+
* 分页导航:分页导航栏在视图头中
|
|
100
|
+
*
|
|
101
|
+
* 分页搜索:分页导航栏不在视图头中
|
|
102
|
+
* @protected
|
|
103
|
+
*/
|
|
104
|
+
calcViewHeaderVisible() {
|
|
105
|
+
let showHeader = false;
|
|
106
|
+
const { model } = this.view;
|
|
107
|
+
if (model.showCaptionBar) {
|
|
108
|
+
showHeader = true;
|
|
109
|
+
}
|
|
110
|
+
if (ibiz.env.isMob) {
|
|
111
|
+
if (this.isExistAndInLayout("lefttoolbar")) {
|
|
112
|
+
showHeader = true;
|
|
113
|
+
}
|
|
114
|
+
if (this.isExistAndInLayout("righttoolbar")) {
|
|
115
|
+
showHeader = true;
|
|
116
|
+
}
|
|
117
|
+
} else if (this.isExistAndInLayout("toolbar")) {
|
|
118
|
+
showHeader = true;
|
|
119
|
+
}
|
|
120
|
+
return showHeader;
|
|
121
|
+
}
|
|
94
122
|
/**
|
|
95
123
|
* 重新计算视图参数
|
|
96
124
|
* @author lxm
|
|
@@ -46,7 +46,7 @@ const FormItem = /* @__PURE__ */ vue.defineComponent({
|
|
|
46
46
|
data: this.controller.data,
|
|
47
47
|
controller: this.controller.editor,
|
|
48
48
|
disabled: this.controller.state.disabled,
|
|
49
|
-
readonly: this.controller.
|
|
49
|
+
readonly: this.controller.state.readonly,
|
|
50
50
|
onChange: this.onValueChange,
|
|
51
51
|
controlParams: this.controller.form.controlParams,
|
|
52
52
|
onFocus: (event) => this.c.onFocus(event),
|
|
@@ -189,7 +189,7 @@ const RepeaterGrid = /* @__PURE__ */ vue.defineComponent({
|
|
|
189
189
|
data: formItemC.data,
|
|
190
190
|
controller: formItemC.editor,
|
|
191
191
|
disabled: formItemC.state.disabled,
|
|
192
|
-
readonly: formItemC.
|
|
192
|
+
readonly: formItemC.state.readonly,
|
|
193
193
|
onChange: (val, name) => {
|
|
194
194
|
formItemC.setDataValue(val, name);
|
|
195
195
|
}
|
|
@@ -83,10 +83,12 @@ class EditViewEngine extends runtime.ViewEngineBase {
|
|
|
83
83
|
var _a;
|
|
84
84
|
const data = event.data[0];
|
|
85
85
|
(_a = this.toolbar) == null ? void 0 : _a.calcButtonState(data, formDeId);
|
|
86
|
-
if (
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
86
|
+
if (model.showDataInfoBar) {
|
|
87
|
+
if (data.srfkey) {
|
|
88
|
+
evt.emit("onViewInfoChange", { dataInfo: data.srfmajortext || "" });
|
|
89
|
+
} else {
|
|
90
|
+
evt.emit("onViewInfoChange", { dataInfo: "\u65B0\u5EFA" });
|
|
91
|
+
}
|
|
90
92
|
}
|
|
91
93
|
};
|
|
92
94
|
this.form.evt.on("onLoadSuccess", (event) => {
|
|
@@ -93,6 +93,34 @@ class TabSearchViewEngine extends tabExpView_engine.TabExpViewEngine {
|
|
|
93
93
|
}
|
|
94
94
|
return params;
|
|
95
95
|
}
|
|
96
|
+
/**
|
|
97
|
+
* 计算视图头部元素的显示与否
|
|
98
|
+
* 所有部件容器名称均为:view_部件名称
|
|
99
|
+
* - 注意 分页导航和分页搜索的默认布局不一致
|
|
100
|
+
*
|
|
101
|
+
* 分页导航:分页导航栏在视图头中
|
|
102
|
+
*
|
|
103
|
+
* 分页搜索:分页导航栏不在视图头中
|
|
104
|
+
* @protected
|
|
105
|
+
*/
|
|
106
|
+
calcViewHeaderVisible() {
|
|
107
|
+
let showHeader = false;
|
|
108
|
+
const { model } = this.view;
|
|
109
|
+
if (model.showCaptionBar) {
|
|
110
|
+
showHeader = true;
|
|
111
|
+
}
|
|
112
|
+
if (ibiz.env.isMob) {
|
|
113
|
+
if (this.isExistAndInLayout("lefttoolbar")) {
|
|
114
|
+
showHeader = true;
|
|
115
|
+
}
|
|
116
|
+
if (this.isExistAndInLayout("righttoolbar")) {
|
|
117
|
+
showHeader = true;
|
|
118
|
+
}
|
|
119
|
+
} else if (this.isExistAndInLayout("toolbar")) {
|
|
120
|
+
showHeader = true;
|
|
121
|
+
}
|
|
122
|
+
return showHeader;
|
|
123
|
+
}
|
|
96
124
|
/**
|
|
97
125
|
* 重新计算视图参数
|
|
98
126
|
* @author lxm
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ibiz-template/vue3-components",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.13",
|
|
4
4
|
"description": "使用 rollup 编译 vue 组件或者 jsx",
|
|
5
5
|
"main": "lib/index.cjs",
|
|
6
6
|
"module": "es/index.mjs",
|
|
@@ -32,11 +32,11 @@
|
|
|
32
32
|
"@ibiz-template-plugin/gantt": "0.1.3-alpha.46",
|
|
33
33
|
"@ibiz-template/core": "0.6.13",
|
|
34
34
|
"@ibiz-template/devtool": "0.0.1-dev.6",
|
|
35
|
-
"@ibiz-template/model-helper": "0.6.
|
|
36
|
-
"@ibiz-template/runtime": "0.6.
|
|
35
|
+
"@ibiz-template/model-helper": "0.6.14",
|
|
36
|
+
"@ibiz-template/runtime": "0.6.14",
|
|
37
37
|
"@ibiz-template/theme": "^0.6.0",
|
|
38
|
-
"@ibiz-template/vue3-util": "0.6.
|
|
39
|
-
"@ibiz-template/web-theme": "^1.1.
|
|
38
|
+
"@ibiz-template/vue3-util": "0.6.14",
|
|
39
|
+
"@ibiz-template/web-theme": "^1.1.13",
|
|
40
40
|
"@ibiz/model-core": "^0.1.18",
|
|
41
41
|
"@imengyu/vue3-context-menu": "^1.3.5",
|
|
42
42
|
"@monaco-editor/loader": "^1.4.0",
|