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.
Files changed (203) hide show
  1. package/dist/components/BaseCascader/cssVar.d.ts +10 -0
  2. package/dist/components/BaseConfigProvider/locale-base.d.ts +2 -2
  3. package/dist/components/BaseConfigProvider/locale-naive.d.ts +3 -3
  4. package/dist/components/BaseConfigProvider/type.d.ts +3 -2
  5. package/dist/components/BaseDataTable/index.vue.d.ts +1 -1
  6. package/dist/components/BaseDialog/index.vue.d.ts +2 -2
  7. package/dist/components/BaseInputNumber/index.vue.d.ts +0 -1
  8. package/dist/components/BaseLayout/Default/index.vue.d.ts +1 -1
  9. package/dist/components/BaseLayout/Default/type.d.ts +1 -1
  10. package/dist/components/BaseLayout/index.vue.d.ts +1 -1
  11. package/dist/components/BaseSelect/index.vue.d.ts +1 -1
  12. package/dist/components/BaseSteps/index.d.ts +1 -0
  13. package/dist/components/BaseSteps/steps.d.ts +25 -0
  14. package/dist/components/BaseTabs/cssVar.d.ts +4 -0
  15. package/dist/components/BaseTabs/index.d.ts +2 -0
  16. package/dist/components/BaseTabs/tabs.d.ts +699 -0
  17. package/dist/components/index.d.ts +2 -0
  18. package/dist/config/themes/common.d.ts +1 -0
  19. package/dist/config/themes/components/baseComponent/dark.d.ts +3 -2
  20. package/dist/config/themes/components/baseComponent/light.d.ts +3 -2
  21. package/dist/config/themes/components/cascader/common.d.ts +2 -2
  22. package/dist/config/themes/components/cascader/dark.d.ts +2 -2
  23. package/dist/config/themes/components/cascader/light.d.ts +2 -2
  24. package/dist/fonts/MiSans-Medium.ttf +0 -0
  25. package/dist/fonts/MiSans-Regular.ttf +0 -0
  26. package/dist/hooks/useAnimationHook.d.ts +1 -1
  27. package/dist/index.css +1 -1
  28. package/dist/index.d.ts +1 -0
  29. package/dist/index.umd.js +1 -1
  30. package/dist/types/themes/components.d.ts +4 -2
  31. package/dist/types/themes/extendThemes.d.ts +10 -0
  32. package/dist/utils/render.d.ts +3 -0
  33. package/es/_virtual/virtual_svg-icons-register.mjs +1 -1
  34. package/es/assets/logo/logo-dark-full.svg.mjs +2 -2
  35. package/es/assets/logo/logo-light-full.svg.mjs +2 -2
  36. package/es/components/BaseButton/index.vue.mjs +14 -14
  37. package/es/components/BaseCascader/cssVar.d.ts +10 -0
  38. package/es/components/BaseCascader/cssVar.mjs +13 -0
  39. package/es/components/BaseCascader/index.vue.mjs +2 -2
  40. package/es/components/BaseCascader/index.vue2.mjs +19 -13
  41. package/es/components/BaseConfigProvider/index.vue.mjs +14 -14
  42. package/es/components/BaseConfigProvider/locale-base.d.ts +2 -2
  43. package/es/components/BaseConfigProvider/locale-naive.d.ts +3 -3
  44. package/es/components/BaseConfigProvider/type.d.ts +3 -2
  45. package/es/components/BaseDataTable/index.vue.d.ts +1 -1
  46. package/es/components/BaseDataTable/index.vue2.mjs +13 -13
  47. package/es/components/BaseDialog/index.vue.d.ts +2 -2
  48. package/es/components/BaseDialog/index.vue.mjs +43 -43
  49. package/es/components/BaseInputNumber/index.vue.d.ts +0 -1
  50. package/es/components/BaseInputNumber/index.vue.mjs +1 -1
  51. package/es/components/BaseInputNumber/index.vue2.mjs +57 -57
  52. package/es/components/BaseLayout/ASide/index.vue.mjs +2 -2
  53. package/es/components/BaseLayout/ASide/index.vue2.mjs +27 -27
  54. package/es/components/BaseLayout/Default/index.vue.d.ts +1 -1
  55. package/es/components/BaseLayout/Default/index.vue2.mjs +56 -56
  56. package/es/components/BaseLayout/Default/layoutMenu/components/first-level-menu.vue2.mjs +30 -30
  57. package/es/components/BaseLayout/Default/type.d.ts +1 -1
  58. package/es/components/BaseLayout/components/WrapFooter.vue.mjs +14 -14
  59. package/es/components/BaseLayout/components/WrapHeader.vue2.mjs +8 -8
  60. package/es/components/BaseLayout/components/WrapTab.vue.mjs +12 -12
  61. package/es/components/BaseLayout/index.vue.d.ts +1 -1
  62. package/es/components/BaseLayout/index.vue2.mjs +36 -36
  63. package/es/components/BaseNavIcon/index.vue2.mjs +14 -14
  64. package/es/components/BaseProductIntroduction/index.vue.mjs +2 -2
  65. package/es/components/BaseProductIntroduction/index.vue2.mjs +71 -71
  66. package/es/components/BaseRadio/index.vue2.mjs +18 -18
  67. package/es/components/BaseSelect/index.vue.d.ts +1 -1
  68. package/es/components/BaseSelect/index.vue.mjs +2 -2
  69. package/es/components/BaseSelect/index.vue2.mjs +32 -30
  70. package/es/components/BaseSlider/index.vue2.mjs +44 -44
  71. package/es/components/BaseSteps/index.d.ts +1 -0
  72. package/es/components/BaseSteps/steps.d.ts +25 -0
  73. package/es/components/BaseSteps/steps.mjs +27 -0
  74. package/es/components/BaseSwitch/index.vue2.mjs +17 -17
  75. package/es/components/BaseSystemActions/index.vue.mjs +2 -2
  76. package/es/components/BaseSystemActions/index.vue2.mjs +20 -20
  77. package/es/components/BaseTabs/cssVar.d.ts +4 -0
  78. package/es/components/BaseTabs/cssVar.mjs +7 -0
  79. package/es/components/BaseTabs/index.d.ts +2 -0
  80. package/es/components/BaseTabs/tabs.d.ts +699 -0
  81. package/es/components/BaseTabs/tabs.mjs +43 -0
  82. package/es/components/index.d.ts +2 -0
  83. package/es/config/themes/common.d.ts +1 -0
  84. package/es/config/themes/common.mjs +2 -1
  85. package/es/config/themes/components/baseComponent/dark.d.ts +3 -2
  86. package/es/config/themes/components/baseComponent/dark.mjs +13 -6
  87. package/es/config/themes/components/baseComponent/light.d.ts +3 -2
  88. package/es/config/themes/components/baseComponent/light.mjs +10 -5
  89. package/es/config/themes/components/button/common.mjs +4 -4
  90. package/es/config/themes/components/cascader/common.d.ts +2 -2
  91. package/es/config/themes/components/cascader/common.mjs +4 -2
  92. package/es/config/themes/components/cascader/dark.d.ts +2 -2
  93. package/es/config/themes/components/cascader/dark.mjs +6 -2
  94. package/es/config/themes/components/cascader/light.d.ts +2 -2
  95. package/es/config/themes/components/cascader/light.mjs +10 -6
  96. package/es/config/themes/components/dataTable/dark.mjs +2 -0
  97. package/es/config/themes/components/dataTable/light.mjs +2 -0
  98. package/es/config/themes/components/input/dark.mjs +1 -1
  99. package/es/config/themes/components/select/dark.mjs +3 -2
  100. package/es/config/themes/components/select/light.mjs +1 -0
  101. package/es/config/themes/components/slider/dark.mjs +2 -1
  102. package/es/config/themes/components/slider/light.mjs +2 -1
  103. package/es/fonts/MiSans-Medium.ttf +0 -0
  104. package/es/fonts/MiSans-Regular.ttf +0 -0
  105. package/es/hooks/useAnimationHook.d.ts +1 -1
  106. package/es/hooks/useAnimationHook.mjs +17 -14
  107. package/es/index.css +1 -1
  108. package/es/index.d.ts +1 -0
  109. package/es/index.mjs +59 -52
  110. package/es/locale/lang/en-us.mjs +2 -2
  111. package/es/locale/lang/zh-cn.mjs +2 -2
  112. 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
  113. package/es/types/themes/components.d.ts +4 -2
  114. package/es/types/themes/extendThemes.d.ts +10 -0
  115. package/es/utils/render.d.ts +3 -0
  116. package/es/utils/render.mjs +9 -0
  117. package/lib/_virtual/virtual_svg-icons-register.js +1 -1
  118. package/lib/assets/logo/logo-dark-full.svg.js +1 -1
  119. package/lib/assets/logo/logo-light-full.svg.js +1 -1
  120. package/lib/components/BaseButton/index.vue.js +1 -1
  121. package/lib/components/BaseCascader/cssVar.d.ts +10 -0
  122. package/lib/components/BaseCascader/cssVar.js +1 -0
  123. package/lib/components/BaseCascader/index.vue.js +1 -1
  124. package/lib/components/BaseCascader/index.vue2.js +1 -1
  125. package/lib/components/BaseConfigProvider/index.vue.js +1 -1
  126. package/lib/components/BaseConfigProvider/locale-base.d.ts +2 -2
  127. package/lib/components/BaseConfigProvider/locale-naive.d.ts +3 -3
  128. package/lib/components/BaseConfigProvider/type.d.ts +3 -2
  129. package/lib/components/BaseDataTable/index.vue.d.ts +1 -1
  130. package/lib/components/BaseDataTable/index.vue2.js +1 -1
  131. package/lib/components/BaseDialog/index.vue.d.ts +2 -2
  132. package/lib/components/BaseDialog/index.vue.js +1 -1
  133. package/lib/components/BaseInputNumber/index.vue.d.ts +0 -1
  134. package/lib/components/BaseInputNumber/index.vue.js +1 -1
  135. package/lib/components/BaseInputNumber/index.vue2.js +1 -1
  136. package/lib/components/BaseLayout/ASide/index.vue.js +1 -1
  137. package/lib/components/BaseLayout/ASide/index.vue2.js +1 -1
  138. package/lib/components/BaseLayout/Default/index.vue.d.ts +1 -1
  139. package/lib/components/BaseLayout/Default/index.vue2.js +1 -1
  140. package/lib/components/BaseLayout/Default/layoutMenu/components/first-level-menu.vue2.js +1 -1
  141. package/lib/components/BaseLayout/Default/type.d.ts +1 -1
  142. package/lib/components/BaseLayout/components/WrapFooter.vue.js +1 -1
  143. package/lib/components/BaseLayout/components/WrapHeader.vue2.js +1 -1
  144. package/lib/components/BaseLayout/components/WrapTab.vue.js +1 -1
  145. package/lib/components/BaseLayout/index.vue.d.ts +1 -1
  146. package/lib/components/BaseLayout/index.vue2.js +1 -1
  147. package/lib/components/BaseNavIcon/index.vue2.js +1 -1
  148. package/lib/components/BaseProductIntroduction/index.vue.js +1 -1
  149. package/lib/components/BaseProductIntroduction/index.vue2.js +1 -1
  150. package/lib/components/BaseRadio/index.vue2.js +1 -1
  151. package/lib/components/BaseSelect/index.vue.d.ts +1 -1
  152. package/lib/components/BaseSelect/index.vue.js +1 -1
  153. package/lib/components/BaseSelect/index.vue2.js +1 -1
  154. package/lib/components/BaseSlider/index.vue2.js +1 -1
  155. package/lib/components/BaseSteps/index.d.ts +1 -0
  156. package/lib/components/BaseSteps/steps.d.ts +25 -0
  157. package/lib/components/BaseSteps/steps.js +1 -0
  158. package/lib/components/BaseSwitch/index.vue2.js +1 -1
  159. package/lib/components/BaseSystemActions/index.vue.js +1 -1
  160. package/lib/components/BaseSystemActions/index.vue2.js +1 -1
  161. package/lib/components/BaseTabs/cssVar.d.ts +4 -0
  162. package/lib/components/BaseTabs/cssVar.js +1 -0
  163. package/lib/components/BaseTabs/index.d.ts +2 -0
  164. package/lib/components/BaseTabs/tabs.d.ts +699 -0
  165. package/lib/components/BaseTabs/tabs.js +1 -0
  166. package/lib/components/index.d.ts +2 -0
  167. package/lib/config/themes/common.d.ts +1 -0
  168. package/lib/config/themes/common.js +1 -1
  169. package/lib/config/themes/components/baseComponent/dark.d.ts +3 -2
  170. package/lib/config/themes/components/baseComponent/dark.js +1 -1
  171. package/lib/config/themes/components/baseComponent/light.d.ts +3 -2
  172. package/lib/config/themes/components/baseComponent/light.js +1 -1
  173. package/lib/config/themes/components/button/common.js +1 -1
  174. package/lib/config/themes/components/cascader/common.d.ts +2 -2
  175. package/lib/config/themes/components/cascader/common.js +1 -1
  176. package/lib/config/themes/components/cascader/dark.d.ts +2 -2
  177. package/lib/config/themes/components/cascader/dark.js +1 -1
  178. package/lib/config/themes/components/cascader/light.d.ts +2 -2
  179. package/lib/config/themes/components/cascader/light.js +1 -1
  180. package/lib/config/themes/components/dataTable/dark.js +1 -1
  181. package/lib/config/themes/components/dataTable/light.js +1 -1
  182. package/lib/config/themes/components/input/dark.js +1 -1
  183. package/lib/config/themes/components/select/dark.js +1 -1
  184. package/lib/config/themes/components/select/light.js +1 -1
  185. package/lib/config/themes/components/slider/dark.js +1 -1
  186. package/lib/config/themes/components/slider/light.js +1 -1
  187. package/lib/fonts/MiSans-Medium.ttf +0 -0
  188. package/lib/fonts/MiSans-Regular.ttf +0 -0
  189. package/lib/hooks/useAnimationHook.d.ts +1 -1
  190. package/lib/hooks/useAnimationHook.js +1 -1
  191. package/lib/index.css +1 -1
  192. package/lib/index.d.ts +1 -0
  193. package/lib/index.js +1 -1
  194. package/lib/locale/lang/en-us.js +1 -1
  195. package/lib/locale/lang/zh-cn.js +1 -1
  196. 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
  197. package/lib/types/themes/components.d.ts +4 -2
  198. package/lib/types/themes/extendThemes.d.ts +10 -0
  199. package/lib/utils/render.d.ts +3 -0
  200. package/lib/utils/render.js +1 -0
  201. package/package.json +3 -1
  202. /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
  203. /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 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 = {
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
- }, re = ["src"], se = { class: "to-use" }, le = { class: "base-product-introduction-panel-mask" }, ye = /* @__PURE__ */ O({
14
+ }, se = ["src"], le = { class: "to-use" }, ce = { class: "base-product-introduction-panel-mask" }, ke = /* @__PURE__ */ V({
15
15
  __name: "index",
16
- props: /* @__PURE__ */ V({
16
+ props: /* @__PURE__ */ z({
17
17
  x: {},
18
18
  y: {}
19
- }, X),
20
- setup(ce) {
21
- const P = G(), { t: e } = q(), c = _(null), n = _(!1), I = [
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: "logo-base",
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: H
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: J
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: K
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: "logo-blink"
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: "logo-bcollection"
63
+ icon: `logo-bcollection${s.value ? "-dark" : ""}`
59
64
  }
60
- ], v = m(() => {
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
- }, D = (r) => {
68
- c.value && c.value.instRef && c.value.instRef.contains(r.target) || (n.value = !1);
67
+ }, N = (a) => {
68
+ c.value && c.value.instRef && c.value.instRef.contains(a.target) || (n.value = !1);
69
69
  };
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, {
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: b(w, ["stop"])
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: A(B.value),
84
+ style: L(w.value),
85
85
  "show-arrow": !1,
86
86
  width: 1058,
87
87
  scrollable: "",
88
- x: r.x,
89
- y: r.y,
88
+ x: f.x,
89
+ y: f.y,
90
90
  "theme-overrides": { padding: "0", space: "0" },
91
- onClickoutside: D
91
+ onClickoutside: N
92
92
  }, {
93
- default: u(() => [
93
+ default: p(() => [
94
94
  t("div", {
95
95
  class: "base-product-introduction-panel",
96
- onClick: i[1] || (i[1] = b(() => {
96
+ onClick: i[1] || (i[1] = k(() => {
97
97
  }, ["stop"]))
98
98
  }, [
99
- t("div", Y, [
100
- t("div", null, p(L(e)("base.productIntroduction.allProducts")), 1),
101
- l(f, {
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", Z, [
108
- (s(), d(y, null, k(I, (o) => t("div", {
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", ee, [
113
- t("div", te, [
114
- l(f, {
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", oe, p(o.title), 1),
120
- t("div", ne, p(o.description), 1)
119
+ t("div", ne, m(o.title), 1),
120
+ t("div", ie, m(o.description), 1)
121
121
  ]),
122
- o.children && o.children.length ? (s(), d("div", ie, [
123
- (s(!0), d(y, null, k(o.children, (a) => (s(), h(S, {
124
- key: a.key,
125
- title: a.title,
126
- "theme-overrides": C.value
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: u(() => [
128
+ cover: p(() => [
129
129
  t("img", {
130
- src: a.icon,
130
+ src: d.icon,
131
131
  alt: ""
132
- }, null, 8, re)
132
+ }, null, 8, se)
133
133
  ]),
134
- default: u(() => [
135
- g(" " + p(a.description) + " ", 1),
136
- t("div", se, [
137
- l(N, {
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: u(() => i[3] || (i[3] = [
143
- g("开始使用")
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
- ])) : U("", !0)
151
+ ])) : $("", !0)
152
152
  ])), 64))
153
153
  ])
154
154
  ])
155
155
  ]),
156
156
  _: 1
157
157
  }, 8, ["show", "style", "x", "y"]),
158
- (s(), h(E, { to: "body" }, [
159
- F(t("div", le, null, 512), [
160
- [$, n.value]
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
- ye as default
168
+ ke as default
169
169
  };
@@ -1,26 +1,26 @@
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({
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(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, {
17
- class: ["base-radio", e.className],
18
- style: [r.value, e.style]
19
- }), p({ _: 2 }, [
20
- c(e.$slots, (g, t) => ({
21
- name: t,
22
- fn: f(() => [
23
- u(e.$slots, t, {}, void 0, !0)
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
- B as default
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 f = /* @__PURE__ */ t(o, [["__scopeId", "data-v-066f4ee0"]]);
5
+ const i = /* @__PURE__ */ t(o, [["__scopeId", "data-v-26671a0a"]]);
6
6
  export {
7
- f as default
7
+ i as default
8
8
  };
@@ -1,65 +1,67 @@
1
- import { NSelect as i, NCheckbox as u, NTag as p } from "naive-ui";
2
- import { defineComponent as m, createBlock as b, openBlock as c, mergeProps as f, createSlots as g, renderList as z, withCtx as h, renderSlot as v, h as r } from "vue";
3
- const T = /* @__PURE__ */ m({
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: { default: "medium" }
9
+ size: {},
10
+ maxTagCount: {}
10
11
  },
11
- setup(d) {
12
- const t = d, o = (e, s) => [
13
- r(
12
+ setup(l) {
13
+ const s = l, r = (e, a) => [
14
+ d(
14
15
  u,
15
16
  {
16
- checked: s,
17
+ checked: a,
17
18
  disabled: e.disabled
18
19
  },
19
20
  {
20
21
  default: () => e.label
21
22
  }
22
23
  )
23
- ], n = ({ option: e, handleClose: s }) => r(
24
- p,
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: t.disabled,
30
- size: t.size,
31
- onMousedown: (l) => {
32
- l.preventDefault();
30
+ disabled: s.disabled,
31
+ size: s.size,
32
+ onMousedown: (t) => {
33
+ t.preventDefault();
33
34
  },
34
- onClose: (l) => {
35
- l.stopPropagation(), s();
35
+ onClose: (t) => {
36
+ t.stopPropagation(), a();
36
37
  }
37
38
  },
38
39
  { default: () => e.label }
39
40
  );
40
- return (e, s) => {
41
- const l = i;
42
- return c(), b(l, f({
41
+ return (e, a) => {
42
+ const t = i;
43
+ return f(), b(t, p({
43
44
  class: "base-select",
44
- disabled: e.disabled,
45
- renderTag: e.multiple ? n : void 0,
46
- "render-label": e.multiple ? o : void 0,
47
- multiple: e.multiple,
48
- size: e.size,
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
- z(e.$slots, (B, a) => ({
54
- name: a,
55
- fn: h(() => [
56
- v(e.$slots, a, {}, void 0, !0)
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
- T as default
66
+ B as default
65
67
  };
@@ -1,13 +1,13 @@
1
- import { NSlider as z, NInputNumber as w } from "naive-ui";
2
- import { defineComponent as b, shallowRef as B, computed as k, watch as N, createElementBlock as o, openBlock as i, normalizeStyle as S, createElementVNode as t, createCommentVNode as s, createVNode as u, mergeProps as x, toDisplayString as d, createBlock as C, Fragment as E } from "vue";
3
- import I from "../../hooks/useNaiveConfigProvideContext.mjs";
4
- const T = { class: "slider-content" }, U = {
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
- }, V = {
7
+ }, U = {
8
8
  key: 0,
9
9
  class: "slider-input"
10
- }, D = /* @__PURE__ */ b({
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(p, { emit: v }) {
26
- const f = p, { mergedThemeOverridesRef: y } = I(), m = B({}), g = v, n = k({
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(e) {
31
- g("update:value", e);
30
+ set(l) {
31
+ y("update:value", l);
32
32
  }
33
33
  });
34
- return N(
35
- () => y?.value?.Slider,
36
- (e) => {
37
- e && (m.value = {
38
- "--n-slider-handler-border": e.handleBorderStyle,
39
- "--n-slider-input-width": e.inputWidth,
40
- "--n-slider-range-input-line-color": e.rangeInputLineColor,
41
- "--n-slider-extreme-value-text-color": e.extremeValueTextColor
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
- ), (e, l) => {
48
- const h = z, r = w;
49
- return i(), o("div", {
47
+ ), (l, n) => {
48
+ const g = h, m = z;
49
+ return i(), u("div", {
50
50
  class: "base-slider",
51
- style: S([m.value, e.style])
51
+ style: N([d.value, e.style])
52
52
  }, [
53
- t("div", T, [
54
- u(h, x(e.$attrs, {
55
- value: n.value,
56
- "onUpdate:value": l[0] || (l[0] = (a) => n.value = a),
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(), o("div", U, [
62
- t("div", null, d(e.min), 1),
63
- t("div", null, d(e.max), 1)
64
- ])) : s("", !0)
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(), o("div", V, [
67
- !e.range && typeof n.value == "number" ? (i(), C(r, {
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: n.value,
73
- "onUpdate:value": l[1] || (l[1] = (a) => n.value = a),
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 n.value != "number" ? (i(), o(E, { key: 1 }, [
78
- u(r, {
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: n.value[0],
83
- "onUpdate:value": l[2] || (l[2] = (a) => n.value[0] = a),
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
- l[4] || (l[4] = t("div", { class: "line" }, null, -1)),
89
- u(r, {
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: n.value[1],
94
- "onUpdate:value": l[3] || (l[3] = (a) => n.value[1] = a),
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)) : s("", !0)
100
- ])) : s("", !0)
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
+ };