base6-ui 1.1.14 → 1.1.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/BaseCascader/cssVar.d.ts +10 -0
- package/dist/components/BaseConfigProvider/constants.d.ts +3 -0
- package/dist/components/BaseConfigProvider/index.d.ts +2 -0
- package/dist/components/BaseConfigProvider/index.vue.d.ts +18 -0
- package/dist/components/BaseConfigProvider/locale-base.d.ts +3 -0
- package/dist/components/BaseConfigProvider/locale-naive.d.ts +4 -0
- package/dist/components/BaseConfigProvider/type.d.ts +17 -0
- package/dist/components/BaseDataTable/index.vue.d.ts +1 -1
- package/dist/components/BaseDialog/index.vue.d.ts +2 -2
- package/dist/components/BaseInputNumber/index.vue.d.ts +0 -1
- package/dist/components/BaseLayout/Default/index.vue.d.ts +8 -6
- package/dist/components/BaseLayout/Default/type.d.ts +7 -9
- package/dist/components/BaseLayout/index.vue.d.ts +1 -1
- package/dist/components/BaseProductIntroduction/cssVar.d.ts +3 -0
- package/dist/components/BaseProgress/cssVar.d.ts +8 -0
- package/dist/components/BaseProgress/index.d.ts +128 -3
- package/dist/components/BaseRadio/cssVar.d.ts +5 -0
- package/dist/components/BaseSelect/index.vue.d.ts +1 -1
- package/dist/components/BaseSteps/index.d.ts +1 -0
- package/dist/components/BaseSteps/steps.d.ts +25 -0
- package/dist/components/BaseSwitch/cssVar.d.ts +7 -0
- package/dist/components/BaseSystemActions/cssVar.d.ts +7 -0
- package/dist/components/BaseSystemActions/index.d.ts +2 -0
- package/dist/components/BaseSystemActions/index.vue.d.ts +13 -0
- package/dist/components/BaseSystemActions/type.d.ts +9 -0
- package/dist/components/BaseTabs/cssVar.d.ts +4 -0
- package/dist/components/BaseTabs/index.d.ts +2 -0
- package/dist/components/BaseTabs/tabs.d.ts +699 -0
- package/dist/components/index.d.ts +4 -0
- package/dist/config/themes/common.d.ts +1 -0
- package/dist/config/themes/components/baseComponent/dark.d.ts +3 -2
- package/dist/config/themes/components/baseComponent/light.d.ts +3 -2
- package/dist/config/themes/components/cascader/common.d.ts +2 -2
- package/dist/config/themes/components/cascader/dark.d.ts +2 -2
- package/dist/config/themes/components/cascader/light.d.ts +2 -2
- package/dist/config/themes/components/progress/dark.d.ts +2 -3
- package/dist/config/themes/components/progress/light.d.ts +2 -3
- package/dist/config/themes/components/radio/dark.d.ts +2 -3
- package/dist/config/themes/components/radio/light.d.ts +2 -3
- package/dist/config/themes/components/switch/common.d.ts +2 -3
- package/dist/config/themes/components/switch/dark.d.ts +2 -3
- package/dist/config/themes/components/switch/light.d.ts +2 -3
- package/dist/enum/locale.d.ts +4 -0
- package/dist/fonts/MiSans-Medium.ttf +0 -0
- package/dist/fonts/MiSans-Regular.ttf +0 -0
- package/dist/hooks/useAnimationHook.d.ts +1 -1
- package/dist/hooks/useLocale.d.ts +17 -0
- package/dist/index.css +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.umd.js +1 -1
- package/dist/locale/index.d.ts +3 -0
- package/dist/locale/lang/en-us.d.ts +26 -0
- package/dist/locale/lang/zh-cn.d.ts +3 -0
- package/dist/types/themes/components.d.ts +7 -0
- package/dist/types/themes/extendThemes.d.ts +10 -0
- package/dist/utils/render.d.ts +3 -0
- package/dist/utils/typescript.d.ts +61 -0
- package/es/_virtual/virtual_svg-icons-register.mjs +1 -1
- package/es/assets/logo/logo-dark-full.svg.mjs +2 -2
- package/es/assets/logo/logo-light-full.svg.mjs +2 -2
- package/es/components/BaseButton/index.vue.mjs +14 -14
- package/es/components/BaseCascader/cssVar.d.ts +10 -0
- package/es/components/BaseCascader/cssVar.mjs +13 -0
- package/es/components/BaseCascader/index.vue.mjs +2 -2
- package/es/components/BaseCascader/index.vue2.mjs +19 -13
- package/es/components/BaseConfigProvider/constants.d.ts +3 -0
- package/es/components/BaseConfigProvider/constants.mjs +4 -0
- package/es/components/BaseConfigProvider/index.d.ts +2 -0
- package/es/components/BaseConfigProvider/index.vue.d.ts +18 -0
- package/es/components/BaseConfigProvider/index.vue.mjs +54 -0
- package/es/components/BaseConfigProvider/index.vue2.mjs +4 -0
- package/es/components/BaseConfigProvider/locale-base.d.ts +3 -0
- package/es/components/BaseConfigProvider/locale-base.mjs +9 -0
- package/es/components/BaseConfigProvider/locale-naive.d.ts +4 -0
- package/es/components/BaseConfigProvider/locale-naive.mjs +12 -0
- package/es/components/BaseConfigProvider/type.d.ts +17 -0
- package/es/components/BaseDataTable/index.vue.d.ts +1 -1
- package/es/components/BaseDataTable/index.vue2.mjs +13 -13
- package/es/components/BaseDialog/index.vue.d.ts +2 -2
- package/es/components/BaseDialog/index.vue.mjs +43 -43
- package/es/components/BaseInputNumber/index.vue.d.ts +0 -1
- package/es/components/BaseInputNumber/index.vue.mjs +1 -1
- package/es/components/BaseInputNumber/index.vue2.mjs +57 -57
- package/es/components/BaseLayout/ASide/index.vue.mjs +2 -2
- package/es/components/BaseLayout/ASide/index.vue2.mjs +27 -27
- package/es/components/BaseLayout/Default/index.vue.d.ts +8 -6
- package/es/components/BaseLayout/Default/index.vue.mjs +2 -2
- package/es/components/BaseLayout/Default/index.vue2.mjs +77 -73
- package/es/components/BaseLayout/Default/layoutHeader/index.vue.mjs +26 -19
- package/es/components/BaseLayout/Default/layoutMenu/components/first-level-menu.vue2.mjs +30 -30
- package/es/components/BaseLayout/Default/type.d.ts +7 -9
- package/es/components/BaseLayout/components/WrapFooter.vue.mjs +14 -14
- package/es/components/BaseLayout/components/WrapHeader.vue2.mjs +8 -8
- package/es/components/BaseLayout/components/WrapTab.vue.mjs +12 -12
- package/es/components/BaseLayout/index.vue.d.ts +1 -1
- package/es/components/BaseLayout/index.vue2.mjs +36 -36
- package/es/components/BaseNavIcon/index.vue2.mjs +14 -14
- package/es/components/BaseProductIntroduction/cssVar.d.ts +3 -0
- package/es/components/BaseProductIntroduction/cssVar.mjs +29 -24
- package/es/components/BaseProductIntroduction/index.vue.mjs +2 -2
- package/es/components/BaseProductIntroduction/index.vue2.mjs +94 -88
- package/es/components/BaseProgress/cssVar.d.ts +8 -0
- package/es/components/BaseProgress/cssVar.mjs +14 -0
- package/es/components/BaseProgress/index.d.ts +128 -3
- package/es/components/BaseProgress/index.mjs +22 -34
- package/es/components/BaseRadio/cssVar.d.ts +5 -0
- package/es/components/BaseRadio/cssVar.mjs +8 -0
- package/es/components/BaseRadio/index.vue.mjs +2 -2
- package/es/components/BaseRadio/index.vue2.mjs +17 -27
- package/es/components/BaseSelect/index.vue.d.ts +1 -1
- package/es/components/BaseSelect/index.vue.mjs +2 -2
- package/es/components/BaseSelect/index.vue2.mjs +32 -30
- package/es/components/BaseSlider/index.vue2.mjs +44 -44
- package/es/components/BaseSteps/index.d.ts +1 -0
- package/es/components/BaseSteps/steps.d.ts +25 -0
- package/es/components/BaseSteps/steps.mjs +27 -0
- package/es/components/BaseSwitch/cssVar.d.ts +7 -0
- package/es/components/BaseSwitch/cssVar.mjs +10 -0
- package/es/components/BaseSwitch/index.vue.mjs +2 -2
- package/es/components/BaseSwitch/index.vue2.mjs +16 -28
- package/es/components/BaseSystemActions/cssVar.d.ts +7 -0
- package/es/components/BaseSystemActions/cssVar.mjs +63 -0
- package/es/components/BaseSystemActions/index.d.ts +2 -0
- package/es/components/BaseSystemActions/index.vue.d.ts +13 -0
- package/es/components/BaseSystemActions/index.vue.mjs +7 -0
- package/es/components/BaseSystemActions/index.vue2.mjs +102 -0
- package/es/components/BaseSystemActions/type.d.ts +9 -0
- package/es/components/BaseTabs/cssVar.d.ts +4 -0
- package/es/components/BaseTabs/cssVar.mjs +7 -0
- package/es/components/BaseTabs/index.d.ts +2 -0
- package/es/components/BaseTabs/tabs.d.ts +699 -0
- package/es/components/BaseTabs/tabs.mjs +43 -0
- package/es/components/index.d.ts +4 -0
- package/es/config/themes/common.d.ts +1 -0
- package/es/config/themes/common.mjs +2 -1
- package/es/config/themes/components/baseComponent/dark.d.ts +3 -2
- package/es/config/themes/components/baseComponent/dark.mjs +13 -6
- package/es/config/themes/components/baseComponent/light.d.ts +3 -2
- package/es/config/themes/components/baseComponent/light.mjs +10 -5
- package/es/config/themes/components/button/common.mjs +4 -4
- package/es/config/themes/components/cascader/common.d.ts +2 -2
- package/es/config/themes/components/cascader/common.mjs +4 -2
- package/es/config/themes/components/cascader/dark.d.ts +2 -2
- package/es/config/themes/components/cascader/dark.mjs +6 -2
- package/es/config/themes/components/cascader/light.d.ts +2 -2
- package/es/config/themes/components/cascader/light.mjs +10 -6
- package/es/config/themes/components/dataTable/dark.mjs +2 -0
- package/es/config/themes/components/dataTable/light.mjs +2 -0
- package/es/config/themes/components/input/dark.mjs +1 -1
- package/es/config/themes/components/progress/dark.d.ts +2 -3
- package/es/config/themes/components/progress/light.d.ts +2 -3
- package/es/config/themes/components/radio/dark.d.ts +2 -3
- package/es/config/themes/components/radio/light.d.ts +2 -3
- package/es/config/themes/components/select/dark.mjs +3 -2
- package/es/config/themes/components/select/light.mjs +1 -0
- package/es/config/themes/components/slider/dark.mjs +2 -1
- package/es/config/themes/components/slider/light.mjs +2 -1
- package/es/config/themes/components/switch/common.d.ts +2 -3
- package/es/config/themes/components/switch/dark.d.ts +2 -3
- package/es/config/themes/components/switch/light.d.ts +2 -3
- package/es/enum/locale.d.ts +4 -0
- package/es/fonts/MiSans-Medium.ttf +0 -0
- package/es/fonts/MiSans-Regular.ttf +0 -0
- package/es/hooks/useAnimationHook.d.ts +1 -1
- package/es/hooks/useAnimationHook.mjs +17 -14
- package/es/hooks/useLocale.d.ts +17 -0
- package/es/hooks/useLocale.mjs +24 -0
- package/es/index.css +1 -1
- package/es/index.d.ts +2 -0
- package/es/index.mjs +69 -54
- package/es/locale/index.d.ts +3 -0
- package/es/locale/lang/en-us.d.ts +26 -0
- package/es/locale/lang/en-us.mjs +27 -0
- package/es/locale/lang/zh-cn.d.ts +3 -0
- package/es/locale/lang/zh-cn.mjs +27 -0
- package/es/node_modules/.pnpm/{@vueuse_core@13.0.0_vue@3.5.13_typescript@5.7.2_ → @vueuse_core@13.0.0_vue@3.5.22_typescript@5.7.2_}/node_modules/@vueuse/core/index.mjs +1 -1
- package/es/node_modules/.pnpm/es-toolkit@1.41.0/node_modules/es-toolkit/dist/compat/_internal/isDeepKey.mjs +12 -0
- package/es/node_modules/.pnpm/es-toolkit@1.41.0/node_modules/es-toolkit/dist/compat/_internal/toKey.mjs +6 -0
- package/es/node_modules/.pnpm/es-toolkit@1.41.0/node_modules/es-toolkit/dist/compat/object/get.mjs +44 -0
- package/es/node_modules/.pnpm/es-toolkit@1.41.0/node_modules/es-toolkit/dist/compat/util/toPath.mjs +21 -0
- package/es/node_modules/.pnpm/es-toolkit@1.41.0/node_modules/es-toolkit/dist/compat/util/toString.mjs +13 -0
- package/es/types/themes/components.d.ts +7 -0
- package/es/types/themes/extendThemes.d.ts +10 -0
- package/es/utils/render.d.ts +3 -0
- package/es/utils/render.mjs +9 -0
- package/es/utils/typescript.d.ts +61 -0
- package/lib/_virtual/virtual_svg-icons-register.js +1 -1
- package/lib/assets/logo/logo-dark-full.svg.js +1 -1
- package/lib/assets/logo/logo-light-full.svg.js +1 -1
- package/lib/components/BaseButton/index.vue.js +1 -1
- package/lib/components/BaseCascader/cssVar.d.ts +10 -0
- package/lib/components/BaseCascader/cssVar.js +1 -0
- package/lib/components/BaseCascader/index.vue.js +1 -1
- package/lib/components/BaseCascader/index.vue2.js +1 -1
- package/lib/components/BaseConfigProvider/constants.d.ts +3 -0
- package/lib/components/BaseConfigProvider/constants.js +1 -0
- package/lib/components/BaseConfigProvider/index.d.ts +2 -0
- package/lib/components/BaseConfigProvider/index.vue.d.ts +18 -0
- package/lib/components/BaseConfigProvider/index.vue.js +1 -0
- package/lib/components/BaseConfigProvider/index.vue2.js +1 -0
- package/lib/components/BaseConfigProvider/locale-base.d.ts +3 -0
- package/lib/components/BaseConfigProvider/locale-base.js +1 -0
- package/lib/components/BaseConfigProvider/locale-naive.d.ts +4 -0
- package/lib/components/BaseConfigProvider/locale-naive.js +1 -0
- package/lib/components/BaseConfigProvider/type.d.ts +17 -0
- package/lib/components/BaseDataTable/index.vue.d.ts +1 -1
- package/lib/components/BaseDataTable/index.vue2.js +1 -1
- package/lib/components/BaseDialog/index.vue.d.ts +2 -2
- package/lib/components/BaseDialog/index.vue.js +1 -1
- package/lib/components/BaseInputNumber/index.vue.d.ts +0 -1
- package/lib/components/BaseInputNumber/index.vue.js +1 -1
- package/lib/components/BaseInputNumber/index.vue2.js +1 -1
- package/lib/components/BaseLayout/ASide/index.vue.js +1 -1
- package/lib/components/BaseLayout/ASide/index.vue2.js +1 -1
- package/lib/components/BaseLayout/Default/index.vue.d.ts +8 -6
- package/lib/components/BaseLayout/Default/index.vue.js +1 -1
- package/lib/components/BaseLayout/Default/index.vue2.js +1 -1
- package/lib/components/BaseLayout/Default/layoutHeader/index.vue.js +1 -1
- package/lib/components/BaseLayout/Default/layoutMenu/components/first-level-menu.vue2.js +1 -1
- package/lib/components/BaseLayout/Default/type.d.ts +7 -9
- package/lib/components/BaseLayout/components/WrapFooter.vue.js +1 -1
- package/lib/components/BaseLayout/components/WrapHeader.vue2.js +1 -1
- package/lib/components/BaseLayout/components/WrapTab.vue.js +1 -1
- package/lib/components/BaseLayout/index.vue.d.ts +1 -1
- package/lib/components/BaseLayout/index.vue2.js +1 -1
- package/lib/components/BaseNavIcon/index.vue2.js +1 -1
- package/lib/components/BaseProductIntroduction/cssVar.d.ts +3 -0
- package/lib/components/BaseProductIntroduction/cssVar.js +1 -1
- package/lib/components/BaseProductIntroduction/index.vue.js +1 -1
- package/lib/components/BaseProductIntroduction/index.vue2.js +1 -1
- package/lib/components/BaseProgress/cssVar.d.ts +8 -0
- package/lib/components/BaseProgress/cssVar.js +1 -0
- package/lib/components/BaseProgress/index.d.ts +128 -3
- package/lib/components/BaseProgress/index.js +1 -1
- package/lib/components/BaseRadio/cssVar.d.ts +5 -0
- package/lib/components/BaseRadio/cssVar.js +1 -0
- package/lib/components/BaseRadio/index.vue.js +1 -1
- package/lib/components/BaseRadio/index.vue2.js +1 -1
- package/lib/components/BaseSelect/index.vue.d.ts +1 -1
- package/lib/components/BaseSelect/index.vue.js +1 -1
- package/lib/components/BaseSelect/index.vue2.js +1 -1
- package/lib/components/BaseSlider/index.vue2.js +1 -1
- package/lib/components/BaseSteps/index.d.ts +1 -0
- package/lib/components/BaseSteps/steps.d.ts +25 -0
- package/lib/components/BaseSteps/steps.js +1 -0
- package/lib/components/BaseSwitch/cssVar.d.ts +7 -0
- package/lib/components/BaseSwitch/cssVar.js +1 -0
- package/lib/components/BaseSwitch/index.vue.js +1 -1
- package/lib/components/BaseSwitch/index.vue2.js +1 -1
- package/lib/components/BaseSystemActions/cssVar.d.ts +7 -0
- package/lib/components/BaseSystemActions/cssVar.js +1 -0
- package/lib/components/BaseSystemActions/index.d.ts +2 -0
- package/lib/components/BaseSystemActions/index.vue.d.ts +13 -0
- package/lib/components/BaseSystemActions/index.vue.js +1 -0
- package/lib/components/BaseSystemActions/index.vue2.js +1 -0
- package/lib/components/BaseSystemActions/type.d.ts +9 -0
- package/lib/components/BaseTabs/cssVar.d.ts +4 -0
- package/lib/components/BaseTabs/cssVar.js +1 -0
- package/lib/components/BaseTabs/index.d.ts +2 -0
- package/lib/components/BaseTabs/tabs.d.ts +699 -0
- package/lib/components/BaseTabs/tabs.js +1 -0
- package/lib/components/index.d.ts +4 -0
- package/lib/config/themes/common.d.ts +1 -0
- package/lib/config/themes/common.js +1 -1
- package/lib/config/themes/components/baseComponent/dark.d.ts +3 -2
- package/lib/config/themes/components/baseComponent/dark.js +1 -1
- package/lib/config/themes/components/baseComponent/light.d.ts +3 -2
- package/lib/config/themes/components/baseComponent/light.js +1 -1
- package/lib/config/themes/components/button/common.js +1 -1
- package/lib/config/themes/components/cascader/common.d.ts +2 -2
- package/lib/config/themes/components/cascader/common.js +1 -1
- package/lib/config/themes/components/cascader/dark.d.ts +2 -2
- package/lib/config/themes/components/cascader/dark.js +1 -1
- package/lib/config/themes/components/cascader/light.d.ts +2 -2
- package/lib/config/themes/components/cascader/light.js +1 -1
- package/lib/config/themes/components/dataTable/dark.js +1 -1
- package/lib/config/themes/components/dataTable/light.js +1 -1
- package/lib/config/themes/components/input/dark.js +1 -1
- package/lib/config/themes/components/progress/dark.d.ts +2 -3
- package/lib/config/themes/components/progress/light.d.ts +2 -3
- package/lib/config/themes/components/radio/dark.d.ts +2 -3
- package/lib/config/themes/components/radio/light.d.ts +2 -3
- package/lib/config/themes/components/select/dark.js +1 -1
- package/lib/config/themes/components/select/light.js +1 -1
- package/lib/config/themes/components/slider/dark.js +1 -1
- package/lib/config/themes/components/slider/light.js +1 -1
- package/lib/config/themes/components/switch/common.d.ts +2 -3
- package/lib/config/themes/components/switch/dark.d.ts +2 -3
- package/lib/config/themes/components/switch/light.d.ts +2 -3
- package/lib/enum/locale.d.ts +4 -0
- package/lib/fonts/MiSans-Medium.ttf +0 -0
- package/lib/fonts/MiSans-Regular.ttf +0 -0
- package/lib/hooks/useAnimationHook.d.ts +1 -1
- package/lib/hooks/useAnimationHook.js +1 -1
- package/lib/hooks/useLocale.d.ts +17 -0
- package/lib/hooks/useLocale.js +1 -0
- package/lib/index.css +1 -1
- package/lib/index.d.ts +2 -0
- package/lib/index.js +1 -1
- package/lib/locale/index.d.ts +3 -0
- package/lib/locale/lang/en-us.d.ts +26 -0
- package/lib/locale/lang/en-us.js +1 -0
- package/lib/locale/lang/zh-cn.d.ts +3 -0
- package/lib/locale/lang/zh-cn.js +1 -0
- package/lib/node_modules/.pnpm/{@vueuse_core@13.0.0_vue@3.5.13_typescript@5.7.2_ → @vueuse_core@13.0.0_vue@3.5.22_typescript@5.7.2_}/node_modules/@vueuse/core/index.js +1 -1
- package/lib/node_modules/.pnpm/es-toolkit@1.41.0/node_modules/es-toolkit/dist/compat/_internal/isDeepKey.js +1 -0
- package/lib/node_modules/.pnpm/es-toolkit@1.41.0/node_modules/es-toolkit/dist/compat/_internal/toKey.js +1 -0
- package/lib/node_modules/.pnpm/es-toolkit@1.41.0/node_modules/es-toolkit/dist/compat/object/get.js +1 -0
- package/lib/node_modules/.pnpm/es-toolkit@1.41.0/node_modules/es-toolkit/dist/compat/util/toPath.js +1 -0
- package/lib/node_modules/.pnpm/es-toolkit@1.41.0/node_modules/es-toolkit/dist/compat/util/toString.js +1 -0
- package/lib/types/themes/components.d.ts +7 -0
- package/lib/types/themes/extendThemes.d.ts +10 -0
- package/lib/utils/render.d.ts +3 -0
- package/lib/utils/render.js +1 -0
- package/lib/utils/typescript.d.ts +61 -0
- package/package.json +3 -1
- package/es/components/BaseLayout/Default/layoutHeader/action.vue.mjs +0 -7
- package/es/components/BaseLayout/Default/layoutHeader/action.vue2.mjs +0 -85
- package/lib/components/BaseLayout/Default/layoutHeader/action.vue.js +0 -1
- package/lib/components/BaseLayout/Default/layoutHeader/action.vue2.js +0 -1
- /package/es/node_modules/.pnpm/{@vueuse_shared@13.0.0_vue@3.5.13_typescript@5.7.2_ → @vueuse_shared@13.0.0_vue@3.5.22_typescript@5.7.2_}/node_modules/@vueuse/shared/index.mjs +0 -0
- /package/lib/node_modules/.pnpm/{@vueuse_shared@13.0.0_vue@3.5.13_typescript@5.7.2_ → @vueuse_shared@13.0.0_vue@3.5.22_typescript@5.7.2_}/node_modules/@vueuse/shared/index.js +0 -0
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { defineComponent as s, computed as a, provide as c, createBlock as m, openBlock as d, unref as f, withCtx as l, createVNode as u, renderSlot as b } from "vue";
|
|
2
|
+
import { NConfigProvider as h } from "naive-ui";
|
|
3
|
+
import g from "../AppProvider/index.vue.mjs";
|
|
4
|
+
import { naiveLocales as v, naiveDateLocales as x } from "./locale-naive.mjs";
|
|
5
|
+
import { baseLocales as y } from "./locale-base.mjs";
|
|
6
|
+
import { BaseLocaleContextKey as p } from "./constants.mjs";
|
|
7
|
+
const S = /* @__PURE__ */ s({
|
|
8
|
+
__name: "index",
|
|
9
|
+
props: {
|
|
10
|
+
abstract: { type: Boolean },
|
|
11
|
+
breakpoints: {},
|
|
12
|
+
clsPrefix: {},
|
|
13
|
+
inlineThemeDisabled: { type: Boolean },
|
|
14
|
+
katex: {},
|
|
15
|
+
namespace: {},
|
|
16
|
+
preflightStyleDisabled: { type: Boolean },
|
|
17
|
+
styleMountTarget: {},
|
|
18
|
+
tag: {},
|
|
19
|
+
lang: {},
|
|
20
|
+
theme: {},
|
|
21
|
+
themeOverrides: {}
|
|
22
|
+
},
|
|
23
|
+
setup(e) {
|
|
24
|
+
const t = e, n = a(() => v[t.lang]), i = a(() => x[t.lang]), r = a(() => y[t.lang]);
|
|
25
|
+
return c(p, r), (o, k) => (d(), m(f(h), {
|
|
26
|
+
theme: e.theme,
|
|
27
|
+
"theme-overrides": e.themeOverrides,
|
|
28
|
+
abstract: e.abstract,
|
|
29
|
+
breakpoints: e.breakpoints,
|
|
30
|
+
"cls-prefix": e.clsPrefix,
|
|
31
|
+
"inline-theme-disabled": e.inlineThemeDisabled,
|
|
32
|
+
katex: e.katex,
|
|
33
|
+
namespace: e.namespace,
|
|
34
|
+
"preflight-style-disabled": e.preflightStyleDisabled,
|
|
35
|
+
"style-mount-target": e.styleMountTarget,
|
|
36
|
+
tag: e.tag,
|
|
37
|
+
locale: n.value,
|
|
38
|
+
"date-locale": i.value
|
|
39
|
+
}, {
|
|
40
|
+
default: l(() => [
|
|
41
|
+
u(g, null, {
|
|
42
|
+
default: l(() => [
|
|
43
|
+
b(o.$slots, "default")
|
|
44
|
+
]),
|
|
45
|
+
_: 3
|
|
46
|
+
})
|
|
47
|
+
]),
|
|
48
|
+
_: 3
|
|
49
|
+
}, 8, ["theme", "theme-overrides", "abstract", "breakpoints", "cls-prefix", "inline-theme-disabled", "katex", "namespace", "preflight-style-disabled", "style-mount-target", "tag", "locale", "date-locale"]));
|
|
50
|
+
}
|
|
51
|
+
});
|
|
52
|
+
export {
|
|
53
|
+
S as default
|
|
54
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ConfigProviderProps } from 'naive-ui';
|
|
2
|
+
import { LOCALE_LANG } from '../../enum/locale';
|
|
3
|
+
export type BaseLocaleLang = `${LOCALE_LANG}`;
|
|
4
|
+
export type BaseConfigProviderProps = {
|
|
5
|
+
abstract: boolean;
|
|
6
|
+
breakpoints?: ConfigProviderProps['breakpoints'];
|
|
7
|
+
clsPrefix?: ConfigProviderProps['clsPrefix'];
|
|
8
|
+
inlineThemeDisabled?: ConfigProviderProps['inlineThemeDisabled'];
|
|
9
|
+
katex?: ConfigProviderProps['katex'];
|
|
10
|
+
namespace?: ConfigProviderProps['namespace'];
|
|
11
|
+
preflightStyleDisabled?: ConfigProviderProps['preflightStyleDisabled'];
|
|
12
|
+
styleMountTarget?: ConfigProviderProps['styleMountTarget'];
|
|
13
|
+
tag?: ConfigProviderProps['tag'];
|
|
14
|
+
lang?: BaseLocaleLang;
|
|
15
|
+
theme?: ConfigProviderProps['theme'];
|
|
16
|
+
themeOverrides?: ConfigProviderProps['themeOverrides'];
|
|
17
|
+
};
|
|
@@ -924,7 +924,7 @@ declare const _default: import('vue').DefineComponent<PropsType, {}, {}, {}, {},
|
|
|
924
924
|
striped: boolean;
|
|
925
925
|
singleColumn: boolean;
|
|
926
926
|
flexHeight: boolean;
|
|
927
|
-
tableScroll: boolean;
|
|
928
927
|
transparent: boolean;
|
|
928
|
+
tableScroll: boolean;
|
|
929
929
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
930
930
|
export default _default;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { NDataTable as
|
|
2
|
-
import { defineComponent as
|
|
3
|
-
const
|
|
1
|
+
import { NDataTable as r } from "naive-ui";
|
|
2
|
+
import { defineComponent as o, computed as d, createBlock as i, openBlock as s, mergeProps as u } from "vue";
|
|
3
|
+
const g = /* @__PURE__ */ o({
|
|
4
4
|
__name: "index",
|
|
5
5
|
props: {
|
|
6
6
|
columns: { default: void 0 },
|
|
@@ -14,17 +14,17 @@ const c = /* @__PURE__ */ n({
|
|
|
14
14
|
themeOverrides: { default: void 0 },
|
|
15
15
|
flexHeight: { default: !0 }
|
|
16
16
|
},
|
|
17
|
-
setup(
|
|
18
|
-
const
|
|
19
|
-
const
|
|
20
|
-
return
|
|
17
|
+
setup(e) {
|
|
18
|
+
const a = e, l = d(() => {
|
|
19
|
+
const t = {};
|
|
20
|
+
return a.transparent && Object.assign(t, {
|
|
21
21
|
tdColor: "#0000",
|
|
22
22
|
thColor: "#0000"
|
|
23
|
-
}),
|
|
23
|
+
}), a.themeOverrides && Object.assign(t, a.themeOverrides), Object.keys(t).length ? t : void 0;
|
|
24
24
|
});
|
|
25
|
-
return (
|
|
26
|
-
const
|
|
27
|
-
return
|
|
25
|
+
return (t, f) => {
|
|
26
|
+
const n = r;
|
|
27
|
+
return s(), i(n, u({ class: "base-data-table h-full" }, t.$attrs, {
|
|
28
28
|
bordered: e.bordered,
|
|
29
29
|
columns: e.columns,
|
|
30
30
|
data: e.data,
|
|
@@ -32,11 +32,11 @@ const c = /* @__PURE__ */ n({
|
|
|
32
32
|
pagination: e.pagination,
|
|
33
33
|
"single-column": e.singleColumn,
|
|
34
34
|
striped: e.striped,
|
|
35
|
-
"theme-overrides":
|
|
35
|
+
"theme-overrides": l.value
|
|
36
36
|
}), null, 16, ["bordered", "columns", "data", "flexHeight", "pagination", "single-column", "striped", "theme-overrides"]);
|
|
37
37
|
};
|
|
38
38
|
}
|
|
39
39
|
});
|
|
40
40
|
export {
|
|
41
|
-
|
|
41
|
+
g as default
|
|
42
42
|
};
|
|
@@ -23,10 +23,10 @@ declare const __VLS_component: import('vue').DefineComponent<BaseDialogPropsType
|
|
|
23
23
|
width: string;
|
|
24
24
|
closable: boolean;
|
|
25
25
|
title: string | (() => import('vue').VNodeChild);
|
|
26
|
-
maskClosable: boolean;
|
|
27
|
-
closeOnEsc: boolean;
|
|
28
26
|
top: string;
|
|
29
27
|
center: boolean;
|
|
28
|
+
maskClosable: boolean;
|
|
29
|
+
closeOnEsc: boolean;
|
|
30
30
|
visible: boolean;
|
|
31
31
|
cardSize: "small" | "medium" | "large" | "huge";
|
|
32
32
|
showHeaderExtra: boolean;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { NModal as T, NCard as S } from "naive-ui";
|
|
2
|
-
import { defineComponent as I, mergeDefaults as P, computed as
|
|
2
|
+
import { defineComponent as I, mergeDefaults as P, computed as l, resolveComponent as E, createBlock as f, openBlock as c, mergeProps as u, withCtx as t, createVNode as r, createSlots as H, renderSlot as a, createElementBlock as y, toDisplayString as O, normalizeClass as L, unref as h } from "vue";
|
|
3
3
|
import { defaultProps as N } from "./options.mjs";
|
|
4
|
-
import
|
|
4
|
+
import C from "../BaseButton/index.vue.mjs";
|
|
5
5
|
const R = {
|
|
6
6
|
key: 1,
|
|
7
7
|
style: { margin: "0 auto" }
|
|
@@ -37,74 +37,74 @@ const R = {
|
|
|
37
37
|
btnSize: {}
|
|
38
38
|
}, N),
|
|
39
39
|
emits: ["update:visible", "cancel", "confirm"],
|
|
40
|
-
setup(
|
|
41
|
-
const
|
|
42
|
-
width: `${
|
|
40
|
+
setup(e, { emit: b }) {
|
|
41
|
+
const i = b, n = e, k = l(() => ({
|
|
42
|
+
width: `${n.width}`,
|
|
43
43
|
position: "fixed",
|
|
44
44
|
left: "50%",
|
|
45
|
-
top: `${
|
|
45
|
+
top: `${n.top}`,
|
|
46
46
|
transform: "translateX(-50%)"
|
|
47
|
-
})),
|
|
47
|
+
})), g = l(() => ({
|
|
48
48
|
lineHeight: "28px",
|
|
49
|
-
textAlign: `${
|
|
50
|
-
})),
|
|
51
|
-
get: () =>
|
|
52
|
-
set: (
|
|
53
|
-
|
|
49
|
+
textAlign: `${n.center ? "center" : "left"}`
|
|
50
|
+
})), v = l(() => n.btnPlacement === "center" ? "flex-c" : "flex justify-end"), s = l({
|
|
51
|
+
get: () => n.visible,
|
|
52
|
+
set: (o) => {
|
|
53
|
+
i("update:visible", o);
|
|
54
54
|
}
|
|
55
|
-
}),
|
|
56
|
-
|
|
57
|
-
},
|
|
58
|
-
|
|
55
|
+
}), d = () => {
|
|
56
|
+
s.value = !1, i("cancel");
|
|
57
|
+
}, x = () => {
|
|
58
|
+
i("confirm");
|
|
59
59
|
};
|
|
60
|
-
return (
|
|
60
|
+
return (o, m) => {
|
|
61
61
|
const $ = E("svg-icon"), B = S, w = T;
|
|
62
|
-
return
|
|
63
|
-
show:
|
|
64
|
-
"onUpdate:show":
|
|
62
|
+
return c(), f(w, u({
|
|
63
|
+
show: s.value,
|
|
64
|
+
"onUpdate:show": m[0] || (m[0] = (z) => s.value = z),
|
|
65
65
|
maskClosable: e.maskClosable,
|
|
66
66
|
closeOnEsc: e.closeOnEsc
|
|
67
|
-
},
|
|
68
|
-
default:
|
|
69
|
-
|
|
70
|
-
"header-style":
|
|
71
|
-
style:
|
|
67
|
+
}, o.$attrs), {
|
|
68
|
+
default: t(() => [
|
|
69
|
+
r(B, u({
|
|
70
|
+
"header-style": g.value,
|
|
71
|
+
style: k.value,
|
|
72
72
|
size: e.cardSize,
|
|
73
73
|
closable: e.closable,
|
|
74
74
|
segmented: { content: !0 }
|
|
75
|
-
},
|
|
76
|
-
default:
|
|
77
|
-
a(
|
|
75
|
+
}, o.$attrs), H({
|
|
76
|
+
default: t(() => [
|
|
77
|
+
a(o.$slots, "default")
|
|
78
78
|
]),
|
|
79
79
|
_: 2
|
|
80
80
|
}, [
|
|
81
|
-
|
|
81
|
+
o.$slots.header || e.title ? {
|
|
82
82
|
name: "header",
|
|
83
|
-
fn:
|
|
84
|
-
|
|
83
|
+
fn: t(() => [
|
|
84
|
+
o.$slots.header ? a(o.$slots, "header", { key: 0 }) : (c(), y("span", R, O(e.title), 1))
|
|
85
85
|
]),
|
|
86
86
|
key: "0"
|
|
87
87
|
} : void 0,
|
|
88
|
-
|
|
88
|
+
o.$slots["header-extra"] || e.showHeaderExtra ? {
|
|
89
89
|
name: "header-extra",
|
|
90
|
-
fn:
|
|
91
|
-
|
|
90
|
+
fn: t(() => [
|
|
91
|
+
o.$slots["header-extra"] ? a(o.$slots, "header-extra", { key: 0 }) : (c(), f($, {
|
|
92
92
|
key: 1,
|
|
93
93
|
icon: "operate-close",
|
|
94
94
|
class: "cursor-pointer active:scale-[0.95] text-[18px]",
|
|
95
|
-
onClick:
|
|
95
|
+
onClick: d
|
|
96
96
|
}))
|
|
97
97
|
]),
|
|
98
98
|
key: "1"
|
|
99
99
|
} : void 0,
|
|
100
|
-
|
|
100
|
+
o.$slots.footer || e.showFooter ? {
|
|
101
101
|
name: "footer",
|
|
102
|
-
fn:
|
|
103
|
-
|
|
102
|
+
fn: t(() => [
|
|
103
|
+
o.$slots.footer ? a(o.$slots, "footer", { key: 0 }) : (c(), y("div", {
|
|
104
104
|
key: 1,
|
|
105
|
-
class: L(["gap-[8px]",
|
|
105
|
+
class: L(["gap-[8px]", v.value])
|
|
106
106
|
}, [
|
|
107
|
-
|
|
107
|
+
r(h(C), {
|
|
108
108
|
icon: e.cancelIcon,
|
|
109
109
|
"icon-placement": e.cancelIconPlacement,
|
|
110
110
|
color: e.cancelColor,
|
|
@@ -114,9 +114,9 @@ const R = {
|
|
|
114
114
|
round: e.btnRound,
|
|
115
115
|
size: e.btnSize,
|
|
116
116
|
type: e.cancelType,
|
|
117
|
-
onClick:
|
|
117
|
+
onClick: d
|
|
118
118
|
}, null, 8, ["icon", "icon-placement", "color", "text-color", "content", "loading", "round", "size", "type"]),
|
|
119
|
-
|
|
119
|
+
r(h(C), {
|
|
120
120
|
icon: e.confirmIcon,
|
|
121
121
|
"icon-placement": e.confirmIconPlacement,
|
|
122
122
|
color: e.confirmColor,
|
|
@@ -126,7 +126,7 @@ const R = {
|
|
|
126
126
|
round: e.btnRound,
|
|
127
127
|
size: e.btnSize,
|
|
128
128
|
type: e.confirmType,
|
|
129
|
-
onClick:
|
|
129
|
+
onClick: x
|
|
130
130
|
}, null, 8, ["icon", "icon-placement", "color", "text-color", "content", "loading", "round", "size", "type"])
|
|
131
131
|
], 2))
|
|
132
132
|
]),
|
|
@@ -2685,7 +2685,6 @@ declare function __VLS_template(): {
|
|
|
2685
2685
|
};
|
|
2686
2686
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
2687
2687
|
declare const __VLS_component: import('vue').DefineComponent<PropsType, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<PropsType> & Readonly<{}>, {
|
|
2688
|
-
size: "small" | "medium" | "large";
|
|
2689
2688
|
prefixIcon: string;
|
|
2690
2689
|
suffixIcon: string;
|
|
2691
2690
|
addIcon: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./index.vue2.mjs";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../_virtual/_plugin-vue_export-helper.mjs";
|
|
4
|
-
const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-
|
|
4
|
+
const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-bc68fd8c"]]);
|
|
5
5
|
export {
|
|
6
6
|
m as default
|
|
7
7
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { NButton as
|
|
2
|
-
import { defineComponent as
|
|
1
|
+
import { NButton as w, NInputNumber as N } from "naive-ui";
|
|
2
|
+
import { defineComponent as S, shallowRef as k, ref as $, computed as p, watch as R, resolveComponent as D, createElementBlock as c, openBlock as t, normalizeStyle as M, normalizeClass as b, createBlock as d, createCommentVNode as a, createVNode as r, mergeProps as f, withCtx as u, createSlots as F, Fragment as A, renderSlot as x, createElementVNode as B } from "vue";
|
|
3
3
|
import H from "../../hooks/useNaiveConfigProvideContext.mjs";
|
|
4
4
|
const L = {
|
|
5
5
|
key: 1,
|
|
6
6
|
class: "inner-controls"
|
|
7
|
-
}, T = /* @__PURE__ */
|
|
7
|
+
}, T = /* @__PURE__ */ S({
|
|
8
8
|
name: "BaseInputNumber",
|
|
9
9
|
__name: "index",
|
|
10
10
|
props: {
|
|
@@ -17,18 +17,18 @@ const L = {
|
|
|
17
17
|
disabled: { type: Boolean },
|
|
18
18
|
min: {},
|
|
19
19
|
max: {},
|
|
20
|
-
size: {
|
|
20
|
+
size: {}
|
|
21
21
|
},
|
|
22
|
-
setup(
|
|
23
|
-
const
|
|
24
|
-
!
|
|
25
|
-
},
|
|
26
|
-
!
|
|
22
|
+
setup(n) {
|
|
23
|
+
const v = n, { mergedThemeOverridesRef: I } = H(), C = k({}), m = k({}), o = $(), s = p(() => v.disabled || !o.value?.addable), l = p(() => v.disabled || !o.value?.minusable), h = () => {
|
|
24
|
+
!o.value || s.value || o.value.handleAddClick();
|
|
25
|
+
}, g = () => {
|
|
26
|
+
!o.value || l.value || o.value.handleMinusClick();
|
|
27
27
|
};
|
|
28
|
-
return
|
|
29
|
-
() =>
|
|
28
|
+
return R(
|
|
29
|
+
() => I?.value?.InputNumber,
|
|
30
30
|
(e) => {
|
|
31
|
-
|
|
31
|
+
C.value = {
|
|
32
32
|
"--n-input-number-controls-color": e.controlsFontColor,
|
|
33
33
|
"--n-input-number-controls-color-disabled": e.controlFontColorDisabled,
|
|
34
34
|
"--n-input-number-inner-controls-width-large": e.innerControlsLargeWidth,
|
|
@@ -42,7 +42,7 @@ const L = {
|
|
|
42
42
|
"--n-input-number-inner-controls-border-radius-large": e.innerControlsLargeBorderRadius,
|
|
43
43
|
"--n-input-number-inner-controls-border-radius-medium": e.innerControlsMediumBorderRadius,
|
|
44
44
|
"--n-input-number-inner-controls-border-radius-small": e.innerControlsSmallBorderRadius
|
|
45
|
-
},
|
|
45
|
+
}, m.value = {
|
|
46
46
|
"--n-border": e.outerControlsBorderStyle,
|
|
47
47
|
"--n-border-disabled": e.outerControlsBorderStyleDisabled,
|
|
48
48
|
"--n-text-color": e.controlsFontColor,
|
|
@@ -56,82 +56,82 @@ const L = {
|
|
|
56
56
|
immediate: !0
|
|
57
57
|
}
|
|
58
58
|
), (e, W) => {
|
|
59
|
-
const
|
|
60
|
-
return
|
|
61
|
-
class: b(["base-input-number w-full", [`base-input-number--${
|
|
62
|
-
style:
|
|
59
|
+
const i = D("svg-icon"), y = w, z = N;
|
|
60
|
+
return t(), c("div", {
|
|
61
|
+
class: b(["base-input-number w-full", [`base-input-number--${n.size}`]]),
|
|
62
|
+
style: M([C.value, n.style])
|
|
63
63
|
}, [
|
|
64
|
-
|
|
64
|
+
n.controlsInner ? a("", !0) : (t(), d(y, f({
|
|
65
65
|
key: 0,
|
|
66
|
-
style:
|
|
67
|
-
ghost: !
|
|
66
|
+
style: m.value,
|
|
67
|
+
ghost: !l.value,
|
|
68
68
|
class: "outer-controls minus-btn"
|
|
69
69
|
}, e.$attrs, {
|
|
70
|
-
disabled:
|
|
71
|
-
size:
|
|
72
|
-
onClick:
|
|
70
|
+
disabled: l.value,
|
|
71
|
+
size: n.size,
|
|
72
|
+
onClick: g
|
|
73
73
|
}), {
|
|
74
|
-
default:
|
|
75
|
-
|
|
74
|
+
default: u(() => [
|
|
75
|
+
r(i, { icon: "operate-minus" })
|
|
76
76
|
]),
|
|
77
77
|
_: 1
|
|
78
78
|
}, 16, ["style", "ghost", "disabled", "size"])),
|
|
79
|
-
|
|
79
|
+
r(z, f({ class: "flex-1" }, e.$attrs, {
|
|
80
80
|
ref_key: "inputNumberRef",
|
|
81
|
-
ref:
|
|
81
|
+
ref: o,
|
|
82
82
|
"show-button": !1,
|
|
83
|
-
size:
|
|
84
|
-
disabled:
|
|
85
|
-
min:
|
|
86
|
-
max:
|
|
87
|
-
}),
|
|
88
|
-
suffix:
|
|
89
|
-
e.$slots.suffix ||
|
|
90
|
-
e.$slots.suffix ?
|
|
83
|
+
size: n.size,
|
|
84
|
+
disabled: n.disabled,
|
|
85
|
+
min: n.min,
|
|
86
|
+
max: n.max
|
|
87
|
+
}), F({
|
|
88
|
+
suffix: u(() => [
|
|
89
|
+
e.$slots.suffix || n.suffixIcon ? (t(), c(A, { key: 0 }, [
|
|
90
|
+
e.$slots.suffix ? x(e.$slots, "suffix", { key: 0 }, void 0, !0) : (t(), d(i, {
|
|
91
91
|
key: 1,
|
|
92
|
-
icon:
|
|
92
|
+
icon: n.suffixIcon
|
|
93
93
|
}, null, 8, ["icon"]))
|
|
94
|
-
], 64)) :
|
|
95
|
-
|
|
94
|
+
], 64)) : a("", !0),
|
|
95
|
+
n.controlsInner ? (t(), c("div", L, [
|
|
96
96
|
B("div", {
|
|
97
|
-
class: b(["add", [
|
|
98
|
-
onClick:
|
|
97
|
+
class: b(["add", [s.value ? "is-disabled" : ""]]),
|
|
98
|
+
onClick: h
|
|
99
99
|
}, [
|
|
100
|
-
|
|
100
|
+
r(i, { icon: "arrow-top" })
|
|
101
101
|
], 2),
|
|
102
102
|
B("div", {
|
|
103
|
-
class: b(["minus", [
|
|
104
|
-
onClick:
|
|
103
|
+
class: b(["minus", [l.value ? "is-disabled" : ""]]),
|
|
104
|
+
onClick: g
|
|
105
105
|
}, [
|
|
106
|
-
|
|
106
|
+
r(i, { icon: "arrow-down" })
|
|
107
107
|
], 2)
|
|
108
|
-
])) :
|
|
108
|
+
])) : a("", !0)
|
|
109
109
|
]),
|
|
110
110
|
_: 2
|
|
111
111
|
}, [
|
|
112
|
-
e.$slots.prefix ||
|
|
112
|
+
e.$slots.prefix || n.prefixIcon ? {
|
|
113
113
|
name: "prefix",
|
|
114
|
-
fn:
|
|
115
|
-
e.$slots.prefix ?
|
|
114
|
+
fn: u(() => [
|
|
115
|
+
e.$slots.prefix ? x(e.$slots, "prefix", { key: 0 }, void 0, !0) : (t(), d(i, {
|
|
116
116
|
key: 1,
|
|
117
|
-
icon:
|
|
117
|
+
icon: n.prefixIcon
|
|
118
118
|
}, null, 8, ["icon"]))
|
|
119
119
|
]),
|
|
120
120
|
key: "0"
|
|
121
121
|
} : void 0
|
|
122
122
|
]), 1040, ["size", "disabled", "min", "max"]),
|
|
123
|
-
|
|
123
|
+
n.controlsInner ? a("", !0) : (t(), d(y, f({
|
|
124
124
|
key: 1,
|
|
125
|
-
size:
|
|
126
|
-
ghost: !
|
|
127
|
-
style:
|
|
125
|
+
size: n.size,
|
|
126
|
+
ghost: !s.value,
|
|
127
|
+
style: m.value,
|
|
128
128
|
class: "outer-controls add-btn"
|
|
129
129
|
}, e.$attrs, {
|
|
130
|
-
disabled:
|
|
131
|
-
onClick:
|
|
130
|
+
disabled: s.value,
|
|
131
|
+
onClick: h
|
|
132
132
|
}), {
|
|
133
|
-
default:
|
|
134
|
-
|
|
133
|
+
default: u(() => [
|
|
134
|
+
r(i, { icon: "operate-add" })
|
|
135
135
|
]),
|
|
136
136
|
_: 1
|
|
137
137
|
}, 16, ["size", "ghost", "style", "disabled"]))
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./index.vue2.mjs";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
4
|
-
const
|
|
4
|
+
const e = /* @__PURE__ */ t(o, [["__scopeId", "data-v-c445f597"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
e as default
|
|
7
7
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { NScrollbar as
|
|
2
|
-
import { defineComponent as
|
|
3
|
-
import
|
|
4
|
-
const B = /* @__PURE__ */
|
|
1
|
+
import { NScrollbar as y } from "naive-ui";
|
|
2
|
+
import { defineComponent as m, shallowRef as l, watch as v, createElementBlock as S, openBlock as c, mergeProps as C, createElementVNode as s, normalizeStyle as a, normalizeClass as r, renderSlot as t, createBlock as g, withCtx as h } from "vue";
|
|
3
|
+
import b from "../../../hooks/useNaiveConfigProvideContext.mjs";
|
|
4
|
+
const B = /* @__PURE__ */ m({
|
|
5
5
|
__name: "index",
|
|
6
6
|
props: {
|
|
7
7
|
logoClass: {},
|
|
@@ -12,46 +12,46 @@ const B = /* @__PURE__ */ y({
|
|
|
12
12
|
footerClass: {},
|
|
13
13
|
footerStyle: {}
|
|
14
14
|
},
|
|
15
|
-
setup(
|
|
16
|
-
const { mergedThemeOverridesRef: d } =
|
|
17
|
-
return
|
|
15
|
+
setup(o) {
|
|
16
|
+
const { mergedThemeOverridesRef: d } = b(), n = l({}), i = l({}), u = l({});
|
|
17
|
+
return v(
|
|
18
18
|
() => d?.value?.Layout,
|
|
19
19
|
(e) => {
|
|
20
|
-
e && (
|
|
20
|
+
e && (n.value = {
|
|
21
21
|
"--n-color": e.siderColor || void 0
|
|
22
22
|
});
|
|
23
23
|
},
|
|
24
24
|
{
|
|
25
25
|
immediate: !0
|
|
26
26
|
}
|
|
27
|
-
), (e,
|
|
28
|
-
const f =
|
|
29
|
-
return
|
|
27
|
+
), (e, k) => {
|
|
28
|
+
const f = y;
|
|
29
|
+
return c(), S("aside", C({
|
|
30
30
|
class: "h-full w-full flex-col-stretch base-layout-aside",
|
|
31
|
-
style:
|
|
31
|
+
style: n.value
|
|
32
32
|
}, e.$attrs), [
|
|
33
|
-
|
|
34
|
-
class: r(["base-layout-aside-logo-wrap",
|
|
35
|
-
style:
|
|
33
|
+
s("div", {
|
|
34
|
+
class: r(["base-layout-aside-logo-wrap", o.logoClass]),
|
|
35
|
+
style: a([i.value, o.logoStyle])
|
|
36
36
|
}, [
|
|
37
|
-
|
|
37
|
+
t(e.$slots, "header", {}, void 0, !0)
|
|
38
38
|
], 6),
|
|
39
|
-
|
|
40
|
-
class: r(["h-full flex-1",
|
|
41
|
-
style:
|
|
39
|
+
s("div", {
|
|
40
|
+
class: r(["h-full flex-1", o.contentClass]),
|
|
41
|
+
style: a(o.contentStyle)
|
|
42
42
|
}, [
|
|
43
|
-
|
|
44
|
-
default:
|
|
45
|
-
|
|
43
|
+
o.contentScrollable ? (c(), g(f, { key: 0 }, {
|
|
44
|
+
default: h(() => [
|
|
45
|
+
t(e.$slots, "default", {}, void 0, !0)
|
|
46
46
|
]),
|
|
47
47
|
_: 3
|
|
48
|
-
})) :
|
|
48
|
+
})) : t(e.$slots, "default", { key: 1 }, void 0, !0)
|
|
49
49
|
], 6),
|
|
50
|
-
|
|
51
|
-
class: r(["base-layout-aside-footer",
|
|
52
|
-
style:
|
|
50
|
+
s("div", {
|
|
51
|
+
class: r(["base-layout-aside-footer", o.footerClass]),
|
|
52
|
+
style: a([u.value, o.footerStyle])
|
|
53
53
|
}, [
|
|
54
|
-
|
|
54
|
+
t(e.$slots, "footer", {}, void 0, !0)
|
|
55
55
|
], 6)
|
|
56
56
|
], 16);
|
|
57
57
|
};
|