base6-ui 1.1.15 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/BaseCascader/cssVar.d.ts +10 -0
- package/dist/components/BaseConfigProvider/locale-base.d.ts +2 -2
- package/dist/components/BaseConfigProvider/locale-naive.d.ts +3 -3
- package/dist/components/BaseConfigProvider/type.d.ts +3 -2
- package/dist/components/BaseDataTable/index.vue.d.ts +1 -1
- package/dist/components/BaseDialog/index.vue.d.ts +2 -2
- package/dist/components/BaseInputNumber/index.vue.d.ts +0 -1
- package/dist/components/BaseLayout/Default/index.vue.d.ts +1 -1
- package/dist/components/BaseLayout/Default/type.d.ts +1 -1
- package/dist/components/BaseLayout/index.vue.d.ts +1 -1
- package/dist/components/BaseSelect/index.vue.d.ts +1 -1
- package/dist/components/BaseSteps/index.d.ts +1 -0
- package/dist/components/BaseSteps/steps.d.ts +25 -0
- package/dist/components/BaseTabs/cssVar.d.ts +4 -0
- package/dist/components/BaseTabs/index.d.ts +2 -0
- package/dist/components/BaseTabs/tabs.d.ts +699 -0
- package/dist/components/index.d.ts +2 -0
- package/dist/config/themes/common.d.ts +1 -0
- package/dist/config/themes/components/baseComponent/dark.d.ts +3 -2
- package/dist/config/themes/components/baseComponent/light.d.ts +3 -2
- package/dist/config/themes/components/cascader/common.d.ts +2 -2
- package/dist/config/themes/components/cascader/dark.d.ts +2 -2
- package/dist/config/themes/components/cascader/light.d.ts +2 -2
- package/dist/fonts/MiSans-Medium.ttf +0 -0
- package/dist/fonts/MiSans-Regular.ttf +0 -0
- package/dist/hooks/useAnimationHook.d.ts +1 -1
- package/dist/index.css +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.umd.js +1 -1
- package/dist/types/themes/components.d.ts +4 -2
- package/dist/types/themes/extendThemes.d.ts +10 -0
- package/dist/utils/render.d.ts +3 -0
- package/es/_virtual/virtual_svg-icons-register.mjs +1 -1
- package/es/assets/logo/logo-dark-full.svg.mjs +2 -2
- package/es/assets/logo/logo-light-full.svg.mjs +2 -2
- package/es/components/BaseButton/index.vue.mjs +14 -14
- package/es/components/BaseCascader/cssVar.d.ts +10 -0
- package/es/components/BaseCascader/cssVar.mjs +13 -0
- package/es/components/BaseCascader/index.vue.mjs +2 -2
- package/es/components/BaseCascader/index.vue2.mjs +19 -13
- package/es/components/BaseConfigProvider/index.vue.mjs +14 -14
- package/es/components/BaseConfigProvider/locale-base.d.ts +2 -2
- package/es/components/BaseConfigProvider/locale-naive.d.ts +3 -3
- package/es/components/BaseConfigProvider/type.d.ts +3 -2
- package/es/components/BaseDataTable/index.vue.d.ts +1 -1
- package/es/components/BaseDataTable/index.vue2.mjs +13 -13
- package/es/components/BaseDialog/index.vue.d.ts +2 -2
- package/es/components/BaseDialog/index.vue.mjs +43 -43
- package/es/components/BaseInputNumber/index.vue.d.ts +0 -1
- package/es/components/BaseInputNumber/index.vue.mjs +1 -1
- package/es/components/BaseInputNumber/index.vue2.mjs +57 -57
- package/es/components/BaseLayout/ASide/index.vue.mjs +2 -2
- package/es/components/BaseLayout/ASide/index.vue2.mjs +27 -27
- package/es/components/BaseLayout/Default/index.vue.d.ts +1 -1
- package/es/components/BaseLayout/Default/index.vue2.mjs +56 -56
- package/es/components/BaseLayout/Default/layoutMenu/components/first-level-menu.vue2.mjs +30 -30
- package/es/components/BaseLayout/Default/type.d.ts +1 -1
- package/es/components/BaseLayout/components/WrapFooter.vue.mjs +14 -14
- package/es/components/BaseLayout/components/WrapHeader.vue2.mjs +8 -8
- package/es/components/BaseLayout/components/WrapTab.vue.mjs +12 -12
- package/es/components/BaseLayout/index.vue.d.ts +1 -1
- package/es/components/BaseLayout/index.vue2.mjs +36 -36
- package/es/components/BaseNavIcon/index.vue2.mjs +14 -14
- package/es/components/BaseProductIntroduction/index.vue.mjs +2 -2
- package/es/components/BaseProductIntroduction/index.vue2.mjs +71 -71
- package/es/components/BaseRadio/index.vue2.mjs +18 -18
- package/es/components/BaseSelect/index.vue.d.ts +1 -1
- package/es/components/BaseSelect/index.vue.mjs +2 -2
- package/es/components/BaseSelect/index.vue2.mjs +32 -30
- package/es/components/BaseSlider/index.vue2.mjs +44 -44
- package/es/components/BaseSteps/index.d.ts +1 -0
- package/es/components/BaseSteps/steps.d.ts +25 -0
- package/es/components/BaseSteps/steps.mjs +27 -0
- package/es/components/BaseSwitch/index.vue2.mjs +17 -17
- package/es/components/BaseSystemActions/index.vue.mjs +2 -2
- package/es/components/BaseSystemActions/index.vue2.mjs +20 -20
- package/es/components/BaseTabs/cssVar.d.ts +4 -0
- package/es/components/BaseTabs/cssVar.mjs +7 -0
- package/es/components/BaseTabs/index.d.ts +2 -0
- package/es/components/BaseTabs/tabs.d.ts +699 -0
- package/es/components/BaseTabs/tabs.mjs +43 -0
- package/es/components/index.d.ts +2 -0
- package/es/config/themes/common.d.ts +1 -0
- package/es/config/themes/common.mjs +2 -1
- package/es/config/themes/components/baseComponent/dark.d.ts +3 -2
- package/es/config/themes/components/baseComponent/dark.mjs +13 -6
- package/es/config/themes/components/baseComponent/light.d.ts +3 -2
- package/es/config/themes/components/baseComponent/light.mjs +10 -5
- package/es/config/themes/components/button/common.mjs +4 -4
- package/es/config/themes/components/cascader/common.d.ts +2 -2
- package/es/config/themes/components/cascader/common.mjs +4 -2
- package/es/config/themes/components/cascader/dark.d.ts +2 -2
- package/es/config/themes/components/cascader/dark.mjs +6 -2
- package/es/config/themes/components/cascader/light.d.ts +2 -2
- package/es/config/themes/components/cascader/light.mjs +10 -6
- package/es/config/themes/components/dataTable/dark.mjs +2 -0
- package/es/config/themes/components/dataTable/light.mjs +2 -0
- package/es/config/themes/components/input/dark.mjs +1 -1
- package/es/config/themes/components/select/dark.mjs +3 -2
- package/es/config/themes/components/select/light.mjs +1 -0
- package/es/config/themes/components/slider/dark.mjs +2 -1
- package/es/config/themes/components/slider/light.mjs +2 -1
- package/es/fonts/MiSans-Medium.ttf +0 -0
- package/es/fonts/MiSans-Regular.ttf +0 -0
- package/es/hooks/useAnimationHook.d.ts +1 -1
- package/es/hooks/useAnimationHook.mjs +17 -14
- package/es/index.css +1 -1
- package/es/index.d.ts +1 -0
- package/es/index.mjs +59 -52
- package/es/locale/lang/en-us.mjs +2 -2
- package/es/locale/lang/zh-cn.mjs +2 -2
- package/es/node_modules/.pnpm/{@vueuse_core@13.0.0_vue@3.5.13_typescript@5.7.2_ → @vueuse_core@13.0.0_vue@3.5.22_typescript@5.7.2_}/node_modules/@vueuse/core/index.mjs +1 -1
- package/es/types/themes/components.d.ts +4 -2
- package/es/types/themes/extendThemes.d.ts +10 -0
- package/es/utils/render.d.ts +3 -0
- package/es/utils/render.mjs +9 -0
- package/lib/_virtual/virtual_svg-icons-register.js +1 -1
- package/lib/assets/logo/logo-dark-full.svg.js +1 -1
- package/lib/assets/logo/logo-light-full.svg.js +1 -1
- package/lib/components/BaseButton/index.vue.js +1 -1
- package/lib/components/BaseCascader/cssVar.d.ts +10 -0
- package/lib/components/BaseCascader/cssVar.js +1 -0
- package/lib/components/BaseCascader/index.vue.js +1 -1
- package/lib/components/BaseCascader/index.vue2.js +1 -1
- package/lib/components/BaseConfigProvider/index.vue.js +1 -1
- package/lib/components/BaseConfigProvider/locale-base.d.ts +2 -2
- package/lib/components/BaseConfigProvider/locale-naive.d.ts +3 -3
- package/lib/components/BaseConfigProvider/type.d.ts +3 -2
- package/lib/components/BaseDataTable/index.vue.d.ts +1 -1
- package/lib/components/BaseDataTable/index.vue2.js +1 -1
- package/lib/components/BaseDialog/index.vue.d.ts +2 -2
- package/lib/components/BaseDialog/index.vue.js +1 -1
- package/lib/components/BaseInputNumber/index.vue.d.ts +0 -1
- package/lib/components/BaseInputNumber/index.vue.js +1 -1
- package/lib/components/BaseInputNumber/index.vue2.js +1 -1
- package/lib/components/BaseLayout/ASide/index.vue.js +1 -1
- package/lib/components/BaseLayout/ASide/index.vue2.js +1 -1
- package/lib/components/BaseLayout/Default/index.vue.d.ts +1 -1
- package/lib/components/BaseLayout/Default/index.vue2.js +1 -1
- package/lib/components/BaseLayout/Default/layoutMenu/components/first-level-menu.vue2.js +1 -1
- package/lib/components/BaseLayout/Default/type.d.ts +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.vue2.js +1 -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.vue.d.ts +1 -1
- package/lib/components/BaseSelect/index.vue.js +1 -1
- package/lib/components/BaseSelect/index.vue2.js +1 -1
- package/lib/components/BaseSlider/index.vue2.js +1 -1
- package/lib/components/BaseSteps/index.d.ts +1 -0
- package/lib/components/BaseSteps/steps.d.ts +25 -0
- package/lib/components/BaseSteps/steps.js +1 -0
- package/lib/components/BaseSwitch/index.vue2.js +1 -1
- package/lib/components/BaseSystemActions/index.vue.js +1 -1
- package/lib/components/BaseSystemActions/index.vue2.js +1 -1
- package/lib/components/BaseTabs/cssVar.d.ts +4 -0
- package/lib/components/BaseTabs/cssVar.js +1 -0
- package/lib/components/BaseTabs/index.d.ts +2 -0
- package/lib/components/BaseTabs/tabs.d.ts +699 -0
- package/lib/components/BaseTabs/tabs.js +1 -0
- package/lib/components/index.d.ts +2 -0
- package/lib/config/themes/common.d.ts +1 -0
- package/lib/config/themes/common.js +1 -1
- package/lib/config/themes/components/baseComponent/dark.d.ts +3 -2
- package/lib/config/themes/components/baseComponent/dark.js +1 -1
- package/lib/config/themes/components/baseComponent/light.d.ts +3 -2
- package/lib/config/themes/components/baseComponent/light.js +1 -1
- package/lib/config/themes/components/button/common.js +1 -1
- package/lib/config/themes/components/cascader/common.d.ts +2 -2
- package/lib/config/themes/components/cascader/common.js +1 -1
- package/lib/config/themes/components/cascader/dark.d.ts +2 -2
- package/lib/config/themes/components/cascader/dark.js +1 -1
- package/lib/config/themes/components/cascader/light.d.ts +2 -2
- package/lib/config/themes/components/cascader/light.js +1 -1
- package/lib/config/themes/components/dataTable/dark.js +1 -1
- package/lib/config/themes/components/dataTable/light.js +1 -1
- package/lib/config/themes/components/input/dark.js +1 -1
- package/lib/config/themes/components/select/dark.js +1 -1
- package/lib/config/themes/components/select/light.js +1 -1
- package/lib/config/themes/components/slider/dark.js +1 -1
- package/lib/config/themes/components/slider/light.js +1 -1
- package/lib/fonts/MiSans-Medium.ttf +0 -0
- package/lib/fonts/MiSans-Regular.ttf +0 -0
- package/lib/hooks/useAnimationHook.d.ts +1 -1
- package/lib/hooks/useAnimationHook.js +1 -1
- package/lib/index.css +1 -1
- package/lib/index.d.ts +1 -0
- 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/{@vueuse_core@13.0.0_vue@3.5.13_typescript@5.7.2_ → @vueuse_core@13.0.0_vue@3.5.22_typescript@5.7.2_}/node_modules/@vueuse/core/index.js +1 -1
- package/lib/types/themes/components.d.ts +4 -2
- package/lib/types/themes/extendThemes.d.ts +10 -0
- package/lib/utils/render.d.ts +3 -0
- package/lib/utils/render.js +1 -0
- package/package.json +3 -1
- /package/es/node_modules/.pnpm/{@vueuse_shared@13.0.0_vue@3.5.13_typescript@5.7.2_ → @vueuse_shared@13.0.0_vue@3.5.22_typescript@5.7.2_}/node_modules/@vueuse/shared/index.mjs +0 -0
- /package/lib/node_modules/.pnpm/{@vueuse_shared@13.0.0_vue@3.5.13_typescript@5.7.2_ → @vueuse_shared@13.0.0_vue@3.5.22_typescript@5.7.2_}/node_modules/@vueuse/shared/index.js +0 -0
|
@@ -1,47 +1,52 @@
|
|
|
1
|
-
import { NPopover as
|
|
2
|
-
import { defineComponent as
|
|
3
|
-
import
|
|
4
|
-
import { useLocale as
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import { createCardThemeOverrides as
|
|
10
|
-
import { DEFAULT_PRODUCT_INTRODUCTION_PROPS as
|
|
11
|
-
const
|
|
1
|
+
import { NPopover as R, NCard as M, NButton as O } from "naive-ui";
|
|
2
|
+
import { defineComponent as V, mergeDefaults as z, ref as h, computed as v, resolveComponent as A, createElementBlock as u, openBlock as r, createVNode as l, createBlock as b, withModifiers as k, normalizeStyle as L, withCtx as p, createElementVNode as t, toDisplayString as m, unref as U, Fragment as y, renderList as g, createCommentVNode as $, createTextVNode as P, Teleport as E, withDirectives as F, vShow as j } from "vue";
|
|
3
|
+
import q from "../BaseNavIcon/index.vue.mjs";
|
|
4
|
+
import { useLocale as G } from "../../hooks/useLocale.mjs";
|
|
5
|
+
import H from "../../hooks/useNaiveConfigProvideContext.mjs";
|
|
6
|
+
import J from "../../assets/cover/base-ads.png.mjs";
|
|
7
|
+
import K from "../../assets/cover/base-studio.png.mjs";
|
|
8
|
+
import Q from "../../assets/cover/base-multimodal.png.mjs";
|
|
9
|
+
import { createCardThemeOverrides as W, createPopoverCssVar as X } from "./cssVar.mjs";
|
|
10
|
+
import { DEFAULT_PRODUCT_INTRODUCTION_PROPS as Y } from "./constants.mjs";
|
|
11
|
+
const Z = { class: "header" }, ee = { class: "content-wrap" }, te = { class: "content-item-header" }, oe = { class: "icon" }, ne = { class: "title" }, ie = { class: "description" }, re = {
|
|
12
12
|
key: 0,
|
|
13
13
|
class: "content-child-wrap"
|
|
14
|
-
},
|
|
14
|
+
}, se = ["src"], le = { class: "to-use" }, ce = { class: "base-product-introduction-panel-mask" }, ke = /* @__PURE__ */ V({
|
|
15
15
|
__name: "index",
|
|
16
|
-
props: /* @__PURE__ */
|
|
16
|
+
props: /* @__PURE__ */ z({
|
|
17
17
|
x: {},
|
|
18
18
|
y: {}
|
|
19
|
-
},
|
|
20
|
-
setup(
|
|
21
|
-
const
|
|
19
|
+
}, Y),
|
|
20
|
+
setup(f) {
|
|
21
|
+
const I = H(), { t: e } = G(), c = h(null), n = h(!1), s = v(() => {
|
|
22
|
+
const {
|
|
23
|
+
name: a = "light"
|
|
24
|
+
} = I?.mergedThemeRef.value || {};
|
|
25
|
+
return a !== "light";
|
|
26
|
+
}), C = [
|
|
22
27
|
{
|
|
23
28
|
key: "base1",
|
|
24
29
|
title: e("base.productIntroduction.BasePlatform"),
|
|
25
30
|
description: e("base.productIntroduction.BasePlatformDescription"),
|
|
26
|
-
icon:
|
|
31
|
+
icon: `logo-base${s.value ? "-dark" : ""}`,
|
|
27
32
|
children: [
|
|
28
33
|
{
|
|
29
34
|
key: "base1-1",
|
|
30
35
|
title: e("base.productIntroduction.AdsPlatform"),
|
|
31
36
|
description: e("base.productIntroduction.AdsPlatformDescription"),
|
|
32
|
-
icon:
|
|
37
|
+
icon: J
|
|
33
38
|
},
|
|
34
39
|
{
|
|
35
40
|
key: "base1-2",
|
|
36
41
|
title: e("base.productIntroduction.StudioPlatform"),
|
|
37
42
|
description: e("base.productIntroduction.StudioPlatformDescription"),
|
|
38
|
-
icon:
|
|
43
|
+
icon: K
|
|
39
44
|
},
|
|
40
45
|
{
|
|
41
46
|
key: "base1-2",
|
|
42
47
|
title: e("base.productIntroduction.MultiModalPlatform"),
|
|
43
48
|
description: e("base.productIntroduction.MultiModalPlatformDescription"),
|
|
44
|
-
icon:
|
|
49
|
+
icon: Q
|
|
45
50
|
}
|
|
46
51
|
]
|
|
47
52
|
},
|
|
@@ -49,115 +54,110 @@ const Y = { class: "header" }, Z = { class: "content-wrap" }, ee = { class: "con
|
|
|
49
54
|
key: "base2",
|
|
50
55
|
title: e("base.productIntroduction.BlinkPlatform"),
|
|
51
56
|
description: e("base.productIntroduction.BasePlatformDescription"),
|
|
52
|
-
icon:
|
|
57
|
+
icon: `logo-blink${s.value ? "-dark" : ""}`
|
|
53
58
|
},
|
|
54
59
|
{
|
|
55
60
|
key: "base3",
|
|
56
61
|
title: e("base.productIntroduction.BcollectionPlatform"),
|
|
57
62
|
description: e("base.productIntroduction.BcollectionPlatformDescription"),
|
|
58
|
-
icon:
|
|
63
|
+
icon: `logo-bcollection${s.value ? "-dark" : ""}`
|
|
59
64
|
}
|
|
60
|
-
], v =
|
|
61
|
-
const {
|
|
62
|
-
name: r = "light"
|
|
63
|
-
} = P?.mergedThemeRef.value || {};
|
|
64
|
-
return r !== "light";
|
|
65
|
-
}), C = m(() => Q(v.value)), B = m(() => W(v.value)), w = () => {
|
|
65
|
+
], B = v(() => W(s.value)), w = v(() => X(s.value)), D = () => {
|
|
66
66
|
n.value = !n.value;
|
|
67
|
-
},
|
|
68
|
-
c.value && c.value.instRef && c.value.instRef.contains(
|
|
67
|
+
}, N = (a) => {
|
|
68
|
+
c.value && c.value.instRef && c.value.instRef.contains(a.target) || (n.value = !1);
|
|
69
69
|
};
|
|
70
|
-
return (
|
|
71
|
-
const
|
|
72
|
-
return
|
|
73
|
-
l(
|
|
70
|
+
return (a, i) => {
|
|
71
|
+
const _ = A("svg-icon"), x = O, S = M, T = R;
|
|
72
|
+
return r(), u("div", null, [
|
|
73
|
+
l(q, {
|
|
74
74
|
ref_key: "triggerInstRef",
|
|
75
75
|
ref: c,
|
|
76
76
|
active: n.value,
|
|
77
|
-
onClick:
|
|
77
|
+
onClick: k(D, ["stop"])
|
|
78
78
|
}, null, 8, ["active"]),
|
|
79
79
|
l(T, {
|
|
80
80
|
"content-class": "base-product-introduction-panel-popover",
|
|
81
81
|
trigger: "manual",
|
|
82
82
|
show: n.value,
|
|
83
83
|
"onUpdate:show": i[2] || (i[2] = (o) => n.value = o),
|
|
84
|
-
style:
|
|
84
|
+
style: L(w.value),
|
|
85
85
|
"show-arrow": !1,
|
|
86
86
|
width: 1058,
|
|
87
87
|
scrollable: "",
|
|
88
|
-
x:
|
|
89
|
-
y:
|
|
88
|
+
x: f.x,
|
|
89
|
+
y: f.y,
|
|
90
90
|
"theme-overrides": { padding: "0", space: "0" },
|
|
91
|
-
onClickoutside:
|
|
91
|
+
onClickoutside: N
|
|
92
92
|
}, {
|
|
93
|
-
default:
|
|
93
|
+
default: p(() => [
|
|
94
94
|
t("div", {
|
|
95
95
|
class: "base-product-introduction-panel",
|
|
96
|
-
onClick: i[1] || (i[1] =
|
|
96
|
+
onClick: i[1] || (i[1] = k(() => {
|
|
97
97
|
}, ["stop"]))
|
|
98
98
|
}, [
|
|
99
|
-
t("div",
|
|
100
|
-
t("div", null,
|
|
101
|
-
l(
|
|
99
|
+
t("div", Z, [
|
|
100
|
+
t("div", null, m(U(e)("base.productIntroduction.allProducts")), 1),
|
|
101
|
+
l(_, {
|
|
102
102
|
icon: "operate-close",
|
|
103
103
|
size: "16",
|
|
104
104
|
onClick: i[0] || (i[0] = (o) => n.value = !1)
|
|
105
105
|
})
|
|
106
106
|
]),
|
|
107
|
-
t("div",
|
|
108
|
-
(
|
|
107
|
+
t("div", ee, [
|
|
108
|
+
(r(), u(y, null, g(C, (o) => t("div", {
|
|
109
109
|
key: o.key,
|
|
110
110
|
class: "content-item"
|
|
111
111
|
}, [
|
|
112
|
-
t("div",
|
|
113
|
-
t("div",
|
|
114
|
-
l(
|
|
112
|
+
t("div", te, [
|
|
113
|
+
t("div", oe, [
|
|
114
|
+
l(_, {
|
|
115
115
|
icon: o.icon,
|
|
116
116
|
size: "32"
|
|
117
117
|
}, null, 8, ["icon"])
|
|
118
118
|
]),
|
|
119
|
-
t("div",
|
|
120
|
-
t("div",
|
|
119
|
+
t("div", ne, m(o.title), 1),
|
|
120
|
+
t("div", ie, m(o.description), 1)
|
|
121
121
|
]),
|
|
122
|
-
o.children && o.children.length ? (
|
|
123
|
-
(
|
|
124
|
-
key:
|
|
125
|
-
title:
|
|
126
|
-
"theme-overrides":
|
|
122
|
+
o.children && o.children.length ? (r(), u("div", re, [
|
|
123
|
+
(r(!0), u(y, null, g(o.children, (d) => (r(), b(S, {
|
|
124
|
+
key: d.key,
|
|
125
|
+
title: d.title,
|
|
126
|
+
"theme-overrides": B.value
|
|
127
127
|
}, {
|
|
128
|
-
cover:
|
|
128
|
+
cover: p(() => [
|
|
129
129
|
t("img", {
|
|
130
|
-
src:
|
|
130
|
+
src: d.icon,
|
|
131
131
|
alt: ""
|
|
132
|
-
}, null, 8,
|
|
132
|
+
}, null, 8, se)
|
|
133
133
|
]),
|
|
134
|
-
default:
|
|
135
|
-
|
|
136
|
-
t("div",
|
|
137
|
-
l(
|
|
134
|
+
default: p(() => [
|
|
135
|
+
P(" " + m(d.description) + " ", 1),
|
|
136
|
+
t("div", le, [
|
|
137
|
+
l(x, {
|
|
138
138
|
round: "",
|
|
139
139
|
size: "tiny",
|
|
140
140
|
type: "primary"
|
|
141
141
|
}, {
|
|
142
|
-
default:
|
|
143
|
-
|
|
144
|
-
])),
|
|
142
|
+
default: p(() => [...i[3] || (i[3] = [
|
|
143
|
+
P("开始使用", -1)
|
|
144
|
+
])]),
|
|
145
145
|
_: 1
|
|
146
146
|
})
|
|
147
147
|
])
|
|
148
148
|
]),
|
|
149
149
|
_: 2
|
|
150
150
|
}, 1032, ["title", "theme-overrides"]))), 128))
|
|
151
|
-
])) :
|
|
151
|
+
])) : $("", !0)
|
|
152
152
|
])), 64))
|
|
153
153
|
])
|
|
154
154
|
])
|
|
155
155
|
]),
|
|
156
156
|
_: 1
|
|
157
157
|
}, 8, ["show", "style", "x", "y"]),
|
|
158
|
-
(
|
|
159
|
-
F(t("div",
|
|
160
|
-
[
|
|
158
|
+
(r(), b(E, { to: "body" }, [
|
|
159
|
+
F(t("div", ce, null, 512), [
|
|
160
|
+
[j, n.value]
|
|
161
161
|
])
|
|
162
162
|
]))
|
|
163
163
|
]);
|
|
@@ -165,5 +165,5 @@ const Y = { class: "header" }, Z = { class: "content-wrap" }, ee = { class: "con
|
|
|
165
165
|
}
|
|
166
166
|
});
|
|
167
167
|
export {
|
|
168
|
-
|
|
168
|
+
ke as default
|
|
169
169
|
};
|
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import { NRadio as
|
|
2
|
-
import { defineComponent as
|
|
3
|
-
import
|
|
4
|
-
import { getStyleCssVar as
|
|
5
|
-
const
|
|
1
|
+
import { NRadio as n } from "naive-ui";
|
|
2
|
+
import { defineComponent as l, computed as m, createBlock as i, openBlock as d, mergeProps as c, createSlots as f, renderList as u, withCtx as p, renderSlot as v } from "vue";
|
|
3
|
+
import y from "../../hooks/useNaiveConfigProvideContext.mjs";
|
|
4
|
+
import { getStyleCssVar as C } from "./cssVar.mjs";
|
|
5
|
+
const x = /* @__PURE__ */ l({
|
|
6
6
|
name: "BaseRadio",
|
|
7
7
|
__name: "index",
|
|
8
8
|
props: {
|
|
9
9
|
className: { default: "" },
|
|
10
10
|
style: { default: () => ({}) }
|
|
11
11
|
},
|
|
12
|
-
setup(
|
|
13
|
-
const { mergedThemeOverridesRef:
|
|
14
|
-
return (e,
|
|
15
|
-
const
|
|
16
|
-
return
|
|
17
|
-
class: ["base-radio",
|
|
18
|
-
style: [
|
|
19
|
-
}),
|
|
20
|
-
|
|
21
|
-
name:
|
|
22
|
-
fn:
|
|
23
|
-
|
|
12
|
+
setup(t) {
|
|
13
|
+
const { mergedThemeOverridesRef: r } = y(), s = m(() => C(r?.value?.Radio));
|
|
14
|
+
return (e, _) => {
|
|
15
|
+
const a = n;
|
|
16
|
+
return d(), i(a, c(e.$attrs, {
|
|
17
|
+
class: ["base-radio", t.className],
|
|
18
|
+
style: [s.value, t.style]
|
|
19
|
+
}), f({ _: 2 }, [
|
|
20
|
+
u(e.$slots, (g, o) => ({
|
|
21
|
+
name: o,
|
|
22
|
+
fn: p(() => [
|
|
23
|
+
v(e.$slots, o, {}, void 0, !0)
|
|
24
24
|
])
|
|
25
25
|
}))
|
|
26
26
|
]), 1040, ["class", "style"]);
|
|
@@ -28,5 +28,5 @@ const B = /* @__PURE__ */ n({
|
|
|
28
28
|
}
|
|
29
29
|
});
|
|
30
30
|
export {
|
|
31
|
-
|
|
31
|
+
x as default
|
|
32
32
|
};
|
|
@@ -3,6 +3,7 @@ type PropsType = {
|
|
|
3
3
|
disabled?: SelectProps['disabled'];
|
|
4
4
|
multiple?: boolean;
|
|
5
5
|
size?: SelectProps['size'];
|
|
6
|
+
maxTagCount?: SelectProps['maxTagCount'];
|
|
6
7
|
};
|
|
7
8
|
declare function __VLS_template(): {
|
|
8
9
|
attrs: Partial<{}>;
|
|
@@ -13,7 +14,6 @@ declare function __VLS_template(): {
|
|
|
13
14
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
14
15
|
declare const __VLS_component: import('vue').DefineComponent<PropsType, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<PropsType> & Readonly<{}>, {
|
|
15
16
|
disabled: boolean;
|
|
16
|
-
size: import('naive-ui/es/select/src/interface').Size;
|
|
17
17
|
multiple: boolean;
|
|
18
18
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
19
19
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
@@ -2,7 +2,7 @@ import o from "./index.vue2.mjs";
|
|
|
2
2
|
/* empty css */
|
|
3
3
|
/* empty css */
|
|
4
4
|
import t from "../../_virtual/_plugin-vue_export-helper.mjs";
|
|
5
|
-
const
|
|
5
|
+
const i = /* @__PURE__ */ t(o, [["__scopeId", "data-v-26671a0a"]]);
|
|
6
6
|
export {
|
|
7
|
-
|
|
7
|
+
i as default
|
|
8
8
|
};
|
|
@@ -1,65 +1,67 @@
|
|
|
1
|
-
import { NSelect as i, NCheckbox as u, NTag as
|
|
2
|
-
import { defineComponent as
|
|
3
|
-
const
|
|
1
|
+
import { NSelect as i, NCheckbox as u, NTag as m } from "naive-ui";
|
|
2
|
+
import { defineComponent as c, createBlock as b, openBlock as f, mergeProps as p, createSlots as g, renderList as C, withCtx as T, renderSlot as x, h as d } from "vue";
|
|
3
|
+
const B = /* @__PURE__ */ c({
|
|
4
4
|
name: "BaseSelect",
|
|
5
5
|
__name: "index",
|
|
6
6
|
props: {
|
|
7
7
|
disabled: { default: !1 },
|
|
8
8
|
multiple: { type: Boolean, default: !1 },
|
|
9
|
-
size: {
|
|
9
|
+
size: {},
|
|
10
|
+
maxTagCount: {}
|
|
10
11
|
},
|
|
11
|
-
setup(
|
|
12
|
-
const
|
|
13
|
-
|
|
12
|
+
setup(l) {
|
|
13
|
+
const s = l, r = (e, a) => [
|
|
14
|
+
d(
|
|
14
15
|
u,
|
|
15
16
|
{
|
|
16
|
-
checked:
|
|
17
|
+
checked: a,
|
|
17
18
|
disabled: e.disabled
|
|
18
19
|
},
|
|
19
20
|
{
|
|
20
21
|
default: () => e.label
|
|
21
22
|
}
|
|
22
23
|
)
|
|
23
|
-
],
|
|
24
|
-
|
|
24
|
+
], o = ({ option: e, handleClose: a }) => d(
|
|
25
|
+
m,
|
|
25
26
|
{
|
|
26
27
|
type: "default",
|
|
27
28
|
closable: !0,
|
|
28
29
|
bordered: !1,
|
|
29
|
-
disabled:
|
|
30
|
-
size:
|
|
31
|
-
onMousedown: (
|
|
32
|
-
|
|
30
|
+
disabled: s.disabled,
|
|
31
|
+
size: s.size,
|
|
32
|
+
onMousedown: (t) => {
|
|
33
|
+
t.preventDefault();
|
|
33
34
|
},
|
|
34
|
-
onClose: (
|
|
35
|
-
|
|
35
|
+
onClose: (t) => {
|
|
36
|
+
t.stopPropagation(), a();
|
|
36
37
|
}
|
|
37
38
|
},
|
|
38
39
|
{ default: () => e.label }
|
|
39
40
|
);
|
|
40
|
-
return (e,
|
|
41
|
-
const
|
|
42
|
-
return
|
|
41
|
+
return (e, a) => {
|
|
42
|
+
const t = i;
|
|
43
|
+
return f(), b(t, p({
|
|
43
44
|
class: "base-select",
|
|
44
|
-
disabled:
|
|
45
|
-
renderTag:
|
|
46
|
-
"render-label":
|
|
47
|
-
|
|
48
|
-
|
|
45
|
+
disabled: l.disabled,
|
|
46
|
+
renderTag: l.multiple ? o : void 0,
|
|
47
|
+
"render-label": l.multiple ? r : void 0,
|
|
48
|
+
maxTagCount: l.maxTagCount,
|
|
49
|
+
multiple: l.multiple,
|
|
50
|
+
size: l.size,
|
|
49
51
|
"menu-props": {
|
|
50
52
|
class: "base-select-menu"
|
|
51
53
|
}
|
|
52
54
|
}, e.$attrs), g({ _: 2 }, [
|
|
53
|
-
|
|
54
|
-
name:
|
|
55
|
-
fn:
|
|
56
|
-
|
|
55
|
+
C(e.$slots, (z, n) => ({
|
|
56
|
+
name: n,
|
|
57
|
+
fn: T(() => [
|
|
58
|
+
x(e.$slots, n, {}, void 0, !0)
|
|
57
59
|
])
|
|
58
60
|
}))
|
|
59
|
-
]), 1040, ["disabled", "renderTag", "render-label", "multiple", "size"]);
|
|
61
|
+
]), 1040, ["disabled", "renderTag", "render-label", "maxTagCount", "multiple", "size"]);
|
|
60
62
|
};
|
|
61
63
|
}
|
|
62
64
|
});
|
|
63
65
|
export {
|
|
64
|
-
|
|
66
|
+
B as default
|
|
65
67
|
};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { NSlider as
|
|
2
|
-
import { defineComponent as
|
|
3
|
-
import
|
|
4
|
-
const
|
|
1
|
+
import { NSlider as h, NInputNumber as z } from "naive-ui";
|
|
2
|
+
import { defineComponent as w, shallowRef as b, computed as B, watch as k, createElementBlock as u, openBlock as i, normalizeStyle as N, createElementVNode as o, createCommentVNode as r, createVNode as s, mergeProps as S, toDisplayString as v, createBlock as C, Fragment as p } from "vue";
|
|
3
|
+
import E from "../../hooks/useNaiveConfigProvideContext.mjs";
|
|
4
|
+
const I = { class: "slider-content" }, T = {
|
|
5
5
|
key: 0,
|
|
6
6
|
class: "extreme-value-text"
|
|
7
|
-
},
|
|
7
|
+
}, U = {
|
|
8
8
|
key: 0,
|
|
9
9
|
class: "slider-input"
|
|
10
|
-
}, D = /* @__PURE__ */
|
|
10
|
+
}, D = /* @__PURE__ */ w({
|
|
11
11
|
name: "BaseSlider",
|
|
12
12
|
__name: "index",
|
|
13
13
|
props: {
|
|
@@ -22,82 +22,82 @@ const T = { class: "slider-content" }, U = {
|
|
|
22
22
|
precision: { default: 0 }
|
|
23
23
|
},
|
|
24
24
|
emits: ["update:value"],
|
|
25
|
-
setup(
|
|
26
|
-
const f =
|
|
25
|
+
setup(e, { emit: x }) {
|
|
26
|
+
const f = e, { mergedThemeOverridesRef: c } = E(), d = b({}), y = x, t = B({
|
|
27
27
|
get() {
|
|
28
28
|
return f.value;
|
|
29
29
|
},
|
|
30
|
-
set(
|
|
31
|
-
|
|
30
|
+
set(l) {
|
|
31
|
+
y("update:value", l);
|
|
32
32
|
}
|
|
33
33
|
});
|
|
34
|
-
return
|
|
35
|
-
() =>
|
|
36
|
-
(
|
|
37
|
-
|
|
38
|
-
"--n-slider-handler-border":
|
|
39
|
-
"--n-slider-input-width":
|
|
40
|
-
"--n-slider-range-input-line-color":
|
|
41
|
-
"--n-slider-extreme-value-text-color":
|
|
34
|
+
return k(
|
|
35
|
+
() => c?.value?.Slider,
|
|
36
|
+
(l) => {
|
|
37
|
+
l && (d.value = {
|
|
38
|
+
"--n-slider-handler-border": l.handleBorderStyle,
|
|
39
|
+
"--n-slider-input-width": l.inputWidth,
|
|
40
|
+
"--n-slider-range-input-line-color": l.rangeInputLineColor,
|
|
41
|
+
"--n-slider-extreme-value-text-color": l.extremeValueTextColor
|
|
42
42
|
});
|
|
43
43
|
},
|
|
44
44
|
{
|
|
45
45
|
immediate: !0
|
|
46
46
|
}
|
|
47
|
-
), (
|
|
48
|
-
const
|
|
49
|
-
return i(),
|
|
47
|
+
), (l, n) => {
|
|
48
|
+
const g = h, m = z;
|
|
49
|
+
return i(), u("div", {
|
|
50
50
|
class: "base-slider",
|
|
51
|
-
style:
|
|
51
|
+
style: N([d.value, e.style])
|
|
52
52
|
}, [
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
value:
|
|
56
|
-
"onUpdate:value":
|
|
53
|
+
o("div", I, [
|
|
54
|
+
s(g, S(l.$attrs, {
|
|
55
|
+
value: t.value,
|
|
56
|
+
"onUpdate:value": n[0] || (n[0] = (a) => t.value = a),
|
|
57
57
|
min: e.min,
|
|
58
58
|
max: e.max,
|
|
59
59
|
range: e.range
|
|
60
60
|
}), null, 16, ["value", "min", "max", "range"]),
|
|
61
|
-
e.showExtremeValueText ? (i(),
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
])) :
|
|
61
|
+
e.showExtremeValueText ? (i(), u("div", T, [
|
|
62
|
+
o("div", null, v(e.min), 1),
|
|
63
|
+
o("div", null, v(e.max), 1)
|
|
64
|
+
])) : r("", !0)
|
|
65
65
|
]),
|
|
66
|
-
e.showInput ? (i(),
|
|
67
|
-
!e.range && typeof
|
|
66
|
+
e.showInput ? (i(), u("div", U, [
|
|
67
|
+
!e.range && typeof t.value == "number" ? (i(), C(m, {
|
|
68
68
|
key: 0,
|
|
69
69
|
"show-button": !1,
|
|
70
70
|
placeholder: "",
|
|
71
71
|
size: e.size,
|
|
72
|
-
value:
|
|
73
|
-
"onUpdate:value":
|
|
72
|
+
value: t.value,
|
|
73
|
+
"onUpdate:value": n[1] || (n[1] = (a) => t.value = a),
|
|
74
74
|
min: e.min,
|
|
75
75
|
max: e.max,
|
|
76
76
|
precision: e.precision
|
|
77
|
-
}, null, 8, ["size", "value", "min", "max", "precision"])) : e.range && typeof
|
|
78
|
-
|
|
77
|
+
}, null, 8, ["size", "value", "min", "max", "precision"])) : e.range && typeof t.value != "number" ? (i(), u(p, { key: 1 }, [
|
|
78
|
+
s(m, {
|
|
79
79
|
"show-button": !1,
|
|
80
80
|
placeholder: "",
|
|
81
81
|
size: e.size,
|
|
82
|
-
value:
|
|
83
|
-
"onUpdate:value":
|
|
82
|
+
value: t.value[0],
|
|
83
|
+
"onUpdate:value": n[2] || (n[2] = (a) => t.value[0] = a),
|
|
84
84
|
min: e.min,
|
|
85
85
|
max: e.max,
|
|
86
86
|
precision: e.precision
|
|
87
87
|
}, null, 8, ["size", "value", "min", "max", "precision"]),
|
|
88
|
-
|
|
89
|
-
|
|
88
|
+
n[4] || (n[4] = o("div", { class: "line" }, null, -1)),
|
|
89
|
+
s(m, {
|
|
90
90
|
"show-button": !1,
|
|
91
91
|
placeholder: "",
|
|
92
92
|
size: e.size,
|
|
93
|
-
value:
|
|
94
|
-
"onUpdate:value":
|
|
93
|
+
value: t.value[1],
|
|
94
|
+
"onUpdate:value": n[3] || (n[3] = (a) => t.value[1] = a),
|
|
95
95
|
min: e.min,
|
|
96
96
|
max: e.max,
|
|
97
97
|
precision: e.precision
|
|
98
98
|
}, null, 8, ["size", "value", "min", "max", "precision"])
|
|
99
|
-
], 64)) :
|
|
100
|
-
])) :
|
|
99
|
+
], 64)) : r("", !0)
|
|
100
|
+
])) : r("", !0)
|
|
101
101
|
], 4);
|
|
102
102
|
};
|
|
103
103
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as BaseSteps } from './steps';
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
2
|
+
readonly status: import('vue').PropType<"process" | "finish" | "error" | "wait">;
|
|
3
|
+
readonly title: StringConstructor;
|
|
4
|
+
readonly description: StringConstructor;
|
|
5
|
+
readonly disabled: BooleanConstructor;
|
|
6
|
+
readonly internalIndex: {
|
|
7
|
+
readonly type: NumberConstructor;
|
|
8
|
+
readonly default: 0;
|
|
9
|
+
};
|
|
10
|
+
}>, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
11
|
+
[key: string]: any;
|
|
12
|
+
}>, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
13
|
+
readonly status: import('vue').PropType<"process" | "finish" | "error" | "wait">;
|
|
14
|
+
readonly title: StringConstructor;
|
|
15
|
+
readonly description: StringConstructor;
|
|
16
|
+
readonly disabled: BooleanConstructor;
|
|
17
|
+
readonly internalIndex: {
|
|
18
|
+
readonly type: NumberConstructor;
|
|
19
|
+
readonly default: 0;
|
|
20
|
+
};
|
|
21
|
+
}>> & Readonly<{}>, {
|
|
22
|
+
readonly disabled: boolean;
|
|
23
|
+
readonly internalIndex: number;
|
|
24
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
25
|
+
export default _default;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { defineComponent as t, h as i } from "vue";
|
|
2
|
+
import { stepProps as p, NSteps as s } from "naive-ui";
|
|
3
|
+
import { renderStepsFinishIcon as f } from "../../utils/render.mjs";
|
|
4
|
+
const a = t({
|
|
5
|
+
name: "BaseSteps",
|
|
6
|
+
props: p,
|
|
7
|
+
setup(e, { slots: r }) {
|
|
8
|
+
const n = () => r.finishIcon ? () => r.finishIcon() : () => f("16"), o = () => {
|
|
9
|
+
if (r.errorIcon) return () => r.errorIcon();
|
|
10
|
+
};
|
|
11
|
+
return () => i(
|
|
12
|
+
s,
|
|
13
|
+
{
|
|
14
|
+
...e,
|
|
15
|
+
class: "base-steps"
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
default: () => r.default ? r.default() : void 0,
|
|
19
|
+
"finish-icon": n(),
|
|
20
|
+
"error-icon": o()
|
|
21
|
+
}
|
|
22
|
+
);
|
|
23
|
+
}
|
|
24
|
+
});
|
|
25
|
+
export {
|
|
26
|
+
a as default
|
|
27
|
+
};
|