hy-dispatch-ui-v3 0.2.67 → 0.2.69
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 +232 -20
- package/es/api/device.mjs +2 -3
- package/es/api/exportExcel.mjs +57 -0
- package/es/api/index.mjs +27 -16
- package/es/api/mapRail.mjs +31 -0
- package/es/api/organization.mjs +17 -9
- package/es/api/rule.mjs +30 -0
- package/es/api/sypct.mjs +2 -3
- package/es/api/task.mjs +2 -3
- package/es/bussiness/hyAddDepartmentType/addDepartmentType.vue.mjs +18 -19
- package/es/bussiness/hyAddDepartmentType/style/addDepartmentType.scss +28 -28
- package/es/bussiness/hyElectronicFence/cpns/addElectronicFenceDialog/addElectronicFenceDialog.vue.mjs +511 -0
- package/es/bussiness/hyElectronicFence/cpns/batchSetElectronicFenceUserDialog/batchSetElectronicFenceUserDialog.vue.mjs +178 -0
- package/es/bussiness/hyElectronicFence/cpns/electronicFenceAssociatedUsersDialog/electronicFenceAssociatedUsersDialog.vue.mjs +316 -0
- package/es/bussiness/hyElectronicFence/cpns/electronicFenceAssociatedUsersDialog/electronicFenceAssociatedUsersItem.vue.mjs +119 -0
- package/es/bussiness/hyElectronicFence/electronicFence.vue.mjs +358 -0
- package/es/bussiness/hyElectronicFence/index.mjs +13 -0
- package/es/bussiness/hyElectronicFence/style/electronicFence.scss +0 -0
- package/es/bussiness/hyElectronicFence/style/electronicFenceAssociatedUsersDialog.scss +25 -0
- package/es/bussiness/hyMapAearchPlace/js/index.mjs +1 -1
- package/es/bussiness/hyMapAearchPlace/mapAearchPlace.vue.mjs +4 -6
- package/es/bussiness/hyMapAearchPlace/style/mapAearchPlace.scss +4 -3
- package/es/bussiness/hyRuleSetting/cpns/gatheringPeople/gatheringPeople.vue.mjs +270 -0
- package/es/bussiness/hyRuleSetting/cpns/missionInRule/missionInRule.vue.mjs +251 -0
- package/es/bussiness/hyRuleSetting/cpns/missionOutRule/missionOutRule.vue.mjs +251 -0
- package/es/bussiness/hyRuleSetting/cpns/ruleAssignDialog/ruleAssignDialog.vue.mjs +395 -0
- package/es/bussiness/hyRuleSetting/cpns/ruleFenceDialog/ruleFenceDialog.vue.mjs +651 -0
- package/es/bussiness/hyRuleSetting/cpns/ruleSettingDialog/ruleSettingDialog.vue.mjs +357 -0
- package/es/bussiness/hyRuleSetting/cpns/sedentary/sedentary.vue.mjs +261 -0
- package/es/bussiness/hyRuleSetting/cpns/setRuleAggregationAlarmDialog/setRuleAggregationAlarmDialog.vue.mjs +360 -0
- package/es/bussiness/hyRuleSetting/cpns/timedVideo/timedVideo.vue.mjs +240 -0
- package/es/bussiness/hyRuleSetting/cpns/timerCamera/timerCamera.vue.mjs +258 -0
- package/es/bussiness/hyRuleSetting/cpns/timingReturn/timingReturn.vue.mjs +240 -0
- package/es/bussiness/hyRuleSetting/index.mjs +15 -0
- package/es/bussiness/hyRuleSetting/js/ruleSetting.mjs +65 -0
- package/es/bussiness/hyRuleSetting/ruleSetting.vue.mjs +129 -0
- package/es/bussiness/hyRuleSetting/style/ruleSetting.scss +0 -0
- package/es/bussiness/index.mjs +2 -0
- package/es/components/hyAudioPlayer/audioPlayer.vue.mjs +5 -13
- package/es/components/hyAudioPlayer/js/index.mjs +9 -14
- package/es/components/hyAudioPlayer/style/audioPlayer.scss +7 -2
- package/es/components/hyButton/button.vue.mjs +2 -2
- package/es/components/hyButton/style/button.scss +48 -74
- package/es/components/hyCheckboxGroup/checkboxGroup.vue.mjs +119 -0
- package/es/components/hyCheckboxGroup/index.mjs +7 -0
- package/es/components/hyCheckboxGroup/style/checkboxGroup.scss +58 -0
- package/es/components/hyConfigProvider/configProvider.vue.mjs +51 -38
- package/es/components/hyConfirmDialog/confirmDialog.vue.mjs +57 -62
- package/es/components/hyConfirmDialog/confirmMethod.mjs +24 -22
- package/es/components/hyCutter/cutter.vue.mjs +9 -23
- package/es/components/hyDatePicker/datePicker.vue.mjs +12 -17
- package/es/components/hyDialog/dialog.vue.mjs +5 -9
- package/es/components/hyDialog/style/dialog.scss +12 -13
- package/es/components/hyDrawer/drawer.vue.mjs +100 -0
- package/es/components/hyDrawer/index.mjs +7 -0
- package/es/components/hyDrawer/style/drawer.scss +0 -0
- package/es/components/hyForm/cpns/arrayItem.vue.mjs +10 -28
- package/es/components/hyForm/cpns/arrayItem2.vue.mjs +198 -0
- package/es/components/hyForm/cpns/extraItem.vue.mjs +2 -3
- package/es/components/hyForm/cpns/formItem.vue.mjs +75 -37
- package/es/components/hyForm/cpns/locationSelect.vue.mjs +26 -26
- package/es/components/hyForm/form.vue.mjs +58 -24
- package/es/components/hyForm/js/index.mjs +4 -8
- package/es/components/hyForm/js/useAppForm.mjs +5 -9
- package/es/components/hyForm/style/form.scss +4 -13
- package/es/components/hyIcon/icon.vue.mjs +3 -3
- package/es/components/hyIconBox/style/iconBox.scss +2 -6
- package/es/components/hyInput/inputSearch.vue.mjs +8 -11
- package/es/components/hyInput/style/inputSearch.scss +3 -0
- package/es/components/hyLoading/index.mjs +3 -5
- package/es/components/hyMap/js/index.mjs +29 -4
- package/es/components/hyMap/map.vue.mjs +17 -3
- package/es/components/hyMenu/style/menu.scss +5 -15
- package/es/components/hyNoPermissions/noPermissions.vue.mjs +3 -4
- package/es/components/hyNoPermissionsMap/noPermissionsMap.vue.mjs +3 -6
- package/es/components/hyOrgCascader/js/index.mjs +1 -5
- package/es/components/hyOrgCascader/orgCascader.vue.mjs +25 -11
- package/es/components/hyOrgCascader/style/orgCascader.scss +7 -0
- package/es/components/hyRadioGroup/radioGroup.vue.mjs +48 -41
- package/es/components/hyRadioGroup/style/radioGroup.scss +9 -0
- package/es/components/hySearch/cpns/searchItem.vue.mjs +33 -20
- package/es/components/hySearch/js/index.mjs +1 -4
- package/es/components/hySearch/js/useAppSearch.mjs +6 -10
- package/es/components/hySearch/search.vue.mjs +9 -16
- package/es/components/hySearch/style/search.scss +2 -0
- package/es/components/hyStatus/index.mjs +7 -0
- package/es/components/hyStatus/status.vue.mjs +110 -0
- package/es/components/hyStatus/style/status.scss +0 -0
- package/es/components/hyTable/cpns/columnSelect.vue.mjs +24 -28
- package/es/components/hyTable/cpns/columnSelectItem.vue.mjs +8 -9
- package/es/components/hyTable/cpns/headerItem.vue.mjs +2 -2
- package/es/components/hyTable/cpns/virtualTable.vue.mjs +18 -28
- package/es/components/hyTable/js/index.mjs +56 -59
- package/es/components/hyTable/js/useAppTable.mjs +3 -4
- package/es/components/hyTable/style/table.scss +8 -0
- package/es/components/hyTable/table.vue.mjs +35 -41
- package/es/components/hyTableActionButton/tableActionButton.vue.mjs +4 -4
- package/es/components/hyTableForm/batchTableForm.vue.mjs +3 -7
- package/es/components/hyTableForm/js/index.mjs +3 -11
- package/es/components/hyTableForm/js/useAppTableForm.mjs +2 -7
- package/es/components/hyTableForm/style/batchTableForm.scss +26 -54
- package/es/components/hyTableForm/style/tableForm.scss +3 -2
- package/es/components/hyTableForm/tableForm.vue.mjs +90 -46
- package/es/components/hyTimePicker/timePicker.vue.mjs +4 -5
- package/es/components/hyTree/js/index.mjs +13 -40
- package/es/components/hyTree/style/index.css +1 -1
- package/es/components/hyTree/tree.vue.mjs +17 -16
- package/es/components/hyUserAvatar/userAvatar.vue.mjs +3 -6
- package/es/components/hyVideoPlayer/js/index.mjs +14 -23
- package/es/components/hyVideoPlayer/style/videoPlayer.scss +5 -7
- package/es/components/hyVideoPlayer/videoPlayer.vue.mjs +16 -26
- package/es/components/index.mjs +3 -0
- package/es/hooks/index.mjs +6 -2
- package/es/hooks/useAudioPlayerConfig.mjs +1 -3
- package/es/hooks/useBaseMainStore.mjs +29 -0
- package/es/hooks/useCurrentBus.mjs +20 -0
- package/es/hooks/useDialog.mjs +327 -0
- package/es/hooks/useExportFile.mjs +133 -0
- package/es/hooks/useGlobalConfig.mjs +10 -6
- package/es/hooks/useLocale.mjs +22 -12
- package/es/hooks/usePermissionMap.mjs +1 -3
- package/es/hooks/useResizeHandler.mjs +1 -4
- package/es/hooks/useResizeObserver.mjs +3 -1
- package/es/hooks/useSubscribe.mjs +2 -2
- package/es/hooks/useUserAvatarMap.mjs +1 -3
- package/es/hooks/useVideoPlayerConfig.mjs +1 -3
- package/es/index.mjs +11 -2
- package/es/locale/{en.mjs → en_US.mjs} +81 -5
- package/es/locale/index.mjs +2 -2
- package/es/locale/zh_CN.mjs +81 -3
- package/es/style/tailwind.scss +7 -3
- package/es/utils/adaptive.mjs +1 -3
- package/es/utils/form.mjs +19 -12
- package/es/utils/handler.mjs +4 -8
- package/es/utils/input.mjs +8 -9
- package/es/utils/map/hook/bigMap.mjs +14 -53
- package/es/utils/map/hook/gaode.mjs +5 -20
- package/es/utils/map/hook/leafletjs.mjs +23 -79
- package/es/utils/map/index.mjs +2 -8
- package/es/utils/map/js/webgis.mjs +12 -12
- package/es/version.mjs +1 -1
- package/lib/api/device.js +2 -3
- package/lib/api/exportExcel.js +62 -0
- package/lib/api/index.js +27 -16
- package/lib/api/mapRail.js +34 -0
- package/lib/api/organization.js +17 -8
- package/lib/api/rule.js +33 -0
- package/lib/api/sypct.js +2 -3
- package/lib/api/task.js +2 -3
- package/lib/bussiness/hyAddDepartmentType/addDepartmentType.vue.js +17 -18
- package/lib/bussiness/hyAddDepartmentType/style/addDepartmentType.scss +28 -28
- package/lib/bussiness/hyElectronicFence/cpns/addElectronicFenceDialog/addElectronicFenceDialog.vue.js +515 -0
- package/lib/bussiness/hyElectronicFence/cpns/batchSetElectronicFenceUserDialog/batchSetElectronicFenceUserDialog.vue.js +182 -0
- package/lib/bussiness/hyElectronicFence/cpns/electronicFenceAssociatedUsersDialog/electronicFenceAssociatedUsersDialog.vue.js +320 -0
- package/lib/bussiness/hyElectronicFence/cpns/electronicFenceAssociatedUsersDialog/electronicFenceAssociatedUsersItem.vue.js +123 -0
- package/lib/bussiness/hyElectronicFence/electronicFence.vue.js +362 -0
- package/lib/bussiness/hyElectronicFence/index.js +21 -0
- package/lib/bussiness/hyElectronicFence/style/electronicFence.scss +0 -0
- package/lib/bussiness/hyElectronicFence/style/electronicFenceAssociatedUsersDialog.scss +25 -0
- package/lib/bussiness/hyMapAearchPlace/js/index.js +1 -1
- package/lib/bussiness/hyMapAearchPlace/mapAearchPlace.vue.js +4 -6
- package/lib/bussiness/hyMapAearchPlace/style/mapAearchPlace.scss +4 -3
- package/lib/bussiness/hyRuleSetting/cpns/gatheringPeople/gatheringPeople.vue.js +274 -0
- package/lib/bussiness/hyRuleSetting/cpns/missionInRule/missionInRule.vue.js +255 -0
- package/lib/bussiness/hyRuleSetting/cpns/missionOutRule/missionOutRule.vue.js +255 -0
- package/lib/bussiness/hyRuleSetting/cpns/ruleAssignDialog/ruleAssignDialog.vue.js +399 -0
- package/lib/bussiness/hyRuleSetting/cpns/ruleFenceDialog/ruleFenceDialog.vue.js +655 -0
- package/lib/bussiness/hyRuleSetting/cpns/ruleSettingDialog/ruleSettingDialog.vue.js +361 -0
- package/lib/bussiness/hyRuleSetting/cpns/sedentary/sedentary.vue.js +265 -0
- package/lib/bussiness/hyRuleSetting/cpns/setRuleAggregationAlarmDialog/setRuleAggregationAlarmDialog.vue.js +364 -0
- package/lib/bussiness/hyRuleSetting/cpns/timedVideo/timedVideo.vue.js +244 -0
- package/lib/bussiness/hyRuleSetting/cpns/timerCamera/timerCamera.vue.js +262 -0
- package/lib/bussiness/hyRuleSetting/cpns/timingReturn/timingReturn.vue.js +244 -0
- package/lib/bussiness/hyRuleSetting/index.js +24 -0
- package/lib/bussiness/hyRuleSetting/js/ruleSetting.js +68 -0
- package/lib/bussiness/hyRuleSetting/ruleSetting.vue.js +133 -0
- package/lib/bussiness/hyRuleSetting/style/ruleSetting.scss +0 -0
- package/lib/bussiness/index.js +21 -10
- package/lib/components/hyAudioPlayer/audioPlayer.vue.js +5 -13
- package/lib/components/hyAudioPlayer/js/index.js +9 -14
- package/lib/components/hyAudioPlayer/style/audioPlayer.scss +7 -2
- package/lib/components/hyButton/button.vue.js +2 -2
- package/lib/components/hyButton/style/button.scss +48 -74
- package/lib/components/hyCheckboxGroup/checkboxGroup.vue.js +123 -0
- package/lib/components/hyCheckboxGroup/index.js +12 -0
- package/lib/components/hyCheckboxGroup/style/checkboxGroup.scss +58 -0
- package/lib/components/hyConfigProvider/configProvider.vue.js +50 -56
- package/lib/components/hyConfirmDialog/confirmDialog.vue.js +56 -61
- package/lib/components/hyConfirmDialog/confirmMethod.js +23 -21
- package/lib/components/hyCutter/cutter.vue.js +8 -22
- package/lib/components/hyDatePicker/datePicker.vue.js +11 -16
- package/lib/components/hyDialog/dialog.vue.js +5 -9
- package/lib/components/hyDialog/style/dialog.scss +12 -13
- package/lib/components/hyDrawer/drawer.vue.js +104 -0
- package/lib/components/hyDrawer/index.js +12 -0
- package/lib/components/hyDrawer/style/drawer.scss +0 -0
- package/lib/components/hyForm/cpns/arrayItem.vue.js +9 -27
- package/lib/components/hyForm/cpns/arrayItem2.vue.js +202 -0
- package/lib/components/hyForm/cpns/extraItem.vue.js +2 -3
- package/lib/components/hyForm/cpns/formItem.vue.js +76 -38
- package/lib/components/hyForm/cpns/locationSelect.vue.js +26 -26
- package/lib/components/hyForm/form.vue.js +53 -19
- package/lib/components/hyForm/js/index.js +3 -7
- package/lib/components/hyForm/js/useAppForm.js +5 -9
- package/lib/components/hyForm/style/form.scss +4 -13
- package/lib/components/hyIcon/icon.vue.js +3 -3
- package/lib/components/hyIconBox/style/iconBox.scss +2 -6
- package/lib/components/hyInput/inputSearch.vue.js +7 -10
- package/lib/components/hyInput/style/inputSearch.scss +3 -0
- package/lib/components/hyLoading/index.js +2 -4
- package/lib/components/hyMap/js/index.js +29 -4
- package/lib/components/hyMap/map.vue.js +17 -3
- package/lib/components/hyMenu/style/menu.scss +5 -15
- package/lib/components/hyNoPermissions/noPermissions.vue.js +3 -4
- package/lib/components/hyNoPermissionsMap/noPermissionsMap.vue.js +3 -6
- package/lib/components/hyOrgCascader/js/index.js +1 -5
- package/lib/components/hyOrgCascader/orgCascader.vue.js +23 -9
- package/lib/components/hyOrgCascader/style/orgCascader.scss +7 -0
- package/lib/components/hyRadioGroup/radioGroup.vue.js +47 -40
- package/lib/components/hyRadioGroup/style/radioGroup.scss +9 -0
- package/lib/components/hySearch/cpns/searchItem.vue.js +33 -20
- package/lib/components/hySearch/js/index.js +1 -4
- package/lib/components/hySearch/js/useAppSearch.js +6 -10
- package/lib/components/hySearch/search.vue.js +9 -16
- package/lib/components/hySearch/style/search.scss +2 -0
- package/lib/components/hyStatus/index.js +12 -0
- package/lib/components/hyStatus/status.vue.js +114 -0
- package/lib/components/hyStatus/style/status.scss +0 -0
- package/lib/components/hyTable/cpns/columnSelect.vue.js +22 -26
- package/lib/components/hyTable/cpns/columnSelectItem.vue.js +7 -8
- package/lib/components/hyTable/cpns/headerItem.vue.js +2 -2
- package/lib/components/hyTable/cpns/virtualTable.vue.js +17 -27
- package/lib/components/hyTable/js/index.js +54 -57
- package/lib/components/hyTable/js/useAppTable.js +2 -3
- package/lib/components/hyTable/style/table.scss +8 -0
- package/lib/components/hyTable/table.vue.js +35 -41
- package/lib/components/hyTableActionButton/tableActionButton.vue.js +4 -4
- package/lib/components/hyTableForm/batchTableForm.vue.js +3 -7
- package/lib/components/hyTableForm/js/index.js +3 -11
- package/lib/components/hyTableForm/js/useAppTableForm.js +2 -7
- package/lib/components/hyTableForm/style/batchTableForm.scss +26 -54
- package/lib/components/hyTableForm/style/tableForm.scss +3 -2
- package/lib/components/hyTableForm/tableForm.vue.js +89 -45
- package/lib/components/hyTimePicker/timePicker.vue.js +3 -4
- package/lib/components/hyTree/js/index.js +13 -40
- package/lib/components/hyTree/style/index.css +1 -1
- package/lib/components/hyTree/tree.vue.js +17 -16
- package/lib/components/hyUserAvatar/userAvatar.vue.js +3 -6
- package/lib/components/hyVideoPlayer/js/index.js +14 -23
- package/lib/components/hyVideoPlayer/style/videoPlayer.scss +5 -7
- package/lib/components/hyVideoPlayer/videoPlayer.vue.js +16 -26
- package/lib/components/index.js +46 -40
- package/lib/hooks/index.js +17 -0
- package/lib/hooks/useAudioPlayerConfig.js +1 -3
- package/lib/hooks/useBaseMainStore.js +32 -0
- package/lib/hooks/useCurrentBus.js +23 -0
- package/lib/hooks/useDialog.js +331 -0
- package/lib/hooks/useExportFile.js +135 -0
- package/lib/hooks/useGlobalConfig.js +10 -6
- package/lib/hooks/useLocale.js +25 -11
- package/lib/hooks/usePermissionMap.js +1 -3
- package/lib/hooks/useResizeHandler.js +1 -4
- package/lib/hooks/useResizeObserver.js +3 -1
- package/lib/hooks/useSubscribe.js +2 -1
- package/lib/hooks/useUserAvatarMap.js +1 -3
- package/lib/hooks/useVideoPlayerConfig.js +1 -3
- package/lib/index.js +107 -73
- package/lib/locale/{en.js → en_US.js} +81 -5
- package/lib/locale/index.js +3 -3
- package/lib/locale/zh_CN.js +81 -3
- package/lib/style/tailwind.scss +7 -3
- package/lib/utils/adaptive.js +1 -3
- package/lib/utils/form.js +17 -10
- package/lib/utils/handler.js +3 -7
- package/lib/utils/input.js +7 -8
- package/lib/utils/map/hook/bigMap.js +14 -53
- package/lib/utils/map/hook/gaode.js +5 -20
- package/lib/utils/map/hook/leafletjs.js +23 -79
- package/lib/utils/map/index.js +2 -8
- package/lib/utils/map/js/webgis.js +12 -12
- package/lib/version.js +1 -1
- package/package.json +3 -2
|
@@ -6,9 +6,9 @@ var vue = require('vue');
|
|
|
6
6
|
require('../../utils/index.js');
|
|
7
7
|
require('../../hooks/index.js');
|
|
8
8
|
require('../index.js');
|
|
9
|
-
var useLocale = require('../../hooks/useLocale.js');
|
|
10
9
|
var useUserAvatarMap = require('../../hooks/useUserAvatarMap.js');
|
|
11
10
|
var adaptive = require('../../utils/adaptive.js');
|
|
11
|
+
var useLocale = require('../../hooks/useLocale.js');
|
|
12
12
|
var index = require('../hyIcon/index.js');
|
|
13
13
|
|
|
14
14
|
import "./style/userAvatar.scss";
|
|
@@ -61,7 +61,6 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
61
61
|
setup(__props, { emit: __emit }) {
|
|
62
62
|
const props = __props;
|
|
63
63
|
const emits = __emit;
|
|
64
|
-
const { t } = useLocale.useLocale();
|
|
65
64
|
const { userAvatarMap } = useUserAvatarMap.useUserAvatarMap();
|
|
66
65
|
const isGbDevice = vue.computed(
|
|
67
66
|
() => props.device?.gbDevice === 1 && (props.device?.deviceType || props.device?.type) !== 13
|
|
@@ -111,7 +110,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
111
110
|
headImg.value ? (vue.openBlock(), vue.createElementBlock("img", {
|
|
112
111
|
key: 0,
|
|
113
112
|
src: headImg.value,
|
|
114
|
-
alt: vue.unref(t)("userAvatar.userAvatar")
|
|
113
|
+
alt: vue.unref(useLocale.$t)("userAvatar.userAvatar")
|
|
115
114
|
}, null, 8, ["src", "alt"])) : __props.device?.onlineState === 1 ? (vue.openBlock(), vue.createBlock(vue.unref(index.HyIcon), {
|
|
116
115
|
key: 1,
|
|
117
116
|
"svg-name": __props.initSelectSvgName,
|
|
@@ -126,9 +125,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
126
125
|
"span",
|
|
127
126
|
{
|
|
128
127
|
key: 2,
|
|
129
|
-
class: vue.normalizeClass(
|
|
130
|
-
__props.device?.onlineState === 1 ? "bg-success shadow-[0_0_4px_0] shadow-success" : "bg-info"
|
|
131
|
-
)
|
|
128
|
+
class: vue.normalizeClass(__props.device?.onlineState === 1 ? "bg-success shadow-[0_0_4px_0] shadow-success" : "bg-info")
|
|
132
129
|
},
|
|
133
130
|
null,
|
|
134
131
|
2
|
|
@@ -6,8 +6,8 @@ require('dayjs');
|
|
|
6
6
|
require('../../../hooks/index.js');
|
|
7
7
|
require('../../../utils/index.js');
|
|
8
8
|
require('../../index.js');
|
|
9
|
-
var useLocale = require('../../../hooks/useLocale.js');
|
|
10
9
|
var useVideoPlayerConfig = require('../../../hooks/useVideoPlayerConfig.js');
|
|
10
|
+
var useLocale = require('../../../hooks/useLocale.js');
|
|
11
11
|
var date = require('../../../utils/date.js');
|
|
12
12
|
var is = require('../../../utils/is.js');
|
|
13
13
|
var index = require('../../hyConfirmDialog/index.js');
|
|
@@ -15,7 +15,6 @@ var handler = require('../../../utils/handler.js');
|
|
|
15
15
|
|
|
16
16
|
const useVideoPlayer = (hy) => {
|
|
17
17
|
const { props, emits, videoRef, videoWrapperRef } = hy;
|
|
18
|
-
const { t } = useLocale.useLocale();
|
|
19
18
|
const { videoPlayerConfig } = useVideoPlayerConfig.useVideoPlayerConfig();
|
|
20
19
|
const speed = vue.ref(1);
|
|
21
20
|
const playRules = vue.ref(1);
|
|
@@ -41,17 +40,17 @@ const useVideoPlayer = (hy) => {
|
|
|
41
40
|
const playRulesList = [
|
|
42
41
|
{
|
|
43
42
|
value: 1,
|
|
44
|
-
label: t("videoPlayer.stopAfterPlayback"),
|
|
43
|
+
label: useLocale.$t("videoPlayer.stopAfterPlayback"),
|
|
45
44
|
svgName: "ops-audio-media-center-stop-playing"
|
|
46
45
|
},
|
|
47
46
|
{
|
|
48
47
|
value: 2,
|
|
49
|
-
label: t("videoPlayer.continuousPlayback"),
|
|
48
|
+
label: useLocale.$t("videoPlayer.continuousPlayback"),
|
|
50
49
|
svgName: "ops-audio-media-center-autoplay"
|
|
51
50
|
},
|
|
52
51
|
{
|
|
53
52
|
value: 3,
|
|
54
|
-
label: t("videoPlayer.loopPlayback"),
|
|
53
|
+
label: useLocale.$t("videoPlayer.loopPlayback"),
|
|
55
54
|
svgName: "ops-audio-media-center-loop-playback"
|
|
56
55
|
}
|
|
57
56
|
];
|
|
@@ -60,7 +59,7 @@ const useVideoPlayer = (hy) => {
|
|
|
60
59
|
});
|
|
61
60
|
const speedLabel = vue.computed(() => {
|
|
62
61
|
if (speed.value === 1) {
|
|
63
|
-
return t("videoPlayer.multiples");
|
|
62
|
+
return useLocale.$t("videoPlayer.multiples");
|
|
64
63
|
} else {
|
|
65
64
|
return speedList.find((item) => item.value === speed.value).label;
|
|
66
65
|
}
|
|
@@ -190,15 +189,13 @@ const useVideoPlayer = (hy) => {
|
|
|
190
189
|
}
|
|
191
190
|
function playPrevious() {
|
|
192
191
|
if (props.type === "default") {
|
|
193
|
-
const index = props.playList.findIndex(
|
|
194
|
-
(item) => item.id === videoItem.value.id
|
|
195
|
-
);
|
|
192
|
+
const index = props.playList.findIndex((item) => item.id === videoItem.value.id);
|
|
196
193
|
if (index > 0 && index !== props.playList.length) {
|
|
197
194
|
const item = props.playList[index - 1];
|
|
198
195
|
playVideo(item.filePath, item);
|
|
199
196
|
emits("play-previous");
|
|
200
197
|
} else {
|
|
201
|
-
elementPlus.ElMessage.warning(t("videoPlayer.currentIsTheFirstItem"));
|
|
198
|
+
elementPlus.ElMessage.warning(useLocale.$t("videoPlayer.currentIsTheFirstItem"));
|
|
202
199
|
}
|
|
203
200
|
} else if (isAnalyseType.value) {
|
|
204
201
|
if (!isCanPlay.value) return;
|
|
@@ -207,15 +204,13 @@ const useVideoPlayer = (hy) => {
|
|
|
207
204
|
}
|
|
208
205
|
function playNext() {
|
|
209
206
|
if (props.type === "default") {
|
|
210
|
-
const index = props.playList.findIndex(
|
|
211
|
-
(item) => item.id === videoItem.value.id
|
|
212
|
-
);
|
|
207
|
+
const index = props.playList.findIndex((item) => item.id === videoItem.value.id);
|
|
213
208
|
if (index !== props.playList.length - 1) {
|
|
214
209
|
const item = props.playList[index + 1];
|
|
215
210
|
playVideo(item.filePath, item);
|
|
216
211
|
emits("play-next");
|
|
217
212
|
} else {
|
|
218
|
-
elementPlus.ElMessage.warning(t("videoPlayer.currentIsTheLastItem"));
|
|
213
|
+
elementPlus.ElMessage.warning(useLocale.$t("videoPlayer.currentIsTheLastItem"));
|
|
219
214
|
}
|
|
220
215
|
} else if (isAnalyseType.value) {
|
|
221
216
|
if (!isCanPlay.value) return;
|
|
@@ -320,14 +315,12 @@ const useVideoPlayer = (hy) => {
|
|
|
320
315
|
const url = `${props.vlcProtocol}:${videoUrl.value}`;
|
|
321
316
|
window.protocolCheck(url, () => {
|
|
322
317
|
hasVLC.value = false;
|
|
323
|
-
elementPlus.ElMessage.error(t("videoPlayer.notInstallVlcTips"));
|
|
318
|
+
elementPlus.ElMessage.error(useLocale.$t("videoPlayer.notInstallVlcTips"));
|
|
324
319
|
});
|
|
325
320
|
}
|
|
326
321
|
function downloadVLC() {
|
|
327
322
|
if (!props.vlcAddress) {
|
|
328
|
-
elementPlus.ElMessage.warning(
|
|
329
|
-
t("videoPlayer.pleaseConfigureTheAddressForDownloadingVLC")
|
|
330
|
-
);
|
|
323
|
+
elementPlus.ElMessage.warning(useLocale.$t("videoPlayer.pleaseConfigureTheAddressForDownloadingVLC"));
|
|
331
324
|
return;
|
|
332
325
|
}
|
|
333
326
|
const newOpenWindow = window.open("about:blank");
|
|
@@ -335,16 +328,14 @@ const useVideoPlayer = (hy) => {
|
|
|
335
328
|
newOpenWindow.location = props.vlcAddress;
|
|
336
329
|
}
|
|
337
330
|
if (newOpenWindow) {
|
|
338
|
-
elementPlus.ElMessage.success(t("videoPlayer.operationSuccessful"));
|
|
331
|
+
elementPlus.ElMessage.success(useLocale.$t("videoPlayer.operationSuccessful"));
|
|
339
332
|
} else {
|
|
340
333
|
index.HyConfirmDialog.confirm({
|
|
341
334
|
title: "\u8DF3\u8F6C\u63D0\u793A",
|
|
342
|
-
content: `<div><p>${t(
|
|
343
|
-
"videoPlayer.theCurrentBrowserBlocksTheOpeningOfNewWindows"
|
|
344
|
-
)}</p><p>${t(
|
|
335
|
+
content: `<div><p>${t("videoPlayer.theCurrentBrowserBlocksTheOpeningOfNewWindows")}</p><p>${t(
|
|
345
336
|
"videoPlayer.pleaseGoToTheBrowserSettingsAndClickOnTheDownloadOrCopyLinkToOpenInTheBrowser"
|
|
346
337
|
)}</p></div>`,
|
|
347
|
-
submitText: t("videoPlayer.copyLink"),
|
|
338
|
+
submitText: useLocale.$t("videoPlayer.copyLink"),
|
|
348
339
|
onSubmit: async () => {
|
|
349
340
|
await handler.copyText(props.vlcAddress);
|
|
350
341
|
}
|
|
@@ -91,6 +91,7 @@
|
|
|
91
91
|
color: rgba(var(--hy-main));
|
|
92
92
|
padding: 0 10px;
|
|
93
93
|
margin-top: 16px;
|
|
94
|
+
box-sizing: border-box;
|
|
94
95
|
|
|
95
96
|
.progress-box {
|
|
96
97
|
width: 100%;
|
|
@@ -187,6 +188,7 @@
|
|
|
187
188
|
border: 1px solid rgba(var(--hy-border));
|
|
188
189
|
border-radius: 4px;
|
|
189
190
|
background-color: rgba(var(--hy-background-2));
|
|
191
|
+
box-sizing: border-box;
|
|
190
192
|
}
|
|
191
193
|
|
|
192
194
|
.hy-icon {
|
|
@@ -231,26 +233,22 @@
|
|
|
231
233
|
position: absolute;
|
|
232
234
|
top: 0;
|
|
233
235
|
bottom: 0;
|
|
234
|
-
background: linear-gradient(
|
|
235
|
-
to bottom,
|
|
236
|
-
rgba(28, 51, 74, 0) 0%,
|
|
237
|
-
#1c334ac4 50%,
|
|
238
|
-
rgba(28, 51, 74, 0) 100%
|
|
239
|
-
);
|
|
236
|
+
background: linear-gradient(to bottom, rgba(28, 51, 74, 0) 0%, #1c334ac4 50%, rgba(28, 51, 74, 0) 100%);
|
|
240
237
|
}
|
|
241
|
-
|
|
242
238
|
}
|
|
243
239
|
|
|
244
240
|
.hy-video-player-popover-volume-slider {
|
|
245
241
|
min-width: auto !important;
|
|
246
242
|
width: 40px !important;
|
|
247
243
|
padding: 16px 0;
|
|
244
|
+
box-sizing: border-box;
|
|
248
245
|
}
|
|
249
246
|
|
|
250
247
|
.hy-video-player-popover-speed {
|
|
251
248
|
min-width: auto !important;
|
|
252
249
|
width: 62px !important;
|
|
253
250
|
padding: 0px !important;
|
|
251
|
+
box-sizing: border-box;
|
|
254
252
|
.speed-list {
|
|
255
253
|
width: 100%;
|
|
256
254
|
color: rgba(var(--hy-auxiliary));
|
|
@@ -9,8 +9,8 @@ require('../../utils/index.js');
|
|
|
9
9
|
require('../index.js');
|
|
10
10
|
var mediaLoading = require('./cpns/mediaLoading.vue.js');
|
|
11
11
|
var index = require('./js/index.js');
|
|
12
|
-
var useLocale = require('../../hooks/useLocale.js');
|
|
13
12
|
var useMixins = require('../../hooks/useMixins.js');
|
|
13
|
+
var useLocale = require('../../hooks/useLocale.js');
|
|
14
14
|
var index$1 = require('../hyIcon/index.js');
|
|
15
15
|
var index$2 = require('../hyButton/index.js');
|
|
16
16
|
var index$3 = require('../hyTooltip/index.js');
|
|
@@ -117,18 +117,10 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
117
117
|
type: Function
|
|
118
118
|
}
|
|
119
119
|
},
|
|
120
|
-
emits: [
|
|
121
|
-
"canplay",
|
|
122
|
-
"timeupdate",
|
|
123
|
-
"play-start",
|
|
124
|
-
"play-ended",
|
|
125
|
-
"play-previous",
|
|
126
|
-
"play-next"
|
|
127
|
-
],
|
|
120
|
+
emits: ["canplay", "timeupdate", "play-start", "play-ended", "play-previous", "play-next"],
|
|
128
121
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
129
122
|
const props = __props;
|
|
130
123
|
const emits = __emit;
|
|
131
|
-
const { t } = useLocale.useLocale();
|
|
132
124
|
const videoWrapperRef = vue.useTemplateRef("videoWrapperRef");
|
|
133
125
|
const videoRef = vue.useTemplateRef("videoRef");
|
|
134
126
|
const {
|
|
@@ -222,7 +214,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
222
214
|
vue.createElementVNode(
|
|
223
215
|
"span",
|
|
224
216
|
{ class: "text-xs text-theme mt-4" },
|
|
225
|
-
"..." + vue.toDisplayString(vue.unref(t)("videoPlayer.videoResourcesAreLoading")) + "...",
|
|
217
|
+
"..." + vue.toDisplayString(vue.unref(useLocale.$t)("videoPlayer.videoResourcesAreLoading")) + "...",
|
|
226
218
|
1
|
|
227
219
|
/* TEXT */
|
|
228
220
|
)
|
|
@@ -230,7 +222,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
230
222
|
vue.createCommentVNode(" \u65E0\u6CD5\u64AD\u653E "),
|
|
231
223
|
vue.unref(videoState) === "CAN_NOT_PLAY" ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
232
224
|
key: 1,
|
|
233
|
-
class: "w-full h-full flex flex-col justify-center items-center px-[34px]"
|
|
225
|
+
class: "w-full h-full flex flex-col justify-center items-center px-[34px] box-border"
|
|
234
226
|
}, [
|
|
235
227
|
vue.createCommentVNode(" \u91C7\u96C6\u7AD9\u6587\u4EF6 "),
|
|
236
228
|
vue.unref(videoItem) && vue.unref(videoItem).csFile === 1 && vue.unref(videoItem).onlineState !== 1 ? (vue.openBlock(), vue.createElementBlock(
|
|
@@ -248,16 +240,14 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
248
240
|
vue.createElementVNode(
|
|
249
241
|
"span",
|
|
250
242
|
{ class: "text-xs text-auxiliary mt-4" },
|
|
251
|
-
vue.toDisplayString(vue.unref(t)("videoPlayer.fileLoadingFailed")),
|
|
243
|
+
vue.toDisplayString(vue.unref(useLocale.$t)("videoPlayer.fileLoadingFailed")),
|
|
252
244
|
1
|
|
253
245
|
/* TEXT */
|
|
254
246
|
),
|
|
255
247
|
vue.createElementVNode(
|
|
256
248
|
"span",
|
|
257
249
|
{ class: "text-xs text-auxiliary" },
|
|
258
|
-
vue.toDisplayString(
|
|
259
|
-
"pleaseCheckWhetherTheCollectionStationIsOnlineAndWhetherTheFileExists"
|
|
260
|
-
)),
|
|
250
|
+
vue.toDisplayString(vue.unref(useLocale.$t)("pleaseCheckWhetherTheCollectionStationIsOnlineAndWhetherTheFileExists")),
|
|
261
251
|
1
|
|
262
252
|
/* TEXT */
|
|
263
253
|
)
|
|
@@ -286,7 +276,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
286
276
|
vue.createElementVNode(
|
|
287
277
|
"div",
|
|
288
278
|
{ class: "text-theme text-center mt-3 mb-[14px]" },
|
|
289
|
-
vue.toDisplayString(vue.unref(isCanNotPlayType) ? vue.unref(t)("videoPlayer.vlcPlayerTip") : vue.unref(t)("videoPlayer.theVideoCannotBePlayed")),
|
|
279
|
+
vue.toDisplayString(vue.unref(isCanNotPlayType) ? vue.unref(useLocale.$t)("videoPlayer.vlcPlayerTip") : vue.unref(useLocale.$t)("videoPlayer.theVideoCannotBePlayed")),
|
|
290
280
|
1
|
|
291
281
|
/* TEXT */
|
|
292
282
|
),
|
|
@@ -300,7 +290,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
300
290
|
}, {
|
|
301
291
|
default: vue.withCtx(() => [
|
|
302
292
|
vue.createTextVNode(
|
|
303
|
-
vue.toDisplayString(vue.unref(t)("videoPlayer.clickPlay")),
|
|
293
|
+
vue.toDisplayString(vue.unref(useLocale.$t)("videoPlayer.clickPlay")),
|
|
304
294
|
1
|
|
305
295
|
/* TEXT */
|
|
306
296
|
)
|
|
@@ -313,7 +303,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
313
303
|
}, {
|
|
314
304
|
default: vue.withCtx(() => [
|
|
315
305
|
vue.createTextVNode(
|
|
316
|
-
vue.toDisplayString(vue.unref(t)("videoPlayer.toDownloadVlc")),
|
|
306
|
+
vue.toDisplayString(vue.unref(useLocale.$t)("videoPlayer.toDownloadVlc")),
|
|
317
307
|
1
|
|
318
308
|
/* TEXT */
|
|
319
309
|
)
|
|
@@ -335,7 +325,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
335
325
|
vue.createVNode(vue.unref(index$3.HyTooltip), {
|
|
336
326
|
isAlways: "",
|
|
337
327
|
overLine: 1,
|
|
338
|
-
content: vue.unref(t)("videoPlayer.viewThePreviousVideo")
|
|
328
|
+
content: vue.unref(useLocale.$t)("videoPlayer.viewThePreviousVideo")
|
|
339
329
|
}, {
|
|
340
330
|
default: vue.withCtx(() => [
|
|
341
331
|
vue.createElementVNode("div", {
|
|
@@ -356,7 +346,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
356
346
|
vue.createVNode(vue.unref(index$3.HyTooltip), {
|
|
357
347
|
isAlways: "",
|
|
358
348
|
overLine: 1,
|
|
359
|
-
content: vue.unref(t)("videoPlayer.viewTheNextVideo")
|
|
349
|
+
content: vue.unref(useLocale.$t)("videoPlayer.viewTheNextVideo")
|
|
360
350
|
}, {
|
|
361
351
|
default: vue.withCtx(() => [
|
|
362
352
|
vue.createElementVNode("div", {
|
|
@@ -394,7 +384,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
394
384
|
vue.createElementVNode("source", { type: "video/webm" }),
|
|
395
385
|
vue.createElementVNode("source", { type: "video/ogg" }),
|
|
396
386
|
vue.createTextVNode(
|
|
397
|
-
" " + vue.toDisplayString(vue.unref(t)("videoPlayer.yourBrowserDoesNotSupportHTMLVideoPlayback")),
|
|
387
|
+
" " + vue.toDisplayString(vue.unref(useLocale.$t)("videoPlayer.yourBrowserDoesNotSupportHTMLVideoPlayback")),
|
|
398
388
|
1
|
|
399
389
|
/* TEXT */
|
|
400
390
|
)
|
|
@@ -523,7 +513,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
523
513
|
vue.createVNode(vue.unref(index$3.HyTooltip), {
|
|
524
514
|
isAlways: "",
|
|
525
515
|
overLine: 1,
|
|
526
|
-
content: vue.unref(t)("videoPlayer.adjustPlaybackVolume")
|
|
516
|
+
content: vue.unref(useLocale.$t)("videoPlayer.adjustPlaybackVolume")
|
|
527
517
|
}, {
|
|
528
518
|
default: vue.withCtx(() => [
|
|
529
519
|
vue.createVNode(vue.unref(index$1.HyIcon), {
|
|
@@ -555,7 +545,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
555
545
|
key: 0,
|
|
556
546
|
isAlways: "",
|
|
557
547
|
overLine: 1,
|
|
558
|
-
content: vue.unref(t)("videoPlayer.fullScreenSwitch")
|
|
548
|
+
content: vue.unref(useLocale.$t)("videoPlayer.fullScreenSwitch")
|
|
559
549
|
}, {
|
|
560
550
|
default: vue.withCtx(() => [
|
|
561
551
|
vue.createVNode(vue.unref(index$1.HyIcon), {
|
|
@@ -571,7 +561,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
571
561
|
key: 1,
|
|
572
562
|
isAlways: "",
|
|
573
563
|
overLine: 1,
|
|
574
|
-
content: vue.unref(isExpand) ? vue.unref(t)("videoPlayer.packUp") : vue.unref(t)("videoPlayer.expand")
|
|
564
|
+
content: vue.unref(isExpand) ? vue.unref(useLocale.$t)("videoPlayer.packUp") : vue.unref(useLocale.$t)("videoPlayer.expand")
|
|
575
565
|
}, {
|
|
576
566
|
default: vue.withCtx(() => [
|
|
577
567
|
vue.createVNode(vue.unref(index$1.HyIcon), {
|
|
@@ -603,7 +593,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
603
593
|
key: 0,
|
|
604
594
|
isAlways: "",
|
|
605
595
|
overLine: 1,
|
|
606
|
-
content: vue.unref(t)("videoPlayer.downloadFile")
|
|
596
|
+
content: vue.unref(useLocale.$t)("videoPlayer.downloadFile")
|
|
607
597
|
}, {
|
|
608
598
|
default: vue.withCtx(() => [
|
|
609
599
|
vue.createVNode(vue.unref(index$1.HyIcon), {
|
package/lib/components/index.js
CHANGED
|
@@ -1,34 +1,37 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index$
|
|
4
|
-
var index$
|
|
3
|
+
var index$m = require('./hyOrgCascader/index.js');
|
|
4
|
+
var index$b = require('./hyConfirmDialog/index.js');
|
|
5
5
|
var index = require('./hyDatePicker/index.js');
|
|
6
|
-
var index$
|
|
7
|
-
var index$
|
|
8
|
-
var index$
|
|
9
|
-
var index$
|
|
10
|
-
var index$
|
|
6
|
+
var index$f = require('./hyForm/index.js');
|
|
7
|
+
var index$g = require('./hyIcon/index.js');
|
|
8
|
+
var index$h = require('./hyIconBox/index.js');
|
|
9
|
+
var index$o = require('./hySearch/index.js');
|
|
10
|
+
var index$q = require('./hyTable/index.js');
|
|
11
11
|
var index$4 = require('./hyTooltip/index.js');
|
|
12
|
-
var index$
|
|
12
|
+
var index$a = require('./hyConfigProvider/index.js');
|
|
13
13
|
var index$8 = require('./hyButton/index.js');
|
|
14
|
-
var index$
|
|
15
|
-
var index$
|
|
16
|
-
var index$
|
|
17
|
-
var index$
|
|
18
|
-
var index$
|
|
19
|
-
var index$
|
|
20
|
-
var index$
|
|
21
|
-
var index$
|
|
14
|
+
var index$u = require('./hyUserAvatar/index.js');
|
|
15
|
+
var index$k = require('./hyNoPermissions/index.js');
|
|
16
|
+
var index$l = require('./hyNoPermissionsMap/index.js');
|
|
17
|
+
var index$c = require('./hyCutter/index.js');
|
|
18
|
+
var index$d = require('./hyDialog/index.js');
|
|
19
|
+
var index$j = require('./hyMenu/index.js');
|
|
20
|
+
var index$t = require('./hyTree/index.js');
|
|
21
|
+
var index$v = require('./hyVideoPlayer/index.js');
|
|
22
22
|
var index$5 = require('./hyAudioPlayer/index.js');
|
|
23
23
|
var index$1 = require('./hyInput/index.js');
|
|
24
24
|
var index$3 = require('./hyTimePicker/index.js');
|
|
25
25
|
var index$6 = require('./hyTableForm/index.js');
|
|
26
|
-
var index$
|
|
26
|
+
var index$r = require('./hyTableActionButton/index.js');
|
|
27
27
|
var index$7 = require('./hyBatchUploadDialog/index.js');
|
|
28
|
-
var index$
|
|
29
|
-
var index$
|
|
28
|
+
var index$i = require('./hyMap/index.js');
|
|
29
|
+
var index$n = require('./hyRadioGroup/index.js');
|
|
30
30
|
var index$2 = require('./hyLoading/index.js');
|
|
31
|
-
var index$
|
|
31
|
+
var index$s = require('./hyTour/index.js');
|
|
32
|
+
var index$e = require('./hyDrawer/index.js');
|
|
33
|
+
var index$p = require('./hyStatus/index.js');
|
|
34
|
+
var index$9 = require('./hyCheckboxGroup/index.js');
|
|
32
35
|
var useAppForm = require('./hyForm/js/useAppForm.js');
|
|
33
36
|
var useAppSearch = require('./hySearch/js/useAppSearch.js');
|
|
34
37
|
var useAppTable = require('./hyTable/js/useAppTable.js');
|
|
@@ -36,27 +39,27 @@ var useAppTableForm = require('./hyTableForm/js/useAppTableForm.js');
|
|
|
36
39
|
|
|
37
40
|
|
|
38
41
|
|
|
39
|
-
exports.HyOrgCascader = index$
|
|
40
|
-
exports.HyConfirmDialog = index$
|
|
42
|
+
exports.HyOrgCascader = index$m.HyOrgCascader;
|
|
43
|
+
exports.HyConfirmDialog = index$b.HyConfirmDialog;
|
|
41
44
|
exports.ElDatePicker = index.ElDatePicker;
|
|
42
45
|
exports.HyDatePicker = index.HyDatePicker;
|
|
43
|
-
exports.HyForm = index$
|
|
44
|
-
exports.HyIcon = index$
|
|
45
|
-
exports.HyIconBox = index$
|
|
46
|
-
exports.HySearch = index$
|
|
47
|
-
exports.HyTable = index$
|
|
46
|
+
exports.HyForm = index$f.HyForm;
|
|
47
|
+
exports.HyIcon = index$g.HyIcon;
|
|
48
|
+
exports.HyIconBox = index$h.HyIconBox;
|
|
49
|
+
exports.HySearch = index$o.HySearch;
|
|
50
|
+
exports.HyTable = index$q.HyTable;
|
|
48
51
|
exports.ElTooltip = index$4.ElTooltip;
|
|
49
52
|
exports.HyTooltip = index$4.HyTooltip;
|
|
50
|
-
exports.HyConfigProvider = index$
|
|
53
|
+
exports.HyConfigProvider = index$a.HyConfigProvider;
|
|
51
54
|
exports.HyButton = index$8.HyButton;
|
|
52
|
-
exports.HyUserAvatar = index$
|
|
53
|
-
exports.HyNoPermissions = index$
|
|
54
|
-
exports.HyNoPermissionsMap = index$
|
|
55
|
-
exports.HyCutter = index$
|
|
56
|
-
exports.HyDialog = index$
|
|
57
|
-
exports.HyMenu = index$
|
|
58
|
-
exports.HyTree = index$
|
|
59
|
-
exports.HyVideoPlayer = index$
|
|
55
|
+
exports.HyUserAvatar = index$u.HyUserAvatar;
|
|
56
|
+
exports.HyNoPermissions = index$k.HyNoPermissions;
|
|
57
|
+
exports.HyNoPermissionsMap = index$l.HyNoPermissionsMap;
|
|
58
|
+
exports.HyCutter = index$c.HyCutter;
|
|
59
|
+
exports.HyDialog = index$d.HyDialog;
|
|
60
|
+
exports.HyMenu = index$j.HyMenu;
|
|
61
|
+
exports.HyTree = index$t.HyTree;
|
|
62
|
+
exports.HyVideoPlayer = index$v.HyVideoPlayer;
|
|
60
63
|
exports.HyAudioPlayer = index$5.HyAudioPlayer;
|
|
61
64
|
exports.ElInput = index$1.ElInput;
|
|
62
65
|
exports.HyInput = index$1.HyInput;
|
|
@@ -65,13 +68,16 @@ exports.ElTimePicker = index$3.ElTimePicker;
|
|
|
65
68
|
exports.HyTimePicker = index$3.HyTimePicker;
|
|
66
69
|
exports.HyBatchTableForm = index$6.HyBatchTableForm;
|
|
67
70
|
exports.HyTableForm = index$6.HyTableForm;
|
|
68
|
-
exports.HyTableActionButton = index$
|
|
71
|
+
exports.HyTableActionButton = index$r.HyTableActionButton;
|
|
69
72
|
exports.HyBatchUploadDialog = index$7.HyBatchUploadDialog;
|
|
70
|
-
exports.HyMap = index$
|
|
71
|
-
exports.HyRadioGroup = index$
|
|
73
|
+
exports.HyMap = index$i.HyMap;
|
|
74
|
+
exports.HyRadioGroup = index$n.HyRadioGroup;
|
|
72
75
|
exports.ElLoading = index$2.ElLoading;
|
|
73
76
|
exports.HyLoading = index$2.ElLoading;
|
|
74
|
-
exports.HyTour = index$
|
|
77
|
+
exports.HyTour = index$s.HyTour;
|
|
78
|
+
exports.HyDrawer = index$e.HyDrawer;
|
|
79
|
+
exports.HyStatus = index$p.HyStatus;
|
|
80
|
+
exports.HyCheckboxGroup = index$9.HyCheckboxGroup;
|
|
75
81
|
exports.resetAppFormValue = useAppForm.resetAppFormValue;
|
|
76
82
|
exports.useAppForm = useAppForm.useAppForm;
|
|
77
83
|
exports.resetAppSearchValue = useAppSearch.resetAppSearchValue;
|
package/lib/hooks/index.js
CHANGED
|
@@ -14,16 +14,24 @@ var useEnsureHyIcon = require('./useEnsureHyIcon.js');
|
|
|
14
14
|
var useTooltipConfig = require('./useTooltipConfig.js');
|
|
15
15
|
var useSubscribe = require('./useSubscribe.js');
|
|
16
16
|
var useMapConfig = require('./useMapConfig.js');
|
|
17
|
+
var useDialog = require('./useDialog.js');
|
|
18
|
+
var useExportFile = require('./useExportFile.js');
|
|
19
|
+
var useBaseMainStore = require('./useBaseMainStore.js');
|
|
20
|
+
var useCurrentBus = require('./useCurrentBus.js');
|
|
17
21
|
|
|
18
22
|
|
|
19
23
|
|
|
20
24
|
exports.defaultAxios = useApi.defaultAxios;
|
|
21
25
|
exports.localApiKey = useApi.localApiKey;
|
|
22
26
|
exports.useApi = useApi.useApi;
|
|
27
|
+
exports.$t = useLocale.$t;
|
|
23
28
|
exports.buildLocaleContext = useLocale.buildLocaleContext;
|
|
24
29
|
exports.buildTranslator = useLocale.buildTranslator;
|
|
30
|
+
exports.getLang = useLocale.getLang;
|
|
25
31
|
exports.getLanguage = useLocale.getLanguage;
|
|
32
|
+
exports.lang = useLocale.lang;
|
|
26
33
|
exports.localeContextKey = useLocale.localeContextKey;
|
|
34
|
+
exports.setLang = useLocale.setLang;
|
|
27
35
|
exports.translate = useLocale.translate;
|
|
28
36
|
exports.useLocale = useLocale.useLocale;
|
|
29
37
|
exports.configProviderContextKey = useGlobalConfig.configProviderContextKey;
|
|
@@ -45,7 +53,16 @@ exports.localEnsureHyIconMapKey = useEnsureHyIcon.localEnsureHyIconMapKey;
|
|
|
45
53
|
exports.useEnsureHyIcon = useEnsureHyIcon.useEnsureHyIcon;
|
|
46
54
|
exports.localTooltipConfigKey = useTooltipConfig.localTooltipConfigKey;
|
|
47
55
|
exports.useTooltipConfig = useTooltipConfig.useTooltipConfig;
|
|
56
|
+
exports.bus = useSubscribe.bus;
|
|
48
57
|
exports.usePublish = useSubscribe.usePublish;
|
|
49
58
|
exports.useSubscribe = useSubscribe.useSubscribe;
|
|
50
59
|
exports.localMapConfigKey = useMapConfig.localMapConfigKey;
|
|
51
60
|
exports.useMapConfig = useMapConfig.useMapConfig;
|
|
61
|
+
exports.useBatchDialog = useDialog.useBatchDialog;
|
|
62
|
+
exports.useDialog = useDialog.useDialog;
|
|
63
|
+
exports.useDialogIsEdit = useDialog.useDialogIsEdit;
|
|
64
|
+
exports.useExportFile = useExportFile.useExportFile;
|
|
65
|
+
exports.localBaseMainStoreKey = useBaseMainStore.localBaseMainStoreKey;
|
|
66
|
+
exports.useBaseMainStore = useBaseMainStore.useBaseMainStore;
|
|
67
|
+
exports.localCurrentBusKey = useCurrentBus.localCurrentBusKey;
|
|
68
|
+
exports.useCurrentBus = useCurrentBus.useCurrentBus;
|
|
@@ -12,9 +12,7 @@ const useAudioPlayerConfig = () => {
|
|
|
12
12
|
};
|
|
13
13
|
} else {
|
|
14
14
|
return {
|
|
15
|
-
audioPlayerConfig: vue.computed(
|
|
16
|
-
() => vue.unref(useGlobalConfig.useGlobalConfig()).audioPlayer || {}
|
|
17
|
-
)
|
|
15
|
+
audioPlayerConfig: vue.computed(() => vue.unref(useGlobalConfig.useGlobalConfig()).audioPlayer || {})
|
|
18
16
|
};
|
|
19
17
|
}
|
|
20
18
|
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var vue = require('vue');
|
|
4
|
+
var useGlobalConfig = require('./useGlobalConfig.js');
|
|
5
|
+
|
|
6
|
+
const localBaseMainStoreKey = /* @__PURE__ */ Symbol("baseMainStore");
|
|
7
|
+
const defaultBaseMainStore = () => ({
|
|
8
|
+
getters: {
|
|
9
|
+
dragLevel: 1e3
|
|
10
|
+
},
|
|
11
|
+
commit(key) {
|
|
12
|
+
this[key]();
|
|
13
|
+
},
|
|
14
|
+
setDragLevel() {
|
|
15
|
+
this.getters.dragLevel++;
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
const useBaseMainStore = () => {
|
|
19
|
+
if (vue.getCurrentInstance()) {
|
|
20
|
+
const baseMainStore = vue.inject(localBaseMainStoreKey, vue.ref());
|
|
21
|
+
return {
|
|
22
|
+
baseMainStore: vue.unref(baseMainStore) ? vue.unref(baseMainStore) : (vue.unref(useGlobalConfig.useGlobalConfig()).baseMainStore || defaultBaseMainStore)()
|
|
23
|
+
};
|
|
24
|
+
} else {
|
|
25
|
+
return {
|
|
26
|
+
baseMainStore: (vue.unref(useGlobalConfig.useGlobalConfig()).baseMainStore || defaultBaseMainStore)()
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
exports.localBaseMainStoreKey = localBaseMainStoreKey;
|
|
32
|
+
exports.useBaseMainStore = useBaseMainStore;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var vue = require('vue');
|
|
4
|
+
var useGlobalConfig = require('./useGlobalConfig.js');
|
|
5
|
+
var useSubscribe = require('./useSubscribe.js');
|
|
6
|
+
|
|
7
|
+
const localCurrentBusKey = /* @__PURE__ */ Symbol("currentBus");
|
|
8
|
+
const defaultCurrentBus = useSubscribe.bus;
|
|
9
|
+
const useCurrentBus = () => {
|
|
10
|
+
if (vue.getCurrentInstance()) {
|
|
11
|
+
const currentBus = vue.inject(localCurrentBusKey, vue.ref());
|
|
12
|
+
return {
|
|
13
|
+
currentBus: vue.unref(currentBus) ? currentBus : vue.computed(() => vue.unref(useGlobalConfig.useGlobalConfig()).currentBus || defaultCurrentBus)
|
|
14
|
+
};
|
|
15
|
+
} else {
|
|
16
|
+
return {
|
|
17
|
+
currentBus: vue.computed(() => vue.unref(useGlobalConfig.useGlobalConfig()).currentBus || defaultCurrentBus)
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
exports.localCurrentBusKey = localCurrentBusKey;
|
|
23
|
+
exports.useCurrentBus = useCurrentBus;
|