base6-ui 1.1.15 → 1.1.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/BaseCascader/cssVar.d.ts +10 -0
- package/dist/components/BaseConfigProvider/locale-base.d.ts +2 -2
- package/dist/components/BaseConfigProvider/locale-naive.d.ts +3 -3
- package/dist/components/BaseConfigProvider/type.d.ts +2 -1
- package/dist/components/BaseDataTable/index.vue.d.ts +1 -1
- package/dist/components/BaseDialog/index.vue.d.ts +2 -2
- package/dist/components/BaseInputNumber/index.vue.d.ts +0 -1
- package/dist/components/BaseLayout/Default/index.vue.d.ts +1 -1
- package/dist/components/BaseLayout/Default/type.d.ts +1 -1
- package/dist/components/BaseLayout/index.vue.d.ts +1 -1
- package/dist/components/BaseSelect/index.vue.d.ts +1 -1
- package/dist/components/BaseSteps/index.d.ts +1 -0
- package/dist/components/BaseSteps/steps.d.ts +25 -0
- package/dist/components/BaseTabs/cssVar.d.ts +4 -0
- package/dist/components/BaseTabs/index.d.ts +2 -0
- package/dist/components/BaseTabs/tabs.d.ts +699 -0
- package/dist/components/index.d.ts +2 -0
- package/dist/config/themes/common.d.ts +1 -0
- package/dist/config/themes/components/baseComponent/dark.d.ts +3 -2
- package/dist/config/themes/components/baseComponent/light.d.ts +3 -2
- package/dist/config/themes/components/cascader/common.d.ts +2 -2
- package/dist/config/themes/components/cascader/dark.d.ts +2 -2
- package/dist/config/themes/components/cascader/light.d.ts +2 -2
- package/dist/fonts/MiSans-Medium.ttf +0 -0
- package/dist/fonts/MiSans-Regular.ttf +0 -0
- package/dist/hooks/useAnimationHook.d.ts +1 -1
- package/dist/index.css +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.umd.js +1 -1
- package/dist/types/themes/components.d.ts +4 -2
- package/dist/types/themes/extendThemes.d.ts +10 -0
- package/dist/utils/render.d.ts +3 -0
- package/es/_virtual/virtual_svg-icons-register.mjs +1 -1
- package/es/assets/logo/logo-dark-full.svg.mjs +2 -2
- package/es/assets/logo/logo-light-full.svg.mjs +2 -2
- package/es/components/BaseButton/index.vue.mjs +14 -14
- package/es/components/BaseCascader/cssVar.d.ts +10 -0
- package/es/components/BaseCascader/cssVar.mjs +13 -0
- package/es/components/BaseCascader/index.vue.mjs +2 -2
- package/es/components/BaseCascader/index.vue2.mjs +19 -13
- package/es/components/BaseConfigProvider/index.vue.mjs +14 -14
- package/es/components/BaseConfigProvider/locale-base.d.ts +2 -2
- package/es/components/BaseConfigProvider/locale-naive.d.ts +3 -3
- package/es/components/BaseConfigProvider/type.d.ts +2 -1
- package/es/components/BaseDataTable/index.vue.d.ts +1 -1
- package/es/components/BaseDataTable/index.vue2.mjs +13 -13
- package/es/components/BaseDialog/index.vue.d.ts +2 -2
- package/es/components/BaseDialog/index.vue.mjs +43 -43
- package/es/components/BaseInputNumber/index.vue.d.ts +0 -1
- package/es/components/BaseInputNumber/index.vue.mjs +1 -1
- package/es/components/BaseInputNumber/index.vue2.mjs +57 -57
- package/es/components/BaseLayout/ASide/index.vue.mjs +2 -2
- package/es/components/BaseLayout/ASide/index.vue2.mjs +27 -27
- package/es/components/BaseLayout/Default/index.vue.d.ts +1 -1
- package/es/components/BaseLayout/Default/index.vue2.mjs +56 -56
- package/es/components/BaseLayout/Default/layoutMenu/components/first-level-menu.vue2.mjs +30 -30
- package/es/components/BaseLayout/Default/type.d.ts +1 -1
- package/es/components/BaseLayout/components/WrapFooter.vue.mjs +14 -14
- package/es/components/BaseLayout/components/WrapHeader.vue2.mjs +8 -8
- package/es/components/BaseLayout/components/WrapTab.vue.mjs +12 -12
- package/es/components/BaseLayout/index.vue.d.ts +1 -1
- package/es/components/BaseLayout/index.vue2.mjs +36 -36
- package/es/components/BaseNavIcon/index.vue2.mjs +14 -14
- package/es/components/BaseProductIntroduction/index.vue.mjs +2 -2
- package/es/components/BaseProductIntroduction/index.vue2.mjs +71 -71
- package/es/components/BaseRadio/index.vue2.mjs +18 -18
- package/es/components/BaseSelect/index.vue.d.ts +1 -1
- package/es/components/BaseSelect/index.vue.mjs +2 -2
- package/es/components/BaseSelect/index.vue2.mjs +32 -30
- package/es/components/BaseSlider/index.vue2.mjs +44 -44
- package/es/components/BaseSteps/index.d.ts +1 -0
- package/es/components/BaseSteps/steps.d.ts +25 -0
- package/es/components/BaseSteps/steps.mjs +27 -0
- package/es/components/BaseSwitch/index.vue2.mjs +17 -17
- package/es/components/BaseSystemActions/index.vue.mjs +2 -2
- package/es/components/BaseSystemActions/index.vue2.mjs +20 -20
- package/es/components/BaseTabs/cssVar.d.ts +4 -0
- package/es/components/BaseTabs/cssVar.mjs +7 -0
- package/es/components/BaseTabs/index.d.ts +2 -0
- package/es/components/BaseTabs/tabs.d.ts +699 -0
- package/es/components/BaseTabs/tabs.mjs +43 -0
- package/es/components/index.d.ts +2 -0
- package/es/config/themes/common.d.ts +1 -0
- package/es/config/themes/common.mjs +2 -1
- package/es/config/themes/components/baseComponent/dark.d.ts +3 -2
- package/es/config/themes/components/baseComponent/dark.mjs +13 -6
- package/es/config/themes/components/baseComponent/light.d.ts +3 -2
- package/es/config/themes/components/baseComponent/light.mjs +10 -5
- package/es/config/themes/components/button/common.mjs +4 -4
- package/es/config/themes/components/cascader/common.d.ts +2 -2
- package/es/config/themes/components/cascader/common.mjs +4 -2
- package/es/config/themes/components/cascader/dark.d.ts +2 -2
- package/es/config/themes/components/cascader/dark.mjs +6 -2
- package/es/config/themes/components/cascader/light.d.ts +2 -2
- package/es/config/themes/components/cascader/light.mjs +10 -6
- package/es/config/themes/components/dataTable/dark.mjs +2 -0
- package/es/config/themes/components/dataTable/light.mjs +2 -0
- package/es/config/themes/components/input/dark.mjs +1 -1
- package/es/config/themes/components/select/dark.mjs +3 -2
- package/es/config/themes/components/select/light.mjs +1 -0
- package/es/config/themes/components/slider/dark.mjs +2 -1
- package/es/config/themes/components/slider/light.mjs +2 -1
- package/es/fonts/MiSans-Medium.ttf +0 -0
- package/es/fonts/MiSans-Regular.ttf +0 -0
- package/es/hooks/useAnimationHook.d.ts +1 -1
- package/es/hooks/useAnimationHook.mjs +17 -14
- package/es/index.css +1 -1
- package/es/index.d.ts +1 -0
- package/es/index.mjs +59 -52
- package/es/locale/lang/en-us.mjs +2 -2
- package/es/locale/lang/zh-cn.mjs +2 -2
- package/es/node_modules/.pnpm/{@vueuse_core@13.0.0_vue@3.5.13_typescript@5.7.2_ → @vueuse_core@13.0.0_vue@3.5.22_typescript@5.7.2_}/node_modules/@vueuse/core/index.mjs +1 -1
- package/es/types/themes/components.d.ts +4 -2
- package/es/types/themes/extendThemes.d.ts +10 -0
- package/es/utils/render.d.ts +3 -0
- package/es/utils/render.mjs +9 -0
- package/lib/_virtual/virtual_svg-icons-register.js +1 -1
- package/lib/assets/logo/logo-dark-full.svg.js +1 -1
- package/lib/assets/logo/logo-light-full.svg.js +1 -1
- package/lib/components/BaseButton/index.vue.js +1 -1
- package/lib/components/BaseCascader/cssVar.d.ts +10 -0
- package/lib/components/BaseCascader/cssVar.js +1 -0
- package/lib/components/BaseCascader/index.vue.js +1 -1
- package/lib/components/BaseCascader/index.vue2.js +1 -1
- package/lib/components/BaseConfigProvider/index.vue.js +1 -1
- package/lib/components/BaseConfigProvider/locale-base.d.ts +2 -2
- package/lib/components/BaseConfigProvider/locale-naive.d.ts +3 -3
- package/lib/components/BaseConfigProvider/type.d.ts +2 -1
- package/lib/components/BaseDataTable/index.vue.d.ts +1 -1
- package/lib/components/BaseDataTable/index.vue2.js +1 -1
- package/lib/components/BaseDialog/index.vue.d.ts +2 -2
- package/lib/components/BaseDialog/index.vue.js +1 -1
- package/lib/components/BaseInputNumber/index.vue.d.ts +0 -1
- package/lib/components/BaseInputNumber/index.vue.js +1 -1
- package/lib/components/BaseInputNumber/index.vue2.js +1 -1
- package/lib/components/BaseLayout/ASide/index.vue.js +1 -1
- package/lib/components/BaseLayout/ASide/index.vue2.js +1 -1
- package/lib/components/BaseLayout/Default/index.vue.d.ts +1 -1
- package/lib/components/BaseLayout/Default/index.vue2.js +1 -1
- package/lib/components/BaseLayout/Default/layoutMenu/components/first-level-menu.vue2.js +1 -1
- package/lib/components/BaseLayout/Default/type.d.ts +1 -1
- package/lib/components/BaseLayout/components/WrapFooter.vue.js +1 -1
- package/lib/components/BaseLayout/components/WrapHeader.vue2.js +1 -1
- package/lib/components/BaseLayout/components/WrapTab.vue.js +1 -1
- package/lib/components/BaseLayout/index.vue.d.ts +1 -1
- package/lib/components/BaseLayout/index.vue2.js +1 -1
- package/lib/components/BaseNavIcon/index.vue2.js +1 -1
- package/lib/components/BaseProductIntroduction/index.vue.js +1 -1
- package/lib/components/BaseProductIntroduction/index.vue2.js +1 -1
- package/lib/components/BaseRadio/index.vue2.js +1 -1
- package/lib/components/BaseSelect/index.vue.d.ts +1 -1
- package/lib/components/BaseSelect/index.vue.js +1 -1
- package/lib/components/BaseSelect/index.vue2.js +1 -1
- package/lib/components/BaseSlider/index.vue2.js +1 -1
- package/lib/components/BaseSteps/index.d.ts +1 -0
- package/lib/components/BaseSteps/steps.d.ts +25 -0
- package/lib/components/BaseSteps/steps.js +1 -0
- package/lib/components/BaseSwitch/index.vue2.js +1 -1
- package/lib/components/BaseSystemActions/index.vue.js +1 -1
- package/lib/components/BaseSystemActions/index.vue2.js +1 -1
- package/lib/components/BaseTabs/cssVar.d.ts +4 -0
- package/lib/components/BaseTabs/cssVar.js +1 -0
- package/lib/components/BaseTabs/index.d.ts +2 -0
- package/lib/components/BaseTabs/tabs.d.ts +699 -0
- package/lib/components/BaseTabs/tabs.js +1 -0
- package/lib/components/index.d.ts +2 -0
- package/lib/config/themes/common.d.ts +1 -0
- package/lib/config/themes/common.js +1 -1
- package/lib/config/themes/components/baseComponent/dark.d.ts +3 -2
- package/lib/config/themes/components/baseComponent/dark.js +1 -1
- package/lib/config/themes/components/baseComponent/light.d.ts +3 -2
- package/lib/config/themes/components/baseComponent/light.js +1 -1
- package/lib/config/themes/components/button/common.js +1 -1
- package/lib/config/themes/components/cascader/common.d.ts +2 -2
- package/lib/config/themes/components/cascader/common.js +1 -1
- package/lib/config/themes/components/cascader/dark.d.ts +2 -2
- package/lib/config/themes/components/cascader/dark.js +1 -1
- package/lib/config/themes/components/cascader/light.d.ts +2 -2
- package/lib/config/themes/components/cascader/light.js +1 -1
- package/lib/config/themes/components/dataTable/dark.js +1 -1
- package/lib/config/themes/components/dataTable/light.js +1 -1
- package/lib/config/themes/components/input/dark.js +1 -1
- package/lib/config/themes/components/select/dark.js +1 -1
- package/lib/config/themes/components/select/light.js +1 -1
- package/lib/config/themes/components/slider/dark.js +1 -1
- package/lib/config/themes/components/slider/light.js +1 -1
- package/lib/fonts/MiSans-Medium.ttf +0 -0
- package/lib/fonts/MiSans-Regular.ttf +0 -0
- package/lib/hooks/useAnimationHook.d.ts +1 -1
- package/lib/hooks/useAnimationHook.js +1 -1
- package/lib/index.css +1 -1
- package/lib/index.d.ts +1 -0
- package/lib/index.js +1 -1
- package/lib/locale/lang/en-us.js +1 -1
- package/lib/locale/lang/zh-cn.js +1 -1
- package/lib/node_modules/.pnpm/{@vueuse_core@13.0.0_vue@3.5.13_typescript@5.7.2_ → @vueuse_core@13.0.0_vue@3.5.22_typescript@5.7.2_}/node_modules/@vueuse/core/index.js +1 -1
- package/lib/types/themes/components.d.ts +4 -2
- package/lib/types/themes/extendThemes.d.ts +10 -0
- package/lib/utils/render.d.ts +3 -0
- package/lib/utils/render.js +1 -0
- package/package.json +3 -1
- /package/es/node_modules/.pnpm/{@vueuse_shared@13.0.0_vue@3.5.13_typescript@5.7.2_ → @vueuse_shared@13.0.0_vue@3.5.22_typescript@5.7.2_}/node_modules/@vueuse/shared/index.mjs +0 -0
- /package/lib/node_modules/.pnpm/{@vueuse_shared@13.0.0_vue@3.5.13_typescript@5.7.2_ → @vueuse_shared@13.0.0_vue@3.5.22_typescript@5.7.2_}/node_modules/@vueuse/shared/index.js +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { NModal as T, NCard as S } from "naive-ui";
|
|
2
|
-
import { defineComponent as I, mergeDefaults as P, computed as
|
|
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 t, createVNode as r, createSlots as H, renderSlot as a, createElementBlock as y, toDisplayString as O, normalizeClass as L, unref as h } from "vue";
|
|
3
3
|
import { defaultProps as N } from "./options.mjs";
|
|
4
|
-
import
|
|
4
|
+
import C from "../BaseButton/index.vue.mjs";
|
|
5
5
|
const R = {
|
|
6
6
|
key: 1,
|
|
7
7
|
style: { margin: "0 auto" }
|
|
@@ -37,74 +37,74 @@ const R = {
|
|
|
37
37
|
btnSize: {}
|
|
38
38
|
}, N),
|
|
39
39
|
emits: ["update:visible", "cancel", "confirm"],
|
|
40
|
-
setup(
|
|
41
|
-
const
|
|
42
|
-
width: `${
|
|
40
|
+
setup(e, { emit: b }) {
|
|
41
|
+
const i = b, n = e, k = l(() => ({
|
|
42
|
+
width: `${n.width}`,
|
|
43
43
|
position: "fixed",
|
|
44
44
|
left: "50%",
|
|
45
|
-
top: `${
|
|
45
|
+
top: `${n.top}`,
|
|
46
46
|
transform: "translateX(-50%)"
|
|
47
|
-
})),
|
|
47
|
+
})), g = l(() => ({
|
|
48
48
|
lineHeight: "28px",
|
|
49
|
-
textAlign: `${
|
|
50
|
-
})),
|
|
51
|
-
get: () =>
|
|
52
|
-
set: (
|
|
53
|
-
|
|
49
|
+
textAlign: `${n.center ? "center" : "left"}`
|
|
50
|
+
})), v = l(() => n.btnPlacement === "center" ? "flex-c" : "flex justify-end"), s = l({
|
|
51
|
+
get: () => n.visible,
|
|
52
|
+
set: (o) => {
|
|
53
|
+
i("update:visible", o);
|
|
54
54
|
}
|
|
55
|
-
}),
|
|
56
|
-
|
|
57
|
-
},
|
|
58
|
-
|
|
55
|
+
}), d = () => {
|
|
56
|
+
s.value = !1, i("cancel");
|
|
57
|
+
}, x = () => {
|
|
58
|
+
i("confirm");
|
|
59
59
|
};
|
|
60
|
-
return (
|
|
60
|
+
return (o, m) => {
|
|
61
61
|
const $ = E("svg-icon"), B = S, w = T;
|
|
62
|
-
return
|
|
63
|
-
show:
|
|
64
|
-
"onUpdate:show":
|
|
62
|
+
return c(), f(w, u({
|
|
63
|
+
show: s.value,
|
|
64
|
+
"onUpdate:show": m[0] || (m[0] = (z) => s.value = z),
|
|
65
65
|
maskClosable: e.maskClosable,
|
|
66
66
|
closeOnEsc: e.closeOnEsc
|
|
67
|
-
},
|
|
68
|
-
default:
|
|
69
|
-
|
|
70
|
-
"header-style":
|
|
71
|
-
style:
|
|
67
|
+
}, o.$attrs), {
|
|
68
|
+
default: t(() => [
|
|
69
|
+
r(B, u({
|
|
70
|
+
"header-style": g.value,
|
|
71
|
+
style: k.value,
|
|
72
72
|
size: e.cardSize,
|
|
73
73
|
closable: e.closable,
|
|
74
74
|
segmented: { content: !0 }
|
|
75
|
-
},
|
|
76
|
-
default:
|
|
77
|
-
a(
|
|
75
|
+
}, o.$attrs), H({
|
|
76
|
+
default: t(() => [
|
|
77
|
+
a(o.$slots, "default")
|
|
78
78
|
]),
|
|
79
79
|
_: 2
|
|
80
80
|
}, [
|
|
81
|
-
|
|
81
|
+
o.$slots.header || e.title ? {
|
|
82
82
|
name: "header",
|
|
83
|
-
fn:
|
|
84
|
-
|
|
83
|
+
fn: t(() => [
|
|
84
|
+
o.$slots.header ? a(o.$slots, "header", { key: 0 }) : (c(), y("span", R, O(e.title), 1))
|
|
85
85
|
]),
|
|
86
86
|
key: "0"
|
|
87
87
|
} : void 0,
|
|
88
|
-
|
|
88
|
+
o.$slots["header-extra"] || e.showHeaderExtra ? {
|
|
89
89
|
name: "header-extra",
|
|
90
|
-
fn:
|
|
91
|
-
|
|
90
|
+
fn: t(() => [
|
|
91
|
+
o.$slots["header-extra"] ? a(o.$slots, "header-extra", { key: 0 }) : (c(), f($, {
|
|
92
92
|
key: 1,
|
|
93
93
|
icon: "operate-close",
|
|
94
94
|
class: "cursor-pointer active:scale-[0.95] text-[18px]",
|
|
95
|
-
onClick:
|
|
95
|
+
onClick: d
|
|
96
96
|
}))
|
|
97
97
|
]),
|
|
98
98
|
key: "1"
|
|
99
99
|
} : void 0,
|
|
100
|
-
|
|
100
|
+
o.$slots.footer || e.showFooter ? {
|
|
101
101
|
name: "footer",
|
|
102
|
-
fn:
|
|
103
|
-
|
|
102
|
+
fn: t(() => [
|
|
103
|
+
o.$slots.footer ? a(o.$slots, "footer", { key: 0 }) : (c(), y("div", {
|
|
104
104
|
key: 1,
|
|
105
|
-
class: L(["gap-[8px]",
|
|
105
|
+
class: L(["gap-[8px]", v.value])
|
|
106
106
|
}, [
|
|
107
|
-
|
|
107
|
+
r(h(C), {
|
|
108
108
|
icon: e.cancelIcon,
|
|
109
109
|
"icon-placement": e.cancelIconPlacement,
|
|
110
110
|
color: e.cancelColor,
|
|
@@ -114,9 +114,9 @@ const R = {
|
|
|
114
114
|
round: e.btnRound,
|
|
115
115
|
size: e.btnSize,
|
|
116
116
|
type: e.cancelType,
|
|
117
|
-
onClick:
|
|
117
|
+
onClick: d
|
|
118
118
|
}, null, 8, ["icon", "icon-placement", "color", "text-color", "content", "loading", "round", "size", "type"]),
|
|
119
|
-
|
|
119
|
+
r(h(C), {
|
|
120
120
|
icon: e.confirmIcon,
|
|
121
121
|
"icon-placement": e.confirmIconPlacement,
|
|
122
122
|
color: e.confirmColor,
|
|
@@ -126,7 +126,7 @@ const R = {
|
|
|
126
126
|
round: e.btnRound,
|
|
127
127
|
size: e.btnSize,
|
|
128
128
|
type: e.confirmType,
|
|
129
|
-
onClick:
|
|
129
|
+
onClick: x
|
|
130
130
|
}, null, 8, ["icon", "icon-placement", "color", "text-color", "content", "loading", "round", "size", "type"])
|
|
131
131
|
], 2))
|
|
132
132
|
]),
|
|
@@ -2685,7 +2685,6 @@ declare function __VLS_template(): {
|
|
|
2685
2685
|
};
|
|
2686
2686
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
2687
2687
|
declare const __VLS_component: import('vue').DefineComponent<PropsType, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<PropsType> & Readonly<{}>, {
|
|
2688
|
-
size: "small" | "medium" | "large";
|
|
2689
2688
|
prefixIcon: string;
|
|
2690
2689
|
suffixIcon: string;
|
|
2691
2690
|
addIcon: string;
|
|
@@ -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 m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-
|
|
4
|
+
const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-bc68fd8c"]]);
|
|
5
5
|
export {
|
|
6
6
|
m as default
|
|
7
7
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { NButton as
|
|
2
|
-
import { defineComponent as
|
|
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";
|
|
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__ */ S({
|
|
8
8
|
name: "BaseInputNumber",
|
|
9
9
|
__name: "index",
|
|
10
10
|
props: {
|
|
@@ -17,18 +17,18 @@ const L = {
|
|
|
17
17
|
disabled: { type: Boolean },
|
|
18
18
|
min: {},
|
|
19
19
|
max: {},
|
|
20
|
-
size: {
|
|
20
|
+
size: {}
|
|
21
21
|
},
|
|
22
|
-
setup(
|
|
23
|
-
const
|
|
24
|
-
!
|
|
25
|
-
},
|
|
26
|
-
!
|
|
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();
|
|
27
27
|
};
|
|
28
|
-
return
|
|
29
|
-
() =>
|
|
28
|
+
return R(
|
|
29
|
+
() => I?.value?.InputNumber,
|
|
30
30
|
(e) => {
|
|
31
|
-
|
|
31
|
+
C.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
|
+
}, m.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 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])
|
|
63
63
|
}, [
|
|
64
|
-
|
|
64
|
+
n.controlsInner ? a("", !0) : (t(), d(y, f({
|
|
65
65
|
key: 0,
|
|
66
|
-
style:
|
|
67
|
-
ghost: !
|
|
66
|
+
style: m.value,
|
|
67
|
+
ghost: !l.value,
|
|
68
68
|
class: "outer-controls minus-btn"
|
|
69
69
|
}, e.$attrs, {
|
|
70
|
-
disabled:
|
|
71
|
-
size:
|
|
72
|
-
onClick:
|
|
70
|
+
disabled: l.value,
|
|
71
|
+
size: n.size,
|
|
72
|
+
onClick: g
|
|
73
73
|
}), {
|
|
74
|
-
default:
|
|
75
|
-
|
|
74
|
+
default: u(() => [
|
|
75
|
+
r(i, { icon: "operate-minus" })
|
|
76
76
|
]),
|
|
77
77
|
_: 1
|
|
78
78
|
}, 16, ["style", "ghost", "disabled", "size"])),
|
|
79
|
-
|
|
79
|
+
r(z, f({ class: "flex-1" }, e.$attrs, {
|
|
80
80
|
ref_key: "inputNumberRef",
|
|
81
|
-
ref:
|
|
81
|
+
ref: o,
|
|
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: 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, {
|
|
91
91
|
key: 1,
|
|
92
|
-
icon:
|
|
92
|
+
icon: n.suffixIcon
|
|
93
93
|
}, null, 8, ["icon"]))
|
|
94
|
-
], 64)) :
|
|
95
|
-
|
|
94
|
+
], 64)) : a("", !0),
|
|
95
|
+
n.controlsInner ? (t(), c("div", L, [
|
|
96
96
|
B("div", {
|
|
97
|
-
class: b(["add", [
|
|
98
|
-
onClick:
|
|
97
|
+
class: b(["add", [s.value ? "is-disabled" : ""]]),
|
|
98
|
+
onClick: h
|
|
99
99
|
}, [
|
|
100
|
-
|
|
100
|
+
r(i, { icon: "arrow-top" })
|
|
101
101
|
], 2),
|
|
102
102
|
B("div", {
|
|
103
|
-
class: b(["minus", [
|
|
104
|
-
onClick:
|
|
103
|
+
class: b(["minus", [l.value ? "is-disabled" : ""]]),
|
|
104
|
+
onClick: g
|
|
105
105
|
}, [
|
|
106
|
-
|
|
106
|
+
r(i, { icon: "arrow-down" })
|
|
107
107
|
], 2)
|
|
108
|
-
])) :
|
|
108
|
+
])) : a("", !0)
|
|
109
109
|
]),
|
|
110
110
|
_: 2
|
|
111
111
|
}, [
|
|
112
|
-
e.$slots.prefix ||
|
|
112
|
+
e.$slots.prefix || n.prefixIcon ? {
|
|
113
113
|
name: "prefix",
|
|
114
|
-
fn:
|
|
115
|
-
e.$slots.prefix ?
|
|
114
|
+
fn: u(() => [
|
|
115
|
+
e.$slots.prefix ? x(e.$slots, "prefix", { key: 0 }, void 0, !0) : (t(), d(i, {
|
|
116
116
|
key: 1,
|
|
117
|
-
icon:
|
|
117
|
+
icon: n.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
|
+
n.controlsInner ? a("", !0) : (t(), d(y, f({
|
|
124
124
|
key: 1,
|
|
125
|
-
size:
|
|
126
|
-
ghost: !
|
|
127
|
-
style:
|
|
125
|
+
size: n.size,
|
|
126
|
+
ghost: !s.value,
|
|
127
|
+
style: m.value,
|
|
128
128
|
class: "outer-controls add-btn"
|
|
129
129
|
}, e.$attrs, {
|
|
130
|
-
disabled:
|
|
131
|
-
onClick:
|
|
130
|
+
disabled: s.value,
|
|
131
|
+
onClick: h
|
|
132
132
|
}), {
|
|
133
|
-
default:
|
|
134
|
-
|
|
133
|
+
default: u(() => [
|
|
134
|
+
r(i, { icon: "operate-add" })
|
|
135
135
|
]),
|
|
136
136
|
_: 1
|
|
137
137
|
}, 16, ["size", "ghost", "style", "disabled"]))
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./index.vue2.mjs";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
4
|
-
const
|
|
4
|
+
const e = /* @__PURE__ */ t(o, [["__scopeId", "data-v-c445f597"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
e as default
|
|
7
7
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { NScrollbar as
|
|
2
|
-
import { defineComponent as
|
|
3
|
-
import
|
|
4
|
-
const B = /* @__PURE__ */
|
|
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({
|
|
5
5
|
__name: "index",
|
|
6
6
|
props: {
|
|
7
7
|
logoClass: {},
|
|
@@ -12,46 +12,46 @@ const B = /* @__PURE__ */ y({
|
|
|
12
12
|
footerClass: {},
|
|
13
13
|
footerStyle: {}
|
|
14
14
|
},
|
|
15
|
-
setup(
|
|
16
|
-
const { mergedThemeOverridesRef: d } =
|
|
17
|
-
return
|
|
15
|
+
setup(o) {
|
|
16
|
+
const { mergedThemeOverridesRef: d } = b(), n = l({}), i = l({}), u = l({});
|
|
17
|
+
return v(
|
|
18
18
|
() => d?.value?.Layout,
|
|
19
19
|
(e) => {
|
|
20
|
-
e && (
|
|
20
|
+
e && (n.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, k) => {
|
|
28
|
+
const f = y;
|
|
29
|
+
return c(), S("aside", C({
|
|
30
30
|
class: "h-full w-full flex-col-stretch base-layout-aside",
|
|
31
|
-
style:
|
|
31
|
+
style: n.value
|
|
32
32
|
}, e.$attrs), [
|
|
33
|
-
|
|
34
|
-
class: r(["base-layout-aside-logo-wrap",
|
|
35
|
-
style:
|
|
33
|
+
s("div", {
|
|
34
|
+
class: r(["base-layout-aside-logo-wrap", o.logoClass]),
|
|
35
|
+
style: a([i.value, o.logoStyle])
|
|
36
36
|
}, [
|
|
37
|
-
|
|
37
|
+
t(e.$slots, "header", {}, void 0, !0)
|
|
38
38
|
], 6),
|
|
39
|
-
|
|
40
|
-
class: r(["h-full flex-1",
|
|
41
|
-
style:
|
|
39
|
+
s("div", {
|
|
40
|
+
class: r(["h-full flex-1", o.contentClass]),
|
|
41
|
+
style: a(o.contentStyle)
|
|
42
42
|
}, [
|
|
43
|
-
|
|
44
|
-
default:
|
|
45
|
-
|
|
43
|
+
o.contentScrollable ? (c(), g(f, { key: 0 }, {
|
|
44
|
+
default: h(() => [
|
|
45
|
+
t(e.$slots, "default", {}, void 0, !0)
|
|
46
46
|
]),
|
|
47
47
|
_: 3
|
|
48
|
-
})) :
|
|
48
|
+
})) : t(e.$slots, "default", { key: 1 }, void 0, !0)
|
|
49
49
|
], 6),
|
|
50
|
-
|
|
51
|
-
class: r(["base-layout-aside-footer",
|
|
52
|
-
style:
|
|
50
|
+
s("div", {
|
|
51
|
+
class: r(["base-layout-aside-footer", o.footerClass]),
|
|
52
|
+
style: a([u.value, o.footerStyle])
|
|
53
53
|
}, [
|
|
54
|
-
|
|
54
|
+
t(e.$slots, "footer", {}, void 0, !0)
|
|
55
55
|
], 6)
|
|
56
56
|
], 16);
|
|
57
57
|
};
|
|
@@ -30,9 +30,9 @@ declare const __VLS_component: import('vue').DefineComponent<BaseDefaultLayoutPr
|
|
|
30
30
|
contentClass: string;
|
|
31
31
|
headerClass: string;
|
|
32
32
|
footerClass: string;
|
|
33
|
+
tabClass: string;
|
|
33
34
|
headerHeight: number;
|
|
34
35
|
mode: BaseDefaultLayoutMode;
|
|
35
|
-
tabClass: string;
|
|
36
36
|
sliderCollapse: boolean;
|
|
37
37
|
sliderClass: string;
|
|
38
38
|
tabHeight: number;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as z, mergeDefaults as F, defineAsyncComponent as T, computed as
|
|
1
|
+
import { defineComponent as z, mergeDefaults as F, defineAsyncComponent as T, computed as i, provide as $, createBlock as A, openBlock as D, withCtx as a, renderSlot as u, createVNode as c, unref as O } from "vue";
|
|
2
2
|
import P from "../index.vue.mjs";
|
|
3
3
|
import k from "./layoutHeader/index.vue.mjs";
|
|
4
4
|
import N from "./layoutSlider/index.vue.mjs";
|
|
@@ -57,90 +57,90 @@ const Y = /* @__PURE__ */ z({
|
|
|
57
57
|
"toggleSystemTheme",
|
|
58
58
|
"toggleUserItem"
|
|
59
59
|
],
|
|
60
|
-
setup(
|
|
61
|
-
const M = T(() => import("./layoutMenu/index.vue.mjs")), o =
|
|
60
|
+
setup(t, { emit: x }) {
|
|
61
|
+
const M = T(() => import("./layoutMenu/index.vue.mjs")), o = t, s = x, C = R(), { childLevelMenus: g } = j(o), p = i(() => {
|
|
62
62
|
const {
|
|
63
63
|
name: e = "light"
|
|
64
64
|
} = C?.mergedThemeRef.value || {};
|
|
65
65
|
return e !== "light";
|
|
66
|
-
}),
|
|
66
|
+
}), b = i(() => {
|
|
67
67
|
const e = "vertical";
|
|
68
68
|
return o.mode.includes(e) ? e : "horizontal";
|
|
69
|
-
}),
|
|
70
|
-
const { reverseHorizontalMix: e } = o, { sliderCollapseWidth:
|
|
71
|
-
if (
|
|
72
|
-
return
|
|
73
|
-
let
|
|
74
|
-
return
|
|
75
|
-
}, f =
|
|
69
|
+
}), y = i(() => o.mode !== "horizontal"), d = i(() => o.mode === "horizontal-mix"), n = i(() => o.mode === "vertical-mix"), I = () => {
|
|
70
|
+
const { reverseHorizontalMix: e } = o, { sliderCollapseWidth: l, sliderMixCollapseWidth: h, sliderMixChildMenuWidth: m } = o;
|
|
71
|
+
if (d.value && e)
|
|
72
|
+
return l;
|
|
73
|
+
let r = n.value || d.value ? h : l;
|
|
74
|
+
return n.value && o.mixSliderFixed && g.value.length && (r += m), r;
|
|
75
|
+
}, f = i(() => I());
|
|
76
76
|
function W() {
|
|
77
|
-
const { reverseHorizontalMix: e } = o, { sliderWidth:
|
|
78
|
-
if (
|
|
79
|
-
return
|
|
80
|
-
let
|
|
81
|
-
return
|
|
77
|
+
const { reverseHorizontalMix: e } = o, { sliderWidth: l, sliderMixChildMenuWidth: h, sliderMixWidth: m } = o;
|
|
78
|
+
if (d.value && e)
|
|
79
|
+
return l;
|
|
80
|
+
let r = n.value || d.value ? m : l;
|
|
81
|
+
return n.value && o.mixSliderFixed && g.value.length && (r += h), r;
|
|
82
82
|
}
|
|
83
|
-
const
|
|
84
|
-
|
|
85
|
-
}, L = (e,
|
|
86
|
-
|
|
87
|
-
}, S = (e,
|
|
88
|
-
|
|
83
|
+
const v = i(() => W()), B = () => {
|
|
84
|
+
s("toggleLogo");
|
|
85
|
+
}, L = (e, l) => {
|
|
86
|
+
s("toggleMenuItem", e, l);
|
|
87
|
+
}, S = (e, l) => {
|
|
88
|
+
s("toggleMixMenuItem", e, l);
|
|
89
89
|
}, H = (e) => {
|
|
90
|
-
|
|
90
|
+
s("toggleSystemTheme", e);
|
|
91
91
|
}, V = () => {
|
|
92
|
-
|
|
93
|
-
}, w = (e,
|
|
94
|
-
|
|
92
|
+
s("toggleSystemLang");
|
|
93
|
+
}, w = (e, l) => {
|
|
94
|
+
s("toggleUserItem", e, l);
|
|
95
95
|
};
|
|
96
96
|
return $(U, {
|
|
97
97
|
layoutConfig: o,
|
|
98
|
-
isDarkMode:
|
|
98
|
+
isDarkMode: p,
|
|
99
99
|
userActionOption: o.userActionOption,
|
|
100
100
|
userInfo: o.userInfo,
|
|
101
101
|
_sliderCollapseWidth: f,
|
|
102
|
-
_sliderWidth:
|
|
102
|
+
_sliderWidth: v,
|
|
103
103
|
toggleLogo: B,
|
|
104
104
|
toggleMenuItem: L,
|
|
105
105
|
toggleMixMenuItem: S,
|
|
106
106
|
toggleSystemLang: V,
|
|
107
107
|
toggleSystemTheme: H,
|
|
108
108
|
toggleUserItem: w
|
|
109
|
-
}), (e,
|
|
110
|
-
mode:
|
|
111
|
-
"scroll-mode":
|
|
112
|
-
"scroll-el-id":
|
|
113
|
-
"fixed-top":
|
|
114
|
-
"header-visible":
|
|
115
|
-
"header-height":
|
|
116
|
-
"tab-visible":
|
|
117
|
-
"tab-height":
|
|
118
|
-
"slider-visible":
|
|
119
|
-
"slider-class":
|
|
120
|
-
"slider-collapse":
|
|
121
|
-
"slider-width":
|
|
109
|
+
}), (e, l) => (D(), A(P, {
|
|
110
|
+
mode: b.value,
|
|
111
|
+
"scroll-mode": t.scrollMode,
|
|
112
|
+
"scroll-el-id": t.scrollElId,
|
|
113
|
+
"fixed-top": t.fixedTop,
|
|
114
|
+
"header-visible": t.headerVisible,
|
|
115
|
+
"header-height": t.headerHeight,
|
|
116
|
+
"tab-visible": t.tabVisible,
|
|
117
|
+
"tab-height": t.tabHeight,
|
|
118
|
+
"slider-visible": y.value,
|
|
119
|
+
"slider-class": t.sliderClass,
|
|
120
|
+
"slider-collapse": t.sliderCollapse,
|
|
121
|
+
"slider-width": v.value,
|
|
122
122
|
"slider-collapse-width": f.value,
|
|
123
|
-
"footer-visible":
|
|
124
|
-
"fixed-footer":
|
|
125
|
-
"footer-is-full-width":
|
|
126
|
-
"footer-height":
|
|
123
|
+
"footer-visible": t.footerVisible,
|
|
124
|
+
"fixed-footer": t.fixedFooter,
|
|
125
|
+
"footer-is-full-width": t.footerIsFullWidth,
|
|
126
|
+
"footer-height": t.footerHeight
|
|
127
127
|
}, {
|
|
128
|
-
header:
|
|
129
|
-
|
|
130
|
-
|
|
128
|
+
header: a(() => [
|
|
129
|
+
u(e.$slots, "header", {}, () => [
|
|
130
|
+
c(k)
|
|
131
131
|
], !0)
|
|
132
132
|
]),
|
|
133
|
-
slider:
|
|
134
|
-
|
|
135
|
-
|
|
133
|
+
slider: a(() => [
|
|
134
|
+
u(e.$slots, "slider", {}, () => [
|
|
135
|
+
c(N)
|
|
136
136
|
], !0)
|
|
137
137
|
]),
|
|
138
|
-
footer:
|
|
139
|
-
|
|
138
|
+
footer: a(() => [
|
|
139
|
+
u(e.$slots, "footer", {}, void 0, !0)
|
|
140
140
|
]),
|
|
141
|
-
default:
|
|
142
|
-
|
|
143
|
-
|
|
141
|
+
default: a(() => [
|
|
142
|
+
u(e.$slots, "default", {}, void 0, !0),
|
|
143
|
+
c(O(M))
|
|
144
144
|
]),
|
|
145
145
|
_: 3
|
|
146
146
|
}, 8, ["mode", "scroll-mode", "scroll-el-id", "fixed-top", "header-visible", "header-height", "tab-visible", "tab-height", "slider-visible", "slider-class", "slider-collapse", "slider-width", "slider-collapse-width", "footer-visible", "fixed-footer", "footer-is-full-width", "footer-height"]));
|