@ibiz-template/vue3-components 0.7.3 → 0.7.5
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-QdhEqiEH.js +4 -0
- package/dist/index.min.css +1 -1
- package/dist/index.system.min.js +1 -1
- package/dist/{xlsx-util-bB9hH3iO.js → xlsx-util-iqcGVBHE.js} +1 -1
- package/es/common/rawitem/rawitem.mjs +5 -3
- package/es/common/view-message/view-message.d.ts +1 -0
- package/es/common/view-message/view-message.mjs +5 -1
- package/es/control/app-menu/app-menu.mjs +5 -3
- package/es/control/drbar/drbar.mjs +9 -4
- package/es/control/drtab/drtab.controller.mjs +3 -0
- package/es/control/drtab/drtab.mjs +17 -5
- package/es/control/form/form-detail/form-tab-panel/form-tab-panel.mjs +5 -4
- package/es/control/grid/grid/grid-control.util.d.ts +3 -0
- package/es/control/grid/grid/grid-control.util.mjs +97 -1
- package/es/control/grid/grid/grid.mjs +8 -1
- package/es/control/grid/grid/index.mjs +1 -1
- package/es/control/grid/grid-column/grid-field-column/grid-field-column.d.ts +2 -0
- package/es/control/grid/grid-column/grid-field-column/grid-field-column.mjs +18 -5
- package/es/control/grid/grid-column/grid-field-column/index.d.ts +2 -0
- package/es/control/grid/index.mjs +1 -1
- package/es/control/index.mjs +1 -1
- package/es/control/tree/tree.mjs +9 -4
- package/es/editor/autocomplete/ibiz-autocomplete/ibiz-autocomplete.mjs +1 -1
- package/es/editor/check-box-list/ibiz-checkbox-list/ibiz-checkbox-list.mjs +7 -1
- package/es/editor/code/monaco-editor/monaco-editor.mjs +13 -1
- package/es/editor/data-picker/ibiz-picker/ibiz-picker.mjs +1 -1
- package/es/editor/dropdown-list/ibiz-dropdown/ibiz-dropdown.mjs +7 -1
- package/es/editor/list-box/ibiz-list-box/ibiz-list-box.mjs +7 -1
- package/es/editor/radio-button-list/ibiz-radio/ibiz-radio.mjs +7 -1
- package/es/editor/span/span/span.mjs +7 -1
- package/es/index.mjs +1 -1
- package/es/panel-component/nav-pos-index/nav-pos-index.controller.d.ts +27 -0
- package/es/panel-component/nav-pos-index/nav-pos-index.controller.mjs +43 -0
- package/es/panel-component/nav-pos-index/nav-pos-index.mjs +3 -0
- package/es/panel-component/user-action/user-action.mjs +6 -0
- package/es/web-app/router/index.mjs +44 -2
- package/lib/common/rawitem/rawitem.cjs +5 -3
- package/lib/common/view-message/view-message.cjs +5 -1
- package/lib/control/app-menu/app-menu.cjs +5 -3
- package/lib/control/drbar/drbar.cjs +8 -3
- package/lib/control/drtab/drtab.cjs +16 -4
- package/lib/control/drtab/drtab.controller.cjs +3 -0
- package/lib/control/form/form-detail/form-tab-panel/form-tab-panel.cjs +5 -4
- package/lib/control/grid/grid/grid-control.util.cjs +97 -0
- package/lib/control/grid/grid/grid.cjs +7 -0
- package/lib/control/grid/grid/index.cjs +1 -0
- package/lib/control/grid/grid-column/grid-field-column/grid-field-column.cjs +16 -3
- package/lib/control/grid/index.cjs +1 -0
- package/lib/control/index.cjs +1 -0
- package/lib/control/tree/tree.cjs +8 -3
- package/lib/editor/autocomplete/ibiz-autocomplete/ibiz-autocomplete.cjs +1 -1
- package/lib/editor/check-box-list/ibiz-checkbox-list/ibiz-checkbox-list.cjs +6 -0
- package/lib/editor/code/monaco-editor/monaco-editor.cjs +13 -1
- package/lib/editor/data-picker/ibiz-picker/ibiz-picker.cjs +1 -1
- package/lib/editor/dropdown-list/ibiz-dropdown/ibiz-dropdown.cjs +6 -0
- package/lib/editor/list-box/ibiz-list-box/ibiz-list-box.cjs +6 -0
- package/lib/editor/radio-button-list/ibiz-radio/ibiz-radio.cjs +6 -0
- package/lib/editor/span/span/span.cjs +6 -0
- package/lib/index.cjs +1 -0
- package/lib/panel-component/nav-pos-index/nav-pos-index.cjs +3 -0
- package/lib/panel-component/nav-pos-index/nav-pos-index.controller.cjs +43 -0
- package/lib/panel-component/user-action/user-action.cjs +6 -0
- package/lib/web-app/router/index.cjs +44 -2
- package/package.json +6 -6
- package/dist/index-GhyQOvbY.js +0 -4
|
@@ -35,6 +35,15 @@ const IBizCode = /* @__PURE__ */ vue.defineComponent({
|
|
|
35
35
|
}, {
|
|
36
36
|
immediate: true
|
|
37
37
|
});
|
|
38
|
+
vue.watch(() => props.readonly, (newVal) => {
|
|
39
|
+
if (editor) {
|
|
40
|
+
editor.updateOptions({
|
|
41
|
+
readOnly: newVal
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
}, {
|
|
45
|
+
immediate: true
|
|
46
|
+
});
|
|
38
47
|
const codeEditBox = vue.ref();
|
|
39
48
|
const editorInit = () => {
|
|
40
49
|
vue.nextTick(() => {
|
|
@@ -58,8 +67,11 @@ const IBizCode = /* @__PURE__ */ vue.defineComponent({
|
|
|
58
67
|
minimap: {
|
|
59
68
|
enabled: true
|
|
60
69
|
},
|
|
61
|
-
readOnly:
|
|
70
|
+
readOnly: props.readonly,
|
|
62
71
|
// 只读
|
|
72
|
+
readOnlyMessage: {
|
|
73
|
+
value: "\u5F53\u524D\u4E3A\u53EA\u8BFB\u6A21\u5F0F\uFF0C\u4E0D\u53EF\u7F16\u8F91"
|
|
74
|
+
},
|
|
63
75
|
fontSize: 16,
|
|
64
76
|
// 字体大小
|
|
65
77
|
scrollBeyondLastLine: false,
|
|
@@ -261,7 +261,7 @@ const IBizPicker = /* @__PURE__ */ vue.defineComponent({
|
|
|
261
261
|
"value-key": this.c.textName,
|
|
262
262
|
"placeholder": this.c.placeHolder,
|
|
263
263
|
"clearable": true,
|
|
264
|
-
"popper-class":
|
|
264
|
+
"popper-class": this.ns.e("transfer"),
|
|
265
265
|
"fetch-suggestions": this.onSearch,
|
|
266
266
|
"onClear": this.onClear,
|
|
267
267
|
"onBlur": this.onBlur,
|
|
@@ -199,6 +199,12 @@ const IBizDropdown = /* @__PURE__ */ vue.defineComponent({
|
|
|
199
199
|
}
|
|
200
200
|
}
|
|
201
201
|
};
|
|
202
|
+
const fn = (data) => {
|
|
203
|
+
if (data) {
|
|
204
|
+
items.value = data;
|
|
205
|
+
}
|
|
206
|
+
};
|
|
207
|
+
vue3Util.useCodeListListen(c.model.appCodeListId, c.context.srfappid, fn);
|
|
202
208
|
vue.onMounted(() => {
|
|
203
209
|
if (editorRef.value) {
|
|
204
210
|
funcs = vue3Util.useClickOutside(editorRef, async (_evt) => {
|
|
@@ -54,6 +54,12 @@ const IBizListBox = /* @__PURE__ */ vue.defineComponent({
|
|
|
54
54
|
}
|
|
55
55
|
};
|
|
56
56
|
loadListBoxItems();
|
|
57
|
+
const fn = (data) => {
|
|
58
|
+
if (data) {
|
|
59
|
+
items.value = data;
|
|
60
|
+
}
|
|
61
|
+
};
|
|
62
|
+
vue3Util.useCodeListListen(c.model.appCodeListId, c.context.srfappid, fn);
|
|
57
63
|
const currentMode = vue.computed(() => {
|
|
58
64
|
if (codeList && codeList.orMode) {
|
|
59
65
|
return codeList.orMode.toLowerCase();
|
|
@@ -41,6 +41,12 @@ const IBizRadio = /* @__PURE__ */ vue.defineComponent({
|
|
|
41
41
|
immediate: true,
|
|
42
42
|
deep: true
|
|
43
43
|
});
|
|
44
|
+
const fn = (data) => {
|
|
45
|
+
if (data) {
|
|
46
|
+
items.value = data;
|
|
47
|
+
}
|
|
48
|
+
};
|
|
49
|
+
vue3Util.useCodeListListen(c.model.appCodeListId, c.context.srfappid, fn);
|
|
44
50
|
const valueText = vue.computed(() => {
|
|
45
51
|
var _a;
|
|
46
52
|
return ((_a = items.value.find((item) => item.value == props.value)) == null ? void 0 : _a.text) || "";
|
|
@@ -97,6 +97,12 @@ const IBizSpan = /* @__PURE__ */ vue.defineComponent({
|
|
|
97
97
|
deep: true
|
|
98
98
|
});
|
|
99
99
|
}
|
|
100
|
+
const fn = (data) => {
|
|
101
|
+
if (data) {
|
|
102
|
+
items.value = data;
|
|
103
|
+
}
|
|
104
|
+
};
|
|
105
|
+
vue3Util.useCodeListListen(c.model.appCodeListId, c.context.srfappid, fn);
|
|
100
106
|
const {
|
|
101
107
|
componentRef: editorRef
|
|
102
108
|
} = vue3Util.useFocusAndBlur(() => emit("focus"), () => emit("blur"));
|
package/lib/index.cjs
CHANGED
|
@@ -144,6 +144,7 @@ exports.IBizAppMenuControl = index$2.IBizAppMenuControl;
|
|
|
144
144
|
exports.IBizAppMenuIconViewControl = index$3.IBizAppMenuIconViewControl;
|
|
145
145
|
exports.useAppGridBase = gridControl_util.useAppGridBase;
|
|
146
146
|
exports.useAppGridPagination = gridControl_util.useAppGridPagination;
|
|
147
|
+
exports.useGridDraggable = gridControl_util.useGridDraggable;
|
|
147
148
|
exports.useGridHeaderStyle = gridControl_util.useGridHeaderStyle;
|
|
148
149
|
exports.useITableEvent = gridControl_util.useITableEvent;
|
|
149
150
|
exports.IBizGridControl = index$4.IBizGridControl;
|
|
@@ -71,6 +71,9 @@ const NavPosIndex = /* @__PURE__ */ vue.defineComponent({
|
|
|
71
71
|
default: ({
|
|
72
72
|
Component
|
|
73
73
|
}) => {
|
|
74
|
+
if (this.c.noCache) {
|
|
75
|
+
return Component ? vue.createVNode(Component, null, null) : null;
|
|
76
|
+
}
|
|
74
77
|
return vue.createVNode(vue.resolveComponent("keepAlive"), {
|
|
75
78
|
"include": cacheKeys,
|
|
76
79
|
"max": 30,
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
var runtime = require('@ibiz-template/runtime');
|
|
4
4
|
var vue3Util = require('@ibiz-template/vue3-util');
|
|
5
|
+
var qxUtil = require('qx-util');
|
|
5
6
|
var navPosIndex_state = require('./nav-pos-index.state.cjs');
|
|
6
7
|
|
|
7
8
|
"use strict";
|
|
@@ -35,6 +36,23 @@ class NavPosIndexController extends runtime.PanelItemController {
|
|
|
35
36
|
* @type {boolean}
|
|
36
37
|
*/
|
|
37
38
|
__publicField(this, "autoGoLast", true);
|
|
39
|
+
/**
|
|
40
|
+
* 无缓存
|
|
41
|
+
* @author lxm
|
|
42
|
+
* @date 2024-04-22 04:12:41
|
|
43
|
+
* @readonly
|
|
44
|
+
* @type {boolean}
|
|
45
|
+
*/
|
|
46
|
+
__publicField(this, "noCache", false);
|
|
47
|
+
/**
|
|
48
|
+
* 自定义补充参数
|
|
49
|
+
*
|
|
50
|
+
* @author zk
|
|
51
|
+
* @date 2023-09-27 03:09:02
|
|
52
|
+
* @type {IData}
|
|
53
|
+
* @memberof NavPosController
|
|
54
|
+
*/
|
|
55
|
+
__publicField(this, "rawItemParams", {});
|
|
38
56
|
}
|
|
39
57
|
createState() {
|
|
40
58
|
var _a;
|
|
@@ -72,6 +90,11 @@ class NavPosIndexController extends runtime.PanelItemController {
|
|
|
72
90
|
get appmenu() {
|
|
73
91
|
return this.panel.getController("appmenu");
|
|
74
92
|
}
|
|
93
|
+
async onInit() {
|
|
94
|
+
await super.onInit();
|
|
95
|
+
this.handleRawItemParams();
|
|
96
|
+
this.noCache = this.rawItemParams.expcache === "NO_CACHE";
|
|
97
|
+
}
|
|
75
98
|
/**
|
|
76
99
|
* 改变显示视图
|
|
77
100
|
* @author lxm
|
|
@@ -250,6 +273,26 @@ class NavPosIndexController extends runtime.PanelItemController {
|
|
|
250
273
|
ibiz.util.setBrowserTitle("");
|
|
251
274
|
}
|
|
252
275
|
}
|
|
276
|
+
/**
|
|
277
|
+
* 处理自定义补充参数 [{key:'name',value:'data'}] => {name:'data'}
|
|
278
|
+
*
|
|
279
|
+
* @author zk
|
|
280
|
+
* @date 2023-09-27 03:09:55
|
|
281
|
+
* @protected
|
|
282
|
+
* @memberof NavPosController
|
|
283
|
+
*/
|
|
284
|
+
handleRawItemParams() {
|
|
285
|
+
var _a;
|
|
286
|
+
let params = {};
|
|
287
|
+
const rawItemParams = (_a = this.model.rawItem) == null ? void 0 : _a.rawItemParams;
|
|
288
|
+
if (qxUtil.notNilEmpty(rawItemParams)) {
|
|
289
|
+
params = rawItemParams.reduce((param, item) => {
|
|
290
|
+
param[item.key.toLowerCase()] = item.value;
|
|
291
|
+
return param;
|
|
292
|
+
}, {});
|
|
293
|
+
}
|
|
294
|
+
Object.assign(this.rawItemParams, params);
|
|
295
|
+
}
|
|
253
296
|
}
|
|
254
297
|
|
|
255
298
|
exports.NavPosIndexController = NavPosIndexController;
|
|
@@ -47,6 +47,12 @@ const UserAction = /* @__PURE__ */ vue.defineComponent({
|
|
|
47
47
|
return item.id === id;
|
|
48
48
|
});
|
|
49
49
|
if (targetMenu) {
|
|
50
|
+
if (targetMenu.accessKey) {
|
|
51
|
+
const app = await ibiz.hub.getApp(c.panel.context.srfappid);
|
|
52
|
+
const permitted = app.authority.calcByResCode(targetMenu.accessKey);
|
|
53
|
+
if (!permitted)
|
|
54
|
+
return;
|
|
55
|
+
}
|
|
50
56
|
const tempContext = c.panel.context.clone();
|
|
51
57
|
const tempParam = c.panel.params;
|
|
52
58
|
tempContext.srfappid = targetMenu.appId || ibiz.env.appId;
|
|
@@ -148,7 +148,49 @@ class AppRouter {
|
|
|
148
148
|
},
|
|
149
149
|
{
|
|
150
150
|
path: ":view6(".concat(viewReg, ")/:params6(").concat(paramReg, ")"),
|
|
151
|
-
component: routerShell.RouterShell
|
|
151
|
+
component: routerShell.RouterShell,
|
|
152
|
+
children: [
|
|
153
|
+
{
|
|
154
|
+
path: "error/:code",
|
|
155
|
+
name: "errorView7",
|
|
156
|
+
component: errorView.ErrorView
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
path: "".concat(runtime.RouteConst.ROUTE_MODAL_TAG, "/:modalView(").concat(viewReg, ")/:modalParams(").concat(paramReg, ")"),
|
|
160
|
+
components: {
|
|
161
|
+
[runtime.RouteConst.ROUTE_MODAL_TAG]: modalRouterShell.ModalRouterShell
|
|
162
|
+
}
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
path: ":view7(".concat(viewReg, ")/:params7(").concat(paramReg, ")"),
|
|
166
|
+
component: routerShell.RouterShell,
|
|
167
|
+
children: [
|
|
168
|
+
{
|
|
169
|
+
path: "error/:code",
|
|
170
|
+
name: "errorView8",
|
|
171
|
+
component: errorView.ErrorView
|
|
172
|
+
},
|
|
173
|
+
{
|
|
174
|
+
path: "".concat(runtime.RouteConst.ROUTE_MODAL_TAG, "/:modalView(").concat(viewReg, ")/:modalParams(").concat(paramReg, ")"),
|
|
175
|
+
components: {
|
|
176
|
+
[runtime.RouteConst.ROUTE_MODAL_TAG]: modalRouterShell.ModalRouterShell
|
|
177
|
+
}
|
|
178
|
+
},
|
|
179
|
+
{
|
|
180
|
+
path: ":view8(".concat(viewReg, ")/:params8(").concat(paramReg, ")"),
|
|
181
|
+
component: routerShell.RouterShell
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
path: ":pathMatch(.*)*",
|
|
185
|
+
redirect: { name: "errorView8" }
|
|
186
|
+
}
|
|
187
|
+
]
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
path: ":pathMatch(.*)*",
|
|
191
|
+
redirect: { name: "errorView7" }
|
|
192
|
+
}
|
|
193
|
+
]
|
|
152
194
|
},
|
|
153
195
|
{
|
|
154
196
|
path: ":pathMatch(.*)*",
|
|
@@ -158,7 +200,7 @@ class AppRouter {
|
|
|
158
200
|
},
|
|
159
201
|
{
|
|
160
202
|
path: ":pathMatch(.*)*",
|
|
161
|
-
redirect: { name: "
|
|
203
|
+
redirect: { name: "errorView5" }
|
|
162
204
|
}
|
|
163
205
|
]
|
|
164
206
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ibiz-template/vue3-components",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.5",
|
|
4
4
|
"description": "使用 rollup 编译 vue 组件或者 jsx",
|
|
5
5
|
"main": "lib/index.cjs",
|
|
6
6
|
"module": "es/index.mjs",
|
|
@@ -32,12 +32,12 @@
|
|
|
32
32
|
"@ibiz-template-plugin/gantt": "0.1.3-alpha.46",
|
|
33
33
|
"@ibiz-template/core": "0.7.3",
|
|
34
34
|
"@ibiz-template/devtool": "0.0.1-dev.6",
|
|
35
|
-
"@ibiz-template/model-helper": "0.7.
|
|
36
|
-
"@ibiz-template/runtime": "0.7.
|
|
35
|
+
"@ibiz-template/model-helper": "0.7.5",
|
|
36
|
+
"@ibiz-template/runtime": "0.7.5",
|
|
37
37
|
"@ibiz-template/theme": "^0.7.0",
|
|
38
|
-
"@ibiz-template/vue3-util": "0.7.
|
|
38
|
+
"@ibiz-template/vue3-util": "0.7.5",
|
|
39
39
|
"@ibiz-template/web-theme": "^1.1.16",
|
|
40
|
-
"@ibiz/model-core": "^0.1.
|
|
40
|
+
"@ibiz/model-core": "^0.1.21",
|
|
41
41
|
"@imengyu/vue3-context-menu": "^1.3.5",
|
|
42
42
|
"@monaco-editor/loader": "^1.4.0",
|
|
43
43
|
"@wangeditor/editor": "^5.1.23",
|
|
@@ -100,7 +100,7 @@
|
|
|
100
100
|
"@ibiz-template/runtime": "^0.7.0",
|
|
101
101
|
"@ibiz-template/theme": "^0.7.0",
|
|
102
102
|
"@ibiz-template/vue3-util": "^0.7.0",
|
|
103
|
-
"@ibiz/model-core": "^0.1.
|
|
103
|
+
"@ibiz/model-core": "^0.1.21",
|
|
104
104
|
"@imengyu/vue3-context-menu": "^1.3.3",
|
|
105
105
|
"@monaco-editor/loader": "^1.3.3",
|
|
106
106
|
"@wangeditor/editor": "^5.1.23",
|