base6-ui 1.1.12 → 1.1.14
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/index.d.ts +1 -0
- package/dist/components/BaseCascader/index.vue.d.ts +7 -0
- package/dist/components/BaseCascader/type.d.ts +6 -0
- package/dist/components/BaseDataTable/index.vue.d.ts +6 -9
- package/dist/components/BaseDialog/index.vue.d.ts +1 -0
- package/dist/components/BaseDialog/type.d.ts +1 -0
- package/dist/components/BaseLayout/Default/index.vue.d.ts +1 -1
- package/dist/components/BaseLayout/index.vue.d.ts +1 -1
- package/dist/components/BaseNavIcon/index.d.ts +2 -0
- package/dist/components/BaseNavIcon/index.vue.d.ts +13 -0
- package/dist/components/BaseNavIcon/type.d.ts +3 -0
- package/dist/components/BaseProductIntroduction/index.vue.d.ts +26 -1
- package/dist/components/index.d.ts +2 -0
- package/dist/config/themes/common/dark.d.ts +2 -0
- package/dist/config/themes/components/cascader/common.d.ts +2 -0
- package/dist/config/themes/components/cascader/dark.d.ts +2 -0
- package/dist/config/themes/components/cascader/light.d.ts +2 -0
- package/dist/config/themes/components/dialog/common.d.ts +1 -0
- package/dist/config/themes/components/dialog/dark.d.ts +1 -0
- package/dist/config/themes/components/dialog/light.d.ts +1 -0
- package/dist/globalMethods/modules/confirmTip.d.ts +2 -1
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/useAnimationHook.d.ts +3 -0
- package/dist/index.css +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.umd.js +1 -1
- 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/index.d.ts +1 -0
- package/es/components/BaseCascader/index.vue.d.ts +7 -0
- package/es/components/BaseCascader/index.vue.mjs +8 -0
- package/es/components/BaseCascader/index.vue2.mjs +27 -0
- package/es/components/BaseCascader/type.d.ts +6 -0
- package/es/components/BaseDataTable/index.vue.d.ts +6 -9
- package/es/components/BaseDataTable/index.vue.mjs +1 -1
- package/es/components/BaseDataTable/index.vue2.mjs +22 -61
- package/es/components/BaseDialog/index.vue.d.ts +1 -0
- package/es/components/BaseDialog/index.vue.mjs +45 -42
- package/es/components/BaseDialog/options.mjs +1 -0
- package/es/components/BaseDialog/type.d.ts +1 -0
- package/es/components/BaseInputNumber/index.vue2.mjs +56 -56
- package/es/components/BaseLayout/ASide/index.vue2.mjs +27 -27
- package/es/components/BaseLayout/Default/index.vue.d.ts +1 -1
- package/es/components/BaseLayout/Default/index.vue.mjs +1 -1
- package/es/components/BaseLayout/Default/index.vue2.mjs +53 -53
- package/es/components/BaseLayout/Default/layoutHeader/action.vue.mjs +2 -2
- package/es/components/BaseLayout/Default/layoutHeader/action.vue2.mjs +37 -34
- package/es/components/BaseLayout/Default/layoutMenu/components/first-level-menu.vue2.mjs +29 -29
- package/es/components/BaseLayout/Default/layoutSlider/index.vue.mjs +12 -12
- 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.d.ts +2 -0
- package/es/components/BaseNavIcon/index.vue.d.ts +13 -0
- package/es/components/BaseNavIcon/index.vue.mjs +7 -0
- package/es/components/BaseNavIcon/index.vue2.mjs +34 -0
- package/es/components/BaseNavIcon/type.d.ts +3 -0
- package/es/components/BaseProductIntroduction/cssVar.mjs +7 -4
- package/es/components/BaseProductIntroduction/index.vue.d.ts +26 -1
- package/es/components/BaseProductIntroduction/index.vue.mjs +1 -1
- package/es/components/BaseProductIntroduction/index.vue2.mjs +66 -73
- package/es/components/BaseRadio/index.vue2.mjs +17 -17
- package/es/components/BaseSelect/index.vue2.mjs +24 -24
- package/es/components/BaseSlider/index.vue2.mjs +44 -44
- package/es/components/BaseSwitch/index.vue2.mjs +18 -18
- package/es/components/index.d.ts +2 -0
- package/es/config/themes/common/dark.d.ts +2 -0
- package/es/config/themes/common/dark.mjs +30 -0
- package/es/config/themes/components/baseComponent/dark.mjs +2 -2
- package/es/config/themes/components/baseComponent/light.mjs +2 -2
- package/es/config/themes/components/button/dark.mjs +1 -0
- package/es/config/themes/components/button/light.mjs +1 -0
- package/es/config/themes/components/card/dark.mjs +7 -5
- package/es/config/themes/components/card/light.mjs +5 -3
- package/es/config/themes/components/cascader/common.d.ts +2 -0
- package/es/config/themes/components/cascader/common.mjs +8 -0
- package/es/config/themes/components/cascader/dark.d.ts +2 -0
- package/es/config/themes/components/cascader/dark.mjs +19 -0
- package/es/config/themes/components/cascader/light.d.ts +2 -0
- package/es/config/themes/components/cascader/light.mjs +17 -0
- package/es/config/themes/components/dialog/common.d.ts +1 -0
- package/es/config/themes/components/dialog/common.mjs +4 -3
- package/es/config/themes/components/dialog/dark.d.ts +1 -0
- package/es/config/themes/components/dialog/light.d.ts +1 -0
- package/es/config/themes/components/input/dark.mjs +23 -18
- package/es/config/themes/components/input/light.mjs +5 -0
- package/es/config/themes/dark.mjs +42 -38
- package/es/config/themes/index.mjs +9 -6
- package/es/config/themes/light.mjs +43 -41
- package/es/globalMethods/modules/confirmTip.d.ts +2 -1
- package/es/globalMethods/modules/confirmTip.mjs +12 -11
- package/es/hooks/index.d.ts +1 -0
- package/es/hooks/useAnimationHook.d.ts +3 -0
- package/es/hooks/useAnimationHook.mjs +34 -0
- package/es/index.css +1 -1
- package/es/index.d.ts +1 -0
- package/es/index.mjs +60 -54
- package/es/node_modules/.pnpm/es-toolkit@1.41.0/node_modules/es-toolkit/dist/_internal/isUnsafeProperty.mjs +6 -0
- package/es/node_modules/.pnpm/es-toolkit@1.41.0/node_modules/es-toolkit/dist/object/merge.mjs +16 -0
- package/es/node_modules/.pnpm/es-toolkit@1.41.0/node_modules/es-toolkit/dist/predicate/isPlainObject.mjs +9 -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/index.d.ts +1 -0
- package/lib/components/BaseCascader/index.vue.d.ts +7 -0
- package/lib/components/BaseCascader/index.vue.js +1 -0
- package/lib/components/BaseCascader/index.vue2.js +1 -0
- package/lib/components/BaseCascader/type.d.ts +6 -0
- package/lib/components/BaseDataTable/index.vue.d.ts +6 -9
- package/lib/components/BaseDataTable/index.vue.js +1 -1
- package/lib/components/BaseDataTable/index.vue2.js +1 -1
- package/lib/components/BaseDialog/index.vue.d.ts +1 -0
- package/lib/components/BaseDialog/index.vue.js +1 -1
- package/lib/components/BaseDialog/options.js +1 -1
- package/lib/components/BaseDialog/type.d.ts +1 -0
- package/lib/components/BaseInputNumber/index.vue2.js +1 -1
- package/lib/components/BaseLayout/ASide/index.vue2.js +1 -1
- package/lib/components/BaseLayout/Default/index.vue.d.ts +1 -1
- 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/action.vue.js +1 -1
- package/lib/components/BaseLayout/Default/layoutHeader/action.vue2.js +1 -1
- package/lib/components/BaseLayout/Default/layoutMenu/components/first-level-menu.vue2.js +1 -1
- package/lib/components/BaseLayout/Default/layoutSlider/index.vue.js +1 -1
- 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.d.ts +2 -0
- package/lib/components/BaseNavIcon/index.vue.d.ts +13 -0
- package/lib/components/BaseNavIcon/index.vue.js +1 -0
- package/lib/components/BaseNavIcon/index.vue2.js +1 -0
- package/lib/components/BaseNavIcon/type.d.ts +3 -0
- package/lib/components/BaseProductIntroduction/cssVar.js +1 -1
- package/lib/components/BaseProductIntroduction/index.vue.d.ts +26 -1
- package/lib/components/BaseProductIntroduction/index.vue.js +1 -1
- package/lib/components/BaseProductIntroduction/index.vue2.js +1 -1
- package/lib/components/BaseRadio/index.vue2.js +1 -1
- package/lib/components/BaseSelect/index.vue2.js +1 -1
- package/lib/components/BaseSlider/index.vue2.js +1 -1
- package/lib/components/BaseSwitch/index.vue2.js +1 -1
- package/lib/components/index.d.ts +2 -0
- package/lib/config/themes/common/dark.d.ts +2 -0
- package/lib/config/themes/common/dark.js +1 -0
- 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/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/cascader/common.d.ts +2 -0
- package/lib/config/themes/components/cascader/common.js +1 -0
- package/lib/config/themes/components/cascader/dark.d.ts +2 -0
- package/lib/config/themes/components/cascader/dark.js +1 -0
- package/lib/config/themes/components/cascader/light.d.ts +2 -0
- package/lib/config/themes/components/cascader/light.js +1 -0
- package/lib/config/themes/components/dialog/common.d.ts +1 -0
- package/lib/config/themes/components/dialog/common.js +1 -1
- package/lib/config/themes/components/dialog/dark.d.ts +1 -0
- package/lib/config/themes/components/dialog/light.d.ts +1 -0
- package/lib/config/themes/components/input/dark.js +1 -1
- package/lib/config/themes/components/input/light.js +1 -1
- package/lib/config/themes/dark.js +1 -1
- package/lib/config/themes/index.js +1 -1
- package/lib/config/themes/light.js +1 -1
- package/lib/globalMethods/modules/confirmTip.d.ts +2 -1
- package/lib/globalMethods/modules/confirmTip.js +1 -1
- package/lib/hooks/index.d.ts +1 -0
- package/lib/hooks/useAnimationHook.d.ts +3 -0
- package/lib/hooks/useAnimationHook.js +1 -0
- package/lib/index.css +1 -1
- package/lib/index.d.ts +1 -0
- package/lib/index.js +1 -1
- package/lib/node_modules/.pnpm/es-toolkit@1.41.0/node_modules/es-toolkit/dist/_internal/isUnsafeProperty.js +1 -0
- package/lib/node_modules/.pnpm/es-toolkit@1.41.0/node_modules/es-toolkit/dist/object/merge.js +1 -0
- package/lib/node_modules/.pnpm/es-toolkit@1.41.0/node_modules/es-toolkit/dist/predicate/isPlainObject.js +1 -0
- package/package.json +2 -1
package/es/components/index.d.ts
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
export * from './AppProvider';
|
|
2
2
|
export * from './BaseButton';
|
|
3
|
+
export * from './BaseCascader';
|
|
3
4
|
export * from './BaseDataTable';
|
|
4
5
|
export * from './BaseDialog';
|
|
5
6
|
export * from './BaseInputNumber';
|
|
6
7
|
export * from './BaseLayout';
|
|
8
|
+
export * from './BaseNavIcon';
|
|
7
9
|
export * from './BaseRadio';
|
|
8
10
|
export * from './BaseProductIntroduction';
|
|
9
11
|
export { default as BaseProgress } from './BaseProgress';
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { commonBase as r } from "../common.mjs";
|
|
2
|
+
import o from "../color/dark.mjs";
|
|
3
|
+
const i = {
|
|
4
|
+
heightSmall: r.heightSmall,
|
|
5
|
+
heightMedium: r.heightMedium,
|
|
6
|
+
heightLarge: r.heightLarge,
|
|
7
|
+
infoColor: o["color-gray-3"],
|
|
8
|
+
infoColorHover: o["color-gray-4"],
|
|
9
|
+
infoColorPressed: o["color-gray-5"],
|
|
10
|
+
infoColorSuppl: o["color-gray-4"],
|
|
11
|
+
primaryColor: o["color-primary-6"],
|
|
12
|
+
primaryColorHover: o["color-primary-5"],
|
|
13
|
+
primaryColorPressed: o["color-primary-7"],
|
|
14
|
+
primaryColorSuppl: o["color-primary-5"],
|
|
15
|
+
errorColor: o["color-red-6"],
|
|
16
|
+
errorColorHover: o["color-red-5"],
|
|
17
|
+
errorColorPressed: o["color-red-7"],
|
|
18
|
+
errorColorSuppl: o["color-red-5"],
|
|
19
|
+
successColor: o["color-green-6"],
|
|
20
|
+
successColorHover: o["color-green-5"],
|
|
21
|
+
successColorPressed: o["color-green-7"],
|
|
22
|
+
successColorSuppl: o["color-green-5"],
|
|
23
|
+
warningColor: o["color-origin-6"],
|
|
24
|
+
warningColorHover: o["color-origin-5"],
|
|
25
|
+
warningColorPressed: o["color-origin-7"],
|
|
26
|
+
warningColorSuppl: o["color-origin-5"]
|
|
27
|
+
};
|
|
28
|
+
export {
|
|
29
|
+
i as commonDark
|
|
30
|
+
};
|
|
@@ -120,9 +120,9 @@ const l = {
|
|
|
120
120
|
/* 悬停状态文字颜色 */
|
|
121
121
|
tabTextColorDisabledSegment: o["color-text-4"],
|
|
122
122
|
/* 禁用状态文字颜色 */
|
|
123
|
-
tabPaddingSmallSegment: "
|
|
123
|
+
tabPaddingSmallSegment: "4px 12px",
|
|
124
124
|
tabPaddingMediumSegment: "6px 12px",
|
|
125
|
-
tabPaddingLargeSegment: "
|
|
125
|
+
tabPaddingLargeSegment: "7px 16px",
|
|
126
126
|
tabGapSmallSegment: "12px",
|
|
127
127
|
tabGapMediumSegment: "12px ",
|
|
128
128
|
tabGapLargeSegment: "12px ",
|
|
@@ -218,9 +218,9 @@ const l = {
|
|
|
218
218
|
/* 悬停状态文字颜色 */
|
|
219
219
|
tabTextColorDisabledSegment: o["color-gray-4"],
|
|
220
220
|
/* 禁用状态文字颜色 */
|
|
221
|
-
tabPaddingSmallSegment: "
|
|
221
|
+
tabPaddingSmallSegment: "4px 12px",
|
|
222
222
|
tabPaddingMediumSegment: "6px 12px",
|
|
223
|
-
tabPaddingLargeSegment: "
|
|
223
|
+
tabPaddingLargeSegment: "7px 16px",
|
|
224
224
|
tabGapSmallSegment: "12px",
|
|
225
225
|
tabGapMediumSegment: "12px ",
|
|
226
226
|
tabGapLargeSegment: "12px ",
|
|
@@ -62,6 +62,7 @@ const d = {
|
|
|
62
62
|
textColorPrimary: r["color-text-5"],
|
|
63
63
|
textColorSuccess: r["color-text-5"],
|
|
64
64
|
textColorWarning: r["color-text-5"],
|
|
65
|
+
textColorText: "#FFFFFF",
|
|
65
66
|
textColorDisabled: "rgba(255, 255, 255, 0.75)",
|
|
66
67
|
textColorDisabledError: "rgba(255, 255, 255, 0.75)",
|
|
67
68
|
textColorDisabledPrimary: "rgba(255, 255, 255, 0.75)",
|
|
@@ -58,6 +58,7 @@ const c = {
|
|
|
58
58
|
textColorFocus: o["color-gray-8"],
|
|
59
59
|
textColorHover: o["color-gray-8"],
|
|
60
60
|
textColorPressed: o["color-gray-8"],
|
|
61
|
+
textColorText: o["color-gray-10"],
|
|
61
62
|
textColorGhost: o["color-gray-8"],
|
|
62
63
|
textColorGhostError: o["color-red-6"],
|
|
63
64
|
textColorGhostPrimary: o["color-primary-6"],
|
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
import r from "../../color/dark.mjs";
|
|
2
2
|
import o from "../../token/dark.mjs";
|
|
3
|
-
const
|
|
4
|
-
color: o["bg-color-
|
|
3
|
+
const l = {
|
|
4
|
+
color: o["bg-color-3"],
|
|
5
5
|
paddingMedium: "16px 24px",
|
|
6
6
|
borderColor: r["color-gray-3"],
|
|
7
|
-
textColor: o["color-text-
|
|
7
|
+
textColor: o["color-text-3"],
|
|
8
|
+
titleTextColor: o["color-text-1"],
|
|
8
9
|
closeIconColor: o["color-text-1"],
|
|
9
10
|
titleFontSizeMedium: "20px",
|
|
10
|
-
borderRadius: "10px"
|
|
11
|
+
borderRadius: "10px",
|
|
12
|
+
colorModal: o["bg-color-3"]
|
|
11
13
|
};
|
|
12
14
|
export {
|
|
13
|
-
|
|
15
|
+
l as CardThemeDark
|
|
14
16
|
};
|
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
import o from "../../color/light.mjs";
|
|
2
2
|
import r from "../../token/light.mjs";
|
|
3
3
|
const t = {
|
|
4
|
-
color: r["bg-color-
|
|
4
|
+
color: r["bg-color-3"],
|
|
5
5
|
paddingMedium: "16px 24px",
|
|
6
6
|
borderColor: o["color-gray-3"],
|
|
7
|
-
textColor: o["color-gray-
|
|
7
|
+
textColor: o["color-gray-6"],
|
|
8
|
+
titleTextColor: o["color-gray-10"],
|
|
8
9
|
closeIconColor: o["color-gray-10"],
|
|
9
10
|
titleFontSizeMedium: "20px",
|
|
10
|
-
borderRadius: "10px"
|
|
11
|
+
borderRadius: "10px",
|
|
12
|
+
colorModal: r["bg-color-3"]
|
|
11
13
|
};
|
|
12
14
|
export {
|
|
13
15
|
t as CardThemeLight
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import o from "../../color/dark.mjs";
|
|
2
|
+
import r from "../../token/dark.mjs";
|
|
3
|
+
import { SelectThemeDark as e } from "../select/dark.mjs";
|
|
4
|
+
import { CascaderThemeCommon as t } from "./common.mjs";
|
|
5
|
+
const n = {
|
|
6
|
+
...t,
|
|
7
|
+
optionColorHover: o["color-primary-1"],
|
|
8
|
+
optionTextColorActive: o["color-primary-6"],
|
|
9
|
+
optionTextColorDisabled: r["color-text-4"],
|
|
10
|
+
menuColor: r["bg-color-3"],
|
|
11
|
+
peers: {
|
|
12
|
+
InternalSelection: {
|
|
13
|
+
...e?.peers?.InternalSelection
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
};
|
|
17
|
+
export {
|
|
18
|
+
n as CascaderThemeDark
|
|
19
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import o from "../../color/light.mjs";
|
|
2
|
+
import { SelectThemeLight as e } from "../select/light.mjs";
|
|
3
|
+
import { CascaderThemeCommon as r } from "./common.mjs";
|
|
4
|
+
const m = {
|
|
5
|
+
...r,
|
|
6
|
+
optionColorHover: o["color-primary-1"],
|
|
7
|
+
optionTextColorActive: o["color-primary-6"],
|
|
8
|
+
optionTextColorDisabled: o["color-gray-4"],
|
|
9
|
+
peers: {
|
|
10
|
+
InternalSelection: {
|
|
11
|
+
...e?.peers?.InternalSelection
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
};
|
|
15
|
+
export {
|
|
16
|
+
m as CascaderThemeLight
|
|
17
|
+
};
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
const
|
|
1
|
+
const p = {
|
|
2
2
|
closeMargin: "29px 24px 0 0",
|
|
3
3
|
contentMargin: "24px 0",
|
|
4
4
|
padding: "24px 24px 16px",
|
|
5
5
|
titleFontSize: "24px",
|
|
6
6
|
iconMargin: "0 6px 0 0",
|
|
7
|
-
iconSize: "24px"
|
|
7
|
+
iconSize: "24px",
|
|
8
|
+
borderRadius: "10px"
|
|
8
9
|
};
|
|
9
10
|
export {
|
|
10
|
-
|
|
11
|
+
p as DialogThemeCommon
|
|
11
12
|
};
|
|
@@ -1,24 +1,29 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import r from "../../color/dark.mjs";
|
|
2
|
+
import o from "../../token/dark.mjs";
|
|
3
3
|
import { InputThemeCommon as l } from "./common.mjs";
|
|
4
|
-
const
|
|
4
|
+
const d = {
|
|
5
5
|
...l,
|
|
6
|
-
border: `1px solid ${
|
|
6
|
+
border: `1px solid ${r["color-gray-4"]}`,
|
|
7
7
|
borderDisabled: "1px solid #0000",
|
|
8
|
-
borderError: `1px solid ${
|
|
9
|
-
borderFocus: `1.5px solid ${
|
|
10
|
-
borderHover: `1px solid ${
|
|
11
|
-
color:
|
|
12
|
-
colorDisabled:
|
|
13
|
-
colorFocus:
|
|
14
|
-
groupLabelBorder: `1px solid ${
|
|
15
|
-
groupLabelColor:
|
|
16
|
-
groupLabelTextColor:
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
8
|
+
borderError: `1px solid ${r["color-red-6"]}`,
|
|
9
|
+
borderFocus: `1.5px solid ${r["color-primary-6"]}`,
|
|
10
|
+
borderHover: `1px solid ${r["color-primary-5"]}`,
|
|
11
|
+
color: o["bg-color-3"],
|
|
12
|
+
colorDisabled: o["fill-color-1"],
|
|
13
|
+
colorFocus: o["bg-color-2"],
|
|
14
|
+
groupLabelBorder: `1px solid ${r["color-gray-4"]}`,
|
|
15
|
+
groupLabelColor: o["bg-color-3"],
|
|
16
|
+
groupLabelTextColor: o["color-text-1"],
|
|
17
|
+
suffixTextColor: r["color-gray-6"],
|
|
18
|
+
iconColor: r["color-gray-6"],
|
|
19
|
+
iconColorDisabled: o["color-text-4"],
|
|
20
|
+
iconColorHover: o["color-text-1"],
|
|
21
|
+
iconColorPressed: o["color-text-1"],
|
|
22
|
+
placeholderColor: r["color-gray-6"],
|
|
23
|
+
placeholderColorDisabled: o["color-text-4"],
|
|
24
|
+
textColor: r["color-gray-10"],
|
|
25
|
+
textColorDisabled: o["color-text-4"]
|
|
21
26
|
};
|
|
22
27
|
export {
|
|
23
|
-
|
|
28
|
+
d as InputThemeDark
|
|
24
29
|
};
|
|
@@ -11,6 +11,11 @@ const a = {
|
|
|
11
11
|
groupLabelBorder: `1px solid ${o["color-gray-4"]}`,
|
|
12
12
|
groupLabelColor: o["color-gray-2"],
|
|
13
13
|
groupLabelTextColor: o["color-gray-10"],
|
|
14
|
+
suffixTextColor: o["color-gray-6"],
|
|
15
|
+
iconColor: o["color-gray-6"],
|
|
16
|
+
iconColorDisabled: o["color-gray-4"],
|
|
17
|
+
iconColorHover: o["color-gray-10"],
|
|
18
|
+
iconColorPressed: o["color-gray-10"],
|
|
14
19
|
placeholderColor: o["color-gray-6"],
|
|
15
20
|
placeholderColorDisabled: o["color-gray-4"],
|
|
16
21
|
textColor: o["color-gray-10"],
|
|
@@ -1,53 +1,57 @@
|
|
|
1
1
|
import { AlertThemeDark as r } from "./components/alert/dark.mjs";
|
|
2
2
|
import { ButtonThemeDark as e } from "./components/button/dark.mjs";
|
|
3
3
|
import { CardThemeDark as m } from "./components/card/dark.mjs";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
4
|
+
import { CascaderThemeDark as o } from "./components/cascader/dark.mjs";
|
|
5
|
+
import { CheckboxThemeDark as a } from "./components/checkbox/dark.mjs";
|
|
6
|
+
import { DataTableThemeDark as t } from "./components/dataTable/dark.mjs";
|
|
7
|
+
import { DatePickerThemeDark as i } from "./components/datePicker/dark.mjs";
|
|
8
|
+
import { DialogThemeDark as T } from "./components/dialog/dark.mjs";
|
|
9
|
+
import { DropdownThemeDark as D } from "./components/dropdown/dark.mjs";
|
|
10
|
+
import { FormThemeDark as p } from "./components/form/dark.mjs";
|
|
11
|
+
import { InputThemeDark as k } from "./components/input/dark.mjs";
|
|
11
12
|
import { InputNumberThemeDark as h } from "./components/inputNumber/dark.mjs";
|
|
12
|
-
import { LayoutThemeDark as
|
|
13
|
-
import { MenuThemeDark as
|
|
14
|
-
import { ProgressThemeDark as
|
|
15
|
-
import { RadioThemeDark as
|
|
16
|
-
import { SelectThemeDark as
|
|
17
|
-
import { SliderThemeDark as
|
|
13
|
+
import { LayoutThemeDark as f } from "./components/layout/dark.mjs";
|
|
14
|
+
import { MenuThemeDark as n } from "./components/menu/dark.mjs";
|
|
15
|
+
import { ProgressThemeDark as c } from "./components/progress/dark.mjs";
|
|
16
|
+
import { RadioThemeDark as d } from "./components/radio/dark.mjs";
|
|
17
|
+
import { SelectThemeDark as s } from "./components/select/dark.mjs";
|
|
18
|
+
import { SliderThemeDark as u } from "./components/slider/dark.mjs";
|
|
18
19
|
import { SwitchThemeDark as l } from "./components/switch/dark.mjs";
|
|
19
|
-
import { TagThemeDark as
|
|
20
|
-
import { TransferThemeDark as
|
|
21
|
-
import { TreeThemeDark as
|
|
22
|
-
|
|
20
|
+
import { TagThemeDark as b } from "./components/tag/dark.mjs";
|
|
21
|
+
import { TransferThemeDark as g } from "./components/transfer/dark.mjs";
|
|
22
|
+
import { TreeThemeDark as P, TooltipThemeDark as S, TabsThemeDark as C, StepsThemeDark as w, PopconfirmThemeDark as B, PaginationThemeDark as I, BreadcrumbThemeDark as x } from "./components/baseComponent/dark.mjs";
|
|
23
|
+
import { commonDark as y } from "./common/dark.mjs";
|
|
24
|
+
const _ = {
|
|
25
|
+
common: y,
|
|
23
26
|
Alert: r,
|
|
24
|
-
Breadcrumb:
|
|
27
|
+
Breadcrumb: x,
|
|
25
28
|
Button: e,
|
|
26
29
|
Card: m,
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
30
|
+
Cascader: o,
|
|
31
|
+
Checkbox: a,
|
|
32
|
+
DataTable: t,
|
|
33
|
+
DatePicker: i,
|
|
34
|
+
Dialog: T,
|
|
35
|
+
Dropdown: D,
|
|
36
|
+
Form: p,
|
|
37
|
+
Input: k,
|
|
34
38
|
InputNumber: h,
|
|
35
|
-
Layout:
|
|
36
|
-
Menu:
|
|
37
|
-
Pagination:
|
|
38
|
-
Progress:
|
|
39
|
+
Layout: f,
|
|
40
|
+
Menu: n,
|
|
41
|
+
Pagination: I,
|
|
42
|
+
Progress: c,
|
|
39
43
|
Popconfirm: B,
|
|
40
|
-
Radio:
|
|
41
|
-
Select:
|
|
42
|
-
Slider:
|
|
44
|
+
Radio: d,
|
|
45
|
+
Select: s,
|
|
46
|
+
Slider: u,
|
|
43
47
|
Steps: w,
|
|
44
48
|
Switch: l,
|
|
45
|
-
Tabs:
|
|
46
|
-
Tag:
|
|
47
|
-
Transfer:
|
|
48
|
-
Tooltip:
|
|
49
|
-
Tree:
|
|
49
|
+
Tabs: C,
|
|
50
|
+
Tag: b,
|
|
51
|
+
Transfer: g,
|
|
52
|
+
Tooltip: S,
|
|
53
|
+
Tree: P
|
|
50
54
|
};
|
|
51
55
|
export {
|
|
52
|
-
|
|
56
|
+
_ as darkThemeOverrides
|
|
53
57
|
};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import "./components/alert/light.mjs";
|
|
2
2
|
import "./components/button/light.mjs";
|
|
3
3
|
import "./components/card/light.mjs";
|
|
4
|
+
import "./components/cascader/light.mjs";
|
|
4
5
|
import "./components/dataTable/light.mjs";
|
|
5
6
|
import "./components/datePicker/light.mjs";
|
|
6
7
|
import "./components/checkbox/light.mjs";
|
|
@@ -24,6 +25,7 @@ import "./common/light.mjs";
|
|
|
24
25
|
import "./components/alert/dark.mjs";
|
|
25
26
|
import "./components/button/dark.mjs";
|
|
26
27
|
import "./components/card/dark.mjs";
|
|
28
|
+
import "./components/cascader/dark.mjs";
|
|
27
29
|
import "./components/checkbox/dark.mjs";
|
|
28
30
|
import "./components/dataTable/dark.mjs";
|
|
29
31
|
import "./components/datePicker/dark.mjs";
|
|
@@ -42,11 +44,12 @@ import "./components/switch/dark.mjs";
|
|
|
42
44
|
import "./components/tag/dark.mjs";
|
|
43
45
|
import "./components/transfer/dark.mjs";
|
|
44
46
|
import "./components/baseComponent/dark.mjs";
|
|
45
|
-
import
|
|
46
|
-
import {
|
|
47
|
-
|
|
47
|
+
import "./common/dark.mjs";
|
|
48
|
+
import { ChartsThemeDark as Y } from "./components/charts/dark.mjs";
|
|
49
|
+
import { ChartsThemeLight as _ } from "./components/charts/light.mjs";
|
|
50
|
+
const V = "n-config-provider";
|
|
48
51
|
export {
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
+
Y as ChartsThemeDark,
|
|
53
|
+
_ as ChartsThemeLight,
|
|
54
|
+
V as configProviderInjectionKey
|
|
52
55
|
};
|
|
@@ -1,57 +1,59 @@
|
|
|
1
1
|
import { AlertThemeLight as e } from "./components/alert/light.mjs";
|
|
2
2
|
import { ButtonThemeLight as m } from "./components/button/light.mjs";
|
|
3
3
|
import { CardThemeLight as r } from "./components/card/light.mjs";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
4
|
+
import { CascaderThemeLight as t } from "./components/cascader/light.mjs";
|
|
5
|
+
import { DataTableThemeLight as o } from "./components/dataTable/light.mjs";
|
|
6
|
+
import { DatePickerThemeLight as i } from "./components/datePicker/light.mjs";
|
|
7
|
+
import { CheckboxThemeLight as h } from "./components/checkbox/light.mjs";
|
|
8
|
+
import { DividerThemeLight as T } from "./components/divider/light.mjs";
|
|
9
|
+
import { DialogThemeLight as g } from "./components/dialog/light.mjs";
|
|
10
|
+
import { DropdownThemeLight as p } from "./components/dropdown/light.mjs";
|
|
11
|
+
import { FormThemeLight as a } from "./components/form/light.mjs";
|
|
11
12
|
import { InputThemeLight as L } from "./components/input/light.mjs";
|
|
12
|
-
import { InputNumberThemeLight as
|
|
13
|
-
import { LayoutThemeLight as
|
|
14
|
-
import { MenuThemeLight as
|
|
15
|
-
import { ProgressThemeLight as
|
|
16
|
-
import { RadioThemeLight as
|
|
17
|
-
import { SelectThemeLight as
|
|
13
|
+
import { InputNumberThemeLight as f } from "./components/inputNumber/light.mjs";
|
|
14
|
+
import { LayoutThemeLight as n } from "./components/layout/light.mjs";
|
|
15
|
+
import { MenuThemeLight as c } from "./components/menu/light.mjs";
|
|
16
|
+
import { ProgressThemeLight as d } from "./components/progress/light.mjs";
|
|
17
|
+
import { RadioThemeLight as s } from "./components/radio/light.mjs";
|
|
18
|
+
import { SelectThemeLight as u } from "./components/select/light.mjs";
|
|
18
19
|
import { SliderThemeLight as l } from "./components/slider/light.mjs";
|
|
19
|
-
import { SwitchThemeLight as
|
|
20
|
-
import { TagThemeLight as
|
|
21
|
-
import { TransferThemeLight as
|
|
22
|
-
import { TreeThemeLight as
|
|
23
|
-
import { commonLight as
|
|
24
|
-
const
|
|
25
|
-
common:
|
|
20
|
+
import { SwitchThemeLight as b } from "./components/switch/light.mjs";
|
|
21
|
+
import { TagThemeLight as D } from "./components/tag/light.mjs";
|
|
22
|
+
import { TransferThemeLight as P } from "./components/transfer/light.mjs";
|
|
23
|
+
import { TreeThemeLight as S, TooltipThemeLight as C, TabsThemeLight as k, StepsThemeLight as w, PopconfirmThemeLight as B, PaginationThemeLight as I, BreadcrumbThemeLight as v } from "./components/baseComponent/light.mjs";
|
|
24
|
+
import { commonLight as x } from "./common/light.mjs";
|
|
25
|
+
const ee = {
|
|
26
|
+
common: x,
|
|
26
27
|
Alert: e,
|
|
27
|
-
Breadcrumb:
|
|
28
|
+
Breadcrumb: v,
|
|
28
29
|
Button: m,
|
|
29
30
|
Card: r,
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
31
|
+
Cascader: t,
|
|
32
|
+
Checkbox: h,
|
|
33
|
+
DataTable: o,
|
|
34
|
+
DatePicker: i,
|
|
35
|
+
Divider: T,
|
|
36
|
+
Dialog: g,
|
|
37
|
+
Dropdown: p,
|
|
38
|
+
Form: a,
|
|
37
39
|
Input: L,
|
|
38
|
-
InputNumber:
|
|
39
|
-
Layout:
|
|
40
|
-
Menu:
|
|
41
|
-
Pagination:
|
|
42
|
-
Progress:
|
|
40
|
+
InputNumber: f,
|
|
41
|
+
Layout: n,
|
|
42
|
+
Menu: c,
|
|
43
|
+
Pagination: I,
|
|
44
|
+
Progress: d,
|
|
43
45
|
Popconfirm: B,
|
|
44
|
-
Radio:
|
|
45
|
-
Select:
|
|
46
|
+
Radio: s,
|
|
47
|
+
Select: u,
|
|
46
48
|
Slider: l,
|
|
47
49
|
Steps: w,
|
|
48
|
-
Switch:
|
|
50
|
+
Switch: b,
|
|
49
51
|
Tabs: k,
|
|
50
|
-
Tag:
|
|
51
|
-
Transfer:
|
|
52
|
-
Tooltip:
|
|
53
|
-
Tree:
|
|
52
|
+
Tag: D,
|
|
53
|
+
Transfer: P,
|
|
54
|
+
Tooltip: C,
|
|
55
|
+
Tree: S
|
|
54
56
|
};
|
|
55
57
|
export {
|
|
56
|
-
|
|
58
|
+
ee as lightThemeOverrides
|
|
57
59
|
};
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
+
import { VNodeChild } from 'vue';
|
|
1
2
|
import { DialogOptions, DialogReactive } from 'naive-ui';
|
|
2
|
-
export default function confirmTip(content: string, title?: string, options?: DialogOptions): Promise<DialogReactive>;
|
|
3
|
+
export default function confirmTip(content: string | (() => VNodeChild), title?: string | (() => VNodeChild), options?: DialogOptions): Promise<DialogReactive>;
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import { h as a } from "vue";
|
|
2
|
-
|
|
2
|
+
import { merge as p } from "../../node_modules/.pnpm/es-toolkit@1.41.0/node_modules/es-toolkit/dist/object/merge.mjs";
|
|
3
|
+
function u(e) {
|
|
3
4
|
return a("span", {}, e || "Tip");
|
|
4
5
|
}
|
|
5
|
-
const
|
|
6
|
+
const f = {
|
|
6
7
|
closeOnEsc: !1,
|
|
7
8
|
closable: !0,
|
|
8
9
|
maskClosable: !1,
|
|
9
|
-
positiveText: "
|
|
10
|
-
negativeText: "
|
|
10
|
+
positiveText: "确定",
|
|
11
|
+
negativeText: "取消",
|
|
11
12
|
negativeButtonProps: {
|
|
12
13
|
round: !0,
|
|
13
14
|
ghost: !1
|
|
@@ -24,22 +25,22 @@ const p = {
|
|
|
24
25
|
justifyContent: "center"
|
|
25
26
|
}
|
|
26
27
|
};
|
|
27
|
-
function
|
|
28
|
-
return new Promise((o,
|
|
28
|
+
function m(e, t, n) {
|
|
29
|
+
return new Promise((o, r) => {
|
|
29
30
|
if (!window.$dialog) return;
|
|
30
|
-
const
|
|
31
|
-
...
|
|
31
|
+
const i = p(f, n || {}), s = window.$dialog.warning({
|
|
32
|
+
...i,
|
|
32
33
|
content: e,
|
|
33
|
-
title: () =>
|
|
34
|
+
title: () => typeof t == "function" ? t() : u(t),
|
|
34
35
|
onPositiveClick: () => {
|
|
35
36
|
o(s);
|
|
36
37
|
},
|
|
37
38
|
onNegativeClick: () => {
|
|
38
|
-
|
|
39
|
+
r(new Error());
|
|
39
40
|
}
|
|
40
41
|
});
|
|
41
42
|
});
|
|
42
43
|
}
|
|
43
44
|
export {
|
|
44
|
-
|
|
45
|
+
m as default
|
|
45
46
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { useAnimationHook } from './useAnimationHook';
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
const u = () => ({
|
|
2
|
+
toggleAnimationByClipCircle: (a, i, e) => new Promise((o) => {
|
|
3
|
+
if (!document.startViewTransition) {
|
|
4
|
+
e(), o(!0);
|
|
5
|
+
return;
|
|
6
|
+
}
|
|
7
|
+
document.startViewTransition(() => {
|
|
8
|
+
e(), o(!0);
|
|
9
|
+
}).ready.then(() => {
|
|
10
|
+
const { clientX: t, clientY: n } = a, s = Math.hypot(
|
|
11
|
+
Math.max(t, innerWidth - t),
|
|
12
|
+
Math.max(n, innerHeight - n)
|
|
13
|
+
), r = [
|
|
14
|
+
`circle(0% at ${t}px ${n}px)`,
|
|
15
|
+
`circle(${s}px at ${t}px ${n}px)`
|
|
16
|
+
];
|
|
17
|
+
document.documentElement.animate(
|
|
18
|
+
{
|
|
19
|
+
// 如果要切换到暗色主题,我们在过渡的时候从半径 100% 的圆开始,到 0% 的圆结束
|
|
20
|
+
clipPath: i ? [...r].reverse() : r
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
duration: 400,
|
|
24
|
+
easing: "ease-in",
|
|
25
|
+
// 如果要切换到暗色主题,我们应该裁剪 view-transition-old(root) 的内容
|
|
26
|
+
pseudoElement: i ? "::view-transition-old(root)" : "::view-transition-new(root)"
|
|
27
|
+
}
|
|
28
|
+
);
|
|
29
|
+
});
|
|
30
|
+
})
|
|
31
|
+
});
|
|
32
|
+
export {
|
|
33
|
+
u as useAnimationHook
|
|
34
|
+
};
|