base6-ui 1.1.5 → 1.1.6
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/BaseLayout/AsideMenu/index.vue.d.ts +4 -0
- package/dist/components/BaseLayout/Default/constants.d.ts +5 -0
- package/dist/components/BaseLayout/Default/hooks/useBaseLayoutContext.d.ts +3 -0
- package/dist/components/BaseLayout/Default/hooks/useLogo.d.ts +5 -0
- package/dist/components/BaseLayout/Default/index.vue.d.ts +65 -0
- package/dist/components/BaseLayout/Default/layoutFooter/index.vue.d.ts +2 -0
- package/dist/components/BaseLayout/Default/layoutHeader/action.vue.d.ts +2 -0
- package/dist/components/BaseLayout/Default/layoutHeader/index.vue.d.ts +2 -0
- package/dist/components/BaseLayout/Default/layoutHeader/title.vue.d.ts +2 -0
- package/dist/components/BaseLayout/Default/layoutMenu/components/first-level-menu.vue.d.ts +32 -0
- package/dist/components/BaseLayout/Default/layoutMenu/index.vue.d.ts +2 -0
- package/dist/components/BaseLayout/Default/layoutMenu/modules/horizontalMenu.vue.d.ts +2 -0
- package/dist/components/BaseLayout/Default/layoutMenu/modules/horizontalMixMenu.vue.d.ts +2 -0
- package/dist/components/BaseLayout/Default/layoutMenu/modules/horizontalMixReversedMenu.vue.d.ts +2 -0
- package/dist/components/BaseLayout/Default/layoutMenu/modules/verticalMenu.vue.d.ts +2 -0
- package/dist/components/BaseLayout/Default/layoutMenu/modules/verticalMixMenu.vue.d.ts +2 -0
- package/dist/components/BaseLayout/Default/layoutSlider/index.vue.d.ts +2 -0
- package/dist/components/BaseLayout/Default/layoutTab/index.vue.d.ts +2 -0
- package/dist/components/BaseLayout/Default/options.d.ts +3 -0
- package/dist/components/BaseLayout/Default/type.d.ts +41 -0
- package/dist/components/BaseLayout/Header/index.vue.d.ts +19 -0
- package/dist/components/BaseLayout/components/WrapContent.vue.d.ts +22 -0
- package/dist/components/BaseLayout/components/WrapFooter.vue.d.ts +24 -0
- package/dist/components/BaseLayout/components/WrapHeader.vue.d.ts +24 -0
- package/dist/components/BaseLayout/components/WrapSlider.vue.d.ts +24 -0
- package/dist/components/BaseLayout/components/WrapTab.vue.d.ts +24 -0
- package/dist/components/BaseLayout/constants.d.ts +1 -0
- package/dist/components/BaseLayout/index.d.ts +6 -0
- package/dist/components/BaseLayout/index.vue.d.ts +49 -0
- package/dist/components/BaseLayout/layoutCssVar.d.ts +4 -0
- package/dist/components/BaseLayout/options.d.ts +2 -0
- package/dist/components/BaseLayout/type.d.ts +52 -0
- package/dist/components/BaseProductIntroduction/constants.d.ts +2 -0
- package/dist/components/BaseProductIntroduction/cssVar.d.ts +15 -0
- package/dist/components/BaseProductIntroduction/index.d.ts +1 -0
- package/dist/components/BaseProductIntroduction/index.vue.d.ts +6 -0
- package/dist/components/BaseProductIntroduction/type.d.ts +5 -0
- package/dist/components/index.d.ts +1 -0
- package/dist/config/themes/common/light.d.ts +2 -0
- package/dist/config/themes/components/divider/light.d.ts +2 -0
- package/dist/config/themes/components/layout/dark.d.ts +1 -0
- package/dist/config/themes/components/layout/light.d.ts +1 -0
- package/dist/config/themes/token/light.d.ts +2 -0
- package/dist/globalMethods/index.d.ts +2 -0
- package/dist/hooks/useBoolean.d.ts +7 -0
- package/dist/hooks/useContext.d.ts +6 -0
- package/dist/hooks/useMenu.d.ts +34 -0
- package/dist/index.css +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.umd.js +1 -1
- package/dist/types/utils.d.ts +3 -0
- package/es/_virtual/virtual_svg-icons-register.mjs +4 -4
- package/es/assets/cover/base-ads.png.mjs +4 -0
- package/es/assets/cover/base-multimodal.png.mjs +4 -0
- package/es/assets/cover/base-studio.png.mjs +4 -0
- package/es/assets/logo/logo-dark-full.svg.mjs +32 -0
- package/es/assets/logo/logo-light-full.svg.mjs +31 -0
- package/es/components/BaseDataTable/index.vue.mjs +2 -2
- package/es/components/BaseDataTable/index.vue2.mjs +1 -1
- package/es/components/BaseDialog/options.mjs +1 -1
- package/es/components/BaseLayout/ASide/index.vue.mjs +3 -3
- package/es/components/BaseLayout/AsideMenu/index.vue.d.ts +4 -0
- package/es/components/BaseLayout/AsideMenu/index.vue.mjs +7 -0
- package/es/components/BaseLayout/AsideMenu/index.vue2.mjs +66 -0
- package/es/components/BaseLayout/Default/constants.d.ts +5 -0
- package/es/components/BaseLayout/Default/constants.mjs +5 -0
- package/es/components/BaseLayout/Default/hooks/useBaseLayoutContext.d.ts +3 -0
- package/es/components/BaseLayout/Default/hooks/useBaseLayoutContext.mjs +11 -0
- package/es/components/BaseLayout/Default/hooks/useLogo.d.ts +5 -0
- package/es/components/BaseLayout/Default/hooks/useLogo.mjs +19 -0
- package/es/components/BaseLayout/Default/index.vue.d.ts +65 -0
- package/es/components/BaseLayout/Default/index.vue.mjs +144 -0
- package/es/components/BaseLayout/Default/layoutFooter/index.vue.d.ts +2 -0
- package/es/components/BaseLayout/Default/layoutFooter/index.vue.mjs +16 -0
- package/es/components/BaseLayout/Default/layoutHeader/action.vue.d.ts +2 -0
- package/es/components/BaseLayout/Default/layoutHeader/action.vue.mjs +7 -0
- package/es/components/BaseLayout/Default/layoutHeader/action.vue2.mjs +82 -0
- package/es/components/BaseLayout/Default/layoutHeader/index.vue.d.ts +2 -0
- package/es/components/BaseLayout/Default/layoutHeader/index.vue.mjs +31 -0
- package/es/components/BaseLayout/Default/layoutHeader/index.vue2.mjs +4 -0
- package/es/components/BaseLayout/Default/layoutHeader/title.vue.d.ts +2 -0
- package/es/components/BaseLayout/Default/layoutHeader/title.vue.mjs +7 -0
- package/es/components/BaseLayout/Default/layoutHeader/title.vue2.mjs +28 -0
- package/es/components/BaseLayout/Default/layoutMenu/components/first-level-menu.vue.d.ts +32 -0
- package/es/components/BaseLayout/Default/layoutMenu/components/first-level-menu.vue.mjs +7 -0
- package/es/components/BaseLayout/Default/layoutMenu/components/first-level-menu.vue2.mjs +65 -0
- package/es/components/BaseLayout/Default/layoutMenu/index.vue.d.ts +2 -0
- package/es/components/BaseLayout/Default/layoutMenu/index.vue.mjs +4 -0
- package/es/components/BaseLayout/Default/layoutMenu/index.vue2.mjs +23 -0
- package/es/components/BaseLayout/Default/layoutMenu/modules/horizontalMenu.vue.d.ts +2 -0
- package/es/components/BaseLayout/Default/layoutMenu/modules/horizontalMenu.vue.mjs +30 -0
- package/es/components/BaseLayout/Default/layoutMenu/modules/horizontalMenu.vue2.mjs +4 -0
- package/es/components/BaseLayout/Default/layoutMenu/modules/horizontalMixMenu.vue.d.ts +2 -0
- package/es/components/BaseLayout/Default/layoutMenu/modules/horizontalMixMenu.vue.mjs +53 -0
- package/es/components/BaseLayout/Default/layoutMenu/modules/horizontalMixMenu.vue2.mjs +4 -0
- package/es/components/BaseLayout/Default/layoutMenu/modules/horizontalMixReversedMenu.vue.d.ts +2 -0
- package/es/components/BaseLayout/Default/layoutMenu/modules/horizontalMixReversedMenu.vue.mjs +73 -0
- package/es/components/BaseLayout/Default/layoutMenu/modules/horizontalMixReversedMenu.vue2.mjs +4 -0
- package/es/components/BaseLayout/Default/layoutMenu/modules/verticalMenu.vue.d.ts +2 -0
- package/es/components/BaseLayout/Default/layoutMenu/modules/verticalMenu.vue.mjs +39 -0
- package/es/components/BaseLayout/Default/layoutMenu/modules/verticalMenu.vue2.mjs +4 -0
- package/es/components/BaseLayout/Default/layoutMenu/modules/verticalMixMenu.vue.d.ts +2 -0
- package/es/components/BaseLayout/Default/layoutMenu/modules/verticalMixMenu.vue.mjs +100 -0
- package/es/components/BaseLayout/Default/layoutMenu/modules/verticalMixMenu.vue2.mjs +4 -0
- package/es/components/BaseLayout/Default/layoutSlider/index.vue.d.ts +2 -0
- package/es/components/BaseLayout/Default/layoutSlider/index.vue.mjs +27 -0
- package/es/components/BaseLayout/Default/layoutSlider/index.vue2.mjs +4 -0
- package/es/components/BaseLayout/Default/layoutTab/index.vue.d.ts +2 -0
- package/es/components/BaseLayout/Default/layoutTab/index.vue.mjs +16 -0
- package/es/components/BaseLayout/Default/options.d.ts +3 -0
- package/es/components/BaseLayout/Default/options.mjs +35 -0
- package/es/components/BaseLayout/Default/type.d.ts +41 -0
- package/es/components/BaseLayout/Header/index.vue.d.ts +19 -0
- package/es/components/BaseLayout/Header/index.vue.mjs +20 -0
- package/es/components/BaseLayout/components/WrapContent.vue.d.ts +22 -0
- package/es/components/BaseLayout/components/WrapContent.vue.mjs +23 -0
- package/es/components/BaseLayout/components/WrapContent.vue2.mjs +4 -0
- package/es/components/BaseLayout/components/WrapFooter.vue.d.ts +24 -0
- package/es/components/BaseLayout/components/WrapFooter.vue.mjs +33 -0
- package/es/components/BaseLayout/components/WrapFooter.vue2.mjs +4 -0
- package/es/components/BaseLayout/components/WrapHeader.vue.d.ts +24 -0
- package/es/components/BaseLayout/components/WrapHeader.vue.mjs +7 -0
- package/es/components/BaseLayout/components/WrapHeader.vue2.mjs +30 -0
- package/es/components/BaseLayout/components/WrapSlider.vue.d.ts +24 -0
- package/es/components/BaseLayout/components/WrapSlider.vue.mjs +24 -0
- package/es/components/BaseLayout/components/WrapSlider.vue2.mjs +4 -0
- package/es/components/BaseLayout/components/WrapTab.vue.d.ts +24 -0
- package/es/components/BaseLayout/components/WrapTab.vue.mjs +34 -0
- package/es/components/BaseLayout/components/WrapTab.vue2.mjs +4 -0
- package/es/components/BaseLayout/constants.d.ts +1 -0
- package/es/components/BaseLayout/constants.mjs +4 -0
- package/es/components/BaseLayout/index.d.ts +6 -0
- package/es/components/BaseLayout/index.module.css.mjs +24 -0
- package/es/components/BaseLayout/index.vue.d.ts +49 -0
- package/es/components/BaseLayout/index.vue.mjs +7 -0
- package/es/components/BaseLayout/index.vue2.mjs +124 -0
- package/es/components/BaseLayout/layoutCssVar.d.ts +4 -0
- package/es/components/BaseLayout/layoutCssVar.mjs +27 -0
- package/es/components/BaseLayout/options.d.ts +2 -0
- package/es/components/BaseLayout/options.mjs +25 -0
- package/es/components/BaseLayout/type.d.ts +52 -0
- package/es/components/BaseProductIntroduction/constants.d.ts +2 -0
- package/es/components/BaseProductIntroduction/constants.mjs +7 -0
- package/es/components/BaseProductIntroduction/cssVar.d.ts +15 -0
- package/es/components/BaseProductIntroduction/cssVar.mjs +80 -0
- package/es/components/BaseProductIntroduction/index.d.ts +1 -0
- package/es/components/BaseProductIntroduction/index.vue.d.ts +6 -0
- package/es/components/BaseProductIntroduction/index.vue.mjs +8 -0
- package/es/components/BaseProductIntroduction/index.vue2.mjs +170 -0
- package/es/components/BaseProductIntroduction/type.d.ts +5 -0
- package/es/components/BaseSelect/index.vue.mjs +8 -5
- package/es/components/BaseSelect/index.vue3.mjs +5 -0
- package/es/components/index.d.ts +1 -0
- package/es/config/themes/common/light.d.ts +2 -0
- package/es/config/themes/common/light.mjs +30 -0
- package/es/config/themes/components/alert/light.mjs +3 -2
- package/es/config/themes/components/button/common.mjs +4 -4
- package/es/config/themes/components/button/dark.mjs +7 -4
- package/es/config/themes/components/button/light.mjs +1 -0
- package/es/config/themes/components/dataTable/dark.mjs +2 -1
- package/es/config/themes/components/dataTable/light.mjs +2 -1
- package/es/config/themes/components/divider/light.d.ts +2 -0
- package/es/config/themes/components/divider/light.mjs +7 -0
- package/es/config/themes/components/input/common.mjs +1 -0
- package/es/config/themes/components/input/dark.mjs +3 -2
- package/es/config/themes/components/layout/dark.d.ts +1 -0
- package/es/config/themes/components/layout/dark.mjs +3 -2
- package/es/config/themes/components/layout/light.d.ts +1 -0
- package/es/config/themes/components/layout/light.mjs +3 -2
- package/es/config/themes/components/menu/dark.mjs +14 -5
- package/es/config/themes/components/menu/light.mjs +11 -2
- package/es/config/themes/index.mjs +8 -6
- package/es/config/themes/light.mjs +40 -36
- package/es/config/themes/token/light.d.ts +2 -0
- package/es/config/themes/token/light.mjs +3 -1
- package/es/globalMethods/index.d.ts +2 -0
- package/es/globalMethods/index.mjs +7 -5
- package/es/hooks/useBoolean.d.ts +7 -0
- package/es/hooks/useBoolean.mjs +26 -0
- package/es/hooks/useContext.d.ts +6 -0
- package/es/hooks/useContext.mjs +30 -0
- package/es/hooks/useMenu.d.ts +34 -0
- package/es/hooks/useMenu.mjs +78 -0
- package/es/index.css +1 -1
- package/es/index.d.ts +1 -0
- package/es/index.mjs +53 -38
- package/es/node_modules/.pnpm/@vueuse_core@13.0.0_vue@3.5.13_typescript@5.7.2_/node_modules/@vueuse/core/index.mjs +43 -0
- package/es/node_modules/.pnpm/@vueuse_shared@13.0.0_vue@3.5.13_typescript@5.7.2_/node_modules/@vueuse/shared/index.mjs +29 -0
- package/es/types/utils.d.ts +3 -0
- package/lib/_virtual/_plugin-vue_export-helper.js +1 -1
- package/lib/_virtual/virtual_svg-icons-register.js +1 -1
- package/lib/assets/cover/base-ads.png.js +1 -0
- package/lib/assets/cover/base-multimodal.png.js +1 -0
- package/lib/assets/cover/base-studio.png.js +1 -0
- package/lib/assets/logo/logo-dark-full.svg.js +1 -0
- package/lib/assets/logo/logo-light-full.svg.js +1 -0
- package/lib/components/AppProvider/index.vue.js +1 -1
- package/lib/components/AppProvider/index.vue2.js +1 -1
- package/lib/components/BaseButton/index.vue.js +1 -1
- package/lib/components/BaseButton/index.vue2.js +1 -1
- package/lib/components/BaseDataTable/index.vue.js +1 -1
- package/lib/components/BaseDataTable/index.vue2.js +1 -1
- package/lib/components/BaseDialog/index.vue.js +1 -1
- package/lib/components/BaseDialog/index.vue2.js +1 -1
- package/lib/components/BaseDialog/options.js +1 -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/AsideMenu/index.vue.d.ts +4 -0
- package/lib/components/BaseLayout/AsideMenu/index.vue.js +1 -0
- package/lib/components/BaseLayout/AsideMenu/index.vue2.js +1 -0
- package/lib/components/BaseLayout/Default/constants.d.ts +5 -0
- package/lib/components/BaseLayout/Default/constants.js +1 -0
- package/lib/components/BaseLayout/Default/hooks/useBaseLayoutContext.d.ts +3 -0
- package/lib/components/BaseLayout/Default/hooks/useBaseLayoutContext.js +1 -0
- package/lib/components/BaseLayout/Default/hooks/useLogo.d.ts +5 -0
- package/lib/components/BaseLayout/Default/hooks/useLogo.js +1 -0
- package/lib/components/BaseLayout/Default/index.vue.d.ts +65 -0
- package/lib/components/BaseLayout/Default/index.vue.js +1 -0
- package/lib/components/BaseLayout/Default/index.vue2.js +1 -0
- package/lib/components/BaseLayout/Default/layoutFooter/index.vue.d.ts +2 -0
- package/lib/components/BaseLayout/Default/layoutFooter/index.vue.js +1 -0
- package/lib/components/BaseLayout/Default/layoutHeader/action.vue.d.ts +2 -0
- package/lib/components/BaseLayout/Default/layoutHeader/action.vue.js +1 -0
- package/lib/components/BaseLayout/Default/layoutHeader/action.vue2.js +1 -0
- package/lib/components/BaseLayout/Default/layoutHeader/index.vue.d.ts +2 -0
- package/lib/components/BaseLayout/Default/layoutHeader/index.vue.js +1 -0
- package/lib/components/BaseLayout/Default/layoutHeader/index.vue2.js +1 -0
- package/lib/components/BaseLayout/Default/layoutHeader/title.vue.d.ts +2 -0
- package/lib/components/BaseLayout/Default/layoutHeader/title.vue.js +1 -0
- package/lib/components/BaseLayout/Default/layoutHeader/title.vue2.js +1 -0
- package/lib/components/BaseLayout/Default/layoutMenu/components/first-level-menu.vue.d.ts +32 -0
- package/lib/components/BaseLayout/Default/layoutMenu/components/first-level-menu.vue.js +1 -0
- package/lib/components/BaseLayout/Default/layoutMenu/components/first-level-menu.vue2.js +1 -0
- package/lib/components/BaseLayout/Default/layoutMenu/index.vue.d.ts +2 -0
- package/lib/components/BaseLayout/Default/layoutMenu/index.vue.js +1 -0
- package/lib/components/BaseLayout/Default/layoutMenu/index.vue2.js +1 -0
- package/lib/components/BaseLayout/Default/layoutMenu/modules/horizontalMenu.vue.d.ts +2 -0
- package/lib/components/BaseLayout/Default/layoutMenu/modules/horizontalMenu.vue.js +1 -0
- package/lib/components/BaseLayout/Default/layoutMenu/modules/horizontalMenu.vue2.js +1 -0
- package/lib/components/BaseLayout/Default/layoutMenu/modules/horizontalMixMenu.vue.d.ts +2 -0
- package/lib/components/BaseLayout/Default/layoutMenu/modules/horizontalMixMenu.vue.js +1 -0
- package/lib/components/BaseLayout/Default/layoutMenu/modules/horizontalMixMenu.vue2.js +1 -0
- package/lib/components/BaseLayout/Default/layoutMenu/modules/horizontalMixReversedMenu.vue.d.ts +2 -0
- package/lib/components/BaseLayout/Default/layoutMenu/modules/horizontalMixReversedMenu.vue.js +1 -0
- package/lib/components/BaseLayout/Default/layoutMenu/modules/horizontalMixReversedMenu.vue2.js +1 -0
- package/lib/components/BaseLayout/Default/layoutMenu/modules/verticalMenu.vue.d.ts +2 -0
- package/lib/components/BaseLayout/Default/layoutMenu/modules/verticalMenu.vue.js +1 -0
- package/lib/components/BaseLayout/Default/layoutMenu/modules/verticalMenu.vue2.js +1 -0
- package/lib/components/BaseLayout/Default/layoutMenu/modules/verticalMixMenu.vue.d.ts +2 -0
- package/lib/components/BaseLayout/Default/layoutMenu/modules/verticalMixMenu.vue.js +1 -0
- package/lib/components/BaseLayout/Default/layoutMenu/modules/verticalMixMenu.vue2.js +1 -0
- package/lib/components/BaseLayout/Default/layoutSlider/index.vue.d.ts +2 -0
- package/lib/components/BaseLayout/Default/layoutSlider/index.vue.js +1 -0
- package/lib/components/BaseLayout/Default/layoutSlider/index.vue2.js +1 -0
- package/lib/components/BaseLayout/Default/layoutTab/index.vue.d.ts +2 -0
- package/lib/components/BaseLayout/Default/layoutTab/index.vue.js +1 -0
- package/lib/components/BaseLayout/Default/options.d.ts +3 -0
- package/lib/components/BaseLayout/Default/options.js +1 -0
- package/lib/components/BaseLayout/Default/type.d.ts +41 -0
- package/lib/components/BaseLayout/Header/index.vue.d.ts +19 -0
- package/lib/components/BaseLayout/Header/index.vue.js +1 -0
- package/lib/components/BaseLayout/components/WrapContent.vue.d.ts +22 -0
- package/lib/components/BaseLayout/components/WrapContent.vue.js +1 -0
- package/lib/components/BaseLayout/components/WrapContent.vue2.js +1 -0
- package/lib/components/BaseLayout/components/WrapFooter.vue.d.ts +24 -0
- package/lib/components/BaseLayout/components/WrapFooter.vue.js +1 -0
- package/lib/components/BaseLayout/components/WrapFooter.vue2.js +1 -0
- package/lib/components/BaseLayout/components/WrapHeader.vue.d.ts +24 -0
- package/lib/components/BaseLayout/components/WrapHeader.vue.js +1 -0
- package/lib/components/BaseLayout/components/WrapHeader.vue2.js +1 -0
- package/lib/components/BaseLayout/components/WrapSlider.vue.d.ts +24 -0
- package/lib/components/BaseLayout/components/WrapSlider.vue.js +1 -0
- package/lib/components/BaseLayout/components/WrapSlider.vue2.js +1 -0
- package/lib/components/BaseLayout/components/WrapTab.vue.d.ts +24 -0
- package/lib/components/BaseLayout/components/WrapTab.vue.js +1 -0
- package/lib/components/BaseLayout/components/WrapTab.vue2.js +1 -0
- package/lib/components/BaseLayout/constants.d.ts +1 -0
- package/lib/components/BaseLayout/constants.js +1 -0
- package/lib/components/BaseLayout/index.d.ts +6 -0
- package/lib/components/BaseLayout/index.module.css.js +1 -0
- package/lib/components/BaseLayout/index.vue.d.ts +49 -0
- package/lib/components/BaseLayout/index.vue.js +1 -0
- package/lib/components/BaseLayout/index.vue2.js +1 -0
- package/lib/components/BaseLayout/layoutCssVar.d.ts +4 -0
- package/lib/components/BaseLayout/layoutCssVar.js +1 -0
- package/lib/components/BaseLayout/options.d.ts +2 -0
- package/lib/components/BaseLayout/options.js +1 -0
- package/lib/components/BaseLayout/type.d.ts +52 -0
- package/lib/components/BaseProductIntroduction/constants.d.ts +2 -0
- package/lib/components/BaseProductIntroduction/constants.js +1 -0
- package/lib/components/BaseProductIntroduction/cssVar.d.ts +15 -0
- package/lib/components/BaseProductIntroduction/cssVar.js +1 -0
- package/lib/components/BaseProductIntroduction/index.d.ts +1 -0
- package/lib/components/BaseProductIntroduction/index.vue.d.ts +6 -0
- package/lib/components/BaseProductIntroduction/index.vue.js +1 -0
- package/lib/components/BaseProductIntroduction/index.vue2.js +1 -0
- package/lib/components/BaseProductIntroduction/type.d.ts +5 -0
- package/lib/components/BaseProgress/index.js +1 -1
- package/lib/components/BaseRadio/index.vue.js +1 -1
- package/lib/components/BaseRadio/index.vue2.js +1 -1
- package/lib/components/BaseSelect/index.vue.js +1 -1
- package/lib/components/BaseSelect/index.vue3.js +1 -0
- package/lib/components/BaseSlider/index.vue.js +1 -1
- package/lib/components/BaseSlider/index.vue2.js +1 -1
- package/lib/components/BaseSwitch/index.vue.js +1 -1
- package/lib/components/BaseSwitch/index.vue2.js +1 -1
- package/lib/components/index.d.ts +1 -0
- package/lib/config/themes/color/dark.js +1 -1
- package/lib/config/themes/color/light.js +1 -1
- package/lib/config/themes/common/light.d.ts +2 -0
- package/lib/config/themes/common/light.js +1 -0
- package/lib/config/themes/components/alert/dark.js +1 -1
- package/lib/config/themes/components/alert/light.js +1 -1
- package/lib/config/themes/components/baseComponent/dark.js +1 -1
- 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/button/dark.js +1 -1
- package/lib/config/themes/components/button/light.js +1 -1
- package/lib/config/themes/components/card/dark.js +1 -1
- package/lib/config/themes/components/card/light.js +1 -1
- package/lib/config/themes/components/charts/dark.js +1 -1
- package/lib/config/themes/components/charts/light.js +1 -1
- package/lib/config/themes/components/checkbox/dark.js +1 -1
- package/lib/config/themes/components/checkbox/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/datePicker/dark.js +1 -1
- package/lib/config/themes/components/datePicker/light.js +1 -1
- package/lib/config/themes/components/dialog/dark.js +1 -1
- package/lib/config/themes/components/dialog/light.js +1 -1
- package/lib/config/themes/components/divider/light.d.ts +2 -0
- package/lib/config/themes/components/divider/light.js +1 -0
- package/lib/config/themes/components/dropdown/dark.js +1 -1
- package/lib/config/themes/components/dropdown/light.js +1 -1
- package/lib/config/themes/components/form/dark.js +1 -1
- package/lib/config/themes/components/form/light.js +1 -1
- package/lib/config/themes/components/input/common.js +1 -1
- package/lib/config/themes/components/input/dark.js +1 -1
- package/lib/config/themes/components/input/light.js +1 -1
- package/lib/config/themes/components/inputNumber/dark.js +1 -1
- package/lib/config/themes/components/inputNumber/light.js +1 -1
- package/lib/config/themes/components/layout/dark.d.ts +1 -0
- package/lib/config/themes/components/layout/dark.js +1 -1
- package/lib/config/themes/components/layout/light.d.ts +1 -0
- package/lib/config/themes/components/layout/light.js +1 -1
- package/lib/config/themes/components/menu/dark.js +1 -1
- package/lib/config/themes/components/menu/light.js +1 -1
- package/lib/config/themes/components/progress/dark.js +1 -1
- package/lib/config/themes/components/progress/light.js +1 -1
- package/lib/config/themes/components/radio/dark.js +1 -1
- package/lib/config/themes/components/radio/light.js +1 -1
- 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/dark.js +1 -1
- package/lib/config/themes/components/switch/light.js +1 -1
- package/lib/config/themes/components/tag/dark.js +1 -1
- package/lib/config/themes/components/tag/light.js +1 -1
- package/lib/config/themes/components/transfer/dark.js +1 -1
- package/lib/config/themes/components/transfer/light.js +1 -1
- package/lib/config/themes/index.js +1 -1
- package/lib/config/themes/light.js +1 -1
- package/lib/config/themes/token/dark.js +1 -1
- package/lib/config/themes/token/light.d.ts +2 -0
- package/lib/config/themes/token/light.js +1 -1
- package/lib/globalMethods/index.d.ts +2 -0
- package/lib/globalMethods/index.js +1 -1
- package/lib/globalMethods/modules/confirmTip.js +1 -1
- package/lib/globalMethods/modules/message.js +1 -1
- package/lib/hooks/useBoolean.d.ts +7 -0
- package/lib/hooks/useBoolean.js +1 -0
- package/lib/hooks/useContext.d.ts +6 -0
- package/lib/hooks/useContext.js +1 -0
- package/lib/hooks/useMenu.d.ts +34 -0
- package/lib/hooks/useMenu.js +1 -0
- package/lib/hooks/useNaiveConfigProvideContext.js +1 -1
- package/lib/index.css +1 -1
- package/lib/index.d.ts +1 -0
- package/lib/index.js +1 -1
- package/lib/node_modules/.pnpm/@vueuse_core@13.0.0_vue@3.5.13_typescript@5.7.2_/node_modules/@vueuse/core/index.js +1 -0
- package/lib/node_modules/.pnpm/@vueuse_shared@13.0.0_vue@3.5.13_typescript@5.7.2_/node_modules/@vueuse/shared/index.js +1 -0
- package/lib/types/utils.d.ts +3 -0
- package/package.json +1 -1
- package/readme.md +18 -19
- package/lib/components/BaseSelect/index.vue2.js +0 -1
- /package/es/components/{BaseSelect → BaseLayout/Default}/index.vue2.mjs +0 -0
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { DropdownOption } from 'naive-ui';
|
|
2
|
+
import { BaseDefaultLayoutProps, BaseDefaultLayoutMode } from './type';
|
|
3
|
+
declare function __VLS_template(): {
|
|
4
|
+
attrs: Partial<{}>;
|
|
5
|
+
slots: {
|
|
6
|
+
default?(_: {}): any;
|
|
7
|
+
};
|
|
8
|
+
refs: {};
|
|
9
|
+
rootEl: HTMLDivElement;
|
|
10
|
+
};
|
|
11
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
12
|
+
declare const __VLS_component: import('vue').DefineComponent<BaseDefaultLayoutProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
13
|
+
toggleSystemTheme: (...args: any[]) => void;
|
|
14
|
+
toggleUserItem: (...args: any[]) => void;
|
|
15
|
+
toggleMenuItem: (...args: any[]) => void;
|
|
16
|
+
toggleMixMenuItem: (...args: any[]) => void;
|
|
17
|
+
}, string, import('vue').PublicProps, Readonly<BaseDefaultLayoutProps> & Readonly<{
|
|
18
|
+
onToggleSystemTheme?: ((...args: any[]) => any) | undefined;
|
|
19
|
+
onToggleUserItem?: ((...args: any[]) => any) | undefined;
|
|
20
|
+
onToggleMenuItem?: ((...args: any[]) => any) | undefined;
|
|
21
|
+
onToggleMixMenuItem?: ((...args: any[]) => any) | undefined;
|
|
22
|
+
}>, {
|
|
23
|
+
headerHeight: number;
|
|
24
|
+
contentClass: string;
|
|
25
|
+
headerClass: string;
|
|
26
|
+
footerClass: string;
|
|
27
|
+
mode: BaseDefaultLayoutMode;
|
|
28
|
+
tabClass: string;
|
|
29
|
+
sliderCollapse: boolean;
|
|
30
|
+
sliderClass: string;
|
|
31
|
+
tabHeight: number;
|
|
32
|
+
sliderWidth: number;
|
|
33
|
+
sliderCollapseWidth: number;
|
|
34
|
+
footerHeight: number;
|
|
35
|
+
scrollMode: import('..').LayoutScrollMode;
|
|
36
|
+
scrollElId: string;
|
|
37
|
+
scrollWrapperClass: string;
|
|
38
|
+
baseClass: string;
|
|
39
|
+
fixedTop: boolean;
|
|
40
|
+
commonClass: string;
|
|
41
|
+
layoutZIndex: number;
|
|
42
|
+
headerVisible: boolean;
|
|
43
|
+
tabVisible: boolean;
|
|
44
|
+
sliderVisible: boolean;
|
|
45
|
+
fullContent: boolean;
|
|
46
|
+
footerVisible: boolean;
|
|
47
|
+
fixedFooter: boolean;
|
|
48
|
+
footerIsFullWidth: boolean;
|
|
49
|
+
sliderMixWidth: number;
|
|
50
|
+
sliderMixCollapseWidth: number;
|
|
51
|
+
sliderMixChildMenuWidth: number;
|
|
52
|
+
mixSliderFixed: boolean;
|
|
53
|
+
reverseHorizontalMix: boolean;
|
|
54
|
+
menuList: import('./type').BaseMenuOptionType[];
|
|
55
|
+
userActionOption: Array<DropdownOption | import('naive-ui').DropdownGroupOption | import('naive-ui').DropdownDividerOption | import('naive-ui').DropdownRenderOption>;
|
|
56
|
+
userInfo: import('./type').UserInfoType;
|
|
57
|
+
curRoute: any;
|
|
58
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
59
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
60
|
+
export default _default;
|
|
61
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
62
|
+
new (): {
|
|
63
|
+
$slots: S;
|
|
64
|
+
};
|
|
65
|
+
};
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
import { defineComponent as w, mergeDefaults as z, defineAsyncComponent as S, computed as l, provide as F, createBlock as T, openBlock as L, withCtx as r, renderSlot as P, createVNode as d, unref as A } from "vue";
|
|
2
|
+
import D from "../index.vue.mjs";
|
|
3
|
+
import O from "./layoutHeader/index.vue.mjs";
|
|
4
|
+
import k from "./layoutTab/index.vue.mjs";
|
|
5
|
+
import N from "./layoutSlider/index.vue.mjs";
|
|
6
|
+
import U from "./layoutFooter/index.vue.mjs";
|
|
7
|
+
import { defaultLayoutProviderInjectKey as $, DefaultLayoutPropsInDefault as E } from "./options.mjs";
|
|
8
|
+
import R from "../../../hooks/useNaiveConfigProvideContext.mjs";
|
|
9
|
+
import { setupMixMenuContext as j } from "../../../hooks/useMenu.mjs";
|
|
10
|
+
const ee = /* @__PURE__ */ w({
|
|
11
|
+
__name: "index",
|
|
12
|
+
props: /* @__PURE__ */ z({
|
|
13
|
+
scrollMode: {},
|
|
14
|
+
scrollElId: {},
|
|
15
|
+
scrollWrapperClass: {},
|
|
16
|
+
baseClass: {},
|
|
17
|
+
fixedTop: { type: Boolean },
|
|
18
|
+
commonClass: {},
|
|
19
|
+
layoutZIndex: {},
|
|
20
|
+
headerVisible: { type: Boolean },
|
|
21
|
+
headerClass: {},
|
|
22
|
+
headerHeight: {},
|
|
23
|
+
tabVisible: { type: Boolean },
|
|
24
|
+
tabClass: {},
|
|
25
|
+
tabHeight: {},
|
|
26
|
+
sliderVisible: { type: Boolean },
|
|
27
|
+
sliderClass: {},
|
|
28
|
+
sliderCollapse: { type: Boolean },
|
|
29
|
+
sliderWidth: {},
|
|
30
|
+
sliderCollapseWidth: {},
|
|
31
|
+
contentClass: {},
|
|
32
|
+
fullContent: { type: Boolean },
|
|
33
|
+
footerVisible: { type: Boolean },
|
|
34
|
+
footerClass: {},
|
|
35
|
+
fixedFooter: { type: Boolean },
|
|
36
|
+
footerIsFullWidth: { type: Boolean },
|
|
37
|
+
footerHeight: {},
|
|
38
|
+
mode: {},
|
|
39
|
+
curRoute: {},
|
|
40
|
+
sliderMixWidth: {},
|
|
41
|
+
sliderMixCollapseWidth: {},
|
|
42
|
+
sliderMixChildMenuWidth: {},
|
|
43
|
+
mixSliderFixed: { type: Boolean },
|
|
44
|
+
menuList: {},
|
|
45
|
+
reverseHorizontalMix: { type: Boolean },
|
|
46
|
+
userActionOption: {},
|
|
47
|
+
userInfo: {}
|
|
48
|
+
}, {
|
|
49
|
+
...E,
|
|
50
|
+
menuList: () => [],
|
|
51
|
+
userActionOption: () => [],
|
|
52
|
+
userInfo: () => ({ name: "" })
|
|
53
|
+
}),
|
|
54
|
+
emits: [
|
|
55
|
+
"toggleMenuItem",
|
|
56
|
+
"toggleMixMenuItem",
|
|
57
|
+
"toggleSystemTheme",
|
|
58
|
+
"toggleUserItem"
|
|
59
|
+
],
|
|
60
|
+
setup(t, { emit: x }) {
|
|
61
|
+
const v = S(() => import("./layoutMenu/index.vue.mjs")), o = t, a = x, M = R(), { childLevelMenus: c } = j(o), p = l(() => {
|
|
62
|
+
const {
|
|
63
|
+
name: e = "light"
|
|
64
|
+
} = M?.mergedThemeRef.value || {};
|
|
65
|
+
return e !== "light";
|
|
66
|
+
}), C = l(() => {
|
|
67
|
+
const e = "vertical";
|
|
68
|
+
return o.mode.includes(e) ? e : "horizontal";
|
|
69
|
+
}), b = l(() => o.mode !== "horizontal"), n = l(() => o.mode === "horizontal-mix"), u = l(() => o.mode === "vertical-mix"), y = () => {
|
|
70
|
+
const { reverseHorizontalMix: e } = o, { sliderCollapseWidth: i, sliderMixCollapseWidth: h, sliderMixChildMenuWidth: m } = o;
|
|
71
|
+
if (n.value && e)
|
|
72
|
+
return i;
|
|
73
|
+
let s = u.value || n.value ? h : i;
|
|
74
|
+
return u.value && o.mixSliderFixed && c.value.length && (s += m), s;
|
|
75
|
+
}, f = l(() => y());
|
|
76
|
+
function I() {
|
|
77
|
+
const { reverseHorizontalMix: e } = o, { sliderWidth: i, sliderMixChildMenuWidth: h, sliderMixWidth: m } = o;
|
|
78
|
+
if (n.value && e)
|
|
79
|
+
return i;
|
|
80
|
+
let s = u.value || n.value ? m : i;
|
|
81
|
+
return u.value && o.mixSliderFixed && c.value.length && (s += h), s;
|
|
82
|
+
}
|
|
83
|
+
const g = l(() => I()), W = (e, i) => {
|
|
84
|
+
a("toggleMenuItem", e, i);
|
|
85
|
+
}, B = (e, i) => {
|
|
86
|
+
a("toggleMixMenuItem", e, i);
|
|
87
|
+
}, H = () => {
|
|
88
|
+
a("toggleSystemTheme");
|
|
89
|
+
}, V = (e, i) => {
|
|
90
|
+
a("toggleUserItem", e, i);
|
|
91
|
+
};
|
|
92
|
+
return F($, {
|
|
93
|
+
layoutConfig: o,
|
|
94
|
+
isDarkMode: p,
|
|
95
|
+
userActionOption: o.userActionOption,
|
|
96
|
+
userInfo: o.userInfo,
|
|
97
|
+
_sliderCollapseWidth: f,
|
|
98
|
+
_sliderWidth: g,
|
|
99
|
+
toggleMenuItem: W,
|
|
100
|
+
toggleMixMenuItem: B,
|
|
101
|
+
toggleSystemTheme: H,
|
|
102
|
+
toggleUserItem: V
|
|
103
|
+
}), (e, i) => (L(), T(D, {
|
|
104
|
+
mode: C.value,
|
|
105
|
+
"scroll-mode": t.scrollMode,
|
|
106
|
+
"scroll-el-id": t.scrollElId,
|
|
107
|
+
"fixed-top": t.fixedTop,
|
|
108
|
+
"header-visible": t.headerVisible,
|
|
109
|
+
"header-height": t.headerHeight,
|
|
110
|
+
"tab-visible": t.tabVisible,
|
|
111
|
+
"tab-height": t.tabHeight,
|
|
112
|
+
"slider-visible": b.value,
|
|
113
|
+
"slider-class": t.sliderClass,
|
|
114
|
+
"slider-collapse": t.sliderCollapse,
|
|
115
|
+
"slider-width": g.value,
|
|
116
|
+
"slider-collapse-width": f.value,
|
|
117
|
+
"footer-visible": t.footerVisible,
|
|
118
|
+
"fixed-footer": t.fixedFooter,
|
|
119
|
+
"footer-is-full-width": t.footerIsFullWidth,
|
|
120
|
+
"footer-height": t.footerHeight
|
|
121
|
+
}, {
|
|
122
|
+
header: r(() => [
|
|
123
|
+
d(O)
|
|
124
|
+
]),
|
|
125
|
+
tab: r(() => [
|
|
126
|
+
d(k)
|
|
127
|
+
]),
|
|
128
|
+
slider: r(() => [
|
|
129
|
+
d(N)
|
|
130
|
+
]),
|
|
131
|
+
footer: r(() => [
|
|
132
|
+
d(U)
|
|
133
|
+
]),
|
|
134
|
+
default: r(() => [
|
|
135
|
+
P(e.$slots, "default"),
|
|
136
|
+
d(A(v))
|
|
137
|
+
]),
|
|
138
|
+
_: 3
|
|
139
|
+
}, 8, ["mode", "scroll-mode", "scroll-el-id", "fixed-top", "header-visible", "header-height", "tab-visible", "tab-height", "slider-visible", "slider-class", "slider-collapse", "slider-width", "slider-collapse-width", "footer-visible", "fixed-footer", "footer-is-full-width", "footer-height"]));
|
|
140
|
+
}
|
|
141
|
+
});
|
|
142
|
+
export {
|
|
143
|
+
ee as default
|
|
144
|
+
};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { resolveComponent as t, createBlock as n, openBlock as r, withCtx as a, createTextVNode as c } from "vue";
|
|
2
|
+
import l from "../../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
3
|
+
const s = {};
|
|
4
|
+
function f(_, e) {
|
|
5
|
+
const o = t("BaseContainer");
|
|
6
|
+
return r(), n(o, { class: "h-full layout-footer-panel" }, {
|
|
7
|
+
default: a(() => [...e[0] || (e[0] = [
|
|
8
|
+
c(" 我是底部 ", -1)
|
|
9
|
+
])]),
|
|
10
|
+
_: 1
|
|
11
|
+
});
|
|
12
|
+
}
|
|
13
|
+
const m = /* @__PURE__ */ l(s, [["render", f]]);
|
|
14
|
+
export {
|
|
15
|
+
m as default
|
|
16
|
+
};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import { NButton as f, NDropdown as y } from "naive-ui";
|
|
2
|
+
import { defineComponent as F, computed as c, h as i, createElementBlock as k, openBlock as b, createVNode as o, unref as e, withCtx as r, createElementVNode as u, toDisplayString as C } from "vue";
|
|
3
|
+
import x from "../hooks/useBaseLayoutContext.mjs";
|
|
4
|
+
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";
|
|
5
|
+
const S = { class: "base-layout-header-action-container" }, z = { class: "user-trigger" }, B = { class: "name" }, H = /* @__PURE__ */ F({
|
|
6
|
+
name: "GlobalHeaderAction",
|
|
7
|
+
__name: "action",
|
|
8
|
+
setup(E) {
|
|
9
|
+
const { isDarkMode: t, userActionOption: l, userInfo: m, toggleSystemTheme: d, toggleSystemLang: p, toggleUserItem: _ } = x(), a = c(() => ({
|
|
10
|
+
color: t.value ? "#222327" : "#FFF",
|
|
11
|
+
colorHover: t.value ? "#222327" : "#FFF",
|
|
12
|
+
colorFocus: t.value ? "#222327" : "#FFF",
|
|
13
|
+
textColor: t.value ? "rgba(255,255,255,0.7)" : "#56647A",
|
|
14
|
+
border: `1px solid ${t.value ? "#2F3A4B " : "#E0E6EF"}`
|
|
15
|
+
})), g = c(() => l && l.length ? l : [
|
|
16
|
+
{
|
|
17
|
+
label: "用户中心",
|
|
18
|
+
key: "user-center",
|
|
19
|
+
icon: () => i(n, { icon: "layout-user-center", size: "16" })
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
label: "退出账号",
|
|
23
|
+
key: "logout",
|
|
24
|
+
icon: () => i(n, { icon: "layout-logout", size: "16" })
|
|
25
|
+
}
|
|
26
|
+
]);
|
|
27
|
+
return (v, A) => {
|
|
28
|
+
const s = f, h = y;
|
|
29
|
+
return b(), k("div", S, [
|
|
30
|
+
o(s, {
|
|
31
|
+
"theme-overrides": a.value,
|
|
32
|
+
onClick: e(d)
|
|
33
|
+
}, {
|
|
34
|
+
default: r(() => [
|
|
35
|
+
o(e(n), {
|
|
36
|
+
icon: "layout-theme",
|
|
37
|
+
size: "16"
|
|
38
|
+
})
|
|
39
|
+
]),
|
|
40
|
+
_: 1
|
|
41
|
+
}, 8, ["theme-overrides", "onClick"]),
|
|
42
|
+
o(s, {
|
|
43
|
+
"theme-overrides": a.value,
|
|
44
|
+
onClick: e(p)
|
|
45
|
+
}, {
|
|
46
|
+
default: r(() => [
|
|
47
|
+
o(e(n), {
|
|
48
|
+
icon: "layout-lang",
|
|
49
|
+
size: "16"
|
|
50
|
+
})
|
|
51
|
+
]),
|
|
52
|
+
_: 1
|
|
53
|
+
}, 8, ["theme-overrides", "onClick"]),
|
|
54
|
+
o(h, {
|
|
55
|
+
placement: "bottom",
|
|
56
|
+
trigger: "click",
|
|
57
|
+
options: g.value,
|
|
58
|
+
onSelect: e(_)
|
|
59
|
+
}, {
|
|
60
|
+
default: r(() => [
|
|
61
|
+
u("div", z, [
|
|
62
|
+
o(s, { quaternary: "" }, {
|
|
63
|
+
default: r(() => [
|
|
64
|
+
o(e(n), {
|
|
65
|
+
icon: `layout-user-${e(t) ? "dark" : "light"}`,
|
|
66
|
+
size: "32"
|
|
67
|
+
}, null, 8, ["icon"]),
|
|
68
|
+
u("span", B, C(e(m)?.name), 1)
|
|
69
|
+
]),
|
|
70
|
+
_: 1
|
|
71
|
+
})
|
|
72
|
+
])
|
|
73
|
+
]),
|
|
74
|
+
_: 1
|
|
75
|
+
}, 8, ["options", "onSelect"])
|
|
76
|
+
]);
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
});
|
|
80
|
+
export {
|
|
81
|
+
H as default
|
|
82
|
+
};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { defineComponent as n, computed as d, createBlock as t, openBlock as o, withCtx as e, createElementVNode as i, unref as l, createVNode as m, createCommentVNode as u } from "vue";
|
|
2
|
+
import c from "../../Header/index.vue.mjs";
|
|
3
|
+
import s from "./title.vue.mjs";
|
|
4
|
+
import f from "./action.vue.mjs";
|
|
5
|
+
import { LAYOUT_HEADER_MENU_ID as p } from "../constants.mjs";
|
|
6
|
+
import _ from "../hooks/useBaseLayoutContext.mjs";
|
|
7
|
+
const x = ["id"], k = /* @__PURE__ */ n({
|
|
8
|
+
name: "GlobalHeader",
|
|
9
|
+
__name: "index",
|
|
10
|
+
setup(h) {
|
|
11
|
+
const { layoutConfig: r } = _(), a = d(() => !(r.mode.indexOf("vertical") > -1));
|
|
12
|
+
return (y, B) => (o(), t(c, null, {
|
|
13
|
+
headerTitle: e(() => [
|
|
14
|
+
a.value ? (o(), t(s, { key: 0 })) : u("", !0)
|
|
15
|
+
]),
|
|
16
|
+
headerActions: e(() => [
|
|
17
|
+
m(f)
|
|
18
|
+
]),
|
|
19
|
+
default: e(() => [
|
|
20
|
+
i("div", {
|
|
21
|
+
id: l(p),
|
|
22
|
+
class: "h-full flex-y-center flex-1-hidden pl-[16px]"
|
|
23
|
+
}, null, 8, x)
|
|
24
|
+
]),
|
|
25
|
+
_: 1
|
|
26
|
+
}));
|
|
27
|
+
}
|
|
28
|
+
});
|
|
29
|
+
export {
|
|
30
|
+
k as default
|
|
31
|
+
};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { NDivider as a } from "naive-ui";
|
|
2
|
+
import { defineComponent as i, createElementBlock as m, openBlock as t, createVNode as n, createBlock as s, createCommentVNode as l, unref as e, resolveDynamicComponent as p } from "vue";
|
|
3
|
+
import u from "../../../BaseProductIntroduction/index.vue.mjs";
|
|
4
|
+
import d from "../hooks/useBaseLayoutContext.mjs";
|
|
5
|
+
import { useLogoHook as _ } from "../hooks/useLogo.mjs";
|
|
6
|
+
const f = { class: "base-layout-header-title-container" }, H = /* @__PURE__ */ i({
|
|
7
|
+
name: "GlobalHeaderTitle",
|
|
8
|
+
__name: "title",
|
|
9
|
+
setup(y) {
|
|
10
|
+
const { layoutConfig: r } = d(), { currentLogoComponent: o } = _();
|
|
11
|
+
return (C, g) => {
|
|
12
|
+
const c = a;
|
|
13
|
+
return t(), m("div", f, [
|
|
14
|
+
n(u, {
|
|
15
|
+
y: e(r).headerHeight
|
|
16
|
+
}, null, 8, ["y"]),
|
|
17
|
+
n(c, { vertical: "" }),
|
|
18
|
+
e(o) ? (t(), s(p(e(o)), {
|
|
19
|
+
key: 0,
|
|
20
|
+
class: "component-logo"
|
|
21
|
+
})) : l("", !0)
|
|
22
|
+
]);
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
});
|
|
26
|
+
export {
|
|
27
|
+
H as default
|
|
28
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { BaseMenuOptionType } from '../../type';
|
|
2
|
+
interface PropsType {
|
|
3
|
+
menus: Array<BaseMenuOptionType>;
|
|
4
|
+
activeMenuKey?: string;
|
|
5
|
+
inverted?: boolean;
|
|
6
|
+
sliderCollapse?: boolean;
|
|
7
|
+
darkMode?: boolean;
|
|
8
|
+
themeColor: string;
|
|
9
|
+
}
|
|
10
|
+
declare function __VLS_template(): {
|
|
11
|
+
attrs: Partial<{}>;
|
|
12
|
+
slots: {
|
|
13
|
+
default?(_: {}): any;
|
|
14
|
+
};
|
|
15
|
+
refs: {};
|
|
16
|
+
rootEl: any;
|
|
17
|
+
};
|
|
18
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
19
|
+
declare const __VLS_component: import('vue').DefineComponent<PropsType, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
20
|
+
select: (menu: BaseMenuOptionType) => any;
|
|
21
|
+
toggleSliderCollapse: () => any;
|
|
22
|
+
}, string, import('vue').PublicProps, Readonly<PropsType> & Readonly<{
|
|
23
|
+
onSelect?: ((menu: BaseMenuOptionType) => any) | undefined;
|
|
24
|
+
onToggleSliderCollapse?: (() => any) | undefined;
|
|
25
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
26
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
27
|
+
export default _default;
|
|
28
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
29
|
+
new (): {
|
|
30
|
+
$slots: S;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { defineComponent as h, useCssVars as _, computed as g, resolveComponent as B, createElementBlock as n, openBlock as l, Fragment as c, createVNode as p, createElementVNode as r, unref as u, withCtx as d, normalizeClass as S, createBlock as m, resolveDynamicComponent as I, toDisplayString as D, renderSlot as V, renderList as w } from "vue";
|
|
2
|
+
import { createReusableTemplate as E } from "../../../../../node_modules/.pnpm/@vueuse_core@13.0.0_vue@3.5.13_typescript@5.7.2_/node_modules/@vueuse/core/index.mjs";
|
|
3
|
+
const F = { class: "w-full ellipsis-text text-center text-[12px]" }, K = { class: "h-full flex-col-stretch flex-1-hidden" }, z = /* @__PURE__ */ h({
|
|
4
|
+
name: "FirstLevelMenu",
|
|
5
|
+
__name: "first-level-menu",
|
|
6
|
+
props: {
|
|
7
|
+
menus: {},
|
|
8
|
+
activeMenuKey: {},
|
|
9
|
+
inverted: { type: Boolean },
|
|
10
|
+
sliderCollapse: { type: Boolean },
|
|
11
|
+
darkMode: { type: Boolean },
|
|
12
|
+
themeColor: {}
|
|
13
|
+
},
|
|
14
|
+
emits: ["select", "toggleSliderCollapse"],
|
|
15
|
+
setup(o, { emit: x }) {
|
|
16
|
+
_((t) => ({
|
|
17
|
+
v6a6cfcc8: b.value
|
|
18
|
+
}));
|
|
19
|
+
const [f, v] = E(), C = o, y = x, b = g(() => {
|
|
20
|
+
const { darkMode: t } = C;
|
|
21
|
+
return t ? "#000" : "#fff";
|
|
22
|
+
}), k = (t) => {
|
|
23
|
+
y("select", t);
|
|
24
|
+
};
|
|
25
|
+
return (t, L) => {
|
|
26
|
+
const M = B("SimpleScrollbar");
|
|
27
|
+
return l(), n(c, null, [
|
|
28
|
+
p(u(f), null, {
|
|
29
|
+
default: d(({ label: e, icon: s, activeIcon: a, active: i }) => [
|
|
30
|
+
r("div", {
|
|
31
|
+
class: S(["mx-[4px] mb-[6px] flex-col-bc cursor-pointer rounded-[8px] bg-transparent px-[4px] py-[8px] hover:bg-[rgba(0,0,0,0.08)]", {
|
|
32
|
+
"text-primary selected-mix-menu": i
|
|
33
|
+
}])
|
|
34
|
+
}, [
|
|
35
|
+
(l(), m(I(i && a ? a : s))),
|
|
36
|
+
r("p", F, D(e), 1)
|
|
37
|
+
], 2)
|
|
38
|
+
]),
|
|
39
|
+
_: 1
|
|
40
|
+
}),
|
|
41
|
+
r("div", K, [
|
|
42
|
+
V(t.$slots, "default", {}, void 0, !0),
|
|
43
|
+
p(M, null, {
|
|
44
|
+
default: d(() => [
|
|
45
|
+
(l(!0), n(c, null, w(o.menus, (e) => (l(), n(c, null, [
|
|
46
|
+
(l(), m(u(v), {
|
|
47
|
+
key: e.key,
|
|
48
|
+
label: e.label,
|
|
49
|
+
icon: e.icon,
|
|
50
|
+
active: e.key === o.activeMenuKey,
|
|
51
|
+
activeIcon: e.activeIcon,
|
|
52
|
+
onClick: (s) => k(e)
|
|
53
|
+
}, null, 8, ["label", "icon", "active", "activeIcon", "onClick"]))
|
|
54
|
+
], 64))), 256))
|
|
55
|
+
]),
|
|
56
|
+
_: 1
|
|
57
|
+
})
|
|
58
|
+
])
|
|
59
|
+
], 64);
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
});
|
|
63
|
+
export {
|
|
64
|
+
z as default
|
|
65
|
+
};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { defineComponent as m, computed as o, createBlock as a, openBlock as i, resolveDynamicComponent as c } from "vue";
|
|
2
|
+
import s from "./modules/horizontalMenu.vue.mjs";
|
|
3
|
+
import _ from "./modules/horizontalMixMenu.vue.mjs";
|
|
4
|
+
import f from "./modules/horizontalMixReversedMenu.vue.mjs";
|
|
5
|
+
import p from "./modules/verticalMenu.vue.mjs";
|
|
6
|
+
import l from "./modules/verticalMixMenu.vue.mjs";
|
|
7
|
+
import u from "../hooks/useBaseLayoutContext.mjs";
|
|
8
|
+
const B = /* @__PURE__ */ m({
|
|
9
|
+
name: "LayoutMenu",
|
|
10
|
+
__name: "index",
|
|
11
|
+
setup(v) {
|
|
12
|
+
const { layoutConfig: e } = u(), t = {
|
|
13
|
+
vertical: p,
|
|
14
|
+
"vertical-mix": l,
|
|
15
|
+
horizontal: s,
|
|
16
|
+
"horizontal-mix": e.reverseHorizontalMix ? f : _
|
|
17
|
+
}, r = o(() => t[e.mode || "vertical"]), n = o(() => e.mode === "vertical");
|
|
18
|
+
return (d, x) => (i(), a(c(r.value), { key: n.value }));
|
|
19
|
+
}
|
|
20
|
+
});
|
|
21
|
+
export {
|
|
22
|
+
B as default
|
|
23
|
+
};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { NMenu as a } from "naive-ui";
|
|
2
|
+
import { defineComponent as p, createBlock as c, openBlock as m, Teleport as s, unref as e, createVNode as i } from "vue";
|
|
3
|
+
import { LAYOUT_HEADER_MENU_ID as l } from "../../constants.mjs";
|
|
4
|
+
import _ from "../../hooks/useBaseLayoutContext.mjs";
|
|
5
|
+
import { useMenu as d } from "../../../../../hooks/useMenu.mjs";
|
|
6
|
+
const x = /* @__PURE__ */ p({
|
|
7
|
+
__name: "horizontalMenu",
|
|
8
|
+
setup(f) {
|
|
9
|
+
const { layoutConfig: o, toggleMenuItem: n } = _(), { selectedKey: t, renderIcon: r } = d(o);
|
|
10
|
+
return (M, v) => {
|
|
11
|
+
const u = a;
|
|
12
|
+
return m(), c(s, {
|
|
13
|
+
to: `#${e(l)}`
|
|
14
|
+
}, [
|
|
15
|
+
i(u, {
|
|
16
|
+
mode: "horizontal",
|
|
17
|
+
options: e(o).menuList,
|
|
18
|
+
value: e(t),
|
|
19
|
+
indent: 18,
|
|
20
|
+
responsive: "",
|
|
21
|
+
renderIcon: e(r),
|
|
22
|
+
"onUpdate:value": e(n)
|
|
23
|
+
}, null, 8, ["options", "value", "renderIcon", "onUpdate:value"])
|
|
24
|
+
], 8, ["to"]);
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
});
|
|
28
|
+
export {
|
|
29
|
+
x as default
|
|
30
|
+
};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { NMenu as f } from "naive-ui";
|
|
2
|
+
import { defineComponent as v, createElementBlock as y, openBlock as n, Fragment as h, createBlock as r, Teleport as s, unref as e, createVNode as i } from "vue";
|
|
3
|
+
import { LAYOUT_HEADER_MENU_ID as x, LAYOUT_SLIDER_MENU_ID as L } from "../../constants.mjs";
|
|
4
|
+
import k from "../components/first-level-menu.vue.mjs";
|
|
5
|
+
import { useMenu as C, useMixMenuContext as I } from "../../../../../hooks/useMenu.mjs";
|
|
6
|
+
import E from "../../hooks/useBaseLayoutContext.mjs";
|
|
7
|
+
const z = /* @__PURE__ */ v({
|
|
8
|
+
name: "HorizontalMixMenu",
|
|
9
|
+
__name: "horizontalMixMenu",
|
|
10
|
+
setup(U) {
|
|
11
|
+
const { layoutConfig: t, toggleMenuItem: l } = E(), { selectedKey: u, renderIcon: a } = C(t), {
|
|
12
|
+
allMenus: c,
|
|
13
|
+
childLevelMenus: m,
|
|
14
|
+
activeFirstLevelMenuKey: p,
|
|
15
|
+
setActiveFirstLevelMenuKey: d
|
|
16
|
+
} = I(), M = (o) => {
|
|
17
|
+
d(o.key), o.children?.length || l(o.routeKey, {});
|
|
18
|
+
};
|
|
19
|
+
return (o, g) => {
|
|
20
|
+
const _ = f;
|
|
21
|
+
return n(), y(h, null, [
|
|
22
|
+
(n(), r(s, {
|
|
23
|
+
to: `#${e(x)}`
|
|
24
|
+
}, [
|
|
25
|
+
i(_, {
|
|
26
|
+
mode: "horizontal",
|
|
27
|
+
value: e(u),
|
|
28
|
+
options: e(m),
|
|
29
|
+
indent: 18,
|
|
30
|
+
responsive: "",
|
|
31
|
+
renderIcon: e(a),
|
|
32
|
+
"onUpdate:value": e(l)
|
|
33
|
+
}, null, 8, ["value", "options", "renderIcon", "onUpdate:value"])
|
|
34
|
+
], 8, ["to"])),
|
|
35
|
+
(n(), r(s, {
|
|
36
|
+
to: `#${e(L)}`
|
|
37
|
+
}, [
|
|
38
|
+
i(k, {
|
|
39
|
+
menus: e(c),
|
|
40
|
+
"active-menu-key": e(p),
|
|
41
|
+
sliderCollapse: e(t).sliderCollapse,
|
|
42
|
+
"dark-mode": !1,
|
|
43
|
+
"theme-color": "",
|
|
44
|
+
onSelect: M
|
|
45
|
+
}, null, 8, ["menus", "active-menu-key", "sliderCollapse"])
|
|
46
|
+
], 8, ["to"]))
|
|
47
|
+
], 64);
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
});
|
|
51
|
+
export {
|
|
52
|
+
z as default
|
|
53
|
+
};
|
package/es/components/BaseLayout/Default/layoutMenu/modules/horizontalMixReversedMenu.vue.d.ts
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
export default _default;
|