hy-dispatch-ui-v3 0.2.66 → 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 +257 -21
- 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/hyBatchUploadDialog/batchUploadDialog.vue.mjs +174 -142
- package/es/components/hyButton/button.vue.mjs +18 -5
- package/es/components/hyButton/style/button.scss +50 -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 +149 -69
- package/es/components/hyForm/cpns/locationSelect.vue.mjs +26 -26
- package/es/components/hyForm/form.vue.mjs +74 -28
- 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 +35 -10
- package/es/components/hyMap/map.vue.mjs +30 -6
- 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 +31 -12
- 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 +409 -324
- 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 +23 -20
- package/es/components/hySearch/style/search.scss +9 -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 +43 -34
- package/es/components/hyTable/js/index.mjs +67 -64
- package/es/components/hyTable/js/search.mjs +25 -1
- 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 +68 -53
- package/es/components/hyTableActionButton/tableActionButton.vue.mjs +13 -6
- package/es/components/hyTableForm/batchTableForm.vue.mjs +26 -9
- package/es/components/hyTableForm/js/index.mjs +2 -8
- package/es/components/hyTableForm/js/useAppTableForm.mjs +3 -8
- 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 +160 -70
- package/es/components/hyTimePicker/timePicker.vue.mjs +4 -5
- package/es/components/hyTree/js/index.mjs +113 -72
- package/es/components/hyTree/style/index.css +1 -1
- package/es/components/hyTree/tree.vue.mjs +21 -18
- 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/index.scss +0 -1
- package/es/style/tailwind.scss +7 -4
- 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/is.mjs +3 -1
- package/es/utils/map/hook/bigMap.mjs +16 -53
- package/es/utils/map/hook/gaode.mjs +53 -33
- package/es/utils/map/hook/leafletjs.mjs +38 -82
- package/es/utils/map/index.mjs +3 -9
- 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/hyBatchUploadDialog/batchUploadDialog.vue.js +173 -141
- package/lib/components/hyButton/button.vue.js +17 -4
- package/lib/components/hyButton/style/button.scss +50 -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 +148 -68
- package/lib/components/hyForm/cpns/locationSelect.vue.js +26 -26
- package/lib/components/hyForm/form.vue.js +69 -23
- 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 +34 -9
- package/lib/components/hyMap/map.vue.js +29 -5
- 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 +29 -10
- 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 +407 -322
- 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 +23 -20
- package/lib/components/hySearch/style/search.scss +9 -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 +41 -32
- package/lib/components/hyTable/js/index.js +65 -61
- package/lib/components/hyTable/js/search.js +25 -1
- 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 +67 -52
- package/lib/components/hyTableActionButton/tableActionButton.vue.js +13 -6
- package/lib/components/hyTableForm/batchTableForm.vue.js +26 -9
- package/lib/components/hyTableForm/js/index.js +2 -8
- package/lib/components/hyTableForm/js/useAppTableForm.js +3 -8
- 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 +159 -69
- package/lib/components/hyTimePicker/timePicker.vue.js +3 -4
- package/lib/components/hyTree/js/index.js +113 -72
- package/lib/components/hyTree/style/index.css +1 -1
- package/lib/components/hyTree/tree.vue.js +21 -18
- 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/index.scss +0 -1
- package/lib/style/tailwind.scss +7 -4
- 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/is.js +5 -3
- package/lib/utils/map/hook/bigMap.js +16 -53
- package/lib/utils/map/hook/gaode.js +53 -33
- package/lib/utils/map/hook/leafletjs.js +38 -82
- package/lib/utils/map/index.js +3 -9
- package/lib/utils/map/js/webgis.js +12 -12
- package/lib/version.js +1 -1
- package/package.json +3 -2
|
@@ -50,10 +50,7 @@ function isEmptyValue(e) {
|
|
|
50
50
|
return is.isEmpty(e) || is.isArray(e) && !e.length;
|
|
51
51
|
}
|
|
52
52
|
function useShrink(props, formItemWrapper) {
|
|
53
|
-
const { removeResize } = useResizeObserver.useResizeObserver(
|
|
54
|
-
formItemWrapper,
|
|
55
|
-
shrinkResizeHandler
|
|
56
|
-
);
|
|
53
|
+
const { removeResize } = useResizeObserver.useResizeObserver(formItemWrapper, shrinkResizeHandler);
|
|
57
54
|
const isExpand = vue.ref(false);
|
|
58
55
|
const showShrink = vue.ref(true);
|
|
59
56
|
const containerHeight = vue.ref(getContainerPickUpHeight());
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
var vue = require('vue');
|
|
4
4
|
require('../../../hooks/index.js');
|
|
5
5
|
require('../../../utils/index.js');
|
|
6
|
-
var useLocale = require('../../../hooks/useLocale.js');
|
|
7
6
|
var is = require('../../../utils/is.js');
|
|
7
|
+
var useLocale = require('../../../hooks/useLocale.js');
|
|
8
8
|
var form = require('../../../utils/form.js');
|
|
9
9
|
var handler = require('../../../utils/handler.js');
|
|
10
10
|
|
|
@@ -34,7 +34,6 @@ const genColumnWidth = (config) => {
|
|
|
34
34
|
return { width, inputWidth };
|
|
35
35
|
};
|
|
36
36
|
const timeRangeOptionsHandler = (config) => {
|
|
37
|
-
const { t } = useLocale.useLocale();
|
|
38
37
|
const { timeRangeOptions } = config || {};
|
|
39
38
|
if (!timeRangeOptions?.length) return timeRangeOptions;
|
|
40
39
|
return timeRangeOptions.reduce((list, item) => {
|
|
@@ -44,15 +43,15 @@ const timeRangeOptionsHandler = (config) => {
|
|
|
44
43
|
if (!label) {
|
|
45
44
|
switch (unit) {
|
|
46
45
|
case "year":
|
|
47
|
-
label = `${value} ` + t(isPlural ? "hy.years" : "hy.year");
|
|
46
|
+
label = `${value} ` + useLocale.$t(isPlural ? "hy.years" : "hy.year");
|
|
48
47
|
break;
|
|
49
48
|
case "month":
|
|
50
|
-
label = `${value} ` + t(isPlural ? "hy.months" : "hy.month");
|
|
49
|
+
label = `${value} ` + useLocale.$t(isPlural ? "hy.months" : "hy.month");
|
|
51
50
|
break;
|
|
52
51
|
case "day":
|
|
53
52
|
default:
|
|
54
53
|
unit = "day";
|
|
55
|
-
label = value === 1 ? t("hy.today") : `${value} ` + t(isPlural ? "hy.days" : "hy.day");
|
|
54
|
+
label = value === 1 ? useLocale.$t("hy.today") : `${value} ` + useLocale.$t(isPlural ? "hy.days" : "hy.day");
|
|
56
55
|
}
|
|
57
56
|
}
|
|
58
57
|
list.push({ ...item, label, unit });
|
|
@@ -109,11 +108,7 @@ const resetAppSearchValue = (columns = [], obj = {}) => {
|
|
|
109
108
|
const value = handler.funRunHandler(item.defaultValue);
|
|
110
109
|
if (Array.isArray(item.prop)) {
|
|
111
110
|
for (let i = 0; i < item.prop.length; i++) {
|
|
112
|
-
form.genValueByProp(
|
|
113
|
-
obj,
|
|
114
|
-
item.prop[i],
|
|
115
|
-
Array.isArray(value) ? value[i] : void 0
|
|
116
|
-
);
|
|
111
|
+
form.genValueByProp(obj, item.prop[i], Array.isArray(value) ? value[i] : void 0);
|
|
117
112
|
}
|
|
118
113
|
} else {
|
|
119
114
|
form.genValueByProp(obj, item.prop, value);
|
|
@@ -11,9 +11,9 @@ require('../index.js');
|
|
|
11
11
|
var searchItem = require('./cpns/searchItem.vue.js');
|
|
12
12
|
var index = require('./js/index.js');
|
|
13
13
|
var useAppSearch = require('./js/useAppSearch.js');
|
|
14
|
-
var useLocale = require('../../hooks/useLocale.js');
|
|
15
14
|
var is = require('../../utils/is.js');
|
|
16
15
|
var index$1 = require('../hyIcon/index.js');
|
|
16
|
+
var useLocale = require('../../hooks/useLocale.js');
|
|
17
17
|
|
|
18
18
|
import "./style/search.scss";
|
|
19
19
|
|
|
@@ -51,11 +51,10 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
51
51
|
type: [String, Array, Object]
|
|
52
52
|
}
|
|
53
53
|
},
|
|
54
|
-
emits: ["search"],
|
|
54
|
+
emits: ["search", "optionsStatus"],
|
|
55
55
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
56
56
|
const props = __props;
|
|
57
57
|
const emits = __emit;
|
|
58
|
-
const { t } = useLocale.useLocale();
|
|
59
58
|
const formItemWrapper = vue.useTemplateRef("formItemWrapper");
|
|
60
59
|
const { showShrink, isExpand, containerHeight, switchShrink, shrinkDestroy } = index.useShrink(props, formItemWrapper);
|
|
61
60
|
const formColumnMap = vue.computed(() => {
|
|
@@ -95,7 +94,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
95
94
|
if (is.isObject(oldVal)) {
|
|
96
95
|
count += getFilterCount(newVal, oldVal, targetProp);
|
|
97
96
|
} else if (is.isArray(oldVal)) {
|
|
98
|
-
if (oldVal.length > 0 && !oldVal.every((
|
|
97
|
+
if (oldVal.length > 0 && !oldVal.every((t, i) => t === newVal[i])) {
|
|
99
98
|
keySet2.add(vue.unref(formColumnMap).get(key).key);
|
|
100
99
|
}
|
|
101
100
|
} else if (index.isEmptyValue(oldVal) ? !index.isEmptyValue(newVal) : oldVal !== newVal) {
|
|
@@ -133,25 +132,28 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
133
132
|
};
|
|
134
133
|
function filterFields(fields2 = [], keys = []) {
|
|
135
134
|
const filterKeys = keys.map((prop) => is.isArray(prop) ? prop.join(".") : prop);
|
|
136
|
-
return filterKeys.length ? fields2.filter(
|
|
137
|
-
(field) => field.propString && filterKeys.includes(field.propString)
|
|
138
|
-
) : fields2;
|
|
135
|
+
return filterKeys.length ? fields2.filter((field) => field.propString && filterKeys.includes(field.propString)) : fields2;
|
|
139
136
|
}
|
|
140
|
-
async function obtainOptionsFields(keys) {
|
|
137
|
+
async function obtainOptionsFields(keys, isMountedLoad = false) {
|
|
141
138
|
const filteredFields = filterFields(fields, keys);
|
|
142
|
-
await Promise.allSettled(filteredFields.map((field) => field.obtainOptions()));
|
|
139
|
+
await Promise.allSettled(filteredFields.map((field) => field.obtainOptions(isMountedLoad)));
|
|
143
140
|
}
|
|
144
|
-
async function getOptions() {
|
|
145
|
-
await obtainOptionsFields();
|
|
141
|
+
async function getOptions(isMountedLoad = false) {
|
|
142
|
+
await obtainOptionsFields([], isMountedLoad);
|
|
143
|
+
emitOptionsStatus();
|
|
146
144
|
}
|
|
147
145
|
async function getOptionsFields(keys) {
|
|
148
146
|
await obtainOptionsFields(keys);
|
|
147
|
+
emitOptionsStatus();
|
|
149
148
|
}
|
|
150
149
|
async function getOptionsError() {
|
|
151
|
-
const filteredFields = fields.filter(
|
|
152
|
-
(field) => field.propString && field.optionsError
|
|
153
|
-
);
|
|
150
|
+
const filteredFields = fields.filter((field) => field.propString && field.optionsError);
|
|
154
151
|
await Promise.allSettled(filteredFields.map((field) => field.obtainOptions()));
|
|
152
|
+
emitOptionsStatus();
|
|
153
|
+
}
|
|
154
|
+
function emitOptionsStatus() {
|
|
155
|
+
const hasError = fields.some((item) => item.optionsError === "error");
|
|
156
|
+
emits("optionsStatus", { result: !hasError });
|
|
155
157
|
}
|
|
156
158
|
vue.provide(
|
|
157
159
|
index.formContextKey,
|
|
@@ -159,11 +161,12 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
159
161
|
...vue.toRefs(props),
|
|
160
162
|
emits,
|
|
161
163
|
addField,
|
|
162
|
-
removeField
|
|
164
|
+
removeField,
|
|
165
|
+
emitOptionsStatus
|
|
163
166
|
})
|
|
164
167
|
);
|
|
165
168
|
vue.onMounted(() => {
|
|
166
|
-
getOptions();
|
|
169
|
+
getOptions(true);
|
|
167
170
|
});
|
|
168
171
|
vue.onUnmounted(() => {
|
|
169
172
|
shrinkDestroy();
|
|
@@ -200,7 +203,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
200
203
|
vue.createElementVNode(
|
|
201
204
|
"span",
|
|
202
205
|
null,
|
|
203
|
-
vue.toDisplayString(vue.unref(t)("hy.filter")),
|
|
206
|
+
vue.toDisplayString(vue.unref(useLocale.$t)("hy.filter")),
|
|
204
207
|
1
|
|
205
208
|
/* TEXT */
|
|
206
209
|
),
|
|
@@ -210,7 +213,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
210
213
|
[
|
|
211
214
|
vue.createElementVNode(
|
|
212
215
|
"span",
|
|
213
|
-
{ class: "bg-theme02 text-theme font-bold leading-4 px-[6px]" },
|
|
216
|
+
{ class: "bg-theme02 text-theme font-bold leading-4 px-[6px] box-border" },
|
|
214
217
|
vue.toDisplayString(filterCount.value),
|
|
215
218
|
1
|
|
216
219
|
/* TEXT */
|
|
@@ -221,7 +224,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
221
224
|
class: "text-auxiliary cursor-pointer",
|
|
222
225
|
onClick: onResetHandler
|
|
223
226
|
},
|
|
224
|
-
vue.toDisplayString(vue.unref(t)("hy.reset")),
|
|
227
|
+
vue.toDisplayString(vue.unref(useLocale.$t)("hy.reset")),
|
|
225
228
|
1
|
|
226
229
|
/* TEXT */
|
|
227
230
|
)
|
|
@@ -237,7 +240,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
237
240
|
vue.createElementVNode(
|
|
238
241
|
"span",
|
|
239
242
|
{ class: "text-auxiliary" },
|
|
240
|
-
vue.toDisplayString(vue.unref(isExpand) ? vue.unref(t)("hy.packUp") : vue.unref(t)("hy.expand")),
|
|
243
|
+
vue.toDisplayString(vue.unref(isExpand) ? vue.unref(useLocale.$t)("hy.packUp") : vue.unref(useLocale.$t)("hy.expand")),
|
|
241
244
|
1
|
|
242
245
|
/* TEXT */
|
|
243
246
|
),
|
|
@@ -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,11 +35,19 @@
|
|
|
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 {
|
|
40
42
|
display: none;
|
|
41
43
|
}
|
|
44
|
+
.hy-el-search-item-error {
|
|
45
|
+
.hy-el-input .hy-el-input__inner::placeholder,
|
|
46
|
+
.hy-el-select__placeholder.is-transparent {
|
|
47
|
+
color: rgba(var(--hy-danger-2));
|
|
48
|
+
font-size: 14px;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
42
51
|
}
|
|
43
52
|
.hy-el-input,
|
|
44
53
|
.hy-el-date-editor {
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var status = require('./status.vue.js');
|
|
6
|
+
require('../../utils/index.js');
|
|
7
|
+
var handler = require('../../utils/handler.js');
|
|
8
|
+
|
|
9
|
+
const HyStatus = handler.withInstall(status.default);
|
|
10
|
+
|
|
11
|
+
exports.HyStatus = HyStatus;
|
|
12
|
+
exports.default = HyStatus;
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var vue = require('vue');
|
|
6
|
+
require('../index.js');
|
|
7
|
+
var index = require('../hyIcon/index.js');
|
|
8
|
+
|
|
9
|
+
import "./style/status.scss";
|
|
10
|
+
|
|
11
|
+
const __default__ = vue.defineComponent({
|
|
12
|
+
name: "HyStatus"
|
|
13
|
+
});
|
|
14
|
+
const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
15
|
+
props: {
|
|
16
|
+
type: {
|
|
17
|
+
type: String,
|
|
18
|
+
default: "default"
|
|
19
|
+
},
|
|
20
|
+
label: {
|
|
21
|
+
type: String
|
|
22
|
+
},
|
|
23
|
+
isOnline: {
|
|
24
|
+
type: Boolean,
|
|
25
|
+
default: false
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
emits: [],
|
|
29
|
+
setup(__props, { expose: __expose, emit: __emit }) {
|
|
30
|
+
const props = __props;
|
|
31
|
+
const emits = __emit;
|
|
32
|
+
const color = {
|
|
33
|
+
default: "text-auxiliary",
|
|
34
|
+
primary: "text-theme",
|
|
35
|
+
success: "text-success",
|
|
36
|
+
warning: "text-warning",
|
|
37
|
+
danger: "text-danger-2"
|
|
38
|
+
};
|
|
39
|
+
const bgColor = {
|
|
40
|
+
default: "bg-auxiliary",
|
|
41
|
+
primary: "bg-theme",
|
|
42
|
+
success: "bg-success",
|
|
43
|
+
warning: "bg-warning",
|
|
44
|
+
danger: "bg-danger-2"
|
|
45
|
+
};
|
|
46
|
+
const shadowColor = {
|
|
47
|
+
default: "bg-[rgba(var(--hy-auxiliary),0.28)]",
|
|
48
|
+
primary: "bg-[rgba(var(--hy-theme),0.28)]",
|
|
49
|
+
success: "bg-[rgba(var(--hy-success),0.28)]",
|
|
50
|
+
warning: "bg-[rgba(var(--hy-warning),0.28)]",
|
|
51
|
+
danger: "bg-[rgba(var(--hy-danger),0.28)]"
|
|
52
|
+
};
|
|
53
|
+
__expose({});
|
|
54
|
+
return (_ctx, _cache) => {
|
|
55
|
+
return vue.openBlock(), vue.createElementBlock("div", { class: "inline-flex items-center gap-2 text-sm" }, [
|
|
56
|
+
__props.isOnline ? (vue.openBlock(), vue.createElementBlock(
|
|
57
|
+
vue.Fragment,
|
|
58
|
+
{ key: 0 },
|
|
59
|
+
[
|
|
60
|
+
__props.type === "danger" ? (vue.openBlock(), vue.createBlock(vue.unref(index.HyIcon), {
|
|
61
|
+
key: 0,
|
|
62
|
+
"svg-name": "ops-list-device-id-off-line",
|
|
63
|
+
class: "!w-3 !h-3"
|
|
64
|
+
})) : (vue.openBlock(), vue.createBlock(vue.unref(index.HyIcon), {
|
|
65
|
+
key: 1,
|
|
66
|
+
"svg-name": "ops-list-device-id-on-line",
|
|
67
|
+
class: "!w-3 !h-3"
|
|
68
|
+
}))
|
|
69
|
+
],
|
|
70
|
+
64
|
|
71
|
+
/* STABLE_FRAGMENT */
|
|
72
|
+
)) : (vue.openBlock(), vue.createElementBlock(
|
|
73
|
+
"div",
|
|
74
|
+
{
|
|
75
|
+
key: 1,
|
|
76
|
+
class: vue.normalizeClass(["w-2.5 h-2.5 flex items-center justify-center rounded-full flex-shrink-0 box-border", [shadowColor[__props.type]]])
|
|
77
|
+
},
|
|
78
|
+
[
|
|
79
|
+
vue.createElementVNode(
|
|
80
|
+
"div",
|
|
81
|
+
{
|
|
82
|
+
class: vue.normalizeClass(["w-1.5 h-1.5 rounded-full", [bgColor[__props.type]]])
|
|
83
|
+
},
|
|
84
|
+
null,
|
|
85
|
+
2
|
|
86
|
+
/* CLASS */
|
|
87
|
+
)
|
|
88
|
+
],
|
|
89
|
+
2
|
|
90
|
+
/* CLASS */
|
|
91
|
+
)),
|
|
92
|
+
vue.createElementVNode(
|
|
93
|
+
"span",
|
|
94
|
+
{
|
|
95
|
+
class: vue.normalizeClass([color[__props.type]])
|
|
96
|
+
},
|
|
97
|
+
[
|
|
98
|
+
vue.renderSlot(_ctx.$slots, "default", {}, () => [
|
|
99
|
+
vue.createTextVNode(
|
|
100
|
+
vue.toDisplayString(__props.label),
|
|
101
|
+
1
|
|
102
|
+
/* TEXT */
|
|
103
|
+
)
|
|
104
|
+
])
|
|
105
|
+
],
|
|
106
|
+
2
|
|
107
|
+
/* CLASS */
|
|
108
|
+
)
|
|
109
|
+
]);
|
|
110
|
+
};
|
|
111
|
+
}
|
|
112
|
+
});
|
|
113
|
+
|
|
114
|
+
exports.default = _sfc_main;
|
|
File without changes
|
|
@@ -36,7 +36,6 @@ const _sfc_main = {
|
|
|
36
36
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
37
37
|
const props = __props;
|
|
38
38
|
const emits = __emit;
|
|
39
|
-
const { t } = useLocale.useLocale();
|
|
40
39
|
const popoverRef = vue.useTemplateRef("popoverRef");
|
|
41
40
|
const listRef = vue.useTemplateRef("listRef");
|
|
42
41
|
const tableColumns = vue.ref([]);
|
|
@@ -46,6 +45,11 @@ const _sfc_main = {
|
|
|
46
45
|
return total + (isShowColumn(column) ? 1 : 0);
|
|
47
46
|
}, 0);
|
|
48
47
|
});
|
|
48
|
+
const cannotDragged = vue.computed(() => {
|
|
49
|
+
return props.columns.reduce((total, column) => {
|
|
50
|
+
return total + (isShowColumn(column) && column.editable.lock ? 1 : 0);
|
|
51
|
+
}, 0);
|
|
52
|
+
});
|
|
49
53
|
function isShowColumn(column) {
|
|
50
54
|
return index.tableColumnShowHandler(column) && column.editable.edit;
|
|
51
55
|
}
|
|
@@ -85,9 +89,7 @@ const _sfc_main = {
|
|
|
85
89
|
}, /* @__PURE__ */ new Map());
|
|
86
90
|
});
|
|
87
91
|
function onCheckedHandler(target) {
|
|
88
|
-
const currentIndex = checkedList.value.findIndex(
|
|
89
|
-
(item) => item === target.prop
|
|
90
|
-
);
|
|
92
|
+
const currentIndex = checkedList.value.findIndex((item) => item === target.prop);
|
|
91
93
|
if (currentIndex !== -1) {
|
|
92
94
|
checkedList.value.splice(currentIndex, 1);
|
|
93
95
|
} else {
|
|
@@ -97,11 +99,11 @@ const _sfc_main = {
|
|
|
97
99
|
}
|
|
98
100
|
function onConfirmHandler() {
|
|
99
101
|
if (!checkedList.value.length && showColumnsLength.value === tableEditableColumns.value?.length) {
|
|
100
|
-
elementPlus.ElMessage.warning(t("table.theColumnsDisplayedInTheTableCannotBeLeftBlank"));
|
|
102
|
+
elementPlus.ElMessage.warning(useLocale.$t("table.theColumnsDisplayedInTheTableCannotBeLeftBlank"));
|
|
101
103
|
return;
|
|
102
104
|
}
|
|
103
105
|
if (checkedList.value.length > 15) {
|
|
104
|
-
elementPlus.ElMessage.warning(t("table.maxColumnLimitTip"));
|
|
106
|
+
elementPlus.ElMessage.warning(useLocale.$t("table.maxColumnLimitTip"));
|
|
105
107
|
return;
|
|
106
108
|
}
|
|
107
109
|
const editableObj = tableEditableColumns.value.reduce(
|
|
@@ -116,9 +118,7 @@ const _sfc_main = {
|
|
|
116
118
|
closePopover();
|
|
117
119
|
}
|
|
118
120
|
function onClearHandler() {
|
|
119
|
-
const { columnsList, columnsEditablele } = index.tableColumnHandler(
|
|
120
|
-
props.originColumns
|
|
121
|
-
);
|
|
121
|
+
const { columnsList, columnsEditablele } = index.tableColumnHandler(props.originColumns);
|
|
122
122
|
initColumnsInfo(columnsList, columnsEditablele);
|
|
123
123
|
showReset.value = false;
|
|
124
124
|
}
|
|
@@ -132,19 +132,14 @@ const _sfc_main = {
|
|
|
132
132
|
animation: 150,
|
|
133
133
|
onEnd(event) {
|
|
134
134
|
const { oldIndex, newIndex } = event;
|
|
135
|
-
if (is.isEmpty(oldIndex) || is.isEmpty(newIndex) || oldIndex === newIndex)
|
|
136
|
-
return;
|
|
135
|
+
if (is.isEmpty(oldIndex) || is.isEmpty(newIndex) || oldIndex === newIndex) return;
|
|
137
136
|
const minIndex = Math.min(oldIndex, newIndex);
|
|
138
137
|
const maxIndex = Math.max(oldIndex, newIndex);
|
|
139
138
|
const sortList = [];
|
|
140
139
|
for (let i = minIndex; i <= maxIndex; i++) {
|
|
141
140
|
sortList[i] = tableEditableColumns.value[i].sortIndex;
|
|
142
141
|
}
|
|
143
|
-
tableEditableColumns.value.splice(
|
|
144
|
-
newIndex,
|
|
145
|
-
0,
|
|
146
|
-
tableEditableColumns.value.splice(oldIndex, 1)[0]
|
|
147
|
-
);
|
|
142
|
+
tableEditableColumns.value.splice(newIndex, 0, tableEditableColumns.value.splice(oldIndex, 1)[0]);
|
|
148
143
|
for (let i = minIndex; i <= maxIndex; i++) {
|
|
149
144
|
tableEditableColumns.value[i].sortIndex = sortList[i];
|
|
150
145
|
}
|
|
@@ -180,7 +175,7 @@ const _sfc_main = {
|
|
|
180
175
|
},
|
|
181
176
|
{
|
|
182
177
|
reference: vue.withCtx(() => [
|
|
183
|
-
vue.createElementVNode("div", { class: "h-[32px] flex items-center gap-[10px] clickBox px-3 rounded hover:bg-background-2" }, [
|
|
178
|
+
vue.createElementVNode("div", { class: "h-[32px] flex items-center gap-[10px] clickBox px-3 rounded hover:bg-background-2 box-border" }, [
|
|
184
179
|
vue.createVNode(vue.unref(index$1.HyIcon), {
|
|
185
180
|
"svg-name": "ops-button-edit-column",
|
|
186
181
|
"class-name": "!w-3 !h-3"
|
|
@@ -188,7 +183,7 @@ const _sfc_main = {
|
|
|
188
183
|
vue.createElementVNode(
|
|
189
184
|
"span",
|
|
190
185
|
null,
|
|
191
|
-
vue.toDisplayString(vue.unref(t)("table.editColumn")) + " \xB7 " + vue.toDisplayString(showColumnsLength.value),
|
|
186
|
+
vue.toDisplayString(vue.unref(useLocale.$t)("table.editColumn")) + " \xB7 " + vue.toDisplayString(showColumnsLength.value),
|
|
192
187
|
1
|
|
193
188
|
/* TEXT */
|
|
194
189
|
)
|
|
@@ -200,7 +195,7 @@ const _sfc_main = {
|
|
|
200
195
|
vue.createElementVNode(
|
|
201
196
|
"span",
|
|
202
197
|
{ class: "text-main font-bold" },
|
|
203
|
-
vue.toDisplayString(vue.unref(t)("table.editColumn")),
|
|
198
|
+
vue.toDisplayString(vue.unref(useLocale.$t)("table.editColumn")),
|
|
204
199
|
1
|
|
205
200
|
/* TEXT */
|
|
206
201
|
),
|
|
@@ -210,7 +205,7 @@ const _sfc_main = {
|
|
|
210
205
|
onClick: closePopover
|
|
211
206
|
})
|
|
212
207
|
]),
|
|
213
|
-
vue.createElementVNode("div", { class: "flex items-center gap-1.5 px-4 py-2.5 text-xs text-theme" }, [
|
|
208
|
+
vue.createElementVNode("div", { class: "flex items-center gap-1.5 px-4 py-2.5 text-xs text-theme box-border" }, [
|
|
214
209
|
vue.createVNode(vue.unref(index$1.HyIcon), {
|
|
215
210
|
"svg-name": "dispatch-share1-prompt",
|
|
216
211
|
"class-name": "!w-3 !h-3"
|
|
@@ -223,9 +218,10 @@ const _sfc_main = {
|
|
|
223
218
|
"onUpdate:modelValue": ($event) => checkedList.value = $event
|
|
224
219
|
}, {
|
|
225
220
|
default: vue.withCtx(() => [
|
|
226
|
-
vue.
|
|
221
|
+
cannotDragged.value > 0 ? (vue.openBlock(), vue.createElementBlock(
|
|
227
222
|
"div",
|
|
228
223
|
{
|
|
224
|
+
key: 0,
|
|
229
225
|
class: vue.normalizeClass(["flex flex-col gap-1.5 leading-3 text-info", { "mb-1.5": tableEditableColumns.value.length > 0 }])
|
|
230
226
|
},
|
|
231
227
|
[
|
|
@@ -254,7 +250,7 @@ const _sfc_main = {
|
|
|
254
250
|
],
|
|
255
251
|
2
|
|
256
252
|
/* CLASS */
|
|
257
|
-
),
|
|
253
|
+
)) : vue.createCommentVNode("v-if", true),
|
|
258
254
|
vue.createCommentVNode(" \u53EF\u62D6\u62FD "),
|
|
259
255
|
vue.createElementVNode(
|
|
260
256
|
"div",
|
|
@@ -293,7 +289,7 @@ const _sfc_main = {
|
|
|
293
289
|
vue.createElementVNode(
|
|
294
290
|
"span",
|
|
295
291
|
null,
|
|
296
|
-
vue.toDisplayString(vue.unref(t)("table.selectedNumberItems", [checkedList.value?.length || 0])),
|
|
292
|
+
vue.toDisplayString(vue.unref(useLocale.$t)("table.selectedNumberItems", [checkedList.value?.length || 0])),
|
|
297
293
|
1
|
|
298
294
|
/* TEXT */
|
|
299
295
|
),
|
|
@@ -304,7 +300,7 @@ const _sfc_main = {
|
|
|
304
300
|
class: "clickBox text-danger-2 ml-3",
|
|
305
301
|
onClick: onClearHandler
|
|
306
302
|
},
|
|
307
|
-
vue.toDisplayString(vue.unref(t)("hy.reset")),
|
|
303
|
+
vue.toDisplayString(vue.unref(useLocale.$t)("hy.reset")),
|
|
308
304
|
1
|
|
309
305
|
/* TEXT */
|
|
310
306
|
)) : vue.createCommentVNode("v-if", true)
|
|
@@ -320,7 +316,7 @@ const _sfc_main = {
|
|
|
320
316
|
}),
|
|
321
317
|
vue.createVNode(vue.unref(index$2.HyTooltip), {
|
|
322
318
|
"is-always": false,
|
|
323
|
-
content: vue.unref(t)("table.tooManyFieldsWillAffectReadability"),
|
|
319
|
+
content: vue.unref(useLocale.$t)("table.tooManyFieldsWillAffectReadability"),
|
|
324
320
|
class: "mr-2 text-auxiliary"
|
|
325
321
|
}, null, 8, ["content"])
|
|
326
322
|
],
|
|
@@ -334,7 +330,7 @@ const _sfc_main = {
|
|
|
334
330
|
}, {
|
|
335
331
|
default: vue.withCtx(() => [
|
|
336
332
|
vue.createTextVNode(
|
|
337
|
-
vue.toDisplayString(vue.unref(t)("hy.confirm")),
|
|
333
|
+
vue.toDisplayString(vue.unref(useLocale.$t)("hy.confirm")),
|
|
338
334
|
1
|
|
339
335
|
/* TEXT */
|
|
340
336
|
)
|
|
@@ -31,7 +31,6 @@ const _sfc_main = {
|
|
|
31
31
|
setup(__props, { emit: __emit }) {
|
|
32
32
|
const props = __props;
|
|
33
33
|
const emits = __emit;
|
|
34
|
-
const { t } = useLocale.useLocale();
|
|
35
34
|
function onClickHandler(column) {
|
|
36
35
|
if (column.editable.lock) return;
|
|
37
36
|
emits("checked", column);
|
|
@@ -82,7 +81,7 @@ const _sfc_main = {
|
|
|
82
81
|
__props.checkMap.has(__props.column.prop) ? (vue.openBlock(), vue.createElementBlock(
|
|
83
82
|
"span",
|
|
84
83
|
{ key: 0 },
|
|
85
|
-
vue.toDisplayString(vue.unref(t)("table.show")),
|
|
84
|
+
vue.toDisplayString(vue.unref(useLocale.$t)("table.show")),
|
|
86
85
|
1
|
|
87
86
|
/* TEXT */
|
|
88
87
|
)) : (vue.openBlock(), vue.createElementBlock(
|
|
@@ -91,7 +90,7 @@ const _sfc_main = {
|
|
|
91
90
|
key: 1,
|
|
92
91
|
class: "text-info"
|
|
93
92
|
},
|
|
94
|
-
vue.toDisplayString(vue.unref(t)("table.notShown")),
|
|
93
|
+
vue.toDisplayString(vue.unref(useLocale.$t)("table.notShown")),
|
|
95
94
|
1
|
|
96
95
|
/* TEXT */
|
|
97
96
|
)),
|
|
@@ -103,7 +102,7 @@ const _sfc_main = {
|
|
|
103
102
|
}, [
|
|
104
103
|
vue.createElementVNode("div", {
|
|
105
104
|
class: "w-5 h-2.5",
|
|
106
|
-
style: { "background": "radial-gradient(
|
|
105
|
+
style: { "background": "radial-gradient(circle, rgba(var(--hy-theme)) 1px, transparent 2px) 0px 0px / 5px 5px" }
|
|
107
106
|
})
|
|
108
107
|
], 8, ["onClick"])) : vue.createCommentVNode("v-if", true)
|
|
109
108
|
])) : vue.createCommentVNode("v-if", true)
|
|
@@ -112,12 +111,12 @@ const _sfc_main = {
|
|
|
112
111
|
default: vue.withCtx(() => [
|
|
113
112
|
vue.createElementVNode(
|
|
114
113
|
"div",
|
|
115
|
-
{ class: "h-[45px] px-[14px] flex items-center text-main text-sm font-bold border-b border-border" },
|
|
114
|
+
{ class: "h-[45px] px-[14px] flex items-center text-main text-sm font-bold border-b border-border box-border" },
|
|
116
115
|
vue.toDisplayString(vue.unref(index.renderHeaderHandler)(__props.column)),
|
|
117
116
|
1
|
|
118
117
|
/* TEXT */
|
|
119
118
|
),
|
|
120
|
-
vue.createElementVNode("div", { class: "flex flex-col gap-3 px-4 pt-2.5 pb-4 text-main text-xs" }, [
|
|
119
|
+
vue.createElementVNode("div", { class: "flex flex-col gap-3 px-4 pt-2.5 pb-4 text-main text-xs box-border" }, [
|
|
121
120
|
__props.column.editable.desc ? (vue.openBlock(), vue.createElementBlock(
|
|
122
121
|
"div",
|
|
123
122
|
{ key: 0 },
|
|
@@ -129,7 +128,7 @@ const _sfc_main = {
|
|
|
129
128
|
vue.createElementVNode(
|
|
130
129
|
"div",
|
|
131
130
|
{ class: "text-auxiliary mb-1.5" },
|
|
132
|
-
vue.toDisplayString(vue.unref(t)("table.example")),
|
|
131
|
+
vue.toDisplayString(vue.unref(useLocale.$t)("table.example")),
|
|
133
132
|
1
|
|
134
133
|
/* TEXT */
|
|
135
134
|
),
|
|
@@ -142,7 +141,7 @@ const _sfc_main = {
|
|
|
142
141
|
"div",
|
|
143
142
|
{
|
|
144
143
|
key: index,
|
|
145
|
-
class: "leading-5 bg-background-2 px-1.5 rounded-[2px]"
|
|
144
|
+
class: "leading-5 bg-background-2 px-1.5 rounded-[2px] box-border"
|
|
146
145
|
},
|
|
147
146
|
vue.toDisplayString(item),
|
|
148
147
|
1
|
|
@@ -68,10 +68,10 @@ const _sfc_main = {
|
|
|
68
68
|
return (_ctx, _cache) => {
|
|
69
69
|
return columnSort.value.show ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
70
70
|
key: 0,
|
|
71
|
-
class: "w-full relative cursor-pointer",
|
|
71
|
+
class: "w-full flex items-center gap-1 relative cursor-pointer",
|
|
72
72
|
onClick: ($event) => onSortHandler(columnSort.value.prop, null)
|
|
73
73
|
}, [
|
|
74
|
-
vue.createElementVNode("div", { class: "flex flex-col
|
|
74
|
+
vue.createElementVNode("div", { class: "flex flex-col" }, [
|
|
75
75
|
vue.createVNode(vue.unref(elementPlus.ElIcon), {
|
|
76
76
|
size: "8",
|
|
77
77
|
color: isSortActive(columnSort.value.prop, "asc") ? "rgba(var(--hy-theme))" : "rgba(var(--hy-auxiliary))",
|