@das-fed/ui 6.4.0-test.3.2 → 6.4.0-test.5.1
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/esm-map.json +9 -1
- package/package.json +5 -5
- package/packages/business-components/app-container/index.d.ts +1 -0
- package/packages/business-components/app-container/index.js +152 -120
- package/packages/business-components/app-container/index.js.gz +0 -0
- package/packages/business-components/app-container/src/index.vue.d.ts +1 -0
- package/packages/business-components/app-container/src/style-theme.d.ts +18 -0
- package/packages/business-components/app-container/src/type.d.ts +1 -0
- package/packages/business-components/app-container/style.css +1 -1
- package/packages/business-components/app-container/style.css.gz +0 -0
- package/packages/business-components/app-container/theme/index.d.ts +1 -0
- package/packages/business-components/change-enterprises/i18n/index.d.ts +18 -0
- package/packages/business-components/change-enterprises/index.js +65 -59
- package/packages/business-components/change-enterprises/index.js.gz +0 -0
- package/packages/business-components/change-pwd/i18n/index.d.ts +86 -0
- package/packages/business-components/change-pwd/index.js +138 -113
- package/packages/business-components/change-pwd/index.js.gz +0 -0
- package/packages/business-components/currency-page/i18n/index.d.ts +23 -0
- package/packages/business-components/currency-page/index.js +42 -27
- package/packages/business-components/currency-page/index.js.gz +0 -0
- package/packages/business-components/device-panel/i18n/index.d.ts +1178 -0
- package/packages/business-components/device-panel/index.js +17132 -16862
- package/packages/business-components/device-panel/index.js.gz +0 -0
- package/packages/business-components/device-panel/src/components/alarmDevicePanel/operatingData/index.vue.d.ts +1 -7
- package/packages/business-components/device-panel/src/hooks/use-operating-data.d.ts +22 -0
- package/packages/business-components/device-panel/style.css +1 -1
- package/packages/business-components/device-panel/style.css.gz +0 -0
- package/packages/business-components/export-button/i18n/index.d.ts +58 -0
- package/packages/business-components/export-button/index.js +119 -97
- package/packages/business-components/export-button/index.js.gz +0 -0
- package/packages/business-components/import-button/i18n/index.d.ts +133 -0
- package/packages/business-components/import-button/index.js +335 -294
- package/packages/business-components/import-button/index.js.gz +0 -0
- package/packages/business-components/layout-breadcrumb/index.js +63 -61
- package/packages/business-components/layout-breadcrumb/index.js.gz +0 -0
- package/packages/business-components/model-table-dialog/i18n/index.d.ts +33 -0
- package/packages/business-components/model-table-dialog/index.js +561 -559
- package/packages/business-components/model-table-dialog/index.js.gz +0 -0
- package/packages/business-components/model-table-dialog/src/ModelTable.vue.d.ts +1 -1
- package/packages/business-components/model-table-dialog/style.css +1 -1
- package/packages/business-components/model-table-dialog/style.css.gz +0 -0
- package/packages/business-components/process-configuration/i18n/index.d.ts +152 -0
- package/packages/business-components/process-configuration/index.js +242 -200
- package/packages/business-components/process-configuration/index.js.gz +0 -0
- package/packages/business-components/process-form/api-service/formPreView.d.ts +7 -0
- package/packages/business-components/process-form/apis.d.ts +1 -0
- package/packages/business-components/process-form/i18n/index.d.ts +413 -0
- package/packages/business-components/process-form/index.js +1330 -1159
- package/packages/business-components/process-form/index.js.gz +0 -0
- package/packages/business-components/process-form/src/widgets/store.d.ts +1 -0
- package/packages/business-components/process-form/style.css +1 -1
- package/packages/business-components/process-log/i18n/index.d.ts +47 -1
- package/packages/business-components/process-log/index.js +301 -286
- package/packages/business-components/process-log/index.js.gz +0 -0
- package/packages/business-components/process-log/style.css +1 -1
- package/packages/business-components/process-log/style.css.gz +0 -0
- package/packages/business-components/process-search-form/i18n/index.d.ts +48 -0
- package/packages/business-components/process-search-form/index.d.ts +2 -2
- package/packages/business-components/process-search-form/index.js +569 -535
- package/packages/business-components/process-search-form/index.js.gz +0 -0
- package/packages/business-components/process-search-form/src/App.vue.d.ts +2 -2
- package/packages/business-components/process-search-form/src/type.d.ts +1 -1
- package/packages/business-components/process-table/i18n/index.d.ts +43 -0
- package/packages/business-components/process-table/index.d.ts +11 -2
- package/packages/business-components/process-table/index.js +604 -587
- package/packages/business-components/process-table/index.js.gz +0 -0
- package/packages/business-components/process-table/src/App.vue.d.ts +31 -3
- package/packages/business-components/process-table/src/type.d.ts +2 -0
- package/packages/business-components/process-table/style.css +1 -1
- package/packages/business-components/upload-file/i18n/index.d.ts +8 -0
- package/packages/business-components/upload-file/index.js +55 -46
- package/packages/business-components/upload-file/index.js.gz +0 -0
- package/packages/business-components/upload-file/src/type.d.ts +3 -0
- package/packages/business-components/urgent-panel/i18n/index.d.ts +523 -0
- package/packages/business-components/urgent-panel/index.d.ts +2 -2
- package/packages/business-components/urgent-panel/index.js +1494 -1353
- package/packages/business-components/urgent-panel/index.js.gz +0 -0
- package/packages/business-components/urgent-panel/style.css +1 -1
- package/packages/business-components/urgent-panel/style.css.gz +0 -0
- package/packages/business-components/user-org-dialog/i18n/index.d.ts +72 -1
- package/packages/business-components/user-org-dialog/index.js +246 -231
- package/packages/business-components/user-org-dialog/index.js.gz +0 -0
- package/packages/business-components/video-dialog/i18n/index.d.ts +103 -0
- package/packages/business-components/video-dialog/index.js +282 -259
- package/packages/business-components/video-dialog/index.js.gz +0 -0
- package/packages/components/autocomplete/src/index.vue.d.ts +5 -1
- package/packages/components/breadcrumb/index.d.ts +9 -3
- package/packages/components/breadcrumb/index.js +48 -45
- package/packages/components/breadcrumb/index.js.gz +0 -0
- package/packages/components/breadcrumb/src/BreadCrumb.vue.d.ts +3 -1
- package/packages/components/breadcrumb/src/type.d.ts +1 -0
- package/packages/components/breadcrumb/style.css +1 -1
- package/packages/components/breadcrumb/style.css.gz +0 -0
- package/packages/components/button/index.js +64 -71
- package/packages/components/button/index.js.gz +0 -0
- package/packages/components/calendar/i18n/index.d.ts +80 -26
- package/packages/components/calendar/index.js +277 -275
- package/packages/components/calendar/index.js.gz +0 -0
- package/packages/components/{search → cascader}/i18n/index.d.ts +2 -1
- package/packages/components/cascader/index.d.ts +225 -7
- package/packages/components/cascader/index.js +60 -58
- package/packages/components/cascader/index.js.gz +0 -0
- package/packages/components/cascader/src/Index.vue.d.ts +2 -2
- package/packages/components/cascader/style.css +1 -1
- package/packages/components/cascader/style.css.gz +0 -0
- package/packages/components/color-picker/i18n/index.d.ts +8 -0
- package/packages/components/color-picker/index.js +89 -85
- package/packages/components/color-picker/index.js.gz +0 -0
- package/packages/components/color-picker/style.css +1 -1
- package/packages/components/color-picker/style.css.gz +0 -0
- package/packages/components/custom-search-item/i18n/index.d.ts +8 -0
- package/packages/components/custom-search-item/index.js +20 -19
- package/packages/components/custom-search-item/index.js.gz +0 -0
- package/packages/components/date-picker/i18n/index.d.ts +33 -0
- package/packages/components/date-picker/index.d.ts +3 -3
- package/packages/components/date-picker/index.js +536 -521
- package/packages/components/date-picker/index.js.gz +0 -0
- package/packages/components/date-picker/src/DatePicker.vue.d.ts +2 -1
- package/packages/components/date-picker/src/DateRangePicker.vue.d.ts +1 -1
- package/packages/components/date-picker/src/RangePicker.vue.d.ts +1 -0
- package/packages/components/date-picker/src/TimePicker.vue.d.ts +1 -0
- package/packages/components/date-picker/src/TimeRangePicker.vue.d.ts +1 -0
- package/packages/components/date-picker/style.css +1 -1
- package/packages/components/date-picker/style.css.gz +0 -0
- package/packages/components/dialog/i18n/index.d.ts +6 -0
- package/packages/components/dialog/index.js +92 -92
- package/packages/components/dialog/index.js.gz +0 -0
- package/packages/components/dimple-layout/i18n/index.d.ts +53 -0
- package/packages/components/dimple-layout/index.js +1298 -1285
- package/packages/components/dimple-layout/index.js.gz +0 -0
- package/packages/components/dimple-layout/style.css +1 -1
- package/packages/components/dimple-layout/style.css.gz +0 -0
- package/packages/components/dropdown/i18n/index.d.ts +8 -0
- package/packages/components/dropdown/index.js +26 -25
- package/packages/components/dropdown/index.js.gz +0 -0
- package/packages/components/edit-table/src/index.vue.d.ts +30 -3
- package/packages/components/empty/i18n/index.d.ts +1 -0
- package/packages/components/empty/index.js +18 -20
- package/packages/components/empty/index.js.gz +0 -0
- package/packages/components/form-item/index.js +830 -827
- package/packages/components/form-item/index.js.gz +0 -0
- package/packages/components/form-item/src/type.d.ts +2 -0
- package/packages/components/form-item/style.css +1 -1
- package/packages/components/form-item/style.css.gz +0 -0
- package/packages/components/form-item/theme/index.d.ts +3 -0
- package/packages/components/image-upload/i18n/index.d.ts +18 -0
- package/packages/components/image-upload/index.js +99 -84
- package/packages/components/image-upload/index.js.gz +0 -0
- package/packages/components/image-viewer/i18n/index.d.ts +2 -0
- package/packages/components/image-viewer/index.js +150 -147
- package/packages/components/image-viewer/index.js.gz +0 -0
- package/packages/components/input/i18n/index.d.ts +18 -0
- package/packages/components/input/index.d.ts +5 -0
- package/packages/components/input/index.js +102 -93
- package/packages/components/input/index.js.gz +0 -0
- package/packages/components/input/src/index.vue.d.ts +2 -0
- package/packages/components/input/src/type.d.ts +1 -0
- package/packages/components/input/style.css +1 -1
- package/packages/components/input/style.css.gz +0 -0
- package/packages/components/input-dialog-select/i18n/index.d.ts +7 -1
- package/packages/components/input-dialog-select/index.d.ts +1 -0
- package/packages/components/input-dialog-select/index.js +111 -109
- package/packages/components/input-dialog-select/index.js.gz +0 -0
- package/packages/components/input-dialog-select/src/Index.vue.d.ts +1 -0
- package/packages/components/input-dialog-select/style.css +1 -1
- package/packages/components/input-dialog-select/style.css.gz +0 -0
- package/packages/components/live-player/i18n/index.d.ts +13 -0
- package/packages/components/live-player/index.js +20 -11
- package/packages/components/live-player/index.js.gz +0 -0
- package/packages/components/live-player/style.css +1 -1
- package/packages/components/{time-line → loading}/i18n/index.d.ts +2 -1
- package/packages/components/loading/index.js +71 -70
- package/packages/components/loading/index.js.gz +0 -0
- package/packages/components/map/i18n/index.d.ts +33 -0
- package/packages/components/map/index.js +1115 -838
- package/packages/components/map/index.js.gz +0 -0
- package/packages/components/map/src/get-sdk-config.d.ts +1 -1
- package/packages/components/map/src/hooks/use-baidu.d.ts +1 -11
- package/packages/components/map/src/hooks/use-gaode.d.ts +1 -11
- package/packages/components/map/src/hooks/use-google.d.ts +16 -0
- package/packages/components/map/src/hooks/use-map.d.ts +2 -0
- package/packages/components/map/src/type.d.ts +1 -1
- package/packages/components/map/style.css +1 -1
- package/packages/components/menu-aside/i18n/index.d.ts +8 -0
- package/packages/components/menu-aside/index.js +244 -226
- package/packages/components/menu-aside/index.js.gz +0 -0
- package/packages/components/menu-aside/src/style-theme.d.ts +15 -0
- package/packages/components/menu-aside/style.css +1 -1
- package/packages/components/menu-aside/style.css.gz +0 -0
- package/packages/components/menu-aside/theme/base.d.ts +3 -1
- package/packages/components/menu-header/index.js +32 -26
- package/packages/components/menu-header/index.js.gz +0 -0
- package/packages/components/menu-header/src/style-theme.d.ts +5 -0
- package/packages/components/menu-header/style.css +1 -1
- package/packages/components/menu-header/style.css.gz +0 -0
- package/packages/components/menu-header/theme/base.d.ts +1 -0
- package/packages/components/message/i18n/index.d.ts +8 -0
- package/packages/components/message/index.js +16 -15
- package/packages/components/message/index.js.gz +0 -0
- package/packages/components/{button → notification}/i18n/index.d.ts +2 -1
- package/packages/components/notification/index.js +9 -8
- package/packages/components/notification/index.js.gz +0 -0
- package/packages/components/pagination/i18n/index.d.ts +23 -0
- package/packages/components/pagination/index.js +141 -134
- package/packages/components/pagination/index.js.gz +0 -0
- package/packages/components/pagination/style.css +1 -1
- package/packages/components/pagination/style.css.gz +0 -0
- package/packages/components/popover/i18n/index.d.ts +2 -0
- package/packages/components/popover/index.d.ts +3 -0
- package/packages/components/popover/index.js +28 -27
- package/packages/components/popover/index.js.gz +0 -0
- package/packages/components/preview/i18n/index.d.ts +1 -0
- package/packages/components/preview/index.js +9 -10
- package/packages/components/preview/index.js.gz +0 -0
- package/packages/components/preview/style.css +1 -1
- package/packages/components/rich-editor/i18n/index.d.ts +11 -0
- package/packages/components/rich-editor/index.js +3640 -3621
- package/packages/components/rich-editor/index.js.gz +0 -0
- package/packages/components/rich-editor/src/type.d.ts +3 -0
- package/packages/components/scrollbar/index.js +2 -2
- package/packages/components/scrollbar/index.js.gz +0 -0
- package/packages/components/scrollbar/style.css +1 -1
- package/packages/components/scrollbar/style.css.gz +0 -0
- package/packages/components/search/index.d.ts +9 -0
- package/packages/components/search/index.js +56 -47
- package/packages/components/search/index.js.gz +0 -0
- package/packages/components/search/src/Index.vue.d.ts +15 -0
- package/packages/components/search/src/type.d.ts +2 -0
- package/packages/components/search/style.css +1 -1
- package/packages/components/search/style.css.gz +0 -0
- package/packages/components/search-form/i18n/index.d.ts +33 -0
- package/packages/components/search-form/index.js +798 -744
- package/packages/components/search-form/index.js.gz +0 -0
- package/packages/components/search-form/src/Index.vue.d.ts +2 -0
- package/packages/components/search-form/src/type.d.ts +3 -0
- package/packages/components/search-form/style.css +1 -1
- package/packages/components/search-form/style.css.gz +0 -0
- package/packages/components/select/i18n/index.d.ts +23 -0
- package/packages/components/select/index.js +361 -372
- package/packages/components/select/index.js.gz +0 -0
- package/packages/components/select/src/Select.vue.d.ts +1 -0
- package/packages/components/select/style.css +1 -1
- package/packages/components/select/style.css.gz +0 -0
- package/packages/components/select-input/index.d.ts +1 -0
- package/packages/components/select-input/index.js +68 -61
- package/packages/components/select-input/index.js.gz +0 -0
- package/packages/components/select-input/src/Index.vue.d.ts +1 -0
- package/packages/components/select-input/src/hooks/use-select-input.d.ts +5 -0
- package/packages/components/select-input/src/type.d.ts +3 -0
- package/packages/components/select-input/style.css +1 -1
- package/packages/components/select-input/style.css.gz +0 -0
- package/packages/components/select-list/i18n/index.d.ts +4 -0
- package/packages/components/select-list/index.js +73 -73
- package/packages/components/select-list/index.js.gz +0 -0
- package/packages/components/special-range-picker-month/i18n/index.d.ts +4 -0
- package/packages/components/special-range-picker-month/index.js +69 -69
- package/packages/components/special-range-picker-month/index.js.gz +0 -0
- package/packages/components/special-range-picker-year/i18n/index.d.ts +3 -0
- package/packages/components/special-range-picker-year/index.js +67 -67
- package/packages/components/special-range-picker-year/index.js.gz +0 -0
- package/packages/components/spin/i18n/index.d.ts +8 -0
- package/packages/components/spin/index.js +31 -30
- package/packages/components/spin/index.js.gz +0 -0
- package/packages/components/table/i18n/index.d.ts +114 -0
- package/packages/components/table/index.d.ts +90 -9
- package/packages/components/table/index.js +4143 -3994
- package/packages/components/table/index.js.gz +0 -0
- package/packages/components/table/src/Table.vue.d.ts +10 -1
- package/packages/components/table/src/hooks/use-operation.d.ts +55 -5
- package/packages/components/table/src/type.d.ts +16 -3
- package/packages/components/table/style.css +1 -1
- package/packages/components/table/style.css.gz +0 -0
- package/packages/components/tabs/i18n/index.d.ts +18 -0
- package/packages/components/tabs/index.js +95 -90
- package/packages/components/tabs/index.js.gz +0 -0
- package/packages/components/text-tooltip/index.js +1 -1
- package/packages/components/text-tooltip/index.js.gz +0 -0
- package/packages/components/time-line/index.js +36 -43
- package/packages/components/time-line/index.js.gz +0 -0
- package/packages/components/tooltip/i18n/index.d.ts +8 -0
- package/packages/components/tooltip/index.js +45 -44
- package/packages/components/tooltip/index.js.gz +0 -0
- package/packages/components/tooltip/style.css +1 -1
- package/packages/components/tooltip/style.css.gz +0 -0
- package/packages/components/tree/i18n/index.d.ts +43 -0
- package/packages/components/tree/index.js +1340 -1326
- package/packages/components/tree/index.js.gz +0 -0
- package/packages/components/tree/src/App.vue.d.ts +7 -11
- package/packages/components/tree-table/index.js +69 -68
- package/packages/components/tree-table/index.js.gz +0 -0
- package/packages/components/tree-table/style.css +1 -1
- package/packages/components/tree-table/style.css.gz +0 -0
- package/packages/components/upload/i18n/index.d.ts +5 -0
- package/packages/components/upload/index.js +95 -95
- package/packages/components/upload/index.js.gz +0 -0
- package/packages/components/virtual-tree/i18n/index.d.ts +8 -0
- package/packages/components/virtual-tree/index.js +33 -31
- package/packages/components/virtual-tree/index.js.gz +0 -0
- package/packages/icons/edit-3/index.d.ts +1 -0
- package/packages/icons/edit-3/index.js +17 -0
- package/packages/icons/edit-3/index.js.gz +0 -0
- package/packages/icons/edit-3/index.vue.d.ts +16 -0
- package/packages/icons/exit/index.d.ts +1 -0
- package/packages/icons/exit/index.js +17 -0
- package/packages/icons/exit/index.js.gz +0 -0
- package/packages/icons/exit/index.vue.d.ts +16 -0
- package/packages/icons/global/index.d.ts +1 -0
- package/packages/icons/global/index.js +17 -0
- package/packages/icons/global/index.js.gz +0 -0
- package/packages/icons/global/index.vue.d.ts +16 -0
- package/packages/icons/index.d.ts +6 -0
- package/packages/icons/index.js +6 -0
- package/packages/icons/password-lock2/index.d.ts +1 -0
- package/packages/icons/password-lock2/index.js +17 -0
- package/packages/icons/password-lock2/index.js.gz +0 -0
- package/packages/icons/password-lock2/index.vue.d.ts +16 -0
- package/packages/icons/right-3/index.d.ts +1 -0
- package/packages/icons/right-3/index.js +17 -0
- package/packages/icons/right-3/index.js.gz +0 -0
- package/packages/icons/right-3/index.vue.d.ts +16 -0
- package/packages/icons/system/index.d.ts +1 -0
- package/packages/icons/system/index.js +17 -0
- package/packages/icons/system/index.js.gz +0 -0
- package/packages/icons/system/index.vue.d.ts +16 -0
- package/i18n-collection/en.js +0 -536
- package/i18n-collection/zh-CN.js +0 -537
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
import '@das-fed/ui/packages/components/menu-aside/style.css';
|
|
2
2
|
import { withInstall as Le } from "@das-fed/utils/with-install/index";
|
|
3
|
-
import { h as ve, nextTick as Ve, createVNode as _, defineComponent as
|
|
4
|
-
import { t as G } from "@das-fed/web/packages/i18n/index";
|
|
5
|
-
import { DasScrollbar as
|
|
6
|
-
import { DasTooltip as
|
|
3
|
+
import { h as ve, nextTick as Ve, createVNode as _, defineComponent as de, computed as I, openBlock as c, createElementBlock as g, normalizeStyle as Z, ref as Q, createBlock as T, unref as f, mergeProps as le, withCtx as A, createElementVNode as m, renderSlot as E, createCommentVNode as v, createTextVNode as We, toDisplayString as S, Fragment as O, withDirectives as ye, renderList as R, normalizeClass as M, withModifiers as be, watch as me, onMounted as qe, isRef as Ze } from "vue";
|
|
4
|
+
import { t as G, setI18nRule as Ge } from "@das-fed/web/packages/i18n/index";
|
|
5
|
+
import { DasScrollbar as Je } from "@das-fed/ui/packages/components/scrollbar/index";
|
|
6
|
+
import { DasTooltip as Ye } from "@das-fed/ui/packages/components/tooltip/index";
|
|
7
7
|
import { pureImageSrc as X } from "@das-fed/utils/pure-image-src";
|
|
8
|
-
import { SubMenu as
|
|
8
|
+
import { SubMenu as Qe, MenuItem as J, Menu as Xe } from "ant-design-vue";
|
|
9
9
|
import "ant-design-vue/es/menu/style/css";
|
|
10
10
|
import { vOverlay as he } from "@das-fed/ui/packages/components/overlay/index";
|
|
11
|
-
import { DasAutoRegisterIcon as
|
|
12
|
-
import { useZIndex as
|
|
13
|
-
import { updateStyle as
|
|
14
|
-
import { setThemeRule as
|
|
11
|
+
import { DasAutoRegisterIcon as en } from "@das-fed/ui/packages/components/icon/index";
|
|
12
|
+
import { useZIndex as nn } from "@das-fed/utils/hooks/popup-manager/use-zindex";
|
|
13
|
+
import { updateStyle as rn, createStyle as tn } from "@das-fed/utils/style";
|
|
14
|
+
import { setThemeRule as an } from "@das-fed/web/packages/theme/index";
|
|
15
15
|
function C(e, r) {
|
|
16
|
-
|
|
17
|
-
var n =
|
|
16
|
+
on(e) && (e = "100%");
|
|
17
|
+
var n = ln(e);
|
|
18
18
|
return e = r === 360 ? e : Math.min(r, Math.max(0, parseFloat(e))), n && (e = parseInt(String(e * r), 10) / 100), Math.abs(e - r) < 1e-6 ? 1 : (r === 360 ? e = (e < 0 ? e % r + r : e % r) / parseFloat(String(r)) : e = e % r / parseFloat(String(r)), e);
|
|
19
19
|
}
|
|
20
|
-
function
|
|
20
|
+
function on(e) {
|
|
21
21
|
return typeof e == "string" && e.indexOf(".") !== -1 && parseFloat(e) === 1;
|
|
22
22
|
}
|
|
23
|
-
function
|
|
23
|
+
function ln(e) {
|
|
24
24
|
return typeof e == "string" && e.indexOf("%") !== -1;
|
|
25
25
|
}
|
|
26
|
-
function
|
|
26
|
+
function sn(e) {
|
|
27
27
|
return e = parseFloat(e), (isNaN(e) || e < 0 || e > 1) && (e = 1), e;
|
|
28
28
|
}
|
|
29
29
|
function V(e) {
|
|
@@ -32,7 +32,7 @@ function V(e) {
|
|
|
32
32
|
function ee(e) {
|
|
33
33
|
return e.length === 1 ? "0" + e : String(e);
|
|
34
34
|
}
|
|
35
|
-
function
|
|
35
|
+
function un(e, r, n) {
|
|
36
36
|
return {
|
|
37
37
|
r: C(e, 255) * 255,
|
|
38
38
|
g: C(r, 255) * 255,
|
|
@@ -42,7 +42,7 @@ function sn(e, r, n) {
|
|
|
42
42
|
function ne(e, r, n) {
|
|
43
43
|
return n < 0 && (n += 1), n > 1 && (n -= 1), n < 1 / 6 ? e + (r - e) * (6 * n) : n < 1 / 2 ? r : n < 2 / 3 ? e + (r - e) * (2 / 3 - n) * 6 : e;
|
|
44
44
|
}
|
|
45
|
-
function
|
|
45
|
+
function cn(e, r, n) {
|
|
46
46
|
var t, a, o;
|
|
47
47
|
if (e = C(e, 360), r = C(r, 100), n = C(n, 100), r === 0)
|
|
48
48
|
a = n, o = n, t = n;
|
|
@@ -52,9 +52,9 @@ function un(e, r, n) {
|
|
|
52
52
|
}
|
|
53
53
|
return { r: t * 255, g: a * 255, b: o * 255 };
|
|
54
54
|
}
|
|
55
|
-
function
|
|
55
|
+
function dn(e, r, n) {
|
|
56
56
|
e = C(e, 255), r = C(r, 255), n = C(n, 255);
|
|
57
|
-
var t = Math.max(e, r, n), a = Math.min(e, r, n), o = 0, u = t, l = t - a,
|
|
57
|
+
var t = Math.max(e, r, n), a = Math.min(e, r, n), o = 0, u = t, l = t - a, d = t === 0 ? 0 : l / t;
|
|
58
58
|
if (t === a)
|
|
59
59
|
o = 0;
|
|
60
60
|
else {
|
|
@@ -71,14 +71,14 @@ function cn(e, r, n) {
|
|
|
71
71
|
}
|
|
72
72
|
o /= 6;
|
|
73
73
|
}
|
|
74
|
-
return { h: o, s:
|
|
74
|
+
return { h: o, s: d, v: u };
|
|
75
75
|
}
|
|
76
76
|
function fn(e, r, n) {
|
|
77
77
|
e = C(e, 360) * 6, r = C(r, 100), n = C(n, 100);
|
|
78
|
-
var t = Math.floor(e), a = e - t, o = n * (1 - r), u = n * (1 - a * r), l = n * (1 - (1 - a) * r),
|
|
78
|
+
var t = Math.floor(e), a = e - t, o = n * (1 - r), u = n * (1 - a * r), l = n * (1 - (1 - a) * r), d = t % 6, i = [n, u, o, o, l, n][d], h = [l, n, n, u, o, o][d], y = [o, o, l, n, n, u][d];
|
|
79
79
|
return { r: i * 255, g: h * 255, b: y * 255 };
|
|
80
80
|
}
|
|
81
|
-
function
|
|
81
|
+
function pn(e, r, n, t) {
|
|
82
82
|
var a = [
|
|
83
83
|
ee(Math.round(e).toString(16)),
|
|
84
84
|
ee(Math.round(r).toString(16)),
|
|
@@ -244,7 +244,7 @@ var Ce = {
|
|
|
244
244
|
};
|
|
245
245
|
function B(e) {
|
|
246
246
|
var r = { r: 0, g: 0, b: 0 }, n = 1, t = null, a = null, o = null, u = !1, l = !1;
|
|
247
|
-
return typeof e == "string" && (e =
|
|
247
|
+
return typeof e == "string" && (e = yn(e)), typeof e == "object" && (x(e.r) && x(e.g) && x(e.b) ? (r = un(e.r, e.g, e.b), u = !0, l = String(e.r).substr(-1) === "%" ? "prgb" : "rgb") : x(e.h) && x(e.s) && x(e.v) ? (t = V(e.s), a = V(e.v), r = fn(e.h, t, a), u = !0, l = "hsv") : x(e.h) && x(e.s) && x(e.l) && (t = V(e.s), o = V(e.l), r = cn(e.h, t, o), u = !0, l = "hsl"), Object.prototype.hasOwnProperty.call(e, "a") && (n = e.a)), n = sn(n), {
|
|
248
248
|
ok: u,
|
|
249
249
|
format: e.format || l,
|
|
250
250
|
r: Math.min(255, Math.max(r.r, 0)),
|
|
@@ -253,7 +253,7 @@ function B(e) {
|
|
|
253
253
|
a: n
|
|
254
254
|
};
|
|
255
255
|
}
|
|
256
|
-
var
|
|
256
|
+
var gn = "[-\\+]?\\d+%?", vn = "[-\\+]?\\d*\\.\\d+%?", $ = "(?:".concat(vn, ")|(?:").concat(gn, ")"), re = "[\\s|\\(]+(".concat($, ")[,|\\s]+(").concat($, ")[,|\\s]+(").concat($, ")\\s*\\)?"), te = "[\\s|\\(]+(".concat($, ")[,|\\s]+(").concat($, ")[,|\\s]+(").concat($, ")[,|\\s]+(").concat($, ")\\s*\\)?"), F = {
|
|
257
257
|
CSS_UNIT: new RegExp($),
|
|
258
258
|
rgb: new RegExp("rgb" + re),
|
|
259
259
|
rgba: new RegExp("rgba" + te),
|
|
@@ -266,7 +266,7 @@ var pn = "[-\\+]?\\d+%?", gn = "[-\\+]?\\d*\\.\\d+%?", $ = "(?:".concat(gn, ")|(
|
|
|
266
266
|
hex4: /^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,
|
|
267
267
|
hex8: /^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/
|
|
268
268
|
};
|
|
269
|
-
function
|
|
269
|
+
function yn(e) {
|
|
270
270
|
if (e = e.trim().toLowerCase(), e.length === 0)
|
|
271
271
|
return !1;
|
|
272
272
|
var r = !1;
|
|
@@ -299,10 +299,10 @@ function vn(e) {
|
|
|
299
299
|
format: r ? "name" : "hex"
|
|
300
300
|
} : !1)))))))));
|
|
301
301
|
}
|
|
302
|
-
function
|
|
302
|
+
function x(e) {
|
|
303
303
|
return !!F.CSS_UNIT.exec(String(e));
|
|
304
304
|
}
|
|
305
|
-
var W = 2, Fe = 0.16,
|
|
305
|
+
var W = 2, Fe = 0.16, bn = 0.05, mn = 0.05, hn = 0.15, Ke = 5, Ne = 4, kn = [{
|
|
306
306
|
index: 7,
|
|
307
307
|
opacity: 0.15
|
|
308
308
|
}, {
|
|
@@ -334,7 +334,7 @@ var W = 2, Fe = 0.16, yn = 0.05, bn = 0.05, mn = 0.15, Ke = 5, Ne = 4, hn = [{
|
|
|
334
334
|
opacity: 0.98
|
|
335
335
|
}];
|
|
336
336
|
function Se(e) {
|
|
337
|
-
var r = e.r, n = e.g, t = e.b, a =
|
|
337
|
+
var r = e.r, n = e.g, t = e.b, a = dn(r, n, t);
|
|
338
338
|
return {
|
|
339
339
|
h: a.h * 360,
|
|
340
340
|
s: a.s,
|
|
@@ -343,9 +343,9 @@ function Se(e) {
|
|
|
343
343
|
}
|
|
344
344
|
function q(e) {
|
|
345
345
|
var r = e.r, n = e.g, t = e.b;
|
|
346
|
-
return "#".concat(
|
|
346
|
+
return "#".concat(pn(r, n, t));
|
|
347
347
|
}
|
|
348
|
-
function
|
|
348
|
+
function Cn(e, r, n) {
|
|
349
349
|
var t = n / 100, a = {
|
|
350
350
|
r: (r.r - e.r) * t + e.r,
|
|
351
351
|
g: (r.g - e.g) * t + e.g,
|
|
@@ -361,32 +361,32 @@ function Oe(e, r, n) {
|
|
|
361
361
|
if (e.h === 0 && e.s === 0)
|
|
362
362
|
return e.s;
|
|
363
363
|
var t;
|
|
364
|
-
return n ? t = e.s - Fe * r : r === Ne ? t = e.s + Fe : t = e.s +
|
|
364
|
+
return n ? t = e.s - Fe * r : r === Ne ? t = e.s + Fe : t = e.s + bn * r, t > 1 && (t = 1), n && r === Ke && t > 0.1 && (t = 0.1), t < 0.06 && (t = 0.06), Number(t.toFixed(2));
|
|
365
365
|
}
|
|
366
|
-
function
|
|
366
|
+
function je(e, r, n) {
|
|
367
367
|
var t;
|
|
368
|
-
return n ? t = e.v +
|
|
368
|
+
return n ? t = e.v + mn * r : t = e.v - hn * r, t > 1 && (t = 1), Number(t.toFixed(2));
|
|
369
369
|
}
|
|
370
370
|
function se(e) {
|
|
371
371
|
for (var r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = [], t = B(e), a = Ke; a > 0; a -= 1) {
|
|
372
372
|
var o = Se(t), u = q(B({
|
|
373
373
|
h: we(o, a, !0),
|
|
374
374
|
s: Oe(o, a, !0),
|
|
375
|
-
v:
|
|
375
|
+
v: je(o, a, !0)
|
|
376
376
|
}));
|
|
377
377
|
n.push(u);
|
|
378
378
|
}
|
|
379
379
|
n.push(q(t));
|
|
380
380
|
for (var l = 1; l <= Ne; l += 1) {
|
|
381
|
-
var
|
|
382
|
-
h: we(
|
|
383
|
-
s: Oe(
|
|
384
|
-
v:
|
|
381
|
+
var d = Se(t), i = q(B({
|
|
382
|
+
h: we(d, l),
|
|
383
|
+
s: Oe(d, l),
|
|
384
|
+
v: je(d, l)
|
|
385
385
|
}));
|
|
386
386
|
n.push(i);
|
|
387
387
|
}
|
|
388
|
-
return r.theme === "dark" ?
|
|
389
|
-
var y = h.index, w = h.opacity, K = q(
|
|
388
|
+
return r.theme === "dark" ? kn.map(function(h) {
|
|
389
|
+
var y = h.index, w = h.opacity, K = q(Cn(B(r.backgroundColor || "#141414"), B(n[y]), w * 100));
|
|
390
390
|
return K;
|
|
391
391
|
}) : n;
|
|
392
392
|
}
|
|
@@ -411,18 +411,18 @@ Object.keys(ae).forEach(function(e) {
|
|
|
411
411
|
backgroundColor: "#141414"
|
|
412
412
|
}), ie[e].primary = ie[e][5];
|
|
413
413
|
});
|
|
414
|
-
var
|
|
415
|
-
function
|
|
414
|
+
var xe = [], z = [], Fn = "insert-css: You need to provide a CSS string. Usage: insertCss(cssString[, options]).";
|
|
415
|
+
function Sn() {
|
|
416
416
|
var e = document.createElement("style");
|
|
417
417
|
return e.setAttribute("type", "text/css"), e;
|
|
418
418
|
}
|
|
419
|
-
function
|
|
419
|
+
function wn(e, r) {
|
|
420
420
|
if (r = r || {}, e === void 0)
|
|
421
|
-
throw new Error(
|
|
422
|
-
var n = r.prepend === !0 ? "prepend" : "append", t = r.container !== void 0 ? r.container : document.querySelector("head"), a =
|
|
423
|
-
a === -1 && (a =
|
|
421
|
+
throw new Error(Fn);
|
|
422
|
+
var n = r.prepend === !0 ? "prepend" : "append", t = r.container !== void 0 ? r.container : document.querySelector("head"), a = xe.indexOf(t);
|
|
423
|
+
a === -1 && (a = xe.push(t) - 1, z[a] = {});
|
|
424
424
|
var o;
|
|
425
|
-
return z[a] !== void 0 && z[a][n] !== void 0 ? o = z[a][n] : (o = z[a][n] =
|
|
425
|
+
return z[a] !== void 0 && z[a][n] !== void 0 ? o = z[a][n] : (o = z[a][n] = Sn(), n === "prepend" ? t.insertBefore(o, t.childNodes[0]) : t.appendChild(o)), e.charCodeAt(0) === 65279 && (e = e.substr(1, e.length)), o.styleSheet ? o.styleSheet.cssText += e : o.textContent += e, o;
|
|
426
426
|
}
|
|
427
427
|
function Ae(e) {
|
|
428
428
|
for (var r = 1; r < arguments.length; r++) {
|
|
@@ -430,19 +430,19 @@ function Ae(e) {
|
|
|
430
430
|
typeof Object.getOwnPropertySymbols == "function" && (t = t.concat(Object.getOwnPropertySymbols(n).filter(function(a) {
|
|
431
431
|
return Object.getOwnPropertyDescriptor(n, a).enumerable;
|
|
432
432
|
}))), t.forEach(function(a) {
|
|
433
|
-
|
|
433
|
+
On(e, a, n[a]);
|
|
434
434
|
});
|
|
435
435
|
}
|
|
436
436
|
return e;
|
|
437
437
|
}
|
|
438
|
-
function
|
|
438
|
+
function On(e, r, n) {
|
|
439
439
|
return r in e ? Object.defineProperty(e, r, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = n, e;
|
|
440
440
|
}
|
|
441
|
-
function
|
|
441
|
+
function jn(e, r) {
|
|
442
442
|
process.env.NODE_ENV;
|
|
443
443
|
}
|
|
444
444
|
function xn(e, r) {
|
|
445
|
-
|
|
445
|
+
jn(e, "[@ant-design/icons-vue] ".concat(r));
|
|
446
446
|
}
|
|
447
447
|
function _e(e) {
|
|
448
448
|
return typeof e == "object" && typeof e.name == "string" && typeof e.theme == "string" && (typeof e.icon == "object" || typeof e.icon == "function");
|
|
@@ -464,7 +464,7 @@ function Be(e) {
|
|
|
464
464
|
function ze(e) {
|
|
465
465
|
return e ? Array.isArray(e) ? e : [e] : [];
|
|
466
466
|
}
|
|
467
|
-
var
|
|
467
|
+
var An = `
|
|
468
468
|
.anticon {
|
|
469
469
|
display: inline-block;
|
|
470
470
|
color: inherit;
|
|
@@ -518,17 +518,17 @@ var jn = `
|
|
|
518
518
|
transform: rotate(360deg);
|
|
519
519
|
}
|
|
520
520
|
}
|
|
521
|
-
`, Te = !1,
|
|
522
|
-
var r = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] :
|
|
521
|
+
`, Te = !1, _n = function() {
|
|
522
|
+
var r = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : An;
|
|
523
523
|
Ve(function() {
|
|
524
|
-
Te || (typeof window < "u" && window.document && window.document.documentElement &&
|
|
524
|
+
Te || (typeof window < "u" && window.document && window.document.documentElement && wn(r, {
|
|
525
525
|
prepend: !0
|
|
526
526
|
}), Te = !0);
|
|
527
527
|
});
|
|
528
|
-
},
|
|
529
|
-
function
|
|
528
|
+
}, Tn = ["icon", "primaryColor", "secondaryColor"];
|
|
529
|
+
function Mn(e, r) {
|
|
530
530
|
if (e == null) return {};
|
|
531
|
-
var n =
|
|
531
|
+
var n = $n(e, r), t, a;
|
|
532
532
|
if (Object.getOwnPropertySymbols) {
|
|
533
533
|
var o = Object.getOwnPropertySymbols(e);
|
|
534
534
|
for (a = 0; a < o.length; a++)
|
|
@@ -536,7 +536,7 @@ function Tn(e, r) {
|
|
|
536
536
|
}
|
|
537
537
|
return n;
|
|
538
538
|
}
|
|
539
|
-
function
|
|
539
|
+
function $n(e, r) {
|
|
540
540
|
if (e == null) return {};
|
|
541
541
|
var n = {}, t = Object.keys(e), a, o;
|
|
542
542
|
for (o = 0; o < t.length; o++)
|
|
@@ -549,12 +549,12 @@ function Y(e) {
|
|
|
549
549
|
typeof Object.getOwnPropertySymbols == "function" && (t = t.concat(Object.getOwnPropertySymbols(n).filter(function(a) {
|
|
550
550
|
return Object.getOwnPropertyDescriptor(n, a).enumerable;
|
|
551
551
|
}))), t.forEach(function(a) {
|
|
552
|
-
|
|
552
|
+
Pn(e, a, n[a]);
|
|
553
553
|
});
|
|
554
554
|
}
|
|
555
555
|
return e;
|
|
556
556
|
}
|
|
557
|
-
function
|
|
557
|
+
function Pn(e, r, n) {
|
|
558
558
|
return r in e ? Object.defineProperty(e, r, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = n, e;
|
|
559
559
|
}
|
|
560
560
|
var H = {
|
|
@@ -562,7 +562,7 @@ var H = {
|
|
|
562
562
|
secondaryColor: "#E6E6E6",
|
|
563
563
|
calculated: !1
|
|
564
564
|
};
|
|
565
|
-
function
|
|
565
|
+
function Dn(e) {
|
|
566
566
|
var r = e.primaryColor, n = e.secondaryColor;
|
|
567
567
|
H.primaryColor = r, H.secondaryColor = n || Be(r), H.calculated = !!n;
|
|
568
568
|
}
|
|
@@ -570,15 +570,15 @@ function En() {
|
|
|
570
570
|
return Y({}, H);
|
|
571
571
|
}
|
|
572
572
|
var P = function(r, n) {
|
|
573
|
-
var t = Y({}, r, n.attrs), a = t.icon, o = t.primaryColor, u = t.secondaryColor, l =
|
|
574
|
-
if (o && (
|
|
573
|
+
var t = Y({}, r, n.attrs), a = t.icon, o = t.primaryColor, u = t.secondaryColor, l = Mn(t, Tn), d = H;
|
|
574
|
+
if (o && (d = {
|
|
575
575
|
primaryColor: o,
|
|
576
576
|
secondaryColor: u || Be(o)
|
|
577
|
-
}),
|
|
577
|
+
}), _n(), xn(_e(a), "icon should be icon definiton, but got ".concat(a)), !_e(a))
|
|
578
578
|
return null;
|
|
579
579
|
var i = a;
|
|
580
580
|
return i && typeof i.icon == "function" && (i = Y({}, i, {
|
|
581
|
-
icon: i.icon(
|
|
581
|
+
icon: i.icon(d.primaryColor, d.secondaryColor)
|
|
582
582
|
})), ue(i.icon, "svg-".concat(i.name), Y({}, l, {
|
|
583
583
|
"data-icon": i.name,
|
|
584
584
|
width: "1em",
|
|
@@ -596,15 +596,15 @@ P.props = {
|
|
|
596
596
|
P.inheritAttrs = !1;
|
|
597
597
|
P.displayName = "IconBase";
|
|
598
598
|
P.getTwoToneColors = En;
|
|
599
|
-
P.setTwoToneColors =
|
|
600
|
-
function
|
|
601
|
-
return
|
|
599
|
+
P.setTwoToneColors = Dn;
|
|
600
|
+
function In(e, r) {
|
|
601
|
+
return zn(e) || Bn(e, r) || Nn(e, r) || Kn();
|
|
602
602
|
}
|
|
603
|
-
function
|
|
603
|
+
function Kn() {
|
|
604
604
|
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
605
605
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
606
606
|
}
|
|
607
|
-
function
|
|
607
|
+
function Nn(e, r) {
|
|
608
608
|
if (e) {
|
|
609
609
|
if (typeof e == "string") return Me(e, r);
|
|
610
610
|
var n = Object.prototype.toString.call(e).slice(8, -1);
|
|
@@ -618,15 +618,15 @@ function Me(e, r) {
|
|
|
618
618
|
t[n] = e[n];
|
|
619
619
|
return t;
|
|
620
620
|
}
|
|
621
|
-
function
|
|
621
|
+
function Bn(e, r) {
|
|
622
622
|
var n = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
623
623
|
if (n != null) {
|
|
624
624
|
var t = [], a = !0, o = !1, u, l;
|
|
625
625
|
try {
|
|
626
626
|
for (n = n.call(e); !(a = (u = n.next()).done) && (t.push(u.value), !(r && t.length === r)); a = !0)
|
|
627
627
|
;
|
|
628
|
-
} catch (
|
|
629
|
-
o = !0, l =
|
|
628
|
+
} catch (d) {
|
|
629
|
+
o = !0, l = d;
|
|
630
630
|
} finally {
|
|
631
631
|
try {
|
|
632
632
|
!a && n.return != null && n.return();
|
|
@@ -637,29 +637,29 @@ function Nn(e, r) {
|
|
|
637
637
|
return t;
|
|
638
638
|
}
|
|
639
639
|
}
|
|
640
|
-
function
|
|
640
|
+
function zn(e) {
|
|
641
641
|
if (Array.isArray(e)) return e;
|
|
642
642
|
}
|
|
643
643
|
function Re(e) {
|
|
644
|
-
var r = ze(e), n =
|
|
644
|
+
var r = ze(e), n = In(r, 2), t = n[0], a = n[1];
|
|
645
645
|
return P.setTwoToneColors({
|
|
646
646
|
primaryColor: t,
|
|
647
647
|
secondaryColor: a
|
|
648
648
|
});
|
|
649
649
|
}
|
|
650
|
-
function
|
|
650
|
+
function Rn() {
|
|
651
651
|
var e = P.getTwoToneColors();
|
|
652
652
|
return e.calculated ? [e.primaryColor, e.secondaryColor] : e.primaryColor;
|
|
653
653
|
}
|
|
654
|
-
var
|
|
655
|
-
function
|
|
656
|
-
return
|
|
654
|
+
var Hn = ["class", "icon", "spin", "rotate", "tabindex", "twoToneColor", "onClick"];
|
|
655
|
+
function Un(e, r) {
|
|
656
|
+
return qn(e) || Wn(e, r) || Vn(e, r) || Ln();
|
|
657
657
|
}
|
|
658
|
-
function
|
|
658
|
+
function Ln() {
|
|
659
659
|
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
660
660
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
661
661
|
}
|
|
662
|
-
function
|
|
662
|
+
function Vn(e, r) {
|
|
663
663
|
if (e) {
|
|
664
664
|
if (typeof e == "string") return $e(e, r);
|
|
665
665
|
var n = Object.prototype.toString.call(e).slice(8, -1);
|
|
@@ -673,15 +673,15 @@ function $e(e, r) {
|
|
|
673
673
|
t[n] = e[n];
|
|
674
674
|
return t;
|
|
675
675
|
}
|
|
676
|
-
function
|
|
676
|
+
function Wn(e, r) {
|
|
677
677
|
var n = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
678
678
|
if (n != null) {
|
|
679
679
|
var t = [], a = !0, o = !1, u, l;
|
|
680
680
|
try {
|
|
681
681
|
for (n = n.call(e); !(a = (u = n.next()).done) && (t.push(u.value), !(r && t.length === r)); a = !0)
|
|
682
682
|
;
|
|
683
|
-
} catch (
|
|
684
|
-
o = !0, l =
|
|
683
|
+
} catch (d) {
|
|
684
|
+
o = !0, l = d;
|
|
685
685
|
} finally {
|
|
686
686
|
try {
|
|
687
687
|
!a && n.return != null && n.return();
|
|
@@ -692,7 +692,7 @@ function Vn(e, r) {
|
|
|
692
692
|
return t;
|
|
693
693
|
}
|
|
694
694
|
}
|
|
695
|
-
function
|
|
695
|
+
function qn(e) {
|
|
696
696
|
if (Array.isArray(e)) return e;
|
|
697
697
|
}
|
|
698
698
|
function Pe(e) {
|
|
@@ -709,9 +709,9 @@ function Pe(e) {
|
|
|
709
709
|
function ce(e, r, n) {
|
|
710
710
|
return r in e ? Object.defineProperty(e, r, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = n, e;
|
|
711
711
|
}
|
|
712
|
-
function
|
|
712
|
+
function Zn(e, r) {
|
|
713
713
|
if (e == null) return {};
|
|
714
|
-
var n =
|
|
714
|
+
var n = Gn(e, r), t, a;
|
|
715
715
|
if (Object.getOwnPropertySymbols) {
|
|
716
716
|
var o = Object.getOwnPropertySymbols(e);
|
|
717
717
|
for (a = 0; a < o.length; a++)
|
|
@@ -719,7 +719,7 @@ function qn(e, r) {
|
|
|
719
719
|
}
|
|
720
720
|
return n;
|
|
721
721
|
}
|
|
722
|
-
function
|
|
722
|
+
function Gn(e, r) {
|
|
723
723
|
if (e == null) return {};
|
|
724
724
|
var n = {}, t = Object.keys(e), a, o;
|
|
725
725
|
for (o = 0; o < t.length; o++)
|
|
@@ -727,15 +727,15 @@ function Zn(e, r) {
|
|
|
727
727
|
return n;
|
|
728
728
|
}
|
|
729
729
|
Re("#1890ff");
|
|
730
|
-
var
|
|
731
|
-
var t, a = Pe({}, r, n.attrs), o = a.class, u = a.icon, l = a.spin,
|
|
730
|
+
var D = function(r, n) {
|
|
731
|
+
var t, a = Pe({}, r, n.attrs), o = a.class, u = a.icon, l = a.spin, d = a.rotate, i = a.tabindex, h = a.twoToneColor, y = a.onClick, w = Zn(a, Hn), K = (t = {
|
|
732
732
|
anticon: !0
|
|
733
733
|
}, ce(t, "anticon-".concat(u.name), !!u.name), ce(t, o, o), t), U = l === "" || l || u.name === "loading" ? "anticon-spin" : "", N = i;
|
|
734
734
|
N === void 0 && y && (N = -1, w.tabindex = N);
|
|
735
|
-
var p =
|
|
736
|
-
msTransform: "rotate(".concat(
|
|
737
|
-
transform: "rotate(".concat(
|
|
738
|
-
} : void 0, b = ze(h), s =
|
|
735
|
+
var p = d ? {
|
|
736
|
+
msTransform: "rotate(".concat(d, "deg)"),
|
|
737
|
+
transform: "rotate(".concat(d, "deg)")
|
|
738
|
+
} : void 0, b = ze(h), s = Un(b, 2), j = s[0], L = s[1];
|
|
739
739
|
return _("span", Pe({
|
|
740
740
|
role: "img",
|
|
741
741
|
"aria-label": u.name
|
|
@@ -745,68 +745,68 @@ var E = function(r, n) {
|
|
|
745
745
|
}), [_(P, {
|
|
746
746
|
class: U,
|
|
747
747
|
icon: u,
|
|
748
|
-
primaryColor:
|
|
748
|
+
primaryColor: j,
|
|
749
749
|
secondaryColor: L,
|
|
750
750
|
style: p
|
|
751
751
|
}, null)]);
|
|
752
752
|
};
|
|
753
|
-
|
|
753
|
+
D.props = {
|
|
754
754
|
spin: Boolean,
|
|
755
755
|
rotate: Number,
|
|
756
756
|
icon: Object,
|
|
757
757
|
twoToneColor: String
|
|
758
758
|
};
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
var
|
|
764
|
-
function
|
|
759
|
+
D.displayName = "AntdIcon";
|
|
760
|
+
D.inheritAttrs = !1;
|
|
761
|
+
D.getTwoToneColor = Rn;
|
|
762
|
+
D.setTwoToneColor = Re;
|
|
763
|
+
var Jn = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M408 442h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm-8 204c0 4.4 3.6 8 8 8h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56zm504-486H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 632H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM115.4 518.9L271.7 642c5.8 4.6 14.4.5 14.4-6.9V388.9c0-7.4-8.5-11.5-14.4-6.9L115.4 505.1a8.74 8.74 0 000 13.8z" } }] }, name: "menu-fold", theme: "outlined" };
|
|
764
|
+
function De(e) {
|
|
765
765
|
for (var r = 1; r < arguments.length; r++) {
|
|
766
766
|
var n = arguments[r] != null ? Object(arguments[r]) : {}, t = Object.keys(n);
|
|
767
767
|
typeof Object.getOwnPropertySymbols == "function" && (t = t.concat(Object.getOwnPropertySymbols(n).filter(function(a) {
|
|
768
768
|
return Object.getOwnPropertyDescriptor(n, a).enumerable;
|
|
769
769
|
}))), t.forEach(function(a) {
|
|
770
|
-
|
|
770
|
+
Yn(e, a, n[a]);
|
|
771
771
|
});
|
|
772
772
|
}
|
|
773
773
|
return e;
|
|
774
774
|
}
|
|
775
|
-
function
|
|
775
|
+
function Yn(e, r, n) {
|
|
776
776
|
return r in e ? Object.defineProperty(e, r, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = n, e;
|
|
777
777
|
}
|
|
778
|
-
var
|
|
779
|
-
var t =
|
|
780
|
-
return _(
|
|
781
|
-
icon:
|
|
778
|
+
var fe = function(r, n) {
|
|
779
|
+
var t = De({}, r, n.attrs);
|
|
780
|
+
return _(D, De({}, t, {
|
|
781
|
+
icon: Jn
|
|
782
782
|
}), null);
|
|
783
783
|
};
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
var
|
|
787
|
-
function
|
|
784
|
+
fe.displayName = "MenuFoldOutlined";
|
|
785
|
+
fe.inheritAttrs = !1;
|
|
786
|
+
var Qn = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M408 442h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm-8 204c0 4.4 3.6 8 8 8h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56zm504-486H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 632H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM142.4 642.1L298.7 519a8.84 8.84 0 000-13.9L142.4 381.9c-5.8-4.6-14.4-.5-14.4 6.9v246.3a8.9 8.9 0 0014.4 7z" } }] }, name: "menu-unfold", theme: "outlined" };
|
|
787
|
+
function Ee(e) {
|
|
788
788
|
for (var r = 1; r < arguments.length; r++) {
|
|
789
789
|
var n = arguments[r] != null ? Object(arguments[r]) : {}, t = Object.keys(n);
|
|
790
790
|
typeof Object.getOwnPropertySymbols == "function" && (t = t.concat(Object.getOwnPropertySymbols(n).filter(function(a) {
|
|
791
791
|
return Object.getOwnPropertyDescriptor(n, a).enumerable;
|
|
792
792
|
}))), t.forEach(function(a) {
|
|
793
|
-
|
|
793
|
+
Xn(e, a, n[a]);
|
|
794
794
|
});
|
|
795
795
|
}
|
|
796
796
|
return e;
|
|
797
797
|
}
|
|
798
|
-
function
|
|
798
|
+
function Xn(e, r, n) {
|
|
799
799
|
return r in e ? Object.defineProperty(e, r, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = n, e;
|
|
800
800
|
}
|
|
801
801
|
var pe = function(r, n) {
|
|
802
|
-
var t =
|
|
803
|
-
return _(
|
|
804
|
-
icon:
|
|
802
|
+
var t = Ee({}, r, n.attrs);
|
|
803
|
+
return _(D, Ee({}, t, {
|
|
804
|
+
icon: Qn
|
|
805
805
|
}), null);
|
|
806
806
|
};
|
|
807
807
|
pe.displayName = "MenuUnfoldOutlined";
|
|
808
808
|
pe.inheritAttrs = !1;
|
|
809
|
-
const
|
|
809
|
+
const er = ["src"], He = /* @__PURE__ */ de({
|
|
810
810
|
__name: "menu-icon",
|
|
811
811
|
props: {
|
|
812
812
|
data: { default: () => ({}) },
|
|
@@ -814,8 +814,8 @@ const Xn = ["src"], He = /* @__PURE__ */ fe({
|
|
|
814
814
|
},
|
|
815
815
|
setup(e) {
|
|
816
816
|
const r = e, n = I(() => {
|
|
817
|
-
var o, u, l,
|
|
818
|
-
return r.status === "default" ? (((o = r.data) == null ? void 0 : o.host) || "") + X(r.data.iconUrl) : (u = r.data) != null && u.hoverIcon ? (((l = r.data) == null ? void 0 : l.host) || "") + X(r.data.hoverIcon) : (((
|
|
817
|
+
var o, u, l, d;
|
|
818
|
+
return r.status === "default" ? (((o = r.data) == null ? void 0 : o.host) || "") + X(r.data.iconUrl) : (u = r.data) != null && u.hoverIcon ? (((l = r.data) == null ? void 0 : l.host) || "") + X(r.data.hoverIcon) : (((d = r.data) == null ? void 0 : d.host) || "") + X(r.data.iconUrl);
|
|
819
819
|
}), t = I(() => ({
|
|
820
820
|
display: "block",
|
|
821
821
|
"background-color": "currentColor",
|
|
@@ -834,9 +834,9 @@ const Xn = ["src"], He = /* @__PURE__ */ fe({
|
|
|
834
834
|
key: 1,
|
|
835
835
|
src: n.value,
|
|
836
836
|
alt: ""
|
|
837
|
-
}, null, 8,
|
|
837
|
+
}, null, 8, er));
|
|
838
838
|
}
|
|
839
|
-
}),
|
|
839
|
+
}), nr = (e, r) => ({
|
|
840
840
|
menuClick: (a, o) => {
|
|
841
841
|
var u;
|
|
842
842
|
(u = e.selectedKeys) != null && u.includes(o.id) || r("menuClick", { domEvent: a, item: o, key: o.id, keyPath: [o.parentId, o.id] });
|
|
@@ -844,29 +844,29 @@ const Xn = ["src"], He = /* @__PURE__ */ fe({
|
|
|
844
844
|
toggleAffix: (a, o) => {
|
|
845
845
|
r("toggleAffix", a, o);
|
|
846
846
|
}
|
|
847
|
-
}), Ue = (e, r = "children") => e.map((t) => (t[r] && t[r].length && (t[r] = Ue(t[r], r)), (!t[r] || !t[r].length) && (t[r] = null), t)),
|
|
847
|
+
}), Ue = (e, r = "children") => e.map((t) => (t[r] && t[r].length && (t[r] = Ue(t[r], r)), (!t[r] || !t[r].length) && (t[r] = null), t)), rr = (e, r) => {
|
|
848
848
|
for (var n = [], t = 0; t < e.length; t += r)
|
|
849
849
|
n.push(e.slice(t, t + r));
|
|
850
850
|
return n;
|
|
851
|
-
},
|
|
851
|
+
}, tr = { class: "aside-menu-title has-children" }, ar = {
|
|
852
852
|
key: 0,
|
|
853
853
|
class: "icon-box"
|
|
854
|
-
},
|
|
854
|
+
}, or = {
|
|
855
855
|
key: 1,
|
|
856
856
|
class: "menu-title"
|
|
857
|
-
},
|
|
857
|
+
}, ir = { class: "submenu-container" }, lr = { class: "title-bar" }, sr = { class: "title-left" }, ur = { class: "title" }, cr = { class: "item-container" }, dr = ["onClick"], fr = { class: "name" }, pr = {
|
|
858
858
|
key: 0,
|
|
859
859
|
class: "expired"
|
|
860
|
-
},
|
|
860
|
+
}, gr = { class: "name" }, vr = {
|
|
861
861
|
key: 0,
|
|
862
862
|
class: "expired"
|
|
863
|
-
},
|
|
863
|
+
}, yr = { class: "submenu-container is-collapse" }, br = { class: "title-bar is-collapse" }, mr = { class: "title-left" }, hr = { class: "title" }, kr = { class: "item-collapse-container" }, Cr = ["onClick"], Fr = { class: "name" }, Sr = {
|
|
864
864
|
key: 0,
|
|
865
865
|
class: "expired"
|
|
866
|
-
},
|
|
866
|
+
}, wr = {
|
|
867
867
|
name: "SubMenu"
|
|
868
|
-
},
|
|
869
|
-
...
|
|
868
|
+
}, Or = /* @__PURE__ */ de({
|
|
869
|
+
...wr,
|
|
870
870
|
props: {
|
|
871
871
|
mode: { default: "vertical" },
|
|
872
872
|
collapse: { type: Boolean },
|
|
@@ -881,33 +881,33 @@ const Xn = ["src"], He = /* @__PURE__ */ fe({
|
|
|
881
881
|
emits: ["menuClick", "toggleAffix"],
|
|
882
882
|
setup(e, { emit: r }) {
|
|
883
883
|
const n = Q(""), t = e, a = r;
|
|
884
|
-
|
|
884
|
+
en({
|
|
885
885
|
unlock: import("@das-fed/ui/packages/icons/unlock"),
|
|
886
886
|
lock: import("@das-fed/ui/packages/icons/lock")
|
|
887
887
|
});
|
|
888
|
-
const { toggleAffix: o, menuClick: u } =
|
|
889
|
-
return (l,
|
|
888
|
+
const { toggleAffix: o, menuClick: u } = nr(t, a);
|
|
889
|
+
return (l, d) => (c(), T(f(Qe), le({
|
|
890
890
|
class: ["das-ui-sub-menu", l.parentSelectKeys.includes(l.menuInfo.id) ? "is-active" : ""],
|
|
891
891
|
key: l.menuInfo.id,
|
|
892
892
|
"popup-offset": [0, 0]
|
|
893
893
|
}, l.$attrs, {
|
|
894
|
-
onMouseover:
|
|
895
|
-
onMouseleave:
|
|
894
|
+
onMouseover: d[0] || (d[0] = (i) => n.value = l.menuInfo.id),
|
|
895
|
+
onMouseleave: d[1] || (d[1] = (i) => n.value = -1)
|
|
896
896
|
}), {
|
|
897
897
|
icon: A(() => {
|
|
898
898
|
var i;
|
|
899
899
|
return [
|
|
900
|
-
m("div",
|
|
901
|
-
l.menuInfo.hideIcon ? v("v-if", !0) : (c(), g("div",
|
|
902
|
-
|
|
900
|
+
m("div", tr, [
|
|
901
|
+
l.menuInfo.hideIcon ? v("v-if", !0) : (c(), g("div", ar, [
|
|
902
|
+
E(l.$slots, "icon", { menuInfo: l.menuInfo }, () => [
|
|
903
903
|
_(He, {
|
|
904
904
|
data: l.menuInfo,
|
|
905
905
|
status: l.parentSelectKeys.includes(l.menuInfo.id) || n.value === l.menuInfo.id ? "hover" : "default"
|
|
906
906
|
}, null, 8, ["data", "status"])
|
|
907
907
|
])
|
|
908
908
|
])),
|
|
909
|
-
l.collapse ? v("v-if", !0) : (c(), g("div",
|
|
910
|
-
|
|
909
|
+
l.collapse ? v("v-if", !0) : (c(), g("div", or, [
|
|
910
|
+
E(l.$slots, ((i = l.menuInfo) == null ? void 0 : i.code) + "-name", {}, () => [
|
|
911
911
|
We(
|
|
912
912
|
S(l.menuInfo.name),
|
|
913
913
|
1
|
|
@@ -929,14 +929,14 @@ const Xn = ["src"], He = /* @__PURE__ */ fe({
|
|
|
929
929
|
{ key: 1 },
|
|
930
930
|
[
|
|
931
931
|
v(" 收起 "),
|
|
932
|
-
_(
|
|
932
|
+
_(f(J), null, {
|
|
933
933
|
default: A(() => [
|
|
934
|
-
m("div",
|
|
935
|
-
m("div",
|
|
936
|
-
m("div",
|
|
934
|
+
m("div", yr, [
|
|
935
|
+
m("div", br, [
|
|
936
|
+
m("div", mr, [
|
|
937
937
|
m(
|
|
938
938
|
"div",
|
|
939
|
-
|
|
939
|
+
hr,
|
|
940
940
|
S(l.menuInfo.name),
|
|
941
941
|
1
|
|
942
942
|
/* TEXT */
|
|
@@ -959,7 +959,7 @@ const Xn = ["src"], He = /* @__PURE__ */ fe({
|
|
|
959
959
|
<div class="icon-title">{{ t('锁住') }}</div>\r
|
|
960
960
|
</div> `)
|
|
961
961
|
]),
|
|
962
|
-
ye((c(), g("div",
|
|
962
|
+
ye((c(), g("div", kr, [
|
|
963
963
|
(c(!0), g(
|
|
964
964
|
O,
|
|
965
965
|
null,
|
|
@@ -970,28 +970,28 @@ const Xn = ["src"], He = /* @__PURE__ */ fe({
|
|
|
970
970
|
l.selectedKeys.includes(i.id) ? "is-active" : "",
|
|
971
971
|
i != null && i.disable ? "is-disable" : ""
|
|
972
972
|
]),
|
|
973
|
-
onClick: be((h) =>
|
|
973
|
+
onClick: be((h) => f(u)(h, i), ["stop"])
|
|
974
974
|
}, [
|
|
975
975
|
m(
|
|
976
976
|
"div",
|
|
977
|
-
|
|
977
|
+
Fr,
|
|
978
978
|
S(i.name),
|
|
979
979
|
1
|
|
980
980
|
/* TEXT */
|
|
981
981
|
),
|
|
982
982
|
i != null && i.expired ? (c(), g(
|
|
983
983
|
"div",
|
|
984
|
-
|
|
985
|
-
S(
|
|
984
|
+
Sr,
|
|
985
|
+
S(f(G)("已到期")),
|
|
986
986
|
1
|
|
987
987
|
/* TEXT */
|
|
988
988
|
)) : v("v-if", !0)
|
|
989
|
-
], 10,
|
|
989
|
+
], 10, Cr))),
|
|
990
990
|
128
|
|
991
991
|
/* KEYED_FRAGMENT */
|
|
992
992
|
))
|
|
993
993
|
])), [
|
|
994
|
-
[
|
|
994
|
+
[f(he), { x: !1 }]
|
|
995
995
|
])
|
|
996
996
|
])
|
|
997
997
|
]),
|
|
@@ -1005,14 +1005,14 @@ const Xn = ["src"], He = /* @__PURE__ */ fe({
|
|
|
1005
1005
|
O,
|
|
1006
1006
|
{ key: 0 },
|
|
1007
1007
|
[
|
|
1008
|
-
l.mode === "vertical" ? (c(), T(
|
|
1008
|
+
l.mode === "vertical" ? (c(), T(f(J), { key: 0 }, {
|
|
1009
1009
|
default: A(() => [
|
|
1010
|
-
m("div",
|
|
1011
|
-
m("div",
|
|
1012
|
-
m("div",
|
|
1010
|
+
m("div", ir, [
|
|
1011
|
+
m("div", lr, [
|
|
1012
|
+
m("div", sr, [
|
|
1013
1013
|
m(
|
|
1014
1014
|
"div",
|
|
1015
|
-
|
|
1015
|
+
ur,
|
|
1016
1016
|
S(l.menuInfo.name),
|
|
1017
1017
|
1
|
|
1018
1018
|
/* TEXT */
|
|
@@ -1035,11 +1035,11 @@ const Xn = ["src"], He = /* @__PURE__ */ fe({
|
|
|
1035
1035
|
<div class="icon-title">锁住</div>\r
|
|
1036
1036
|
</div> `)
|
|
1037
1037
|
]),
|
|
1038
|
-
ye((c(), g("div",
|
|
1038
|
+
ye((c(), g("div", cr, [
|
|
1039
1039
|
(c(!0), g(
|
|
1040
1040
|
O,
|
|
1041
1041
|
null,
|
|
1042
|
-
R(
|
|
1042
|
+
R(f(rr)(l.menuInfo.children, 4), (i, h) => (c(), g("div", {
|
|
1043
1043
|
key: h,
|
|
1044
1044
|
class: "sub-menu-row"
|
|
1045
1045
|
}, [
|
|
@@ -1053,7 +1053,7 @@ const Xn = ["src"], He = /* @__PURE__ */ fe({
|
|
|
1053
1053
|
l.selectedKeys.includes(y.id) ? "is-active" : "",
|
|
1054
1054
|
y != null && y.disable ? "is-disable" : ""
|
|
1055
1055
|
]),
|
|
1056
|
-
onClick: be((w) =>
|
|
1056
|
+
onClick: be((w) => f(u)(w, y), ["stop"])
|
|
1057
1057
|
}, [
|
|
1058
1058
|
m(
|
|
1059
1059
|
"div",
|
|
@@ -1064,12 +1064,12 @@ const Xn = ["src"], He = /* @__PURE__ */ fe({
|
|
|
1064
1064
|
),
|
|
1065
1065
|
y != null && y.expired ? (c(), g(
|
|
1066
1066
|
"div",
|
|
1067
|
-
|
|
1068
|
-
S(
|
|
1067
|
+
pr,
|
|
1068
|
+
S(f(G)("已到期")),
|
|
1069
1069
|
1
|
|
1070
1070
|
/* TEXT */
|
|
1071
1071
|
)) : v("v-if", !0)
|
|
1072
|
-
], 10,
|
|
1072
|
+
], 10, dr))),
|
|
1073
1073
|
128
|
|
1074
1074
|
/* KEYED_FRAGMENT */
|
|
1075
1075
|
))
|
|
@@ -1078,7 +1078,7 @@ const Xn = ["src"], He = /* @__PURE__ */ fe({
|
|
|
1078
1078
|
/* KEYED_FRAGMENT */
|
|
1079
1079
|
))
|
|
1080
1080
|
])), [
|
|
1081
|
-
[
|
|
1081
|
+
[f(he), { x: !1 }]
|
|
1082
1082
|
])
|
|
1083
1083
|
])
|
|
1084
1084
|
]),
|
|
@@ -1089,7 +1089,7 @@ const Xn = ["src"], He = /* @__PURE__ */ fe({
|
|
|
1089
1089
|
O,
|
|
1090
1090
|
{ key: 1 },
|
|
1091
1091
|
R(l.menuInfo.children, (i) => (c(), T(
|
|
1092
|
-
|
|
1092
|
+
f(J),
|
|
1093
1093
|
{
|
|
1094
1094
|
key: i.id
|
|
1095
1095
|
},
|
|
@@ -1108,15 +1108,15 @@ const Xn = ["src"], He = /* @__PURE__ */ fe({
|
|
|
1108
1108
|
[
|
|
1109
1109
|
m(
|
|
1110
1110
|
"div",
|
|
1111
|
-
|
|
1111
|
+
gr,
|
|
1112
1112
|
S(i.name),
|
|
1113
1113
|
1
|
|
1114
1114
|
/* TEXT */
|
|
1115
1115
|
),
|
|
1116
1116
|
i != null && i.expired ? (c(), g(
|
|
1117
1117
|
"div",
|
|
1118
|
-
|
|
1119
|
-
S(
|
|
1118
|
+
vr,
|
|
1119
|
+
S(f(G)("已到期")),
|
|
1120
1120
|
1
|
|
1121
1121
|
/* TEXT */
|
|
1122
1122
|
)) : v("v-if", !0)
|
|
@@ -1147,7 +1147,7 @@ const Xn = ["src"], He = /* @__PURE__ */ fe({
|
|
|
1147
1147
|
/* FORWARDED */
|
|
1148
1148
|
}, 16, ["class"]));
|
|
1149
1149
|
}
|
|
1150
|
-
}),
|
|
1150
|
+
}), jr = (e, r) => {
|
|
1151
1151
|
const n = Q([]), t = Q([]);
|
|
1152
1152
|
me(
|
|
1153
1153
|
() => n.value,
|
|
@@ -1177,7 +1177,7 @@ const Xn = ["src"], He = /* @__PURE__ */ fe({
|
|
|
1177
1177
|
}
|
|
1178
1178
|
n.value = [i[i.length - 1]];
|
|
1179
1179
|
}
|
|
1180
|
-
e.mode === "vertical" && (n.value = Array.from(new Set(i.concat(t.value))), i && i.length === 1 && document.documentElement.style.setProperty("--das-menu-submenu-popup-z-index",
|
|
1180
|
+
e.mode === "vertical" && (n.value = Array.from(new Set(i.concat(t.value))), i && i.length === 1 && document.documentElement.style.setProperty("--das-menu-submenu-popup-z-index", nn().nextZIndex() + ""));
|
|
1181
1181
|
}, u = (i) => {
|
|
1182
1182
|
!i || !i.key || r("menuClick", i);
|
|
1183
1183
|
}, l = I({
|
|
@@ -1198,6 +1198,11 @@ const Xn = ["src"], He = /* @__PURE__ */ fe({
|
|
|
1198
1198
|
}
|
|
1199
1199
|
};
|
|
1200
1200
|
}, Ie = {
|
|
1201
|
+
"--das-ui-layout-aside-border-color": {
|
|
1202
|
+
kjl: "#D9D9D9",
|
|
1203
|
+
ssl: "#1B1F40",
|
|
1204
|
+
cjb: "#D9D9D9"
|
|
1205
|
+
},
|
|
1201
1206
|
"--das-ui-layout-aside-background-color": {
|
|
1202
1207
|
kjl: "#FFFFFF",
|
|
1203
1208
|
ssl: "#1B1F40",
|
|
@@ -1219,7 +1224,7 @@ const Xn = ["src"], He = /* @__PURE__ */ fe({
|
|
|
1219
1224
|
cjb: "#5582F3"
|
|
1220
1225
|
},
|
|
1221
1226
|
"--das-ui-layout-aside--item-active-background-color": {
|
|
1222
|
-
kjl: "#
|
|
1227
|
+
kjl: "#F1F8FF",
|
|
1223
1228
|
ssl: "#0D122C",
|
|
1224
1229
|
cjb: "#F2F6FF"
|
|
1225
1230
|
},
|
|
@@ -1238,6 +1243,11 @@ const Xn = ["src"], He = /* @__PURE__ */ fe({
|
|
|
1238
1243
|
ssl: "#0D122C",
|
|
1239
1244
|
cjb: "#FFFFFF"
|
|
1240
1245
|
},
|
|
1246
|
+
"--das-ui-layout-aside-submenu-vertical-item-hover-background-color": {
|
|
1247
|
+
kjl: "#F1F8FF",
|
|
1248
|
+
ssl: "#000000",
|
|
1249
|
+
cjb: "#F2F6FF"
|
|
1250
|
+
},
|
|
1241
1251
|
"--das-ui-layout-aside-submenu-item-color": {
|
|
1242
1252
|
kjl: "#666666",
|
|
1243
1253
|
ssl: "rgba(255,255,255,0.8)",
|
|
@@ -1249,11 +1259,16 @@ const Xn = ["src"], He = /* @__PURE__ */ fe({
|
|
|
1249
1259
|
cjb: "#FFFFFF"
|
|
1250
1260
|
},
|
|
1251
1261
|
"--das-ui-layout-aside-submenu-item-hover-color": {
|
|
1252
|
-
kjl: "#
|
|
1262
|
+
kjl: "#2673DC",
|
|
1253
1263
|
ssl: "#FFFFFF",
|
|
1254
|
-
cjb: "#
|
|
1264
|
+
cjb: "#5582F3"
|
|
1255
1265
|
},
|
|
1256
1266
|
"--das-ui-layout-aside-submenu-item-hover-background-color": {
|
|
1267
|
+
kjl: "transparent",
|
|
1268
|
+
ssl: "#000000",
|
|
1269
|
+
cjb: "transparent"
|
|
1270
|
+
},
|
|
1271
|
+
"--das-ui-layout-aside-submenu-item-active-background-color": {
|
|
1257
1272
|
kjl: "#F1F8FF",
|
|
1258
1273
|
ssl: "#000000",
|
|
1259
1274
|
cjb: "#F2F6FF"
|
|
@@ -1281,20 +1296,20 @@ const Xn = ["src"], He = /* @__PURE__ */ fe({
|
|
|
1281
1296
|
}, xr = {
|
|
1282
1297
|
key: 0,
|
|
1283
1298
|
class: "icon-box"
|
|
1284
|
-
},
|
|
1299
|
+
}, Ar = {
|
|
1285
1300
|
key: 1,
|
|
1286
1301
|
class: "custom-left-icon"
|
|
1287
|
-
},
|
|
1302
|
+
}, _r = { class: "menu-item-content" }, Tr = {
|
|
1288
1303
|
key: 1,
|
|
1289
1304
|
class: "expired"
|
|
1290
|
-
},
|
|
1305
|
+
}, Mr = {
|
|
1291
1306
|
key: 2,
|
|
1292
1307
|
class: "ant-menu-submenu-arrow",
|
|
1293
1308
|
custom: "true"
|
|
1294
|
-
},
|
|
1309
|
+
}, $r = { class: "das-aside-menu-bottom-container" }, Pr = {
|
|
1295
1310
|
name: "DasMenuAside"
|
|
1296
|
-
},
|
|
1297
|
-
|
|
1311
|
+
}, Dr = /* @__PURE__ */ de({
|
|
1312
|
+
...Pr,
|
|
1298
1313
|
props: {
|
|
1299
1314
|
globalTheme: { default: "default" },
|
|
1300
1315
|
mode: { default: "vertical" },
|
|
@@ -1317,8 +1332,8 @@ const Xn = ["src"], He = /* @__PURE__ */ fe({
|
|
|
1317
1332
|
const p = {}, b = document.getElementById(o);
|
|
1318
1333
|
if (t.globalTheme === "default")
|
|
1319
1334
|
return b && b.remove(), p;
|
|
1320
|
-
Object.keys(Ie).forEach((
|
|
1321
|
-
p[
|
|
1335
|
+
Object.keys(Ie).forEach((j) => {
|
|
1336
|
+
p[j] = Ie[j][t.globalTheme];
|
|
1322
1337
|
});
|
|
1323
1338
|
const s = [
|
|
1324
1339
|
{
|
|
@@ -1326,11 +1341,11 @@ const Xn = ["src"], He = /* @__PURE__ */ fe({
|
|
|
1326
1341
|
style: p
|
|
1327
1342
|
}
|
|
1328
1343
|
];
|
|
1329
|
-
return b ?
|
|
1330
|
-
}),
|
|
1344
|
+
return b ? rn(o, s) : tn(o, s), p;
|
|
1345
|
+
}), d = I(() => {
|
|
1331
1346
|
const p = t.menus || [], b = JSON.parse(JSON.stringify(p));
|
|
1332
1347
|
return !b || !b.length ? [] : Ue(b);
|
|
1333
|
-
}), { isCollapse: i, openKeys: h, affixKeys: y, toggleAffix: w, openChange: K, menuClick: U, toggleCollapse: N } =
|
|
1348
|
+
}), { isCollapse: i, openKeys: h, affixKeys: y, toggleAffix: w, openChange: K, menuClick: U, toggleCollapse: N } = jr(
|
|
1334
1349
|
t,
|
|
1335
1350
|
a
|
|
1336
1351
|
);
|
|
@@ -1348,26 +1363,26 @@ const Xn = ["src"], He = /* @__PURE__ */ fe({
|
|
|
1348
1363
|
class: M(["das-ui-aside-menu", p.collapse ? "is-collapse" : ""])
|
|
1349
1364
|
},
|
|
1350
1365
|
[
|
|
1351
|
-
_(
|
|
1366
|
+
_(f(Je), { style: { height: "100%" } }, {
|
|
1352
1367
|
default: A(() => [
|
|
1353
|
-
|
|
1368
|
+
d.value && d.value.length ? (c(), T(f(Xe), le({
|
|
1354
1369
|
key: 0,
|
|
1355
1370
|
class: ["das-menu", p.collapse ? "is-collapse" : ""],
|
|
1356
1371
|
mode: p.mode,
|
|
1357
|
-
openKeys:
|
|
1372
|
+
openKeys: f(h),
|
|
1358
1373
|
"onUpdate:openKeys": b[1] || (b[1] = (s) => Ze(h) ? h.value = s : null),
|
|
1359
1374
|
selectedKeys: p.currentSelectKeys,
|
|
1360
1375
|
theme: "dark",
|
|
1361
|
-
"inline-collapsed":
|
|
1376
|
+
"inline-collapsed": f(i)
|
|
1362
1377
|
}, p.$attrs, {
|
|
1363
|
-
onOpenChange:
|
|
1364
|
-
onClick:
|
|
1378
|
+
onOpenChange: f(K),
|
|
1379
|
+
onClick: f(U)
|
|
1365
1380
|
}), {
|
|
1366
1381
|
default: A(() => [
|
|
1367
1382
|
(c(!0), g(
|
|
1368
1383
|
O,
|
|
1369
1384
|
null,
|
|
1370
|
-
R(
|
|
1385
|
+
R(d.value, (s) => (c(), g(
|
|
1371
1386
|
O,
|
|
1372
1387
|
null,
|
|
1373
1388
|
[
|
|
@@ -1377,43 +1392,43 @@ const Xn = ["src"], He = /* @__PURE__ */ fe({
|
|
|
1377
1392
|
{ key: 1 },
|
|
1378
1393
|
[
|
|
1379
1394
|
v(" 有二级菜单 "),
|
|
1380
|
-
(c(), T(
|
|
1395
|
+
(c(), T(Or, le({
|
|
1381
1396
|
key: s.id,
|
|
1382
1397
|
mode: p.mode,
|
|
1383
1398
|
menuInfo: s,
|
|
1384
|
-
collapse:
|
|
1385
|
-
affixKeys:
|
|
1399
|
+
collapse: f(i),
|
|
1400
|
+
affixKeys: f(y),
|
|
1386
1401
|
parentSelectKeys: p.parentSelectKeys,
|
|
1387
1402
|
selectedKeys: p.currentSelectKeys,
|
|
1388
1403
|
ref_for: !0
|
|
1389
1404
|
}, u.value, {
|
|
1390
|
-
onMenuClick:
|
|
1391
|
-
onToggleAffix:
|
|
1405
|
+
onMenuClick: f(U),
|
|
1406
|
+
onToggleAffix: f(w)
|
|
1392
1407
|
}), null, 16, ["mode", "menuInfo", "collapse", "affixKeys", "parentSelectKeys", "selectedKeys", "onMenuClick", "onToggleAffix"]))
|
|
1393
1408
|
],
|
|
1394
1409
|
64
|
|
1395
1410
|
/* STABLE_FRAGMENT */
|
|
1396
|
-
)) : (c(), T(
|
|
1411
|
+
)) : (c(), T(f(J), {
|
|
1397
1412
|
class: M({ "divise-menu-item": s.divise }),
|
|
1398
1413
|
key: s.id,
|
|
1399
|
-
onMouseover: (
|
|
1400
|
-
onMouseleave: b[0] || (b[0] = (
|
|
1414
|
+
onMouseover: (j) => n.value = s.id,
|
|
1415
|
+
onMouseleave: b[0] || (b[0] = (j) => n.value = "")
|
|
1401
1416
|
}, {
|
|
1402
1417
|
icon: A(() => [
|
|
1403
|
-
_(
|
|
1418
|
+
_(f(Ye), {
|
|
1404
1419
|
content: s.name,
|
|
1405
1420
|
placement: "right",
|
|
1406
|
-
disabled: !
|
|
1421
|
+
disabled: !f(i)
|
|
1407
1422
|
}, {
|
|
1408
1423
|
default: A(() => {
|
|
1409
|
-
var
|
|
1424
|
+
var j, L, ge;
|
|
1410
1425
|
return [
|
|
1411
1426
|
m(
|
|
1412
1427
|
"div",
|
|
1413
1428
|
{
|
|
1414
1429
|
class: M([
|
|
1415
1430
|
"aside-menu-title",
|
|
1416
|
-
(
|
|
1431
|
+
(j = s == null ? void 0 : s.originalChildren) != null && j.length ? "has-children" : "",
|
|
1417
1432
|
s != null && s.expired ? "is-expired" : "",
|
|
1418
1433
|
s != null && s.disable ? "is-disable" : "",
|
|
1419
1434
|
p.currentSelectKeys.includes(s.id) ? "is-active" : ""
|
|
@@ -1423,10 +1438,10 @@ const Xn = ["src"], He = /* @__PURE__ */ fe({
|
|
|
1423
1438
|
v(" 自定义leftIcon "),
|
|
1424
1439
|
s.hideIcon ? v("v-if", !0) : (c(), g("div", xr, [
|
|
1425
1440
|
v(" 第一种icon插槽 "),
|
|
1426
|
-
p.$slots[`${s == null ? void 0 : s.code}-leftIcon`] ? (c(), g("div",
|
|
1441
|
+
p.$slots[`${s == null ? void 0 : s.code}-leftIcon`] ? (c(), g("div", Ar, [
|
|
1427
1442
|
v(" 第二种icon插槽 "),
|
|
1428
|
-
|
|
1429
|
-
])) :
|
|
1443
|
+
E(p.$slots, `${s == null ? void 0 : s.code}-leftIcon`)
|
|
1444
|
+
])) : E(p.$slots, "icon", {
|
|
1430
1445
|
key: 0,
|
|
1431
1446
|
menuInfo: s
|
|
1432
1447
|
}, () => [
|
|
@@ -1436,8 +1451,8 @@ const Xn = ["src"], He = /* @__PURE__ */ fe({
|
|
|
1436
1451
|
}, null, 8, ["data", "status"])
|
|
1437
1452
|
])
|
|
1438
1453
|
])),
|
|
1439
|
-
m("div",
|
|
1440
|
-
|
|
1454
|
+
m("div", _r, [
|
|
1455
|
+
f(i) ? v("v-if", !0) : (c(), g(
|
|
1441
1456
|
"div",
|
|
1442
1457
|
{
|
|
1443
1458
|
key: 0,
|
|
@@ -1453,15 +1468,15 @@ const Xn = ["src"], He = /* @__PURE__ */ fe({
|
|
|
1453
1468
|
v(" 已到期标识 "),
|
|
1454
1469
|
s != null && s.expired ? (c(), g(
|
|
1455
1470
|
"div",
|
|
1456
|
-
|
|
1457
|
-
S(
|
|
1471
|
+
Tr,
|
|
1472
|
+
S(f(G)("已到期")),
|
|
1458
1473
|
1
|
|
1459
1474
|
/* TEXT */
|
|
1460
1475
|
)) : v("v-if", !0),
|
|
1461
1476
|
v(" 箭头 "),
|
|
1462
|
-
s != null && s.disable && ((ge = s == null ? void 0 : s.originalChildren) != null && ge.length) ? (c(), g("i",
|
|
1477
|
+
s != null && s.disable && ((ge = s == null ? void 0 : s.originalChildren) != null && ge.length) ? (c(), g("i", Mr)) : v("v-if", !0),
|
|
1463
1478
|
v("@slots 右侧icon "),
|
|
1464
|
-
|
|
1479
|
+
E(p.$slots, (s == null ? void 0 : s.code) + "-rightIcon")
|
|
1465
1480
|
])
|
|
1466
1481
|
],
|
|
1467
1482
|
2
|
|
@@ -1488,8 +1503,8 @@ const Xn = ["src"], He = /* @__PURE__ */ fe({
|
|
|
1488
1503
|
/* FORWARDED */
|
|
1489
1504
|
}, 16, ["class", "mode", "openKeys", "selectedKeys", "inline-collapsed", "onOpenChange", "onClick"])) : v("v-if", !0),
|
|
1490
1505
|
v(" 底部插槽 "),
|
|
1491
|
-
m("div",
|
|
1492
|
-
|
|
1506
|
+
m("div", $r, [
|
|
1507
|
+
E(p.$slots, "bottom")
|
|
1493
1508
|
])
|
|
1494
1509
|
]),
|
|
1495
1510
|
_: 3
|
|
@@ -1502,21 +1517,21 @@ const Xn = ["src"], He = /* @__PURE__ */ fe({
|
|
|
1502
1517
|
m(
|
|
1503
1518
|
"div",
|
|
1504
1519
|
{
|
|
1505
|
-
class: M(["icon-container",
|
|
1520
|
+
class: M(["icon-container", f(i) ? "is-collapse" : ""])
|
|
1506
1521
|
},
|
|
1507
1522
|
[
|
|
1508
1523
|
m(
|
|
1509
1524
|
"div",
|
|
1510
1525
|
{
|
|
1511
|
-
style: Z({ "padding-left":
|
|
1512
|
-
onClick: b[2] || (b[2] = (s) =>
|
|
1526
|
+
style: Z({ "padding-left": f(i) ? "0" : "16px" }),
|
|
1527
|
+
onClick: b[2] || (b[2] = (s) => f(N)(!f(i)))
|
|
1513
1528
|
},
|
|
1514
1529
|
[
|
|
1515
1530
|
m("div", null, [
|
|
1516
|
-
|
|
1531
|
+
f(i) ? (c(), T(f(pe), {
|
|
1517
1532
|
key: 0,
|
|
1518
1533
|
class: "collapse-icon"
|
|
1519
|
-
})) : (c(), T(
|
|
1534
|
+
})) : (c(), T(f(fe), {
|
|
1520
1535
|
key: 1,
|
|
1521
1536
|
class: "collapse-icon"
|
|
1522
1537
|
}))
|
|
@@ -1538,6 +1553,7 @@ const Xn = ["src"], He = /* @__PURE__ */ fe({
|
|
|
1538
1553
|
"--das-ui-layout-aside-menu-width": "214px",
|
|
1539
1554
|
"--das-ui-layout-aside-collapse-menu-width": "50px",
|
|
1540
1555
|
"--das-ui-layout-aside-menu-item-height": "50px",
|
|
1556
|
+
"--das-ui-layout-aside-border-color": "#343848",
|
|
1541
1557
|
"--das-ui-layout-aside-background-color": "#343848",
|
|
1542
1558
|
"--das-ui-layout-aside--item-color": "rgba(255,255,255,0.65)",
|
|
1543
1559
|
"--das-ui-layout-aside--item-arrow-color": "rgba(255, 255, 255, 0.65)",
|
|
@@ -1545,22 +1561,24 @@ const Xn = ["src"], He = /* @__PURE__ */ fe({
|
|
|
1545
1561
|
"--das-ui-layout-aside--item-active-background-color": "rgba(0,0,0,0.4)",
|
|
1546
1562
|
"--das-ui-layout-aside-item-hover-color": "rgba(255,255,255,0.9)",
|
|
1547
1563
|
"--das-ui-layout-aside-item-hover-background-color": "rgba(0,0,0,0.4)",
|
|
1564
|
+
"--das-ui-layout-aside-submenu-title-border-color": "rgba(255, 255, 255, 0.3)",
|
|
1548
1565
|
"--das-ui-layout-aside-submenu-vertical-background-color": "#1F212B",
|
|
1566
|
+
"--das-ui-layout-aside-submenu-vertical-item-hover-background-color": "rgba(0,0,0,0.4)",
|
|
1549
1567
|
"--das-ui-layout-aside-submenu-background-color": "#1F212B",
|
|
1550
1568
|
"--das-ui-layout-aside-submenu-item-affix-color": "#5582F3",
|
|
1551
1569
|
"--das-ui-layout-aside-submenu-item-color": "rgba(255,255,255,0.65)",
|
|
1552
1570
|
"--das-ui-layout-aside-submenu-item-hover-color": "rgba(255,255,255,0.9)",
|
|
1553
1571
|
"--das-ui-layout-aside-submenu-item-hover-background-color": "rgba(0,0,0,0.4)",
|
|
1554
1572
|
"--das-ui-layout-aside-submenu-item-active-background-color": "rgba(0,0,0,0.4)",
|
|
1555
|
-
"--das-ui-layout-aside-submenu-title-border-color": "rgba(255, 255, 255, 0.3)",
|
|
1556
1573
|
"--das-ui-layout-aside-collapse-icon-bg-color": "rgba(255,255,255,0.65)",
|
|
1557
1574
|
"--das-ui-layout-aside-collapse-icon-hover-bg-color": "#5582F3",
|
|
1558
1575
|
"--das-ui-layout-aside-divise-border-color": "rgba(255, 255, 255, 0.3)",
|
|
1559
1576
|
"--das-ui-layout-aside-menu-expired-color": "#BBBBBB"
|
|
1560
|
-
};
|
|
1561
|
-
|
|
1562
|
-
|
|
1577
|
+
}, Ir = { 已到期: { "zh-CN": "已到期", en: "Expired", _appCode: "framework" } };
|
|
1578
|
+
Ge(Ir);
|
|
1579
|
+
an(Er);
|
|
1580
|
+
const Jr = Le(Dr), Yr = { title: "Menu-Aside 垂直导航栏" };
|
|
1563
1581
|
export {
|
|
1564
|
-
|
|
1565
|
-
|
|
1582
|
+
Jr as DasMenuAside,
|
|
1583
|
+
Yr as default
|
|
1566
1584
|
};
|