@ibiz-template/vue3-components 0.7.19-alpha.1 → 0.7.20
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-HMMPTfoQ.js +4 -0
- package/dist/index.min.css +1 -1
- package/dist/index.system.min.js +1 -1
- package/dist/{xlsx-util-BWays6va.js → xlsx-util-9XgWtfaB.js} +1 -1
- package/es/common/no-data/no-data.css +1 -1
- package/es/common/no-data/no-data.d.ts +9 -0
- package/es/common/no-data/no-data.mjs +5 -1
- package/es/common/view-message/view-message.css +1 -1
- package/es/control/drbar/drbar.controller.mjs +3 -2
- package/es/control/drbar/drbar.mjs +3 -2
- package/es/control/drtab/drtab.controller.mjs +9 -2
- package/es/control/drtab/drtab.mjs +2 -1
- package/es/control/form/form-detail/form-tab-panel/form-tab-panel.mjs +3 -2
- package/es/control/gantt/gantt.mjs +3 -3
- package/es/control/grid/grid/grid.mjs +3 -7
- package/es/control/tree/tree.mjs +8 -1
- package/es/locale/en/index.d.ts +7 -5
- package/es/locale/zh-CN/index.d.ts +7 -5
- package/es/view-engine/mpickup-view-engine.mjs +4 -0
- package/lib/common/no-data/no-data.cjs +5 -1
- package/lib/common/no-data/no-data.css +1 -1
- package/lib/common/view-message/view-message.css +1 -1
- package/lib/control/drbar/drbar.cjs +3 -2
- package/lib/control/drbar/drbar.controller.cjs +3 -2
- package/lib/control/drtab/drtab.cjs +2 -1
- package/lib/control/drtab/drtab.controller.cjs +9 -2
- package/lib/control/form/form-detail/form-tab-panel/form-tab-panel.cjs +3 -2
- package/lib/control/gantt/gantt.cjs +3 -3
- package/lib/control/grid/grid/grid.cjs +2 -6
- package/lib/control/tree/tree.cjs +8 -1
- package/lib/view-engine/mpickup-view-engine.cjs +4 -0
- package/package.json +7 -7
- package/dist/index-xEEb4o9R.js +0 -4
|
@@ -1 +1 @@
|
|
|
1
|
-
.ibiz-no-data{width:100%;height:100%}.ibiz-no-data .el-empty__description p{color:var(--ibiz-color-text-3)}.ibiz-no-data .el-empty__image{width:100%;max-width:var(--el-empty-image-width)}
|
|
1
|
+
.ibiz-no-data{width:100%;height:100%}.ibiz-no-data .el-empty__description p{color:var(--ibiz-color-text-3)}.ibiz-no-data .el-empty__image{width:100%;max-width:var(--el-empty-image-width)}.ibiz-no-data.hideImage{padding:0}.ibiz-no-data.hideImage .el-table__empty-text{line-height:30px}.ibiz-no-data.hideImage .el-empty__image{display:none}
|
|
@@ -10,6 +10,10 @@ export declare const IBizNoData: import("vue").DefineComponent<{
|
|
|
10
10
|
type: PropType<ILanguageRes>;
|
|
11
11
|
default: undefined;
|
|
12
12
|
};
|
|
13
|
+
enableShowImage: {
|
|
14
|
+
type: BooleanConstructor;
|
|
15
|
+
default: boolean;
|
|
16
|
+
};
|
|
13
17
|
}, {
|
|
14
18
|
ns: import("@ibiz-template/core").Namespace;
|
|
15
19
|
label: import("vue").Ref<string>;
|
|
@@ -22,7 +26,12 @@ export declare const IBizNoData: import("vue").DefineComponent<{
|
|
|
22
26
|
type: PropType<ILanguageRes>;
|
|
23
27
|
default: undefined;
|
|
24
28
|
};
|
|
29
|
+
enableShowImage: {
|
|
30
|
+
type: BooleanConstructor;
|
|
31
|
+
default: boolean;
|
|
32
|
+
};
|
|
25
33
|
}>>, {
|
|
26
34
|
text: string;
|
|
27
35
|
emptyTextLanguageRes: ILanguageRes;
|
|
36
|
+
enableShowImage: boolean;
|
|
28
37
|
}, {}>;
|
|
@@ -13,6 +13,10 @@ const IBizNoData = /* @__PURE__ */ defineComponent({
|
|
|
13
13
|
emptyTextLanguageRes: {
|
|
14
14
|
type: Object,
|
|
15
15
|
default: void 0
|
|
16
|
+
},
|
|
17
|
+
enableShowImage: {
|
|
18
|
+
type: Boolean,
|
|
19
|
+
default: false
|
|
16
20
|
}
|
|
17
21
|
},
|
|
18
22
|
setup(props) {
|
|
@@ -28,7 +32,7 @@ const IBizNoData = /* @__PURE__ */ defineComponent({
|
|
|
28
32
|
},
|
|
29
33
|
render() {
|
|
30
34
|
return createVNode(resolveComponent("el-empty"), {
|
|
31
|
-
"class": this.ns.b(),
|
|
35
|
+
"class": [this.ns.b(), this.enableShowImage ? "hideImage" : ""],
|
|
32
36
|
"description": this.label
|
|
33
37
|
}, {
|
|
34
38
|
default: () => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.ibiz-view-message{--ibiz-view-message-border--warning:1px solid var(--ibiz-color-warning-active);--ibiz-view-message-border--error:1px solid var(--ibiz-color-danger-active);--ibiz-view-message-border--info:1px solid var(--ibiz-color-info-active);--ibiz-view-message-carousel-alert-height:64px;padding:var(--ibiz-spacing-tight) var(--ibiz-spacing-
|
|
1
|
+
.ibiz-view-message{--ibiz-view-message-border--warning:1px solid var(--ibiz-color-warning-active);--ibiz-view-message-border--error:1px solid var(--ibiz-color-danger-active);--ibiz-view-message-border--info:1px solid var(--ibiz-color-info-active);--ibiz-view-message-carousel-alert-height:64px;padding:var(--ibiz-spacing-tight) var(--ibiz-spacing-base)}.ibiz-view-message--hidden{display:none}.ibiz-view-message--alert .el-message-box__status.el-icon{display:none}.ibiz-view-message--alert .el-message-box__status+.el-message-box__message{padding-left:var(--ibiz-spacing-none)}.ibiz-view-message .el-alert--warning.is-light{border:var(--ibiz-view-message-border--warning)}.ibiz-view-message .el-alert--error.is-light{border:var(--ibiz-view-message-border--error)}.ibiz-view-message .el-alert--info.is-light{border:var(--ibiz-view-message-border--info)}.ibiz-view-message-alert{margin-bottom:var(--ibiz-spacing-tight)}.ibiz-view-message-alert:last-child{margin-bottom:var(--ibiz-spacing-none)}.ibiz-view-message-alert--single .el-alert__description{margin:0}.ibiz-view-message-alert--single-message .el-alert__close-btn{top:calc(var(--ibiz-spacing-tight) + var(--ibiz-spacing-super-tight))}.ibiz-view-message-alert__title{line-height:calc(var(--ibiz-spacing-base-loose) - var(--ibiz-spacing-super-tight))}.ibiz-view-message-alert__message{line-height:var(--ibiz-spacing-base)}.ibiz-view-message-carousel-alert{height:var(--ibiz-view-message-carousel-alert-height)}.ibiz-view-message-carousel-alert .el-alert__content{overflow:hidden}.ibiz-view-message-carousel-alert--single .el-alert__description{margin:0}.ibiz-view-message-carousel-alert__title{overflow:hidden;line-height:calc(var(--ibiz-spacing-base-loose) - var(--ibiz-spacing-super-tight));text-overflow:ellipsis;white-space:nowrap}.ibiz-view-message-carousel-alert__message{overflow:hidden;line-height:var(--ibiz-spacing-base);text-overflow:ellipsis;white-space:nowrap}
|
|
@@ -331,7 +331,7 @@ class DRBarController extends ControlController {
|
|
|
331
331
|
if (item.capLanguageRes) {
|
|
332
332
|
itemCaption = ibiz.i18n.t(item.capLanguageRes.lanResTag, item.caption);
|
|
333
333
|
}
|
|
334
|
-
const { enableMode, testAppDELogicId, testScriptCode } = item;
|
|
334
|
+
const { enableMode, testAppDELogicId, testScriptCode, counterMode } = item;
|
|
335
335
|
return {
|
|
336
336
|
tag: item.id,
|
|
337
337
|
caption: itemCaption,
|
|
@@ -343,7 +343,8 @@ class DRBarController extends ControlController {
|
|
|
343
343
|
dataAccessAction: item.dataAccessAction || void 0,
|
|
344
344
|
enableMode,
|
|
345
345
|
testAppDELogicId,
|
|
346
|
-
testScriptCode
|
|
346
|
+
testScriptCode,
|
|
347
|
+
counterMode
|
|
347
348
|
};
|
|
348
349
|
};
|
|
349
350
|
if (dedrbarGroups && dedrctrlItems) {
|
|
@@ -129,9 +129,10 @@ const DRBarControl = /* @__PURE__ */ defineComponent({
|
|
|
129
129
|
default: () => [createVNode(resolveComponent("iBizIcon"), {
|
|
130
130
|
"class": ns.e("icon"),
|
|
131
131
|
"icon": item.sysImage
|
|
132
|
-
}, null), createVNode("span", null, [item.caption]), item.counterId && counterData[item.counterId] && createVNode(resolveComponent("iBizBadge"), {
|
|
132
|
+
}, null), createVNode("span", null, [item.caption]), item.counterId && counterData[item.counterId] != null && createVNode(resolveComponent("iBizBadge"), {
|
|
133
133
|
"class": ns.e("counter"),
|
|
134
|
-
"value": counterData[item.counterId]
|
|
134
|
+
"value": counterData[item.counterId],
|
|
135
|
+
"counterMode": item.counterMode
|
|
135
136
|
}, null)]
|
|
136
137
|
});
|
|
137
138
|
};
|
|
@@ -276,7 +276,13 @@ class DRTabController extends ControlController {
|
|
|
276
276
|
if (item.capLanguageRes) {
|
|
277
277
|
itemCaption = ibiz.i18n.t(item.capLanguageRes.lanResTag, item.caption);
|
|
278
278
|
}
|
|
279
|
-
const {
|
|
279
|
+
const {
|
|
280
|
+
enableMode,
|
|
281
|
+
dataAccessAction,
|
|
282
|
+
testAppDELogicId,
|
|
283
|
+
testScriptCode,
|
|
284
|
+
counterMode
|
|
285
|
+
} = item;
|
|
280
286
|
drTabPages.push({
|
|
281
287
|
tag: item.id,
|
|
282
288
|
caption: itemCaption,
|
|
@@ -287,7 +293,8 @@ class DRTabController extends ControlController {
|
|
|
287
293
|
dataAccessAction,
|
|
288
294
|
enableMode,
|
|
289
295
|
testAppDELogicId,
|
|
290
|
-
testScriptCode
|
|
296
|
+
testScriptCode,
|
|
297
|
+
counterMode
|
|
291
298
|
});
|
|
292
299
|
});
|
|
293
300
|
this.state.drTabPages = drTabPages;
|
|
@@ -121,7 +121,8 @@ const DRTabControl = /* @__PURE__ */ defineComponent({
|
|
|
121
121
|
"class": this.ns.be("label", "text")
|
|
122
122
|
}, [tab.caption]), !isNil(counterNum) && createVNode(resolveComponent("iBizBadge"), {
|
|
123
123
|
"class": this.ns.e("counter"),
|
|
124
|
-
"value": counterNum
|
|
124
|
+
"value": counterNum,
|
|
125
|
+
"counterMode": tab.counterMode
|
|
125
126
|
}, null)]);
|
|
126
127
|
}
|
|
127
128
|
});
|
|
@@ -97,10 +97,11 @@ const FormTabPanel = /* @__PURE__ */ defineComponent({
|
|
|
97
97
|
default: () => slot,
|
|
98
98
|
label: () => {
|
|
99
99
|
let _slot;
|
|
100
|
+
const value = c.model.counterId ? this.counterData.value[c.model.counterId] : void 0;
|
|
100
101
|
return c.model.counterId ? createVNode(resolveComponent("el-badge"), {
|
|
101
102
|
"class": this.ns.e("badge"),
|
|
102
|
-
"value":
|
|
103
|
-
"hidden": !
|
|
103
|
+
"value": value,
|
|
104
|
+
"hidden": !value && value !== 0 || c.model.counterMode === 1 && value <= 0
|
|
104
105
|
}, _isSlot(_slot = renderItemText(c)) ? _slot : {
|
|
105
106
|
default: () => [_slot]
|
|
106
107
|
}) : renderItemText(c);
|
|
@@ -363,9 +363,9 @@ const GanttControl = /* @__PURE__ */ defineComponent({
|
|
|
363
363
|
const renderSlider = () => {
|
|
364
364
|
return createVNode(resolveComponent("x-gantt-slider"), {
|
|
365
365
|
"allow-link": false,
|
|
366
|
-
"move":
|
|
367
|
-
"resize-left":
|
|
368
|
-
"resize-right":
|
|
366
|
+
"move": c.state.sliderDraggable,
|
|
367
|
+
"resize-left": c.state.sliderDraggable,
|
|
368
|
+
"resize-right": c.state.sliderDraggable
|
|
369
369
|
}, {
|
|
370
370
|
content: ({
|
|
371
371
|
row
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { resolveComponent, mergeProps, h, createVNode,
|
|
1
|
+
import { resolveComponent, mergeProps, h, createVNode, createTextVNode, renderSlot, onUnmounted, defineComponent } from 'vue';
|
|
2
2
|
import { useControlController, useNamespace, useUIStore } from '@ibiz-template/vue3-util';
|
|
3
3
|
import { ScriptFactory, GridController } from '@ibiz-template/runtime';
|
|
4
4
|
import { NOOP } from '@ibiz-template/core';
|
|
@@ -185,7 +185,8 @@ const GridControl = /* @__PURE__ */ defineComponent({
|
|
|
185
185
|
}
|
|
186
186
|
return createVNode(resolveComponent("iBizNoData"), {
|
|
187
187
|
"text": c.model.emptyText,
|
|
188
|
-
"emptyTextLanguageRes": c.model.emptyTextLanguageRes
|
|
188
|
+
"emptyTextLanguageRes": c.model.emptyTextLanguageRes,
|
|
189
|
+
"enableShowImage": c.state.hideNoDataImage
|
|
189
190
|
}, null);
|
|
190
191
|
}
|
|
191
192
|
return createVNode("div", null, null);
|
|
@@ -196,11 +197,6 @@ const GridControl = /* @__PURE__ */ defineComponent({
|
|
|
196
197
|
defaultSort,
|
|
197
198
|
summaryMethod
|
|
198
199
|
} = useAppGridBase(c, props);
|
|
199
|
-
watch(() => tableData.value, () => {
|
|
200
|
-
c.calcShowMode(tableData.value);
|
|
201
|
-
}, {
|
|
202
|
-
immediate: true
|
|
203
|
-
});
|
|
204
200
|
const {
|
|
205
201
|
renderPopover
|
|
206
202
|
} = useRowEditPopover(tableRef, c);
|
package/es/control/tree/tree.mjs
CHANGED
|
@@ -209,13 +209,18 @@ const TreeControl = /* @__PURE__ */ defineComponent({
|
|
|
209
209
|
c.setSelection(checkedNodes);
|
|
210
210
|
};
|
|
211
211
|
let forbidClick = false;
|
|
212
|
+
const readonly = computed(() => {
|
|
213
|
+
return !!(c.context.srfreadonly === true || c.context.srfreadonly === "true");
|
|
214
|
+
});
|
|
212
215
|
const onNodeClick = (nodeData, evt) => {
|
|
213
216
|
var _a, _b;
|
|
214
217
|
evt.stopPropagation();
|
|
218
|
+
if (nodeData._disableSelect)
|
|
219
|
+
return;
|
|
215
220
|
if (forbidClick) {
|
|
216
221
|
return;
|
|
217
222
|
}
|
|
218
|
-
if (((_a = treeRef.value) == null ? void 0 : _a.getCurrentKey()) === nodeData._id) {
|
|
223
|
+
if (((_a = treeRef.value) == null ? void 0 : _a.getCurrentKey()) === nodeData._id && !readonly.value) {
|
|
219
224
|
editCurrentNodeText();
|
|
220
225
|
}
|
|
221
226
|
if (!c.state.singleSelect) {
|
|
@@ -236,6 +241,8 @@ const TreeControl = /* @__PURE__ */ defineComponent({
|
|
|
236
241
|
};
|
|
237
242
|
const onNodeDbClick = (nodeData, evt) => {
|
|
238
243
|
evt.stopPropagation();
|
|
244
|
+
if (nodeData._disableSelect)
|
|
245
|
+
return;
|
|
239
246
|
c.onDbTreeNodeClick(nodeData);
|
|
240
247
|
};
|
|
241
248
|
let ContextMenu;
|
package/es/locale/en/index.d.ts
CHANGED
|
@@ -118,6 +118,13 @@ declare const _default: {
|
|
|
118
118
|
confirmDataDeletion: string;
|
|
119
119
|
noImportModel: string;
|
|
120
120
|
};
|
|
121
|
+
md: {
|
|
122
|
+
rowData: string;
|
|
123
|
+
simpleMode: string;
|
|
124
|
+
dataDeleted: string;
|
|
125
|
+
noChange: string;
|
|
126
|
+
firstComplete: string;
|
|
127
|
+
};
|
|
121
128
|
editor: {
|
|
122
129
|
editorNoConfigured: string;
|
|
123
130
|
};
|
|
@@ -182,12 +189,7 @@ declare const _default: {
|
|
|
182
189
|
};
|
|
183
190
|
gantt: {
|
|
184
191
|
noNode: string;
|
|
185
|
-
rowData: string;
|
|
186
|
-
simpleMode: string;
|
|
187
192
|
nonentity: string;
|
|
188
|
-
noChange: string;
|
|
189
|
-
dataDeleted: string;
|
|
190
|
-
firstComplete: string;
|
|
191
193
|
noSupport: string;
|
|
192
194
|
};
|
|
193
195
|
grid: {
|
|
@@ -118,6 +118,13 @@ declare const _default: {
|
|
|
118
118
|
confirmDataDeletion: string;
|
|
119
119
|
noImportModel: string;
|
|
120
120
|
};
|
|
121
|
+
md: {
|
|
122
|
+
rowData: string;
|
|
123
|
+
simpleMode: string;
|
|
124
|
+
dataDeleted: string;
|
|
125
|
+
noChange: string;
|
|
126
|
+
firstComplete: string;
|
|
127
|
+
};
|
|
121
128
|
editor: {
|
|
122
129
|
editorNoConfigured: string;
|
|
123
130
|
};
|
|
@@ -182,12 +189,7 @@ declare const _default: {
|
|
|
182
189
|
};
|
|
183
190
|
gantt: {
|
|
184
191
|
noNode: string;
|
|
185
|
-
rowData: string;
|
|
186
|
-
simpleMode: string;
|
|
187
192
|
nonentity: string;
|
|
188
|
-
noChange: string;
|
|
189
|
-
dataDeleted: string;
|
|
190
|
-
firstComplete: string;
|
|
191
193
|
noSupport: string;
|
|
192
194
|
};
|
|
193
195
|
grid: {
|
|
@@ -33,6 +33,10 @@ class MPickupViewEngine extends PickupViewEngine {
|
|
|
33
33
|
}
|
|
34
34
|
const { childNames } = this.view;
|
|
35
35
|
childNames.push("simplelist");
|
|
36
|
+
if (this.view.params.selecteddata) {
|
|
37
|
+
this.selectData = JSON.parse(this.view.params.selecteddata);
|
|
38
|
+
delete this.view.params.selecteddata;
|
|
39
|
+
}
|
|
36
40
|
if (this.view.params.selectedData) {
|
|
37
41
|
this.selectData = JSON.parse(this.view.params.selectedData);
|
|
38
42
|
delete this.view.params.selectedData;
|
|
@@ -15,6 +15,10 @@ const IBizNoData = /* @__PURE__ */ vue.defineComponent({
|
|
|
15
15
|
emptyTextLanguageRes: {
|
|
16
16
|
type: Object,
|
|
17
17
|
default: void 0
|
|
18
|
+
},
|
|
19
|
+
enableShowImage: {
|
|
20
|
+
type: Boolean,
|
|
21
|
+
default: false
|
|
18
22
|
}
|
|
19
23
|
},
|
|
20
24
|
setup(props) {
|
|
@@ -30,7 +34,7 @@ const IBizNoData = /* @__PURE__ */ vue.defineComponent({
|
|
|
30
34
|
},
|
|
31
35
|
render() {
|
|
32
36
|
return vue.createVNode(vue.resolveComponent("el-empty"), {
|
|
33
|
-
"class": this.ns.b(),
|
|
37
|
+
"class": [this.ns.b(), this.enableShowImage ? "hideImage" : ""],
|
|
34
38
|
"description": this.label
|
|
35
39
|
}, {
|
|
36
40
|
default: () => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.ibiz-no-data{width:100%;height:100%}.ibiz-no-data .el-empty__description p{color:var(--ibiz-color-text-3)}.ibiz-no-data .el-empty__image{width:100%;max-width:var(--el-empty-image-width)}
|
|
1
|
+
.ibiz-no-data{width:100%;height:100%}.ibiz-no-data .el-empty__description p{color:var(--ibiz-color-text-3)}.ibiz-no-data .el-empty__image{width:100%;max-width:var(--el-empty-image-width)}.ibiz-no-data.hideImage{padding:0}.ibiz-no-data.hideImage .el-table__empty-text{line-height:30px}.ibiz-no-data.hideImage .el-empty__image{display:none}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.ibiz-view-message{--ibiz-view-message-border--warning:1px solid var(--ibiz-color-warning-active);--ibiz-view-message-border--error:1px solid var(--ibiz-color-danger-active);--ibiz-view-message-border--info:1px solid var(--ibiz-color-info-active);--ibiz-view-message-carousel-alert-height:64px;padding:var(--ibiz-spacing-tight) var(--ibiz-spacing-
|
|
1
|
+
.ibiz-view-message{--ibiz-view-message-border--warning:1px solid var(--ibiz-color-warning-active);--ibiz-view-message-border--error:1px solid var(--ibiz-color-danger-active);--ibiz-view-message-border--info:1px solid var(--ibiz-color-info-active);--ibiz-view-message-carousel-alert-height:64px;padding:var(--ibiz-spacing-tight) var(--ibiz-spacing-base)}.ibiz-view-message--hidden{display:none}.ibiz-view-message--alert .el-message-box__status.el-icon{display:none}.ibiz-view-message--alert .el-message-box__status+.el-message-box__message{padding-left:var(--ibiz-spacing-none)}.ibiz-view-message .el-alert--warning.is-light{border:var(--ibiz-view-message-border--warning)}.ibiz-view-message .el-alert--error.is-light{border:var(--ibiz-view-message-border--error)}.ibiz-view-message .el-alert--info.is-light{border:var(--ibiz-view-message-border--info)}.ibiz-view-message-alert{margin-bottom:var(--ibiz-spacing-tight)}.ibiz-view-message-alert:last-child{margin-bottom:var(--ibiz-spacing-none)}.ibiz-view-message-alert--single .el-alert__description{margin:0}.ibiz-view-message-alert--single-message .el-alert__close-btn{top:calc(var(--ibiz-spacing-tight) + var(--ibiz-spacing-super-tight))}.ibiz-view-message-alert__title{line-height:calc(var(--ibiz-spacing-base-loose) - var(--ibiz-spacing-super-tight))}.ibiz-view-message-alert__message{line-height:var(--ibiz-spacing-base)}.ibiz-view-message-carousel-alert{height:var(--ibiz-view-message-carousel-alert-height)}.ibiz-view-message-carousel-alert .el-alert__content{overflow:hidden}.ibiz-view-message-carousel-alert--single .el-alert__description{margin:0}.ibiz-view-message-carousel-alert__title{overflow:hidden;line-height:calc(var(--ibiz-spacing-base-loose) - var(--ibiz-spacing-super-tight));text-overflow:ellipsis;white-space:nowrap}.ibiz-view-message-carousel-alert__message{overflow:hidden;line-height:var(--ibiz-spacing-base);text-overflow:ellipsis;white-space:nowrap}
|
|
@@ -131,9 +131,10 @@ const DRBarControl = /* @__PURE__ */ vue.defineComponent({
|
|
|
131
131
|
default: () => [vue.createVNode(vue.resolveComponent("iBizIcon"), {
|
|
132
132
|
"class": ns.e("icon"),
|
|
133
133
|
"icon": item.sysImage
|
|
134
|
-
}, null), vue.createVNode("span", null, [item.caption]), item.counterId && counterData[item.counterId] && vue.createVNode(vue.resolveComponent("iBizBadge"), {
|
|
134
|
+
}, null), vue.createVNode("span", null, [item.caption]), item.counterId && counterData[item.counterId] != null && vue.createVNode(vue.resolveComponent("iBizBadge"), {
|
|
135
135
|
"class": ns.e("counter"),
|
|
136
|
-
"value": counterData[item.counterId]
|
|
136
|
+
"value": counterData[item.counterId],
|
|
137
|
+
"counterMode": item.counterMode
|
|
137
138
|
}, null)]
|
|
138
139
|
});
|
|
139
140
|
};
|
|
@@ -333,7 +333,7 @@ class DRBarController extends runtime.ControlController {
|
|
|
333
333
|
if (item.capLanguageRes) {
|
|
334
334
|
itemCaption = ibiz.i18n.t(item.capLanguageRes.lanResTag, item.caption);
|
|
335
335
|
}
|
|
336
|
-
const { enableMode, testAppDELogicId, testScriptCode } = item;
|
|
336
|
+
const { enableMode, testAppDELogicId, testScriptCode, counterMode } = item;
|
|
337
337
|
return {
|
|
338
338
|
tag: item.id,
|
|
339
339
|
caption: itemCaption,
|
|
@@ -345,7 +345,8 @@ class DRBarController extends runtime.ControlController {
|
|
|
345
345
|
dataAccessAction: item.dataAccessAction || void 0,
|
|
346
346
|
enableMode,
|
|
347
347
|
testAppDELogicId,
|
|
348
|
-
testScriptCode
|
|
348
|
+
testScriptCode,
|
|
349
|
+
counterMode
|
|
349
350
|
};
|
|
350
351
|
};
|
|
351
352
|
if (dedrbarGroups && dedrctrlItems) {
|
|
@@ -123,7 +123,8 @@ const DRTabControl = /* @__PURE__ */ vue.defineComponent({
|
|
|
123
123
|
"class": this.ns.be("label", "text")
|
|
124
124
|
}, [tab.caption]), !ramda.isNil(counterNum) && vue.createVNode(vue.resolveComponent("iBizBadge"), {
|
|
125
125
|
"class": this.ns.e("counter"),
|
|
126
|
-
"value": counterNum
|
|
126
|
+
"value": counterNum,
|
|
127
|
+
"counterMode": tab.counterMode
|
|
127
128
|
}, null)]);
|
|
128
129
|
}
|
|
129
130
|
});
|
|
@@ -278,7 +278,13 @@ class DRTabController extends runtime.ControlController {
|
|
|
278
278
|
if (item.capLanguageRes) {
|
|
279
279
|
itemCaption = ibiz.i18n.t(item.capLanguageRes.lanResTag, item.caption);
|
|
280
280
|
}
|
|
281
|
-
const {
|
|
281
|
+
const {
|
|
282
|
+
enableMode,
|
|
283
|
+
dataAccessAction,
|
|
284
|
+
testAppDELogicId,
|
|
285
|
+
testScriptCode,
|
|
286
|
+
counterMode
|
|
287
|
+
} = item;
|
|
282
288
|
drTabPages.push({
|
|
283
289
|
tag: item.id,
|
|
284
290
|
caption: itemCaption,
|
|
@@ -289,7 +295,8 @@ class DRTabController extends runtime.ControlController {
|
|
|
289
295
|
dataAccessAction,
|
|
290
296
|
enableMode,
|
|
291
297
|
testAppDELogicId,
|
|
292
|
-
testScriptCode
|
|
298
|
+
testScriptCode,
|
|
299
|
+
counterMode
|
|
293
300
|
});
|
|
294
301
|
});
|
|
295
302
|
this.state.drTabPages = drTabPages;
|
|
@@ -101,10 +101,11 @@ const FormTabPanel = /* @__PURE__ */ vue.defineComponent({
|
|
|
101
101
|
default: () => slot,
|
|
102
102
|
label: () => {
|
|
103
103
|
let _slot;
|
|
104
|
+
const value = c.model.counterId ? this.counterData.value[c.model.counterId] : void 0;
|
|
104
105
|
return c.model.counterId ? vue.createVNode(vue.resolveComponent("el-badge"), {
|
|
105
106
|
"class": this.ns.e("badge"),
|
|
106
|
-
"value":
|
|
107
|
-
"hidden": !
|
|
107
|
+
"value": value,
|
|
108
|
+
"hidden": !value && value !== 0 || c.model.counterMode === 1 && value <= 0
|
|
108
109
|
}, _isSlot(_slot = renderItemText(c)) ? _slot : {
|
|
109
110
|
default: () => [_slot]
|
|
110
111
|
}) : renderItemText(c);
|
|
@@ -365,9 +365,9 @@ const GanttControl = /* @__PURE__ */ vue.defineComponent({
|
|
|
365
365
|
const renderSlider = () => {
|
|
366
366
|
return vue.createVNode(vue.resolveComponent("x-gantt-slider"), {
|
|
367
367
|
"allow-link": false,
|
|
368
|
-
"move":
|
|
369
|
-
"resize-left":
|
|
370
|
-
"resize-right":
|
|
368
|
+
"move": c.state.sliderDraggable,
|
|
369
|
+
"resize-left": c.state.sliderDraggable,
|
|
370
|
+
"resize-right": c.state.sliderDraggable
|
|
371
371
|
}, {
|
|
372
372
|
content: ({
|
|
373
373
|
row
|
|
@@ -187,7 +187,8 @@ const GridControl = /* @__PURE__ */ vue.defineComponent({
|
|
|
187
187
|
}
|
|
188
188
|
return vue.createVNode(vue.resolveComponent("iBizNoData"), {
|
|
189
189
|
"text": c.model.emptyText,
|
|
190
|
-
"emptyTextLanguageRes": c.model.emptyTextLanguageRes
|
|
190
|
+
"emptyTextLanguageRes": c.model.emptyTextLanguageRes,
|
|
191
|
+
"enableShowImage": c.state.hideNoDataImage
|
|
191
192
|
}, null);
|
|
192
193
|
}
|
|
193
194
|
return vue.createVNode("div", null, null);
|
|
@@ -198,11 +199,6 @@ const GridControl = /* @__PURE__ */ vue.defineComponent({
|
|
|
198
199
|
defaultSort,
|
|
199
200
|
summaryMethod
|
|
200
201
|
} = gridControl_util.useAppGridBase(c, props);
|
|
201
|
-
vue.watch(() => tableData.value, () => {
|
|
202
|
-
c.calcShowMode(tableData.value);
|
|
203
|
-
}, {
|
|
204
|
-
immediate: true
|
|
205
|
-
});
|
|
206
202
|
const {
|
|
207
203
|
renderPopover
|
|
208
204
|
} = useRowEditPopover.useRowEditPopover(tableRef, c);
|
|
@@ -211,13 +211,18 @@ const TreeControl = /* @__PURE__ */ vue.defineComponent({
|
|
|
211
211
|
c.setSelection(checkedNodes);
|
|
212
212
|
};
|
|
213
213
|
let forbidClick = false;
|
|
214
|
+
const readonly = vue.computed(() => {
|
|
215
|
+
return !!(c.context.srfreadonly === true || c.context.srfreadonly === "true");
|
|
216
|
+
});
|
|
214
217
|
const onNodeClick = (nodeData, evt) => {
|
|
215
218
|
var _a, _b;
|
|
216
219
|
evt.stopPropagation();
|
|
220
|
+
if (nodeData._disableSelect)
|
|
221
|
+
return;
|
|
217
222
|
if (forbidClick) {
|
|
218
223
|
return;
|
|
219
224
|
}
|
|
220
|
-
if (((_a = treeRef.value) == null ? void 0 : _a.getCurrentKey()) === nodeData._id) {
|
|
225
|
+
if (((_a = treeRef.value) == null ? void 0 : _a.getCurrentKey()) === nodeData._id && !readonly.value) {
|
|
221
226
|
editCurrentNodeText();
|
|
222
227
|
}
|
|
223
228
|
if (!c.state.singleSelect) {
|
|
@@ -238,6 +243,8 @@ const TreeControl = /* @__PURE__ */ vue.defineComponent({
|
|
|
238
243
|
};
|
|
239
244
|
const onNodeDbClick = (nodeData, evt) => {
|
|
240
245
|
evt.stopPropagation();
|
|
246
|
+
if (nodeData._disableSelect)
|
|
247
|
+
return;
|
|
241
248
|
c.onDbTreeNodeClick(nodeData);
|
|
242
249
|
};
|
|
243
250
|
let ContextMenu;
|
|
@@ -35,6 +35,10 @@ class MPickupViewEngine extends pickupView_engine.PickupViewEngine {
|
|
|
35
35
|
}
|
|
36
36
|
const { childNames } = this.view;
|
|
37
37
|
childNames.push("simplelist");
|
|
38
|
+
if (this.view.params.selecteddata) {
|
|
39
|
+
this.selectData = JSON.parse(this.view.params.selecteddata);
|
|
40
|
+
delete this.view.params.selecteddata;
|
|
41
|
+
}
|
|
38
42
|
if (this.view.params.selectedData) {
|
|
39
43
|
this.selectData = JSON.parse(this.view.params.selectedData);
|
|
40
44
|
delete this.view.params.selectedData;
|
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.20",
|
|
4
4
|
"description": "使用 rollup 编译 vue 组件或者 jsx",
|
|
5
5
|
"main": "lib/index.cjs",
|
|
6
6
|
"module": "es/index.mjs",
|
|
@@ -29,15 +29,15 @@
|
|
|
29
29
|
"dependencies": {
|
|
30
30
|
"@floating-ui/dom": "^1.5.3",
|
|
31
31
|
"@ibiz-template-plugin/ai-chat": "^0.0.5",
|
|
32
|
-
"@ibiz-template-plugin/gantt": "0.1.
|
|
32
|
+
"@ibiz-template-plugin/gantt": "0.1.7",
|
|
33
33
|
"@ibiz-template/core": "0.7.18",
|
|
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.20",
|
|
36
|
+
"@ibiz-template/runtime": "0.7.20",
|
|
37
37
|
"@ibiz-template/theme": "^0.7.0",
|
|
38
|
-
"@ibiz-template/vue3-util": "0.7.
|
|
38
|
+
"@ibiz-template/vue3-util": "0.7.20",
|
|
39
39
|
"@ibiz-template/web-theme": "^1.1.17",
|
|
40
|
-
"@ibiz/model-core": "^0.1.
|
|
40
|
+
"@ibiz/model-core": "^0.1.29",
|
|
41
41
|
"@imengyu/vue3-context-menu": "^1.3.5",
|
|
42
42
|
"@monaco-editor/loader": "^1.4.0",
|
|
43
43
|
"@wangeditor/editor": "^5.1.23",
|
|
@@ -101,7 +101,7 @@
|
|
|
101
101
|
"@ibiz-template/runtime": "^0.7.0",
|
|
102
102
|
"@ibiz-template/theme": "^0.7.0",
|
|
103
103
|
"@ibiz-template/vue3-util": "^0.7.0",
|
|
104
|
-
"@ibiz/model-core": "^0.1.
|
|
104
|
+
"@ibiz/model-core": "^0.1.29",
|
|
105
105
|
"@imengyu/vue3-context-menu": "^1.3.3",
|
|
106
106
|
"@monaco-editor/loader": "^1.3.3",
|
|
107
107
|
"@wangeditor/editor": "^5.1.23",
|