base6-ui 1.1.14 → 1.1.15
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/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 +16 -0
- package/dist/components/BaseLayout/Default/index.vue.d.ts +7 -5
- package/dist/components/BaseLayout/Default/type.d.ts +6 -8
- 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/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/index.d.ts +2 -0
- 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/hooks/useLocale.d.ts +17 -0
- package/dist/index.css +1 -1
- package/dist/index.d.ts +1 -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 +5 -0
- package/dist/utils/typescript.d.ts +61 -0
- 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 +16 -0
- package/es/components/BaseLayout/Default/index.vue.d.ts +7 -5
- package/es/components/BaseLayout/Default/index.vue.mjs +2 -2
- package/es/components/BaseLayout/Default/index.vue2.mjs +42 -38
- package/es/components/BaseLayout/Default/layoutHeader/index.vue.mjs +26 -19
- package/es/components/BaseLayout/Default/type.d.ts +6 -8
- package/es/components/BaseProductIntroduction/cssVar.d.ts +3 -0
- package/es/components/BaseProductIntroduction/cssVar.mjs +29 -24
- package/es/components/BaseProductIntroduction/index.vue.mjs +1 -1
- package/es/components/BaseProductIntroduction/index.vue2.mjs +86 -80
- 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 +16 -26
- 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 +17 -29
- 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/index.d.ts +2 -0
- 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/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/hooks/useLocale.d.ts +17 -0
- package/es/hooks/useLocale.mjs +24 -0
- package/es/index.css +1 -1
- package/es/index.d.ts +1 -0
- package/es/index.mjs +62 -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/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 +5 -0
- package/es/utils/typescript.d.ts +61 -0
- 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 +16 -0
- package/lib/components/BaseLayout/Default/index.vue.d.ts +7 -5
- 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/type.d.ts +6 -8
- 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/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/index.d.ts +2 -0
- 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/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/hooks/useLocale.d.ts +17 -0
- package/lib/hooks/useLocale.js +1 -0
- package/lib/index.css +1 -1
- package/lib/index.d.ts +1 -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/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 +5 -0
- package/lib/utils/typescript.d.ts +61 -0
- package/package.json +1 -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
|
@@ -1,144 +1,145 @@
|
|
|
1
|
-
import { NPopover as
|
|
2
|
-
import { defineComponent as
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import {
|
|
10
|
-
|
|
1
|
+
import { NPopover as x, NCard as R, NButton as M } from "naive-ui";
|
|
2
|
+
import { defineComponent as O, mergeDefaults as V, ref as _, computed as m, resolveComponent as z, createElementBlock as d, openBlock as s, createVNode as l, createBlock as h, withModifiers as b, normalizeStyle as A, withCtx as u, createElementVNode as t, toDisplayString as p, unref as L, Fragment as y, renderList as k, createCommentVNode as U, createTextVNode as g, Teleport as E, withDirectives as F, vShow as $ } from "vue";
|
|
3
|
+
import j from "../BaseNavIcon/index.vue.mjs";
|
|
4
|
+
import { useLocale as q } from "../../hooks/useLocale.mjs";
|
|
5
|
+
import G from "../../hooks/useNaiveConfigProvideContext.mjs";
|
|
6
|
+
import H from "../../assets/cover/base-ads.png.mjs";
|
|
7
|
+
import J from "../../assets/cover/base-studio.png.mjs";
|
|
8
|
+
import K from "../../assets/cover/base-multimodal.png.mjs";
|
|
9
|
+
import { createCardThemeOverrides as Q, createPopoverCssVar as W } from "./cssVar.mjs";
|
|
10
|
+
import { DEFAULT_PRODUCT_INTRODUCTION_PROPS as X } from "./constants.mjs";
|
|
11
|
+
const Y = { class: "header" }, Z = { class: "content-wrap" }, ee = { class: "content-item-header" }, te = { class: "icon" }, oe = { class: "title" }, ne = { class: "description" }, ie = {
|
|
11
12
|
key: 0,
|
|
12
13
|
class: "content-child-wrap"
|
|
13
|
-
},
|
|
14
|
+
}, re = ["src"], se = { class: "to-use" }, le = { class: "base-product-introduction-panel-mask" }, ye = /* @__PURE__ */ O({
|
|
14
15
|
__name: "index",
|
|
15
|
-
props: /* @__PURE__ */
|
|
16
|
+
props: /* @__PURE__ */ V({
|
|
16
17
|
x: {},
|
|
17
18
|
y: {}
|
|
18
|
-
},
|
|
19
|
-
setup(
|
|
20
|
-
const
|
|
19
|
+
}, X),
|
|
20
|
+
setup(ce) {
|
|
21
|
+
const P = G(), { t: e } = q(), c = _(null), n = _(!1), I = [
|
|
21
22
|
{
|
|
22
23
|
key: "base1",
|
|
23
|
-
title: "
|
|
24
|
-
description: "
|
|
24
|
+
title: e("base.productIntroduction.BasePlatform"),
|
|
25
|
+
description: e("base.productIntroduction.BasePlatformDescription"),
|
|
25
26
|
icon: "logo-base",
|
|
26
27
|
children: [
|
|
27
28
|
{
|
|
28
29
|
key: "base1-1",
|
|
29
|
-
title: "
|
|
30
|
-
description: "
|
|
31
|
-
icon:
|
|
30
|
+
title: e("base.productIntroduction.AdsPlatform"),
|
|
31
|
+
description: e("base.productIntroduction.AdsPlatformDescription"),
|
|
32
|
+
icon: H
|
|
32
33
|
},
|
|
33
34
|
{
|
|
34
35
|
key: "base1-2",
|
|
35
|
-
title: "
|
|
36
|
-
description: "
|
|
37
|
-
icon:
|
|
36
|
+
title: e("base.productIntroduction.StudioPlatform"),
|
|
37
|
+
description: e("base.productIntroduction.StudioPlatformDescription"),
|
|
38
|
+
icon: J
|
|
38
39
|
},
|
|
39
40
|
{
|
|
40
41
|
key: "base1-2",
|
|
41
|
-
title: "
|
|
42
|
-
description: "
|
|
43
|
-
icon:
|
|
42
|
+
title: e("base.productIntroduction.MultiModalPlatform"),
|
|
43
|
+
description: e("base.productIntroduction.MultiModalPlatformDescription"),
|
|
44
|
+
icon: K
|
|
44
45
|
}
|
|
45
46
|
]
|
|
46
47
|
},
|
|
47
48
|
{
|
|
48
49
|
key: "base2",
|
|
49
|
-
title: "
|
|
50
|
-
description: "
|
|
50
|
+
title: e("base.productIntroduction.BlinkPlatform"),
|
|
51
|
+
description: e("base.productIntroduction.BasePlatformDescription"),
|
|
51
52
|
icon: "logo-blink"
|
|
52
53
|
},
|
|
53
54
|
{
|
|
54
55
|
key: "base3",
|
|
55
|
-
title: "
|
|
56
|
-
description: "
|
|
56
|
+
title: e("base.productIntroduction.BcollectionPlatform"),
|
|
57
|
+
description: e("base.productIntroduction.BcollectionPlatformDescription"),
|
|
57
58
|
icon: "logo-bcollection"
|
|
58
59
|
}
|
|
59
|
-
], v =
|
|
60
|
+
], v = m(() => {
|
|
60
61
|
const {
|
|
61
|
-
name:
|
|
62
|
-
} =
|
|
63
|
-
return
|
|
64
|
-
}),
|
|
65
|
-
|
|
66
|
-
},
|
|
67
|
-
|
|
62
|
+
name: r = "light"
|
|
63
|
+
} = P?.mergedThemeRef.value || {};
|
|
64
|
+
return r !== "light";
|
|
65
|
+
}), C = m(() => Q(v.value)), B = m(() => W(v.value)), w = () => {
|
|
66
|
+
n.value = !n.value;
|
|
67
|
+
}, D = (r) => {
|
|
68
|
+
c.value && c.value.instRef && c.value.instRef.contains(r.target) || (n.value = !1);
|
|
68
69
|
};
|
|
69
|
-
return (
|
|
70
|
-
const
|
|
71
|
-
return s(),
|
|
72
|
-
|
|
70
|
+
return (r, i) => {
|
|
71
|
+
const f = z("svg-icon"), N = M, S = R, T = x;
|
|
72
|
+
return s(), d("div", null, [
|
|
73
|
+
l(j, {
|
|
73
74
|
ref_key: "triggerInstRef",
|
|
74
|
-
ref:
|
|
75
|
-
active:
|
|
76
|
-
onClick:
|
|
75
|
+
ref: c,
|
|
76
|
+
active: n.value,
|
|
77
|
+
onClick: b(w, ["stop"])
|
|
77
78
|
}, null, 8, ["active"]),
|
|
78
|
-
|
|
79
|
+
l(T, {
|
|
79
80
|
"content-class": "base-product-introduction-panel-popover",
|
|
80
81
|
trigger: "manual",
|
|
81
|
-
show:
|
|
82
|
-
"onUpdate:show":
|
|
83
|
-
style:
|
|
82
|
+
show: n.value,
|
|
83
|
+
"onUpdate:show": i[2] || (i[2] = (o) => n.value = o),
|
|
84
|
+
style: A(B.value),
|
|
84
85
|
"show-arrow": !1,
|
|
85
86
|
width: 1058,
|
|
86
87
|
scrollable: "",
|
|
87
|
-
x:
|
|
88
|
-
y:
|
|
88
|
+
x: r.x,
|
|
89
|
+
y: r.y,
|
|
89
90
|
"theme-overrides": { padding: "0", space: "0" },
|
|
90
|
-
onClickoutside:
|
|
91
|
+
onClickoutside: D
|
|
91
92
|
}, {
|
|
92
|
-
default:
|
|
93
|
-
|
|
93
|
+
default: u(() => [
|
|
94
|
+
t("div", {
|
|
94
95
|
class: "base-product-introduction-panel",
|
|
95
|
-
onClick:
|
|
96
|
+
onClick: i[1] || (i[1] = b(() => {
|
|
96
97
|
}, ["stop"]))
|
|
97
98
|
}, [
|
|
98
|
-
|
|
99
|
-
t
|
|
100
|
-
|
|
99
|
+
t("div", Y, [
|
|
100
|
+
t("div", null, p(L(e)("base.productIntroduction.allProducts")), 1),
|
|
101
|
+
l(f, {
|
|
101
102
|
icon: "operate-close",
|
|
102
103
|
size: "16",
|
|
103
|
-
onClick:
|
|
104
|
+
onClick: i[0] || (i[0] = (o) => n.value = !1)
|
|
104
105
|
})
|
|
105
106
|
]),
|
|
106
|
-
|
|
107
|
-
(s(),
|
|
107
|
+
t("div", Z, [
|
|
108
|
+
(s(), d(y, null, k(I, (o) => t("div", {
|
|
108
109
|
key: o.key,
|
|
109
110
|
class: "content-item"
|
|
110
111
|
}, [
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
112
|
+
t("div", ee, [
|
|
113
|
+
t("div", te, [
|
|
114
|
+
l(f, {
|
|
114
115
|
icon: o.icon,
|
|
115
116
|
size: "32"
|
|
116
117
|
}, null, 8, ["icon"])
|
|
117
118
|
]),
|
|
118
|
-
|
|
119
|
-
|
|
119
|
+
t("div", oe, p(o.title), 1),
|
|
120
|
+
t("div", ne, p(o.description), 1)
|
|
120
121
|
]),
|
|
121
|
-
o.children && o.children.length ? (s(),
|
|
122
|
-
(s(!0),
|
|
122
|
+
o.children && o.children.length ? (s(), d("div", ie, [
|
|
123
|
+
(s(!0), d(y, null, k(o.children, (a) => (s(), h(S, {
|
|
123
124
|
key: a.key,
|
|
124
125
|
title: a.title,
|
|
125
|
-
"theme-overrides":
|
|
126
|
+
"theme-overrides": C.value
|
|
126
127
|
}, {
|
|
127
|
-
cover:
|
|
128
|
-
|
|
128
|
+
cover: u(() => [
|
|
129
|
+
t("img", {
|
|
129
130
|
src: a.icon,
|
|
130
131
|
alt: ""
|
|
131
|
-
}, null, 8,
|
|
132
|
+
}, null, 8, re)
|
|
132
133
|
]),
|
|
133
|
-
default:
|
|
134
|
-
g(" " +
|
|
135
|
-
|
|
136
|
-
|
|
134
|
+
default: u(() => [
|
|
135
|
+
g(" " + p(a.description) + " ", 1),
|
|
136
|
+
t("div", se, [
|
|
137
|
+
l(N, {
|
|
137
138
|
round: "",
|
|
138
139
|
size: "tiny",
|
|
139
140
|
type: "primary"
|
|
140
141
|
}, {
|
|
141
|
-
default:
|
|
142
|
+
default: u(() => i[3] || (i[3] = [
|
|
142
143
|
g("开始使用")
|
|
143
144
|
])),
|
|
144
145
|
_: 1
|
|
@@ -147,17 +148,22 @@ const H = { class: "header" }, J = { class: "content-wrap" }, K = { class: "cont
|
|
|
147
148
|
]),
|
|
148
149
|
_: 2
|
|
149
150
|
}, 1032, ["title", "theme-overrides"]))), 128))
|
|
150
|
-
])) :
|
|
151
|
+
])) : U("", !0)
|
|
151
152
|
])), 64))
|
|
152
153
|
])
|
|
153
154
|
])
|
|
154
155
|
]),
|
|
155
156
|
_: 1
|
|
156
|
-
}, 8, ["show", "style", "x", "y"])
|
|
157
|
+
}, 8, ["show", "style", "x", "y"]),
|
|
158
|
+
(s(), h(E, { to: "body" }, [
|
|
159
|
+
F(t("div", le, null, 512), [
|
|
160
|
+
[$, n.value]
|
|
161
|
+
])
|
|
162
|
+
]))
|
|
157
163
|
]);
|
|
158
164
|
};
|
|
159
165
|
}
|
|
160
166
|
});
|
|
161
167
|
export {
|
|
162
|
-
|
|
168
|
+
ye as default
|
|
163
169
|
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { BaseProgressThemeOverrides } from '../../types/themes/components';
|
|
2
|
+
import { BaseProgressProps } from './index';
|
|
3
|
+
export declare const getStyleCssVar: (circleSize: BaseProgressProps["circleSize"], themeOverrides?: BaseProgressThemeOverrides) => {
|
|
4
|
+
'--n-tip-color-circle': string;
|
|
5
|
+
'--n-tip-font-size-circle': string;
|
|
6
|
+
'--n-content-font-size': string;
|
|
7
|
+
'--n-circle-width': string;
|
|
8
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ProgressThemeLight as o } from "../../config/themes/components/progress/light.mjs";
|
|
2
|
+
import n from "../../config/themes/color/light.mjs";
|
|
3
|
+
const p = (t, i) => {
|
|
4
|
+
const r = t === "medium" ? i?.fontSizeCircleMedium : o.fontSizeCircleLarge, c = t === "medium" ? i?.circleWidthMedium : o.circleWidthLarge;
|
|
5
|
+
return {
|
|
6
|
+
"--n-tip-color-circle": i?.tipColorCircle || n["color-gray-8"],
|
|
7
|
+
"--n-tip-font-size-circle": i?.tipFontSizeCircle || "14px",
|
|
8
|
+
"--n-content-font-size": r || "var(--n-font-size)",
|
|
9
|
+
"--n-circle-width": c || "120px"
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
export {
|
|
13
|
+
p as getStyleCssVar
|
|
14
|
+
};
|
|
@@ -1,6 +1,131 @@
|
|
|
1
|
-
import { PropType } from 'vue';
|
|
1
|
+
import { ExtractPropTypes, PropType } from 'vue';
|
|
2
2
|
export type Size = 'medium' | 'large';
|
|
3
|
-
declare const
|
|
3
|
+
export declare const baseProgressProps: {
|
|
4
|
+
readonly circleSize: {
|
|
5
|
+
readonly type: PropType<Size>;
|
|
6
|
+
readonly default: "medium";
|
|
7
|
+
};
|
|
8
|
+
readonly tip: StringConstructor;
|
|
9
|
+
readonly processing: BooleanConstructor;
|
|
10
|
+
readonly type: {
|
|
11
|
+
readonly type: PropType<"line" | "circle" | "multiple-circle" | "dashboard">;
|
|
12
|
+
readonly default: "line";
|
|
13
|
+
};
|
|
14
|
+
readonly gapDegree: NumberConstructor;
|
|
15
|
+
readonly gapOffsetDegree: NumberConstructor;
|
|
16
|
+
readonly status: {
|
|
17
|
+
readonly type: PropType<import('naive-ui').ProgressStatus>;
|
|
18
|
+
readonly default: "default";
|
|
19
|
+
};
|
|
20
|
+
readonly railColor: PropType<string | string[]>;
|
|
21
|
+
readonly railStyle: PropType<string | import('vue').CSSProperties | Array<string | import('vue').CSSProperties>>;
|
|
22
|
+
readonly color: PropType<string | string[] | import('naive-ui').ProgressGradient | import('naive-ui').ProgressGradient[]>;
|
|
23
|
+
readonly viewBoxWidth: {
|
|
24
|
+
readonly type: NumberConstructor;
|
|
25
|
+
readonly default: 100;
|
|
26
|
+
};
|
|
27
|
+
readonly strokeWidth: {
|
|
28
|
+
readonly type: NumberConstructor;
|
|
29
|
+
readonly default: 7;
|
|
30
|
+
};
|
|
31
|
+
readonly percentage: PropType<number | number[]>;
|
|
32
|
+
readonly unit: {
|
|
33
|
+
readonly type: StringConstructor;
|
|
34
|
+
readonly default: "%";
|
|
35
|
+
};
|
|
36
|
+
readonly showIndicator: {
|
|
37
|
+
readonly type: BooleanConstructor;
|
|
38
|
+
readonly default: true;
|
|
39
|
+
};
|
|
40
|
+
readonly indicatorPosition: {
|
|
41
|
+
readonly type: PropType<"inside" | "outside">;
|
|
42
|
+
readonly default: "outside";
|
|
43
|
+
};
|
|
44
|
+
readonly indicatorPlacement: {
|
|
45
|
+
readonly type: PropType<"inside" | "outside">;
|
|
46
|
+
readonly default: "outside";
|
|
47
|
+
};
|
|
48
|
+
readonly indicatorTextColor: StringConstructor;
|
|
49
|
+
readonly circleGap: {
|
|
50
|
+
readonly type: NumberConstructor;
|
|
51
|
+
readonly default: 1;
|
|
52
|
+
};
|
|
53
|
+
readonly height: NumberConstructor;
|
|
54
|
+
readonly borderRadius: PropType<string | number>;
|
|
55
|
+
readonly fillBorderRadius: PropType<string | number>;
|
|
56
|
+
readonly offsetDegree: NumberConstructor;
|
|
57
|
+
readonly theme: PropType<import('naive-ui/es/_mixins').Theme<"Progress", {
|
|
58
|
+
fontSize: string;
|
|
59
|
+
fontSizeCircle: string;
|
|
60
|
+
fontWeightCircle: string;
|
|
61
|
+
railColor: string;
|
|
62
|
+
railHeight: string;
|
|
63
|
+
iconSizeCircle: string;
|
|
64
|
+
iconSizeLine: string;
|
|
65
|
+
iconColor: string;
|
|
66
|
+
iconColorInfo: string;
|
|
67
|
+
iconColorSuccess: string;
|
|
68
|
+
iconColorWarning: string;
|
|
69
|
+
iconColorError: string;
|
|
70
|
+
textColorCircle: string;
|
|
71
|
+
textColorLineInner: string;
|
|
72
|
+
textColorLineOuter: string;
|
|
73
|
+
fillColor: string;
|
|
74
|
+
fillColorInfo: string;
|
|
75
|
+
fillColorSuccess: string;
|
|
76
|
+
fillColorWarning: string;
|
|
77
|
+
fillColorError: string;
|
|
78
|
+
lineBgProcessing: string;
|
|
79
|
+
}, any>>;
|
|
80
|
+
readonly themeOverrides: PropType<import('naive-ui/es/_mixins/use-theme').ExtractThemeOverrides<import('naive-ui/es/_mixins').Theme<"Progress", {
|
|
81
|
+
fontSize: string;
|
|
82
|
+
fontSizeCircle: string;
|
|
83
|
+
fontWeightCircle: string;
|
|
84
|
+
railColor: string;
|
|
85
|
+
railHeight: string;
|
|
86
|
+
iconSizeCircle: string;
|
|
87
|
+
iconSizeLine: string;
|
|
88
|
+
iconColor: string;
|
|
89
|
+
iconColorInfo: string;
|
|
90
|
+
iconColorSuccess: string;
|
|
91
|
+
iconColorWarning: string;
|
|
92
|
+
iconColorError: string;
|
|
93
|
+
textColorCircle: string;
|
|
94
|
+
textColorLineInner: string;
|
|
95
|
+
textColorLineOuter: string;
|
|
96
|
+
fillColor: string;
|
|
97
|
+
fillColorInfo: string;
|
|
98
|
+
fillColorSuccess: string;
|
|
99
|
+
fillColorWarning: string;
|
|
100
|
+
fillColorError: string;
|
|
101
|
+
lineBgProcessing: string;
|
|
102
|
+
}, any>>>;
|
|
103
|
+
readonly builtinThemeOverrides: PropType<import('naive-ui/es/_mixins/use-theme').ExtractThemeOverrides<import('naive-ui/es/_mixins').Theme<"Progress", {
|
|
104
|
+
fontSize: string;
|
|
105
|
+
fontSizeCircle: string;
|
|
106
|
+
fontWeightCircle: string;
|
|
107
|
+
railColor: string;
|
|
108
|
+
railHeight: string;
|
|
109
|
+
iconSizeCircle: string;
|
|
110
|
+
iconSizeLine: string;
|
|
111
|
+
iconColor: string;
|
|
112
|
+
iconColorInfo: string;
|
|
113
|
+
iconColorSuccess: string;
|
|
114
|
+
iconColorWarning: string;
|
|
115
|
+
iconColorError: string;
|
|
116
|
+
textColorCircle: string;
|
|
117
|
+
textColorLineInner: string;
|
|
118
|
+
textColorLineOuter: string;
|
|
119
|
+
fillColor: string;
|
|
120
|
+
fillColorInfo: string;
|
|
121
|
+
fillColorSuccess: string;
|
|
122
|
+
fillColorWarning: string;
|
|
123
|
+
fillColorError: string;
|
|
124
|
+
lineBgProcessing: string;
|
|
125
|
+
}, any>>>;
|
|
126
|
+
};
|
|
127
|
+
export type BaseProgressProps = ExtractPropTypes<typeof baseProgressProps>;
|
|
128
|
+
declare const _default: import('vue').DefineComponent<ExtractPropTypes<{
|
|
4
129
|
readonly circleSize: {
|
|
5
130
|
readonly type: PropType<Size>;
|
|
6
131
|
readonly default: "medium";
|
|
@@ -125,7 +250,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
125
250
|
}, any>>>;
|
|
126
251
|
}>, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
127
252
|
[key: string]: any;
|
|
128
|
-
}>, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<
|
|
253
|
+
}>, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ExtractPropTypes<{
|
|
129
254
|
readonly circleSize: {
|
|
130
255
|
readonly type: PropType<Size>;
|
|
131
256
|
readonly default: "medium";
|
|
@@ -1,36 +1,37 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { progressProps as
|
|
3
|
-
import { SvgIcon as
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import { defineComponent as d, computed as c, h as e } from "vue";
|
|
2
|
+
import { progressProps as l, NProgress as f } from "naive-ui";
|
|
3
|
+
import { SvgIcon as p } from "../../node_modules/.pnpm/lib-materials@0.0.8_typescript@5.7.2/node_modules/lib-materials/dist/lib-materials.mjs";
|
|
4
|
+
import g from "../../hooks/useNaiveConfigProvideContext.mjs";
|
|
5
|
+
import { getStyleCssVar as m } from "./cssVar.mjs";
|
|
6
|
+
const u = {
|
|
7
|
+
...l,
|
|
7
8
|
circleSize: {
|
|
8
9
|
type: String,
|
|
9
10
|
default: "medium"
|
|
10
11
|
},
|
|
11
12
|
tip: String
|
|
12
|
-
},
|
|
13
|
+
}, S = d({
|
|
13
14
|
name: "BaseProgress",
|
|
14
|
-
props:
|
|
15
|
+
props: u,
|
|
15
16
|
setup(t, { slots: r }) {
|
|
16
|
-
const
|
|
17
|
+
const s = "base-progress-", { mergedThemeOverridesRef: o } = g(), n = c(() => m(t.circleSize), o?.value?.Progress), a = () => e(
|
|
17
18
|
"div",
|
|
18
19
|
{
|
|
19
|
-
class: `${
|
|
20
|
+
class: `${s}dashboard-content`
|
|
20
21
|
},
|
|
21
22
|
[
|
|
22
23
|
e(
|
|
23
24
|
"div",
|
|
24
25
|
{
|
|
25
|
-
class: `${
|
|
26
|
+
class: `${s}dashboard-content-logo`,
|
|
26
27
|
style: "height:24px;width:24px"
|
|
27
28
|
},
|
|
28
|
-
r.icon ? r.icon() : e(
|
|
29
|
+
r.icon ? r.icon() : e(p, { icon: "progress-default", size: "18" })
|
|
29
30
|
),
|
|
30
31
|
e(
|
|
31
32
|
"div",
|
|
32
33
|
{
|
|
33
|
-
class: `${
|
|
34
|
+
class: `${s}dashboard-content-title`
|
|
34
35
|
},
|
|
35
36
|
[
|
|
36
37
|
e("span", {}, `${t.percentage}`),
|
|
@@ -40,42 +41,29 @@ const z = {
|
|
|
40
41
|
t.tip ? e(
|
|
41
42
|
"div",
|
|
42
43
|
{
|
|
43
|
-
class: `${
|
|
44
|
+
class: `${s}dashboard-content-tip`
|
|
44
45
|
},
|
|
45
46
|
t.tip
|
|
46
47
|
) : void 0
|
|
47
48
|
]
|
|
48
|
-
),
|
|
49
|
+
), i = () => {
|
|
49
50
|
if (r.default) return () => r.default();
|
|
50
|
-
if (t.type === "dashboard") return
|
|
51
|
+
if (t.type === "dashboard") return a;
|
|
51
52
|
};
|
|
52
|
-
return
|
|
53
|
-
|
|
54
|
-
(i) => {
|
|
55
|
-
const a = t.circleSize === "medium" ? i.fontSizeCircleMedium : i.fontSizeCircleLarge, l = t.circleSize === "medium" ? i.circleWidthMedium : i.circleWidthLarge;
|
|
56
|
-
n.value = {
|
|
57
|
-
"--n-tip-color-circle": i.tipColorCircle || "#56647A",
|
|
58
|
-
"--n-tip-font-size-circle": i.tipFontSizeCircle || "14px",
|
|
59
|
-
"--n-content-font-size": a || "var(--n-font-size)",
|
|
60
|
-
"--n-circle-width": l || "120px"
|
|
61
|
-
};
|
|
62
|
-
},
|
|
63
|
-
{
|
|
64
|
-
immediate: !0
|
|
65
|
-
}
|
|
66
|
-
), () => e(
|
|
67
|
-
h,
|
|
53
|
+
return () => e(
|
|
54
|
+
f,
|
|
68
55
|
{
|
|
69
56
|
...t,
|
|
70
57
|
class: "base-progress",
|
|
71
58
|
style: n.value
|
|
72
59
|
},
|
|
73
60
|
{
|
|
74
|
-
default:
|
|
61
|
+
default: i()
|
|
75
62
|
}
|
|
76
63
|
);
|
|
77
64
|
}
|
|
78
65
|
});
|
|
79
66
|
export {
|
|
80
|
-
|
|
67
|
+
u as baseProgressProps,
|
|
68
|
+
S as default
|
|
81
69
|
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { RadioThemeLight as a } from "../../config/themes/components/radio/light.mjs";
|
|
2
|
+
const e = (o) => ({
|
|
3
|
+
"--n-box-shadow-active-disabled": o?.boxShadowActiveDisabled || a.boxShadowDisabled,
|
|
4
|
+
"--n-color-active-disabled": o?.colorActiveDisabled || a.boxShadowDisabled
|
|
5
|
+
});
|
|
6
|
+
export {
|
|
7
|
+
e as getStyleCssVar
|
|
8
|
+
};
|
|
@@ -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 _ = /* @__PURE__ */ t(o, [["__scopeId", "data-v-11776497"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
_ as default
|
|
7
7
|
};
|
|
@@ -1,36 +1,26 @@
|
|
|
1
|
-
import { NRadio as
|
|
2
|
-
import { defineComponent as
|
|
3
|
-
import
|
|
4
|
-
|
|
1
|
+
import { NRadio as a } from "naive-ui";
|
|
2
|
+
import { defineComponent as n, computed as l, createBlock as m, openBlock as i, mergeProps as d, createSlots as p, renderList as c, withCtx as f, renderSlot as u } from "vue";
|
|
3
|
+
import _ from "../../hooks/useNaiveConfigProvideContext.mjs";
|
|
4
|
+
import { getStyleCssVar as v } from "./cssVar.mjs";
|
|
5
|
+
const B = /* @__PURE__ */ n({
|
|
5
6
|
name: "BaseRadio",
|
|
6
7
|
__name: "index",
|
|
7
8
|
props: {
|
|
8
9
|
className: { default: "" },
|
|
9
10
|
style: { default: () => ({}) }
|
|
10
11
|
},
|
|
11
|
-
setup(
|
|
12
|
-
const { mergedThemeOverridesRef:
|
|
13
|
-
return
|
|
14
|
-
|
|
15
|
-
(
|
|
16
|
-
e && (o.value = {
|
|
17
|
-
"--n-box-shadow-active-disabled": e.boxShadowActiveDisabled || e.boxShadowDisabled,
|
|
18
|
-
"--n-color-active-disabled": e.colorActiveDisabled || e.boxShadowDisabled
|
|
19
|
-
});
|
|
20
|
-
},
|
|
21
|
-
{
|
|
22
|
-
immediate: !0
|
|
23
|
-
}
|
|
24
|
-
), (e, w) => {
|
|
25
|
-
const s = i;
|
|
26
|
-
return m(), l(s, c(e.$attrs, {
|
|
12
|
+
setup(y) {
|
|
13
|
+
const { mergedThemeOverridesRef: o } = _(), r = l(() => v(o?.value?.Radio));
|
|
14
|
+
return (e, C) => {
|
|
15
|
+
const s = a;
|
|
16
|
+
return i(), m(s, d(e.$attrs, {
|
|
27
17
|
class: ["base-radio", e.className],
|
|
28
|
-
style: [
|
|
29
|
-
}),
|
|
30
|
-
|
|
18
|
+
style: [r.value, e.style]
|
|
19
|
+
}), p({ _: 2 }, [
|
|
20
|
+
c(e.$slots, (g, t) => ({
|
|
31
21
|
name: t,
|
|
32
|
-
fn:
|
|
33
|
-
|
|
22
|
+
fn: f(() => [
|
|
23
|
+
u(e.$slots, t, {}, void 0, !0)
|
|
34
24
|
])
|
|
35
25
|
}))
|
|
36
26
|
]), 1040, ["class", "style"]);
|
|
@@ -38,5 +28,5 @@ const y = /* @__PURE__ */ r({
|
|
|
38
28
|
}
|
|
39
29
|
});
|
|
40
30
|
export {
|
|
41
|
-
|
|
31
|
+
B as default
|
|
42
32
|
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { BaseSwitchThemeOverrides } from '../../types/themes/components';
|
|
2
|
+
export declare const getStyleCssVar: (themeOverrides?: BaseSwitchThemeOverrides) => {
|
|
3
|
+
'--n-rail-color-active-disabled': string | undefined;
|
|
4
|
+
'--n-rail-color-disabled': string | undefined;
|
|
5
|
+
'--n-button-color-disabled': string | undefined;
|
|
6
|
+
'--n-button-color-active-disabled': string | undefined;
|
|
7
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { SwitchThemeLight as l } from "../../config/themes/components/switch/light.mjs";
|
|
2
|
+
const t = (o) => ({
|
|
3
|
+
"--n-rail-color-active-disabled": o?.railColorActiveDisabled || l.railColorActiveDisabled,
|
|
4
|
+
"--n-rail-color-disabled": o?.railColorDisabled || l.railColorDisabled,
|
|
5
|
+
"--n-button-color-disabled": o?.buttonColorDisabled || l.buttonColorDisabled,
|
|
6
|
+
"--n-button-color-active-disabled": o?.buttonColorActiveDisabled || l.buttonColorActiveDisabled
|
|
7
|
+
});
|
|
8
|
+
export {
|
|
9
|
+
t as getStyleCssVar
|
|
10
|
+
};
|
|
@@ -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 p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-ee1b1c3d"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
p as default
|
|
7
7
|
};
|