hy-dispatch-ui-v3 0.2.76 → 0.2.78
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/tailwind.css +91 -8
- package/es/api/common.mjs +28 -0
- package/es/bussiness/hyAcquisitionStationTree/acquisitionStationTree.install.mjs +6 -0
- package/es/bussiness/hyDepartmentTypeOperation/departmentTypeOperation2.install.mjs +6 -0
- package/es/bussiness/hyDepartmentTypeOperation/departmentTypeOperation2.vue.mjs +109 -121
- package/es/bussiness/hyDepartmentTypeOperation/departmentTypeOperation_tiantong2.install.mjs +6 -0
- package/es/bussiness/hyDepartmentTypeOperation/departmentTypeOperation_tiantong2.vue.mjs +108 -117
- package/es/bussiness/hyDepartmentTypeOperation/index.mjs +4 -1
- package/es/bussiness/hyDepartmentTypeOperation/locale/en_US.mjs +7 -7
- package/es/bussiness/hyDepartmentTypeOperation/locale/zh_CN.mjs +6 -6
- package/es/bussiness/hyDeviceTree/deviceTree.install.mjs +6 -0
- package/es/bussiness/hyDisplayQueryAddress/displayQueryAddress.vue.mjs +5 -0
- package/es/bussiness/hyDisplayQueryAddress/displayQueryAddress2.install.mjs +6 -0
- package/es/bussiness/hyDisplayQueryAddress/displayQueryAddress2.vue.mjs +182 -0
- package/es/bussiness/hyDisplayQueryAddress/index.mjs +8 -0
- package/es/bussiness/hyDisplayQueryAddress/locale/en_US.mjs +7 -0
- package/es/bussiness/hyDisplayQueryAddress/locale/index.mjs +2 -0
- package/es/bussiness/hyDisplayQueryAddress/locale/zh_CN.mjs +7 -0
- package/es/bussiness/hyDisplayQueryAddress/style/dialog.scss +0 -0
- package/es/bussiness/hyElectronicFence/cpns/addElectronicFenceDialog/addElectronicFenceDialog.install.mjs +6 -0
- package/es/bussiness/hyElectronicFence/cpns/addElectronicFenceDialog/addElectronicFenceDialog.vue.mjs +2 -2
- package/es/bussiness/hyElectronicFence/cpns/batchSetElectronicFenceUserDialog/batchSetElectronicFenceUserDialog.install.mjs +6 -0
- package/es/bussiness/hyElectronicFence/cpns/electronicFenceAssociatedUsersDialog/electronicFenceAssociatedUsersDialog.install.mjs +6 -0
- package/es/bussiness/hyElectronicFence/cpns/electronicFenceAssociatedUsersDialog/electronicFenceAssociatedUsersItem.install.mjs +6 -0
- package/es/bussiness/hyElectronicFence/electronicFence.install.mjs +6 -0
- package/es/bussiness/hyFilePlayback/cpns/audioDetail.vue.mjs +5 -0
- package/es/bussiness/hyFilePlayback/cpns/audioDetail2.install.mjs +6 -0
- package/es/bussiness/hyFilePlayback/cpns/audioDetail2.vue.mjs +247 -0
- package/es/bussiness/hyFilePlayback/cpns/picDetail.vue.mjs +5 -0
- package/es/bussiness/hyFilePlayback/cpns/picDetail2.install.mjs +6 -0
- package/es/bussiness/hyFilePlayback/cpns/picDetail2.vue.mjs +206 -0
- package/es/bussiness/hyFilePlayback/cpns/videoDetail.vue.mjs +5 -0
- package/es/bussiness/hyFilePlayback/cpns/videoDetail2.install.mjs +6 -0
- package/es/bussiness/hyFilePlayback/cpns/videoDetail2.vue.mjs +238 -0
- package/es/bussiness/hyFilePlayback/filePlayback.vue.mjs +5 -0
- package/es/bussiness/hyFilePlayback/filePlayback2.install.mjs +6 -0
- package/es/bussiness/hyFilePlayback/filePlayback2.vue.mjs +166 -0
- package/es/bussiness/hyFilePlayback/index.mjs +8 -0
- package/es/bussiness/hyFilePlayback/locale/en_US.mjs +22 -0
- package/es/bussiness/hyFilePlayback/locale/index.mjs +2 -0
- package/es/bussiness/hyFilePlayback/locale/zh_CN.mjs +22 -0
- package/es/bussiness/hyFilePlayback/style/filePlayback.scss +2 -0
- package/es/bussiness/hyMapAearchPlace/mapAearchPlace.install.mjs +6 -0
- package/es/bussiness/hyMapAearchPlace/mapAearchPlaceItem.install.mjs +6 -0
- package/es/bussiness/hyOrgGroupTree/orgGroupTree.install.mjs +6 -0
- package/es/bussiness/hyPlanGroupDeviceTree/planGroupDeviceTree.install.mjs +6 -0
- package/es/bussiness/hyRuleSetting/cpns/gatheringPeople/gatheringPeople.install.mjs +6 -0
- package/es/bussiness/hyRuleSetting/cpns/missionInRule/missionInRule.install.mjs +6 -0
- package/es/bussiness/hyRuleSetting/cpns/missionOutRule/missionOutRule.install.mjs +6 -0
- package/es/bussiness/hyRuleSetting/cpns/ruleAssignDialog/ruleAssignDialog.install.mjs +6 -0
- package/es/bussiness/hyRuleSetting/cpns/ruleFenceDialog/ruleFenceDialog.install.mjs +6 -0
- package/es/bussiness/hyRuleSetting/cpns/ruleSettingDialog/ruleSettingDialog.install.mjs +6 -0
- package/es/bussiness/hyRuleSetting/cpns/sedentary/sedentary.install.mjs +6 -0
- package/es/bussiness/hyRuleSetting/cpns/setRuleAggregationAlarmDialog/setRuleAggregationAlarmDialog.install.mjs +6 -0
- package/es/bussiness/hyRuleSetting/cpns/timedVideo/timedVideo.install.mjs +6 -0
- package/es/bussiness/hyRuleSetting/cpns/timerCamera/timerCamera.install.mjs +6 -0
- package/es/bussiness/hyRuleSetting/cpns/timingReturn/timingReturn.install.mjs +6 -0
- package/es/bussiness/hyRuleSetting/ruleSetting.install.mjs +6 -0
- package/es/bussiness/hyUserTree/userTree.install.mjs +6 -0
- package/es/bussiness/index.mjs +3 -2
- package/es/components/hyCutter/cutter.vue.mjs +2 -2
- package/es/components/hyForm/cpns/arrayItem.vue.mjs +2 -2
- package/es/components/hyForm/cpns/formItem.vue.mjs +3 -2
- package/es/components/hyForm/js/index.mjs +2 -8
- package/es/components/hySearch/cpns/searchItem.vue.mjs +57 -67
- package/es/components/hySearch/js/index.mjs +1 -35
- package/es/components/hySearch/js/useAppSearch.mjs +3 -3
- package/es/components/hySearch/style/search.scss +1 -0
- package/es/components/hyTable/cpns/virtualTable.vue.mjs +5 -5
- package/es/components/hyTable/js/index.mjs +44 -4
- package/es/components/hyTable/js/search.mjs +0 -6
- package/es/components/hyTable/table.vue.mjs +47 -30
- package/es/components/hyTooltip/tooltip.vue.mjs +14 -6
- package/es/components/hyUserAvatar/userAvatar.vue.mjs +1 -1
- package/es/components/hyVideoPlayer/videoPlayer.vue.mjs +3 -3
- package/es/components-map.mjs +19 -10
- package/es/hooks/index.mjs +1 -0
- package/es/hooks/useBaseMainStore.mjs +16 -5
- package/es/hooks/useCurrentBus.mjs +5 -4
- package/es/hooks/useDialog.mjs +2 -2
- package/es/hooks/useGlobalConfig.mjs +26 -16
- package/es/hooks/useVersionControl.mjs +34 -0
- package/es/index.mjs +7 -4
- package/es/locale/en_US.mjs +1 -0
- package/es/locale/zh_CN.mjs +1 -0
- package/es/style/index.scss +2 -2
- package/es/utils/file.mjs +1 -2
- package/es/utils/form.mjs +70 -7
- package/es/utils/index.mjs +3 -2
- package/es/utils/map/hook/leafletjs.mjs +4 -0
- package/es/utils/map/index.mjs +4 -0
- package/es/utils/timeUtils.mjs +95 -0
- package/es/utils/useUiComponent.mjs +34 -0
- package/es/version.mjs +1 -1
- package/lib/api/common.js +33 -0
- package/lib/bussiness/hyAcquisitionStationTree/acquisitionStationTree.install.js +6 -0
- package/lib/bussiness/hyDepartmentTypeOperation/departmentTypeOperation2.install.js +6 -0
- package/lib/bussiness/hyDepartmentTypeOperation/departmentTypeOperation2.vue.js +107 -119
- package/lib/bussiness/hyDepartmentTypeOperation/departmentTypeOperation_tiantong2.install.js +6 -0
- package/lib/bussiness/hyDepartmentTypeOperation/departmentTypeOperation_tiantong2.vue.js +107 -116
- package/lib/bussiness/hyDepartmentTypeOperation/index.js +4 -0
- package/lib/bussiness/hyDepartmentTypeOperation/locale/en_US.js +7 -7
- package/lib/bussiness/hyDepartmentTypeOperation/locale/zh_CN.js +6 -6
- package/lib/bussiness/hyDeviceTree/deviceTree.install.js +6 -0
- package/lib/bussiness/hyDisplayQueryAddress/displayQueryAddress.install.js +6 -0
- package/lib/bussiness/hyDisplayQueryAddress/displayQueryAddress.vue.js +9 -0
- package/lib/bussiness/hyDisplayQueryAddress/displayQueryAddress2.install.js +6 -0
- package/lib/bussiness/hyDisplayQueryAddress/displayQueryAddress2.vue.js +186 -0
- package/lib/bussiness/hyDisplayQueryAddress/index.js +13 -0
- package/lib/bussiness/hyDisplayQueryAddress/locale/en_US.js +11 -0
- package/lib/bussiness/hyDisplayQueryAddress/locale/index.js +9 -0
- package/lib/bussiness/hyDisplayQueryAddress/locale/zh_CN.js +11 -0
- package/lib/bussiness/hyDisplayQueryAddress/style/dialog.scss +0 -0
- package/lib/bussiness/hyElectronicFence/cpns/addElectronicFenceDialog/addElectronicFenceDialog.install.js +6 -0
- package/lib/bussiness/hyElectronicFence/cpns/addElectronicFenceDialog/addElectronicFenceDialog.vue.js +11 -11
- package/lib/bussiness/hyElectronicFence/cpns/batchSetElectronicFenceUserDialog/batchSetElectronicFenceUserDialog.install.js +6 -0
- package/lib/bussiness/hyElectronicFence/cpns/electronicFenceAssociatedUsersDialog/electronicFenceAssociatedUsersDialog.install.js +6 -0
- package/lib/bussiness/hyElectronicFence/cpns/electronicFenceAssociatedUsersDialog/electronicFenceAssociatedUsersItem.install.js +6 -0
- package/lib/bussiness/hyElectronicFence/electronicFence.install.js +6 -0
- package/lib/bussiness/hyFilePlayback/cpns/audioDetail.install.js +6 -0
- package/lib/bussiness/hyFilePlayback/cpns/audioDetail.vue.js +9 -0
- package/lib/bussiness/hyFilePlayback/cpns/audioDetail2.install.js +6 -0
- package/lib/bussiness/hyFilePlayback/cpns/audioDetail2.vue.js +251 -0
- package/lib/bussiness/hyFilePlayback/cpns/picDetail.install.js +6 -0
- package/lib/bussiness/hyFilePlayback/cpns/picDetail.vue.js +9 -0
- package/lib/bussiness/hyFilePlayback/cpns/picDetail2.install.js +6 -0
- package/lib/bussiness/hyFilePlayback/cpns/picDetail2.vue.js +210 -0
- package/lib/bussiness/hyFilePlayback/cpns/videoDetail.install.js +6 -0
- package/lib/bussiness/hyFilePlayback/cpns/videoDetail.vue.js +9 -0
- package/lib/bussiness/hyFilePlayback/cpns/videoDetail2.install.js +6 -0
- package/lib/bussiness/hyFilePlayback/cpns/videoDetail2.vue.js +242 -0
- package/lib/bussiness/hyFilePlayback/filePlayback.install.js +6 -0
- package/lib/bussiness/hyFilePlayback/filePlayback.vue.js +9 -0
- package/lib/bussiness/hyFilePlayback/filePlayback2.install.js +6 -0
- package/lib/bussiness/hyFilePlayback/filePlayback2.vue.js +170 -0
- package/lib/bussiness/hyFilePlayback/index.js +13 -0
- package/lib/bussiness/hyFilePlayback/locale/en_US.js +26 -0
- package/lib/bussiness/hyFilePlayback/locale/index.js +9 -0
- package/lib/bussiness/hyFilePlayback/locale/zh_CN.js +26 -0
- package/lib/bussiness/hyFilePlayback/style/filePlayback.scss +2 -0
- package/lib/bussiness/hyMapAearchPlace/mapAearchPlace.install.js +6 -0
- package/lib/bussiness/hyMapAearchPlace/mapAearchPlaceItem.install.js +6 -0
- package/lib/bussiness/hyOrgGroupTree/orgGroupTree.install.js +6 -0
- package/lib/bussiness/hyPlanGroupDeviceTree/planGroupDeviceTree.install.js +6 -0
- package/lib/bussiness/hyRuleSetting/cpns/gatheringPeople/gatheringPeople.install.js +6 -0
- package/lib/bussiness/hyRuleSetting/cpns/missionInRule/missionInRule.install.js +6 -0
- package/lib/bussiness/hyRuleSetting/cpns/missionOutRule/missionOutRule.install.js +6 -0
- package/lib/bussiness/hyRuleSetting/cpns/ruleAssignDialog/ruleAssignDialog.install.js +6 -0
- package/lib/bussiness/hyRuleSetting/cpns/ruleFenceDialog/ruleFenceDialog.install.js +6 -0
- package/lib/bussiness/hyRuleSetting/cpns/ruleSettingDialog/ruleSettingDialog.install.js +6 -0
- package/lib/bussiness/hyRuleSetting/cpns/sedentary/sedentary.install.js +6 -0
- package/lib/bussiness/hyRuleSetting/cpns/setRuleAggregationAlarmDialog/setRuleAggregationAlarmDialog.install.js +6 -0
- package/lib/bussiness/hyRuleSetting/cpns/timedVideo/timedVideo.install.js +6 -0
- package/lib/bussiness/hyRuleSetting/cpns/timerCamera/timerCamera.install.js +6 -0
- package/lib/bussiness/hyRuleSetting/cpns/timingReturn/timingReturn.install.js +6 -0
- package/lib/bussiness/hyRuleSetting/ruleSetting.install.js +6 -0
- package/lib/bussiness/hyUserTree/userTree.install.js +6 -0
- package/lib/bussiness/index.js +19 -16
- package/lib/components/hyCutter/cutter.vue.js +2 -2
- package/lib/components/hyForm/cpns/arrayItem.vue.js +2 -2
- package/lib/components/hyForm/cpns/formItem.vue.js +3 -2
- package/lib/components/hyForm/js/index.js +0 -7
- package/lib/components/hySearch/cpns/searchItem.vue.js +64 -74
- package/lib/components/hySearch/js/index.js +0 -36
- package/lib/components/hySearch/js/useAppSearch.js +3 -3
- package/lib/components/hySearch/style/search.scss +1 -0
- package/lib/components/hyTable/cpns/virtualTable.vue.js +4 -4
- package/lib/components/hyTable/js/index.js +45 -3
- package/lib/components/hyTable/js/search.js +0 -6
- package/lib/components/hyTable/table.vue.js +46 -29
- package/lib/components/hyTooltip/tooltip.vue.js +13 -5
- package/lib/components/hyUserAvatar/userAvatar.vue.js +1 -1
- package/lib/components/hyVideoPlayer/videoPlayer.vue.js +3 -3
- package/lib/components-map.js +19 -10
- package/lib/hooks/index.js +4 -0
- package/lib/hooks/useBaseMainStore.js +15 -4
- package/lib/hooks/useCurrentBus.js +4 -3
- package/lib/hooks/useDialog.js +2 -2
- package/lib/hooks/useGlobalConfig.js +25 -15
- package/lib/hooks/useVersionControl.js +38 -0
- package/lib/index.js +75 -57
- package/lib/locale/en_US.js +1 -0
- package/lib/locale/zh_CN.js +1 -0
- package/lib/style/index.scss +2 -2
- package/lib/utils/file.js +1 -2
- package/lib/utils/form.js +72 -6
- package/lib/utils/index.js +12 -1
- package/lib/utils/map/hook/leafletjs.js +4 -0
- package/lib/utils/map/index.js +4 -0
- package/lib/utils/timeUtils.js +105 -0
- package/lib/utils/useUiComponent.js +37 -0
- package/lib/version.js +1 -1
- package/package.json +113 -58
- package/es/bussiness/hyDepartmentTypeOperation/tiantong.mjs +0 -8
- package/lib/bussiness/hyDepartmentTypeOperation/tiantong.js +0 -13
|
@@ -195,7 +195,9 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
195
195
|
}
|
|
196
196
|
}, {
|
|
197
197
|
"loading": { type: Boolean, default: false },
|
|
198
|
-
"loadingModifiers": {}
|
|
198
|
+
"loadingModifiers": {},
|
|
199
|
+
"showFilter": { type: Boolean, default: true },
|
|
200
|
+
"showFilterModifiers": {}
|
|
199
201
|
}),
|
|
200
202
|
emits: /* @__PURE__ */ vue.mergeModels([
|
|
201
203
|
"row-click",
|
|
@@ -204,17 +206,22 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
204
206
|
"on-select-checkbox",
|
|
205
207
|
"reqSuccess",
|
|
206
208
|
"search-data",
|
|
207
|
-
"scroll"
|
|
208
|
-
|
|
209
|
+
"scroll",
|
|
210
|
+
"scrollBottom"
|
|
211
|
+
], ["update:loading", "update:showFilter"]),
|
|
209
212
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
210
213
|
const props = __props;
|
|
211
214
|
const emits = __emit;
|
|
212
215
|
const loading = vue.useModel(__props, "loading");
|
|
216
|
+
const showFilterModel = vue.useModel(__props, "showFilter");
|
|
213
217
|
const containerRef = vue.useTemplateRef("containerRef");
|
|
214
218
|
const tableRef = vue.useTemplateRef("tableRef");
|
|
215
219
|
const appSearchRef = vue.useTemplateRef("appSearchRef");
|
|
216
220
|
const tableDropdownRef = vue.useTemplateRef("tableDropdownRef");
|
|
217
221
|
const operatorDropdownRef = vue.useTemplateRef("operatorDropdownRef");
|
|
222
|
+
function switchShowFilter() {
|
|
223
|
+
showFilterModel.value = !showFilterModel.value;
|
|
224
|
+
}
|
|
218
225
|
const {
|
|
219
226
|
// useAppTableWrapper
|
|
220
227
|
// 表格配置项
|
|
@@ -246,13 +253,11 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
246
253
|
// useAppTableSearch
|
|
247
254
|
// 表单查询
|
|
248
255
|
totalElements,
|
|
249
|
-
showFilter,
|
|
250
256
|
selectedList,
|
|
251
257
|
getData,
|
|
252
258
|
setData,
|
|
253
259
|
resetFields,
|
|
254
260
|
resetFn,
|
|
255
|
-
switchShowFilter,
|
|
256
261
|
getTotalElements,
|
|
257
262
|
getTableDataSource,
|
|
258
263
|
onSizeChangeHandler,
|
|
@@ -328,7 +333,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
328
333
|
__props.filterColumns.length > 0 ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
329
334
|
key: 1,
|
|
330
335
|
class: "h-[32px] flex items-center gap-[10px] clickBox px-3 select-none rounded hover:bg-background-2 box-border",
|
|
331
|
-
onClick:
|
|
336
|
+
onClick: switchShowFilter
|
|
332
337
|
}, [
|
|
333
338
|
vue.createVNode(vue.unref(index$1.HyIcon), {
|
|
334
339
|
"svg-name": "ops-button-screen",
|
|
@@ -337,11 +342,11 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
337
342
|
vue.createElementVNode(
|
|
338
343
|
"span",
|
|
339
344
|
null,
|
|
340
|
-
vue.toDisplayString(
|
|
345
|
+
vue.toDisplayString(showFilterModel.value ? vue.unref(useLocale.$t)("table.hideFilter") : vue.unref(useLocale.$t)("table.displayFilter")),
|
|
341
346
|
1
|
|
342
347
|
/* TEXT */
|
|
343
348
|
)
|
|
344
|
-
]
|
|
349
|
+
])) : vue.createCommentVNode("v-if", true),
|
|
345
350
|
vue.unref(searchPlaceholder) ? (vue.openBlock(), vue.createBlock(vue.unref(index$2.HyTooltip), {
|
|
346
351
|
key: 2,
|
|
347
352
|
"is-always": "",
|
|
@@ -393,8 +398,8 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
393
398
|
ref: appSearchRef,
|
|
394
399
|
model: __props.filterModel,
|
|
395
400
|
columns: __props.filterColumns,
|
|
396
|
-
hidden: !
|
|
397
|
-
class: vue.normalizeClass({ "mb-4":
|
|
401
|
+
hidden: !showFilterModel.value,
|
|
402
|
+
class: vue.normalizeClass({ "mb-4": showFilterModel.value }),
|
|
398
403
|
onSearch: ($event) => vue.unref(getData)(1),
|
|
399
404
|
onOptionsStatus: _ctx.$attrs.onOptionsStatus
|
|
400
405
|
}, vue.createSlots({
|
|
@@ -438,13 +443,19 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
438
443
|
}), {
|
|
439
444
|
empty: vue.withCtx(() => [
|
|
440
445
|
vue.renderSlot(_ctx.$slots, "empty", {}, () => [
|
|
441
|
-
vue.createElementVNode(
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
446
|
+
vue.createElementVNode("div", { class: "flex flex-col items-center gap-2" }, [
|
|
447
|
+
vue.createVNode(vue.unref(index$1.HyIcon), {
|
|
448
|
+
"svg-name": "ops-Empty-alarm-not-data",
|
|
449
|
+
class: "!w-[80px] !h-[80px]"
|
|
450
|
+
}),
|
|
451
|
+
vue.createElementVNode(
|
|
452
|
+
"span",
|
|
453
|
+
{ class: "text-sm text-auxiliary" },
|
|
454
|
+
vue.toDisplayString(__props.emptyText || vue.unref(useLocale.$t)("hy.noData")),
|
|
455
|
+
1
|
|
456
|
+
/* TEXT */
|
|
457
|
+
)
|
|
458
|
+
])
|
|
448
459
|
])
|
|
449
460
|
]),
|
|
450
461
|
default: vue.withCtx(() => [
|
|
@@ -499,7 +510,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
499
510
|
key: cindex,
|
|
500
511
|
"is-always": "",
|
|
501
512
|
overLine: 1,
|
|
502
|
-
content: citem
|
|
513
|
+
content: vue.unref(index.operatorDescHandler)(citem, scope)
|
|
503
514
|
}, {
|
|
504
515
|
default: vue.withCtx(() => [
|
|
505
516
|
vue.createElementVNode("div", {
|
|
@@ -515,13 +526,13 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
515
526
|
"svg-name": citem.svgName,
|
|
516
527
|
"class-name": "!w-4 !h-4"
|
|
517
528
|
}, null, 8, ["svg-name"]),
|
|
518
|
-
citem
|
|
529
|
+
vue.unref(index.operatorLabelHandler)(citem, scope) ? (vue.openBlock(), vue.createElementBlock(
|
|
519
530
|
"div",
|
|
520
531
|
{
|
|
521
532
|
key: 0,
|
|
522
533
|
class: "mt-1 whitespace-nowrap w-full text-center over_one_line"
|
|
523
534
|
},
|
|
524
|
-
vue.toDisplayString(
|
|
535
|
+
vue.toDisplayString(vue.unref(index.operatorLabelHandler)(citem, scope)),
|
|
525
536
|
1
|
|
526
537
|
/* TEXT */
|
|
527
538
|
)) : (vue.openBlock(), vue.createElementBlock("div", {
|
|
@@ -571,7 +582,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
571
582
|
vue.createElementVNode(
|
|
572
583
|
"span",
|
|
573
584
|
{ class: "pr-1" },
|
|
574
|
-
vue.toDisplayString(
|
|
585
|
+
vue.toDisplayString(vue.unref(index.operatorLabelHandler)(citem, scope)),
|
|
575
586
|
1
|
|
576
587
|
/* TEXT */
|
|
577
588
|
),
|
|
@@ -732,13 +743,19 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
732
743
|
empty: vue.withCtx(() => [
|
|
733
744
|
vue.createElementVNode("div", { class: "w-full h-full flex items-center justify-center border-b border-border" }, [
|
|
734
745
|
vue.renderSlot(_ctx.$slots, "empty", {}, () => [
|
|
735
|
-
vue.createElementVNode(
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
746
|
+
vue.createElementVNode("div", { class: "flex flex-col items-center gap-2" }, [
|
|
747
|
+
vue.createVNode(vue.unref(index$1.HyIcon), {
|
|
748
|
+
"svg-name": "ops-Empty-alarm-not-data",
|
|
749
|
+
class: "!w-[80px] !h-[80px]"
|
|
750
|
+
}),
|
|
751
|
+
vue.createElementVNode(
|
|
752
|
+
"span",
|
|
753
|
+
{ class: "text-sm text-auxiliary" },
|
|
754
|
+
vue.toDisplayString(__props.emptyText || vue.unref(useLocale.$t)("hy.noData")),
|
|
755
|
+
1
|
|
756
|
+
/* TEXT */
|
|
757
|
+
)
|
|
758
|
+
])
|
|
742
759
|
])
|
|
743
760
|
])
|
|
744
761
|
]),
|
|
@@ -850,7 +867,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
850
867
|
vue.createElementVNode(
|
|
851
868
|
"span",
|
|
852
869
|
{ class: "pr-1" },
|
|
853
|
-
vue.toDisplayString(citem.
|
|
870
|
+
vue.toDisplayString(vue.unref(index.operatorLabelHandler)(citem, vue.unref(tableTriggerRef).scope)),
|
|
854
871
|
1
|
|
855
872
|
/* TEXT */
|
|
856
873
|
),
|
|
@@ -15,7 +15,7 @@ const __default__ = vue.defineComponent({
|
|
|
15
15
|
name: "HyTooltip"
|
|
16
16
|
});
|
|
17
17
|
const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
18
|
-
props: {
|
|
18
|
+
props: /* @__PURE__ */ vue.mergeModels({
|
|
19
19
|
isAlways: {
|
|
20
20
|
type: Boolean,
|
|
21
21
|
default: () => {
|
|
@@ -42,9 +42,14 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
42
42
|
content: {
|
|
43
43
|
type: [String, Number]
|
|
44
44
|
}
|
|
45
|
-
},
|
|
45
|
+
}, {
|
|
46
|
+
"modelValue": { type: Boolean, default: false },
|
|
47
|
+
"modelModifiers": {}
|
|
48
|
+
}),
|
|
49
|
+
emits: ["update:modelValue"],
|
|
46
50
|
setup(__props) {
|
|
47
51
|
const props = __props;
|
|
52
|
+
const visible = vue.useModel(__props, "modelValue");
|
|
48
53
|
const isShow = vue.ref(false);
|
|
49
54
|
const isDisabled = vue.computed(() => {
|
|
50
55
|
if (props.disabled || props.isAlways) {
|
|
@@ -65,6 +70,8 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
65
70
|
}
|
|
66
71
|
return (_ctx, _cache) => {
|
|
67
72
|
return vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElTooltip), vue.mergeProps({
|
|
73
|
+
visible: visible.value,
|
|
74
|
+
"onUpdate:visible": ($event) => visible.value = $event,
|
|
68
75
|
"show-after": 500,
|
|
69
76
|
class: "item",
|
|
70
77
|
effect: "dark",
|
|
@@ -86,6 +93,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
86
93
|
{
|
|
87
94
|
key: 1,
|
|
88
95
|
class: vue.normalizeClass(appClass.value),
|
|
96
|
+
style: vue.normalizeStyle({ "--line-clamp": __props.overLine || 2 }),
|
|
89
97
|
onMouseenter: onMouseenterHandler
|
|
90
98
|
},
|
|
91
99
|
[
|
|
@@ -97,8 +105,8 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
97
105
|
)
|
|
98
106
|
])
|
|
99
107
|
],
|
|
100
|
-
|
|
101
|
-
/* CLASS, NEED_HYDRATION */
|
|
108
|
+
38
|
|
109
|
+
/* CLASS, STYLE, NEED_HYDRATION */
|
|
102
110
|
))
|
|
103
111
|
]),
|
|
104
112
|
_: 2
|
|
@@ -111,7 +119,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
111
119
|
]),
|
|
112
120
|
key: "0"
|
|
113
121
|
} : void 0
|
|
114
|
-
]), 1040, ["disabled", "content"]);
|
|
122
|
+
]), 1040, ["visible", "onUpdate:visible", "disabled", "content"]);
|
|
115
123
|
};
|
|
116
124
|
}
|
|
117
125
|
});
|
|
@@ -66,7 +66,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
66
66
|
() => props.device?.gbDevice === 1 && (props.device?.deviceType || props.device?.type) !== 13
|
|
67
67
|
);
|
|
68
68
|
const headImg = vue.computed(() => {
|
|
69
|
-
return props.device && vue.unref(userAvatarMap)?.get(props.device.deviceId);
|
|
69
|
+
return props.device && (vue.unref(userAvatarMap)?.get(props.device.deviceId) || props.device.headImg);
|
|
70
70
|
});
|
|
71
71
|
function parseRem(res) {
|
|
72
72
|
let px = res;
|
|
@@ -261,15 +261,15 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
261
261
|
vue.createCommentVNode(" \u666E\u901A\u6587\u4EF6 "),
|
|
262
262
|
vue.createElementVNode("div", { class: "flex items-center justify-center text-auxiliary" }, [
|
|
263
263
|
vue.createVNode(vue.unref(index$1.HyIcon), {
|
|
264
|
-
"svg-name": "
|
|
264
|
+
"svg-name": "ops-audio-center-right-ripple",
|
|
265
265
|
className: "!w-[12px] !h-[12px]"
|
|
266
266
|
}),
|
|
267
267
|
vue.createVNode(vue.unref(index$1.HyIcon), {
|
|
268
|
-
"svg-name": "
|
|
268
|
+
"svg-name": "ops-audio-media-center-video3",
|
|
269
269
|
className: "!w-[40px] !h-[40px] mx-1"
|
|
270
270
|
}),
|
|
271
271
|
vue.createVNode(vue.unref(index$1.HyIcon), {
|
|
272
|
-
"svg-name": "
|
|
272
|
+
"svg-name": "ops-audio-media-center-left-rippleV2",
|
|
273
273
|
className: "!w-[12px] !h-[12px]"
|
|
274
274
|
})
|
|
275
275
|
]),
|
package/lib/components-map.js
CHANGED
|
@@ -1,12 +1,21 @@
|
|
|
1
1
|
module.exports = {
|
|
2
|
-
HyAcquisitionStationTree: () => import('hy-dispatch-ui-v3/lib/bussiness/hyAcquisitionStationTree'),
|
|
3
|
-
HyDepartmentTypeOperation: () => import('hy-dispatch-ui-v3/lib/bussiness/hyDepartmentTypeOperation'),
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
2
|
+
HyAcquisitionStationTree: () => import('hy-dispatch-ui-v3/lib/bussiness/hyAcquisitionStationTree/acquisitionStationTree'),
|
|
3
|
+
HyDepartmentTypeOperation: () => import('hy-dispatch-ui-v3/lib/bussiness/hyDepartmentTypeOperation/departmentTypeOperation'),
|
|
4
|
+
HyDepartmentTypeOperationTiantong: () => import('hy-dispatch-ui-v3/lib/bussiness/hyDepartmentTypeOperation/departmentTypeOperationTiantong'),
|
|
5
|
+
HyDeviceTree: () => import('hy-dispatch-ui-v3/lib/bussiness/hyDeviceTree/deviceTree'),
|
|
6
|
+
HyDisplayQueryAddress: () => import('hy-dispatch-ui-v3/lib/bussiness/hyDisplayQueryAddress/displayQueryAddress'),
|
|
7
|
+
HyElectronicFence: () => import('hy-dispatch-ui-v3/lib/bussiness/hyElectronicFence/electronicFence'),
|
|
8
|
+
HyAddElectronicFenceDialog: () => import('hy-dispatch-ui-v3/lib/bussiness/hyElectronicFence/cpns/addElectronicFenceDialog/addElectronicFenceDialog'),
|
|
9
|
+
HyElectronicFenceAssociatedUsersDialog: () => import('hy-dispatch-ui-v3/lib/bussiness/hyElectronicFence/cpns/electronicFenceAssociatedUsersDialog/electronicFenceAssociatedUsersDialog'),
|
|
10
|
+
HyBatchSetElectronicFenceUserDialog: () => import('hy-dispatch-ui-v3/lib/bussiness/hyElectronicFence/cpns/batchSetElectronicFenceUserDialog/batchSetElectronicFenceUserDialog'),
|
|
11
|
+
HyFilePlayback: () => import('hy-dispatch-ui-v3/lib/bussiness/hyFilePlayback/filePlayback'),
|
|
12
|
+
HyMapAearchPlace: () => import('hy-dispatch-ui-v3/lib/bussiness/hyMapAearchPlace/mapAearchPlace'),
|
|
13
|
+
HyOrgGroupTree: () => import('hy-dispatch-ui-v3/lib/bussiness/hyOrgGroupTree/orgGroupTree'),
|
|
14
|
+
HyPlanGroupDeviceTree: () => import('hy-dispatch-ui-v3/lib/bussiness/hyPlanGroupDeviceTree/planGroupDeviceTree'),
|
|
15
|
+
HyRuleSetting: () => import('hy-dispatch-ui-v3/lib/bussiness/hyRuleSetting/ruleSetting'),
|
|
16
|
+
HyRuleAssignDialog: () => import('hy-dispatch-ui-v3/lib/bussiness/hyRuleSetting/cpns/ruleAssignDialog/ruleAssignDialog'),
|
|
17
|
+
HyRuleFenceDialog: () => import('hy-dispatch-ui-v3/lib/bussiness/hyRuleSetting/cpns/ruleFenceDialog/ruleFenceDialog'),
|
|
18
|
+
HyRuleSettingDialog: () => import('hy-dispatch-ui-v3/lib/bussiness/hyRuleSetting/cpns/ruleSettingDialog/ruleSettingDialog'),
|
|
19
|
+
HySetRuleAggregationAlarmDialog: () => import('hy-dispatch-ui-v3/lib/bussiness/hyRuleSetting/cpns/setRuleAggregationAlarmDialog/setRuleAggregationAlarmDialog'),
|
|
20
|
+
HyUserTree: () => import('hy-dispatch-ui-v3/lib/bussiness/hyUserTree/userTree'),
|
|
12
21
|
}
|
package/lib/hooks/index.js
CHANGED
|
@@ -18,6 +18,7 @@ var useDialog = require('./useDialog.js');
|
|
|
18
18
|
var useExportFile = require('./useExportFile.js');
|
|
19
19
|
var useBaseMainStore = require('./useBaseMainStore.js');
|
|
20
20
|
var useCurrentBus = require('./useCurrentBus.js');
|
|
21
|
+
var useVersionControl = require('./useVersionControl.js');
|
|
21
22
|
|
|
22
23
|
|
|
23
24
|
|
|
@@ -68,3 +69,6 @@ exports.localBaseMainStoreKey = useBaseMainStore.localBaseMainStoreKey;
|
|
|
68
69
|
exports.useBaseMainStore = useBaseMainStore.useBaseMainStore;
|
|
69
70
|
exports.localCurrentBusKey = useCurrentBus.localCurrentBusKey;
|
|
70
71
|
exports.useCurrentBus = useCurrentBus.useCurrentBus;
|
|
72
|
+
exports.localComponentsMapKey = useVersionControl.localComponentsMapKey;
|
|
73
|
+
exports.localVersionStoreKey = useVersionControl.localVersionStoreKey;
|
|
74
|
+
exports.useVersionControl = useVersionControl.useVersionControl;
|
|
@@ -16,14 +16,25 @@ const defaultBaseMainStore = () => ({
|
|
|
16
16
|
}
|
|
17
17
|
});
|
|
18
18
|
const useBaseMainStore = () => {
|
|
19
|
-
|
|
20
|
-
|
|
19
|
+
const instance = vue.getCurrentInstance();
|
|
20
|
+
if (instance) {
|
|
21
|
+
const injectedStore = vue.inject(localBaseMainStoreKey, void 0);
|
|
21
22
|
return {
|
|
22
|
-
baseMainStore: vue.
|
|
23
|
+
baseMainStore: vue.computed(() => {
|
|
24
|
+
const storeOrFactory = vue.unref(injectedStore);
|
|
25
|
+
if (storeOrFactory) {
|
|
26
|
+
return typeof storeOrFactory === "function" ? storeOrFactory() : storeOrFactory;
|
|
27
|
+
}
|
|
28
|
+
const globalStore = vue.unref(useGlobalConfig.useGlobalConfig()).baseMainStore;
|
|
29
|
+
return globalStore ? typeof globalStore === "function" ? globalStore() : globalStore : defaultBaseMainStore();
|
|
30
|
+
})
|
|
23
31
|
};
|
|
24
32
|
} else {
|
|
25
33
|
return {
|
|
26
|
-
baseMainStore:
|
|
34
|
+
baseMainStore: vue.computed(() => {
|
|
35
|
+
const globalStore = vue.unref(useGlobalConfig.useGlobalConfig()).baseMainStore;
|
|
36
|
+
return globalStore ? typeof globalStore === "function" ? globalStore() : globalStore : defaultBaseMainStore();
|
|
37
|
+
})
|
|
27
38
|
};
|
|
28
39
|
}
|
|
29
40
|
};
|
|
@@ -7,10 +7,11 @@ var useSubscribe = require('./useSubscribe.js');
|
|
|
7
7
|
const localCurrentBusKey = /* @__PURE__ */ Symbol("currentBus");
|
|
8
8
|
const defaultCurrentBus = useSubscribe.bus;
|
|
9
9
|
const useCurrentBus = () => {
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
const instance = vue.getCurrentInstance();
|
|
11
|
+
if (instance) {
|
|
12
|
+
const injectedBus = vue.inject(localCurrentBusKey, void 0);
|
|
12
13
|
return {
|
|
13
|
-
currentBus: vue.
|
|
14
|
+
currentBus: vue.computed(() => vue.unref(injectedBus) || defaultCurrentBus)
|
|
14
15
|
};
|
|
15
16
|
} else {
|
|
16
17
|
return {
|
package/lib/hooks/useDialog.js
CHANGED
|
@@ -15,9 +15,9 @@ function useDialog(hy) {
|
|
|
15
15
|
const minimizedTitle = vue.ref("");
|
|
16
16
|
function setDragLevelIndex(dialogComponents) {
|
|
17
17
|
const { baseMainStore } = useBaseMainStore.useBaseMainStore();
|
|
18
|
-
const dragLevel = baseMainStore.getters.dragLevel;
|
|
18
|
+
const dragLevel = baseMainStore.value.getters.dragLevel;
|
|
19
19
|
hy[`${dialogComponents}`].value.setDragLevelIndex(dragLevel);
|
|
20
|
-
baseMainStore.commit("setDragLevel");
|
|
20
|
+
baseMainStore.value.commit("setDragLevel");
|
|
21
21
|
}
|
|
22
22
|
function onMinimized(params) {
|
|
23
23
|
hy.minimized.value = params.type;
|
|
@@ -13,9 +13,10 @@ var useTooltipConfig = require('./useTooltipConfig.js');
|
|
|
13
13
|
var useMapConfig = require('./useMapConfig.js');
|
|
14
14
|
var useBaseMainStore = require('./useBaseMainStore.js');
|
|
15
15
|
var useCurrentBus = require('./useCurrentBus.js');
|
|
16
|
+
var useVersionControl = require('./useVersionControl.js');
|
|
16
17
|
var zh_CN = require('../locale/zh_CN.js');
|
|
17
18
|
|
|
18
|
-
const globalConfig = vue.ref();
|
|
19
|
+
const globalConfig = vue.ref({});
|
|
19
20
|
const mergeConfig = (a, b) => {
|
|
20
21
|
const keys = [.../* @__PURE__ */ new Set([...Object.keys(a), ...Object.keys(b)])];
|
|
21
22
|
const obj = {};
|
|
@@ -28,9 +29,9 @@ const configProviderContextKey = /* @__PURE__ */ Symbol("configProviderContextKe
|
|
|
28
29
|
function useGlobalConfig(key, defaultValue = void 0) {
|
|
29
30
|
const config = vue.getCurrentInstance() ? vue.inject(configProviderContextKey, globalConfig) : globalConfig;
|
|
30
31
|
if (key) {
|
|
31
|
-
return vue.computed(() => config.value?.[key] ?? defaultValue);
|
|
32
|
+
return vue.computed(() => vue.unref(config.value?.[key]) ?? defaultValue);
|
|
32
33
|
} else {
|
|
33
|
-
return config;
|
|
34
|
+
return vue.unref(config);
|
|
34
35
|
}
|
|
35
36
|
return {
|
|
36
37
|
config
|
|
@@ -52,47 +53,56 @@ const provideGlobalConfig = (props, app, global = false) => {
|
|
|
52
53
|
provideFn(configProviderContextKey, context);
|
|
53
54
|
provideFn(
|
|
54
55
|
useLocale.localeContextKey,
|
|
55
|
-
vue.computed(() => index[context.value.locale] || zh_CN.default)
|
|
56
|
+
vue.computed(() => vue.unref(index[context.value.locale]) || zh_CN.default)
|
|
56
57
|
);
|
|
57
58
|
provideFn(
|
|
58
59
|
useApi.localApiKey,
|
|
59
|
-
vue.computed(() => context.value.api)
|
|
60
|
+
vue.computed(() => vue.unref(context.value.api))
|
|
60
61
|
);
|
|
61
62
|
provideFn(
|
|
62
63
|
useUserAvatarMap.localUserAvatarMapKey,
|
|
63
|
-
vue.computed(() => context.value.userAvatarMap)
|
|
64
|
+
vue.computed(() => vue.unref(context.value.userAvatarMap))
|
|
64
65
|
);
|
|
65
66
|
provideFn(
|
|
66
67
|
usePermissionMap.localPermissionMapKey,
|
|
67
|
-
vue.computed(() => context.value.permissionMap)
|
|
68
|
+
vue.computed(() => vue.unref(context.value.permissionMap))
|
|
68
69
|
);
|
|
69
70
|
provideFn(
|
|
70
71
|
useAudioPlayerConfig.localAudioPlayerConfigKey,
|
|
71
|
-
vue.computed(() => context.value.audioPlayer)
|
|
72
|
+
vue.computed(() => vue.unref(context.value.audioPlayer))
|
|
72
73
|
);
|
|
73
74
|
provideFn(
|
|
74
75
|
useVideoPlayerConfig.localVideoPlayerConfigKey,
|
|
75
|
-
vue.computed(() => context.value.videoPlayer)
|
|
76
|
+
vue.computed(() => vue.unref(context.value.videoPlayer))
|
|
76
77
|
);
|
|
77
78
|
provideFn(
|
|
78
79
|
useEnsureHyIcon.localEnsureHyIconMapKey,
|
|
79
|
-
vue.computed(() => context.value.ensureHyIcon)
|
|
80
|
+
vue.computed(() => vue.unref(context.value.ensureHyIcon))
|
|
80
81
|
);
|
|
81
82
|
provideFn(
|
|
82
83
|
useTooltipConfig.localTooltipConfigKey,
|
|
83
|
-
vue.computed(() => context.value.tooltip)
|
|
84
|
+
vue.computed(() => vue.unref(context.value.tooltip))
|
|
84
85
|
);
|
|
85
86
|
provideFn(
|
|
86
87
|
useMapConfig.localMapConfigKey,
|
|
87
|
-
vue.computed(() => context.value.mapConfig)
|
|
88
|
+
vue.computed(() => vue.unref(context.value.mapConfig))
|
|
88
89
|
);
|
|
89
|
-
provideFn(useBaseMainStore.localBaseMainStoreKey, context.value.baseMainStore);
|
|
90
|
+
provideFn(useBaseMainStore.localBaseMainStoreKey, vue.unref(context.value.baseMainStore));
|
|
90
91
|
provideFn(
|
|
91
92
|
useCurrentBus.localCurrentBusKey,
|
|
92
|
-
vue.computed(() => context.value.currentBus)
|
|
93
|
+
vue.computed(() => vue.unref(context.value.currentBus))
|
|
93
94
|
);
|
|
94
|
-
|
|
95
|
+
provideFn(
|
|
96
|
+
useVersionControl.localVersionStoreKey,
|
|
97
|
+
vue.computed(() => vue.unref(context.value.versionStore))
|
|
98
|
+
);
|
|
99
|
+
provideFn(
|
|
100
|
+
useVersionControl.localComponentsMapKey,
|
|
101
|
+
vue.computed(() => vue.unref(context.value.componentsMap))
|
|
102
|
+
);
|
|
103
|
+
if (global || !globalConfig.value.initial) {
|
|
95
104
|
globalConfig.value = context.value;
|
|
105
|
+
globalConfig.value.initial = true;
|
|
96
106
|
}
|
|
97
107
|
return context;
|
|
98
108
|
};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var vue = require('vue');
|
|
4
|
+
var useGlobalConfig = require('./useGlobalConfig.js');
|
|
5
|
+
|
|
6
|
+
const localVersionStoreKey = /* @__PURE__ */ Symbol("versionStore");
|
|
7
|
+
const localComponentsMapKey = /* @__PURE__ */ Symbol("componentsMap");
|
|
8
|
+
const useVersionControl = () => {
|
|
9
|
+
if (vue.getCurrentInstance()) {
|
|
10
|
+
const versionStore = vue.inject(localVersionStoreKey, vue.ref());
|
|
11
|
+
const componentsMap = vue.inject(localComponentsMapKey, vue.ref());
|
|
12
|
+
return {
|
|
13
|
+
versionStore: vue.unref(versionStore) ? versionStore : vue.computed(() => {
|
|
14
|
+
const config = vue.unref(useGlobalConfig.useGlobalConfig());
|
|
15
|
+
return config?.versionStore || null;
|
|
16
|
+
}),
|
|
17
|
+
componentsMap: vue.unref(componentsMap) ? componentsMap : vue.computed(() => {
|
|
18
|
+
const config = vue.unref(useGlobalConfig.useGlobalConfig());
|
|
19
|
+
return config?.componentsMap || null;
|
|
20
|
+
})
|
|
21
|
+
};
|
|
22
|
+
} else {
|
|
23
|
+
return {
|
|
24
|
+
versionStore: vue.computed(() => {
|
|
25
|
+
const config = vue.unref(useGlobalConfig.useGlobalConfig());
|
|
26
|
+
return config?.versionStore || null;
|
|
27
|
+
}),
|
|
28
|
+
componentsMap: vue.computed(() => {
|
|
29
|
+
const config = vue.unref(useGlobalConfig.useGlobalConfig());
|
|
30
|
+
return config?.componentsMap || null;
|
|
31
|
+
})
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
exports.localComponentsMapKey = localComponentsMapKey;
|
|
37
|
+
exports.localVersionStoreKey = localVersionStoreKey;
|
|
38
|
+
exports.useVersionControl = useVersionControl;
|