base6-ui 2.0.25 → 2.0.27
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/_utils/composable/use-omit-props.d.ts +2 -0
- package/dist/_utils/simply-omit.d.ts +1 -0
- package/dist/components/button-list/index.d.ts +2 -0
- package/dist/components/button-list/src/button-list.d.ts +35 -0
- package/dist/components/button-list/src/interface.d.ts +48 -0
- package/dist/components/data-table/data-table.d.ts +2 -7094
- package/dist/components/data-table/interface.d.ts +26 -2
- package/dist/components/index.d.ts +2 -0
- package/dist/components/shape-button/index.d.ts +2 -0
- package/dist/components/shape-button/src/cssVar.d.ts +7 -0
- package/dist/components/shape-button/src/interface.d.ts +667 -0
- package/dist/components/shape-button/src/shape-button.d.ts +4 -0
- package/dist/config/themes/token/dark.d.ts +4 -0
- package/dist/config/themes/token/light.d.ts +5 -0
- package/dist/index.css +1 -1
- package/dist/index.umd.js +3 -3
- package/es/_utils/composable/use-omit-props.d.ts +2 -0
- package/es/_utils/composable/use-omit-props.mjs +12 -0
- package/es/_utils/simply-omit.d.ts +1 -0
- package/es/_utils/simply-omit.mjs +9 -0
- package/es/_virtual/virtual_svg-icons-register.mjs +1 -1
- package/es/components/button-list/index.d.ts +2 -0
- package/es/components/button-list/src/button-list.d.ts +35 -0
- package/es/components/button-list/src/button-list.mjs +63 -0
- package/es/components/button-list/src/interface.d.ts +48 -0
- package/es/components/button-list/src/interface.mjs +12 -0
- package/es/components/data-table/data-table.d.ts +2 -7094
- package/es/components/data-table/data-table.mjs +34 -29
- package/es/components/data-table/interface.d.ts +26 -2
- package/es/components/data-table/interface.mjs +17 -7
- package/es/components/dialog/index.vue.mjs +3 -3
- package/es/components/dialog/options.mjs +1 -1
- package/es/components/global-header/index.vue.mjs +4 -3
- package/es/components/index.d.ts +2 -0
- package/es/components/layout/components/{WrapHeader.vue2.mjs → WrapHeader.vue.mjs} +1 -1
- package/es/components/layout/index.vue2.mjs +1 -1
- package/es/components/shape-button/index.d.ts +2 -0
- package/es/components/shape-button/src/cssVar.d.ts +7 -0
- package/es/components/shape-button/src/cssVar.mjs +65 -0
- package/es/components/shape-button/src/interface.d.ts +667 -0
- package/es/components/shape-button/src/interface.mjs +30 -0
- package/es/components/shape-button/src/shape-button.d.ts +4 -0
- package/es/components/shape-button/src/shape-button.mjs +52 -0
- package/es/components/system-actions/index.vue.mjs +2 -2
- package/es/components/system-actions/index.vue2.mjs +43 -48
- package/es/config/themes/components/baseComponent/light.mjs +15 -14
- package/es/config/themes/components/card/dark.mjs +1 -1
- package/es/config/themes/components/card/light.mjs +3 -2
- package/es/config/themes/components/checkbox/light.mjs +3 -2
- package/es/config/themes/components/dataTable/dark.mjs +3 -3
- package/es/config/themes/components/dataTable/light.mjs +3 -2
- package/es/config/themes/components/divider/light.mjs +4 -3
- package/es/config/themes/components/inputNumber/light.mjs +7 -5
- package/es/config/themes/components/layout/light.mjs +3 -2
- package/es/config/themes/components/popover/light.mjs +3 -2
- package/es/config/themes/components/radio/light.mjs +3 -2
- package/es/config/themes/components/switch/light.mjs +5 -4
- package/es/config/themes/index.mjs +8 -6
- package/es/config/themes/token/dark.d.ts +4 -0
- package/es/config/themes/token/dark.mjs +8 -3
- package/es/config/themes/token/light.d.ts +5 -0
- package/es/config/themes/token/light.mjs +10 -5
- package/es/globalMethods/modules/confirmTip.mjs +12 -11
- package/es/index.css +1 -1
- package/es/index.mjs +104 -96
- package/es/locale/lang/en-us.mjs +1 -1
- package/es/locale/lang/zh-cn.mjs +1 -1
- package/es/node_modules/.pnpm/es-toolkit@1.41.0/node_modules/es-toolkit/dist/compat/_internal/getSymbols.mjs +6 -0
- package/es/node_modules/.pnpm/es-toolkit@1.41.0/node_modules/es-toolkit/dist/compat/_internal/getTag.mjs +6 -0
- package/es/node_modules/.pnpm/es-toolkit@1.41.0/node_modules/es-toolkit/dist/compat/_internal/tags.mjs +25 -0
- package/es/node_modules/.pnpm/es-toolkit@1.41.0/node_modules/es-toolkit/dist/object/cloneDeep.mjs +7 -0
- package/es/node_modules/.pnpm/es-toolkit@1.41.0/node_modules/es-toolkit/dist/object/cloneDeepWith.mjs +127 -0
- package/es/node_modules/.pnpm/es-toolkit@1.41.0/node_modules/es-toolkit/dist/predicate/isPrimitive.mjs +6 -0
- package/es/node_modules/.pnpm/es-toolkit@1.41.0/node_modules/es-toolkit/dist/predicate/isTypedArray.mjs +6 -0
- package/es/node_modules/.pnpm/naive-ui@2.43.1_vue@3.5.22_typescript@5.7.2_/node_modules/naive-ui/es/_utils/css/format-length.mjs +22 -0
- package/lib/_utils/composable/use-omit-props.d.ts +2 -0
- package/lib/_utils/composable/use-omit-props.js +1 -0
- package/lib/_utils/simply-omit.d.ts +1 -0
- package/lib/_utils/simply-omit.js +1 -0
- package/lib/_virtual/virtual_svg-icons-register.js +1 -1
- package/lib/components/button-list/index.d.ts +2 -0
- package/lib/components/button-list/src/button-list.d.ts +35 -0
- package/lib/components/button-list/src/button-list.js +1 -0
- package/lib/components/button-list/src/interface.d.ts +48 -0
- package/lib/components/button-list/src/interface.js +1 -0
- package/lib/components/data-table/data-table.d.ts +2 -7094
- package/lib/components/data-table/data-table.js +1 -1
- package/lib/components/data-table/interface.d.ts +26 -2
- package/lib/components/data-table/interface.js +1 -1
- package/lib/components/dialog/index.vue.js +1 -1
- package/lib/components/dialog/options.js +1 -1
- package/lib/components/global-header/index.vue.js +1 -1
- package/lib/components/index.d.ts +2 -0
- package/lib/components/layout/components/WrapHeader.vue.js +1 -0
- package/lib/components/layout/index.vue2.js +1 -1
- package/lib/components/shape-button/index.d.ts +2 -0
- package/lib/components/shape-button/src/cssVar.d.ts +7 -0
- package/lib/components/shape-button/src/cssVar.js +1 -0
- package/lib/components/shape-button/src/interface.d.ts +667 -0
- package/lib/components/shape-button/src/interface.js +1 -0
- package/lib/components/shape-button/src/shape-button.d.ts +4 -0
- package/lib/components/shape-button/src/shape-button.js +1 -0
- package/lib/components/system-actions/index.vue.js +1 -1
- package/lib/components/system-actions/index.vue2.js +1 -1
- package/lib/config/themes/components/baseComponent/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/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/divider/light.js +1 -1
- package/lib/config/themes/components/inputNumber/light.js +1 -1
- package/lib/config/themes/components/layout/light.js +1 -1
- package/lib/config/themes/components/popover/light.js +1 -1
- package/lib/config/themes/components/radio/light.js +1 -1
- package/lib/config/themes/components/switch/light.js +1 -1
- package/lib/config/themes/index.js +1 -1
- package/lib/config/themes/token/dark.d.ts +4 -0
- package/lib/config/themes/token/dark.js +1 -1
- package/lib/config/themes/token/light.d.ts +5 -0
- package/lib/config/themes/token/light.js +1 -1
- package/lib/globalMethods/modules/confirmTip.js +1 -1
- package/lib/index.css +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/lang/en-us.js +1 -1
- package/lib/locale/lang/zh-cn.js +1 -1
- package/lib/node_modules/.pnpm/es-toolkit@1.41.0/node_modules/es-toolkit/dist/compat/_internal/getSymbols.js +1 -0
- package/lib/node_modules/.pnpm/es-toolkit@1.41.0/node_modules/es-toolkit/dist/compat/_internal/getTag.js +1 -0
- package/lib/node_modules/.pnpm/es-toolkit@1.41.0/node_modules/es-toolkit/dist/compat/_internal/tags.js +1 -0
- package/lib/node_modules/.pnpm/es-toolkit@1.41.0/node_modules/es-toolkit/dist/object/cloneDeep.js +1 -0
- package/lib/node_modules/.pnpm/es-toolkit@1.41.0/node_modules/es-toolkit/dist/object/cloneDeepWith.js +1 -0
- package/lib/node_modules/.pnpm/es-toolkit@1.41.0/node_modules/es-toolkit/dist/predicate/isPrimitive.js +1 -0
- package/lib/node_modules/.pnpm/es-toolkit@1.41.0/node_modules/es-toolkit/dist/predicate/isTypedArray.js +1 -0
- package/lib/node_modules/.pnpm/naive-ui@2.43.1_vue@3.5.22_typescript@5.7.2_/node_modules/naive-ui/es/_utils/css/format-length.js +1 -0
- package/package.json +1 -1
- package/es/components/system-actions/cssVar.mjs +0 -65
- package/lib/components/layout/components/WrapHeader.vue2.js +0 -1
- package/lib/components/system-actions/cssVar.js +0 -1
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { defineComponent as u, createVNode as i, mergeProps as m, computed as r, resolveComponent as a } from "vue";
|
|
2
|
+
import { NButton as c } from "naive-ui";
|
|
3
|
+
import { bodenShapeButtonProps as p, bodenShapeButtonExtendProps as h } from "./interface.mjs";
|
|
4
|
+
import { getButtonThemeOverrides as l } from "./cssVar.mjs";
|
|
5
|
+
import { useOmitProps as f } from "../../../_utils/composable/use-omit-props.mjs";
|
|
6
|
+
import g from "../../../hooks/useNaiveConfigProvideContext.mjs";
|
|
7
|
+
const v = "BodenShapeButton", $ = /* @__PURE__ */ u({
|
|
8
|
+
name: v,
|
|
9
|
+
props: p,
|
|
10
|
+
slots: Object,
|
|
11
|
+
setup(e) {
|
|
12
|
+
const o = f(e, h), t = g(), n = r(() => {
|
|
13
|
+
const {
|
|
14
|
+
name: d = "light"
|
|
15
|
+
} = t?.mergedThemeRef.value || {};
|
|
16
|
+
return d !== "light";
|
|
17
|
+
}), s = r(() => ({
|
|
18
|
+
paddingMedium: "0",
|
|
19
|
+
borderRadiusMedium: e.shape === "circle" ? "50%" : "10px",
|
|
20
|
+
...l(n.value)
|
|
21
|
+
}));
|
|
22
|
+
return {
|
|
23
|
+
containerStyle: r(() => ({
|
|
24
|
+
width: `${e.width}px`,
|
|
25
|
+
minHeight: `${e.height}px`
|
|
26
|
+
})),
|
|
27
|
+
buttonProps: o,
|
|
28
|
+
shapeThemeOverrides: s
|
|
29
|
+
};
|
|
30
|
+
},
|
|
31
|
+
render() {
|
|
32
|
+
const {
|
|
33
|
+
$props: e,
|
|
34
|
+
$attrs: o,
|
|
35
|
+
$slots: t
|
|
36
|
+
} = this, n = {
|
|
37
|
+
...t,
|
|
38
|
+
default: () => t.default ? t.default() : e.content,
|
|
39
|
+
icon: () => t.icon ? t.icon() : e.icon ? i(a("SvgIcon"), {
|
|
40
|
+
icon: e.icon
|
|
41
|
+
}, null) : void 0
|
|
42
|
+
};
|
|
43
|
+
return i(c, m(o, this.buttonProps, {
|
|
44
|
+
class: "boden-shape-button",
|
|
45
|
+
style: this.containerStyle,
|
|
46
|
+
themeOverrides: this.shapeThemeOverrides
|
|
47
|
+
}), n);
|
|
48
|
+
}
|
|
49
|
+
});
|
|
50
|
+
export {
|
|
51
|
+
$ as default
|
|
52
|
+
};
|
|
@@ -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 a = /* @__PURE__ */ t(o, [["__scopeId", "data-v-d89a84b2"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
a as default
|
|
7
7
|
};
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { defineComponent as z, computed as
|
|
3
|
-
import { SvgIcon as
|
|
4
|
-
import
|
|
5
|
-
import
|
|
1
|
+
import { NDropdown as B, NButton as x } from "naive-ui";
|
|
2
|
+
import { defineComponent as z, computed as u, h as g, createElementBlock as I, openBlock as N, createVNode as t, unref as o, withCtx as s, createElementVNode as p, toDisplayString as T } from "vue";
|
|
3
|
+
import { SvgIcon as n } from "../../node_modules/.pnpm/lib-materials@0.0.8_typescript@5.7.2/node_modules/lib-materials/dist/lib-materials.mjs";
|
|
4
|
+
import d from "../shape-button/src/shape-button.mjs";
|
|
5
|
+
import "../shape-button/src/interface.mjs";
|
|
6
|
+
import { useLocale as L } from "../../hooks/useLocale.mjs";
|
|
7
|
+
import { useAnimationHook as O } from "../../hooks/useAnimationHook.mjs";
|
|
6
8
|
import w from "../../hooks/useNaiveConfigProvideContext.mjs";
|
|
7
|
-
|
|
8
|
-
const U = { class: "boden-system-actions-container" }, E = { class: "user-trigger" }, P = { class: "name" }, F = /* @__PURE__ */ z({
|
|
9
|
+
const D = { class: "boden-system-actions-container" }, U = { class: "user-trigger" }, E = { class: "name" }, F = /* @__PURE__ */ z({
|
|
9
10
|
name: "BaseSystemActions",
|
|
10
11
|
__name: "index",
|
|
11
12
|
props: {
|
|
@@ -14,74 +15,68 @@ const U = { class: "boden-system-actions-container" }, E = { class: "user-trigge
|
|
|
14
15
|
userInfo: {}
|
|
15
16
|
},
|
|
16
17
|
emits: ["toggleSystemTheme", "toggleSystemLang", "toggleUserItem"],
|
|
17
|
-
setup(
|
|
18
|
-
const
|
|
18
|
+
setup(l, { emit: f }) {
|
|
19
|
+
const i = l, r = f, y = w(), { t: m } = L(), { toggleAnimationByClipCircle: _ } = O(), c = u(() => {
|
|
19
20
|
const {
|
|
20
21
|
name: e = "light"
|
|
21
22
|
} = y?.mergedThemeRef.value || {};
|
|
22
23
|
return e !== "light";
|
|
23
|
-
}),
|
|
24
|
+
}), h = u(() => i.userActionOption && i.userActionOption.length ? i.userActionOption : [
|
|
24
25
|
{
|
|
25
|
-
label:
|
|
26
|
+
label: m("boden.systemActions.userCenter"),
|
|
26
27
|
key: "user-center",
|
|
27
|
-
icon: () =>
|
|
28
|
+
icon: () => g(n, { icon: "layout-user-center", size: "16" })
|
|
28
29
|
},
|
|
29
30
|
{
|
|
30
|
-
label:
|
|
31
|
+
label: m("boden.systemActions.logout"),
|
|
31
32
|
key: "logout",
|
|
32
|
-
icon: () =>
|
|
33
|
+
icon: () => g(n, { icon: "layout-logout", size: "16" })
|
|
33
34
|
}
|
|
34
35
|
]), S = () => {
|
|
35
|
-
|
|
36
|
+
r("toggleSystemLang");
|
|
36
37
|
}, k = (e) => {
|
|
37
|
-
|
|
38
|
-
},
|
|
39
|
-
|
|
40
|
-
},
|
|
41
|
-
_(e,
|
|
38
|
+
r("toggleSystemTheme", e);
|
|
39
|
+
}, v = (e, a) => {
|
|
40
|
+
r("toggleUserItem", e, a);
|
|
41
|
+
}, C = (e) => {
|
|
42
|
+
_(e, c.value, k);
|
|
42
43
|
};
|
|
43
|
-
return (e,
|
|
44
|
-
const
|
|
45
|
-
return
|
|
46
|
-
t(
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
default: n(() => [
|
|
51
|
-
t(l(o), {
|
|
52
|
-
icon: "layout-theme",
|
|
44
|
+
return (e, a) => {
|
|
45
|
+
const A = x, b = B;
|
|
46
|
+
return N(), I("div", D, [
|
|
47
|
+
t(o(d), { onClick: C }, {
|
|
48
|
+
default: s(() => [
|
|
49
|
+
t(o(n), {
|
|
50
|
+
icon: `layout-theme${c.value ? "-dark" : ""}`,
|
|
53
51
|
size: "16"
|
|
54
|
-
})
|
|
52
|
+
}, null, 8, ["icon"])
|
|
55
53
|
]),
|
|
56
54
|
_: 1
|
|
57
|
-
}
|
|
58
|
-
t(
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
}, {
|
|
62
|
-
default: n(() => [
|
|
63
|
-
t(l(o), {
|
|
55
|
+
}),
|
|
56
|
+
t(o(d), { onClick: S }, {
|
|
57
|
+
default: s(() => [
|
|
58
|
+
t(o(n), {
|
|
64
59
|
icon: "layout-lang",
|
|
65
60
|
size: "16"
|
|
66
61
|
})
|
|
67
62
|
]),
|
|
68
63
|
_: 1
|
|
69
|
-
}
|
|
64
|
+
}),
|
|
70
65
|
t(b, {
|
|
71
66
|
placement: "bottom",
|
|
72
67
|
trigger: "click",
|
|
73
|
-
options:
|
|
74
|
-
onSelect:
|
|
68
|
+
options: h.value,
|
|
69
|
+
onSelect: v
|
|
75
70
|
}, {
|
|
76
|
-
default:
|
|
77
|
-
|
|
78
|
-
t(
|
|
79
|
-
default:
|
|
80
|
-
t(
|
|
81
|
-
icon: `layout-user-${
|
|
71
|
+
default: s(() => [
|
|
72
|
+
p("div", U, [
|
|
73
|
+
t(A, { text: "" }, {
|
|
74
|
+
default: s(() => [
|
|
75
|
+
t(o(n), {
|
|
76
|
+
icon: `layout-user-${c.value ? "dark" : "light"}`,
|
|
82
77
|
size: "32"
|
|
83
78
|
}, null, 8, ["icon"]),
|
|
84
|
-
|
|
79
|
+
p("span", E, T(l.userInfo?.name), 1)
|
|
85
80
|
]),
|
|
86
81
|
_: 1
|
|
87
82
|
})
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import o from "../../color/light.mjs";
|
|
2
2
|
import { commonBase as r } from "../../common.mjs";
|
|
3
|
+
import "../../token/dark.mjs";
|
|
3
4
|
import e from "../../token/light.mjs";
|
|
4
|
-
const
|
|
5
|
+
const c = {
|
|
5
6
|
borderRadius: r.borderRadiusMedium,
|
|
6
7
|
padding: r.paddingBase,
|
|
7
8
|
peers: {
|
|
@@ -10,7 +11,7 @@ const l = {
|
|
|
10
11
|
textColor: e["color-text-1"]
|
|
11
12
|
}
|
|
12
13
|
}
|
|
13
|
-
},
|
|
14
|
+
}, d = {
|
|
14
15
|
peers: {
|
|
15
16
|
Popover: {
|
|
16
17
|
borderRadius: "10px"
|
|
@@ -19,11 +20,11 @@ const l = {
|
|
|
19
20
|
fontSize: r.fontSizeMedium,
|
|
20
21
|
iconColor: o["color-primary-6"],
|
|
21
22
|
iconSize: r.iconSizeBase
|
|
22
|
-
},
|
|
23
|
+
}, n = {
|
|
23
24
|
arrowColor: o["color-gray-6"],
|
|
24
25
|
nodeTextColor: o["color-gray-10"],
|
|
25
26
|
lineColor: o["color-gray-5"]
|
|
26
|
-
},
|
|
27
|
+
}, m = {
|
|
27
28
|
// itemBorderDisabled: '0px solid transparent',
|
|
28
29
|
// itemBorderRadius: commonBase.borderRadiusMedium,
|
|
29
30
|
// itemTextColor: lightToken['color-text-1'],
|
|
@@ -172,7 +173,7 @@ const l = {
|
|
|
172
173
|
// selectMarginLarge: string;
|
|
173
174
|
// prefixMarginLarge: string;
|
|
174
175
|
// suffixMarginLarge: string;
|
|
175
|
-
},
|
|
176
|
+
}, g = {
|
|
176
177
|
fontSize: "20px",
|
|
177
178
|
/* 面包屑整体字体大小 */
|
|
178
179
|
// itemLineHeight: string; /* 面包屑项的行高 */
|
|
@@ -190,7 +191,7 @@ const l = {
|
|
|
190
191
|
// itemBorderRadius: string; /* 面包屑项的圆角大小 */
|
|
191
192
|
separatorColor: o["color-gray-4"]
|
|
192
193
|
/* 分隔符颜色(如 > 或 / 的颜色)*/
|
|
193
|
-
},
|
|
194
|
+
}, p = {
|
|
194
195
|
/* Line 类型文字颜色 */
|
|
195
196
|
tabTextColorLine: o["color-gray-8"],
|
|
196
197
|
/* 普通文字颜色 */
|
|
@@ -289,7 +290,7 @@ const l = {
|
|
|
289
290
|
/* 标签页圆角 */
|
|
290
291
|
tabRoundBorderRadius: r.tabRoundBorderRadius
|
|
291
292
|
// closeBorderRadius: commonBase.tabBorderRadius /* 关闭按钮圆角 */
|
|
292
|
-
},
|
|
293
|
+
}, s = {
|
|
293
294
|
indicatorColorProcess: o["color-primary-6"],
|
|
294
295
|
/* 进行状态指示器背景色 */
|
|
295
296
|
indicatorTextColorWait: o["color-gray-6"],
|
|
@@ -347,11 +348,11 @@ const l = {
|
|
|
347
348
|
/* 中尺寸指示器图标大小 */
|
|
348
349
|
};
|
|
349
350
|
export {
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
351
|
+
g as BreadcrumbThemeLight,
|
|
352
|
+
m as PaginationThemeLight,
|
|
353
|
+
d as PopconfirmThemeLight,
|
|
354
|
+
s as StepsThemeLight,
|
|
355
|
+
p as TabsThemeLight,
|
|
356
|
+
c as TooltipThemeLight,
|
|
357
|
+
n as TreeThemeLight
|
|
357
358
|
};
|
|
@@ -4,7 +4,7 @@ import "../../token/light.mjs";
|
|
|
4
4
|
const c = {
|
|
5
5
|
color: o["bg-color-3"],
|
|
6
6
|
paddingMedium: "16px 24px",
|
|
7
|
-
borderColor: r["color-gray-
|
|
7
|
+
borderColor: r["color-gray-4"],
|
|
8
8
|
textColor: o["color-text-3"],
|
|
9
9
|
titleTextColor: o["color-text-1"],
|
|
10
10
|
closeIconColor: o["color-text-1"],
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import o from "../../color/light.mjs";
|
|
2
|
+
import "../../token/dark.mjs";
|
|
2
3
|
import r from "../../token/light.mjs";
|
|
3
|
-
const
|
|
4
|
+
const i = {
|
|
4
5
|
color: r["bg-color-3"],
|
|
5
6
|
paddingMedium: "16px 24px",
|
|
6
7
|
borderColor: o["color-gray-3"],
|
|
@@ -12,5 +13,5 @@ const t = {
|
|
|
12
13
|
colorModal: r["bg-color-3"]
|
|
13
14
|
};
|
|
14
15
|
export {
|
|
15
|
-
|
|
16
|
+
i as CardThemeLight
|
|
16
17
|
};
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import o from "../../color/light.mjs";
|
|
2
|
+
import "../../token/dark.mjs";
|
|
2
3
|
import r from "../../token/light.mjs";
|
|
3
4
|
import { CheckboxThemeCommon as e } from "./common.mjs";
|
|
4
|
-
const
|
|
5
|
+
const a = {
|
|
5
6
|
...e,
|
|
6
7
|
border: `1.5px solid ${o["color-gray-4"]}`,
|
|
7
8
|
borderChecked: `1.5px solid ${o["color-primary-6"]}`,
|
|
@@ -16,5 +17,5 @@ const d = {
|
|
|
16
17
|
textColorDisabled: o["color-gray-4"]
|
|
17
18
|
};
|
|
18
19
|
export {
|
|
19
|
-
|
|
20
|
+
a as CheckboxThemeLight
|
|
20
21
|
};
|
|
@@ -3,10 +3,10 @@ import o from "../../token/dark.mjs";
|
|
|
3
3
|
import "../../token/light.mjs";
|
|
4
4
|
import { DataTableThemeCommon as t } from "./common.mjs";
|
|
5
5
|
import { merge as e } from "../../../../node_modules/.pnpm/es-toolkit@1.41.0/node_modules/es-toolkit/dist/object/merge.mjs";
|
|
6
|
-
const
|
|
6
|
+
const c = e(
|
|
7
7
|
{
|
|
8
8
|
tdColor: o["bg-color-2"],
|
|
9
|
-
tdColorStriped:
|
|
9
|
+
tdColorStriped: "#29292B",
|
|
10
10
|
tdTextColor: r["color-gray-10"],
|
|
11
11
|
thColor: o["bg-color-2"],
|
|
12
12
|
thColorHover: o["bg-color-2"],
|
|
@@ -23,5 +23,5 @@ const d = e(
|
|
|
23
23
|
{ ...t }
|
|
24
24
|
);
|
|
25
25
|
export {
|
|
26
|
-
|
|
26
|
+
c as DataTableThemeDark
|
|
27
27
|
};
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import o from "../../color/light.mjs";
|
|
2
|
+
import "../../token/dark.mjs";
|
|
2
3
|
import r from "../../token/light.mjs";
|
|
3
4
|
import { DataTableThemeCommon as t } from "./common.mjs";
|
|
4
|
-
const
|
|
5
|
+
const m = {
|
|
5
6
|
...t,
|
|
6
7
|
tdColor: r["bg-color-2"],
|
|
7
8
|
tdColorStriped: o["color-gray-1"],
|
|
@@ -14,5 +15,5 @@ const g = {
|
|
|
14
15
|
borderColor: o["color-gray-3"]
|
|
15
16
|
};
|
|
16
17
|
export {
|
|
17
|
-
|
|
18
|
+
m as DataTableThemeLight
|
|
18
19
|
};
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import o from "../../color/light.mjs";
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
import "../../token/dark.mjs";
|
|
3
|
+
import r from "../../token/light.mjs";
|
|
4
|
+
import { InputNumberThemeCommon as l } from "./common.mjs";
|
|
5
|
+
const i = {
|
|
6
|
+
...l,
|
|
5
7
|
innerControlsBackground: o["color-gray-3"],
|
|
6
8
|
innerControlsDisabledBackground: o["color-gray-3"],
|
|
7
9
|
outerControlsBorderStyle: `1px solid ${o["color-gray-4"]}`,
|
|
8
|
-
outerControlsBackground: "",
|
|
10
|
+
outerControlsBackground: r["bg-color-3"],
|
|
9
11
|
outerControlsBorderStyleDisabled: `1px solid ${o["color-gray-2"]}`,
|
|
10
12
|
outerControlsBackgroundDisabled: o["color-gray-2"],
|
|
11
13
|
controlFontColorDisabled: o["color-gray-4"],
|
|
@@ -13,5 +15,5 @@ const e = {
|
|
|
13
15
|
outerControlsOpacityDisabled: 1
|
|
14
16
|
};
|
|
15
17
|
export {
|
|
16
|
-
|
|
18
|
+
i as InputNumberThemeLight
|
|
17
19
|
};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import o from "../../color/light.mjs";
|
|
2
|
+
import "../../token/dark.mjs";
|
|
2
3
|
import r from "../../token/light.mjs";
|
|
3
|
-
const
|
|
4
|
+
const t = {
|
|
4
5
|
headerColor: r["bg-color-4"],
|
|
5
6
|
siderColor: r["bg-color-4"],
|
|
6
7
|
// 自定义
|
|
@@ -8,5 +9,5 @@ const i = {
|
|
|
8
9
|
siderFooterIconBgColor: o["color-gray-4"]
|
|
9
10
|
};
|
|
10
11
|
export {
|
|
11
|
-
|
|
12
|
+
t as LayoutThemeLight
|
|
12
13
|
};
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { PopoverThemeCommon as o } from "./common.mjs";
|
|
2
|
+
import "../../token/dark.mjs";
|
|
2
3
|
import r from "../../token/light.mjs";
|
|
3
|
-
import
|
|
4
|
+
import m from "../../color/light.mjs";
|
|
4
5
|
const l = {
|
|
5
6
|
...o,
|
|
6
7
|
color: r["bg-color-3"],
|
|
7
|
-
textColor:
|
|
8
|
+
textColor: m["color-gray-10"]
|
|
8
9
|
};
|
|
9
10
|
export {
|
|
10
11
|
l as PopoverThemeLight
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import o from "../../color/light.mjs";
|
|
2
|
+
import "../../token/dark.mjs";
|
|
2
3
|
import r from "../../token/light.mjs";
|
|
3
|
-
const
|
|
4
|
+
const e = {
|
|
4
5
|
boxShadow: `inset 0 0 0 1.5px ${o["color-gray-4"]}`,
|
|
5
6
|
boxShadowActive: `inset 0 0 0 1.5px ${o["color-primary-6"]}`,
|
|
6
7
|
boxShadowActiveDisabled: `inset 0 0 0 1.5px ${o["color-primary-3"]}`,
|
|
@@ -14,5 +15,5 @@ const a = {
|
|
|
14
15
|
dotColorDisabled: r["bg-color-2"]
|
|
15
16
|
};
|
|
16
17
|
export {
|
|
17
|
-
|
|
18
|
+
e as RadioThemeLight
|
|
18
19
|
};
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import o from "../../color/light.mjs";
|
|
2
|
+
import "../../token/dark.mjs";
|
|
2
3
|
import r from "../../token/light.mjs";
|
|
3
|
-
import { SwitchThemeCommon as
|
|
4
|
-
const
|
|
5
|
-
...
|
|
4
|
+
import { SwitchThemeCommon as i } from "./common.mjs";
|
|
5
|
+
const m = {
|
|
6
|
+
...i,
|
|
6
7
|
buttonColorActiveDisabled: r["bg-color-2"],
|
|
7
8
|
buttonColorDisabled: r["bg-color-2"],
|
|
8
9
|
railColor: o["color-gray-4"],
|
|
@@ -11,5 +12,5 @@ const a = {
|
|
|
11
12
|
railColorDisabled: o["color-gray-3"]
|
|
12
13
|
};
|
|
13
14
|
export {
|
|
14
|
-
|
|
15
|
+
m as SwitchThemeLight
|
|
15
16
|
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { default as _ } from "./token/
|
|
1
|
+
import { default as _ } from "./token/dark.mjs";
|
|
2
|
+
import { default as oo } from "./token/light.mjs";
|
|
2
3
|
import "./components/alert/light.mjs";
|
|
3
4
|
import "./components/button/light.mjs";
|
|
4
5
|
import "./components/card/light.mjs";
|
|
@@ -48,12 +49,13 @@ import "./components/tag/dark.mjs";
|
|
|
48
49
|
import "./components/transfer/dark.mjs";
|
|
49
50
|
import "./components/baseComponent/dark.mjs";
|
|
50
51
|
import "./common/dark.mjs";
|
|
51
|
-
import { ChartsThemeDark as
|
|
52
|
-
import { ChartsThemeLight as
|
|
52
|
+
import { ChartsThemeDark as to } from "./components/charts/dark.mjs";
|
|
53
|
+
import { ChartsThemeLight as mo } from "./components/charts/light.mjs";
|
|
53
54
|
const X = "n-config-provider";
|
|
54
55
|
export {
|
|
55
|
-
|
|
56
|
-
|
|
56
|
+
to as ChartsThemeDark,
|
|
57
|
+
mo as ChartsThemeLight,
|
|
57
58
|
X as configProviderInjectionKey,
|
|
58
|
-
_ as
|
|
59
|
+
_ as darkToken,
|
|
60
|
+
oo as lightToken
|
|
59
61
|
};
|
|
@@ -24,5 +24,9 @@ declare const darkToken: {
|
|
|
24
24
|
'color-error-disabled-opacity': string;
|
|
25
25
|
'color-success-disabled': string;
|
|
26
26
|
'color-warning-disabled': string;
|
|
27
|
+
'border-color-1': string;
|
|
28
|
+
'border-color-2': string;
|
|
29
|
+
'border-color-3': string;
|
|
30
|
+
'border-color-4': string;
|
|
27
31
|
};
|
|
28
32
|
export default darkToken;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
import o from "../color/dark.mjs";
|
|
2
|
+
const l = {
|
|
2
3
|
"color-text-1": "#FFFFFF",
|
|
3
4
|
"color-text-2": "rgba(255, 255, 255, 0.7)",
|
|
4
5
|
"color-text-3": "rgba(255, 255, 255, 0.4)",
|
|
@@ -24,8 +25,12 @@ const o = {
|
|
|
24
25
|
"color-error-disabled": "#F76965",
|
|
25
26
|
"color-error-disabled-opacity": "rgba(247, 105, 101, 0.4)",
|
|
26
27
|
"color-success-disabled": "#4BDDAA",
|
|
27
|
-
"color-warning-disabled": "#FF9626"
|
|
28
|
+
"color-warning-disabled": "#FF9626",
|
|
29
|
+
"border-color-1": o["color-gray-3"],
|
|
30
|
+
"border-color-2": o["color-gray-4"],
|
|
31
|
+
"border-color-3": o["color-gray-5"],
|
|
32
|
+
"border-color-4": o["color-gray-6"]
|
|
28
33
|
};
|
|
29
34
|
export {
|
|
30
|
-
|
|
35
|
+
l as default
|
|
31
36
|
};
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
declare const lightToken: {
|
|
2
2
|
'color-text-1': string;
|
|
3
3
|
'color-text-2': string;
|
|
4
|
+
'color-text-3': string;
|
|
5
|
+
'color-text-4': string;
|
|
6
|
+
'color-text-5': string;
|
|
4
7
|
'color-text-6': string;
|
|
5
8
|
'bg-color-1': string;
|
|
6
9
|
'bg-color-2': string;
|
|
@@ -10,5 +13,7 @@ declare const lightToken: {
|
|
|
10
13
|
'fill-color-5': string;
|
|
11
14
|
'border-color-1': string;
|
|
12
15
|
'border-color-2': string;
|
|
16
|
+
'border-color-3': string;
|
|
17
|
+
'border-color-4': string;
|
|
13
18
|
};
|
|
14
19
|
export default lightToken;
|
|
@@ -1,17 +1,22 @@
|
|
|
1
1
|
import o from "../color/light.mjs";
|
|
2
|
-
const
|
|
2
|
+
const l = {
|
|
3
3
|
"color-text-1": "#FFFFFF",
|
|
4
4
|
"color-text-2": o["color-gray-8"],
|
|
5
|
-
"color-text-
|
|
5
|
+
"color-text-3": o["color-gray-6"],
|
|
6
|
+
"color-text-4": o["color-gray-5"],
|
|
7
|
+
"color-text-5": "#FFFFFF",
|
|
8
|
+
"color-text-6": o["color-primary-6"],
|
|
6
9
|
"bg-color-1": "#F0F2F6",
|
|
7
10
|
"bg-color-2": "#FFFFFF",
|
|
8
11
|
"bg-color-3": "#FFFFFF",
|
|
9
12
|
"bg-color-4": "#E1E9F4",
|
|
10
13
|
"fill-color-1": o["color-gray-2"],
|
|
11
14
|
"fill-color-5": "#FAFAFA",
|
|
12
|
-
"border-color-1": "
|
|
13
|
-
"border-color-2": "
|
|
15
|
+
"border-color-1": o["color-gray-3"],
|
|
16
|
+
"border-color-2": o["color-gray-4"],
|
|
17
|
+
"border-color-3": o["color-gray-5"],
|
|
18
|
+
"border-color-4": o["color-gray-6"]
|
|
14
19
|
};
|
|
15
20
|
export {
|
|
16
|
-
|
|
21
|
+
l as default
|
|
17
22
|
};
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { h as
|
|
2
|
-
import { merge as
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { h as p } from "vue";
|
|
2
|
+
import { merge as a } from "../../node_modules/.pnpm/es-toolkit@1.41.0/node_modules/es-toolkit/dist/object/merge.mjs";
|
|
3
|
+
import { cloneDeep as u } from "../../node_modules/.pnpm/es-toolkit@1.41.0/node_modules/es-toolkit/dist/object/cloneDeep.mjs";
|
|
4
|
+
function f(e) {
|
|
5
|
+
return p("span", {}, e || "Tip");
|
|
5
6
|
}
|
|
6
|
-
const
|
|
7
|
+
const l = {
|
|
7
8
|
closeOnEsc: !1,
|
|
8
9
|
closable: !0,
|
|
9
10
|
maskClosable: !1,
|
|
@@ -25,15 +26,15 @@ const f = {
|
|
|
25
26
|
justifyContent: "center"
|
|
26
27
|
}
|
|
27
28
|
};
|
|
28
|
-
function
|
|
29
|
-
return new Promise((
|
|
29
|
+
function g(e, t, o) {
|
|
30
|
+
return new Promise((n, r) => {
|
|
30
31
|
if (!window.$dialog) return;
|
|
31
|
-
const i =
|
|
32
|
+
const i = a(u(l), o || {}), s = window.$dialog.warning({
|
|
32
33
|
...i,
|
|
33
34
|
content: e,
|
|
34
|
-
title: () => typeof t == "function" ? t() :
|
|
35
|
+
title: () => typeof t == "function" ? t() : f(t),
|
|
35
36
|
onPositiveClick: () => {
|
|
36
|
-
|
|
37
|
+
n(s);
|
|
37
38
|
},
|
|
38
39
|
onNegativeClick: () => {
|
|
39
40
|
r(new Error());
|
|
@@ -42,5 +43,5 @@ function m(e, t, n) {
|
|
|
42
43
|
});
|
|
43
44
|
}
|
|
44
45
|
export {
|
|
45
|
-
|
|
46
|
+
g as default
|
|
46
47
|
};
|