hy-dispatch-ui-v3 0.2.67 → 0.2.68
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 +169 -0
- package/es/bussiness/hyElectronicFence/cpns/electronicFenceAssociatedUsersDialog/electronicFenceAssociatedUsersDialog.vue.mjs +318 -0
- package/es/bussiness/hyElectronicFence/cpns/electronicFenceAssociatedUsersDialog/electronicFenceAssociatedUsersItem.vue.mjs +123 -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/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 +65 -35
- package/es/components/hyForm/cpns/locationSelect.vue.mjs +26 -26
- package/es/components/hyForm/form.vue.mjs +56 -24
- package/es/components/hyForm/js/index.mjs +4 -8
- package/es/components/hyForm/js/useAppForm.mjs +4 -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 +5 -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 +2 -8
- 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} +79 -4
- package/es/locale/index.mjs +2 -2
- package/es/locale/zh_CN.mjs +79 -2
- package/es/style/tailwind.scss +7 -3
- package/es/utils/adaptive.mjs +1 -3
- package/es/utils/form.mjs +7 -10
- 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 +173 -0
- package/lib/bussiness/hyElectronicFence/cpns/electronicFenceAssociatedUsersDialog/electronicFenceAssociatedUsersDialog.vue.js +322 -0
- package/lib/bussiness/hyElectronicFence/cpns/electronicFenceAssociatedUsersDialog/electronicFenceAssociatedUsersItem.vue.js +127 -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/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 +66 -36
- package/lib/components/hyForm/cpns/locationSelect.vue.js +26 -26
- package/lib/components/hyForm/form.vue.js +51 -19
- package/lib/components/hyForm/js/index.js +3 -7
- package/lib/components/hyForm/js/useAppForm.js +4 -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 +5 -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 +2 -8
- 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} +79 -4
- package/lib/locale/index.js +3 -3
- package/lib/locale/zh_CN.js +79 -2
- package/lib/style/tailwind.scss +7 -3
- package/lib/utils/adaptive.js +1 -3
- package/lib/utils/form.js +6 -9
- 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
|
@@ -1,10 +1,12 @@
|
|
|
1
|
-
import { defineComponent, useModel, useTemplateRef, ref, computed, watch,
|
|
1
|
+
import { defineComponent, useModel, useTemplateRef, ref, computed, watch, onBeforeUnmount, openBlock, createElementBlock, createElementVNode, normalizeStyle, createVNode, unref, createSlots, withCtx, renderSlot, toDisplayString, createCommentVNode, createBlock, normalizeClass, mergeModels } from 'vue';
|
|
2
2
|
import { ElCascader, ElIcon } from 'element-plus';
|
|
3
3
|
import { Loading } from '@element-plus/icons-vue';
|
|
4
4
|
import '../../hooks/index.mjs';
|
|
5
|
+
import '../index.mjs';
|
|
5
6
|
import { getOrgTreeSimple, orgTreeDatahandler } from './js/index.mjs';
|
|
6
7
|
import { useSubscribe } from '../../hooks/useSubscribe.mjs';
|
|
7
|
-
import {
|
|
8
|
+
import { HyIcon } from '../hyIcon/index.mjs';
|
|
9
|
+
import { $t } from '../../hooks/useLocale.mjs';
|
|
8
10
|
|
|
9
11
|
import "./style/orgCascader.scss";
|
|
10
12
|
|
|
@@ -28,8 +30,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
28
30
|
placeholder: {
|
|
29
31
|
type: String,
|
|
30
32
|
default: () => {
|
|
31
|
-
|
|
32
|
-
return t("cascader.pleaseSelectDepartment");
|
|
33
|
+
return $t("cascader.pleaseSelectDepartment");
|
|
33
34
|
}
|
|
34
35
|
},
|
|
35
36
|
/*
|
|
@@ -83,7 +84,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
83
84
|
"modelValue": { type: [Array, String, Number] },
|
|
84
85
|
"modelModifiers": {}
|
|
85
86
|
}),
|
|
86
|
-
emits: /* @__PURE__ */ mergeModels(["change"], ["update:modelValue"]),
|
|
87
|
+
emits: /* @__PURE__ */ mergeModels(["change", "requesting", "fulfilled", "rejected"], ["update:modelValue"]),
|
|
87
88
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
88
89
|
const props = __props;
|
|
89
90
|
const emits = __emit;
|
|
@@ -100,15 +101,23 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
100
101
|
return target?.companyName;
|
|
101
102
|
});
|
|
102
103
|
function getCascaderData() {
|
|
103
|
-
|
|
104
|
+
emits("requesting");
|
|
105
|
+
if (props.options && props.options.length) {
|
|
106
|
+
emits("fulfilled");
|
|
107
|
+
resolve();
|
|
108
|
+
return;
|
|
109
|
+
}
|
|
110
|
+
return new Promise(async (resolve2, reject) => {
|
|
104
111
|
loading.value = true;
|
|
105
112
|
try {
|
|
106
113
|
cascaderOptions.value = [];
|
|
107
114
|
const data = await getOrgTreeSimple();
|
|
108
115
|
handlerData(data || []);
|
|
109
|
-
|
|
116
|
+
emits("fulfilled");
|
|
117
|
+
resolve2();
|
|
110
118
|
} catch (err) {
|
|
111
119
|
console.error(err);
|
|
120
|
+
emits("rejected");
|
|
112
121
|
reject();
|
|
113
122
|
}
|
|
114
123
|
loading.value = false;
|
|
@@ -142,12 +151,12 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
142
151
|
}
|
|
143
152
|
function onVisibleChangeHandler(type) {
|
|
144
153
|
focusType.value = type;
|
|
145
|
-
onVisibleChange(type);
|
|
154
|
+
props.onVisibleChange && props.onVisibleChange(type);
|
|
146
155
|
}
|
|
147
156
|
if (props.defaultGetData) {
|
|
148
157
|
getCascaderData();
|
|
149
|
-
subOrgCascader(getCascaderData);
|
|
150
158
|
}
|
|
159
|
+
subOrgCascader(getCascaderData);
|
|
151
160
|
watch(
|
|
152
161
|
() => props.options,
|
|
153
162
|
() => {
|
|
@@ -164,7 +173,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
164
173
|
},
|
|
165
174
|
{ immediate: true, deep: true }
|
|
166
175
|
);
|
|
167
|
-
|
|
176
|
+
onBeforeUnmount(() => {
|
|
168
177
|
unsubOrgCascader(getCascaderData);
|
|
169
178
|
});
|
|
170
179
|
__expose({
|
|
@@ -201,6 +210,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
201
210
|
filterable: "",
|
|
202
211
|
"show-all-levels": false,
|
|
203
212
|
"virtual-scroll": "",
|
|
213
|
+
"popper-class": "hy-org-cascader-popper",
|
|
204
214
|
onChange: onChangeHanlder,
|
|
205
215
|
onVisibleChange: ($event) => onVisibleChangeHandler($event)
|
|
206
216
|
}, createSlots({
|
|
@@ -235,7 +245,10 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
235
245
|
key: 0,
|
|
236
246
|
style: { "cursor": "pointer" }
|
|
237
247
|
}, [
|
|
238
|
-
|
|
248
|
+
createVNode(unref(HyIcon), {
|
|
249
|
+
"svg-name": "dispatch-share1-prompt",
|
|
250
|
+
class: "!w-3 !h-3"
|
|
251
|
+
}),
|
|
239
252
|
renderSlot(_ctx.$slots, "default"),
|
|
240
253
|
currentCompanyName.value ? (openBlock(), createElementBlock(
|
|
241
254
|
"span",
|
|
@@ -264,6 +277,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
264
277
|
filterable: "",
|
|
265
278
|
"show-all-levels": false,
|
|
266
279
|
"virtual-scroll": "",
|
|
280
|
+
"popper-class": "hy-org-cascader-popper",
|
|
267
281
|
onChange: onChangeHanlder,
|
|
268
282
|
onVisibleChange: __props.onVisibleChange
|
|
269
283
|
}, createSlots({
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, useModel, useTemplateRef, ref, computed, nextTick, watch, openBlock, createElementBlock, normalizeClass, Fragment, renderList, renderSlot, createTextVNode, toDisplayString, normalizeStyle, createCommentVNode, mergeModels } from 'vue';
|
|
1
|
+
import { defineComponent, useModel, useTemplateRef, ref, computed, nextTick, watch, openBlock, createElementBlock, normalizeClass, createElementVNode, Fragment, renderList, renderSlot, createTextVNode, toDisplayString, normalizeStyle, createCommentVNode, mergeModels } from 'vue';
|
|
2
2
|
|
|
3
3
|
import "./style/radioGroup.scss";
|
|
4
4
|
|
|
@@ -18,6 +18,10 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
18
18
|
size: {
|
|
19
19
|
type: String,
|
|
20
20
|
default: "default"
|
|
21
|
+
},
|
|
22
|
+
disabled: {
|
|
23
|
+
type: Boolean,
|
|
24
|
+
default: false
|
|
21
25
|
}
|
|
22
26
|
}, {
|
|
23
27
|
"modelValue": {
|
|
@@ -41,6 +45,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
41
45
|
};
|
|
42
46
|
});
|
|
43
47
|
function switchSelect(target) {
|
|
48
|
+
if (target[radioProps.value.disabled] || props.disabled) return;
|
|
44
49
|
const value = target[radioProps.value.value];
|
|
45
50
|
if (modelValue.value === value) return;
|
|
46
51
|
modelValue.value = value;
|
|
@@ -68,51 +73,53 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
68
73
|
__expose({});
|
|
69
74
|
return (_ctx, _cache) => {
|
|
70
75
|
return openBlock(), createElementBlock(
|
|
71
|
-
"
|
|
76
|
+
"div",
|
|
72
77
|
{
|
|
73
|
-
class: normalizeClass(["
|
|
74
|
-
__props.size === "large" ? "h-[40px]" : __props.size === "small" ? "h-[
|
|
78
|
+
class: normalizeClass(["hy-radio-group", [
|
|
79
|
+
__props.size === "large" ? "h-[40px]" : __props.size === "small" ? "h-[30px]" : "h-[34px]",
|
|
75
80
|
__props.size === "small" ? "text-xs" : "text-sm"
|
|
76
81
|
]])
|
|
77
82
|
},
|
|
78
83
|
[
|
|
79
|
-
(
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
84
|
+
createElementVNode("div", { class: "w-full h-full inline-flex box-border relative" }, [
|
|
85
|
+
(openBlock(true), createElementBlock(
|
|
86
|
+
Fragment,
|
|
87
|
+
null,
|
|
88
|
+
renderList(__props.options, (item, index) => {
|
|
89
|
+
return openBlock(), createElementBlock("div", {
|
|
90
|
+
key: index,
|
|
91
|
+
class: normalizeClass(["w-0 flex-1 h-full flex items-center justify-center text-main whitespace-nowrap user-select-none relative z-[2]", [item[radioProps.value.disabled] || __props.disabled ? "cursor-not-allowed opacity-90" : "cursor-pointer"]]),
|
|
92
|
+
onClick: ($event) => switchSelect(item, index, $event)
|
|
93
|
+
}, [
|
|
94
|
+
renderSlot(_ctx.$slots, "default", {
|
|
95
|
+
item,
|
|
96
|
+
index
|
|
97
|
+
}, () => [
|
|
98
|
+
createTextVNode(
|
|
99
|
+
toDisplayString(item[radioProps.value.label]),
|
|
100
|
+
1
|
|
101
|
+
/* TEXT */
|
|
102
|
+
)
|
|
103
|
+
])
|
|
104
|
+
], 10, ["onClick"]);
|
|
105
|
+
}),
|
|
106
|
+
128
|
|
107
|
+
/* KEYED_FRAGMENT */
|
|
108
|
+
)),
|
|
109
|
+
selectIndex.value >= 0 ? (openBlock(), createElementBlock(
|
|
110
|
+
"div",
|
|
111
|
+
{
|
|
112
|
+
key: 0,
|
|
113
|
+
ref_key: "sliderRef",
|
|
114
|
+
ref: sliderRef,
|
|
115
|
+
class: "slider rounded-[2px] box-border absolute h-full top-0 left-0 z-0 duration-500 border border-theme",
|
|
116
|
+
style: normalizeStyle([{ width: `calc(100% / ${__props.options.length})` }, { "background": "linear-gradient(180deg, #2a4968 0%, #0ea0bb 100%)" }])
|
|
117
|
+
},
|
|
118
|
+
null,
|
|
119
|
+
4
|
|
120
|
+
/* STYLE */
|
|
121
|
+
)) : createCommentVNode("v-if", true)
|
|
122
|
+
])
|
|
116
123
|
],
|
|
117
124
|
2
|
|
118
125
|
/* CLASS */
|
|
@@ -82,19 +82,14 @@ const _sfc_main = {
|
|
|
82
82
|
return new Promise(async (resolve, reject) => {
|
|
83
83
|
if (props.column.optionsFn) {
|
|
84
84
|
if (!props.column.optionsFn) return;
|
|
85
|
-
|
|
86
|
-
props.column.optionsError = "";
|
|
87
|
-
props.column.attrs.options = [];
|
|
85
|
+
onRequesting();
|
|
88
86
|
if (!(isMountedLoad && props.column.isDefaultGetData === false)) {
|
|
89
87
|
try {
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
props.model
|
|
93
|
-
);
|
|
94
|
-
props.column.optionsError = "";
|
|
88
|
+
const options = await props.column.optionsFn(props.column, props.model);
|
|
89
|
+
onFulfilled(options);
|
|
95
90
|
resolve();
|
|
96
91
|
} catch (err) {
|
|
97
|
-
|
|
92
|
+
onRejected();
|
|
98
93
|
console.error(err);
|
|
99
94
|
reject();
|
|
100
95
|
}
|
|
@@ -103,13 +98,13 @@ const _sfc_main = {
|
|
|
103
98
|
}
|
|
104
99
|
} else if (props.column.type === "org-cascader") {
|
|
105
100
|
if (componentRef.value) {
|
|
106
|
-
props.column.optionsLoading = true;
|
|
107
|
-
props.column.optionsError = "";
|
|
108
101
|
try {
|
|
102
|
+
onRequesting();
|
|
109
103
|
await componentRef.value.getData();
|
|
104
|
+
onFulfilled();
|
|
110
105
|
resolve();
|
|
111
106
|
} catch {
|
|
112
|
-
|
|
107
|
+
onRejected();
|
|
113
108
|
reject();
|
|
114
109
|
}
|
|
115
110
|
} else {
|
|
@@ -121,6 +116,21 @@ const _sfc_main = {
|
|
|
121
116
|
props.column.optionsLoading = false;
|
|
122
117
|
});
|
|
123
118
|
}
|
|
119
|
+
function onRequesting() {
|
|
120
|
+
props.column.optionsLoading = true;
|
|
121
|
+
props.column.optionsError = "";
|
|
122
|
+
props.column.attrs.options = [];
|
|
123
|
+
}
|
|
124
|
+
function onFulfilled(options = []) {
|
|
125
|
+
props.column.optionsLoading = false;
|
|
126
|
+
props.column.optionsError = "";
|
|
127
|
+
props.column.attrs.options = options;
|
|
128
|
+
}
|
|
129
|
+
function onRejected() {
|
|
130
|
+
props.column.optionsLoading = false;
|
|
131
|
+
props.column.optionsError = "error";
|
|
132
|
+
props.column.attrs.options = [];
|
|
133
|
+
}
|
|
124
134
|
function getOptionsHandler(props2, column) {
|
|
125
135
|
if (props2.column.optionsLoading) {
|
|
126
136
|
return [];
|
|
@@ -221,7 +231,7 @@ const _sfc_main = {
|
|
|
221
231
|
createElementVNode(
|
|
222
232
|
"div",
|
|
223
233
|
{
|
|
224
|
-
class: normalizeClass(["flex items-center text-auxiliary text-sm whitespace-nowrap", {
|
|
234
|
+
class: normalizeClass(["flex items-center text-auxiliary text-sm whitespace-nowrap box-border", {
|
|
225
235
|
"border-r border-border px-3": __props.column.labelSlot && _ctx.$slots[__props.column.labelSlot] || unref(columnLabelHandler)(__props.column, props.model)
|
|
226
236
|
}])
|
|
227
237
|
},
|
|
@@ -353,12 +363,7 @@ const _sfc_main = {
|
|
|
353
363
|
{ key: 4 },
|
|
354
364
|
[
|
|
355
365
|
createCommentVNode(" \u65E5\u671F\u9009\u62E9\u6846 "),
|
|
356
|
-
[
|
|
357
|
-
"datetimerange",
|
|
358
|
-
"daterange",
|
|
359
|
-
"monthrange",
|
|
360
|
-
"yearrange"
|
|
361
|
-
].includes(columnAttrs.value?.type) && unref(isArray)(__props.column.field) ? (openBlock(), createBlock(unref(HyDatePicker), mergeProps({
|
|
366
|
+
["datetimerange", "daterange", "monthrange", "yearrange"].includes(columnAttrs.value?.type) && unref(isArray)(__props.column.field) ? (openBlock(), createBlock(unref(HyDatePicker), mergeProps({
|
|
362
367
|
key: 0,
|
|
363
368
|
ref_key: "componentRef",
|
|
364
369
|
ref: componentRef,
|
|
@@ -367,6 +372,7 @@ const _sfc_main = {
|
|
|
367
372
|
end: bindValue2.value,
|
|
368
373
|
"onUpdate:end": ($event) => bindValue2.value = $event,
|
|
369
374
|
"is-range": true,
|
|
375
|
+
class: "box-border",
|
|
370
376
|
style: { "width": "100%" },
|
|
371
377
|
timeRangeFill: __props.column.timeRangeFill
|
|
372
378
|
}, columnAttrs.value, {
|
|
@@ -379,6 +385,7 @@ const _sfc_main = {
|
|
|
379
385
|
modelValue: bindValue.value,
|
|
380
386
|
"onUpdate:modelValue": ($event) => bindValue.value = $event,
|
|
381
387
|
"is-range": false,
|
|
388
|
+
class: "box-border",
|
|
382
389
|
style: { "width": "100%" },
|
|
383
390
|
timeRangeFill: __props.column.timeRangeFill
|
|
384
391
|
}, columnAttrs.value, {
|
|
@@ -402,6 +409,7 @@ const _sfc_main = {
|
|
|
402
409
|
end: bindValue2.value,
|
|
403
410
|
"onUpdate:end": ($event) => bindValue2.value = $event,
|
|
404
411
|
"is-range": true,
|
|
412
|
+
class: "box-border",
|
|
405
413
|
style: { "width": "100%" }
|
|
406
414
|
}, columnAttrs.value, {
|
|
407
415
|
disabled: unref(isDisabled)(props, __props.column),
|
|
@@ -413,6 +421,7 @@ const _sfc_main = {
|
|
|
413
421
|
modelValue: bindValue.value,
|
|
414
422
|
"onUpdate:modelValue": ($event) => bindValue.value = $event,
|
|
415
423
|
"is-range": false,
|
|
424
|
+
class: "box-border",
|
|
416
425
|
style: { "width": "100%" }
|
|
417
426
|
}, columnAttrs.value, {
|
|
418
427
|
disabled: unref(isDisabled)(props, __props.column),
|
|
@@ -433,6 +442,10 @@ const _sfc_main = {
|
|
|
433
442
|
"onUpdate:modelValue": ($event) => bindValue.value = $event
|
|
434
443
|
}, columnAttrs.value, {
|
|
435
444
|
disabled: unref(isDisabled)(props, __props.column),
|
|
445
|
+
defaultGetData: false,
|
|
446
|
+
onRequesting,
|
|
447
|
+
onFulfilled,
|
|
448
|
+
onRejected,
|
|
436
449
|
onChange: onChangeHandler,
|
|
437
450
|
onVisibleChange
|
|
438
451
|
}), null, 16, ["modelValue", "onUpdate:modelValue", "disabled"])
|
|
@@ -501,7 +514,7 @@ const _sfc_main = {
|
|
|
501
514
|
renderList(__props.column.timeRangeOptions, (item, index) => {
|
|
502
515
|
return openBlock(), createElementBlock("div", {
|
|
503
516
|
key: index,
|
|
504
|
-
class: normalizeClass(["border-l border-border px-[10px] cursor-pointer", {
|
|
517
|
+
class: normalizeClass(["border-l border-border px-[10px] cursor-pointer box-border", {
|
|
505
518
|
"bg-[rgba(var(--hy-theme),0.2)] text-theme font-bold": unref(isSelectedTimeRange)(__props.column, item, __props.model)
|
|
506
519
|
}]),
|
|
507
520
|
onClick: ($event) => onTimeRangeClickHandler(__props.column, item)
|
|
@@ -48,10 +48,7 @@ function isEmptyValue(e) {
|
|
|
48
48
|
return isEmpty(e) || isArray(e) && !e.length;
|
|
49
49
|
}
|
|
50
50
|
function useShrink(props, formItemWrapper) {
|
|
51
|
-
const { removeResize } = useResizeObserver(
|
|
52
|
-
formItemWrapper,
|
|
53
|
-
shrinkResizeHandler
|
|
54
|
-
);
|
|
51
|
+
const { removeResize } = useResizeObserver(formItemWrapper, shrinkResizeHandler);
|
|
55
52
|
const isExpand = ref(false);
|
|
56
53
|
const showShrink = ref(true);
|
|
57
54
|
const containerHeight = ref(getContainerPickUpHeight());
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { unref, toRef } from 'vue';
|
|
2
2
|
import '../../../hooks/index.mjs';
|
|
3
3
|
import '../../../utils/index.mjs';
|
|
4
|
-
import { useLocale } from '../../../hooks/useLocale.mjs';
|
|
5
4
|
import { isNumber } from '../../../utils/is.mjs';
|
|
5
|
+
import { $t } from '../../../hooks/useLocale.mjs';
|
|
6
6
|
import { genColumnDefaultLabel, genValueByProp } from '../../../utils/form.mjs';
|
|
7
7
|
import { mergeDeep, funRunHandler } from '../../../utils/handler.mjs';
|
|
8
8
|
|
|
@@ -32,7 +32,6 @@ const genColumnWidth = (config) => {
|
|
|
32
32
|
return { width, inputWidth };
|
|
33
33
|
};
|
|
34
34
|
const timeRangeOptionsHandler = (config) => {
|
|
35
|
-
const { t } = useLocale();
|
|
36
35
|
const { timeRangeOptions } = config || {};
|
|
37
36
|
if (!timeRangeOptions?.length) return timeRangeOptions;
|
|
38
37
|
return timeRangeOptions.reduce((list, item) => {
|
|
@@ -42,15 +41,15 @@ const timeRangeOptionsHandler = (config) => {
|
|
|
42
41
|
if (!label) {
|
|
43
42
|
switch (unit) {
|
|
44
43
|
case "year":
|
|
45
|
-
label = `${value} ` + t(isPlural ? "hy.years" : "hy.year");
|
|
44
|
+
label = `${value} ` + $t(isPlural ? "hy.years" : "hy.year");
|
|
46
45
|
break;
|
|
47
46
|
case "month":
|
|
48
|
-
label = `${value} ` + t(isPlural ? "hy.months" : "hy.month");
|
|
47
|
+
label = `${value} ` + $t(isPlural ? "hy.months" : "hy.month");
|
|
49
48
|
break;
|
|
50
49
|
case "day":
|
|
51
50
|
default:
|
|
52
51
|
unit = "day";
|
|
53
|
-
label = value === 1 ? t("hy.today") : `${value} ` + t(isPlural ? "hy.days" : "hy.day");
|
|
52
|
+
label = value === 1 ? $t("hy.today") : `${value} ` + $t(isPlural ? "hy.days" : "hy.day");
|
|
54
53
|
}
|
|
55
54
|
}
|
|
56
55
|
list.push({ ...item, label, unit });
|
|
@@ -107,11 +106,7 @@ const resetAppSearchValue = (columns = [], obj = {}) => {
|
|
|
107
106
|
const value = funRunHandler(item.defaultValue);
|
|
108
107
|
if (Array.isArray(item.prop)) {
|
|
109
108
|
for (let i = 0; i < item.prop.length; i++) {
|
|
110
|
-
genValueByProp(
|
|
111
|
-
obj,
|
|
112
|
-
item.prop[i],
|
|
113
|
-
Array.isArray(value) ? value[i] : void 0
|
|
114
|
-
);
|
|
109
|
+
genValueByProp(obj, item.prop[i], Array.isArray(value) ? value[i] : void 0);
|
|
115
110
|
}
|
|
116
111
|
} else {
|
|
117
112
|
genValueByProp(obj, item.prop, value);
|
|
@@ -7,9 +7,9 @@ import '../index.mjs';
|
|
|
7
7
|
import _sfc_main$1 from './cpns/searchItem.vue.mjs';
|
|
8
8
|
import { useShrink, isEmptyValue, formContextKey } from './js/index.mjs';
|
|
9
9
|
import { resetAppSearchValue } from './js/useAppSearch.mjs';
|
|
10
|
-
import { useLocale } from '../../hooks/useLocale.mjs';
|
|
11
10
|
import { isArray, isObject } from '../../utils/is.mjs';
|
|
12
11
|
import { HyIcon } from '../hyIcon/index.mjs';
|
|
12
|
+
import { $t } from '../../hooks/useLocale.mjs';
|
|
13
13
|
|
|
14
14
|
import "./style/search.scss";
|
|
15
15
|
|
|
@@ -51,7 +51,6 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
51
51
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
52
52
|
const props = __props;
|
|
53
53
|
const emits = __emit;
|
|
54
|
-
const { t } = useLocale();
|
|
55
54
|
const formItemWrapper = useTemplateRef("formItemWrapper");
|
|
56
55
|
const { showShrink, isExpand, containerHeight, switchShrink, shrinkDestroy } = useShrink(props, formItemWrapper);
|
|
57
56
|
const formColumnMap = computed(() => {
|
|
@@ -91,7 +90,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
91
90
|
if (isObject(oldVal)) {
|
|
92
91
|
count += getFilterCount(newVal, oldVal, targetProp);
|
|
93
92
|
} else if (isArray(oldVal)) {
|
|
94
|
-
if (oldVal.length > 0 && !oldVal.every((
|
|
93
|
+
if (oldVal.length > 0 && !oldVal.every((t, i) => t === newVal[i])) {
|
|
95
94
|
keySet2.add(unref(formColumnMap).get(key).key);
|
|
96
95
|
}
|
|
97
96
|
} else if (isEmptyValue(oldVal) ? !isEmptyValue(newVal) : oldVal !== newVal) {
|
|
@@ -129,15 +128,11 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
129
128
|
};
|
|
130
129
|
function filterFields(fields2 = [], keys = []) {
|
|
131
130
|
const filterKeys = keys.map((prop) => isArray(prop) ? prop.join(".") : prop);
|
|
132
|
-
return filterKeys.length ? fields2.filter(
|
|
133
|
-
(field) => field.propString && filterKeys.includes(field.propString)
|
|
134
|
-
) : fields2;
|
|
131
|
+
return filterKeys.length ? fields2.filter((field) => field.propString && filterKeys.includes(field.propString)) : fields2;
|
|
135
132
|
}
|
|
136
133
|
async function obtainOptionsFields(keys, isMountedLoad = false) {
|
|
137
134
|
const filteredFields = filterFields(fields, keys);
|
|
138
|
-
await Promise.allSettled(
|
|
139
|
-
filteredFields.map((field) => field.obtainOptions(isMountedLoad))
|
|
140
|
-
);
|
|
135
|
+
await Promise.allSettled(filteredFields.map((field) => field.obtainOptions(isMountedLoad)));
|
|
141
136
|
}
|
|
142
137
|
async function getOptions(isMountedLoad = false) {
|
|
143
138
|
await obtainOptionsFields([], isMountedLoad);
|
|
@@ -148,9 +143,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
148
143
|
emitOptionsStatus();
|
|
149
144
|
}
|
|
150
145
|
async function getOptionsError() {
|
|
151
|
-
const filteredFields = fields.filter(
|
|
152
|
-
(field) => field.propString && field.optionsError
|
|
153
|
-
);
|
|
146
|
+
const filteredFields = fields.filter((field) => field.propString && field.optionsError);
|
|
154
147
|
await Promise.allSettled(filteredFields.map((field) => field.obtainOptions()));
|
|
155
148
|
emitOptionsStatus();
|
|
156
149
|
}
|
|
@@ -206,7 +199,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
206
199
|
createElementVNode(
|
|
207
200
|
"span",
|
|
208
201
|
null,
|
|
209
|
-
toDisplayString(unref(t)("hy.filter")),
|
|
202
|
+
toDisplayString(unref($t)("hy.filter")),
|
|
210
203
|
1
|
|
211
204
|
/* TEXT */
|
|
212
205
|
),
|
|
@@ -216,7 +209,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
216
209
|
[
|
|
217
210
|
createElementVNode(
|
|
218
211
|
"span",
|
|
219
|
-
{ class: "bg-theme02 text-theme font-bold leading-4 px-[6px]" },
|
|
212
|
+
{ class: "bg-theme02 text-theme font-bold leading-4 px-[6px] box-border" },
|
|
220
213
|
toDisplayString(filterCount.value),
|
|
221
214
|
1
|
|
222
215
|
/* TEXT */
|
|
@@ -227,7 +220,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
227
220
|
class: "text-auxiliary cursor-pointer",
|
|
228
221
|
onClick: onResetHandler
|
|
229
222
|
},
|
|
230
|
-
toDisplayString(unref(t)("hy.reset")),
|
|
223
|
+
toDisplayString(unref($t)("hy.reset")),
|
|
231
224
|
1
|
|
232
225
|
/* TEXT */
|
|
233
226
|
)
|
|
@@ -243,7 +236,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
243
236
|
createElementVNode(
|
|
244
237
|
"span",
|
|
245
238
|
{ class: "text-auxiliary" },
|
|
246
|
-
toDisplayString(unref(isExpand) ? unref(t)("hy.packUp") : unref(t)("hy.expand")),
|
|
239
|
+
toDisplayString(unref(isExpand) ? unref($t)("hy.packUp") : unref($t)("hy.expand")),
|
|
247
240
|
1
|
|
248
241
|
/* TEXT */
|
|
249
242
|
),
|
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
opacity: 1;
|
|
7
7
|
transition: all 0.3s linear;
|
|
8
8
|
overflow: hidden;
|
|
9
|
+
box-sizing: border-box;
|
|
9
10
|
&.hy-search-hidden {
|
|
10
11
|
padding-top: 0;
|
|
11
12
|
padding-bottom: 0;
|
|
@@ -34,6 +35,7 @@
|
|
|
34
35
|
gap: 16px;
|
|
35
36
|
position: relative;
|
|
36
37
|
padding: 1px;
|
|
38
|
+
box-sizing: border-box;
|
|
37
39
|
.hy-el-form-item {
|
|
38
40
|
margin-bottom: 0;
|
|
39
41
|
&.hidden {
|