@ibiz-template/vue3-components 0.7.7 → 0.7.9
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-GAvjatsT.js +4 -0
- package/dist/index-dsmTOMa5.js +1 -0
- package/dist/index-sGpuIVYT.js +1 -0
- package/dist/index.min.css +1 -1
- package/dist/index.system.min.js +1 -1
- package/dist/wang-editor-mq8sQSDK.js +1 -0
- package/dist/{xlsx-util-2u3vZn2l.js → xlsx-util-Fc3O95jH.js} +1 -1
- package/es/control/dashboard/custom-dashboard-container/custom-dashboard-container.d.ts +3 -1
- package/es/control/dashboard/custom-dashboard-container/custom-dashboard-container.mjs +24 -7
- package/es/control/dashboard/dashboard-design/dashboard-design.d.ts +3 -2
- package/es/control/dashboard/dashboard-design/dashboard-design.mjs +29 -30
- package/es/control/dashboard/dashboard.d.ts +1 -0
- package/es/control/dashboard/dashboard.mjs +10 -3
- package/es/control/dashboard/index.d.ts +1 -0
- package/es/control/dashboard/portlet/chart-portlet/chart-portlet.mjs +13 -1
- package/es/control/dashboard/portlet/list-portlet/list-portlet.mjs +13 -1
- package/es/control/dashboard/portlet/portlet-layout/portlet-layout.d.ts +1 -0
- package/es/control/dashboard/portlet/portlet-layout/portlet-layout.mjs +10 -1
- package/es/control/dashboard/portlet/view-portlet/view-portlet.mjs +13 -1
- package/es/control/form/form-detail/form-mdctrl/form-mdctrl.d.ts +1 -0
- package/es/control/form/form-detail/form-mdctrl/form-mdctrl.mjs +3 -1
- package/es/control/form/form-detail/form-mdctrl/index.d.ts +1 -0
- package/es/control/toolbar/toolbar.css +1 -1
- package/es/control/toolbar/toolbar.mjs +14 -3
- package/es/editor/html/html-editor.controller.d.ts +25 -2
- package/es/editor/html/html-editor.controller.mjs +38 -1
- package/es/editor/html/wang-editor/ai/ai-modules.d.ts +9 -0
- package/es/editor/html/wang-editor/ai/ai-modules.mjs +32 -0
- package/es/editor/html/wang-editor/wang-editor.css +1 -1
- package/es/editor/html/wang-editor/wang-editor.mjs +98 -6
- package/es/editor/text-box/input/input.mjs +9 -5
- package/es/locale/en/index.d.ts +204 -0
- package/es/locale/en/index.mjs +205 -0
- package/es/locale/zh-CN/index.d.ts +204 -0
- package/es/locale/zh-CN/index.mjs +205 -0
- package/lib/control/dashboard/custom-dashboard-container/custom-dashboard-container.cjs +23 -6
- package/lib/control/dashboard/dashboard-design/dashboard-design.cjs +29 -30
- package/lib/control/dashboard/dashboard.cjs +9 -2
- package/lib/control/dashboard/portlet/chart-portlet/chart-portlet.cjs +12 -0
- package/lib/control/dashboard/portlet/list-portlet/list-portlet.cjs +12 -0
- package/lib/control/dashboard/portlet/portlet-layout/portlet-layout.cjs +10 -1
- package/lib/control/dashboard/portlet/view-portlet/view-portlet.cjs +12 -0
- package/lib/control/form/form-detail/form-mdctrl/form-mdctrl.cjs +3 -1
- package/lib/control/toolbar/toolbar.cjs +14 -3
- package/lib/control/toolbar/toolbar.css +1 -1
- package/lib/editor/html/html-editor.controller.cjs +37 -0
- package/lib/editor/html/wang-editor/ai/ai-modules.cjs +34 -0
- package/lib/editor/html/wang-editor/wang-editor.cjs +97 -5
- package/lib/editor/html/wang-editor/wang-editor.css +1 -1
- package/lib/editor/text-box/input/input.cjs +9 -5
- package/lib/locale/en/index.cjs +205 -0
- package/lib/locale/zh-CN/index.cjs +205 -0
- package/package.json +7 -7
- package/dist/index-Rqr5SnvQ.js +0 -1
- package/dist/index-ntRuv0hC.js +0 -4
- package/dist/index-x-jLCilD.js +0 -1
- package/dist/wang-editor-0uYWEddj.js +0 -1
|
@@ -112,5 +112,209 @@ declare const _default: {
|
|
|
112
112
|
confirmCancel: string;
|
|
113
113
|
};
|
|
114
114
|
};
|
|
115
|
+
runtime: {
|
|
116
|
+
common: {
|
|
117
|
+
unrealized: string;
|
|
118
|
+
};
|
|
119
|
+
command: {
|
|
120
|
+
app: {
|
|
121
|
+
notFindApplicationFunction: string;
|
|
122
|
+
notFindApplicationFunctionYype: string;
|
|
123
|
+
notFindApplicationView: string;
|
|
124
|
+
};
|
|
125
|
+
};
|
|
126
|
+
controller: {
|
|
127
|
+
common: {
|
|
128
|
+
control: {
|
|
129
|
+
componentActivation: string;
|
|
130
|
+
componentPause: string;
|
|
131
|
+
unsupportedType: string;
|
|
132
|
+
uncheckedData: string;
|
|
133
|
+
dataDeletion: string;
|
|
134
|
+
confirmDataDeletion: string;
|
|
135
|
+
noImportModel: string;
|
|
136
|
+
};
|
|
137
|
+
editor: {
|
|
138
|
+
editorNotConfigured: string;
|
|
139
|
+
};
|
|
140
|
+
view: {
|
|
141
|
+
viewActivation: string;
|
|
142
|
+
viewPause: string;
|
|
143
|
+
viewDestroy: string;
|
|
144
|
+
notFoundViewEngine: string;
|
|
145
|
+
noSupportBehavior: string;
|
|
146
|
+
};
|
|
147
|
+
};
|
|
148
|
+
control: {
|
|
149
|
+
menu: {
|
|
150
|
+
notFindMenu: string;
|
|
151
|
+
noConfigured: string;
|
|
152
|
+
};
|
|
153
|
+
calendar: {
|
|
154
|
+
missingViewLogic: string;
|
|
155
|
+
notFoundModel: string;
|
|
156
|
+
};
|
|
157
|
+
chart: {
|
|
158
|
+
notConfiguredX: string;
|
|
159
|
+
notConfiguredY: string;
|
|
160
|
+
missingClassification: string;
|
|
161
|
+
missingValue: string;
|
|
162
|
+
notSupportSequence: string;
|
|
163
|
+
notFindSequence: string;
|
|
164
|
+
notInitialised: string;
|
|
165
|
+
notCalculated: string;
|
|
166
|
+
};
|
|
167
|
+
dataView: {
|
|
168
|
+
noBehaviourGroup: string;
|
|
169
|
+
noBehaviourGroupAction: string;
|
|
170
|
+
propertiesNotConfigured: string;
|
|
171
|
+
tableNotConfigured: string;
|
|
172
|
+
sortingItems: string;
|
|
173
|
+
};
|
|
174
|
+
expBar: {
|
|
175
|
+
unableMore: string;
|
|
176
|
+
multiNode: string;
|
|
177
|
+
notFindNodeModel: string;
|
|
178
|
+
};
|
|
179
|
+
form: {
|
|
180
|
+
formCompletion: string;
|
|
181
|
+
savedSuccessfully: string;
|
|
182
|
+
prompt: string;
|
|
183
|
+
deletion: string;
|
|
184
|
+
itemUpdate: string;
|
|
185
|
+
processStarted: string;
|
|
186
|
+
processSubmitted: string;
|
|
187
|
+
lackBehavior: string;
|
|
188
|
+
initializationException: string;
|
|
189
|
+
relationshipInterface: string;
|
|
190
|
+
fillIn: string;
|
|
191
|
+
unconfiguredWidgets: string;
|
|
192
|
+
noFoundFormController: string;
|
|
193
|
+
multiDataAddData: string;
|
|
194
|
+
mdControllerNotExist: string;
|
|
195
|
+
repeaterNotSupported: string;
|
|
196
|
+
searchTerms: string;
|
|
197
|
+
saveSearch: string;
|
|
198
|
+
};
|
|
199
|
+
gantt: {
|
|
200
|
+
notNode: string;
|
|
201
|
+
rowData: string;
|
|
202
|
+
simpleMode: string;
|
|
203
|
+
nonentity: string;
|
|
204
|
+
notChange: string;
|
|
205
|
+
dataDeleted: string;
|
|
206
|
+
firstComplete: string;
|
|
207
|
+
notSupport: string;
|
|
208
|
+
};
|
|
209
|
+
grid: {
|
|
210
|
+
unsupported: string;
|
|
211
|
+
attributeColumns: string;
|
|
212
|
+
notCodeTable: string;
|
|
213
|
+
configureFirstColumn: string;
|
|
214
|
+
requiresCodeTable: string;
|
|
215
|
+
notMatchCodeTable: string;
|
|
216
|
+
convertedValue: string;
|
|
217
|
+
missingConfiguration: string;
|
|
218
|
+
newRows: string;
|
|
219
|
+
saveCancel: string;
|
|
220
|
+
notSupportRowEditing: string;
|
|
221
|
+
lineEditing: string;
|
|
222
|
+
updateColumns: string;
|
|
223
|
+
exported: string;
|
|
224
|
+
tabularColumns: string;
|
|
225
|
+
corresponding: string;
|
|
226
|
+
pickedUpData: string;
|
|
227
|
+
notSupportedMode: string;
|
|
228
|
+
remoteAggregation: string;
|
|
229
|
+
aggregateMode: string;
|
|
230
|
+
formattingError: string;
|
|
231
|
+
checksumErrors: string;
|
|
232
|
+
behaviorGroup: string;
|
|
233
|
+
interfaceBehavior: string;
|
|
234
|
+
};
|
|
235
|
+
kanban: {
|
|
236
|
+
sortingProperties: string;
|
|
237
|
+
sortDirection: string;
|
|
238
|
+
groupedOn: string;
|
|
239
|
+
adjustmentsGroup: string;
|
|
240
|
+
notAllowReorder: string;
|
|
241
|
+
};
|
|
242
|
+
meditViewPanel: {
|
|
243
|
+
DraftNew: string;
|
|
244
|
+
dataExist: string;
|
|
245
|
+
};
|
|
246
|
+
panel: {
|
|
247
|
+
panelData: string;
|
|
248
|
+
};
|
|
249
|
+
reportPanel: {
|
|
250
|
+
reportType: string;
|
|
251
|
+
notImplemented: string;
|
|
252
|
+
};
|
|
253
|
+
searchBar: {
|
|
254
|
+
notFoundEntity: string;
|
|
255
|
+
missingModel: string;
|
|
256
|
+
JSONFormat: string;
|
|
257
|
+
};
|
|
258
|
+
toolbar: {
|
|
259
|
+
notFound: string;
|
|
260
|
+
};
|
|
261
|
+
tree: {
|
|
262
|
+
notFoundTreeData: string;
|
|
263
|
+
sortAttribute: string;
|
|
264
|
+
editMode: string;
|
|
265
|
+
nodeData: string;
|
|
266
|
+
notFoundTreeNode: string;
|
|
267
|
+
};
|
|
268
|
+
treeGrid: {
|
|
269
|
+
columnsSchema: string;
|
|
270
|
+
columnMode: string;
|
|
271
|
+
};
|
|
272
|
+
treeGridEx: {
|
|
273
|
+
notConfigured: string;
|
|
274
|
+
editItem: string;
|
|
275
|
+
notPickedUp: string;
|
|
276
|
+
behaviorGroup: string;
|
|
277
|
+
notSupportCreation: string;
|
|
278
|
+
updateBehavior: string;
|
|
279
|
+
};
|
|
280
|
+
wizardPanel: {
|
|
281
|
+
wizardForm: string;
|
|
282
|
+
formController: string;
|
|
283
|
+
noConfiguration: string;
|
|
284
|
+
wizardFormIdentifier: string;
|
|
285
|
+
noPreviousForm: string;
|
|
286
|
+
nextStep: string;
|
|
287
|
+
nextForm: string;
|
|
288
|
+
};
|
|
289
|
+
};
|
|
290
|
+
utils: {
|
|
291
|
+
buttonState: {
|
|
292
|
+
isFinitenconsistency: string;
|
|
293
|
+
};
|
|
294
|
+
counter: {
|
|
295
|
+
decrement: string;
|
|
296
|
+
};
|
|
297
|
+
dataFileUtil: {
|
|
298
|
+
notExist: string;
|
|
299
|
+
loadError: string;
|
|
300
|
+
importData: string;
|
|
301
|
+
};
|
|
302
|
+
valueDefault: {
|
|
303
|
+
notExist: string;
|
|
304
|
+
notsupported: string;
|
|
305
|
+
};
|
|
306
|
+
valueEx: {
|
|
307
|
+
objectNameField: string;
|
|
308
|
+
};
|
|
309
|
+
valueRule: {
|
|
310
|
+
length: string;
|
|
311
|
+
};
|
|
312
|
+
viewMsg: {
|
|
313
|
+
message: string;
|
|
314
|
+
noFound: string;
|
|
315
|
+
};
|
|
316
|
+
};
|
|
317
|
+
};
|
|
318
|
+
};
|
|
115
319
|
};
|
|
116
320
|
export default _default;
|
|
@@ -117,6 +117,211 @@ var index = {
|
|
|
117
117
|
cancelEditPrompt: "\u53D6\u6D88\u7F16\u8F91\u5C06\u65E0\u6CD5\u4FDD\u5B58\u4FEE\u6539\u7684\u5185\u5BB9\uFF0C\u4E14\u4E0D\u80FD\u627E\u56DE\u3002",
|
|
118
118
|
confirmCancel: "\u786E\u8BA4\u53D6\u6D88"
|
|
119
119
|
}
|
|
120
|
+
},
|
|
121
|
+
// runtime
|
|
122
|
+
runtime: {
|
|
123
|
+
common: {
|
|
124
|
+
unrealized: "\u672A\u5B9E\u73B0"
|
|
125
|
+
},
|
|
126
|
+
command: {
|
|
127
|
+
app: {
|
|
128
|
+
notFindApplicationFunction: "\u627E\u4E0D\u5230\u53EB{appFuncId}\u7684\u5E94\u7528\u529F\u80FD",
|
|
129
|
+
notFindApplicationFunctionYype: "\u672A\u652F\u6301\u7684\u5E94\u7528\u529F\u80FD\u7C7B\u578B:{appFuncType}",
|
|
130
|
+
notFindApplicationView: "\u5E94\u7528\u89C6\u56FE[{appViewId}]\u4E0D\u5B58\u5728"
|
|
131
|
+
}
|
|
132
|
+
},
|
|
133
|
+
controller: {
|
|
134
|
+
common: {
|
|
135
|
+
control: {
|
|
136
|
+
componentActivation: "\u90E8\u4EF6[{name}]({id})\u6FC0\u6D3B",
|
|
137
|
+
componentPause: "\u90E8\u4EF6[{name}]({id})\u6682\u505C",
|
|
138
|
+
unsupportedType: "\u4E0D\u652F\u6301\u7684\u5B9E\u4F53\u6570\u636E\u53D8\u66F4\u7C7B\u578B: {type}",
|
|
139
|
+
uncheckedData: "\u672A\u9009\u4E2D\u6570\u636E",
|
|
140
|
+
dataDeletion: "\u6570\u636E\u5220\u9664",
|
|
141
|
+
confirmDataDeletion: "\u786E\u8BA4\u5220\u9664\u6570\u636E\uFF1F",
|
|
142
|
+
noImportModel: "\u6CA1\u6709\u914D\u7F6E\u5BFC\u5165\u6A21\u578B\uFF01"
|
|
143
|
+
},
|
|
144
|
+
editor: {
|
|
145
|
+
editorNotConfigured: "\u7F16\u8F91\u5668\u7C7B\u578B[{editorType}]\uFF0C\u672A\u914D\u7F6E\u4EE3\u7801\u8868"
|
|
146
|
+
},
|
|
147
|
+
view: {
|
|
148
|
+
viewActivation: "\u89C6\u56FE[{name}]({id})\u6FC0\u6D3B",
|
|
149
|
+
viewPause: "\u89C6\u56FE[{name}]({id})\u6682\u505C",
|
|
150
|
+
viewDestroy: "\u89C6\u56FE[{name}]({id})\u9500\u6BC1",
|
|
151
|
+
notFoundViewEngine: "\u672A\u627E\u5230\u89C6\u56FE\u5F15\u64CE\u5B9E\u73B0\uFF1A",
|
|
152
|
+
noSupportBehavior: "\u6CA1\u6709\u5F15\u64CE\u652F\u6301\u9884\u7F6E\u754C\u9762\u884C\u4E3A{key}"
|
|
153
|
+
}
|
|
154
|
+
},
|
|
155
|
+
control: {
|
|
156
|
+
menu: {
|
|
157
|
+
notFindMenu: "\u627E\u4E0D\u5230\u540D\u4E3A{id}\u7684\u83DC\u5355\u9879",
|
|
158
|
+
noConfigured: "\u6CA1\u6709\u914D\u7F6E\u5E94\u7528\u529F\u80FD"
|
|
159
|
+
},
|
|
160
|
+
calendar: {
|
|
161
|
+
missingViewLogic: "\u7F3A\u5C11{itemType}_opendata\u7684\u89C6\u56FE\u903B\u8F91",
|
|
162
|
+
notFoundModel: "\u672A\u627E\u5230\u65E5\u5386\u9879\u6A21\u578B"
|
|
163
|
+
},
|
|
164
|
+
chart: {
|
|
165
|
+
notConfiguredX: "\u5E8F\u5217\u6CA1\u6709\u914D\u7F6EX\u5750\u6807\u8F74",
|
|
166
|
+
notConfiguredY: "\u5E8F\u5217\u6CA1\u6709\u914D\u7F6EY\u5750\u6807\u8F74",
|
|
167
|
+
missingClassification: "\u7F3A\u5C11\u5206\u7C7B\u5C5E\u6027\u914D\u7F6E",
|
|
168
|
+
missingValue: "\u7F3A\u5C11\u503C\u5C5E\u6027\u914D\u7F6E",
|
|
169
|
+
notSupportSequence: "\u56FE\u8868\u6682\u672A\u652F\u6301\u5E8F\u5217\u7C7B\u578B{seriesType}",
|
|
170
|
+
notFindSequence: "\u627E\u4E0D\u5230{seriesIndex}\u5E8F\u5217\u7684generator\uFF01",
|
|
171
|
+
notInitialised: "chart\u5BF9\u8C61\u6CA1\u6709\u6B63\u786E\u521D\u59CB\u5316",
|
|
172
|
+
notCalculated: "options\u8FD8\u6CA1\u8BA1\u7B97"
|
|
173
|
+
},
|
|
174
|
+
dataView: {
|
|
175
|
+
noBehaviourGroup: "\u64CD\u4F5C\u9879\u6CA1\u6709\u914D\u7F6E\u754C\u9762\u884C\u4E3A\u7EC4",
|
|
176
|
+
noBehaviourGroupAction: "\u64CD\u4F5C\u9879\u754C\u9762\u884C\u4E3A\u7EC4\u6CA1\u6709\u914D\u7F6E\u754C\u9762\u884C\u4E3A",
|
|
177
|
+
propertiesNotConfigured: "\u5206\u7EC4\u5C5E\u6027\u6CA1\u6709\u914D\u7F6E",
|
|
178
|
+
tableNotConfigured: "\u5206\u7EC4\u4EE3\u7801\u8868\u6CA1\u6709\u914D\u7F6E",
|
|
179
|
+
sortingItems: "\u542F\u7528\u6392\u5E8F\u7684\u9879\u5FC5\u987B\u5173\u8054\u5B9E\u4F53\u5C5E\u6027"
|
|
180
|
+
},
|
|
181
|
+
expBar: {
|
|
182
|
+
unableMore: "\u65E0\u6CD5\u83B7\u53D6\u591A\u6570\u636E\u90E8\u4EF6[{xdataControlName}]\u63A7\u5236\u5668",
|
|
183
|
+
multiNode: "\u591A\u8282\u70B9\u89C6\u56FE\u7531\u5B50\u7C7B\u5B9E\u73B0",
|
|
184
|
+
notFindNodeModel: "\u627E\u4E0D\u5230{nodeId}\u7684\u8282\u70B9\u6A21\u578B"
|
|
185
|
+
},
|
|
186
|
+
form: {
|
|
187
|
+
formCompletion: "\u8BF7\u68C0\u67E5\u8868\u5355\u586B\u5199\uFF01",
|
|
188
|
+
savedSuccessfully: "{srfmajortext}\u4FDD\u5B58\u6210\u529F",
|
|
189
|
+
prompt: "\u63D0\u793A",
|
|
190
|
+
deletion: "\u786E\u8BA4\u5220\u9664\u5417\uFF1F",
|
|
191
|
+
itemUpdate: "\u6CA1\u627E\u5230{formItemUpdateId}\u8868\u5355\u9879\u66F4\u65B0",
|
|
192
|
+
processStarted: "\u6D41\u7A0B\u542F\u52A8\u6210\u529F",
|
|
193
|
+
processSubmitted: "\u6D41\u7A0B\u63D0\u4EA4\u6210\u529F",
|
|
194
|
+
lackBehavior: "\u7F3A\u5C11\u8FD4\u56DE\u64CD\u4F5C\u5B9E\u4F53\u884C\u4E3A",
|
|
195
|
+
initializationException: "\u521D\u59CB\u5316\u5F02\u5E38: \u8868\u5355\u6210\u5458[{id}]({detailType})\u5DF2\u5B58\u5728\uFF0C\u8868\u5355\u9879\u6807\u8BC6\u91CD\u590D\u8BF7\u68C0\u67E5\u914D\u7F6E",
|
|
196
|
+
relationshipInterface: "\u63A5\u6536\u5230\u5173\u7CFB\u754C\u9762\u7684\u6570\u636E\u53D8\u66F4\u4E8B\u4EF6",
|
|
197
|
+
fillIn: "\u8BF7\u586B\u5199{caption}",
|
|
198
|
+
unconfiguredWidgets: "\u591A\u6570\u636E\u90E8\u4EF6\u672A\u914D\u7F6E\u5185\u5BB9\u90E8\u4EF6",
|
|
199
|
+
noFoundFormController: "\u6CA1\u6709\u627E\u5230\u5BF9\u5E94{id}\u7684\u8868\u5355\u63A7\u5236\u5668",
|
|
200
|
+
multiDataAddData: "\u591A\u6570\u636E\u90E8\u4EF6\u7C7B\u578B{contentType}\u6682\u4E0D\u652F\u6301\u6DFB\u52A0\u6570\u636E",
|
|
201
|
+
mdControllerNotExist: "mdController\u4E0D\u5B58\u5728",
|
|
202
|
+
repeaterNotSupported: "\u6682\u4E0D\u652F\u6301\u91CD\u590D\u5668\u6837\u5F0F{detailStyle}",
|
|
203
|
+
searchTerms: "\u6CA1\u6709\u627E\u5230\u53EF\u4EE5\u5E94\u7528\u7684\u641C\u7D22\u6761\u4EF6",
|
|
204
|
+
saveSearch: "\u6CA1\u6709\u627E\u5230\u4FDD\u5B58\u7684\u641C\u7D22\u6761\u4EF6"
|
|
205
|
+
},
|
|
206
|
+
gantt: {
|
|
207
|
+
notNode: "\u4E0D\u662F\u5B9E\u4F53\u7518\u7279\u8282\u70B9\u6570\u636E",
|
|
208
|
+
rowData: "\u884C\u6570\u636E\u4E0D\u5B58\u5728",
|
|
209
|
+
simpleMode: "\u7B80\u5355\u6A21\u5F0F\uFF0C\u4E0D\u4FDD\u5B58",
|
|
210
|
+
nonentity: "\u975E\u5B9E\u4F53\u8282\u70B9\u6570\u636E\u4E0D\u80FD\u4FDD\u5B58",
|
|
211
|
+
notChange: "\u503C\u6CA1\u6709\u53D1\u751F\u6539\u53D8",
|
|
212
|
+
dataDeleted: "\u6570\u636E[{str}]\u5220\u9664\u6210\u529F!",
|
|
213
|
+
firstComplete: "\u8BF7\u5148\u5B8C\u6210\u5F53\u524D\u884C\u7F16\u8F91\u4E2D\u7684\u884C\u7684\u64CD\u4F5C",
|
|
214
|
+
notSupport: "{treeNodeType}\u8282\u70B9\u7C7B\u578B\u672A\u652F\u6301"
|
|
215
|
+
},
|
|
216
|
+
grid: {
|
|
217
|
+
unsupported: "\u672A\u652F\u6301\u7684\u7C7B\u578B{type}",
|
|
218
|
+
attributeColumns: "\u6CA1\u6709\u914D\u7F6E\u5206\u7EC4\u5C5E\u6027\u7684\u5C5E\u6027\u5217",
|
|
219
|
+
notCodeTable: "\u5206\u7EC4\u5C5E\u6027\u7684\u5C5E\u6027\u5217{groupFieldName}\u6CA1\u6709\u914D\u7F6E\u4EE3\u7801\u8868",
|
|
220
|
+
configureFirstColumn: "\u8BF7\u5C06\u5206\u7EC4\u5C5E\u6027\u5217{groupFieldName}\u914D\u7F6E\u4E3A\u7B2C\u4E00\u5217",
|
|
221
|
+
requiresCodeTable: "\u4EE3\u7801\u8868\u5206\u7EC4\u6A21\u5F0F\u9700\u8981\u914D\u7F6E\u4EE3\u7801\u8868",
|
|
222
|
+
notMatchCodeTable: "\u5206\u7EC4\u4EE3\u7801\u8868\u4E0E\u5C5E\u6027\u5217{groupFieldName}\u7684\u4EE3\u7801\u8868\u4E0D\u4E00\u81F4",
|
|
223
|
+
convertedValue: "{srfmajortext}\u7684\u6392\u5E8F\u5C5E\u6027\u65E0\u6CD5\u8F6C\u6362\u6210\u6570\u503C",
|
|
224
|
+
missingConfiguration: "\u7F3A\u5C11\u914D\u7F6E\u805A\u5408\u5B9E\u4F53\u6216\u805A\u5408\u6570\u636E\u96C6",
|
|
225
|
+
newRows: "\u4E0D\u652F\u6301\u65B0\u5EFA\u884C",
|
|
226
|
+
saveCancel: "\u884C\u6570\u636E\u6821\u9A8C\u4E0D\u901A\u8FC7\uFF0C\u4FDD\u5B58\u53D6\u6D88",
|
|
227
|
+
notSupportRowEditing: "\u5F53\u524D\u8868\u683C\u4E0D\u652F\u6301\u884C\u7F16\u8F91\uFF0C\u65E0\u6CD5\u5207\u6362\u5F00\u542F\u884C\u7F16\u8F91",
|
|
228
|
+
lineEditing: "\u540C\u65F6\u53EA\u80FD\u6709\u4E00\u884C\u5F00\u542F\u884C\u7F16\u8F91",
|
|
229
|
+
updateColumns: "\u6CA1\u627E\u5230{updateId}\u7F16\u8F91\u5217\u66F4\u65B0",
|
|
230
|
+
exported: "\u65E0\u5BFC\u51FA\u6570\u636E",
|
|
231
|
+
tabularColumns: "\u65E0\u8868\u683C\u5217",
|
|
232
|
+
corresponding: "\u672A\u627E\u5230\u5BF9\u5E94\u7684\u8868\u683C\u6570\u636E\u9879[{deField}]",
|
|
233
|
+
pickedUpData: "\u672A\u5728\u884C\u6570\u636E\u4E2D\u53D6\u5230 {valueItem} \u7684\u503C",
|
|
234
|
+
notSupportedMode: "\u6682\u672A\u652F\u6301\u5C5E\u6027\u5217\u805A\u5408\u6A21\u5F0F{aggMode}",
|
|
235
|
+
remoteAggregation: "\u8FDC\u7A0B\u805A\u5408\u6682\u672A\u652F\u6301",
|
|
236
|
+
aggregateMode: "\u6682\u672A\u652F\u6301\u805A\u5408\u6A21\u5F0F{aggMode}",
|
|
237
|
+
formattingError: "{aggValue} \u503C\u683C\u5F0F\u5316\u9519\u8BEF",
|
|
238
|
+
checksumErrors: "{codeName}\u6821\u9A8C\u62A5\u9519,{fieldName}",
|
|
239
|
+
behaviorGroup: "\u64CD\u4F5C\u5217\u6CA1\u6709\u914D\u7F6E\u754C\u9762\u884C\u4E3A\u7EC4",
|
|
240
|
+
interfaceBehavior: "\u64CD\u4F5C\u5217\u754C\u9762\u884C\u4E3A\u7EC4\u6CA1\u6709\u914D\u7F6E\u754C\u9762\u884C\u4E3A"
|
|
241
|
+
},
|
|
242
|
+
kanban: {
|
|
243
|
+
sortingProperties: "\u6392\u5E8F\u5C5E\u6027\u6CA1\u914D\u7F6E",
|
|
244
|
+
sortDirection: "\u6392\u5E8F\u65B9\u5411\u6CA1\u914D\u7F6E",
|
|
245
|
+
groupedOn: "\u770B\u677F\u90E8\u4EF6\u5FC5\u987B\u5F00\u542F\u5206\u7EC4",
|
|
246
|
+
adjustmentsGroup: "\u5F53\u524D\u770B\u677F\u4E0D\u5141\u8BB8\u8C03\u6574\u5206\u7EC4\uFF01",
|
|
247
|
+
notAllowReorder: "\u5F53\u524D\u770B\u677F\u4E0D\u5141\u8BB8\u8C03\u6574\u6B21\u5E8F\uFF01"
|
|
248
|
+
},
|
|
249
|
+
meditViewPanel: {
|
|
250
|
+
DraftNew: "\u8349\u7A3F--\u65B0\u5EFA",
|
|
251
|
+
dataExist: "\u7F16\u8F91\u89C6\u56FE\u9762\u677F\u90E8\u4EF6UI\u6570\u636E\u4E0D\u5B58\u5728"
|
|
252
|
+
},
|
|
253
|
+
panel: {
|
|
254
|
+
panelData: "\u672A\u83B7\u53D6\u5230\u9762\u677F\u6570\u636E"
|
|
255
|
+
},
|
|
256
|
+
reportPanel: {
|
|
257
|
+
reportType: "\u62A5\u8868\u9762\u677F\u751F\u6210\u5668\u5DE5\u5382\u53C2\u6570\u9519\u8BEF\uFF0C\u62A5\u8868\u9762\u677F\u672A\u6307\u5B9A\u62A5\u8868\u7C7B\u578B",
|
|
258
|
+
notImplemented: "\u6307\u5B9A\u62A5\u8868{reportType}\u7C7B\u578B\u62A5\u8868\u9762\u677F\u751F\u6210\u5668\u6682\u672A\u5B9E\u73B0"
|
|
259
|
+
},
|
|
260
|
+
searchBar: {
|
|
261
|
+
notFoundEntity: "\u627E\u4E0D\u5230\u5C5E\u6027{targetField}\u5BF9\u5E94\u7684\u5173\u8054\u5B9E\u4F53",
|
|
262
|
+
missingModel: "\u7F3A\u5C11\u7F16\u8F91\u5668\u6A21\u578B",
|
|
263
|
+
JSONFormat: "{data}\u975E\u6807\u51C6JSON\u683C\u5F0F:"
|
|
264
|
+
},
|
|
265
|
+
toolbar: {
|
|
266
|
+
notFound: "\u6CA1\u6709\u627E\u5230\u754C\u9762\u884C\u4E3A\u6A21\u578B{actionId}"
|
|
267
|
+
},
|
|
268
|
+
tree: {
|
|
269
|
+
notFoundTreeData: "\u627E\u4E0D\u5230\u5BF9\u5E94\u7684\u6811\u8282\u70B9\u6570\u636E",
|
|
270
|
+
sortAttribute: "\u7F3A\u5C11\u914D\u7F6E\u6392\u5E8F\u5C5E\u6027",
|
|
271
|
+
editMode: "\u6811\u8282\u70B9\u6CA1\u6709\u914D\u7F6E\u7F16\u8F91\u6A21\u5F0F\uFF1A\u540D\u79F0",
|
|
272
|
+
nodeData: "\u4E0D\u662F\u5B9E\u4F53\u6811\u8282\u70B9\u6570\u636E",
|
|
273
|
+
notFoundTreeNode: "\u672A\u627E\u5230\u6811\u8282\u70B9"
|
|
274
|
+
},
|
|
275
|
+
treeGrid: {
|
|
276
|
+
columnsSchema: "\u6811\u8868\u683C\u65E0\u503C\u5217\u6A21\u5F0F",
|
|
277
|
+
columnMode: "\u6811\u8868\u683C\u65E0\u7236\u503C\u5217\u6A21\u5F0F"
|
|
278
|
+
},
|
|
279
|
+
treeGridEx: {
|
|
280
|
+
notConfigured: "\u8282\u70B9\u6CA1\u6709\u914D\u7F6E\u5BF9\u5E94\u8868\u683C\u5217{name}\u7684\u6570\u636E\u9879",
|
|
281
|
+
editItem: "\u6CA1\u6709\u627E\u5230\u5BF9\u5E94\u8868\u683C\u5217{name}\u7684\u7F16\u8F91\u9879\u6A21\u578B",
|
|
282
|
+
notPickedUp: "\u672A\u5728\u884C\u6570\u636E\u4E2D\u53D6\u5230 {valueItem} \u7684\u503C",
|
|
283
|
+
behaviorGroup: "{id}\u64CD\u4F5C\u5217\u6CA1\u6709\u914D\u7F6E\u754C\u9762\u884C\u4E3A\u7EC4",
|
|
284
|
+
notSupportCreation: "\u6682\u4E0D\u652F\u6301\u65B0\u5EFA",
|
|
285
|
+
updateBehavior: "\u6811\u8282\u70B9\u6CA1\u6709\u914D\u7F6E\u66F4\u65B0\u5B9E\u4F53\u884C\u4E3A"
|
|
286
|
+
},
|
|
287
|
+
wizardPanel: {
|
|
288
|
+
wizardForm: "\u627E\u4E0D\u5230{activeFormTag}\u7684\u5411\u5BFC\u8868\u5355",
|
|
289
|
+
formController: "\u627E\u4E0D\u5230{activeFormTag}\u7684\u8868\u5355\u63A7\u5236\u5668",
|
|
290
|
+
noConfiguration: "\u6CA1\u6709\u914D\u7F6E\u5411\u5BFC\u8868\u5355\u96C6\u5408",
|
|
291
|
+
wizardFormIdentifier: "\u627E\u4E0D\u5230\u6807\u8BC6\u4E3A{tag}\u7684\u5411\u5BFC\u8868\u5355",
|
|
292
|
+
noPreviousForm: "\u6CA1\u6709\u4E0A\u4E00\u4E2A\u8868\u5355",
|
|
293
|
+
nextStep: "\u627E\u4E0D\u5230\u4E0B\u4E00\u4E2A\u5411\u5BFC\u6B65\u9AA4",
|
|
294
|
+
nextForm: "\u627E\u4E0D\u5230\u4E0B\u4E00\u4E2A\u5411\u5BFC\u8868\u5355"
|
|
295
|
+
}
|
|
296
|
+
},
|
|
297
|
+
utils: {
|
|
298
|
+
buttonState: {
|
|
299
|
+
isFinitenconsistency: "{uiActionId}\u754C\u9762\u884C\u4E3A\u7684\u5B9E\u4F53{appDeName}\u548C\u6570\u636E\u7684\u5B9E\u4F53{appDeId}\u4E0D\u4E00\u81F4"
|
|
300
|
+
},
|
|
301
|
+
counter: {
|
|
302
|
+
decrement: "\u9519\u8BEF\u7684\u8C03\u7528\uFF01decrement\u4E0D\u80FD\u5BF9count\u4E3A0\u8C03\u7528"
|
|
303
|
+
},
|
|
304
|
+
dataFileUtil: {
|
|
305
|
+
notExist: "ibiz.util.getExportExcel\u4E0D\u5B58\u5728",
|
|
306
|
+
loadError: "\u5BFC\u51FA\u6A21\u5757\u52A0\u8F7D\u9519\u8BEF",
|
|
307
|
+
importData: "\u6CA1\u6709\u627E\u5230\u5BF9\u5E94\u7684\u5BFC\u5165\u6570\u636E\u6A21\u578B"
|
|
308
|
+
},
|
|
309
|
+
valueDefault: {
|
|
310
|
+
notExist: "appdata.context\u4E0D\u5B58\u5728",
|
|
311
|
+
notsupported: "\u9ED8\u8BA4\u503C\u7C7B\u578B[{valueType}]\u672A\u652F\u6301"
|
|
312
|
+
},
|
|
313
|
+
valueEx: {
|
|
314
|
+
objectNameField: "\u7F3A\u5C11objectNameField"
|
|
315
|
+
},
|
|
316
|
+
valueRule: {
|
|
317
|
+
length: "\u5185\u5BB9\u957F\u5EA6\u5FC5\u987B\u5C0F\u4E8E\u7B49\u4E8E{maxLength},\u5F53\u524D\u957F\u5EA6\u4E3A{length}"
|
|
318
|
+
},
|
|
319
|
+
viewMsg: {
|
|
320
|
+
message: "\u627E\u4E0D\u5230\u89C6\u56FE\u6D88\u606F\u7EC4{msgGroupId}\u7684\u6A21\u578B",
|
|
321
|
+
noFound: "\u6CA1\u6709\u627E\u5230{message}\u89C6\u56FE\u6D88\u606F\u6A21\u578B"
|
|
322
|
+
}
|
|
323
|
+
}
|
|
324
|
+
}
|
|
120
325
|
}
|
|
121
326
|
};
|
|
122
327
|
|
|
@@ -56,23 +56,38 @@ const CustomDashboardContainer = /* @__PURE__ */ vue.defineComponent({
|
|
|
56
56
|
}
|
|
57
57
|
return tempModelDatas;
|
|
58
58
|
};
|
|
59
|
-
const
|
|
59
|
+
const handleCustomModelChange = async (args) => {
|
|
60
|
+
await props.dashboard.initPortlets(args.model);
|
|
61
|
+
await props.dashboard.initPortletsConfig(args.config);
|
|
62
|
+
};
|
|
63
|
+
const onSaved = async (args) => {
|
|
60
64
|
isShowDesign.value = false;
|
|
61
65
|
const tempModelDatas = convertData(args.model);
|
|
66
|
+
await handleCustomModelChange({
|
|
67
|
+
model: tempModelDatas,
|
|
68
|
+
config: args.config
|
|
69
|
+
});
|
|
70
|
+
await props.dashboard.evt.emit("onSavePortlet", void 0);
|
|
62
71
|
emit("changed", {
|
|
63
72
|
model: tempModelDatas
|
|
64
73
|
});
|
|
65
74
|
};
|
|
75
|
+
const onReset = async () => {
|
|
76
|
+
isInited.value = false;
|
|
77
|
+
isShowDesign.value = false;
|
|
78
|
+
await props.dashboard.resetPortlets();
|
|
79
|
+
await vue.nextTick();
|
|
80
|
+
isInited.value = true;
|
|
81
|
+
};
|
|
66
82
|
const isShowDefault = vue.computed(() => {
|
|
67
83
|
return customC.customModelData.length === 0;
|
|
68
84
|
});
|
|
69
|
-
const handleCustomModelChange = async (args) => {
|
|
70
|
-
await props.dashboard.initPortlets(args.model);
|
|
71
|
-
await props.dashboard.initPortletsConfig(args.config);
|
|
72
|
-
};
|
|
73
85
|
vue.onMounted(async () => {
|
|
74
86
|
const response = await customC.loadCustomModelData();
|
|
75
87
|
const tempModelDatas = convertData(response.model);
|
|
88
|
+
emit("changed", {
|
|
89
|
+
model: tempModelDatas
|
|
90
|
+
});
|
|
76
91
|
await handleCustomModelChange({
|
|
77
92
|
model: tempModelDatas,
|
|
78
93
|
config: response.config
|
|
@@ -97,6 +112,7 @@ const CustomDashboardContainer = /* @__PURE__ */ vue.defineComponent({
|
|
|
97
112
|
showTypeDir,
|
|
98
113
|
openDesign,
|
|
99
114
|
onSaved,
|
|
115
|
+
onReset,
|
|
100
116
|
clickCollapse
|
|
101
117
|
};
|
|
102
118
|
},
|
|
@@ -139,7 +155,8 @@ const CustomDashboardContainer = /* @__PURE__ */ vue.defineComponent({
|
|
|
139
155
|
"dashboard": this.dashboard,
|
|
140
156
|
"custom-dashboard": this.customC,
|
|
141
157
|
"is-show-design": this.isShowDesign,
|
|
142
|
-
"onSaved": this.onSaved
|
|
158
|
+
"onSaved": this.onSaved,
|
|
159
|
+
"onReset": this.onReset
|
|
143
160
|
}, null)]
|
|
144
161
|
}), this.isInited && (this.isShowDefault ? (_b = (_a = this.$slots).default) == null ? void 0 : _b.call(_a) : this.customC.customModelData.map((item) => {
|
|
145
162
|
var _a2, _b2;
|
|
@@ -26,7 +26,7 @@ const DashboardDesign = /* @__PURE__ */ vue.defineComponent({
|
|
|
26
26
|
required: true
|
|
27
27
|
}
|
|
28
28
|
},
|
|
29
|
-
emits: ["saved"],
|
|
29
|
+
emits: ["saved", "reset"],
|
|
30
30
|
setup(props, {
|
|
31
31
|
emit
|
|
32
32
|
}) {
|
|
@@ -102,12 +102,25 @@ const DashboardDesign = /* @__PURE__ */ vue.defineComponent({
|
|
|
102
102
|
const list2 = [];
|
|
103
103
|
const app = ibiz.hub.getApp(ibiz.env.appId);
|
|
104
104
|
if (app.model.appPortletCats && app.model.appPortlets) {
|
|
105
|
+
const isDEView = customC.model.appDataEntityId;
|
|
106
|
+
const categoryTag = props.dashboard.controlParams.categorytag;
|
|
105
107
|
app.model.appPortlets.forEach((portlet) => {
|
|
106
108
|
var _a;
|
|
109
|
+
if (!isDEView && !portlet.enableAppDashboard) {
|
|
110
|
+
return;
|
|
111
|
+
}
|
|
112
|
+
if (isDEView && !portlet.enableDEDashboard) {
|
|
113
|
+
return;
|
|
114
|
+
}
|
|
107
115
|
const portletCat = (_a = app.model.appPortletCats) == null ? void 0 : _a.find((cat) => {
|
|
108
116
|
var _a2;
|
|
109
117
|
return cat.codeName === ((_a2 = portlet.appPortletCat) == null ? void 0 : _a2.codeName);
|
|
110
118
|
});
|
|
119
|
+
if (categoryTag) {
|
|
120
|
+
if (!portletCat || portletCat.codeName !== categoryTag) {
|
|
121
|
+
return;
|
|
122
|
+
}
|
|
123
|
+
}
|
|
111
124
|
const temp = {
|
|
112
125
|
type: "app",
|
|
113
126
|
portletCodeName: portlet.codeName,
|
|
@@ -145,11 +158,8 @@ const DashboardDesign = /* @__PURE__ */ vue.defineComponent({
|
|
|
145
158
|
if (filterVal.value) {
|
|
146
159
|
tempOpens = [filterVal.value];
|
|
147
160
|
} else {
|
|
148
|
-
|
|
149
|
-
tempOpens.push(item.
|
|
150
|
-
item.children.forEach((child, index2) => {
|
|
151
|
-
tempOpens.push(child.type + index2);
|
|
152
|
-
});
|
|
161
|
+
groups.value.forEach((item, index) => {
|
|
162
|
+
tempOpens.push(item.value + index);
|
|
153
163
|
});
|
|
154
164
|
}
|
|
155
165
|
return tempOpens;
|
|
@@ -221,13 +231,17 @@ const DashboardDesign = /* @__PURE__ */ vue.defineComponent({
|
|
|
221
231
|
const model = layoutModel.value.find((item) => item.i === child.portletCodeName);
|
|
222
232
|
return !!model;
|
|
223
233
|
};
|
|
224
|
-
const onReset = () => {
|
|
225
|
-
|
|
234
|
+
const onReset = async () => {
|
|
235
|
+
const res = await customC.resetCustomModelData();
|
|
236
|
+
layoutModel.value = res.model;
|
|
237
|
+
layoutConfig.value = res.config;
|
|
238
|
+
emit("reset");
|
|
226
239
|
};
|
|
227
240
|
const onSave = async () => {
|
|
228
241
|
const res = await customC.saveCustomModelData(layoutModel.value);
|
|
229
242
|
emit("saved", {
|
|
230
|
-
model: res.model
|
|
243
|
+
model: res.model,
|
|
244
|
+
config: res.config
|
|
231
245
|
});
|
|
232
246
|
};
|
|
233
247
|
const removeItem = async (child) => {
|
|
@@ -359,32 +373,17 @@ const DashboardDesign = /* @__PURE__ */ vue.defineComponent({
|
|
|
359
373
|
"class": this.ns.is("no-filter", true),
|
|
360
374
|
"default-openeds": this.defaultOpens,
|
|
361
375
|
"key": "default"
|
|
362
|
-
}, _isSlot(_slot2 = this.
|
|
376
|
+
}, _isSlot(_slot2 = this.groups.map((group, index) => {
|
|
363
377
|
return vue.createVNode(vue.resolveComponent("el-sub-menu"), {
|
|
364
|
-
"key":
|
|
365
|
-
"index":
|
|
378
|
+
"key": group.value + index,
|
|
379
|
+
"index": group.value + index
|
|
366
380
|
}, {
|
|
367
381
|
title: () => {
|
|
368
|
-
|
|
369
|
-
return ibiz.i18n.t("control.dashboard.dashboardDesign.global");
|
|
370
|
-
}
|
|
371
|
-
return item.name;
|
|
382
|
+
return group.name;
|
|
372
383
|
},
|
|
373
384
|
default: () => {
|
|
374
|
-
return
|
|
375
|
-
return
|
|
376
|
-
"key": child.type + index2,
|
|
377
|
-
"index": child.type + index2
|
|
378
|
-
}, {
|
|
379
|
-
title: () => {
|
|
380
|
-
return child.name;
|
|
381
|
-
},
|
|
382
|
-
default: () => {
|
|
383
|
-
return child.children.map((child2) => {
|
|
384
|
-
return renderElMenuItem(child2);
|
|
385
|
-
});
|
|
386
|
-
}
|
|
387
|
-
});
|
|
385
|
+
return group.children.map((child) => {
|
|
386
|
+
return renderElMenuItem(child);
|
|
388
387
|
});
|
|
389
388
|
}
|
|
390
389
|
});
|
|
@@ -58,6 +58,7 @@ const DashboardControl = /* @__PURE__ */ vue.defineComponent({
|
|
|
58
58
|
},
|
|
59
59
|
setup() {
|
|
60
60
|
const c = vue3Util.useControlController((...args) => new runtime.DashboardController(...args));
|
|
61
|
+
const vue$1 = vue.getCurrentInstance().proxy;
|
|
61
62
|
const customModelDatas = vue.ref([]);
|
|
62
63
|
const ns = vue3Util.useNamespace("control-".concat(c.model.controlType.toLowerCase()));
|
|
63
64
|
c.evt.on("onCreated", () => {
|
|
@@ -65,10 +66,15 @@ const DashboardControl = /* @__PURE__ */ vue.defineComponent({
|
|
|
65
66
|
portlet.state = vue.reactive(portlet.state);
|
|
66
67
|
});
|
|
67
68
|
});
|
|
69
|
+
const handleCustomModelChange = (args) => {
|
|
70
|
+
customModelDatas.value = args.model;
|
|
71
|
+
vue$1.$forceUpdate();
|
|
72
|
+
};
|
|
68
73
|
return {
|
|
69
74
|
c,
|
|
70
75
|
ns,
|
|
71
|
-
customModelDatas
|
|
76
|
+
customModelDatas,
|
|
77
|
+
handleCustomModelChange
|
|
72
78
|
};
|
|
73
79
|
},
|
|
74
80
|
render() {
|
|
@@ -114,7 +120,8 @@ const DashboardControl = /* @__PURE__ */ vue.defineComponent({
|
|
|
114
120
|
}, {
|
|
115
121
|
default: () => [state.isCreated && (model.enableCustomized ? vue.createVNode(vue.resolveComponent("iBizCustomDashboardContainer"), {
|
|
116
122
|
"modelData": this.modelData,
|
|
117
|
-
"dashboard": this.c
|
|
123
|
+
"dashboard": this.c,
|
|
124
|
+
"onChanged": this.handleCustomModelChange
|
|
118
125
|
}, _isSlot(_slot2 = renderCustomSlots()) ? _slot2 : {
|
|
119
126
|
default: () => [_slot2]
|
|
120
127
|
}) : renderDefaultContent())]
|
|
@@ -26,6 +26,18 @@ const ChartPortlet = /* @__PURE__ */ vue.defineComponent({
|
|
|
26
26
|
const chart = (_b = props.modelData.controls) == null ? void 0 : _b.find((item) => {
|
|
27
27
|
return item.controlType === runtime.ControlType.CHART;
|
|
28
28
|
});
|
|
29
|
+
let timerTag;
|
|
30
|
+
vue.onMounted(() => {
|
|
31
|
+
const timer = props.controller.model.timer;
|
|
32
|
+
if (timer && timer > 0) {
|
|
33
|
+
timerTag = setInterval(() => {
|
|
34
|
+
props.controller.refresh();
|
|
35
|
+
}, timer);
|
|
36
|
+
}
|
|
37
|
+
});
|
|
38
|
+
vue.onBeforeUnmount(() => {
|
|
39
|
+
clearInterval(timerTag);
|
|
40
|
+
});
|
|
29
41
|
return {
|
|
30
42
|
ns,
|
|
31
43
|
chart
|
|
@@ -26,6 +26,18 @@ const ListPortlet = /* @__PURE__ */ vue.defineComponent({
|
|
|
26
26
|
const list = (_b = props.modelData.controls) == null ? void 0 : _b.find((item) => {
|
|
27
27
|
return item.controlType === runtime.ControlType.LIST;
|
|
28
28
|
});
|
|
29
|
+
let timerTag;
|
|
30
|
+
vue.onMounted(() => {
|
|
31
|
+
const timer = props.controller.model.timer;
|
|
32
|
+
if (timer && timer > 0) {
|
|
33
|
+
timerTag = setInterval(() => {
|
|
34
|
+
props.controller.refresh();
|
|
35
|
+
}, timer);
|
|
36
|
+
}
|
|
37
|
+
});
|
|
38
|
+
vue.onBeforeUnmount(() => {
|
|
39
|
+
clearInterval(timerTag);
|
|
40
|
+
});
|
|
29
41
|
return {
|
|
30
42
|
ns,
|
|
31
43
|
list
|