@ibiz-template/vue3-components 0.7.30-alpha.2 → 0.7.30
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/chart-J-0VPQfg.js +1 -0
- package/dist/index-5Hb8nfPm.js +4 -0
- package/dist/index-YQyitjSg.js +1 -0
- package/dist/index-trS6uS3E.js +1 -0
- package/dist/index.min.css +1 -1
- package/dist/index.system.min.js +1 -1
- package/dist/wang-editor-AcjI1Mdj.js +1 -0
- package/dist/{xlsx-util-ngeyHiLd.js → xlsx-util-sKVlHqdj.js} +1 -1
- package/es/common/fullscreen-toolbar/fullscreen-toolbar.css +1 -1
- package/es/common/fullscreen-toolbar/fullscreen-toolbar.mjs +10 -0
- package/es/control/chart/chart.css +1 -1
- package/es/control/chart/chart.d.ts +5 -5
- package/es/control/chart/chart.mjs +32 -21
- package/es/control/dashboard/custom-dashboard-container/custom-dashboard-container.d.ts +16 -13
- package/es/control/dashboard/dashboard-design/dashboard-design.mjs +3 -0
- package/es/control/dashboard/portlet/report-portlet/report-portlet.provider.d.ts +2 -2
- package/es/control/drtab/drtab-control.util.mjs +1 -1
- package/es/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-grid/repeater-grid.d.ts +15 -12
- package/es/control/grid/grid/grid-control.util.mjs +1 -0
- package/es/control/list/list.mjs +13 -1
- package/es/control/tree-grid/index.d.ts +1 -0
- package/es/control/tree-grid/tree-grid.d.ts +1 -0
- package/es/control/tree-grid/tree-grid.mjs +4 -1
- package/es/control/tree-grid-ex/tree-grid-ex-column/tree-grid-ex-field-column/index.d.ts +1 -1
- package/es/control/tree-grid-ex/tree-grid-ex-column/tree-grid-ex-field-column/tree-grid-ex-field-column.d.ts +1 -1
- package/es/control/tree-grid-ex/tree-grid-ex-column/tree-grid-ex-field-column/tree-grid-ex-field-column.mjs +4 -9
- package/es/editor/data-picker/ibiz-picker-embed-view/ibiz-picker-embed-view.d.ts +1 -1
- package/es/editor/dropdown-list/ibiz-dropdown/ibiz-dropdown.mjs +3 -0
- package/es/editor/html/wang-editor/wang-editor.mjs +3 -0
- package/es/editor/upload/ibiz-image-upload/ibiz-image-upload.css +1 -1
- package/es/editor/upload/ibiz-image-upload/ibiz-image-upload.mjs +1 -1
- package/es/editor/upload/upload-editor.controller.d.ts +8 -0
- package/es/editor/upload/upload-editor.controller.mjs +20 -1
- package/es/locale/en/index.d.ts +9 -4
- package/es/locale/en/index.mjs +6 -6
- package/es/locale/zh-CN/index.d.ts +9 -4
- package/es/locale/zh-CN/index.mjs +6 -6
- package/es/panel-component/short-cut/index.d.ts +1 -1
- package/es/panel-component/short-cut/short-cut.d.ts +1 -1
- package/es/util/fullscreen/fullscreen-util.d.ts +8 -2
- package/es/util/fullscreen/fullscreen-util.mjs +22 -2
- package/es/view-engine/edit-view.engine.mjs +29 -32
- package/lib/common/fullscreen-toolbar/fullscreen-toolbar.cjs +10 -0
- package/lib/common/fullscreen-toolbar/fullscreen-toolbar.css +1 -1
- package/lib/control/chart/chart.cjs +32 -21
- package/lib/control/chart/chart.css +1 -1
- package/lib/control/dashboard/dashboard-design/dashboard-design.cjs +3 -0
- package/lib/control/drtab/drtab-control.util.cjs +1 -1
- package/lib/control/grid/grid/grid-control.util.cjs +1 -0
- package/lib/control/list/list.cjs +13 -1
- package/lib/control/tree-grid/tree-grid.cjs +4 -1
- package/lib/control/tree-grid-ex/tree-grid-ex-column/tree-grid-ex-field-column/tree-grid-ex-field-column.cjs +3 -8
- package/lib/editor/dropdown-list/ibiz-dropdown/ibiz-dropdown.cjs +3 -0
- package/lib/editor/html/wang-editor/wang-editor.cjs +3 -0
- package/lib/editor/upload/ibiz-image-upload/ibiz-image-upload.cjs +1 -1
- package/lib/editor/upload/ibiz-image-upload/ibiz-image-upload.css +1 -1
- package/lib/editor/upload/upload-editor.controller.cjs +20 -1
- package/lib/locale/en/index.cjs +6 -6
- package/lib/locale/zh-CN/index.cjs +6 -6
- package/lib/util/fullscreen/fullscreen-util.cjs +22 -2
- package/lib/view-engine/edit-view.engine.cjs +29 -32
- package/package.json +10 -9
- package/dist/chart-x3_XMfQ1.js +0 -1
- package/dist/index-Nw4GzACH.js +0 -1
- package/dist/index-gL570YDJ.js +0 -4
- package/dist/index-qjfHTzTv.js +0 -1
- package/dist/wang-editor-YqnK5uQU.js +0 -1
- /package/es/node_modules/.pnpm/{@ibiz-template_core@0.7.28_axios@1.6.8_lodash-es@4.17.21_qs@6.11.2_qx-util@0.4.8_ramda@0.29.1 → @ibiz-template_core@0.7.30_axios@1.6.8_lodash-es@4.17.21_qs@6.11.2_qx-util@0.4.8_ramda@0.29.1}/node_modules/@ibiz-template/core/out/utils/namespace/namespace.mjs +0 -0
- /package/lib/node_modules/.pnpm/{@ibiz-template_core@0.7.28_axios@1.6.8_lodash-es@4.17.21_qs@6.11.2_qx-util@0.4.8_ramda@0.29.1 → @ibiz-template_core@0.7.30_axios@1.6.8_lodash-es@4.17.21_qs@6.11.2_qx-util@0.4.8_ramda@0.29.1}/node_modules/@ibiz-template/core/out/utils/namespace/namespace.cjs +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
.ibiz-fullscreen-toolbar{position:fixed;bottom:28px;left:0;display:flex;flex-flow:row nowrap;place-content:center center;align-items:center;width:100%;height:30px}.ibiz-fullscreen-toolbar__wrapper{z-index:101;display:flex;flex-flow:row nowrap;place-content:center center;align-items:center;width:100%;height:inherit}.ibiz-fullscreen-toolbar__wrapper:hover .ibiz-fullscreen-toolbar__wrapper-content{display:flex}.ibiz-fullscreen-toolbar__wrapper-content{z-index:101;display:none;flex-flow:row nowrap;place-content:center center;align-items:center;width:169px;height:56px;padding:12px 16px;background-color:#333;border-radius:6px}.ibiz-fullscreen-toolbar__item{display:flex;flex-flow:row nowrap;place-content:center center;align-items:center;width:32px;height:32px;padding:8px;margin-right:8px;cursor:pointer;border-radius:4px;fill:#fff}.ibiz-fullscreen-toolbar__item:hover{background-color:#5c5c5c;fill:#6698ff}.ibiz-fullscreen-toolbar__divider{position:relative;box-sizing:border-box;display:inline-block;height:1rem;padding:0;margin:0;margin:0 16px;font-size:.875rem;line-height:1.5715;color:#333;vertical-align:middle;list-style:none;border-top:0;border-left:1px solid #666}.ibiz-fullscreen-toolbar__canvas{z-index:100}.ibiz-fullscreen-toolbar__canvas>.cursor{cursor:none!important}.ibiz-fullscreen-toolbar__canvas>.nocursor{display:none!important}.ibiz-fullscreen-toolbar__canvas>canvas{position:fixed;top:0;left:0;z-index:-1;width:100vw;height:100vh;background:0 0}.ibiz-fullscreen-toolbar__tooltip .el-popper__arrow{display:block}
|
|
1
|
+
.ibiz-fullscreen-toolbar{position:fixed;bottom:28px;left:0;z-index:100;display:flex;flex-flow:row nowrap;place-content:center center;align-items:center;width:100%;height:30px}.ibiz-fullscreen-toolbar__wrapper{z-index:101;display:flex;flex-flow:row nowrap;place-content:center center;align-items:center;width:100%;height:inherit}.ibiz-fullscreen-toolbar__wrapper:hover .ibiz-fullscreen-toolbar__wrapper-content{display:flex}.ibiz-fullscreen-toolbar__wrapper-content{z-index:101;display:none;flex-flow:row nowrap;place-content:center center;align-items:center;width:169px;height:56px;padding:12px 16px;background-color:#333;border-radius:6px}.ibiz-fullscreen-toolbar__item{display:flex;flex-flow:row nowrap;place-content:center center;align-items:center;width:32px;height:32px;padding:8px;margin-right:8px;cursor:pointer;border-radius:4px;fill:#fff}.ibiz-fullscreen-toolbar__item:hover{background-color:#5c5c5c;fill:#6698ff}.ibiz-fullscreen-toolbar__divider{position:relative;box-sizing:border-box;display:inline-block;height:1rem;padding:0;margin:0;margin:0 16px;font-size:.875rem;line-height:1.5715;color:#333;vertical-align:middle;list-style:none;border-top:0;border-left:1px solid #666}.ibiz-fullscreen-toolbar__canvas{z-index:100}.ibiz-fullscreen-toolbar__canvas>.cursor{cursor:none!important}.ibiz-fullscreen-toolbar__canvas>.nocursor{display:none!important}.ibiz-fullscreen-toolbar__canvas>canvas{position:fixed;top:0;left:0;z-index:-1;width:100vw;height:100vh;background:0 0}.ibiz-fullscreen-toolbar__tooltip .el-popper__arrow{display:block}
|
|
@@ -104,10 +104,19 @@ const IBizFullscreenToolbar = /* @__PURE__ */ defineComponent({
|
|
|
104
104
|
app.mount(content);
|
|
105
105
|
}
|
|
106
106
|
};
|
|
107
|
+
const clearFullscreenClass = () => {
|
|
108
|
+
if (ibiz.fullscreenUtil.FullscreenClass) {
|
|
109
|
+
const divFull = document.querySelector(".".concat(ibiz.fullscreenUtil.FullscreenClass));
|
|
110
|
+
if (divFull) {
|
|
111
|
+
divFull.classList.toggle(ibiz.fullscreenUtil.FullscreenClass);
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
};
|
|
107
115
|
const compressArrowsClick = () => {
|
|
108
116
|
const div = document.getElementById("fullscreen");
|
|
109
117
|
if (div) {
|
|
110
118
|
document.exitFullscreen();
|
|
119
|
+
clearFullscreenClass();
|
|
111
120
|
if (div.parentElement) {
|
|
112
121
|
div.parentElement.removeChild(div);
|
|
113
122
|
}
|
|
@@ -119,6 +128,7 @@ const IBizFullscreenToolbar = /* @__PURE__ */ defineComponent({
|
|
|
119
128
|
} else {
|
|
120
129
|
const div = document.getElementById("fullscreen");
|
|
121
130
|
if (div) {
|
|
131
|
+
clearFullscreenClass();
|
|
122
132
|
if (div.parentElement) {
|
|
123
133
|
div.parentElement.removeChild(div);
|
|
124
134
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.ibiz-control-chart{width:100%;height:100%}.ibiz-control-chart__chart-grid{width:100%;height:100%}.ibiz-control-chart__chart-grid.is-show-grid{display:flex;height:calc(100% - 16px)}.ibiz-control-chart__chart-grid--bottom{flex-direction:column}.ibiz-control-chart__chart-grid--top{flex-direction:column-reverse}.ibiz-control-chart__chart-grid--left{flex-direction:row-reverse}.ibiz-control-chart__chart-grid--right{flex-direction:row}.ibiz-control-chart__chart-grid.is-no-data{display:none}.ibiz-control-chart__chart-grid-container{position:relative;flex:1;height:50%}.ibiz-control-chart__chart-grid-container.is-bottom{width:100%;height:50%;min-height:50%}.ibiz-control-chart__chart-grid-container.is-top{width:100%;height:50%;min-height:50%}.ibiz-control-chart__chart-grid-container.is-left{width:50%;min-width:50%;height:100%}.ibiz-control-chart__chart-grid-container.is-right{width:50%;min-width:50%;height:100%}.ibiz-control-chart__chart-grid-container.is-no-grid{flex:unset;width:100%;height:100%}.ibiz-control-chart__chart{width:100%;height:100%}.ibiz-control-chart__drill-
|
|
1
|
+
.ibiz-control-chart{width:100%;height:100%}.ibiz-control-chart__chart-grid{width:100%;height:100%}.ibiz-control-chart__chart-grid.is-show-grid{display:flex;height:calc(100% - 16px)}.ibiz-control-chart__chart-grid--bottom{flex-direction:column}.ibiz-control-chart__chart-grid--top{flex-direction:column-reverse}.ibiz-control-chart__chart-grid--left{flex-direction:row-reverse}.ibiz-control-chart__chart-grid--right{flex-direction:row}.ibiz-control-chart__chart-grid.is-no-data{display:none}.ibiz-control-chart__chart-grid-container{position:relative;flex:1;height:50%}.ibiz-control-chart__chart-grid-container.is-bottom{width:100%;height:50%;min-height:50%}.ibiz-control-chart__chart-grid-container.is-top{width:100%;height:50%;min-height:50%}.ibiz-control-chart__chart-grid-container.is-left{width:50%;min-width:50%;height:100%}.ibiz-control-chart__chart-grid-container.is-right{width:50%;min-width:50%;height:100%}.ibiz-control-chart__chart-grid-container.is-no-grid{flex:unset;width:100%;height:100%}.ibiz-control-chart__chart{width:100%;height:100%}.ibiz-control-chart__drill-detail{position:absolute;top:0;left:0;width:150px;padding:var(--ibiz-spacing-tight) 0;background:var(--ibiz-color-bg-1);border:1px solid var(--ibiz-color-border);border-radius:var(--ibiz-border-radius-small);box-shadow:var(--ibiz-color-elevated)}.ibiz-control-chart__drill-detail--item{display:flex;gap:var(--ibiz-spacing-tight);align-items:center;height:40px;padding:var(--ibiz-spacing-tight) var(--ibiz-spacing-base-loose);font-size:var(--ibiz-font-size-regular);cursor:pointer}.ibiz-control-chart__drill-detail--item:hover{background-color:var(--ibiz-color-fill-1)}.ibiz-control-chart__drill-detail--item-text{margin-bottom:var(--ibiz-spacing-super-tight)}.ibiz-control-chart__grid{flex:1;height:auto}.ibiz-control-chart__grid .cell{text-overflow:ellipsis;white-space:nowrap}.ibiz-control-chart__grid .el-table__body-wrapper{border-bottom:1px solid var(--ibiz-color-border)}.ibiz-control-chart__empty{display:none;height:100%}.ibiz-control-chart__empty.is-no-data{display:flex}.ibiz-control-chart-chart-container{width:100%;height:100%}
|
|
@@ -53,11 +53,11 @@ declare const ChartControl: import("vue").DefineComponent<{
|
|
|
53
53
|
chartRef: import("vue").Ref<any>;
|
|
54
54
|
uuid: string;
|
|
55
55
|
showCheck: import("vue").Ref<boolean>;
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
56
|
+
drillDetailPos: import("vue").Ref<{}>;
|
|
57
|
+
drillDetailRef: import("vue").Ref<any>;
|
|
58
|
+
openDrillDetail: (_event: MouseEvent) => void;
|
|
59
59
|
renderGrid: () => JSX.Element;
|
|
60
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "
|
|
60
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "drillDetail"[], "drillDetail", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
61
61
|
modelData: {
|
|
62
62
|
type: PropType<IDEChart>;
|
|
63
63
|
required: true;
|
|
@@ -103,7 +103,7 @@ declare const ChartControl: import("vue").DefineComponent<{
|
|
|
103
103
|
required: false;
|
|
104
104
|
};
|
|
105
105
|
}>> & {
|
|
106
|
-
|
|
106
|
+
onDrillDetail?: ((...args: any[]) => any) | undefined;
|
|
107
107
|
}, {
|
|
108
108
|
params: IParams;
|
|
109
109
|
mdctrlActiveMode: number;
|
|
@@ -44,7 +44,7 @@ const ChartControl = /* @__PURE__ */ defineComponent({
|
|
|
44
44
|
required: false
|
|
45
45
|
}
|
|
46
46
|
},
|
|
47
|
-
emits: ["
|
|
47
|
+
emits: ["drillDetail"],
|
|
48
48
|
setup(props, {
|
|
49
49
|
emit
|
|
50
50
|
}) {
|
|
@@ -54,8 +54,8 @@ const ChartControl = /* @__PURE__ */ defineComponent({
|
|
|
54
54
|
const maxHeight = ref(0);
|
|
55
55
|
const uuid = createUUID();
|
|
56
56
|
const showCheck = ref(false);
|
|
57
|
-
const
|
|
58
|
-
const
|
|
57
|
+
const drillDetailPos = ref({});
|
|
58
|
+
const drillDetailRef = ref();
|
|
59
59
|
let func;
|
|
60
60
|
let tempParams;
|
|
61
61
|
const initSimpleData = () => {
|
|
@@ -93,7 +93,7 @@ const ChartControl = /* @__PURE__ */ defineComponent({
|
|
|
93
93
|
const getGridData = () => {
|
|
94
94
|
return c.state.gridData || [];
|
|
95
95
|
};
|
|
96
|
-
const
|
|
96
|
+
const computedDrillDetailPos = (params) => {
|
|
97
97
|
if (params.event) {
|
|
98
98
|
const event = params.event.event;
|
|
99
99
|
event.stopPropagation();
|
|
@@ -102,7 +102,7 @@ const ChartControl = /* @__PURE__ */ defineComponent({
|
|
|
102
102
|
offsetX,
|
|
103
103
|
offsetY
|
|
104
104
|
} = params.event;
|
|
105
|
-
|
|
105
|
+
drillDetailPos.value = {
|
|
106
106
|
top: "".concat(offsetY, "px"),
|
|
107
107
|
left: "".concat(offsetX + 16, "px")
|
|
108
108
|
};
|
|
@@ -121,31 +121,42 @@ const ChartControl = /* @__PURE__ */ defineComponent({
|
|
|
121
121
|
resizeObserver.observe(chartRef.value);
|
|
122
122
|
}
|
|
123
123
|
setHeight();
|
|
124
|
-
|
|
124
|
+
const drillDetails = (_b = (_a = props.modelData.controlParam) == null ? void 0 : _a.ctrlParams) == null ? void 0 : _b.ENABLEDRILLDETAIL;
|
|
125
|
+
if (drillDetails == null ? void 0 : drillDetails.length) {
|
|
125
126
|
chart.on("click", (params) => {
|
|
127
|
+
const serieModel = c.computedClickSerieModel(params);
|
|
128
|
+
if (!serieModel) {
|
|
129
|
+
return;
|
|
130
|
+
}
|
|
131
|
+
const tempDrill = drillDetails.find((item) => {
|
|
132
|
+
return item.name === serieModel.valueField;
|
|
133
|
+
});
|
|
134
|
+
if (!tempDrill || !tempDrill.isDrill) {
|
|
135
|
+
return;
|
|
136
|
+
}
|
|
126
137
|
tempParams = params;
|
|
127
138
|
chart.dispatchAction({
|
|
128
139
|
type: "hideTip"
|
|
129
140
|
});
|
|
130
141
|
showCheck.value = true;
|
|
131
142
|
c.changeTooltipState(false);
|
|
132
|
-
func = useClickOutside(
|
|
143
|
+
func = useClickOutside(drillDetailRef, () => {
|
|
133
144
|
showCheck.value = false;
|
|
134
145
|
c.changeTooltipState(true);
|
|
135
146
|
func.stop();
|
|
136
147
|
});
|
|
137
|
-
|
|
148
|
+
computedDrillDetailPos(params);
|
|
138
149
|
});
|
|
139
150
|
}
|
|
140
151
|
});
|
|
141
|
-
const
|
|
152
|
+
const openDrillDetail = (_event) => {
|
|
142
153
|
showCheck.value = false;
|
|
143
154
|
if (func) {
|
|
144
155
|
func.stop();
|
|
145
156
|
}
|
|
146
157
|
c.changeTooltipState(true);
|
|
147
|
-
const param = c.
|
|
148
|
-
emit("
|
|
158
|
+
const param = c.computedDrillDetailParam(tempParams);
|
|
159
|
+
emit("drillDetail", param);
|
|
149
160
|
};
|
|
150
161
|
watch(() => c.state.showGrid, () => {
|
|
151
162
|
setHeight();
|
|
@@ -183,9 +194,9 @@ const ChartControl = /* @__PURE__ */ defineComponent({
|
|
|
183
194
|
chartRef,
|
|
184
195
|
uuid,
|
|
185
196
|
showCheck,
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
197
|
+
drillDetailPos,
|
|
198
|
+
drillDetailRef,
|
|
199
|
+
openDrillDetail,
|
|
189
200
|
renderGrid
|
|
190
201
|
};
|
|
191
202
|
},
|
|
@@ -209,11 +220,12 @@ const ChartControl = /* @__PURE__ */ defineComponent({
|
|
|
209
220
|
"ref": "chartRef",
|
|
210
221
|
"class": [this.ns.e("chart")]
|
|
211
222
|
}, [ibiz.i18n.t("control.chart.chartPlaceholder")]), this.showCheck ? createVNode("div", {
|
|
212
|
-
"ref": "
|
|
213
|
-
"class": this.ns.e("drill-
|
|
214
|
-
"style": this.
|
|
223
|
+
"ref": "drillDetailRef",
|
|
224
|
+
"class": this.ns.e("drill-detail"),
|
|
225
|
+
"style": this.drillDetailPos,
|
|
226
|
+
"onClick": this.openDrillDetail
|
|
215
227
|
}, [createVNode("div", {
|
|
216
|
-
"class": this.ns.em("drill-
|
|
228
|
+
"class": this.ns.em("drill-detail", "item")
|
|
217
229
|
}, [createVNode("svg", {
|
|
218
230
|
"viewBox": "0 0 16 16",
|
|
219
231
|
"xmlns": "http://www.w3.org/2000/svg",
|
|
@@ -229,9 +241,8 @@ const ChartControl = /* @__PURE__ */ defineComponent({
|
|
|
229
241
|
"d": "M11.626 0c1.057 0 1.923.818 2 1.855l.005.15v3.411a.6.6 0 0 1-1.192.097l-.008-.097.001-1.348V2.005c0-.41-.31-.749-.705-.799l-.101-.006h-9.62c-.41 0-.75.308-.8.704l-.006.101v11.989c0 .41.308.75.705.8l.101.006h5.906l.017-.004.016-.003h2.074a.598.598 0 1 1 .107 1.187l-.095.01V16H2.006a2.006 2.006 0 0 1-2-1.856L0 13.994V2.005C0 .948.818.082 1.856.005L2.006 0h9.62zm-1.595 6.328a3.669 3.669 0 0 1 3.665 3.665c0 .79-.251 1.523-.678 2.123l2.412 2.412a.6.6 0 1 1-.848.85l-2.41-2.412a3.646 3.646 0 0 1-2.14.692 3.67 3.67 0 0 1-3.667-3.665 3.67 3.67 0 0 1 3.666-3.665zm-5.106 5.29a.6.6 0 0 1 .097 1.191l-.097.008H2.85a.6.6 0 0 1-.097-1.192l.097-.008h2.074zm5.106-4.09a2.468 2.468 0 0 0-2.466 2.465 2.468 2.468 0 0 0 2.466 2.466 2.47 2.47 0 0 0 2.466-2.466 2.469 2.469 0 0 0-2.466-2.465zm-4.815-.126a.6.6 0 0 1 .097 1.193l-.097.007h-2.35A.6.6 0 0 1 2.77 7.41l.098-.008h2.349zm5.58-4a.6.6 0 0 1 .097 1.192l-.097.008H2.867A.6.6 0 0 1 2.77 3.41l.097-.008h7.929z",
|
|
230
242
|
"id": "asp\u5408\u5E76\u5F62\u72B6"
|
|
231
243
|
}, null)])]), createVNode("div", {
|
|
232
|
-
"class": this.ns.em("drill-
|
|
233
|
-
|
|
234
|
-
}, [ibiz.i18n.t("control.chart.drillDown")])])]) : null]), this.c.state.showGrid ? createVNode("div", {
|
|
244
|
+
"class": this.ns.em("drill-detail", "item-text")
|
|
245
|
+
}, [ibiz.i18n.t("control.chart.drillDetail")])])]) : null]), this.c.state.showGrid ? createVNode("div", {
|
|
235
246
|
"class": this.ns.e("grid")
|
|
236
247
|
}, [this.renderGrid()]) : null])])]
|
|
237
248
|
});
|
|
@@ -2186,7 +2186,7 @@ export declare const CustomDashboardContainer: import("vue").DefineComponent<{
|
|
|
2186
2186
|
srfsessionid: string;
|
|
2187
2187
|
srfappid: string;
|
|
2188
2188
|
srfsimple?: boolean | undefined;
|
|
2189
|
-
|
|
2189
|
+
srfnavctrlid?: string | undefined;
|
|
2190
2190
|
};
|
|
2191
2191
|
readonly params: IParams;
|
|
2192
2192
|
childNames: string[];
|
|
@@ -2201,6 +2201,7 @@ export declare const CustomDashboardContainer: import("vue").DefineComponent<{
|
|
|
2201
2201
|
validate: (parentId?: string | undefined) => Promise<boolean>;
|
|
2202
2202
|
setDataValue: (name: string, value: unknown) => Promise<void>;
|
|
2203
2203
|
view: any;
|
|
2204
|
+
ctrlId: string;
|
|
2204
2205
|
layoutPanel?: any | undefined;
|
|
2205
2206
|
scheduler?: {
|
|
2206
2207
|
logics: {
|
|
@@ -2316,7 +2317,7 @@ export declare const CustomDashboardContainer: import("vue").DefineComponent<{
|
|
|
2316
2317
|
srfsessionid: string;
|
|
2317
2318
|
srfappid: string;
|
|
2318
2319
|
srfsimple?: boolean | undefined;
|
|
2319
|
-
|
|
2320
|
+
srfnavctrlid?: string | undefined;
|
|
2320
2321
|
};
|
|
2321
2322
|
};
|
|
2322
2323
|
readonly model: {
|
|
@@ -5095,7 +5096,7 @@ export declare const CustomDashboardContainer: import("vue").DefineComponent<{
|
|
|
5095
5096
|
srfsessionid: string;
|
|
5096
5097
|
srfappid: string;
|
|
5097
5098
|
srfsimple?: boolean | undefined;
|
|
5098
|
-
|
|
5099
|
+
srfnavctrlid?: string | undefined;
|
|
5099
5100
|
};
|
|
5100
5101
|
readonly params: IParams;
|
|
5101
5102
|
childNames: string[];
|
|
@@ -5167,7 +5168,7 @@ export declare const CustomDashboardContainer: import("vue").DefineComponent<{
|
|
|
5167
5168
|
srfsessionid: string;
|
|
5168
5169
|
srfappid: string;
|
|
5169
5170
|
srfsimple?: boolean | undefined;
|
|
5170
|
-
|
|
5171
|
+
srfnavctrlid?: string | undefined;
|
|
5171
5172
|
};
|
|
5172
5173
|
srfactiveviewdata: IData | null;
|
|
5173
5174
|
};
|
|
@@ -9141,7 +9142,7 @@ export declare const CustomDashboardContainer: import("vue").DefineComponent<{
|
|
|
9141
9142
|
srfsessionid: string;
|
|
9142
9143
|
srfappid: string;
|
|
9143
9144
|
srfsimple?: boolean | undefined;
|
|
9144
|
-
|
|
9145
|
+
srfnavctrlid?: string | undefined;
|
|
9145
9146
|
};
|
|
9146
9147
|
readonly params: IParams;
|
|
9147
9148
|
childNames: string[];
|
|
@@ -9151,6 +9152,7 @@ export declare const CustomDashboardContainer: import("vue").DefineComponent<{
|
|
|
9151
9152
|
destroyed: () => Promise<void>;
|
|
9152
9153
|
force: (_callback?: (() => void) | undefined) => void;
|
|
9153
9154
|
};
|
|
9155
|
+
readonly ctrlId: string;
|
|
9154
9156
|
scheduler?: {
|
|
9155
9157
|
logics: {
|
|
9156
9158
|
appId: string;
|
|
@@ -12125,7 +12127,7 @@ export declare const CustomDashboardContainer: import("vue").DefineComponent<{
|
|
|
12125
12127
|
srfsessionid: string;
|
|
12126
12128
|
srfappid: string;
|
|
12127
12129
|
srfsimple?: boolean | undefined;
|
|
12128
|
-
|
|
12130
|
+
srfnavctrlid?: string | undefined;
|
|
12129
12131
|
};
|
|
12130
12132
|
readonly params: IParams;
|
|
12131
12133
|
childNames: string[];
|
|
@@ -12276,7 +12278,7 @@ export declare const CustomDashboardContainer: import("vue").DefineComponent<{
|
|
|
12276
12278
|
srfsessionid: string;
|
|
12277
12279
|
srfappid: string;
|
|
12278
12280
|
srfsimple?: boolean | undefined;
|
|
12279
|
-
|
|
12281
|
+
srfnavctrlid?: string | undefined;
|
|
12280
12282
|
};
|
|
12281
12283
|
srfactiveviewdata: IData | null;
|
|
12282
12284
|
};
|
|
@@ -16041,7 +16043,7 @@ export declare const CustomDashboardContainer: import("vue").DefineComponent<{
|
|
|
16041
16043
|
srfsessionid: string;
|
|
16042
16044
|
srfappid: string;
|
|
16043
16045
|
srfsimple?: boolean | undefined;
|
|
16044
|
-
|
|
16046
|
+
srfnavctrlid?: string | undefined;
|
|
16045
16047
|
};
|
|
16046
16048
|
readonly params: IParams;
|
|
16047
16049
|
childNames: string[];
|
|
@@ -16051,6 +16053,7 @@ export declare const CustomDashboardContainer: import("vue").DefineComponent<{
|
|
|
16051
16053
|
destroyed: () => Promise<void>;
|
|
16052
16054
|
force: (_callback?: (() => void) | undefined) => void;
|
|
16053
16055
|
};
|
|
16056
|
+
ctrlId: string;
|
|
16054
16057
|
layoutPanel?: any | undefined;
|
|
16055
16058
|
scheduler?: {
|
|
16056
16059
|
logics: {
|
|
@@ -16166,7 +16169,7 @@ export declare const CustomDashboardContainer: import("vue").DefineComponent<{
|
|
|
16166
16169
|
srfsessionid: string;
|
|
16167
16170
|
srfappid: string;
|
|
16168
16171
|
srfsimple?: boolean | undefined;
|
|
16169
|
-
|
|
16172
|
+
srfnavctrlid?: string | undefined;
|
|
16170
16173
|
};
|
|
16171
16174
|
};
|
|
16172
16175
|
readonly model: {
|
|
@@ -19005,7 +19008,7 @@ export declare const CustomDashboardContainer: import("vue").DefineComponent<{
|
|
|
19005
19008
|
srfsessionid: string;
|
|
19006
19009
|
srfappid: string;
|
|
19007
19010
|
srfsimple?: boolean | undefined;
|
|
19008
|
-
|
|
19011
|
+
srfnavctrlid?: string | undefined;
|
|
19009
19012
|
};
|
|
19010
19013
|
readonly params: IParams;
|
|
19011
19014
|
childNames: string[];
|
|
@@ -21078,7 +21081,7 @@ export declare const CustomDashboardContainer: import("vue").DefineComponent<{
|
|
|
21078
21081
|
srfsessionid: string;
|
|
21079
21082
|
srfappid: string;
|
|
21080
21083
|
srfsimple?: boolean | undefined;
|
|
21081
|
-
|
|
21084
|
+
srfnavctrlid?: string | undefined;
|
|
21082
21085
|
};
|
|
21083
21086
|
};
|
|
21084
21087
|
readonly context: {
|
|
@@ -21087,7 +21090,7 @@ export declare const CustomDashboardContainer: import("vue").DefineComponent<{
|
|
|
21087
21090
|
srfsessionid: string;
|
|
21088
21091
|
srfappid: string;
|
|
21089
21092
|
srfsimple?: boolean | undefined;
|
|
21090
|
-
|
|
21093
|
+
srfnavctrlid?: string | undefined;
|
|
21091
21094
|
};
|
|
21092
21095
|
name: string;
|
|
21093
21096
|
evt: {
|
|
@@ -21133,7 +21136,7 @@ export declare const CustomDashboardContainer: import("vue").DefineComponent<{
|
|
|
21133
21136
|
srfsessionid: string;
|
|
21134
21137
|
srfappid: string;
|
|
21135
21138
|
srfsimple?: boolean | undefined;
|
|
21136
|
-
|
|
21139
|
+
srfnavctrlid?: string | undefined;
|
|
21137
21140
|
};
|
|
21138
21141
|
params: IParams;
|
|
21139
21142
|
type: "data" | "public" | "personal";
|
|
@@ -472,6 +472,9 @@ const DashboardDesign = /* @__PURE__ */ defineComponent({
|
|
|
472
472
|
"onChange": this.handleRolHChange
|
|
473
473
|
}, null)]), createVNode(resolveComponent("el-button"), {
|
|
474
474
|
"class": this.ns.be("header-utils", "reset"),
|
|
475
|
+
"style": {
|
|
476
|
+
display: this.customC.multiMode ? "none" : "inline-flex"
|
|
477
|
+
},
|
|
475
478
|
"onClick": this.onReset
|
|
476
479
|
}, _isSlot(_slot3 = ibiz.i18n.t("control.dashboard.dashboardDesign.restoreDefault")) ? _slot3 : {
|
|
477
480
|
default: () => [_slot3]
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IDashboardController, IPortletContainerController, IPortletProvider, ReportPortletController } from '@ibiz-template/runtime';
|
|
2
|
-
import {
|
|
2
|
+
import { IDBReportPortletPart } from '@ibiz/model-core';
|
|
3
3
|
/**
|
|
4
4
|
* 报表门户部件适配器
|
|
5
5
|
*
|
|
@@ -11,5 +11,5 @@ import { IDBReportPortlet } from '@ibiz/model-core';
|
|
|
11
11
|
*/
|
|
12
12
|
export declare class ReportPortletProvider implements IPortletProvider {
|
|
13
13
|
component: string;
|
|
14
|
-
createController(portletModel:
|
|
14
|
+
createController(portletModel: IDBReportPortletPart, dashboard: IDashboardController, parent?: IPortletContainerController): Promise<ReportPortletController>;
|
|
15
15
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ref, watch, watchEffect, onUnmounted } from 'vue';
|
|
2
|
-
import { defaultNamespace } from '../../node_modules/.pnpm/@ibiz-template_core@0.7.
|
|
2
|
+
import { defaultNamespace } from '../../node_modules/.pnpm/@ibiz-template_core@0.7.30_axios@1.6.8_lodash-es@4.17.21_qs@6.11.2_qx-util@0.4.8_ramda@0.29.1/node_modules/@ibiz-template/core/out/utils/namespace/namespace.mjs';
|
|
3
3
|
|
|
4
4
|
"use strict";
|
|
5
5
|
function useAppDRTab(c, controlRef, counterData) {
|
|
@@ -160,7 +160,7 @@ export declare const RepeaterGrid: import("vue").DefineComponent<{
|
|
|
160
160
|
srfsessionid: string;
|
|
161
161
|
srfappid: string;
|
|
162
162
|
srfsimple?: boolean | undefined;
|
|
163
|
-
|
|
163
|
+
srfnavctrlid?: string | undefined;
|
|
164
164
|
};
|
|
165
165
|
readonly params: IParams;
|
|
166
166
|
childNames: string[];
|
|
@@ -175,6 +175,7 @@ export declare const RepeaterGrid: import("vue").DefineComponent<{
|
|
|
175
175
|
validate: (parentId?: string | undefined) => Promise<boolean>;
|
|
176
176
|
setDataValue: (name: string, value: unknown) => Promise<void>;
|
|
177
177
|
view: any;
|
|
178
|
+
ctrlId: string;
|
|
178
179
|
layoutPanel?: any | undefined;
|
|
179
180
|
scheduler?: {
|
|
180
181
|
logics: {
|
|
@@ -290,7 +291,7 @@ export declare const RepeaterGrid: import("vue").DefineComponent<{
|
|
|
290
291
|
srfsessionid: string;
|
|
291
292
|
srfappid: string;
|
|
292
293
|
srfsimple?: boolean | undefined;
|
|
293
|
-
|
|
294
|
+
srfnavctrlid?: string | undefined;
|
|
294
295
|
};
|
|
295
296
|
};
|
|
296
297
|
readonly model: {
|
|
@@ -3129,7 +3130,7 @@ export declare const RepeaterGrid: import("vue").DefineComponent<{
|
|
|
3129
3130
|
srfsessionid: string;
|
|
3130
3131
|
srfappid: string;
|
|
3131
3132
|
srfsimple?: boolean | undefined;
|
|
3132
|
-
|
|
3133
|
+
srfnavctrlid?: string | undefined;
|
|
3133
3134
|
};
|
|
3134
3135
|
readonly params: IParams;
|
|
3135
3136
|
childNames: string[];
|
|
@@ -3201,7 +3202,7 @@ export declare const RepeaterGrid: import("vue").DefineComponent<{
|
|
|
3201
3202
|
srfsessionid: string;
|
|
3202
3203
|
srfappid: string;
|
|
3203
3204
|
srfsimple?: boolean | undefined;
|
|
3204
|
-
|
|
3205
|
+
srfnavctrlid?: string | undefined;
|
|
3205
3206
|
};
|
|
3206
3207
|
srfactiveviewdata: IData | null;
|
|
3207
3208
|
};
|
|
@@ -7235,7 +7236,7 @@ export declare const RepeaterGrid: import("vue").DefineComponent<{
|
|
|
7235
7236
|
srfsessionid: string;
|
|
7236
7237
|
srfappid: string;
|
|
7237
7238
|
srfsimple?: boolean | undefined;
|
|
7238
|
-
|
|
7239
|
+
srfnavctrlid?: string | undefined;
|
|
7239
7240
|
};
|
|
7240
7241
|
readonly params: IParams;
|
|
7241
7242
|
childNames: string[];
|
|
@@ -7245,6 +7246,7 @@ export declare const RepeaterGrid: import("vue").DefineComponent<{
|
|
|
7245
7246
|
destroyed: () => Promise<void>;
|
|
7246
7247
|
force: (_callback?: (() => void) | undefined) => void;
|
|
7247
7248
|
};
|
|
7249
|
+
ctrlId: string;
|
|
7248
7250
|
layoutPanel?: {
|
|
7249
7251
|
hooks: {
|
|
7250
7252
|
validate: {
|
|
@@ -7312,7 +7314,7 @@ export declare const RepeaterGrid: import("vue").DefineComponent<{
|
|
|
7312
7314
|
srfsessionid: string;
|
|
7313
7315
|
srfappid: string;
|
|
7314
7316
|
srfsimple?: boolean | undefined;
|
|
7315
|
-
|
|
7317
|
+
srfnavctrlid?: string | undefined;
|
|
7316
7318
|
};
|
|
7317
7319
|
readonly params: IParams;
|
|
7318
7320
|
childNames: string[];
|
|
@@ -7463,7 +7465,7 @@ export declare const RepeaterGrid: import("vue").DefineComponent<{
|
|
|
7463
7465
|
srfsessionid: string;
|
|
7464
7466
|
srfappid: string;
|
|
7465
7467
|
srfsimple?: boolean | undefined;
|
|
7466
|
-
|
|
7468
|
+
srfnavctrlid?: string | undefined;
|
|
7467
7469
|
};
|
|
7468
7470
|
srfactiveviewdata: IData | null;
|
|
7469
7471
|
};
|
|
@@ -11437,7 +11439,7 @@ export declare const RepeaterGrid: import("vue").DefineComponent<{
|
|
|
11437
11439
|
srfsessionid: string;
|
|
11438
11440
|
srfappid: string;
|
|
11439
11441
|
srfsimple?: boolean | undefined;
|
|
11440
|
-
|
|
11442
|
+
srfnavctrlid?: string | undefined;
|
|
11441
11443
|
};
|
|
11442
11444
|
readonly params: IParams;
|
|
11443
11445
|
childNames: string[];
|
|
@@ -11447,6 +11449,7 @@ export declare const RepeaterGrid: import("vue").DefineComponent<{
|
|
|
11447
11449
|
destroyed: () => Promise<void>;
|
|
11448
11450
|
force: (_callback?: (() => void) | undefined) => void;
|
|
11449
11451
|
};
|
|
11452
|
+
ctrlId: string;
|
|
11450
11453
|
layoutPanel?: any | undefined;
|
|
11451
11454
|
scheduler?: {
|
|
11452
11455
|
logics: {
|
|
@@ -11562,7 +11565,7 @@ export declare const RepeaterGrid: import("vue").DefineComponent<{
|
|
|
11562
11565
|
srfsessionid: string;
|
|
11563
11566
|
srfappid: string;
|
|
11564
11567
|
srfsimple?: boolean | undefined;
|
|
11565
|
-
|
|
11568
|
+
srfnavctrlid?: string | undefined;
|
|
11566
11569
|
};
|
|
11567
11570
|
};
|
|
11568
11571
|
readonly model: {
|
|
@@ -14401,7 +14404,7 @@ export declare const RepeaterGrid: import("vue").DefineComponent<{
|
|
|
14401
14404
|
srfsessionid: string;
|
|
14402
14405
|
srfappid: string;
|
|
14403
14406
|
srfsimple?: boolean | undefined;
|
|
14404
|
-
|
|
14407
|
+
srfnavctrlid?: string | undefined;
|
|
14405
14408
|
};
|
|
14406
14409
|
readonly params: IParams;
|
|
14407
14410
|
childNames: string[];
|
|
@@ -14528,7 +14531,7 @@ export declare const RepeaterGrid: import("vue").DefineComponent<{
|
|
|
14528
14531
|
srfsessionid: string;
|
|
14529
14532
|
srfappid: string;
|
|
14530
14533
|
srfsimple?: boolean | undefined;
|
|
14531
|
-
|
|
14534
|
+
srfnavctrlid?: string | undefined;
|
|
14532
14535
|
};
|
|
14533
14536
|
};
|
|
14534
14537
|
readonly model: {
|
|
@@ -18762,7 +18765,7 @@ export declare const RepeaterGrid: import("vue").DefineComponent<{
|
|
|
18762
18765
|
srfsessionid: string;
|
|
18763
18766
|
srfappid: string;
|
|
18764
18767
|
srfsimple?: boolean | undefined;
|
|
18765
|
-
|
|
18768
|
+
srfnavctrlid?: string | undefined;
|
|
18766
18769
|
};
|
|
18767
18770
|
readonly params: IParams;
|
|
18768
18771
|
childNames: string[];
|
|
@@ -342,6 +342,7 @@ function useAppGridBase(c, props) {
|
|
|
342
342
|
const columnC = c.columns[property];
|
|
343
343
|
if (columnC.isAdaptiveColumn) {
|
|
344
344
|
columnC.isAdaptiveColumn = false;
|
|
345
|
+
columnC.model.width = newWidth;
|
|
345
346
|
const index = renderColumns.value.findIndex((renderColumn) => {
|
|
346
347
|
const renderColumnC = c.columns[renderColumn.codeName];
|
|
347
348
|
return renderColumnC.isAdaptiveColumn;
|
package/es/control/list/list.mjs
CHANGED
|
@@ -81,6 +81,15 @@ const ListControl = /* @__PURE__ */ defineComponent({
|
|
|
81
81
|
});
|
|
82
82
|
const infiniteScroll = ref();
|
|
83
83
|
const infiniteScrollKey = ref(createUUID());
|
|
84
|
+
const defaultOpens = ref();
|
|
85
|
+
if (c.controlParams.defaultexpandall === "true") {
|
|
86
|
+
watch(() => c.state.groups, () => {
|
|
87
|
+
if (c.state.groups.length > 0) {
|
|
88
|
+
defaultOpens.value = c.state.groups.map((x) => x.key);
|
|
89
|
+
}
|
|
90
|
+
});
|
|
91
|
+
defaultOpens.value = c.state.groups.map((x) => x.key);
|
|
92
|
+
}
|
|
84
93
|
watch(() => c.state.curPage, () => {
|
|
85
94
|
var _a, _b;
|
|
86
95
|
if (c.state.curPage === 1 && (c.model.pagingMode === 2 || c.model.pagingMode === 3)) {
|
|
@@ -127,7 +136,8 @@ const ListControl = /* @__PURE__ */ defineComponent({
|
|
|
127
136
|
const panel = props.modelData.itemLayoutPanel;
|
|
128
137
|
return createVNode(resolveComponent("el-collapse-item"), {
|
|
129
138
|
"title": showTitle(group.caption),
|
|
130
|
-
"class": ns.be("group-content", "item")
|
|
139
|
+
"class": ns.be("group-content", "item"),
|
|
140
|
+
"name": group.key
|
|
131
141
|
}, {
|
|
132
142
|
default: () => [group.children.length > 0 ? group.children.map((item) => {
|
|
133
143
|
return panel ? renderPanelItem(item, panel) : renderDefaultItem(item);
|
|
@@ -140,6 +150,8 @@ const ListControl = /* @__PURE__ */ defineComponent({
|
|
|
140
150
|
let _slot;
|
|
141
151
|
if (c.model.enableGroup && !c.state.isSimple) {
|
|
142
152
|
return createVNode(resolveComponent("el-collapse"), {
|
|
153
|
+
"modelValue": defaultOpens.value,
|
|
154
|
+
"onUpdate:modelValue": ($event) => defaultOpens.value = $event,
|
|
143
155
|
"class": [ns.b("group-content"), ns.b("content")]
|
|
144
156
|
}, {
|
|
145
157
|
default: () => {
|
|
@@ -85,6 +85,7 @@ export declare const IBizTreeGridControl: import("@ibiz-template/vue3-util").Typ
|
|
|
85
85
|
columns: import("element-plus/es/components/table/src/table-column/defaults").TableColumnCtx<IData>[];
|
|
86
86
|
data: IData[];
|
|
87
87
|
}) => string[];
|
|
88
|
+
headerDragend: (newWidth: number, oldWidth: number, column: IData) => void;
|
|
88
89
|
renderPopover: () => JSX.Element[];
|
|
89
90
|
renderBatchToolBar: () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
90
91
|
[key: string]: any;
|
|
@@ -92,6 +92,7 @@ export declare const TreeGridControl: import("vue").DefineComponent<{
|
|
|
92
92
|
columns: import("element-plus/es/components/table/src/table-column/defaults").TableColumnCtx<IData>[];
|
|
93
93
|
data: IData[];
|
|
94
94
|
}) => string[];
|
|
95
|
+
headerDragend: (newWidth: number, oldWidth: number, column: IData) => void;
|
|
95
96
|
renderPopover: () => JSX.Element[];
|
|
96
97
|
renderBatchToolBar: () => VNode | undefined;
|
|
97
98
|
headerCssVars: IData;
|
|
@@ -81,7 +81,8 @@ const TreeGridControl = /* @__PURE__ */ defineComponent({
|
|
|
81
81
|
tableData,
|
|
82
82
|
renderColumns,
|
|
83
83
|
defaultSort,
|
|
84
|
-
summaryMethod
|
|
84
|
+
summaryMethod,
|
|
85
|
+
headerDragend
|
|
85
86
|
} = useAppGridBase(c, props);
|
|
86
87
|
const {
|
|
87
88
|
renderPopover
|
|
@@ -194,6 +195,7 @@ const TreeGridControl = /* @__PURE__ */ defineComponent({
|
|
|
194
195
|
renderNoData,
|
|
195
196
|
loadData,
|
|
196
197
|
summaryMethod,
|
|
198
|
+
headerDragend,
|
|
197
199
|
renderPopover,
|
|
198
200
|
renderBatchToolBar,
|
|
199
201
|
headerCssVars
|
|
@@ -226,6 +228,7 @@ const TreeGridControl = /* @__PURE__ */ defineComponent({
|
|
|
226
228
|
"onRowDblclick": this.onDbRowClick,
|
|
227
229
|
"onSelectionChange": this.onSelectionChange,
|
|
228
230
|
"onSortChange": this.onSortChange,
|
|
231
|
+
"onHeaderDragend": this.headerDragend,
|
|
229
232
|
"tooltip-effect": "light",
|
|
230
233
|
"tree-props": {
|
|
231
234
|
children: "children",
|
|
@@ -10,7 +10,7 @@ export declare const IBizTreeGridExFieldColumn: import("@ibiz-template/vue3-util
|
|
|
10
10
|
}, {
|
|
11
11
|
ns: import("@ibiz-template/core").Namespace;
|
|
12
12
|
nodeColumn: import("vue").ComputedRef<import("@ibiz-template/runtime").TreeGridExNodeColumnController | undefined>;
|
|
13
|
-
fieldValue: import("vue").
|
|
13
|
+
fieldValue: import("vue").ComputedRef<any>;
|
|
14
14
|
showText: import("vue").ComputedRef<any>;
|
|
15
15
|
clickable: import("vue").ComputedRef<any>;
|
|
16
16
|
tooltip: import("vue").ComputedRef<any>;
|
|
@@ -13,7 +13,7 @@ export declare const TreeGridExFieldColumn: import("vue").DefineComponent<{
|
|
|
13
13
|
}, {
|
|
14
14
|
ns: import("@ibiz-template/core").Namespace;
|
|
15
15
|
nodeColumn: import("vue").ComputedRef<import("@ibiz-template/runtime").TreeGridExNodeColumnController | undefined>;
|
|
16
|
-
fieldValue: import("vue").
|
|
16
|
+
fieldValue: import("vue").ComputedRef<any>;
|
|
17
17
|
showText: import("vue").ComputedRef<any>;
|
|
18
18
|
clickable: import("vue").ComputedRef<any>;
|
|
19
19
|
tooltip: import("vue").ComputedRef<any>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { computed, ref, resolveComponent, createVNode, defineComponent } from 'vue';
|
|
2
2
|
import { useNamespace } from '@ibiz-template/vue3-util';
|
|
3
3
|
import { TreeGridExFieldColumnController, TreeGridExRowState } from '@ibiz-template/runtime';
|
|
4
4
|
import { isNotNil } from 'ramda';
|
|
@@ -20,16 +20,11 @@ const TreeGridExFieldColumn = /* @__PURE__ */ defineComponent({
|
|
|
20
20
|
},
|
|
21
21
|
setup(props) {
|
|
22
22
|
const ns = useNamespace("tree-grid-ex-field-column");
|
|
23
|
-
const fieldValue =
|
|
24
|
-
watch(() => props.row.data, () => {
|
|
23
|
+
const fieldValue = computed(() => {
|
|
25
24
|
if (props.row.data._nodeType !== "DE" && props.controller.isFirstShowColumn) {
|
|
26
|
-
|
|
27
|
-
} else {
|
|
28
|
-
fieldValue.value = props.row.data[props.controller.name];
|
|
25
|
+
return props.row.data._text;
|
|
29
26
|
}
|
|
30
|
-
|
|
31
|
-
deep: true,
|
|
32
|
-
immediate: true
|
|
27
|
+
return props.row.data[props.controller.name];
|
|
33
28
|
});
|
|
34
29
|
const nodeColumn = computed(() => {
|
|
35
30
|
return props.controller.nodeColumnControllerMap.get(props.row.data._nodeId);
|