base6-ui 2.0.13 → 2.0.15
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/button/button.d.ts +1352 -0
- package/dist/components/button/index.d.ts +2 -1
- package/dist/components/button/interface.d.ts +678 -0
- package/dist/components/data-table/data-table.d.ts +1 -1
- package/dist/components/slider/index.vue.d.ts +3 -2
- package/dist/components/tabs/tabs.d.ts +1 -1
- package/dist/index.css +1 -1
- package/dist/index.umd.js +1 -1
- package/es/components/button/button.d.ts +1352 -0
- package/es/components/button/button.mjs +28 -0
- package/es/components/button/index.d.ts +2 -1
- package/es/components/button/interface.d.ts +678 -0
- package/es/components/button/interface.mjs +22 -0
- package/es/components/data-table/data-table.d.ts +1 -1
- package/es/components/dialog/index.vue.mjs +7 -6
- package/es/components/slider/index.vue.d.ts +3 -2
- package/es/components/slider/index.vue.mjs +2 -2
- package/es/components/slider/index.vue2.mjs +48 -44
- package/es/components/tabs/tabs.d.ts +1 -1
- package/es/index.css +1 -1
- package/es/index.mjs +92 -90
- package/lib/components/button/button.d.ts +1352 -0
- package/lib/components/button/button.js +1 -0
- package/lib/components/button/index.d.ts +2 -1
- package/lib/components/button/interface.d.ts +678 -0
- package/lib/components/button/interface.js +1 -0
- package/lib/components/data-table/data-table.d.ts +1 -1
- package/lib/components/dialog/index.vue.js +1 -1
- package/lib/components/slider/index.vue.d.ts +3 -2
- package/lib/components/slider/index.vue.js +1 -1
- package/lib/components/slider/index.vue2.js +1 -1
- package/lib/components/tabs/tabs.d.ts +1 -1
- package/lib/index.css +1 -1
- package/lib/index.js +1 -1
- package/package.json +1 -1
- package/dist/components/button/index.vue.d.ts +0 -24
- package/es/components/button/index.vue.d.ts +0 -24
- package/es/components/button/index.vue.mjs +0 -36
- package/es/components/button/index.vue2.mjs +0 -4
- package/lib/components/button/index.vue.d.ts +0 -24
- package/lib/components/button/index.vue.js +0 -1
- package/lib/components/button/index.vue2.js +0 -1
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { buttonProps as o } from "naive-ui";
|
|
2
|
+
const n = {
|
|
3
|
+
...o,
|
|
4
|
+
/**
|
|
5
|
+
* 覆盖 NaiveUI focusable
|
|
6
|
+
*/
|
|
7
|
+
focusable: {
|
|
8
|
+
type: Boolean,
|
|
9
|
+
default: !1
|
|
10
|
+
},
|
|
11
|
+
/**
|
|
12
|
+
* 按钮文本
|
|
13
|
+
*/
|
|
14
|
+
content: String,
|
|
15
|
+
/**
|
|
16
|
+
* svg-icon
|
|
17
|
+
*/
|
|
18
|
+
icon: String
|
|
19
|
+
};
|
|
20
|
+
export {
|
|
21
|
+
n as bodenButtonProps
|
|
22
|
+
};
|
|
@@ -7082,7 +7082,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
7082
7082
|
virtualScrollHeader: boolean;
|
|
7083
7083
|
headerHeight: number;
|
|
7084
7084
|
minRowHeight: number;
|
|
7085
|
-
tableLayout: "
|
|
7085
|
+
tableLayout: "auto" | "fixed";
|
|
7086
7086
|
childrenKey: string;
|
|
7087
7087
|
indent: number;
|
|
7088
7088
|
flexHeight: boolean;
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { NModal as T, NCard as S } from "naive-ui";
|
|
2
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 O, renderSlot as a, createElementBlock as y, toDisplayString as H, normalizeClass as L, unref as h } from "vue";
|
|
3
3
|
import { defaultProps as N } from "./options.mjs";
|
|
4
|
-
import C from "../button/
|
|
4
|
+
import C from "../button/button.mjs";
|
|
5
|
+
import "../button/interface.mjs";
|
|
5
6
|
const R = {
|
|
6
7
|
key: 1,
|
|
7
8
|
style: { margin: "0 auto" }
|
|
8
|
-
},
|
|
9
|
+
}, A = /* @__PURE__ */ I({
|
|
9
10
|
__name: "index",
|
|
10
11
|
props: /* @__PURE__ */ P({
|
|
11
12
|
visible: { type: Boolean },
|
|
@@ -59,7 +60,7 @@ const R = {
|
|
|
59
60
|
i("confirm");
|
|
60
61
|
};
|
|
61
62
|
return (o, m) => {
|
|
62
|
-
const
|
|
63
|
+
const B = E("svg-icon"), $ = S, w = T;
|
|
63
64
|
return c(), f(w, u({
|
|
64
65
|
show: s.value,
|
|
65
66
|
"onUpdate:show": m[0] || (m[0] = (z) => s.value = z),
|
|
@@ -67,7 +68,7 @@ const R = {
|
|
|
67
68
|
closeOnEsc: e.closeOnEsc
|
|
68
69
|
}, o.$attrs), {
|
|
69
70
|
default: t(() => [
|
|
70
|
-
r(
|
|
71
|
+
r($, u({
|
|
71
72
|
"header-style": g.value,
|
|
72
73
|
style: k.value,
|
|
73
74
|
size: e.cardSize,
|
|
@@ -89,7 +90,7 @@ const R = {
|
|
|
89
90
|
o.$slots["header-extra"] || e.showHeaderExtra ? {
|
|
90
91
|
name: "header-extra",
|
|
91
92
|
fn: t(() => [
|
|
92
|
-
o.$slots["header-extra"] ? a(o.$slots, "header-extra", { key: 0 }) : (c(), f(
|
|
93
|
+
o.$slots["header-extra"] ? a(o.$slots, "header-extra", { key: 0 }) : (c(), f(B, {
|
|
93
94
|
key: 1,
|
|
94
95
|
icon: "operate-close",
|
|
95
96
|
class: "cursor-pointer active:scale-[0.95] text-[18px]",
|
|
@@ -141,5 +142,5 @@ const R = {
|
|
|
141
142
|
}
|
|
142
143
|
});
|
|
143
144
|
export {
|
|
144
|
-
|
|
145
|
+
A as default
|
|
145
146
|
};
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { CSSProperties } from 'vue';
|
|
2
|
+
import { SliderProps } from 'naive-ui';
|
|
2
3
|
type PropsType = {
|
|
4
|
+
step?: SliderProps['step'];
|
|
3
5
|
style?: CSSProperties;
|
|
4
6
|
showInput?: boolean;
|
|
5
7
|
size?: 'small' | 'medium';
|
|
@@ -8,7 +10,6 @@ type PropsType = {
|
|
|
8
10
|
max?: number;
|
|
9
11
|
range?: boolean;
|
|
10
12
|
showExtremeValueText?: boolean;
|
|
11
|
-
precision?: number;
|
|
12
13
|
};
|
|
13
14
|
declare const _default: import('vue').DefineComponent<PropsType, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
14
15
|
"update:value": (...args: any[]) => void;
|
|
@@ -19,7 +20,7 @@ declare const _default: import('vue').DefineComponent<PropsType, {}, {}, {}, {},
|
|
|
19
20
|
max: number;
|
|
20
21
|
size: "small" | "medium";
|
|
21
22
|
min: number;
|
|
22
|
-
|
|
23
|
+
step: number | "mark";
|
|
23
24
|
range: boolean;
|
|
24
25
|
showInput: boolean;
|
|
25
26
|
showExtremeValueText: 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
|
|
4
|
+
const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-6c4c66a4"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
m as default
|
|
7
7
|
};
|
|
@@ -1,16 +1,17 @@
|
|
|
1
|
-
import { NSlider as
|
|
2
|
-
import { defineComponent as
|
|
3
|
-
import
|
|
4
|
-
const
|
|
1
|
+
import { NSlider as z, NInputNumber as w } from "naive-ui";
|
|
2
|
+
import { defineComponent as b, shallowRef as B, computed as f, watch as S, createElementBlock as u, openBlock as i, normalizeStyle as k, createElementVNode as o, createCommentVNode as r, createVNode as d, mergeProps as N, toDisplayString as c, createBlock as C, Fragment as E } from "vue";
|
|
3
|
+
import I from "../../hooks/useNaiveConfigProvideContext.mjs";
|
|
4
|
+
const T = { class: "slider-content" }, U = {
|
|
5
5
|
key: 0,
|
|
6
6
|
class: "extreme-value-text"
|
|
7
|
-
},
|
|
7
|
+
}, V = {
|
|
8
8
|
key: 0,
|
|
9
9
|
class: "slider-input"
|
|
10
|
-
},
|
|
10
|
+
}, F = /* @__PURE__ */ b({
|
|
11
11
|
name: "BodenSlider",
|
|
12
12
|
__name: "index",
|
|
13
13
|
props: {
|
|
14
|
+
step: { default: 1 },
|
|
14
15
|
style: { default: () => ({}) },
|
|
15
16
|
showInput: { type: Boolean, default: !1 },
|
|
16
17
|
size: { default: "medium" },
|
|
@@ -18,83 +19,86 @@ const I = { class: "slider-content" }, T = {
|
|
|
18
19
|
min: { default: 0 },
|
|
19
20
|
max: { default: 100 },
|
|
20
21
|
range: { type: Boolean, default: !1 },
|
|
21
|
-
showExtremeValueText: { type: Boolean, default: !1 }
|
|
22
|
-
precision: { default: 0 }
|
|
22
|
+
showExtremeValueText: { type: Boolean, default: !1 }
|
|
23
23
|
},
|
|
24
24
|
emits: ["update:value"],
|
|
25
|
-
setup(e, { emit:
|
|
26
|
-
const
|
|
25
|
+
setup(e, { emit: g }) {
|
|
26
|
+
const v = e, { mergedThemeOverridesRef: y } = I(), x = B({}), p = g, n = f({
|
|
27
27
|
get() {
|
|
28
|
-
return
|
|
28
|
+
return v.value;
|
|
29
29
|
},
|
|
30
|
-
set(
|
|
31
|
-
|
|
30
|
+
set(t) {
|
|
31
|
+
p("update:value", t);
|
|
32
32
|
}
|
|
33
|
+
}), s = f(() => {
|
|
34
|
+
const t = v.step;
|
|
35
|
+
return (String(t).split(".")[1] || "").length || 1;
|
|
33
36
|
});
|
|
34
|
-
return
|
|
35
|
-
() =>
|
|
36
|
-
(
|
|
37
|
-
|
|
38
|
-
"--n-slider-handler-border":
|
|
39
|
-
"--n-slider-input-width":
|
|
40
|
-
"--n-slider-range-input-line-color":
|
|
41
|
-
"--n-slider-extreme-value-text-color":
|
|
37
|
+
return S(
|
|
38
|
+
() => y?.value?.Slider,
|
|
39
|
+
(t) => {
|
|
40
|
+
t && (x.value = {
|
|
41
|
+
"--n-slider-handler-border": t.handleBorderStyle,
|
|
42
|
+
"--n-slider-input-width": t.inputWidth,
|
|
43
|
+
"--n-slider-range-input-line-color": t.rangeInputLineColor,
|
|
44
|
+
"--n-slider-extreme-value-text-color": t.extremeValueTextColor
|
|
42
45
|
});
|
|
43
46
|
},
|
|
44
47
|
{
|
|
45
48
|
immediate: !0
|
|
46
49
|
}
|
|
47
|
-
), (
|
|
48
|
-
const
|
|
50
|
+
), (t, l) => {
|
|
51
|
+
const h = z, m = w;
|
|
49
52
|
return i(), u("div", {
|
|
50
53
|
class: "boden-slider",
|
|
51
|
-
style:
|
|
54
|
+
style: k([x.value, e.style])
|
|
52
55
|
}, [
|
|
53
|
-
o("div",
|
|
54
|
-
|
|
56
|
+
o("div", T, [
|
|
57
|
+
d(h, N(t.$attrs, {
|
|
55
58
|
value: n.value,
|
|
56
|
-
"onUpdate:value":
|
|
59
|
+
"onUpdate:value": l[0] || (l[0] = (a) => n.value = a),
|
|
57
60
|
min: e.min,
|
|
58
61
|
max: e.max,
|
|
59
|
-
range: e.range
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
o("div", null,
|
|
62
|
+
range: e.range,
|
|
63
|
+
step: e.step
|
|
64
|
+
}), null, 16, ["value", "min", "max", "range", "step"]),
|
|
65
|
+
e.showExtremeValueText ? (i(), u("div", U, [
|
|
66
|
+
o("div", null, c(e.min), 1),
|
|
67
|
+
o("div", null, c(e.max), 1)
|
|
64
68
|
])) : r("", !0)
|
|
65
69
|
]),
|
|
66
|
-
e.showInput ? (i(), u("div",
|
|
70
|
+
e.showInput ? (i(), u("div", V, [
|
|
67
71
|
!e.range && typeof n.value == "number" ? (i(), C(m, {
|
|
68
72
|
key: 0,
|
|
69
73
|
"show-button": !1,
|
|
70
74
|
placeholder: "",
|
|
71
75
|
size: e.size,
|
|
72
76
|
value: n.value,
|
|
73
|
-
"onUpdate:value":
|
|
77
|
+
"onUpdate:value": l[1] || (l[1] = (a) => n.value = a),
|
|
74
78
|
min: e.min,
|
|
75
79
|
max: e.max,
|
|
76
|
-
precision:
|
|
77
|
-
}, null, 8, ["size", "value", "min", "max", "precision"])) : e.range && typeof n.value != "number" ? (i(), u(
|
|
78
|
-
|
|
80
|
+
precision: s.value
|
|
81
|
+
}, null, 8, ["size", "value", "min", "max", "precision"])) : e.range && typeof n.value != "number" ? (i(), u(E, { key: 1 }, [
|
|
82
|
+
d(m, {
|
|
79
83
|
"show-button": !1,
|
|
80
84
|
placeholder: "",
|
|
81
85
|
size: e.size,
|
|
82
86
|
value: n.value[0],
|
|
83
|
-
"onUpdate:value":
|
|
87
|
+
"onUpdate:value": l[2] || (l[2] = (a) => n.value[0] = a),
|
|
84
88
|
min: e.min,
|
|
85
89
|
max: e.max,
|
|
86
|
-
precision:
|
|
90
|
+
precision: s.value
|
|
87
91
|
}, null, 8, ["size", "value", "min", "max", "precision"]),
|
|
88
|
-
|
|
89
|
-
|
|
92
|
+
l[4] || (l[4] = o("div", { class: "line" }, null, -1)),
|
|
93
|
+
d(m, {
|
|
90
94
|
"show-button": !1,
|
|
91
95
|
placeholder: "",
|
|
92
96
|
size: e.size,
|
|
93
97
|
value: n.value[1],
|
|
94
|
-
"onUpdate:value":
|
|
98
|
+
"onUpdate:value": l[3] || (l[3] = (a) => n.value[1] = a),
|
|
95
99
|
min: e.min,
|
|
96
100
|
max: e.max,
|
|
97
|
-
precision:
|
|
101
|
+
precision: s.value
|
|
98
102
|
}, null, 8, ["size", "value", "min", "max", "precision"])
|
|
99
103
|
], 64)) : r("", !0)
|
|
100
104
|
])) : r("", !0)
|
|
@@ -103,5 +107,5 @@ const I = { class: "slider-content" }, T = {
|
|
|
103
107
|
}
|
|
104
108
|
});
|
|
105
109
|
export {
|
|
106
|
-
|
|
110
|
+
F as default
|
|
107
111
|
};
|
|
@@ -689,7 +689,7 @@ declare const _default: import('vue').DefineComponent<ExtractPropTypes<{
|
|
|
689
689
|
}, any>>>;
|
|
690
690
|
}>> & Readonly<{}>, {
|
|
691
691
|
readonly type: BodenTabsType;
|
|
692
|
-
readonly placement: "left" | "
|
|
692
|
+
readonly placement: "left" | "right" | "top" | "bottom";
|
|
693
693
|
readonly closable: boolean;
|
|
694
694
|
readonly size: "small" | "medium" | "large";
|
|
695
695
|
readonly trigger: "click" | "hover";
|