base6-ui 1.1.14 → 1.1.16
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/components/BaseCascader/cssVar.d.ts +10 -0
- package/dist/components/BaseConfigProvider/constants.d.ts +3 -0
- package/dist/components/BaseConfigProvider/index.d.ts +2 -0
- package/dist/components/BaseConfigProvider/index.vue.d.ts +18 -0
- package/dist/components/BaseConfigProvider/locale-base.d.ts +3 -0
- package/dist/components/BaseConfigProvider/locale-naive.d.ts +4 -0
- package/dist/components/BaseConfigProvider/type.d.ts +17 -0
- package/dist/components/BaseDataTable/index.vue.d.ts +1 -1
- package/dist/components/BaseDialog/index.vue.d.ts +2 -2
- package/dist/components/BaseInputNumber/index.vue.d.ts +0 -1
- package/dist/components/BaseLayout/Default/index.vue.d.ts +8 -6
- package/dist/components/BaseLayout/Default/type.d.ts +7 -9
- package/dist/components/BaseLayout/index.vue.d.ts +1 -1
- package/dist/components/BaseProductIntroduction/cssVar.d.ts +3 -0
- package/dist/components/BaseProgress/cssVar.d.ts +8 -0
- package/dist/components/BaseProgress/index.d.ts +128 -3
- package/dist/components/BaseRadio/cssVar.d.ts +5 -0
- package/dist/components/BaseSelect/index.vue.d.ts +1 -1
- package/dist/components/BaseSteps/index.d.ts +1 -0
- package/dist/components/BaseSteps/steps.d.ts +25 -0
- package/dist/components/BaseSwitch/cssVar.d.ts +7 -0
- package/dist/components/BaseSystemActions/cssVar.d.ts +7 -0
- package/dist/components/BaseSystemActions/index.d.ts +2 -0
- package/dist/components/BaseSystemActions/index.vue.d.ts +13 -0
- package/dist/components/BaseSystemActions/type.d.ts +9 -0
- package/dist/components/BaseTabs/cssVar.d.ts +4 -0
- package/dist/components/BaseTabs/index.d.ts +2 -0
- package/dist/components/BaseTabs/tabs.d.ts +699 -0
- package/dist/components/index.d.ts +4 -0
- package/dist/config/themes/common.d.ts +1 -0
- package/dist/config/themes/components/baseComponent/dark.d.ts +3 -2
- package/dist/config/themes/components/baseComponent/light.d.ts +3 -2
- package/dist/config/themes/components/cascader/common.d.ts +2 -2
- package/dist/config/themes/components/cascader/dark.d.ts +2 -2
- package/dist/config/themes/components/cascader/light.d.ts +2 -2
- package/dist/config/themes/components/progress/dark.d.ts +2 -3
- package/dist/config/themes/components/progress/light.d.ts +2 -3
- package/dist/config/themes/components/radio/dark.d.ts +2 -3
- package/dist/config/themes/components/radio/light.d.ts +2 -3
- package/dist/config/themes/components/switch/common.d.ts +2 -3
- package/dist/config/themes/components/switch/dark.d.ts +2 -3
- package/dist/config/themes/components/switch/light.d.ts +2 -3
- package/dist/enum/locale.d.ts +4 -0
- package/dist/fonts/MiSans-Medium.ttf +0 -0
- package/dist/fonts/MiSans-Regular.ttf +0 -0
- package/dist/hooks/useAnimationHook.d.ts +1 -1
- package/dist/hooks/useLocale.d.ts +17 -0
- package/dist/index.css +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.umd.js +1 -1
- package/dist/locale/index.d.ts +3 -0
- package/dist/locale/lang/en-us.d.ts +26 -0
- package/dist/locale/lang/zh-cn.d.ts +3 -0
- package/dist/types/themes/components.d.ts +7 -0
- package/dist/types/themes/extendThemes.d.ts +10 -0
- package/dist/utils/render.d.ts +3 -0
- package/dist/utils/typescript.d.ts +61 -0
- package/es/_virtual/virtual_svg-icons-register.mjs +1 -1
- package/es/assets/logo/logo-dark-full.svg.mjs +2 -2
- package/es/assets/logo/logo-light-full.svg.mjs +2 -2
- package/es/components/BaseButton/index.vue.mjs +14 -14
- package/es/components/BaseCascader/cssVar.d.ts +10 -0
- package/es/components/BaseCascader/cssVar.mjs +13 -0
- package/es/components/BaseCascader/index.vue.mjs +2 -2
- package/es/components/BaseCascader/index.vue2.mjs +19 -13
- package/es/components/BaseConfigProvider/constants.d.ts +3 -0
- package/es/components/BaseConfigProvider/constants.mjs +4 -0
- package/es/components/BaseConfigProvider/index.d.ts +2 -0
- package/es/components/BaseConfigProvider/index.vue.d.ts +18 -0
- package/es/components/BaseConfigProvider/index.vue.mjs +54 -0
- package/es/components/BaseConfigProvider/index.vue2.mjs +4 -0
- package/es/components/BaseConfigProvider/locale-base.d.ts +3 -0
- package/es/components/BaseConfigProvider/locale-base.mjs +9 -0
- package/es/components/BaseConfigProvider/locale-naive.d.ts +4 -0
- package/es/components/BaseConfigProvider/locale-naive.mjs +12 -0
- package/es/components/BaseConfigProvider/type.d.ts +17 -0
- package/es/components/BaseDataTable/index.vue.d.ts +1 -1
- package/es/components/BaseDataTable/index.vue2.mjs +13 -13
- package/es/components/BaseDialog/index.vue.d.ts +2 -2
- package/es/components/BaseDialog/index.vue.mjs +43 -43
- package/es/components/BaseInputNumber/index.vue.d.ts +0 -1
- package/es/components/BaseInputNumber/index.vue.mjs +1 -1
- package/es/components/BaseInputNumber/index.vue2.mjs +57 -57
- package/es/components/BaseLayout/ASide/index.vue.mjs +2 -2
- package/es/components/BaseLayout/ASide/index.vue2.mjs +27 -27
- package/es/components/BaseLayout/Default/index.vue.d.ts +8 -6
- package/es/components/BaseLayout/Default/index.vue.mjs +2 -2
- package/es/components/BaseLayout/Default/index.vue2.mjs +77 -73
- package/es/components/BaseLayout/Default/layoutHeader/index.vue.mjs +26 -19
- package/es/components/BaseLayout/Default/layoutMenu/components/first-level-menu.vue2.mjs +30 -30
- package/es/components/BaseLayout/Default/type.d.ts +7 -9
- package/es/components/BaseLayout/components/WrapFooter.vue.mjs +14 -14
- package/es/components/BaseLayout/components/WrapHeader.vue2.mjs +8 -8
- package/es/components/BaseLayout/components/WrapTab.vue.mjs +12 -12
- package/es/components/BaseLayout/index.vue.d.ts +1 -1
- package/es/components/BaseLayout/index.vue2.mjs +36 -36
- package/es/components/BaseNavIcon/index.vue2.mjs +14 -14
- package/es/components/BaseProductIntroduction/cssVar.d.ts +3 -0
- package/es/components/BaseProductIntroduction/cssVar.mjs +29 -24
- package/es/components/BaseProductIntroduction/index.vue.mjs +2 -2
- package/es/components/BaseProductIntroduction/index.vue2.mjs +94 -88
- package/es/components/BaseProgress/cssVar.d.ts +8 -0
- package/es/components/BaseProgress/cssVar.mjs +14 -0
- package/es/components/BaseProgress/index.d.ts +128 -3
- package/es/components/BaseProgress/index.mjs +22 -34
- package/es/components/BaseRadio/cssVar.d.ts +5 -0
- package/es/components/BaseRadio/cssVar.mjs +8 -0
- package/es/components/BaseRadio/index.vue.mjs +2 -2
- package/es/components/BaseRadio/index.vue2.mjs +17 -27
- package/es/components/BaseSelect/index.vue.d.ts +1 -1
- package/es/components/BaseSelect/index.vue.mjs +2 -2
- package/es/components/BaseSelect/index.vue2.mjs +32 -30
- package/es/components/BaseSlider/index.vue2.mjs +44 -44
- package/es/components/BaseSteps/index.d.ts +1 -0
- package/es/components/BaseSteps/steps.d.ts +25 -0
- package/es/components/BaseSteps/steps.mjs +27 -0
- package/es/components/BaseSwitch/cssVar.d.ts +7 -0
- package/es/components/BaseSwitch/cssVar.mjs +10 -0
- package/es/components/BaseSwitch/index.vue.mjs +2 -2
- package/es/components/BaseSwitch/index.vue2.mjs +16 -28
- package/es/components/BaseSystemActions/cssVar.d.ts +7 -0
- package/es/components/BaseSystemActions/cssVar.mjs +63 -0
- package/es/components/BaseSystemActions/index.d.ts +2 -0
- package/es/components/BaseSystemActions/index.vue.d.ts +13 -0
- package/es/components/BaseSystemActions/index.vue.mjs +7 -0
- package/es/components/BaseSystemActions/index.vue2.mjs +102 -0
- package/es/components/BaseSystemActions/type.d.ts +9 -0
- package/es/components/BaseTabs/cssVar.d.ts +4 -0
- package/es/components/BaseTabs/cssVar.mjs +7 -0
- package/es/components/BaseTabs/index.d.ts +2 -0
- package/es/components/BaseTabs/tabs.d.ts +699 -0
- package/es/components/BaseTabs/tabs.mjs +43 -0
- package/es/components/index.d.ts +4 -0
- package/es/config/themes/common.d.ts +1 -0
- package/es/config/themes/common.mjs +2 -1
- package/es/config/themes/components/baseComponent/dark.d.ts +3 -2
- package/es/config/themes/components/baseComponent/dark.mjs +13 -6
- package/es/config/themes/components/baseComponent/light.d.ts +3 -2
- package/es/config/themes/components/baseComponent/light.mjs +10 -5
- package/es/config/themes/components/button/common.mjs +4 -4
- package/es/config/themes/components/cascader/common.d.ts +2 -2
- package/es/config/themes/components/cascader/common.mjs +4 -2
- package/es/config/themes/components/cascader/dark.d.ts +2 -2
- package/es/config/themes/components/cascader/dark.mjs +6 -2
- package/es/config/themes/components/cascader/light.d.ts +2 -2
- package/es/config/themes/components/cascader/light.mjs +10 -6
- package/es/config/themes/components/dataTable/dark.mjs +2 -0
- package/es/config/themes/components/dataTable/light.mjs +2 -0
- package/es/config/themes/components/input/dark.mjs +1 -1
- package/es/config/themes/components/progress/dark.d.ts +2 -3
- package/es/config/themes/components/progress/light.d.ts +2 -3
- package/es/config/themes/components/radio/dark.d.ts +2 -3
- package/es/config/themes/components/radio/light.d.ts +2 -3
- package/es/config/themes/components/select/dark.mjs +3 -2
- package/es/config/themes/components/select/light.mjs +1 -0
- package/es/config/themes/components/slider/dark.mjs +2 -1
- package/es/config/themes/components/slider/light.mjs +2 -1
- package/es/config/themes/components/switch/common.d.ts +2 -3
- package/es/config/themes/components/switch/dark.d.ts +2 -3
- package/es/config/themes/components/switch/light.d.ts +2 -3
- package/es/enum/locale.d.ts +4 -0
- package/es/fonts/MiSans-Medium.ttf +0 -0
- package/es/fonts/MiSans-Regular.ttf +0 -0
- package/es/hooks/useAnimationHook.d.ts +1 -1
- package/es/hooks/useAnimationHook.mjs +17 -14
- package/es/hooks/useLocale.d.ts +17 -0
- package/es/hooks/useLocale.mjs +24 -0
- package/es/index.css +1 -1
- package/es/index.d.ts +2 -0
- package/es/index.mjs +69 -54
- package/es/locale/index.d.ts +3 -0
- package/es/locale/lang/en-us.d.ts +26 -0
- package/es/locale/lang/en-us.mjs +27 -0
- package/es/locale/lang/zh-cn.d.ts +3 -0
- package/es/locale/lang/zh-cn.mjs +27 -0
- package/es/node_modules/.pnpm/{@vueuse_core@13.0.0_vue@3.5.13_typescript@5.7.2_ → @vueuse_core@13.0.0_vue@3.5.22_typescript@5.7.2_}/node_modules/@vueuse/core/index.mjs +1 -1
- package/es/node_modules/.pnpm/es-toolkit@1.41.0/node_modules/es-toolkit/dist/compat/_internal/isDeepKey.mjs +12 -0
- package/es/node_modules/.pnpm/es-toolkit@1.41.0/node_modules/es-toolkit/dist/compat/_internal/toKey.mjs +6 -0
- package/es/node_modules/.pnpm/es-toolkit@1.41.0/node_modules/es-toolkit/dist/compat/object/get.mjs +44 -0
- package/es/node_modules/.pnpm/es-toolkit@1.41.0/node_modules/es-toolkit/dist/compat/util/toPath.mjs +21 -0
- package/es/node_modules/.pnpm/es-toolkit@1.41.0/node_modules/es-toolkit/dist/compat/util/toString.mjs +13 -0
- package/es/types/themes/components.d.ts +7 -0
- package/es/types/themes/extendThemes.d.ts +10 -0
- package/es/utils/render.d.ts +3 -0
- package/es/utils/render.mjs +9 -0
- package/es/utils/typescript.d.ts +61 -0
- package/lib/_virtual/virtual_svg-icons-register.js +1 -1
- package/lib/assets/logo/logo-dark-full.svg.js +1 -1
- package/lib/assets/logo/logo-light-full.svg.js +1 -1
- package/lib/components/BaseButton/index.vue.js +1 -1
- package/lib/components/BaseCascader/cssVar.d.ts +10 -0
- package/lib/components/BaseCascader/cssVar.js +1 -0
- package/lib/components/BaseCascader/index.vue.js +1 -1
- package/lib/components/BaseCascader/index.vue2.js +1 -1
- package/lib/components/BaseConfigProvider/constants.d.ts +3 -0
- package/lib/components/BaseConfigProvider/constants.js +1 -0
- package/lib/components/BaseConfigProvider/index.d.ts +2 -0
- package/lib/components/BaseConfigProvider/index.vue.d.ts +18 -0
- package/lib/components/BaseConfigProvider/index.vue.js +1 -0
- package/lib/components/BaseConfigProvider/index.vue2.js +1 -0
- package/lib/components/BaseConfigProvider/locale-base.d.ts +3 -0
- package/lib/components/BaseConfigProvider/locale-base.js +1 -0
- package/lib/components/BaseConfigProvider/locale-naive.d.ts +4 -0
- package/lib/components/BaseConfigProvider/locale-naive.js +1 -0
- package/lib/components/BaseConfigProvider/type.d.ts +17 -0
- package/lib/components/BaseDataTable/index.vue.d.ts +1 -1
- package/lib/components/BaseDataTable/index.vue2.js +1 -1
- package/lib/components/BaseDialog/index.vue.d.ts +2 -2
- package/lib/components/BaseDialog/index.vue.js +1 -1
- package/lib/components/BaseInputNumber/index.vue.d.ts +0 -1
- package/lib/components/BaseInputNumber/index.vue.js +1 -1
- package/lib/components/BaseInputNumber/index.vue2.js +1 -1
- package/lib/components/BaseLayout/ASide/index.vue.js +1 -1
- package/lib/components/BaseLayout/ASide/index.vue2.js +1 -1
- package/lib/components/BaseLayout/Default/index.vue.d.ts +8 -6
- package/lib/components/BaseLayout/Default/index.vue.js +1 -1
- package/lib/components/BaseLayout/Default/index.vue2.js +1 -1
- package/lib/components/BaseLayout/Default/layoutHeader/index.vue.js +1 -1
- package/lib/components/BaseLayout/Default/layoutMenu/components/first-level-menu.vue2.js +1 -1
- package/lib/components/BaseLayout/Default/type.d.ts +7 -9
- package/lib/components/BaseLayout/components/WrapFooter.vue.js +1 -1
- package/lib/components/BaseLayout/components/WrapHeader.vue2.js +1 -1
- package/lib/components/BaseLayout/components/WrapTab.vue.js +1 -1
- package/lib/components/BaseLayout/index.vue.d.ts +1 -1
- package/lib/components/BaseLayout/index.vue2.js +1 -1
- package/lib/components/BaseNavIcon/index.vue2.js +1 -1
- package/lib/components/BaseProductIntroduction/cssVar.d.ts +3 -0
- package/lib/components/BaseProductIntroduction/cssVar.js +1 -1
- package/lib/components/BaseProductIntroduction/index.vue.js +1 -1
- package/lib/components/BaseProductIntroduction/index.vue2.js +1 -1
- package/lib/components/BaseProgress/cssVar.d.ts +8 -0
- package/lib/components/BaseProgress/cssVar.js +1 -0
- package/lib/components/BaseProgress/index.d.ts +128 -3
- package/lib/components/BaseProgress/index.js +1 -1
- package/lib/components/BaseRadio/cssVar.d.ts +5 -0
- package/lib/components/BaseRadio/cssVar.js +1 -0
- package/lib/components/BaseRadio/index.vue.js +1 -1
- package/lib/components/BaseRadio/index.vue2.js +1 -1
- package/lib/components/BaseSelect/index.vue.d.ts +1 -1
- package/lib/components/BaseSelect/index.vue.js +1 -1
- package/lib/components/BaseSelect/index.vue2.js +1 -1
- package/lib/components/BaseSlider/index.vue2.js +1 -1
- package/lib/components/BaseSteps/index.d.ts +1 -0
- package/lib/components/BaseSteps/steps.d.ts +25 -0
- package/lib/components/BaseSteps/steps.js +1 -0
- package/lib/components/BaseSwitch/cssVar.d.ts +7 -0
- package/lib/components/BaseSwitch/cssVar.js +1 -0
- package/lib/components/BaseSwitch/index.vue.js +1 -1
- package/lib/components/BaseSwitch/index.vue2.js +1 -1
- package/lib/components/BaseSystemActions/cssVar.d.ts +7 -0
- package/lib/components/BaseSystemActions/cssVar.js +1 -0
- package/lib/components/BaseSystemActions/index.d.ts +2 -0
- package/lib/components/BaseSystemActions/index.vue.d.ts +13 -0
- package/lib/components/BaseSystemActions/index.vue.js +1 -0
- package/lib/components/BaseSystemActions/index.vue2.js +1 -0
- package/lib/components/BaseSystemActions/type.d.ts +9 -0
- package/lib/components/BaseTabs/cssVar.d.ts +4 -0
- package/lib/components/BaseTabs/cssVar.js +1 -0
- package/lib/components/BaseTabs/index.d.ts +2 -0
- package/lib/components/BaseTabs/tabs.d.ts +699 -0
- package/lib/components/BaseTabs/tabs.js +1 -0
- package/lib/components/index.d.ts +4 -0
- package/lib/config/themes/common.d.ts +1 -0
- package/lib/config/themes/common.js +1 -1
- package/lib/config/themes/components/baseComponent/dark.d.ts +3 -2
- package/lib/config/themes/components/baseComponent/dark.js +1 -1
- package/lib/config/themes/components/baseComponent/light.d.ts +3 -2
- package/lib/config/themes/components/baseComponent/light.js +1 -1
- package/lib/config/themes/components/button/common.js +1 -1
- package/lib/config/themes/components/cascader/common.d.ts +2 -2
- package/lib/config/themes/components/cascader/common.js +1 -1
- package/lib/config/themes/components/cascader/dark.d.ts +2 -2
- package/lib/config/themes/components/cascader/dark.js +1 -1
- package/lib/config/themes/components/cascader/light.d.ts +2 -2
- package/lib/config/themes/components/cascader/light.js +1 -1
- package/lib/config/themes/components/dataTable/dark.js +1 -1
- package/lib/config/themes/components/dataTable/light.js +1 -1
- package/lib/config/themes/components/input/dark.js +1 -1
- package/lib/config/themes/components/progress/dark.d.ts +2 -3
- package/lib/config/themes/components/progress/light.d.ts +2 -3
- package/lib/config/themes/components/radio/dark.d.ts +2 -3
- package/lib/config/themes/components/radio/light.d.ts +2 -3
- package/lib/config/themes/components/select/dark.js +1 -1
- package/lib/config/themes/components/select/light.js +1 -1
- package/lib/config/themes/components/slider/dark.js +1 -1
- package/lib/config/themes/components/slider/light.js +1 -1
- package/lib/config/themes/components/switch/common.d.ts +2 -3
- package/lib/config/themes/components/switch/dark.d.ts +2 -3
- package/lib/config/themes/components/switch/light.d.ts +2 -3
- package/lib/enum/locale.d.ts +4 -0
- package/lib/fonts/MiSans-Medium.ttf +0 -0
- package/lib/fonts/MiSans-Regular.ttf +0 -0
- package/lib/hooks/useAnimationHook.d.ts +1 -1
- package/lib/hooks/useAnimationHook.js +1 -1
- package/lib/hooks/useLocale.d.ts +17 -0
- package/lib/hooks/useLocale.js +1 -0
- package/lib/index.css +1 -1
- package/lib/index.d.ts +2 -0
- package/lib/index.js +1 -1
- package/lib/locale/index.d.ts +3 -0
- package/lib/locale/lang/en-us.d.ts +26 -0
- package/lib/locale/lang/en-us.js +1 -0
- package/lib/locale/lang/zh-cn.d.ts +3 -0
- package/lib/locale/lang/zh-cn.js +1 -0
- package/lib/node_modules/.pnpm/{@vueuse_core@13.0.0_vue@3.5.13_typescript@5.7.2_ → @vueuse_core@13.0.0_vue@3.5.22_typescript@5.7.2_}/node_modules/@vueuse/core/index.js +1 -1
- package/lib/node_modules/.pnpm/es-toolkit@1.41.0/node_modules/es-toolkit/dist/compat/_internal/isDeepKey.js +1 -0
- package/lib/node_modules/.pnpm/es-toolkit@1.41.0/node_modules/es-toolkit/dist/compat/_internal/toKey.js +1 -0
- package/lib/node_modules/.pnpm/es-toolkit@1.41.0/node_modules/es-toolkit/dist/compat/object/get.js +1 -0
- package/lib/node_modules/.pnpm/es-toolkit@1.41.0/node_modules/es-toolkit/dist/compat/util/toPath.js +1 -0
- package/lib/node_modules/.pnpm/es-toolkit@1.41.0/node_modules/es-toolkit/dist/compat/util/toString.js +1 -0
- package/lib/types/themes/components.d.ts +7 -0
- package/lib/types/themes/extendThemes.d.ts +10 -0
- package/lib/utils/render.d.ts +3 -0
- package/lib/utils/render.js +1 -0
- package/lib/utils/typescript.d.ts +61 -0
- package/package.json +3 -1
- package/es/components/BaseLayout/Default/layoutHeader/action.vue.mjs +0 -7
- package/es/components/BaseLayout/Default/layoutHeader/action.vue2.mjs +0 -85
- package/lib/components/BaseLayout/Default/layoutHeader/action.vue.js +0 -1
- package/lib/components/BaseLayout/Default/layoutHeader/action.vue2.js +0 -1
- /package/es/node_modules/.pnpm/{@vueuse_shared@13.0.0_vue@3.5.13_typescript@5.7.2_ → @vueuse_shared@13.0.0_vue@3.5.22_typescript@5.7.2_}/node_modules/@vueuse/shared/index.mjs +0 -0
- /package/lib/node_modules/.pnpm/{@vueuse_shared@13.0.0_vue@3.5.13_typescript@5.7.2_ → @vueuse_shared@13.0.0_vue@3.5.22_typescript@5.7.2_}/node_modules/@vueuse/shared/index.js +0 -0
package/lib/index.d.ts
CHANGED
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("./_virtual/virtual_svg-icons-register.js");;/* empty css */;/* empty css */const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("./_virtual/virtual_svg-icons-register.js");;/* empty css */;/* empty css */const r=require("./components/AppProvider/index.vue.js"),t=require("./components/BaseButton/index.vue.js"),i=require("./components/BaseCascader/index.vue.js"),s=require("./components/BaseConfigProvider/index.vue.js"),u=require("./components/BaseDataTable/index.vue.js"),a=require("./components/BaseDialog/index.vue.js"),n=require("./components/BaseInputNumber/index.vue.js"),d=require("./components/BaseLayout/index.vue.js"),o=require("./components/BaseLayout/ASide/index.vue.js"),c=require("./components/BaseLayout/AsideMenu/index.vue.js"),l=require("./components/BaseLayout/Header/index.vue.js"),q=require("./components/BaseLayout/Default/index.vue.js"),f=require("./components/BaseNavIcon/index.vue.js"),h=require("./components/BaseRadio/index.vue.js"),_=require("./components/BaseProductIntroduction/index.vue.js"),$=require("./components/BaseProgress/index.js"),g=require("./components/BaseSelect/index.vue.js"),p=require("./components/BaseSlider/index.vue.js"),B=require("./components/BaseSteps/steps.js"),x=require("./components/BaseSwitch/index.vue.js"),v=require("./components/BaseSystemActions/index.vue.js"),e=require("./components/BaseTabs/tabs.js"),m=require("./config/themes/index.js"),T=require("./hooks/useAnimationHook.js"),k=require("./locale/lang/en-us.js"),y=require("./locale/lang/zh-cn.js"),b=require("./globalMethods/index.js"),S=require("./utils/render.js"),C=require("./config/themes/token/dark.js"),P=require("./config/themes/token/light.js"),A=require("./config/themes/color/dark.js"),I=require("./config/themes/color/light.js"),L=require("./globalMethods/modules/message.js"),D=require("./globalMethods/modules/confirmTip.js"),O=require("./config/themes/light.js"),H=require("./config/themes/dark.js"),M=require("./config/themes/components/charts/dark.js"),j=require("./config/themes/components/charts/light.js");exports.AppProvider=r.default;exports.BaseButton=t.default;exports.BaseCascader=i.default;exports.BaseConfigProvider=s.default;exports.BaseDataTable=u.default;exports.BaseDialog=a.default;exports.BaseInputNumber=n.default;exports.BaseLayout=d.default;exports.BaseLayoutAside=o.default;exports.BaseAsideMenu=c.default;exports.BaseLayoutHeader=l.default;exports.BaseDefaultLayout=q.default;exports.BaseNavIcon=f.default;exports.BaseRadio=h.default;exports.BaseProductIntroduction=_.default;exports.BaseProgress=$.default;exports.BaseSelect=g.default;exports.BaseSlider=p.default;exports.BaseSteps=B.default;exports.BaseSwitch=x.default;exports.BaseSystemActions=v.default;exports.BaseTabs=e.default;exports.baseTabsProps=e.baseTabsProps;exports.configProviderInjectionKey=m.configProviderInjectionKey;exports.useAnimationHook=T.useAnimationHook;exports.enUS=k.default;exports.zhCN=y.default;exports.registerGlobalMethods=b.default;exports.renderStepsFinishIcon=S.renderStepsFinishIcon;exports.darkToken=C.default;exports.lightToken=P.default;exports.darkBase=A.default;exports.lightBase=I.default;exports.useMessage=L.default;exports.useConfirmTip=D.default;exports.lightThemeOverrides=O.lightThemeOverrides;exports.darkThemeOverrides=H.darkThemeOverrides;exports.ChartsThemeDark=M.ChartsThemeDark;exports.ChartsThemeLight=j.ChartsThemeLight;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
declare const enUS: {
|
|
2
|
+
name: string;
|
|
3
|
+
base: {
|
|
4
|
+
systemActions: {
|
|
5
|
+
userCenter: string;
|
|
6
|
+
logout: string;
|
|
7
|
+
};
|
|
8
|
+
productIntroduction: {
|
|
9
|
+
allProducts: string;
|
|
10
|
+
BasePlatform: string;
|
|
11
|
+
BasePlatformDescription: string;
|
|
12
|
+
AdsPlatform: string;
|
|
13
|
+
AdsPlatformDescription: string;
|
|
14
|
+
StudioPlatform: string;
|
|
15
|
+
StudioPlatformDescription: string;
|
|
16
|
+
MultiModalPlatform: string;
|
|
17
|
+
MultiModalPlatformDescription: string;
|
|
18
|
+
BlinkPlatform: string;
|
|
19
|
+
BlinkPlatformDescription: string;
|
|
20
|
+
BcollectionPlatform: string;
|
|
21
|
+
BcollectionPlatformDescription: string;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
export type BaseLocale = typeof enUS;
|
|
26
|
+
export default enUS;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t={name:"en-us",base:{systemActions:{userCenter:"user center",logout:"logout"},productIntroduction:{allProducts:"all Products",BasePlatform:"BASE 数据标注平台",BasePlatformDescription:"专业标注服务,打造精准数据,驱动智能变革",AdsPlatform:"自动驾驶标注平台 - BASE ADS",AdsPlatformDescription:"自动驾驶标注平台支持点云、图像等连续的数据的标注与质检,提供可编排工作流与智能辅助工具,帮助团队高效构建自动驾驶训练数据集。",StudioPlatform:"通用标注平台 - BASE Studio",StudioPlatformDescription:"通用标注平台,支持图像、音频、文本、视频等多类型数据的标注与质检。具备灵活的可编排工作流能力,提供丰富的标注工具模板和算法辅助能力,适用于计算机视觉、语音识别、NLP。",MultiModalPlatform:"多模态标注平台 - BASE MultiModal",MultiModalPlatformDescription:"多模态标注平台是一套支持多源异构数据协同标注的智能系统,覆盖图像、视频、音频、文本、点云等多种模态数据类型,支持模态间时间同步与语义关联标注。帮助团队高效构建多模态融合训练数据集。",BlinkPlatform:"Blink 数据管理平台",BlinkPlatformDescription:"集成数据资产的管理、交付、检索等全链路管理",BcollectionPlatform:"Bcollection 数据采集平台",BcollectionPlatformDescription:"全场景数据采集,全链路价值护航"}}};exports.default=t;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t={name:"zh-cn",base:{systemActions:{userCenter:"用户中心",logout:"退出"},productIntroduction:{allProducts:"全部产品",BasePlatform:"BASE 数据标注平台",BasePlatformDescription:"专业标注服务,打造精准数据,驱动智能变革",AdsPlatform:"自动驾驶标注平台 - BASE ADS",AdsPlatformDescription:"自动驾驶标注平台支持点云、图像等连续的数据的标注与质检,提供可编排工作流与智能辅助工具,帮助团队高效构建自动驾驶训练数据集。",StudioPlatform:"通用标注平台 - BASE Studio",StudioPlatformDescription:"通用标注平台,支持图像、音频、文本、视频等多类型数据的标注与质检。具备灵活的可编排工作流能力,提供丰富的标注工具模板和算法辅助能力,适用于计算机视觉、语音识别、NLP。",MultiModalPlatform:"多模态标注平台 - BASE MultiModal",MultiModalPlatformDescription:"多模态标注平台是一套支持多源异构数据协同标注的智能系统,覆盖图像、视频、音频、文本、点云等多种模态数据类型,支持模态间时间同步与语义关联标注。帮助团队高效构建多模态融合训练数据集。",BlinkPlatform:"Blink 数据管理平台",BlinkPlatformDescription:"集成数据资产的管理、交付、检索等全链路管理",BcollectionPlatform:"Bcollection 数据采集平台",BcollectionPlatformDescription:"全场景数据采集,全链路价值护航"}}};exports.default=t;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("../../../../@vueuse_shared@13.0.0_vue@3.5.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("../../../../@vueuse_shared@13.0.0_vue@3.5.22_typescript@5.7.2_/node_modules/@vueuse/shared/index.js"),o=require("vue");function p(t={}){const{inheritAttrs:r=!0}=t,e=o.shallowRef(),a=o.defineComponent({setup(c,{slots:l}){return()=>{e.value=l.default}}}),s=o.defineComponent({inheritAttrs:r,props:t.props,setup(c,{attrs:l,slots:d}){return()=>{var i;if(!e.value&&process.env.NODE_ENV!=="production")throw new Error("[VueUse] Failed to find the definition of reusable template");const n=(i=e.value)==null?void 0:i.call(e,{...t.props==null?f(l):c,$slots:d});return r&&n?.length===1?n[0]:n}}});return u.makeDestructurable({define:a,reuse:s},[a,s])}function f(t){const r={};for(const e in t)r[u.camelize(e)]=t[e];return r}exports.camelize=u.camelize;exports.makeDestructurable=u.makeDestructurable;exports.createReusableTemplate=p;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function s(e){switch(typeof e){case"number":case"symbol":return!1;case"string":return e.includes(".")||e.includes("[")||e.includes("]")}}exports.isDeepKey=s;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function e(t){return typeof t=="string"||typeof t=="symbol"?t:Object.is(t?.valueOf?.(),-0)?"-0":String(t)}exports.toKey=e;
|
package/lib/node_modules/.pnpm/es-toolkit@1.41.0/node_modules/es-toolkit/dist/compat/object/get.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../../_internal/isUnsafeProperty.js"),o=require("../_internal/isDeepKey.js"),u=require("../_internal/toKey.js"),y=require("../util/toPath.js");function f(i,r,n){if(i==null)return n;switch(typeof r){case"string":{if(t.isUnsafeProperty(r))return n;const e=i[r];return e===void 0?o.isDeepKey(r)?f(i,y.toPath(r),n):n:e}case"number":case"symbol":{typeof r=="number"&&(r=u.toKey(r));const e=i[r];return e===void 0?n:e}default:{if(Array.isArray(r))return c(i,r,n);if(Object.is(r?.valueOf(),-0)?r="-0":r=String(r),t.isUnsafeProperty(r))return n;const e=i[r];return e===void 0?n:e}}}function c(i,r,n){if(r.length===0)return n;let e=i;for(let s=0;s<r.length;s++){if(e==null||t.isUnsafeProperty(r[s]))return n;e=e[r[s]]}return e===void 0?n:e}exports.get=f;
|
package/lib/node_modules/.pnpm/es-toolkit@1.41.0/node_modules/es-toolkit/dist/compat/util/toPath.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./toString.js"),u=require("../_internal/toKey.js");function a(i){if(Array.isArray(i))return i.map(u.toKey);if(typeof i=="symbol")return[i];i=n.toString(i);const s=[],f=i.length;if(f===0)return s;let e=0,t="",l="",o=!1;for(i.charCodeAt(0)===46&&(s.push(""),e++);e<f;){const r=i[e];l?r==="\\"&&e+1<f?(e++,t+=i[e]):r===l?l="":t+=r:o?r==='"'||r==="'"?l=r:r==="]"?(o=!1,s.push(t),t=""):t+=r:r==="["?(o=!0,t&&(s.push(t),t="")):r==="."?t&&(s.push(t),t=""):t+=r,e++}return t&&s.push(t),s}exports.toPath=a;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function n(r){if(r==null)return"";if(typeof r=="string")return r;if(Array.isArray(r))return r.map(n).join(",");const t=String(r);return t==="0"&&Object.is(Number(r),-0)?"-0":t}exports.toString=n;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { CascaderProps, RadioProps, SwitchProps, ProgressProps, TabsProps } from 'naive-ui';
|
|
2
|
+
import { ExtendThemeCascader, ExtendThemeRadio, ExtendThemeSwitch, ExtendProgress, ExtendTabs } from './extendThemes';
|
|
3
|
+
export type BaseCascaderThemeOverrides = CascaderProps['themeOverrides'] & ExtendThemeCascader;
|
|
4
|
+
export type BaseRadioThemeOverrides = RadioProps['themeOverrides'] & ExtendThemeRadio;
|
|
5
|
+
export type BaseSwitchThemeOverrides = SwitchProps['themeOverrides'] & ExtendThemeSwitch;
|
|
6
|
+
export type BaseProgressThemeOverrides = ProgressProps['themeOverrides'] & ExtendProgress;
|
|
7
|
+
export type BaseTabsThemeOverrides = TabsProps['themeOverrides'] & ExtendTabs;
|
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
export type ExtendThemeCascader = {
|
|
2
|
+
columPadding?: string;
|
|
3
|
+
border?: string;
|
|
4
|
+
arrowColorActive?: string;
|
|
5
|
+
tagColor?: string;
|
|
6
|
+
tagTextColor?: string;
|
|
7
|
+
};
|
|
1
8
|
export type ExtendThemeRadio = {
|
|
2
9
|
colorActiveDisabled?: string;
|
|
3
10
|
boxShadowActiveDisabled?: string;
|
|
@@ -42,3 +49,6 @@ export type ExtendProgress = {
|
|
|
42
49
|
tipColorCircle?: string;
|
|
43
50
|
tipFontSizeCircle?: string;
|
|
44
51
|
};
|
|
52
|
+
export type ExtendTabs = {
|
|
53
|
+
tabRoundBorderRadius?: string;
|
|
54
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("vue"),n=require("../node_modules/.pnpm/lib-materials@0.0.8_typescript@5.7.2/node_modules/lib-materials/dist/lib-materials.js"),t=(e="16")=>r.h(n.SvgIcon,{icon:"operate-checked",size:e});exports.renderStepsFinishIcon=t;
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
type Primitive = null | undefined | string | number | boolean | symbol | bigint;
|
|
2
|
+
type BrowserNativeObject = Date | FileList | File | Blob | RegExp;
|
|
3
|
+
/**
|
|
4
|
+
* Check whether it is tuple
|
|
5
|
+
*
|
|
6
|
+
* 检查是否为元组
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* IsTuple<[1, 2, 3]> => true
|
|
10
|
+
* IsTuple<Array[number]> => false
|
|
11
|
+
*/
|
|
12
|
+
type IsTuple<T extends ReadonlyArray<any>> = number extends T['length'] ? false : true;
|
|
13
|
+
/**
|
|
14
|
+
* Array method key
|
|
15
|
+
*
|
|
16
|
+
* 数组方法键
|
|
17
|
+
*/
|
|
18
|
+
type ArrayMethodKey = keyof any[];
|
|
19
|
+
/**
|
|
20
|
+
* Tuple index key
|
|
21
|
+
*
|
|
22
|
+
* 元组下标键
|
|
23
|
+
*
|
|
24
|
+
* @example
|
|
25
|
+
* TupleKey<[1, 2, 3]> => '0' | '1' | '2'
|
|
26
|
+
*/
|
|
27
|
+
type TupleKey<T extends ReadonlyArray<any>> = Exclude<keyof T, ArrayMethodKey>;
|
|
28
|
+
/**
|
|
29
|
+
* Array index key
|
|
30
|
+
*
|
|
31
|
+
* 数组下标键
|
|
32
|
+
*/
|
|
33
|
+
type ArrayKey = number;
|
|
34
|
+
/**
|
|
35
|
+
* Helper type for recursively constructing paths through a type
|
|
36
|
+
*
|
|
37
|
+
* 用于通过一个类型递归构建路径的辅助类型
|
|
38
|
+
*/
|
|
39
|
+
type PathImpl<K extends string | number, V> = V extends Primitive | BrowserNativeObject ? `${K}` : `${K}` | `${K}.${Path<V>}`;
|
|
40
|
+
/**
|
|
41
|
+
* Type which collects all paths through a type
|
|
42
|
+
*
|
|
43
|
+
* 通过一个类型收集所有路径的类型
|
|
44
|
+
*
|
|
45
|
+
* @see {@link FieldPath}
|
|
46
|
+
*/
|
|
47
|
+
type Path<T> = T extends ReadonlyArray<infer V> ? IsTuple<T> extends true ? {
|
|
48
|
+
[K in TupleKey<T>]-?: PathImpl<Exclude<K, symbol>, T[K]>;
|
|
49
|
+
}[TupleKey<T>] : PathImpl<ArrayKey, V> : {
|
|
50
|
+
[K in keyof T]-?: PathImpl<Exclude<K, symbol>, T[K]>;
|
|
51
|
+
}[keyof T];
|
|
52
|
+
/**
|
|
53
|
+
* Type which collects all paths through a type
|
|
54
|
+
*
|
|
55
|
+
* 通过一个类型收集所有路径的类型
|
|
56
|
+
*
|
|
57
|
+
* @example
|
|
58
|
+
* FieldPath<{ 1: number; a: number; b: string; c: { d: number; e: string }; f: [{ value: string }]; g: { value: string }[]; h: Date; i: FileList; j: File; k: Blob; l: RegExp }> => '1' | 'a' | 'b' | 'c' | 'f' | 'g' | 'c.d' | 'c.e' | 'f.0' | 'f.0.value' | 'g.number' | 'g.number.value' | 'h' | 'i' | 'j' | 'k' | 'l'
|
|
59
|
+
*/
|
|
60
|
+
export type FieldPath<T> = T extends object ? Path<T> : never;
|
|
61
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "base6-ui",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.16",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "./lib/index.js",
|
|
6
6
|
"module": "./es/index.mjs",
|
|
@@ -26,6 +26,7 @@
|
|
|
26
26
|
"vue": "^3.5.14"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
+
"@vueuse/core": "13.0.0",
|
|
29
30
|
"es-toolkit": "^1.41.0",
|
|
30
31
|
"lib-materials": "^0.0.8",
|
|
31
32
|
"naive-ui": "^2.43.1"
|
|
@@ -43,6 +44,7 @@
|
|
|
43
44
|
"vite-plugin-dts": "^4.5.4",
|
|
44
45
|
"vite-plugin-eslint": "^1.8.1",
|
|
45
46
|
"vite-plugin-svg-icons": "^2.0.1",
|
|
47
|
+
"vue-eslint-parser": "10.1.1",
|
|
46
48
|
"vite-svg-loader": "^5.1.0"
|
|
47
49
|
},
|
|
48
50
|
"scripts": {
|
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
import { NButton as F, NDropdown as k } from "naive-ui";
|
|
2
|
-
import { defineComponent as b, computed as c, h as u, createElementBlock as C, openBlock as x, createVNode as o, withCtx as r, unref as t, createElementVNode as m, toDisplayString as S } from "vue";
|
|
3
|
-
import { useAnimationHook as A } from "../../../../hooks/useAnimationHook.mjs";
|
|
4
|
-
import B from "../hooks/useBaseLayoutContext.mjs";
|
|
5
|
-
import { SvgIcon as n } from "../../../../node_modules/.pnpm/lib-materials@0.0.8_typescript@5.7.2/node_modules/lib-materials/dist/lib-materials.mjs";
|
|
6
|
-
const z = { class: "base-layout-header-action-container" }, E = { class: "user-trigger" }, N = { class: "name" }, V = /* @__PURE__ */ b({
|
|
7
|
-
name: "GlobalHeaderAction",
|
|
8
|
-
__name: "action",
|
|
9
|
-
setup(T) {
|
|
10
|
-
const { isDarkMode: e, userActionOption: l, userInfo: d, toggleSystemTheme: p, toggleSystemLang: _, toggleUserItem: g } = B(), { toggleAnimationByClipCircle: v } = A(), a = c(() => ({
|
|
11
|
-
color: e.value ? "#222327" : "#FFF",
|
|
12
|
-
colorHover: e.value ? "#222327" : "#FFF",
|
|
13
|
-
colorFocus: e.value ? "#222327" : "#FFF",
|
|
14
|
-
textColor: e.value ? "rgba(255,255,255,0.7)" : "#56647A",
|
|
15
|
-
border: `1px solid ${e.value ? "#2F3A4B " : "#E0E6EF"}`
|
|
16
|
-
})), h = c(() => l && l.length ? l : [
|
|
17
|
-
{
|
|
18
|
-
label: "用户中心",
|
|
19
|
-
key: "user-center",
|
|
20
|
-
icon: () => u(n, { icon: "layout-user-center", size: "16" })
|
|
21
|
-
},
|
|
22
|
-
{
|
|
23
|
-
label: "退出账号",
|
|
24
|
-
key: "logout",
|
|
25
|
-
icon: () => u(n, { icon: "layout-logout", size: "16" })
|
|
26
|
-
}
|
|
27
|
-
]), f = (s) => {
|
|
28
|
-
v(s, e.value, p);
|
|
29
|
-
};
|
|
30
|
-
return (s, w) => {
|
|
31
|
-
const i = F, y = k;
|
|
32
|
-
return x(), C("div", z, [
|
|
33
|
-
o(i, {
|
|
34
|
-
"theme-overrides": a.value,
|
|
35
|
-
onClick: f
|
|
36
|
-
}, {
|
|
37
|
-
default: r(() => [
|
|
38
|
-
o(t(n), {
|
|
39
|
-
icon: "layout-theme",
|
|
40
|
-
size: "16"
|
|
41
|
-
})
|
|
42
|
-
]),
|
|
43
|
-
_: 1
|
|
44
|
-
}, 8, ["theme-overrides"]),
|
|
45
|
-
o(i, {
|
|
46
|
-
"theme-overrides": a.value,
|
|
47
|
-
onClick: t(_)
|
|
48
|
-
}, {
|
|
49
|
-
default: r(() => [
|
|
50
|
-
o(t(n), {
|
|
51
|
-
icon: "layout-lang",
|
|
52
|
-
size: "16"
|
|
53
|
-
})
|
|
54
|
-
]),
|
|
55
|
-
_: 1
|
|
56
|
-
}, 8, ["theme-overrides", "onClick"]),
|
|
57
|
-
o(y, {
|
|
58
|
-
placement: "bottom",
|
|
59
|
-
trigger: "click",
|
|
60
|
-
options: h.value,
|
|
61
|
-
onSelect: t(g)
|
|
62
|
-
}, {
|
|
63
|
-
default: r(() => [
|
|
64
|
-
m("div", E, [
|
|
65
|
-
o(i, { text: "" }, {
|
|
66
|
-
default: r(() => [
|
|
67
|
-
o(t(n), {
|
|
68
|
-
icon: `layout-user-${t(e) ? "dark" : "light"}`,
|
|
69
|
-
size: "32"
|
|
70
|
-
}, null, 8, ["icon"]),
|
|
71
|
-
m("span", N, S(t(d)?.name), 1)
|
|
72
|
-
]),
|
|
73
|
-
_: 1
|
|
74
|
-
})
|
|
75
|
-
])
|
|
76
|
-
]),
|
|
77
|
-
_: 1
|
|
78
|
-
}, 8, ["options", "onSelect"])
|
|
79
|
-
]);
|
|
80
|
-
};
|
|
81
|
-
}
|
|
82
|
-
});
|
|
83
|
-
export {
|
|
84
|
-
V as default
|
|
85
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./action.vue2.js");;/* empty css */const t=require("../../../../_virtual/_plugin-vue_export-helper.js"),u=t.default(e.default,[["__scopeId","data-v-5362071c"]]);exports.default=u;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const l=require("naive-ui"),e=require("vue"),p=require("../../../../hooks/useAnimationHook.js"),h=require("../hooks/useBaseLayoutContext.js"),t=require("../../../../node_modules/.pnpm/lib-materials@0.0.8_typescript@5.7.2/node_modules/lib-materials/dist/lib-materials.js"),f={class:"base-layout-header-action-container"},y={class:"user-trigger"},S={class:"name"},b=e.defineComponent({name:"GlobalHeaderAction",__name:"action",setup(k){const{isDarkMode:o,userActionOption:n,userInfo:s,toggleSystemTheme:a,toggleSystemLang:u,toggleUserItem:d}=h.default(),{toggleAnimationByClipCircle:m}=p.useAnimationHook(),i=e.computed(()=>({color:o.value?"#222327":"#FFF",colorHover:o.value?"#222327":"#FFF",colorFocus:o.value?"#222327":"#FFF",textColor:o.value?"rgba(255,255,255,0.7)":"#56647A",border:`1px solid ${o.value?"#2F3A4B ":"#E0E6EF"}`})),g=e.computed(()=>n&&n.length?n:[{label:"用户中心",key:"user-center",icon:()=>e.h(t.SvgIcon,{icon:"layout-user-center",size:"16"})},{label:"退出账号",key:"logout",icon:()=>e.h(t.SvgIcon,{icon:"layout-logout",size:"16"})}]),v=r=>{m(r,o.value,a)};return(r,C)=>{const c=l.NButton,_=l.NDropdown;return e.openBlock(),e.createElementBlock("div",f,[e.createVNode(c,{"theme-overrides":i.value,onClick:v},{default:e.withCtx(()=>[e.createVNode(e.unref(t.SvgIcon),{icon:"layout-theme",size:"16"})]),_:1},8,["theme-overrides"]),e.createVNode(c,{"theme-overrides":i.value,onClick:e.unref(u)},{default:e.withCtx(()=>[e.createVNode(e.unref(t.SvgIcon),{icon:"layout-lang",size:"16"})]),_:1},8,["theme-overrides","onClick"]),e.createVNode(_,{placement:"bottom",trigger:"click",options:g.value,onSelect:e.unref(d)},{default:e.withCtx(()=>[e.createElementVNode("div",y,[e.createVNode(c,{text:""},{default:e.withCtx(()=>[e.createVNode(e.unref(t.SvgIcon),{icon:`layout-user-${e.unref(o)?"dark":"light"}`,size:"32"},null,8,["icon"]),e.createElementVNode("span",S,e.toDisplayString(e.unref(s)?.name),1)]),_:1})])]),_:1},8,["options","onSelect"])])}}});exports.default=b;
|
|
File without changes
|