base6-ui 1.1.12 → 1.1.13

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 (183) hide show
  1. package/dist/components/BaseCascader/index.d.ts +1 -0
  2. package/dist/components/BaseCascader/index.vue.d.ts +7 -0
  3. package/dist/components/BaseCascader/type.d.ts +6 -0
  4. package/dist/components/BaseDataTable/index.vue.d.ts +6 -9
  5. package/dist/components/BaseDialog/index.vue.d.ts +1 -0
  6. package/dist/components/BaseDialog/type.d.ts +1 -0
  7. package/dist/components/BaseLayout/Default/index.vue.d.ts +1 -1
  8. package/dist/components/BaseLayout/index.vue.d.ts +1 -1
  9. package/dist/components/BaseNavIcon/index.d.ts +2 -0
  10. package/dist/components/BaseNavIcon/index.vue.d.ts +13 -0
  11. package/dist/components/BaseNavIcon/type.d.ts +3 -0
  12. package/dist/components/BaseProductIntroduction/index.vue.d.ts +26 -1
  13. package/dist/components/index.d.ts +2 -0
  14. package/dist/config/themes/common/dark.d.ts +2 -0
  15. package/dist/config/themes/components/cascader/common.d.ts +2 -0
  16. package/dist/config/themes/components/cascader/dark.d.ts +2 -0
  17. package/dist/config/themes/components/cascader/light.d.ts +2 -0
  18. package/dist/config/themes/components/dialog/common.d.ts +1 -0
  19. package/dist/config/themes/components/dialog/dark.d.ts +1 -0
  20. package/dist/config/themes/components/dialog/light.d.ts +1 -0
  21. package/dist/globalMethods/modules/confirmTip.d.ts +2 -1
  22. package/dist/hooks/index.d.ts +1 -0
  23. package/dist/hooks/useAnimationHook.d.ts +3 -0
  24. package/dist/index.css +1 -1
  25. package/dist/index.d.ts +1 -0
  26. package/dist/index.umd.js +1 -1
  27. package/es/_virtual/virtual_svg-icons-register.mjs +1 -1
  28. package/es/assets/logo/logo-dark-full.svg.mjs +2 -2
  29. package/es/assets/logo/logo-light-full.svg.mjs +2 -2
  30. package/es/components/BaseButton/index.vue.mjs +14 -14
  31. package/es/components/BaseCascader/index.d.ts +1 -0
  32. package/es/components/BaseCascader/index.vue.d.ts +7 -0
  33. package/es/components/BaseCascader/index.vue.mjs +8 -0
  34. package/es/components/BaseCascader/index.vue2.mjs +27 -0
  35. package/es/components/BaseCascader/type.d.ts +6 -0
  36. package/es/components/BaseDataTable/index.vue.d.ts +6 -9
  37. package/es/components/BaseDataTable/index.vue.mjs +2 -2
  38. package/es/components/BaseDataTable/index.vue2.mjs +22 -61
  39. package/es/components/BaseDialog/index.vue.d.ts +1 -0
  40. package/es/components/BaseDialog/index.vue.mjs +45 -42
  41. package/es/components/BaseDialog/options.mjs +1 -0
  42. package/es/components/BaseDialog/type.d.ts +1 -0
  43. package/es/components/BaseInputNumber/index.vue2.mjs +56 -56
  44. package/es/components/BaseLayout/ASide/index.vue2.mjs +27 -27
  45. package/es/components/BaseLayout/Default/index.vue.d.ts +1 -1
  46. package/es/components/BaseLayout/Default/index.vue.mjs +1 -1
  47. package/es/components/BaseLayout/Default/index.vue2.mjs +53 -53
  48. package/es/components/BaseLayout/Default/layoutHeader/action.vue.mjs +2 -2
  49. package/es/components/BaseLayout/Default/layoutHeader/action.vue2.mjs +37 -34
  50. package/es/components/BaseLayout/Default/layoutMenu/components/first-level-menu.vue2.mjs +29 -29
  51. package/es/components/BaseLayout/Default/layoutSlider/index.vue.mjs +12 -12
  52. package/es/components/BaseLayout/components/WrapFooter.vue.mjs +14 -14
  53. package/es/components/BaseLayout/components/WrapHeader.vue2.mjs +8 -8
  54. package/es/components/BaseLayout/components/WrapTab.vue.mjs +12 -12
  55. package/es/components/BaseLayout/index.vue.d.ts +1 -1
  56. package/es/components/BaseLayout/index.vue2.mjs +36 -36
  57. package/es/components/BaseNavIcon/index.d.ts +2 -0
  58. package/es/components/BaseNavIcon/index.vue.d.ts +13 -0
  59. package/es/components/BaseNavIcon/index.vue.mjs +7 -0
  60. package/es/components/BaseNavIcon/index.vue2.mjs +34 -0
  61. package/es/components/BaseNavIcon/type.d.ts +3 -0
  62. package/es/components/BaseProductIntroduction/cssVar.mjs +7 -4
  63. package/es/components/BaseProductIntroduction/index.vue.d.ts +26 -1
  64. package/es/components/BaseProductIntroduction/index.vue.mjs +1 -1
  65. package/es/components/BaseProductIntroduction/index.vue2.mjs +66 -73
  66. package/es/components/BaseRadio/index.vue2.mjs +17 -17
  67. package/es/components/BaseSelect/index.vue2.mjs +24 -24
  68. package/es/components/BaseSlider/index.vue2.mjs +44 -44
  69. package/es/components/BaseSwitch/index.vue2.mjs +18 -18
  70. package/es/components/index.d.ts +2 -0
  71. package/es/config/themes/common/dark.d.ts +2 -0
  72. package/es/config/themes/common/dark.mjs +30 -0
  73. package/es/config/themes/components/baseComponent/dark.mjs +2 -2
  74. package/es/config/themes/components/baseComponent/light.mjs +2 -2
  75. package/es/config/themes/components/button/dark.mjs +1 -0
  76. package/es/config/themes/components/button/light.mjs +1 -0
  77. package/es/config/themes/components/card/dark.mjs +7 -5
  78. package/es/config/themes/components/card/light.mjs +5 -3
  79. package/es/config/themes/components/cascader/common.d.ts +2 -0
  80. package/es/config/themes/components/cascader/common.mjs +8 -0
  81. package/es/config/themes/components/cascader/dark.d.ts +2 -0
  82. package/es/config/themes/components/cascader/dark.mjs +19 -0
  83. package/es/config/themes/components/cascader/light.d.ts +2 -0
  84. package/es/config/themes/components/cascader/light.mjs +17 -0
  85. package/es/config/themes/components/dialog/common.d.ts +1 -0
  86. package/es/config/themes/components/dialog/common.mjs +4 -3
  87. package/es/config/themes/components/dialog/dark.d.ts +1 -0
  88. package/es/config/themes/components/dialog/light.d.ts +1 -0
  89. package/es/config/themes/components/input/dark.mjs +23 -18
  90. package/es/config/themes/components/input/light.mjs +5 -0
  91. package/es/config/themes/dark.mjs +42 -38
  92. package/es/config/themes/index.mjs +9 -6
  93. package/es/config/themes/light.mjs +43 -41
  94. package/es/globalMethods/modules/confirmTip.d.ts +2 -1
  95. package/es/globalMethods/modules/confirmTip.mjs +12 -11
  96. package/es/hooks/index.d.ts +1 -0
  97. package/es/hooks/useAnimationHook.d.ts +3 -0
  98. package/es/hooks/useAnimationHook.mjs +34 -0
  99. package/es/index.css +1 -1
  100. package/es/index.d.ts +1 -0
  101. package/es/index.mjs +60 -54
  102. package/es/node_modules/.pnpm/es-toolkit@1.41.0/node_modules/es-toolkit/dist/_internal/isUnsafeProperty.mjs +6 -0
  103. package/es/node_modules/.pnpm/es-toolkit@1.41.0/node_modules/es-toolkit/dist/object/merge.mjs +16 -0
  104. package/es/node_modules/.pnpm/es-toolkit@1.41.0/node_modules/es-toolkit/dist/predicate/isPlainObject.mjs +9 -0
  105. package/lib/_virtual/virtual_svg-icons-register.js +1 -1
  106. package/lib/assets/logo/logo-dark-full.svg.js +1 -1
  107. package/lib/assets/logo/logo-light-full.svg.js +1 -1
  108. package/lib/components/BaseButton/index.vue.js +1 -1
  109. package/lib/components/BaseCascader/index.d.ts +1 -0
  110. package/lib/components/BaseCascader/index.vue.d.ts +7 -0
  111. package/lib/components/BaseCascader/index.vue.js +1 -0
  112. package/lib/components/BaseCascader/index.vue2.js +1 -0
  113. package/lib/components/BaseCascader/type.d.ts +6 -0
  114. package/lib/components/BaseDataTable/index.vue.d.ts +6 -9
  115. package/lib/components/BaseDataTable/index.vue.js +1 -1
  116. package/lib/components/BaseDataTable/index.vue2.js +1 -1
  117. package/lib/components/BaseDialog/index.vue.d.ts +1 -0
  118. package/lib/components/BaseDialog/index.vue.js +1 -1
  119. package/lib/components/BaseDialog/options.js +1 -1
  120. package/lib/components/BaseDialog/type.d.ts +1 -0
  121. package/lib/components/BaseInputNumber/index.vue2.js +1 -1
  122. package/lib/components/BaseLayout/ASide/index.vue2.js +1 -1
  123. package/lib/components/BaseLayout/Default/index.vue.d.ts +1 -1
  124. package/lib/components/BaseLayout/Default/index.vue.js +1 -1
  125. package/lib/components/BaseLayout/Default/index.vue2.js +1 -1
  126. package/lib/components/BaseLayout/Default/layoutHeader/action.vue.js +1 -1
  127. package/lib/components/BaseLayout/Default/layoutHeader/action.vue2.js +1 -1
  128. package/lib/components/BaseLayout/Default/layoutMenu/components/first-level-menu.vue2.js +1 -1
  129. package/lib/components/BaseLayout/Default/layoutSlider/index.vue.js +1 -1
  130. package/lib/components/BaseLayout/components/WrapFooter.vue.js +1 -1
  131. package/lib/components/BaseLayout/components/WrapHeader.vue2.js +1 -1
  132. package/lib/components/BaseLayout/components/WrapTab.vue.js +1 -1
  133. package/lib/components/BaseLayout/index.vue.d.ts +1 -1
  134. package/lib/components/BaseLayout/index.vue2.js +1 -1
  135. package/lib/components/BaseNavIcon/index.d.ts +2 -0
  136. package/lib/components/BaseNavIcon/index.vue.d.ts +13 -0
  137. package/lib/components/BaseNavIcon/index.vue.js +1 -0
  138. package/lib/components/BaseNavIcon/index.vue2.js +1 -0
  139. package/lib/components/BaseNavIcon/type.d.ts +3 -0
  140. package/lib/components/BaseProductIntroduction/cssVar.js +1 -1
  141. package/lib/components/BaseProductIntroduction/index.vue.d.ts +26 -1
  142. package/lib/components/BaseProductIntroduction/index.vue.js +1 -1
  143. package/lib/components/BaseProductIntroduction/index.vue2.js +1 -1
  144. package/lib/components/BaseRadio/index.vue2.js +1 -1
  145. package/lib/components/BaseSelect/index.vue2.js +1 -1
  146. package/lib/components/BaseSlider/index.vue2.js +1 -1
  147. package/lib/components/BaseSwitch/index.vue2.js +1 -1
  148. package/lib/components/index.d.ts +2 -0
  149. package/lib/config/themes/common/dark.d.ts +2 -0
  150. package/lib/config/themes/common/dark.js +1 -0
  151. package/lib/config/themes/components/baseComponent/dark.js +1 -1
  152. package/lib/config/themes/components/baseComponent/light.js +1 -1
  153. package/lib/config/themes/components/button/dark.js +1 -1
  154. package/lib/config/themes/components/button/light.js +1 -1
  155. package/lib/config/themes/components/card/dark.js +1 -1
  156. package/lib/config/themes/components/card/light.js +1 -1
  157. package/lib/config/themes/components/cascader/common.d.ts +2 -0
  158. package/lib/config/themes/components/cascader/common.js +1 -0
  159. package/lib/config/themes/components/cascader/dark.d.ts +2 -0
  160. package/lib/config/themes/components/cascader/dark.js +1 -0
  161. package/lib/config/themes/components/cascader/light.d.ts +2 -0
  162. package/lib/config/themes/components/cascader/light.js +1 -0
  163. package/lib/config/themes/components/dialog/common.d.ts +1 -0
  164. package/lib/config/themes/components/dialog/common.js +1 -1
  165. package/lib/config/themes/components/dialog/dark.d.ts +1 -0
  166. package/lib/config/themes/components/dialog/light.d.ts +1 -0
  167. package/lib/config/themes/components/input/dark.js +1 -1
  168. package/lib/config/themes/components/input/light.js +1 -1
  169. package/lib/config/themes/dark.js +1 -1
  170. package/lib/config/themes/index.js +1 -1
  171. package/lib/config/themes/light.js +1 -1
  172. package/lib/globalMethods/modules/confirmTip.d.ts +2 -1
  173. package/lib/globalMethods/modules/confirmTip.js +1 -1
  174. package/lib/hooks/index.d.ts +1 -0
  175. package/lib/hooks/useAnimationHook.d.ts +3 -0
  176. package/lib/hooks/useAnimationHook.js +1 -0
  177. package/lib/index.css +1 -1
  178. package/lib/index.d.ts +1 -0
  179. package/lib/index.js +1 -1
  180. package/lib/node_modules/.pnpm/es-toolkit@1.41.0/node_modules/es-toolkit/dist/_internal/isUnsafeProperty.js +1 -0
  181. package/lib/node_modules/.pnpm/es-toolkit@1.41.0/node_modules/es-toolkit/dist/object/merge.js +1 -0
  182. package/lib/node_modules/.pnpm/es-toolkit@1.41.0/node_modules/es-toolkit/dist/predicate/isPlainObject.js +1 -0
  183. package/package.json +2 -1
@@ -1,7 +1,7 @@
1
- import { NModal as g, NCard as S } from "naive-ui";
2
- import { defineComponent as I, mergeDefaults as P, computed as l, resolveComponent as E, createBlock as f, openBlock as c, mergeProps as u, withCtx as n, createVNode as i, createSlots as H, renderSlot as a, createElementBlock as y, toDisplayString as O, normalizeClass as p, unref as h } from "vue";
1
+ import { NModal as T, NCard as S } from "naive-ui";
2
+ import { defineComponent as I, mergeDefaults as P, computed as t, resolveComponent as E, createBlock as m, openBlock as l, mergeProps as p, withCtx as n, createVNode as c, createSlots as H, renderSlot as a, createElementBlock as f, toDisplayString as O, normalizeClass as L, unref as u } from "vue";
3
3
  import { defaultProps as N } from "./options.mjs";
4
- import C from "../BaseButton/index.vue.mjs";
4
+ import y from "../BaseButton/index.vue.mjs";
5
5
  const R = {
6
6
  key: 1,
7
7
  style: { margin: "0 auto" }
@@ -17,6 +17,7 @@ const R = {
17
17
  closable: {},
18
18
  showHeaderExtra: { type: Boolean },
19
19
  showFooter: { type: Boolean },
20
+ isLoading: { type: Boolean },
20
21
  maskClosable: {},
21
22
  closeOnEsc: {},
22
23
  cancelBtnText: {},
@@ -36,95 +37,97 @@ const R = {
36
37
  btnSize: {}
37
38
  }, N),
38
39
  emits: ["update:visible", "cancel", "confirm"],
39
- setup(e, { emit: b }) {
40
- const r = b, t = e, k = l(() => ({
41
- width: `${t.width}`,
40
+ setup(h, { emit: C }) {
41
+ const s = C, o = h, b = t(() => ({
42
+ width: `${o.width}`,
42
43
  position: "fixed",
43
44
  left: "50%",
44
- top: `${t.top}`,
45
+ top: `${o.top}`,
45
46
  transform: "translateX(-50%)"
46
- })), v = l(() => ({
47
+ })), k = t(() => ({
47
48
  lineHeight: "28px",
48
- textAlign: `${t.center ? "center" : "left"}`
49
- })), x = l(() => t.btnPlacement === "center" ? "flex-c" : "flex justify-end"), s = l({
50
- get: () => t.visible,
51
- set: (o) => {
52
- r("update:visible", o);
49
+ textAlign: `${o.center ? "center" : "left"}`
50
+ })), g = t(() => o.btnPlacement === "center" ? "flex-c" : "flex justify-end"), r = t({
51
+ get: () => o.visible,
52
+ set: (e) => {
53
+ s("update:visible", e);
53
54
  }
54
- }), m = () => {
55
- s.value = !1, r("cancel");
56
- }, $ = () => {
57
- r("confirm");
55
+ }), i = () => {
56
+ r.value = !1, s("cancel");
57
+ }, v = () => {
58
+ s("confirm");
58
59
  };
59
- return (o, d) => {
60
- const w = E("svg-icon"), z = S, B = g;
61
- return c(), f(B, u({
62
- show: s.value,
63
- "onUpdate:show": d[0] || (d[0] = (T) => s.value = T),
60
+ return (e, d) => {
61
+ const $ = E("svg-icon"), B = S, w = T;
62
+ return l(), m(w, p({
63
+ show: r.value,
64
+ "onUpdate:show": d[0] || (d[0] = (z) => r.value = z),
64
65
  maskClosable: e.maskClosable,
65
66
  closeOnEsc: e.closeOnEsc
66
- }, o.$attrs), {
67
+ }, e.$attrs), {
67
68
  default: n(() => [
68
- i(z, u({
69
- "header-style": v.value,
70
- style: k.value,
69
+ c(B, p({
70
+ "header-style": k.value,
71
+ style: b.value,
71
72
  size: e.cardSize,
72
73
  closable: e.closable,
73
74
  segmented: { content: !0 }
74
- }, o.$attrs), H({
75
+ }, e.$attrs), H({
75
76
  default: n(() => [
76
- a(o.$slots, "default")
77
+ a(e.$slots, "default")
77
78
  ]),
78
79
  _: 2
79
80
  }, [
80
- o.$slots.header || e.title ? {
81
+ e.$slots.header || e.title ? {
81
82
  name: "header",
82
83
  fn: n(() => [
83
- o.$slots.header ? a(o.$slots, "header", { key: 0 }) : (c(), y("span", R, O(e.title), 1))
84
+ e.$slots.header ? a(e.$slots, "header", { key: 0 }) : (l(), f("span", R, O(e.title), 1))
84
85
  ]),
85
86
  key: "0"
86
87
  } : void 0,
87
- o.$slots["header-extra"] || e.showHeaderExtra ? {
88
+ e.$slots["header-extra"] || e.showHeaderExtra ? {
88
89
  name: "header-extra",
89
90
  fn: n(() => [
90
- o.$slots["header-extra"] ? a(o.$slots, "header-extra", { key: 0 }) : (c(), f(w, {
91
+ e.$slots["header-extra"] ? a(e.$slots, "header-extra", { key: 0 }) : (l(), m($, {
91
92
  key: 1,
92
93
  icon: "operate-close",
93
94
  class: "cursor-pointer active:scale-[0.95] text-[18px]",
94
- onClick: m
95
+ onClick: i
95
96
  }))
96
97
  ]),
97
98
  key: "1"
98
99
  } : void 0,
99
- o.$slots.footer || e.showFooter ? {
100
+ e.$slots.footer || e.showFooter ? {
100
101
  name: "footer",
101
102
  fn: n(() => [
102
- o.$slots.footer ? a(o.$slots, "footer", { key: 0 }) : (c(), y("div", {
103
+ e.$slots.footer ? a(e.$slots, "footer", { key: 0 }) : (l(), f("div", {
103
104
  key: 1,
104
- class: p(["gap-[30px]", x.value])
105
+ class: L(["gap-[8px]", g.value])
105
106
  }, [
106
- i(h(C), {
107
+ c(u(y), {
107
108
  icon: e.cancelIcon,
108
109
  "icon-placement": e.cancelIconPlacement,
109
110
  color: e.cancelColor,
110
111
  "text-color": e.cancelTextColor,
111
112
  content: e.cancelBtnText,
113
+ loading: e.isLoading,
112
114
  round: e.btnRound,
113
115
  size: e.btnSize,
114
116
  type: e.cancelType,
115
- onClick: m
116
- }, null, 8, ["icon", "icon-placement", "color", "text-color", "content", "round", "size", "type"]),
117
- i(h(C), {
117
+ onClick: i
118
+ }, null, 8, ["icon", "icon-placement", "color", "text-color", "content", "loading", "round", "size", "type"]),
119
+ c(u(y), {
118
120
  icon: e.confirmIcon,
119
121
  "icon-placement": e.confirmIconPlacement,
120
122
  color: e.confirmColor,
121
123
  "text-color": e.confirmTextColor,
122
124
  content: e.confirmBtnText,
125
+ loading: e.isLoading,
123
126
  round: e.btnRound,
124
127
  size: e.btnSize,
125
128
  type: e.confirmType,
126
- onClick: $
127
- }, null, 8, ["icon", "icon-placement", "color", "text-color", "content", "round", "size", "type"])
129
+ onClick: v
130
+ }, null, 8, ["icon", "icon-placement", "color", "text-color", "content", "loading", "round", "size", "type"])
128
131
  ], 2))
129
132
  ]),
130
133
  key: "2"
@@ -4,6 +4,7 @@ const e = {
4
4
  title: void 0,
5
5
  top: "10vh",
6
6
  cardSize: "medium",
7
+ isLoading: !1,
7
8
  center: !0,
8
9
  closable: !1,
9
10
  showHeaderExtra: !0,
@@ -9,6 +9,7 @@ export type BaseDialogPropsType = {
9
9
  closable?: CardProps['closable'];
10
10
  showHeaderExtra?: boolean;
11
11
  showFooter?: boolean;
12
+ isLoading?: boolean;
12
13
  maskClosable?: ModalProps['maskClosable'];
13
14
  closeOnEsc?: ModalProps['closeOnEsc'];
14
15
  cancelBtnText?: string;
@@ -1,10 +1,10 @@
1
- import { NButton as w, NInputNumber as N } from "naive-ui";
2
- import { defineComponent as S, shallowRef as k, ref as $, computed as p, watch as R, resolveComponent as D, createElementBlock as c, openBlock as t, normalizeStyle as M, normalizeClass as b, createBlock as d, createCommentVNode as a, createVNode as r, mergeProps as f, withCtx as u, createSlots as F, Fragment as A, renderSlot as x, createElementVNode as B } from "vue";
1
+ import { NButton as N, NInputNumber as S } from "naive-ui";
2
+ import { defineComponent as $, shallowRef as g, ref as R, computed as y, watch as D, resolveComponent as M, createElementBlock as m, openBlock as o, normalizeStyle as F, normalizeClass as b, createBlock as l, createCommentVNode as d, createVNode as s, mergeProps as c, withCtx as a, createSlots as x, Fragment as A, renderSlot as k, createElementVNode as B } from "vue";
3
3
  import H from "../../hooks/useNaiveConfigProvideContext.mjs";
4
4
  const L = {
5
5
  key: 1,
6
6
  class: "inner-controls"
7
- }, T = /* @__PURE__ */ S({
7
+ }, T = /* @__PURE__ */ $({
8
8
  name: "BaseInputNumber",
9
9
  __name: "index",
10
10
  props: {
@@ -19,16 +19,16 @@ const L = {
19
19
  max: {},
20
20
  size: { default: "medium" }
21
21
  },
22
- setup(n) {
23
- const v = n, { mergedThemeOverridesRef: I } = H(), C = k({}), m = k({}), o = $(), s = p(() => v.disabled || !o.value?.addable), l = p(() => v.disabled || !o.value?.minusable), h = () => {
24
- !o.value || s.value || o.value.handleAddClick();
25
- }, g = () => {
26
- !o.value || l.value || o.value.handleMinusClick();
22
+ setup(I) {
23
+ const p = I, { mergedThemeOverridesRef: z } = H(), f = g({}), u = g({}), n = R(), t = y(() => p.disabled || !n.value?.addable), i = y(() => p.disabled || !n.value?.minusable), v = () => {
24
+ !n.value || t.value || n.value.handleAddClick();
25
+ }, C = () => {
26
+ !n.value || i.value || n.value.handleMinusClick();
27
27
  };
28
- return R(
29
- () => I?.value?.InputNumber,
28
+ return D(
29
+ () => z?.value?.InputNumber,
30
30
  (e) => {
31
- C.value = {
31
+ f.value = {
32
32
  "--n-input-number-controls-color": e.controlsFontColor,
33
33
  "--n-input-number-controls-color-disabled": e.controlFontColorDisabled,
34
34
  "--n-input-number-inner-controls-width-large": e.innerControlsLargeWidth,
@@ -42,7 +42,7 @@ const L = {
42
42
  "--n-input-number-inner-controls-border-radius-large": e.innerControlsLargeBorderRadius,
43
43
  "--n-input-number-inner-controls-border-radius-medium": e.innerControlsMediumBorderRadius,
44
44
  "--n-input-number-inner-controls-border-radius-small": e.innerControlsSmallBorderRadius
45
- }, m.value = {
45
+ }, u.value = {
46
46
  "--n-border": e.outerControlsBorderStyle,
47
47
  "--n-border-disabled": e.outerControlsBorderStyleDisabled,
48
48
  "--n-text-color": e.controlsFontColor,
@@ -56,82 +56,82 @@ const L = {
56
56
  immediate: !0
57
57
  }
58
58
  ), (e, W) => {
59
- const i = D("svg-icon"), y = w, z = N;
60
- return t(), c("div", {
61
- class: b(["base-input-number w-full", [`base-input-number--${n.size}`]]),
62
- style: M([C.value, n.style])
59
+ const r = M("svg-icon"), h = N, w = S;
60
+ return o(), m("div", {
61
+ class: b(["base-input-number w-full", [`base-input-number--${e.size}`]]),
62
+ style: F([f.value, e.style])
63
63
  }, [
64
- n.controlsInner ? a("", !0) : (t(), d(y, f({
64
+ e.controlsInner ? d("", !0) : (o(), l(h, c({
65
65
  key: 0,
66
- style: m.value,
67
- ghost: !l.value,
66
+ style: u.value,
67
+ ghost: !i.value,
68
68
  class: "outer-controls minus-btn"
69
69
  }, e.$attrs, {
70
- disabled: l.value,
71
- size: n.size,
72
- onClick: g
70
+ disabled: i.value,
71
+ size: e.size,
72
+ onClick: C
73
73
  }), {
74
- default: u(() => [
75
- r(i, { icon: "operate-minus" })
74
+ default: a(() => [
75
+ s(r, { icon: "operate-minus" })
76
76
  ]),
77
77
  _: 1
78
78
  }, 16, ["style", "ghost", "disabled", "size"])),
79
- r(z, f({ class: "flex-1" }, e.$attrs, {
79
+ s(w, c({ class: "flex-1" }, e.$attrs, {
80
80
  ref_key: "inputNumberRef",
81
- ref: o,
81
+ ref: n,
82
82
  "show-button": !1,
83
- size: n.size,
84
- disabled: n.disabled,
85
- min: n.min,
86
- max: n.max
87
- }), F({
88
- suffix: u(() => [
89
- e.$slots.suffix || n.suffixIcon ? (t(), c(A, { key: 0 }, [
90
- e.$slots.suffix ? x(e.$slots, "suffix", { key: 0 }, void 0, !0) : (t(), d(i, {
83
+ size: e.size,
84
+ disabled: e.disabled,
85
+ min: e.min,
86
+ max: e.max
87
+ }), x({
88
+ suffix: a(() => [
89
+ e.$slots.suffix || e.suffixIcon ? (o(), m(A, { key: 0 }, [
90
+ e.$slots.suffix ? k(e.$slots, "suffix", { key: 0 }, void 0, !0) : (o(), l(r, {
91
91
  key: 1,
92
- icon: n.suffixIcon
92
+ icon: e.suffixIcon
93
93
  }, null, 8, ["icon"]))
94
- ], 64)) : a("", !0),
95
- n.controlsInner ? (t(), c("div", L, [
94
+ ], 64)) : d("", !0),
95
+ e.controlsInner ? (o(), m("div", L, [
96
96
  B("div", {
97
- class: b(["add", [s.value ? "is-disabled" : ""]]),
98
- onClick: h
97
+ class: b(["add", [t.value ? "is-disabled" : ""]]),
98
+ onClick: v
99
99
  }, [
100
- r(i, { icon: "arrow-top" })
100
+ s(r, { icon: "arrow-top" })
101
101
  ], 2),
102
102
  B("div", {
103
- class: b(["minus", [l.value ? "is-disabled" : ""]]),
104
- onClick: g
103
+ class: b(["minus", [i.value ? "is-disabled" : ""]]),
104
+ onClick: C
105
105
  }, [
106
- r(i, { icon: "arrow-down" })
106
+ s(r, { icon: "arrow-down" })
107
107
  ], 2)
108
- ])) : a("", !0)
108
+ ])) : d("", !0)
109
109
  ]),
110
110
  _: 2
111
111
  }, [
112
- e.$slots.prefix || n.prefixIcon ? {
112
+ e.$slots.prefix || e.prefixIcon ? {
113
113
  name: "prefix",
114
- fn: u(() => [
115
- e.$slots.prefix ? x(e.$slots, "prefix", { key: 0 }, void 0, !0) : (t(), d(i, {
114
+ fn: a(() => [
115
+ e.$slots.prefix ? k(e.$slots, "prefix", { key: 0 }, void 0, !0) : (o(), l(r, {
116
116
  key: 1,
117
- icon: n.prefixIcon
117
+ icon: e.prefixIcon
118
118
  }, null, 8, ["icon"]))
119
119
  ]),
120
120
  key: "0"
121
121
  } : void 0
122
122
  ]), 1040, ["size", "disabled", "min", "max"]),
123
- n.controlsInner ? a("", !0) : (t(), d(y, f({
123
+ e.controlsInner ? d("", !0) : (o(), l(h, c({
124
124
  key: 1,
125
- size: n.size,
126
- ghost: !s.value,
127
- style: m.value,
125
+ size: e.size,
126
+ ghost: !t.value,
127
+ style: u.value,
128
128
  class: "outer-controls add-btn"
129
129
  }, e.$attrs, {
130
- disabled: s.value,
131
- onClick: h
130
+ disabled: t.value,
131
+ onClick: v
132
132
  }), {
133
- default: u(() => [
134
- r(i, { icon: "operate-add" })
133
+ default: a(() => [
134
+ s(r, { icon: "operate-add" })
135
135
  ]),
136
136
  _: 1
137
137
  }, 16, ["size", "ghost", "style", "disabled"]))
@@ -1,7 +1,7 @@
1
- import { NScrollbar as y } from "naive-ui";
2
- import { defineComponent as m, shallowRef as l, watch as v, createElementBlock as S, openBlock as c, mergeProps as C, createElementVNode as s, normalizeStyle as a, normalizeClass as r, renderSlot as t, createBlock as g, withCtx as h } from "vue";
3
- import b from "../../../hooks/useNaiveConfigProvideContext.mjs";
4
- const B = /* @__PURE__ */ m({
1
+ import { NScrollbar as c } from "naive-ui";
2
+ import { defineComponent as y, shallowRef as l, watch as m, createElementBlock as v, openBlock as n, mergeProps as p, createElementVNode as t, normalizeStyle as s, normalizeClass as r, renderSlot as o, createBlock as S, withCtx as C } from "vue";
3
+ import g from "../../../hooks/useNaiveConfigProvideContext.mjs";
4
+ const B = /* @__PURE__ */ y({
5
5
  __name: "index",
6
6
  props: {
7
7
  logoClass: {},
@@ -12,46 +12,46 @@ const B = /* @__PURE__ */ m({
12
12
  footerClass: {},
13
13
  footerStyle: {}
14
14
  },
15
- setup(o) {
16
- const { mergedThemeOverridesRef: d } = b(), n = l({}), i = l({}), u = l({});
17
- return v(
15
+ setup(h) {
16
+ const { mergedThemeOverridesRef: d } = g(), a = l({}), i = l({}), u = l({});
17
+ return m(
18
18
  () => d?.value?.Layout,
19
19
  (e) => {
20
- e && (n.value = {
20
+ e && (a.value = {
21
21
  "--n-color": e.siderColor || void 0
22
22
  });
23
23
  },
24
24
  {
25
25
  immediate: !0
26
26
  }
27
- ), (e, k) => {
28
- const f = y;
29
- return c(), S("aside", C({
27
+ ), (e, b) => {
28
+ const f = c;
29
+ return n(), v("aside", p({
30
30
  class: "h-full w-full flex-col-stretch base-layout-aside",
31
- style: n.value
31
+ style: a.value
32
32
  }, e.$attrs), [
33
- s("div", {
34
- class: r(["base-layout-aside-logo-wrap", o.logoClass]),
35
- style: a([i.value, o.logoStyle])
33
+ t("div", {
34
+ class: r(["base-layout-aside-logo-wrap", e.logoClass]),
35
+ style: s([i.value, e.logoStyle])
36
36
  }, [
37
- t(e.$slots, "header", {}, void 0, !0)
37
+ o(e.$slots, "header", {}, void 0, !0)
38
38
  ], 6),
39
- s("div", {
40
- class: r(["h-full flex-1", o.contentClass]),
41
- style: a(o.contentStyle)
39
+ t("div", {
40
+ class: r(["h-full flex-1", e.contentClass]),
41
+ style: s(e.contentStyle)
42
42
  }, [
43
- o.contentScrollable ? (c(), g(f, { key: 0 }, {
44
- default: h(() => [
45
- t(e.$slots, "default", {}, void 0, !0)
43
+ e.contentScrollable ? (n(), S(f, { key: 0 }, {
44
+ default: C(() => [
45
+ o(e.$slots, "default", {}, void 0, !0)
46
46
  ]),
47
47
  _: 3
48
- })) : t(e.$slots, "default", { key: 1 }, void 0, !0)
48
+ })) : o(e.$slots, "default", { key: 1 }, void 0, !0)
49
49
  ], 6),
50
- s("div", {
51
- class: r(["base-layout-aside-footer", o.footerClass]),
52
- style: a([u.value, o.footerStyle])
50
+ t("div", {
51
+ class: r(["base-layout-aside-footer", e.footerClass]),
52
+ style: s([u.value, e.footerStyle])
53
53
  }, [
54
- t(e.$slots, "footer", {}, void 0, !0)
54
+ o(e.$slots, "footer", {}, void 0, !0)
55
55
  ], 6)
56
56
  ], 16);
57
57
  };
@@ -25,10 +25,10 @@ declare const __VLS_component: import('vue').DefineComponent<BaseDefaultLayoutPr
25
25
  onToggleMenuItem?: ((...args: any[]) => any) | undefined;
26
26
  onToggleMixMenuItem?: ((...args: any[]) => any) | undefined;
27
27
  }>, {
28
- headerHeight: number;
29
28
  contentClass: string;
30
29
  headerClass: string;
31
30
  footerClass: string;
31
+ headerHeight: number;
32
32
  mode: BaseDefaultLayoutMode;
33
33
  tabClass: string;
34
34
  sliderCollapse: boolean;
@@ -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 _ = /* @__PURE__ */ t(o, [["__scopeId", "data-v-1087183d"]]);
4
+ const _ = /* @__PURE__ */ t(o, [["__scopeId", "data-v-941032c1"]]);
5
5
  export {
6
6
  _ as default
7
7
  };
@@ -1,4 +1,4 @@
1
- import { defineComponent as L, mergeDefaults as S, defineAsyncComponent as F, computed as l, provide as T, createBlock as $, openBlock as A, withCtx as a, renderSlot as u, createVNode as m, unref as D } from "vue";
1
+ import { defineComponent as L, mergeDefaults as S, defineAsyncComponent as F, computed as i, provide as T, createBlock as $, openBlock as A, withCtx as n, renderSlot as a, createVNode as m, unref as D } from "vue";
2
2
  import O from "../index.vue.mjs";
3
3
  import P from "./layoutHeader/index.vue.mjs";
4
4
  import k from "./layoutSlider/index.vue.mjs";
@@ -56,86 +56,86 @@ const X = /* @__PURE__ */ L({
56
56
  "toggleSystemTheme",
57
57
  "toggleUserItem"
58
58
  ],
59
- setup(t, { emit: x }) {
60
- const M = F(() => import("./layoutMenu/index.vue.mjs")), o = t, s = x, C = E(), { childLevelMenus: f } = R(o), p = l(() => {
59
+ setup(c, { emit: v }) {
60
+ const M = F(() => import("./layoutMenu/index.vue.mjs")), o = c, l = v, C = E(), { childLevelMenus: f } = R(o), b = i(() => {
61
61
  const {
62
62
  name: e = "light"
63
63
  } = C?.mergedThemeRef.value || {};
64
64
  return e !== "light";
65
- }), b = l(() => {
65
+ }), y = i(() => {
66
66
  const e = "vertical";
67
67
  return o.mode.includes(e) ? e : "horizontal";
68
- }), y = l(() => o.mode !== "horizontal"), d = l(() => o.mode === "horizontal-mix"), n = l(() => o.mode === "vertical-mix"), I = () => {
69
- const { reverseHorizontalMix: e } = o, { sliderCollapseWidth: i, sliderMixCollapseWidth: h, sliderMixChildMenuWidth: c } = o;
70
- if (d.value && e)
71
- return i;
72
- let r = n.value || d.value ? h : i;
73
- return n.value && o.mixSliderFixed && f.value.length && (r += c), r;
74
- }, g = l(() => I());
68
+ }), x = i(() => o.mode !== "horizontal"), r = i(() => o.mode === "horizontal-mix"), d = i(() => o.mode === "vertical-mix"), I = () => {
69
+ const { reverseHorizontalMix: e } = o, { sliderCollapseWidth: t, sliderMixCollapseWidth: u, sliderMixChildMenuWidth: h } = o;
70
+ if (r.value && e)
71
+ return t;
72
+ let s = d.value || r.value ? u : t;
73
+ return d.value && o.mixSliderFixed && f.value.length && (s += h), s;
74
+ }, g = i(() => I());
75
75
  function W() {
76
- const { reverseHorizontalMix: e } = o, { sliderWidth: i, sliderMixChildMenuWidth: h, sliderMixWidth: c } = o;
77
- if (d.value && e)
78
- return i;
79
- let r = n.value || d.value ? c : i;
80
- return n.value && o.mixSliderFixed && f.value.length && (r += h), r;
76
+ const { reverseHorizontalMix: e } = o, { sliderWidth: t, sliderMixChildMenuWidth: u, sliderMixWidth: h } = o;
77
+ if (r.value && e)
78
+ return t;
79
+ let s = d.value || r.value ? h : t;
80
+ return d.value && o.mixSliderFixed && f.value.length && (s += u), s;
81
81
  }
82
- const v = l(() => W()), B = () => {
83
- s("toggleLogo");
84
- }, H = (e, i) => {
85
- s("toggleMenuItem", e, i);
86
- }, V = (e, i) => {
87
- s("toggleMixMenuItem", e, i);
88
- }, w = () => {
89
- s("toggleSystemTheme");
90
- }, z = (e, i) => {
91
- s("toggleUserItem", e, i);
82
+ const p = i(() => W()), B = () => {
83
+ l("toggleLogo");
84
+ }, H = (e, t) => {
85
+ l("toggleMenuItem", e, t);
86
+ }, V = (e, t) => {
87
+ l("toggleMixMenuItem", e, t);
88
+ }, w = (e) => {
89
+ l("toggleSystemTheme", e);
90
+ }, z = (e, t) => {
91
+ l("toggleUserItem", e, t);
92
92
  };
93
93
  return T(N, {
94
94
  layoutConfig: o,
95
- isDarkMode: p,
95
+ isDarkMode: b,
96
96
  userActionOption: o.userActionOption,
97
97
  userInfo: o.userInfo,
98
98
  _sliderCollapseWidth: g,
99
- _sliderWidth: v,
99
+ _sliderWidth: p,
100
100
  toggleLogo: B,
101
101
  toggleMenuItem: H,
102
102
  toggleMixMenuItem: V,
103
103
  toggleSystemTheme: w,
104
104
  toggleUserItem: z
105
- }), (e, i) => (A(), $(O, {
106
- mode: b.value,
107
- "scroll-mode": t.scrollMode,
108
- "scroll-el-id": t.scrollElId,
109
- "fixed-top": t.fixedTop,
110
- "header-visible": t.headerVisible,
111
- "header-height": t.headerHeight,
112
- "tab-visible": t.tabVisible,
113
- "tab-height": t.tabHeight,
114
- "slider-visible": y.value,
115
- "slider-class": t.sliderClass,
116
- "slider-collapse": t.sliderCollapse,
117
- "slider-width": v.value,
105
+ }), (e, t) => (A(), $(O, {
106
+ mode: y.value,
107
+ "scroll-mode": e.scrollMode,
108
+ "scroll-el-id": e.scrollElId,
109
+ "fixed-top": e.fixedTop,
110
+ "header-visible": e.headerVisible,
111
+ "header-height": e.headerHeight,
112
+ "tab-visible": e.tabVisible,
113
+ "tab-height": e.tabHeight,
114
+ "slider-visible": x.value,
115
+ "slider-class": e.sliderClass,
116
+ "slider-collapse": e.sliderCollapse,
117
+ "slider-width": p.value,
118
118
  "slider-collapse-width": g.value,
119
- "footer-visible": t.footerVisible,
120
- "fixed-footer": t.fixedFooter,
121
- "footer-is-full-width": t.footerIsFullWidth,
122
- "footer-height": t.footerHeight
119
+ "footer-visible": e.footerVisible,
120
+ "fixed-footer": e.fixedFooter,
121
+ "footer-is-full-width": e.footerIsFullWidth,
122
+ "footer-height": e.footerHeight
123
123
  }, {
124
- header: a(() => [
125
- u(e.$slots, "header", {}, () => [
124
+ header: n(() => [
125
+ a(e.$slots, "header", {}, () => [
126
126
  m(P)
127
127
  ], !0)
128
128
  ]),
129
- slider: a(() => [
130
- u(e.$slots, "slider", {}, () => [
129
+ slider: n(() => [
130
+ a(e.$slots, "slider", {}, () => [
131
131
  m(k)
132
132
  ], !0)
133
133
  ]),
134
- footer: a(() => [
135
- u(e.$slots, "footer", {}, void 0, !0)
134
+ footer: n(() => [
135
+ a(e.$slots, "footer", {}, void 0, !0)
136
136
  ]),
137
- default: a(() => [
138
- u(e.$slots, "default", {}, void 0, !0),
137
+ default: n(() => [
138
+ a(e.$slots, "default", {}, void 0, !0),
139
139
  m(D(M))
140
140
  ]),
141
141
  _: 3
@@ -1,7 +1,7 @@
1
1
  import o from "./action.vue2.mjs";
2
2
  /* empty css */
3
3
  import t from "../../../../_virtual/_plugin-vue_export-helper.mjs";
4
- const d = /* @__PURE__ */ t(o, [["__scopeId", "data-v-cd49cd7d"]]);
4
+ const s = /* @__PURE__ */ t(o, [["__scopeId", "data-v-5362071c"]]);
5
5
  export {
6
- d as default
6
+ s as default
7
7
  };