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.
- package/dist/components/BaseCascader/index.d.ts +1 -0
- package/dist/components/BaseCascader/index.vue.d.ts +7 -0
- package/dist/components/BaseCascader/type.d.ts +6 -0
- package/dist/components/BaseDataTable/index.vue.d.ts +6 -9
- package/dist/components/BaseDialog/index.vue.d.ts +1 -0
- package/dist/components/BaseDialog/type.d.ts +1 -0
- package/dist/components/BaseLayout/Default/index.vue.d.ts +1 -1
- package/dist/components/BaseLayout/index.vue.d.ts +1 -1
- package/dist/components/BaseNavIcon/index.d.ts +2 -0
- package/dist/components/BaseNavIcon/index.vue.d.ts +13 -0
- package/dist/components/BaseNavIcon/type.d.ts +3 -0
- package/dist/components/BaseProductIntroduction/index.vue.d.ts +26 -1
- package/dist/components/index.d.ts +2 -0
- package/dist/config/themes/common/dark.d.ts +2 -0
- package/dist/config/themes/components/cascader/common.d.ts +2 -0
- package/dist/config/themes/components/cascader/dark.d.ts +2 -0
- package/dist/config/themes/components/cascader/light.d.ts +2 -0
- package/dist/config/themes/components/dialog/common.d.ts +1 -0
- package/dist/config/themes/components/dialog/dark.d.ts +1 -0
- package/dist/config/themes/components/dialog/light.d.ts +1 -0
- package/dist/globalMethods/modules/confirmTip.d.ts +2 -1
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/useAnimationHook.d.ts +3 -0
- package/dist/index.css +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.umd.js +1 -1
- 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/index.d.ts +1 -0
- package/es/components/BaseCascader/index.vue.d.ts +7 -0
- package/es/components/BaseCascader/index.vue.mjs +8 -0
- package/es/components/BaseCascader/index.vue2.mjs +27 -0
- package/es/components/BaseCascader/type.d.ts +6 -0
- package/es/components/BaseDataTable/index.vue.d.ts +6 -9
- package/es/components/BaseDataTable/index.vue.mjs +2 -2
- package/es/components/BaseDataTable/index.vue2.mjs +22 -61
- package/es/components/BaseDialog/index.vue.d.ts +1 -0
- package/es/components/BaseDialog/index.vue.mjs +45 -42
- package/es/components/BaseDialog/options.mjs +1 -0
- package/es/components/BaseDialog/type.d.ts +1 -0
- package/es/components/BaseInputNumber/index.vue2.mjs +56 -56
- 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.vue.mjs +1 -1
- package/es/components/BaseLayout/Default/index.vue2.mjs +53 -53
- package/es/components/BaseLayout/Default/layoutHeader/action.vue.mjs +2 -2
- package/es/components/BaseLayout/Default/layoutHeader/action.vue2.mjs +37 -34
- package/es/components/BaseLayout/Default/layoutMenu/components/first-level-menu.vue2.mjs +29 -29
- package/es/components/BaseLayout/Default/layoutSlider/index.vue.mjs +12 -12
- 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.d.ts +2 -0
- package/es/components/BaseNavIcon/index.vue.d.ts +13 -0
- package/es/components/BaseNavIcon/index.vue.mjs +7 -0
- package/es/components/BaseNavIcon/index.vue2.mjs +34 -0
- package/es/components/BaseNavIcon/type.d.ts +3 -0
- package/es/components/BaseProductIntroduction/cssVar.mjs +7 -4
- package/es/components/BaseProductIntroduction/index.vue.d.ts +26 -1
- package/es/components/BaseProductIntroduction/index.vue.mjs +1 -1
- package/es/components/BaseProductIntroduction/index.vue2.mjs +66 -73
- package/es/components/BaseRadio/index.vue2.mjs +17 -17
- package/es/components/BaseSelect/index.vue2.mjs +24 -24
- package/es/components/BaseSlider/index.vue2.mjs +44 -44
- package/es/components/BaseSwitch/index.vue2.mjs +18 -18
- package/es/components/index.d.ts +2 -0
- package/es/config/themes/common/dark.d.ts +2 -0
- package/es/config/themes/common/dark.mjs +30 -0
- package/es/config/themes/components/baseComponent/dark.mjs +2 -2
- package/es/config/themes/components/baseComponent/light.mjs +2 -2
- package/es/config/themes/components/button/dark.mjs +1 -0
- package/es/config/themes/components/button/light.mjs +1 -0
- package/es/config/themes/components/card/dark.mjs +7 -5
- package/es/config/themes/components/card/light.mjs +5 -3
- package/es/config/themes/components/cascader/common.d.ts +2 -0
- package/es/config/themes/components/cascader/common.mjs +8 -0
- package/es/config/themes/components/cascader/dark.d.ts +2 -0
- package/es/config/themes/components/cascader/dark.mjs +19 -0
- package/es/config/themes/components/cascader/light.d.ts +2 -0
- package/es/config/themes/components/cascader/light.mjs +17 -0
- package/es/config/themes/components/dialog/common.d.ts +1 -0
- package/es/config/themes/components/dialog/common.mjs +4 -3
- package/es/config/themes/components/dialog/dark.d.ts +1 -0
- package/es/config/themes/components/dialog/light.d.ts +1 -0
- package/es/config/themes/components/input/dark.mjs +23 -18
- package/es/config/themes/components/input/light.mjs +5 -0
- package/es/config/themes/dark.mjs +42 -38
- package/es/config/themes/index.mjs +9 -6
- package/es/config/themes/light.mjs +43 -41
- package/es/globalMethods/modules/confirmTip.d.ts +2 -1
- package/es/globalMethods/modules/confirmTip.mjs +12 -11
- package/es/hooks/index.d.ts +1 -0
- package/es/hooks/useAnimationHook.d.ts +3 -0
- package/es/hooks/useAnimationHook.mjs +34 -0
- package/es/index.css +1 -1
- package/es/index.d.ts +1 -0
- package/es/index.mjs +60 -54
- package/es/node_modules/.pnpm/es-toolkit@1.41.0/node_modules/es-toolkit/dist/_internal/isUnsafeProperty.mjs +6 -0
- package/es/node_modules/.pnpm/es-toolkit@1.41.0/node_modules/es-toolkit/dist/object/merge.mjs +16 -0
- package/es/node_modules/.pnpm/es-toolkit@1.41.0/node_modules/es-toolkit/dist/predicate/isPlainObject.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/index.d.ts +1 -0
- package/lib/components/BaseCascader/index.vue.d.ts +7 -0
- package/lib/components/BaseCascader/index.vue.js +1 -0
- package/lib/components/BaseCascader/index.vue2.js +1 -0
- package/lib/components/BaseCascader/type.d.ts +6 -0
- package/lib/components/BaseDataTable/index.vue.d.ts +6 -9
- package/lib/components/BaseDataTable/index.vue.js +1 -1
- package/lib/components/BaseDataTable/index.vue2.js +1 -1
- package/lib/components/BaseDialog/index.vue.d.ts +1 -0
- package/lib/components/BaseDialog/index.vue.js +1 -1
- package/lib/components/BaseDialog/options.js +1 -1
- package/lib/components/BaseDialog/type.d.ts +1 -0
- package/lib/components/BaseInputNumber/index.vue2.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.vue.js +1 -1
- package/lib/components/BaseLayout/Default/index.vue2.js +1 -1
- package/lib/components/BaseLayout/Default/layoutHeader/action.vue.js +1 -1
- package/lib/components/BaseLayout/Default/layoutHeader/action.vue2.js +1 -1
- package/lib/components/BaseLayout/Default/layoutMenu/components/first-level-menu.vue2.js +1 -1
- package/lib/components/BaseLayout/Default/layoutSlider/index.vue.js +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.d.ts +2 -0
- package/lib/components/BaseNavIcon/index.vue.d.ts +13 -0
- package/lib/components/BaseNavIcon/index.vue.js +1 -0
- package/lib/components/BaseNavIcon/index.vue2.js +1 -0
- package/lib/components/BaseNavIcon/type.d.ts +3 -0
- package/lib/components/BaseProductIntroduction/cssVar.js +1 -1
- package/lib/components/BaseProductIntroduction/index.vue.d.ts +26 -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.vue2.js +1 -1
- package/lib/components/BaseSlider/index.vue2.js +1 -1
- package/lib/components/BaseSwitch/index.vue2.js +1 -1
- package/lib/components/index.d.ts +2 -0
- package/lib/config/themes/common/dark.d.ts +2 -0
- package/lib/config/themes/common/dark.js +1 -0
- package/lib/config/themes/components/baseComponent/dark.js +1 -1
- package/lib/config/themes/components/baseComponent/light.js +1 -1
- package/lib/config/themes/components/button/dark.js +1 -1
- package/lib/config/themes/components/button/light.js +1 -1
- package/lib/config/themes/components/card/dark.js +1 -1
- package/lib/config/themes/components/card/light.js +1 -1
- package/lib/config/themes/components/cascader/common.d.ts +2 -0
- package/lib/config/themes/components/cascader/common.js +1 -0
- package/lib/config/themes/components/cascader/dark.d.ts +2 -0
- package/lib/config/themes/components/cascader/dark.js +1 -0
- package/lib/config/themes/components/cascader/light.d.ts +2 -0
- package/lib/config/themes/components/cascader/light.js +1 -0
- package/lib/config/themes/components/dialog/common.d.ts +1 -0
- package/lib/config/themes/components/dialog/common.js +1 -1
- package/lib/config/themes/components/dialog/dark.d.ts +1 -0
- package/lib/config/themes/components/dialog/light.d.ts +1 -0
- package/lib/config/themes/components/input/dark.js +1 -1
- package/lib/config/themes/components/input/light.js +1 -1
- package/lib/config/themes/dark.js +1 -1
- package/lib/config/themes/index.js +1 -1
- package/lib/config/themes/light.js +1 -1
- package/lib/globalMethods/modules/confirmTip.d.ts +2 -1
- package/lib/globalMethods/modules/confirmTip.js +1 -1
- package/lib/hooks/index.d.ts +1 -0
- package/lib/hooks/useAnimationHook.d.ts +3 -0
- package/lib/hooks/useAnimationHook.js +1 -0
- package/lib/index.css +1 -1
- package/lib/index.d.ts +1 -0
- package/lib/index.js +1 -1
- package/lib/node_modules/.pnpm/es-toolkit@1.41.0/node_modules/es-toolkit/dist/_internal/isUnsafeProperty.js +1 -0
- package/lib/node_modules/.pnpm/es-toolkit@1.41.0/node_modules/es-toolkit/dist/object/merge.js +1 -0
- package/lib/node_modules/.pnpm/es-toolkit@1.41.0/node_modules/es-toolkit/dist/predicate/isPlainObject.js +1 -0
- package/package.json +2 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { NModal as
|
|
2
|
-
import { defineComponent as I, mergeDefaults as P, computed as
|
|
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
|
|
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(
|
|
40
|
-
const
|
|
41
|
-
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: `${
|
|
45
|
+
top: `${o.top}`,
|
|
45
46
|
transform: "translateX(-50%)"
|
|
46
|
-
})),
|
|
47
|
+
})), k = t(() => ({
|
|
47
48
|
lineHeight: "28px",
|
|
48
|
-
textAlign: `${
|
|
49
|
-
})),
|
|
50
|
-
get: () =>
|
|
51
|
-
set: (
|
|
52
|
-
|
|
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
|
-
}),
|
|
55
|
-
|
|
56
|
-
},
|
|
57
|
-
|
|
55
|
+
}), i = () => {
|
|
56
|
+
r.value = !1, s("cancel");
|
|
57
|
+
}, v = () => {
|
|
58
|
+
s("confirm");
|
|
58
59
|
};
|
|
59
|
-
return (
|
|
60
|
-
const
|
|
61
|
-
return
|
|
62
|
-
show:
|
|
63
|
-
"onUpdate:show": d[0] || (d[0] = (
|
|
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
|
-
},
|
|
67
|
+
}, e.$attrs), {
|
|
67
68
|
default: n(() => [
|
|
68
|
-
|
|
69
|
-
"header-style":
|
|
70
|
-
style:
|
|
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
|
-
},
|
|
75
|
+
}, e.$attrs), H({
|
|
75
76
|
default: n(() => [
|
|
76
|
-
a(
|
|
77
|
+
a(e.$slots, "default")
|
|
77
78
|
]),
|
|
78
79
|
_: 2
|
|
79
80
|
}, [
|
|
80
|
-
|
|
81
|
+
e.$slots.header || e.title ? {
|
|
81
82
|
name: "header",
|
|
82
83
|
fn: n(() => [
|
|
83
|
-
|
|
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
|
-
|
|
88
|
+
e.$slots["header-extra"] || e.showHeaderExtra ? {
|
|
88
89
|
name: "header-extra",
|
|
89
90
|
fn: n(() => [
|
|
90
|
-
|
|
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:
|
|
95
|
+
onClick: i
|
|
95
96
|
}))
|
|
96
97
|
]),
|
|
97
98
|
key: "1"
|
|
98
99
|
} : void 0,
|
|
99
|
-
|
|
100
|
+
e.$slots.footer || e.showFooter ? {
|
|
100
101
|
name: "footer",
|
|
101
102
|
fn: n(() => [
|
|
102
|
-
|
|
103
|
+
e.$slots.footer ? a(e.$slots, "footer", { key: 0 }) : (l(), f("div", {
|
|
103
104
|
key: 1,
|
|
104
|
-
class:
|
|
105
|
+
class: L(["gap-[8px]", g.value])
|
|
105
106
|
}, [
|
|
106
|
-
|
|
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:
|
|
116
|
-
}, null, 8, ["icon", "icon-placement", "color", "text-color", "content", "round", "size", "type"]),
|
|
117
|
-
|
|
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"
|
|
@@ -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
|
|
2
|
-
import { defineComponent as
|
|
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__ */
|
|
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(
|
|
23
|
-
const
|
|
24
|
-
!
|
|
25
|
-
},
|
|
26
|
-
!
|
|
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
|
|
29
|
-
() =>
|
|
28
|
+
return D(
|
|
29
|
+
() => z?.value?.InputNumber,
|
|
30
30
|
(e) => {
|
|
31
|
-
|
|
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
|
-
},
|
|
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
|
|
60
|
-
return
|
|
61
|
-
class: b(["base-input-number w-full", [`base-input-number--${
|
|
62
|
-
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
|
-
|
|
64
|
+
e.controlsInner ? d("", !0) : (o(), l(h, c({
|
|
65
65
|
key: 0,
|
|
66
|
-
style:
|
|
67
|
-
ghost: !
|
|
66
|
+
style: u.value,
|
|
67
|
+
ghost: !i.value,
|
|
68
68
|
class: "outer-controls minus-btn"
|
|
69
69
|
}, e.$attrs, {
|
|
70
|
-
disabled:
|
|
71
|
-
size:
|
|
72
|
-
onClick:
|
|
70
|
+
disabled: i.value,
|
|
71
|
+
size: e.size,
|
|
72
|
+
onClick: C
|
|
73
73
|
}), {
|
|
74
|
-
default:
|
|
75
|
-
r
|
|
74
|
+
default: a(() => [
|
|
75
|
+
s(r, { icon: "operate-minus" })
|
|
76
76
|
]),
|
|
77
77
|
_: 1
|
|
78
78
|
}, 16, ["style", "ghost", "disabled", "size"])),
|
|
79
|
-
|
|
79
|
+
s(w, c({ class: "flex-1" }, e.$attrs, {
|
|
80
80
|
ref_key: "inputNumberRef",
|
|
81
|
-
ref:
|
|
81
|
+
ref: n,
|
|
82
82
|
"show-button": !1,
|
|
83
|
-
size:
|
|
84
|
-
disabled:
|
|
85
|
-
min:
|
|
86
|
-
max:
|
|
87
|
-
}),
|
|
88
|
-
suffix:
|
|
89
|
-
e.$slots.suffix ||
|
|
90
|
-
e.$slots.suffix ?
|
|
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:
|
|
92
|
+
icon: e.suffixIcon
|
|
93
93
|
}, null, 8, ["icon"]))
|
|
94
|
-
], 64)) :
|
|
95
|
-
|
|
94
|
+
], 64)) : d("", !0),
|
|
95
|
+
e.controlsInner ? (o(), m("div", L, [
|
|
96
96
|
B("div", {
|
|
97
|
-
class: b(["add", [
|
|
98
|
-
onClick:
|
|
97
|
+
class: b(["add", [t.value ? "is-disabled" : ""]]),
|
|
98
|
+
onClick: v
|
|
99
99
|
}, [
|
|
100
|
-
r
|
|
100
|
+
s(r, { icon: "arrow-top" })
|
|
101
101
|
], 2),
|
|
102
102
|
B("div", {
|
|
103
|
-
class: b(["minus", [
|
|
104
|
-
onClick:
|
|
103
|
+
class: b(["minus", [i.value ? "is-disabled" : ""]]),
|
|
104
|
+
onClick: C
|
|
105
105
|
}, [
|
|
106
|
-
r
|
|
106
|
+
s(r, { icon: "arrow-down" })
|
|
107
107
|
], 2)
|
|
108
|
-
])) :
|
|
108
|
+
])) : d("", !0)
|
|
109
109
|
]),
|
|
110
110
|
_: 2
|
|
111
111
|
}, [
|
|
112
|
-
e.$slots.prefix ||
|
|
112
|
+
e.$slots.prefix || e.prefixIcon ? {
|
|
113
113
|
name: "prefix",
|
|
114
|
-
fn:
|
|
115
|
-
e.$slots.prefix ?
|
|
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:
|
|
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
|
-
|
|
123
|
+
e.controlsInner ? d("", !0) : (o(), l(h, c({
|
|
124
124
|
key: 1,
|
|
125
|
-
size:
|
|
126
|
-
ghost: !
|
|
127
|
-
style:
|
|
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:
|
|
131
|
-
onClick:
|
|
130
|
+
disabled: t.value,
|
|
131
|
+
onClick: v
|
|
132
132
|
}), {
|
|
133
|
-
default:
|
|
134
|
-
r
|
|
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
|
|
2
|
-
import { defineComponent as
|
|
3
|
-
import
|
|
4
|
-
const B = /* @__PURE__ */
|
|
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(
|
|
16
|
-
const { mergedThemeOverridesRef: d } =
|
|
17
|
-
return
|
|
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 && (
|
|
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,
|
|
28
|
-
const f =
|
|
29
|
-
return
|
|
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:
|
|
31
|
+
style: a.value
|
|
32
32
|
}, e.$attrs), [
|
|
33
|
-
|
|
34
|
-
class: r(["base-layout-aside-logo-wrap",
|
|
35
|
-
style:
|
|
33
|
+
t("div", {
|
|
34
|
+
class: r(["base-layout-aside-logo-wrap", e.logoClass]),
|
|
35
|
+
style: s([i.value, e.logoStyle])
|
|
36
36
|
}, [
|
|
37
|
-
|
|
37
|
+
o(e.$slots, "header", {}, void 0, !0)
|
|
38
38
|
], 6),
|
|
39
|
-
|
|
40
|
-
class: r(["h-full flex-1",
|
|
41
|
-
style:
|
|
39
|
+
t("div", {
|
|
40
|
+
class: r(["h-full flex-1", e.contentClass]),
|
|
41
|
+
style: s(e.contentStyle)
|
|
42
42
|
}, [
|
|
43
|
-
|
|
44
|
-
default:
|
|
45
|
-
|
|
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
|
-
})) :
|
|
48
|
+
})) : o(e.$slots, "default", { key: 1 }, void 0, !0)
|
|
49
49
|
], 6),
|
|
50
|
-
|
|
51
|
-
class: r(["base-layout-aside-footer",
|
|
52
|
-
style:
|
|
50
|
+
t("div", {
|
|
51
|
+
class: r(["base-layout-aside-footer", e.footerClass]),
|
|
52
|
+
style: s([u.value, e.footerStyle])
|
|
53
53
|
}, [
|
|
54
|
-
|
|
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-
|
|
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
|
|
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(
|
|
60
|
-
const M = F(() => import("./layoutMenu/index.vue.mjs")), o =
|
|
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
|
-
}),
|
|
65
|
+
}), y = i(() => {
|
|
66
66
|
const e = "vertical";
|
|
67
67
|
return o.mode.includes(e) ? e : "horizontal";
|
|
68
|
-
}),
|
|
69
|
-
const { reverseHorizontalMix: e } = o, { sliderCollapseWidth:
|
|
70
|
-
if (
|
|
71
|
-
return
|
|
72
|
-
let
|
|
73
|
-
return
|
|
74
|
-
}, g =
|
|
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:
|
|
77
|
-
if (
|
|
78
|
-
return
|
|
79
|
-
let
|
|
80
|
-
return
|
|
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
|
|
83
|
-
|
|
84
|
-
}, H = (e,
|
|
85
|
-
|
|
86
|
-
}, V = (e,
|
|
87
|
-
|
|
88
|
-
}, w = () => {
|
|
89
|
-
|
|
90
|
-
}, z = (e,
|
|
91
|
-
|
|
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:
|
|
95
|
+
isDarkMode: b,
|
|
96
96
|
userActionOption: o.userActionOption,
|
|
97
97
|
userInfo: o.userInfo,
|
|
98
98
|
_sliderCollapseWidth: g,
|
|
99
|
-
_sliderWidth:
|
|
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,
|
|
106
|
-
mode:
|
|
107
|
-
"scroll-mode":
|
|
108
|
-
"scroll-el-id":
|
|
109
|
-
"fixed-top":
|
|
110
|
-
"header-visible":
|
|
111
|
-
"header-height":
|
|
112
|
-
"tab-visible":
|
|
113
|
-
"tab-height":
|
|
114
|
-
"slider-visible":
|
|
115
|
-
"slider-class":
|
|
116
|
-
"slider-collapse":
|
|
117
|
-
"slider-width":
|
|
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":
|
|
120
|
-
"fixed-footer":
|
|
121
|
-
"footer-is-full-width":
|
|
122
|
-
"footer-height":
|
|
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:
|
|
125
|
-
|
|
124
|
+
header: n(() => [
|
|
125
|
+
a(e.$slots, "header", {}, () => [
|
|
126
126
|
m(P)
|
|
127
127
|
], !0)
|
|
128
128
|
]),
|
|
129
|
-
slider:
|
|
130
|
-
|
|
129
|
+
slider: n(() => [
|
|
130
|
+
a(e.$slots, "slider", {}, () => [
|
|
131
131
|
m(k)
|
|
132
132
|
], !0)
|
|
133
133
|
]),
|
|
134
|
-
footer:
|
|
135
|
-
|
|
134
|
+
footer: n(() => [
|
|
135
|
+
a(e.$slots, "footer", {}, void 0, !0)
|
|
136
136
|
]),
|
|
137
|
-
default:
|
|
138
|
-
|
|
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
|
|
4
|
+
const s = /* @__PURE__ */ t(o, [["__scopeId", "data-v-5362071c"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
s as default
|
|
7
7
|
};
|