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,73 @@
|
|
|
1
|
+
import { defineComponent as y, ref as f, computed as M, resolveComponent as x, createElementBlock as I, openBlock as t, Fragment as S, createBlock as u, Teleport as s, unref as e, createVNode as l, withCtx as U } from "vue";
|
|
2
|
+
import p from "../../../AsideMenu/index.vue.mjs";
|
|
3
|
+
import { LAYOUT_HEADER_MENU_ID as h, LAYOUT_SLIDER_MENU_ID as k } from "../../constants.mjs";
|
|
4
|
+
import C from "../../hooks/useBaseLayoutContext.mjs";
|
|
5
|
+
import { useMenu as g } from "../../../../../hooks/useMenu.mjs";
|
|
6
|
+
const w = /* @__PURE__ */ y({
|
|
7
|
+
__name: "horizontalMixReversedMenu",
|
|
8
|
+
setup(A) {
|
|
9
|
+
const { layoutConfig: o, toggleMenuItem: i, toggleMixMenuItem: c } = C(), { selectedKey: n, renderIcon: r } = g(o), a = f([]), m = M(() => [
|
|
10
|
+
{
|
|
11
|
+
key: "ADS",
|
|
12
|
+
label: "ADS",
|
|
13
|
+
routeKey: "",
|
|
14
|
+
routePath: ""
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
key: "Studio",
|
|
18
|
+
label: "Studio",
|
|
19
|
+
routeKey: "",
|
|
20
|
+
routePath: ""
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
key: "Multimodal",
|
|
24
|
+
label: "Multimodal",
|
|
25
|
+
routeKey: "",
|
|
26
|
+
routePath: ""
|
|
27
|
+
}
|
|
28
|
+
]);
|
|
29
|
+
return (D, d) => {
|
|
30
|
+
const v = x("SimpleScrollbar");
|
|
31
|
+
return t(), I(S, null, [
|
|
32
|
+
(t(), u(s, {
|
|
33
|
+
to: `#${e(h)}`
|
|
34
|
+
}, [
|
|
35
|
+
l(p, {
|
|
36
|
+
mode: "horizontal",
|
|
37
|
+
value: e(n),
|
|
38
|
+
options: m.value,
|
|
39
|
+
indent: 18,
|
|
40
|
+
responsive: "",
|
|
41
|
+
renderIcon: e(r),
|
|
42
|
+
"onUpdate:value": e(c)
|
|
43
|
+
}, null, 8, ["value", "options", "renderIcon", "onUpdate:value"])
|
|
44
|
+
], 8, ["to"])),
|
|
45
|
+
(t(), u(s, {
|
|
46
|
+
to: `#${e(k)}`
|
|
47
|
+
}, [
|
|
48
|
+
l(v, null, {
|
|
49
|
+
default: U(() => [
|
|
50
|
+
l(p, {
|
|
51
|
+
"expanded-keys": a.value,
|
|
52
|
+
"onUpdate:expandedKeys": d[0] || (d[0] = (_) => a.value = _),
|
|
53
|
+
mode: "vertical",
|
|
54
|
+
value: e(n),
|
|
55
|
+
collapsed: e(o).sliderCollapse,
|
|
56
|
+
"collapsed-width": e(o).sliderCollapseWidth,
|
|
57
|
+
"collapsed-icon-size": 22,
|
|
58
|
+
options: e(o).menuList,
|
|
59
|
+
indent: 18,
|
|
60
|
+
renderIcon: e(r),
|
|
61
|
+
"onUpdate:value": e(i)
|
|
62
|
+
}, null, 8, ["expanded-keys", "value", "collapsed", "collapsed-width", "options", "renderIcon", "onUpdate:value"])
|
|
63
|
+
]),
|
|
64
|
+
_: 1
|
|
65
|
+
})
|
|
66
|
+
], 8, ["to"]))
|
|
67
|
+
], 64);
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
});
|
|
71
|
+
export {
|
|
72
|
+
w as default
|
|
73
|
+
};
|
|
@@ -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,39 @@
|
|
|
1
|
+
import { NMenu as i } from "naive-ui";
|
|
2
|
+
import { defineComponent as u, ref as m, resolveComponent as _, createBlock as f, openBlock as v, Teleport as x, unref as e, createVNode as l, withCtx as y } from "vue";
|
|
3
|
+
import { LAYOUT_SLIDER_MENU_ID as C } from "../../constants.mjs";
|
|
4
|
+
import I from "../../hooks/useBaseLayoutContext.mjs";
|
|
5
|
+
import { useMenu as M } from "../../../../../hooks/useMenu.mjs";
|
|
6
|
+
const w = /* @__PURE__ */ u({
|
|
7
|
+
__name: "verticalMenu",
|
|
8
|
+
setup(S) {
|
|
9
|
+
const { layoutConfig: o, toggleMenuItem: r } = I(), { selectedKey: a, renderIcon: p } = M(o), n = m([]);
|
|
10
|
+
return (U, t) => {
|
|
11
|
+
const s = i, d = _("SimpleScrollbar");
|
|
12
|
+
return v(), f(x, {
|
|
13
|
+
to: `#${e(C)}`
|
|
14
|
+
}, [
|
|
15
|
+
l(d, null, {
|
|
16
|
+
default: y(() => [
|
|
17
|
+
l(s, {
|
|
18
|
+
"expanded-keys": n.value,
|
|
19
|
+
"onUpdate:expandedKeys": t[0] || (t[0] = (c) => n.value = c),
|
|
20
|
+
mode: "vertical",
|
|
21
|
+
value: e(a),
|
|
22
|
+
collapsed: e(o).sliderCollapse,
|
|
23
|
+
"collapsed-width": e(o).sliderCollapseWidth,
|
|
24
|
+
"collapsed-icon-size": 22,
|
|
25
|
+
options: e(o).menuList,
|
|
26
|
+
indent: 18,
|
|
27
|
+
renderIcon: e(p),
|
|
28
|
+
"onUpdate:value": e(r)
|
|
29
|
+
}, null, 8, ["expanded-keys", "value", "collapsed", "collapsed-width", "options", "renderIcon", "onUpdate:value"])
|
|
30
|
+
]),
|
|
31
|
+
_: 1
|
|
32
|
+
})
|
|
33
|
+
], 8, ["to"]);
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
});
|
|
37
|
+
export {
|
|
38
|
+
w as default
|
|
39
|
+
};
|
|
@@ -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,100 @@
|
|
|
1
|
+
import { defineComponent as F, computed as c, ref as K, watch as I, resolveComponent as p, createBlock as A, openBlock as U, Teleport as V, unref as e, createElementVNode as n, createVNode as o, normalizeStyle as m, withCtx as f } from "vue";
|
|
2
|
+
import D from "../../../../../hooks/useBoolean.mjs";
|
|
3
|
+
import E from "../../../AsideMenu/index.vue.mjs";
|
|
4
|
+
import { LAYOUT_SLIDER_MENU_ID as N } from "../../constants.mjs";
|
|
5
|
+
import { useMixMenuContext as R, useMenu as T } from "../../../../../hooks/useMenu.mjs";
|
|
6
|
+
import W from "../components/first-level-menu.vue.mjs";
|
|
7
|
+
import j from "../../hooks/useBaseLayoutContext.mjs";
|
|
8
|
+
const P = /* @__PURE__ */ F({
|
|
9
|
+
name: "VerticalMixMenu",
|
|
10
|
+
__name: "verticalMixMenu",
|
|
11
|
+
setup(z) {
|
|
12
|
+
const { layoutConfig: t, toggleMenuItem: v } = j(), { bool: x, setBool: r } = D(), {
|
|
13
|
+
allMenus: h,
|
|
14
|
+
childLevelMenus: s,
|
|
15
|
+
activeFirstLevelMenuKey: M,
|
|
16
|
+
setActiveFirstLevelMenuKey: y,
|
|
17
|
+
getActiveFirstLevelMenuKey: C
|
|
18
|
+
//
|
|
19
|
+
} = R(), { selectedKey: u, renderIcon: _ } = T(t), d = c(() => s.value.length > 0), w = c(() => d.value && (x.value || t.mixSliderFixed));
|
|
20
|
+
function S(a) {
|
|
21
|
+
y(a.key), a.children?.length && r(!0);
|
|
22
|
+
}
|
|
23
|
+
function b() {
|
|
24
|
+
r(!1), t.mixSliderFixed || C();
|
|
25
|
+
}
|
|
26
|
+
const i = K([]);
|
|
27
|
+
function g() {
|
|
28
|
+
if (t.sliderCollapse || !u.value) {
|
|
29
|
+
i.value = [];
|
|
30
|
+
return;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
return I(
|
|
34
|
+
() => t.curRoute?.name,
|
|
35
|
+
() => {
|
|
36
|
+
g();
|
|
37
|
+
},
|
|
38
|
+
{ immediate: !0 }
|
|
39
|
+
), (a, l) => {
|
|
40
|
+
const k = p("SimpleScrollbar"), B = p("BaseContainer");
|
|
41
|
+
return U(), A(V, {
|
|
42
|
+
to: `#${e(N)}`
|
|
43
|
+
}, [
|
|
44
|
+
n("div", {
|
|
45
|
+
class: "h-full flex",
|
|
46
|
+
onMouseleave: b
|
|
47
|
+
}, [
|
|
48
|
+
o(W, {
|
|
49
|
+
menus: e(h),
|
|
50
|
+
"active-menu-key": e(M),
|
|
51
|
+
inverted: !1,
|
|
52
|
+
"slider-collapse": e(t).sliderCollapse,
|
|
53
|
+
"dark-mode": !1,
|
|
54
|
+
"theme-color": "",
|
|
55
|
+
onSelect: S
|
|
56
|
+
}, null, 8, ["menus", "active-menu-key", "slider-collapse"]),
|
|
57
|
+
n("div", {
|
|
58
|
+
class: "relative h-full",
|
|
59
|
+
style: m({ width: e(t).mixSliderFixed && d.value ? e(t).sliderMixChildMenuWidth + "px" : "0px" })
|
|
60
|
+
}, [
|
|
61
|
+
o(B, {
|
|
62
|
+
class: "absolute left-0 top-0 h-full flex-col-stretch overflow-hidden whitespace-nowrap transition-all duration-300",
|
|
63
|
+
inverted: !1,
|
|
64
|
+
style: m({ width: w.value ? e(t).sliderMixChildMenuWidth + "px" : "0px" })
|
|
65
|
+
}, {
|
|
66
|
+
default: f(() => [
|
|
67
|
+
l[1] || (l[1] = n("header", {
|
|
68
|
+
class: "flex-y-center justify-between px-[12px]",
|
|
69
|
+
style: { height: "var(--layout-header-height)" }
|
|
70
|
+
}, [
|
|
71
|
+
n("h2", { class: "!text-[16px] text-primary font-bold" })
|
|
72
|
+
], -1)),
|
|
73
|
+
o(k, null, {
|
|
74
|
+
default: f(() => [
|
|
75
|
+
o(E, {
|
|
76
|
+
"expanded-keys": i.value,
|
|
77
|
+
"onUpdate:expandedKeys": l[0] || (l[0] = (L) => i.value = L),
|
|
78
|
+
mode: "vertical",
|
|
79
|
+
value: e(u),
|
|
80
|
+
options: e(s),
|
|
81
|
+
inverted: !1,
|
|
82
|
+
indent: 18,
|
|
83
|
+
renderIcon: e(_),
|
|
84
|
+
"onUpdate:value": e(v)
|
|
85
|
+
}, null, 8, ["expanded-keys", "value", "options", "renderIcon", "onUpdate:value"])
|
|
86
|
+
]),
|
|
87
|
+
_: 1
|
|
88
|
+
})
|
|
89
|
+
]),
|
|
90
|
+
_: 1
|
|
91
|
+
}, 8, ["style"])
|
|
92
|
+
], 4)
|
|
93
|
+
], 32)
|
|
94
|
+
], 8, ["to"]);
|
|
95
|
+
};
|
|
96
|
+
}
|
|
97
|
+
});
|
|
98
|
+
export {
|
|
99
|
+
P as default
|
|
100
|
+
};
|
|
@@ -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, {}, HTMLElement>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { defineComponent as l, computed as e, createBlock as t, openBlock as i, withCtx as r, createElementVNode as s, unref as u, createCommentVNode as c } from "vue";
|
|
2
|
+
import d from "../../ASide/index.vue.mjs";
|
|
3
|
+
import p from "../layoutHeader/title.vue.mjs";
|
|
4
|
+
import _ from "../hooks/useBaseLayoutContext.mjs";
|
|
5
|
+
import { LAYOUT_SLIDER_MENU_ID as f } from "../constants.mjs";
|
|
6
|
+
const x = ["id"], E = /* @__PURE__ */ l({
|
|
7
|
+
name: "LayoutSlider",
|
|
8
|
+
__name: "index",
|
|
9
|
+
setup(h) {
|
|
10
|
+
const { layoutConfig: o } = _(), a = e(() => o.mode === "vertical-mix"), n = e(() => o.mode === "horizontal-mix"), m = e(() => !a.value && !n.value);
|
|
11
|
+
return (y, L) => (i(), t(d, null, {
|
|
12
|
+
header: r(() => [
|
|
13
|
+
m.value ? (i(), t(p, { key: 0 })) : c("", !0)
|
|
14
|
+
]),
|
|
15
|
+
default: r(() => [
|
|
16
|
+
s("div", {
|
|
17
|
+
id: u(f),
|
|
18
|
+
style: { height: "100%", "margin-top": "8px" }
|
|
19
|
+
}, null, 8, x)
|
|
20
|
+
]),
|
|
21
|
+
_: 1
|
|
22
|
+
}));
|
|
23
|
+
}
|
|
24
|
+
});
|
|
25
|
+
export {
|
|
26
|
+
E as default
|
|
27
|
+
};
|
|
@@ -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 o, createBlock as n, openBlock as r, withCtx as a, createTextVNode as l } from "vue";
|
|
2
|
+
import c from "../../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
3
|
+
const s = {};
|
|
4
|
+
function f(p, e) {
|
|
5
|
+
const t = o("BaseContainer");
|
|
6
|
+
return r(), n(t, { class: "h-full w-full flex-y-center px-[16px] layout-tab-panel" }, {
|
|
7
|
+
default: a(() => [...e[0] || (e[0] = [
|
|
8
|
+
l(" 我是tab ", -1)
|
|
9
|
+
])]),
|
|
10
|
+
_: 1
|
|
11
|
+
});
|
|
12
|
+
}
|
|
13
|
+
const x = /* @__PURE__ */ c(s, [["render", f]]);
|
|
14
|
+
export {
|
|
15
|
+
x as default
|
|
16
|
+
};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { LAYOUT_SCROLL_EL_ID as e } from "../constants.mjs";
|
|
2
|
+
const t = {
|
|
3
|
+
mode: "vertical",
|
|
4
|
+
scrollMode: "content",
|
|
5
|
+
scrollElId: e,
|
|
6
|
+
fixedTop: !0,
|
|
7
|
+
headerVisible: !0,
|
|
8
|
+
tabVisible: !0,
|
|
9
|
+
sliderVisible: !0,
|
|
10
|
+
sliderCollapse: !1,
|
|
11
|
+
footerVisible: !0,
|
|
12
|
+
footerIsFullWidth: !1,
|
|
13
|
+
fixedFooter: !0,
|
|
14
|
+
layoutZIndex: 100,
|
|
15
|
+
headerHeight: 56,
|
|
16
|
+
tabHeight: 48,
|
|
17
|
+
sliderWidth: 220,
|
|
18
|
+
sliderCollapseWidth: 64,
|
|
19
|
+
sliderMixWidth: 90,
|
|
20
|
+
sliderMixCollapseWidth: 64,
|
|
21
|
+
sliderMixChildMenuWidth: 200,
|
|
22
|
+
mixSliderFixed: !1,
|
|
23
|
+
footerHeight: 48,
|
|
24
|
+
reverseHorizontalMix: !1,
|
|
25
|
+
// menu
|
|
26
|
+
// selectedKeyInMenu: '',
|
|
27
|
+
// renderIconInMenu: undefined,
|
|
28
|
+
menuList: [],
|
|
29
|
+
userActionOption: [],
|
|
30
|
+
userInfo: { name: "" }
|
|
31
|
+
}, l = "__base_default__Layout__";
|
|
32
|
+
export {
|
|
33
|
+
t as DefaultLayoutPropsInDefault,
|
|
34
|
+
l as defaultLayoutProviderInjectKey
|
|
35
|
+
};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { LayoutProps, LayoutMode } from '../type';
|
|
2
|
+
import { DropdownOption, DropdownGroupOption, DropdownDividerOption, DropdownRenderOption, MenuOption } from 'naive-ui';
|
|
3
|
+
import { VNode, ComputedRef } from 'vue';
|
|
4
|
+
export type BaseDefaultLayoutMode = LayoutMode | 'horizontal-mix' | 'vertical-mix';
|
|
5
|
+
export type BaseDefaultLayoutProps = Omit<LayoutProps, 'mode'> & {
|
|
6
|
+
mode?: BaseDefaultLayoutMode;
|
|
7
|
+
curRoute?: any;
|
|
8
|
+
sliderMixWidth?: number;
|
|
9
|
+
sliderMixCollapseWidth?: number;
|
|
10
|
+
sliderMixChildMenuWidth?: number;
|
|
11
|
+
mixSliderFixed?: boolean;
|
|
12
|
+
menuList: BaseMenuOptionType[];
|
|
13
|
+
reverseHorizontalMix?: boolean;
|
|
14
|
+
userActionOption?: Array<DropdownOption | DropdownGroupOption | DropdownDividerOption | DropdownRenderOption>;
|
|
15
|
+
userInfo?: UserInfoType;
|
|
16
|
+
};
|
|
17
|
+
export type BaseMenuOptionType = {
|
|
18
|
+
key: string;
|
|
19
|
+
/** The menu label */
|
|
20
|
+
label: string;
|
|
21
|
+
i18nKey?: string | null;
|
|
22
|
+
routeKey: string;
|
|
23
|
+
routePath: string;
|
|
24
|
+
icon?: () => VNode;
|
|
25
|
+
activeIcon?: () => VNode;
|
|
26
|
+
children?: BaseMenuOptionType[];
|
|
27
|
+
};
|
|
28
|
+
export type UserInfoType = {
|
|
29
|
+
name: string;
|
|
30
|
+
};
|
|
31
|
+
export type BaseLayoutProviderType = {
|
|
32
|
+
layoutConfig: Required<BaseDefaultLayoutProps>;
|
|
33
|
+
userInfo: UserInfoType;
|
|
34
|
+
userActionOption?: Array<DropdownOption | DropdownGroupOption | DropdownDividerOption | DropdownRenderOption>;
|
|
35
|
+
isDarkMode: ComputedRef<boolean>;
|
|
36
|
+
toggleMenuItem: (key: string, item: MenuOption) => void;
|
|
37
|
+
toggleMixMenuItem: (key: string, item: MenuOption) => void;
|
|
38
|
+
toggleSystemTheme: () => void;
|
|
39
|
+
toggleSystemLang: () => void;
|
|
40
|
+
toggleUserItem: (key: string | number, option: DropdownOption) => void;
|
|
41
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
declare function __VLS_template(): {
|
|
2
|
+
attrs: Partial<{}>;
|
|
3
|
+
slots: {
|
|
4
|
+
headerTitle?(_: {}): any;
|
|
5
|
+
default?(_: {}): any;
|
|
6
|
+
headerActions?(_: {}): any;
|
|
7
|
+
};
|
|
8
|
+
refs: {};
|
|
9
|
+
rootEl: any;
|
|
10
|
+
};
|
|
11
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
12
|
+
declare const __VLS_component: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
13
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
14
|
+
export default _default;
|
|
15
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
16
|
+
new (): {
|
|
17
|
+
$slots: S;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { NLayoutHeader as a } from "naive-ui";
|
|
2
|
+
import { createBlock as s, openBlock as d, withCtx as n, renderSlot as t, createCommentVNode as o } from "vue";
|
|
3
|
+
/* empty css */
|
|
4
|
+
import u from "../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
5
|
+
const l = {};
|
|
6
|
+
function c(e, i) {
|
|
7
|
+
const r = a;
|
|
8
|
+
return d(), s(r, { class: "base-layout-header" }, {
|
|
9
|
+
default: n(() => [
|
|
10
|
+
e.$slots.headerTitle ? t(e.$slots, "headerTitle", { key: 0 }, void 0, !0) : o("", !0),
|
|
11
|
+
t(e.$slots, "default", {}, void 0, !0),
|
|
12
|
+
e.$slots.headerActions ? t(e.$slots, "headerActions", { key: 1 }, void 0, !0) : o("", !0)
|
|
13
|
+
]),
|
|
14
|
+
_: 3
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
const h = /* @__PURE__ */ u(l, [["render", c], ["__scopeId", "data-v-1e399468"]]);
|
|
18
|
+
export {
|
|
19
|
+
h as default
|
|
20
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
type PropsType = {
|
|
2
|
+
contentClass?: string;
|
|
3
|
+
};
|
|
4
|
+
declare function __VLS_template(): {
|
|
5
|
+
attrs: Partial<{}>;
|
|
6
|
+
slots: {
|
|
7
|
+
default?(_: {}): any;
|
|
8
|
+
};
|
|
9
|
+
refs: {};
|
|
10
|
+
rootEl: HTMLDivElement;
|
|
11
|
+
};
|
|
12
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
13
|
+
declare const __VLS_component: import('vue').DefineComponent<PropsType, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<PropsType> & Readonly<{}>, {
|
|
14
|
+
contentClass: string;
|
|
15
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
16
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
17
|
+
export default _default;
|
|
18
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
19
|
+
new (): {
|
|
20
|
+
$slots: S;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { defineComponent as s, computed as r, createElementBlock as a, openBlock as l, normalizeClass as c, renderSlot as p } from "vue";
|
|
2
|
+
import u from "../index.module.css.mjs";
|
|
3
|
+
const f = /* @__PURE__ */ s({
|
|
4
|
+
name: "ContentWrap",
|
|
5
|
+
__name: "WrapContent",
|
|
6
|
+
props: {
|
|
7
|
+
contentClass: { default: "" }
|
|
8
|
+
},
|
|
9
|
+
setup(e) {
|
|
10
|
+
const n = e, o = r(() => {
|
|
11
|
+
const t = [];
|
|
12
|
+
return t.push(u["layout-content"]), t.push(n.contentClass), t;
|
|
13
|
+
});
|
|
14
|
+
return (t, m) => (l(), a("div", {
|
|
15
|
+
class: c(o.value)
|
|
16
|
+
}, [
|
|
17
|
+
p(t.$slots, "default")
|
|
18
|
+
], 2));
|
|
19
|
+
}
|
|
20
|
+
});
|
|
21
|
+
export {
|
|
22
|
+
f as default
|
|
23
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
type PropsType = {
|
|
2
|
+
footerClass?: string;
|
|
3
|
+
isFixed?: boolean;
|
|
4
|
+
};
|
|
5
|
+
declare function __VLS_template(): {
|
|
6
|
+
attrs: Partial<{}>;
|
|
7
|
+
slots: {
|
|
8
|
+
default?(_: {}): any;
|
|
9
|
+
};
|
|
10
|
+
refs: {};
|
|
11
|
+
rootEl: any;
|
|
12
|
+
};
|
|
13
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
14
|
+
declare const __VLS_component: import('vue').DefineComponent<PropsType, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<PropsType> & Readonly<{}>, {
|
|
15
|
+
footerClass: string;
|
|
16
|
+
isFixed: boolean;
|
|
17
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
18
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
19
|
+
export default _default;
|
|
20
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
21
|
+
new (): {
|
|
22
|
+
$slots: S;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { defineComponent as c, computed as u, createElementBlock as i, openBlock as f, Fragment as p, createElementVNode as r, withDirectives as m, normalizeClass as l, renderSlot as d, vShow as h } from "vue";
|
|
2
|
+
import t from "../index.module.css.mjs";
|
|
3
|
+
const y = /* @__PURE__ */ c({
|
|
4
|
+
name: "FooterWrap",
|
|
5
|
+
__name: "WrapFooter",
|
|
6
|
+
props: {
|
|
7
|
+
footerClass: { default: "" },
|
|
8
|
+
isFixed: { type: Boolean, default: !0 }
|
|
9
|
+
},
|
|
10
|
+
setup(o) {
|
|
11
|
+
const s = o, a = u(() => {
|
|
12
|
+
const e = [];
|
|
13
|
+
return e.push(t["layout-footer"]), e.push(s.footerClass), s.isFixed && e.push(t["layout-footer-fixed"]), e;
|
|
14
|
+
}), n = [
|
|
15
|
+
t["layout-footer-placement"]
|
|
16
|
+
];
|
|
17
|
+
return (e, C) => (f(), i(p, null, [
|
|
18
|
+
r("footer", {
|
|
19
|
+
class: l(a.value)
|
|
20
|
+
}, [
|
|
21
|
+
d(e.$slots, "default")
|
|
22
|
+
], 2),
|
|
23
|
+
m(r("div", {
|
|
24
|
+
class: l(n)
|
|
25
|
+
}, null, 512), [
|
|
26
|
+
[h, o.isFixed]
|
|
27
|
+
])
|
|
28
|
+
], 64));
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
export {
|
|
32
|
+
y as default
|
|
33
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
type PropsType = {
|
|
2
|
+
isFixed?: boolean;
|
|
3
|
+
headerClass?: string;
|
|
4
|
+
};
|
|
5
|
+
declare function __VLS_template(): {
|
|
6
|
+
attrs: Partial<{}>;
|
|
7
|
+
slots: {
|
|
8
|
+
default?(_: {}): any;
|
|
9
|
+
};
|
|
10
|
+
refs: {};
|
|
11
|
+
rootEl: any;
|
|
12
|
+
};
|
|
13
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
14
|
+
declare const __VLS_component: import('vue').DefineComponent<PropsType, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<PropsType> & Readonly<{}>, {
|
|
15
|
+
headerClass: string;
|
|
16
|
+
isFixed: boolean;
|
|
17
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
18
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
19
|
+
export default _default;
|
|
20
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
21
|
+
new (): {
|
|
22
|
+
$slots: S;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { defineComponent as d, computed as u, createElementBlock as c, openBlock as i, Fragment as p, createElementVNode as l, withDirectives as h, normalizeClass as r, renderSlot as m, vShow as f } from "vue";
|
|
2
|
+
import a from "../index.module.css.mjs";
|
|
3
|
+
const x = /* @__PURE__ */ d({
|
|
4
|
+
__name: "WrapHeader",
|
|
5
|
+
props: {
|
|
6
|
+
isFixed: { type: Boolean, default: !1 },
|
|
7
|
+
headerClass: { default: "" }
|
|
8
|
+
},
|
|
9
|
+
setup(s) {
|
|
10
|
+
const t = s, o = u(() => {
|
|
11
|
+
const e = [];
|
|
12
|
+
return e.push(a["layout-header"]), t.isFixed && e.push(a["layout-header-is-fixed"]), e.push(t.headerClass), e;
|
|
13
|
+
}), n = [a["layout-header-placement"]];
|
|
14
|
+
return (e, y) => (i(), c(p, null, [
|
|
15
|
+
l("header", {
|
|
16
|
+
class: r(["layout-header", o.value])
|
|
17
|
+
}, [
|
|
18
|
+
m(e.$slots, "default", {}, void 0, !0)
|
|
19
|
+
], 2),
|
|
20
|
+
h(l("div", {
|
|
21
|
+
class: r(n)
|
|
22
|
+
}, null, 512), [
|
|
23
|
+
[f, s.isFixed]
|
|
24
|
+
])
|
|
25
|
+
], 64));
|
|
26
|
+
}
|
|
27
|
+
});
|
|
28
|
+
export {
|
|
29
|
+
x as default
|
|
30
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
type PropsType = {
|
|
2
|
+
sliderCollapse?: boolean;
|
|
3
|
+
sliderClass?: string;
|
|
4
|
+
};
|
|
5
|
+
declare function __VLS_template(): {
|
|
6
|
+
attrs: Partial<{}>;
|
|
7
|
+
slots: {
|
|
8
|
+
default?(_: {}): any;
|
|
9
|
+
};
|
|
10
|
+
refs: {};
|
|
11
|
+
rootEl: HTMLDivElement;
|
|
12
|
+
};
|
|
13
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
14
|
+
declare const __VLS_component: import('vue').DefineComponent<PropsType, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<PropsType> & Readonly<{}>, {
|
|
15
|
+
sliderCollapse: boolean;
|
|
16
|
+
sliderClass: string;
|
|
17
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
18
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
19
|
+
export default _default;
|
|
20
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
21
|
+
new (): {
|
|
22
|
+
$slots: S;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { defineComponent as o, computed as t, createElementBlock as p, openBlock as d, normalizeClass as n, renderSlot as i } from "vue";
|
|
2
|
+
import l from "../index.module.css.mjs";
|
|
3
|
+
const f = /* @__PURE__ */ o({
|
|
4
|
+
name: "SliderWrap",
|
|
5
|
+
__name: "WrapSlider",
|
|
6
|
+
props: {
|
|
7
|
+
sliderCollapse: { type: Boolean, default: !1 },
|
|
8
|
+
sliderClass: { default: "" }
|
|
9
|
+
},
|
|
10
|
+
setup(r) {
|
|
11
|
+
const s = r, a = t(() => {
|
|
12
|
+
const e = [];
|
|
13
|
+
return e.push(s.sliderClass), e.push(l["layout-slider"]), e.push(s.sliderCollapse ? l["layout-slider-collapse"] : l["layout-slider-full"]), e;
|
|
14
|
+
});
|
|
15
|
+
return (e, u) => (d(), p("div", {
|
|
16
|
+
class: n(a.value)
|
|
17
|
+
}, [
|
|
18
|
+
i(e.$slots, "default")
|
|
19
|
+
], 2));
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
export {
|
|
23
|
+
f as default
|
|
24
|
+
};
|