base6-ui 1.1.9 → 1.1.11
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/BaseInputNumber/index.vue.d.ts +3 -8
- package/dist/components/BaseSelect/index.vue.d.ts +5 -0
- package/dist/config/themes/common.d.ts +2 -1
- package/dist/index.css +1 -1
- package/dist/index.umd.js +1 -1
- package/es/components/BaseInputNumber/index.vue.d.ts +3 -8
- package/es/components/BaseInputNumber/index.vue.mjs +1 -1
- package/es/components/BaseInputNumber/index.vue2.mjs +44 -55
- package/es/components/BaseProductIntroduction/cssVar.mjs +13 -13
- package/es/components/BaseSelect/index.vue.d.ts +5 -0
- package/es/components/BaseSelect/index.vue.mjs +6 -57
- package/es/components/BaseSelect/index.vue2.mjs +65 -0
- package/es/config/themes/common.d.ts +2 -1
- package/es/config/themes/common.mjs +3 -2
- package/es/config/themes/components/button/dark.mjs +2 -1
- package/es/config/themes/components/input/dark.mjs +5 -4
- package/es/config/themes/components/menu/dark.mjs +1 -0
- package/es/config/themes/components/menu/light.mjs +1 -0
- package/es/config/themes/components/select/dark.mjs +1 -1
- package/es/config/themes/components/tag/dark.mjs +1 -0
- package/es/config/themes/components/tag/light.mjs +3 -2
- package/es/index.css +1 -1
- package/es/index.mjs +54 -55
- package/lib/components/BaseInputNumber/index.vue.d.ts +3 -8
- package/lib/components/BaseInputNumber/index.vue.js +1 -1
- package/lib/components/BaseInputNumber/index.vue2.js +1 -1
- package/lib/components/BaseProductIntroduction/cssVar.js +1 -1
- package/lib/components/BaseSelect/index.vue.d.ts +5 -0
- package/lib/components/BaseSelect/index.vue.js +1 -1
- package/lib/components/BaseSelect/index.vue2.js +1 -0
- package/lib/config/themes/common.d.ts +2 -1
- package/lib/config/themes/common.js +1 -1
- package/lib/config/themes/components/button/dark.js +1 -1
- package/lib/config/themes/components/input/dark.js +1 -1
- package/lib/config/themes/components/menu/dark.js +1 -1
- package/lib/config/themes/components/menu/light.js +1 -1
- package/lib/config/themes/components/select/dark.js +1 -1
- package/lib/config/themes/components/tag/dark.js +1 -1
- package/lib/config/themes/components/tag/light.js +1 -1
- package/lib/index.css +1 -1
- package/lib/index.js +1 -1
- package/package.json +1 -1
- package/es/components/BaseSelect/index.vue3.mjs +0 -5
- package/lib/components/BaseSelect/index.vue3.js +0 -1
|
@@ -7,9 +7,8 @@ type PropsType = {
|
|
|
7
7
|
minusIcon?: string;
|
|
8
8
|
controlsInner?: boolean;
|
|
9
9
|
disabled?: boolean;
|
|
10
|
-
min?: number;
|
|
11
|
-
max?: number;
|
|
12
|
-
value: number;
|
|
10
|
+
min?: string | number;
|
|
11
|
+
max?: string | number;
|
|
13
12
|
size?: 'small' | 'medium' | 'large';
|
|
14
13
|
};
|
|
15
14
|
declare function __VLS_template(): {
|
|
@@ -2685,11 +2684,7 @@ declare function __VLS_template(): {
|
|
|
2685
2684
|
rootEl: HTMLDivElement;
|
|
2686
2685
|
};
|
|
2687
2686
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
2688
|
-
declare const __VLS_component: import('vue').DefineComponent<PropsType, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
2689
|
-
"update:value": (...args: any[]) => void;
|
|
2690
|
-
}, string, import('vue').PublicProps, Readonly<PropsType> & Readonly<{
|
|
2691
|
-
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
2692
|
-
}>, {
|
|
2687
|
+
declare const __VLS_component: import('vue').DefineComponent<PropsType, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<PropsType> & Readonly<{}>, {
|
|
2693
2688
|
size: "small" | "medium" | "large";
|
|
2694
2689
|
prefixIcon: string;
|
|
2695
2690
|
suffixIcon: 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-b283fef6"]]);
|
|
5
5
|
export {
|
|
6
6
|
m as default
|
|
7
7
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { NButton as
|
|
2
|
-
import { defineComponent as
|
|
3
|
-
import
|
|
4
|
-
const
|
|
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
|
+
import H from "../../hooks/useNaiveConfigProvideContext.mjs";
|
|
4
|
+
const L = {
|
|
5
5
|
key: 1,
|
|
6
6
|
class: "inner-controls"
|
|
7
|
-
},
|
|
7
|
+
}, T = /* @__PURE__ */ S({
|
|
8
8
|
name: "BaseInputNumber",
|
|
9
9
|
__name: "index",
|
|
10
10
|
props: {
|
|
@@ -17,27 +17,18 @@ const T = {
|
|
|
17
17
|
disabled: { type: Boolean },
|
|
18
18
|
min: {},
|
|
19
19
|
max: {},
|
|
20
|
-
value: {},
|
|
21
20
|
size: { default: "medium" }
|
|
22
21
|
},
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
},
|
|
29
|
-
set(e) {
|
|
30
|
-
w("update:value", e);
|
|
31
|
-
}
|
|
32
|
-
}), l = b(() => m.disabled || !o.value?.addable), s = b(() => m.disabled || !o.value?.minusable), y = () => {
|
|
33
|
-
!o.value || l.value || o.value.handleAddClick();
|
|
34
|
-
}, k = () => {
|
|
35
|
-
!o.value || s.value || o.value.handleMinusClick();
|
|
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();
|
|
36
27
|
};
|
|
37
|
-
return
|
|
38
|
-
() =>
|
|
28
|
+
return R(
|
|
29
|
+
() => I?.value?.InputNumber,
|
|
39
30
|
(e) => {
|
|
40
|
-
|
|
31
|
+
C.value = {
|
|
41
32
|
"--n-input-number-controls-color": e.controlsFontColor,
|
|
42
33
|
"--n-input-number-controls-color-disabled": e.controlFontColorDisabled,
|
|
43
34
|
"--n-input-number-inner-controls-width-large": e.innerControlsLargeWidth,
|
|
@@ -51,7 +42,7 @@ const T = {
|
|
|
51
42
|
"--n-input-number-inner-controls-border-radius-large": e.innerControlsLargeBorderRadius,
|
|
52
43
|
"--n-input-number-inner-controls-border-radius-medium": e.innerControlsMediumBorderRadius,
|
|
53
44
|
"--n-input-number-inner-controls-border-radius-small": e.innerControlsSmallBorderRadius
|
|
54
|
-
},
|
|
45
|
+
}, m.value = {
|
|
55
46
|
"--n-border": e.outerControlsBorderStyle,
|
|
56
47
|
"--n-border-disabled": e.outerControlsBorderStyleDisabled,
|
|
57
48
|
"--n-text-color": e.controlsFontColor,
|
|
@@ -64,55 +55,53 @@ const T = {
|
|
|
64
55
|
{
|
|
65
56
|
immediate: !0
|
|
66
57
|
}
|
|
67
|
-
), (e,
|
|
68
|
-
const i =
|
|
69
|
-
return t(),
|
|
70
|
-
class:
|
|
71
|
-
style:
|
|
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])
|
|
72
63
|
}, [
|
|
73
|
-
n.controlsInner ? a("", !0) : (t(), d(
|
|
64
|
+
n.controlsInner ? a("", !0) : (t(), d(y, f({
|
|
74
65
|
key: 0,
|
|
75
|
-
style:
|
|
76
|
-
ghost: !
|
|
66
|
+
style: m.value,
|
|
67
|
+
ghost: !l.value,
|
|
77
68
|
class: "outer-controls minus-btn"
|
|
78
69
|
}, e.$attrs, {
|
|
79
|
-
disabled:
|
|
70
|
+
disabled: l.value,
|
|
80
71
|
size: n.size,
|
|
81
|
-
onClick:
|
|
72
|
+
onClick: g
|
|
82
73
|
}), {
|
|
83
74
|
default: u(() => [
|
|
84
75
|
r(i, { icon: "operate-minus" })
|
|
85
76
|
]),
|
|
86
77
|
_: 1
|
|
87
78
|
}, 16, ["style", "ghost", "disabled", "size"])),
|
|
88
|
-
r(
|
|
79
|
+
r(z, f({ class: "flex-1" }, e.$attrs, {
|
|
89
80
|
ref_key: "inputNumberRef",
|
|
90
81
|
ref: o,
|
|
91
82
|
"show-button": !1,
|
|
92
83
|
size: n.size,
|
|
93
84
|
disabled: n.disabled,
|
|
94
85
|
min: n.min,
|
|
95
|
-
max: n.max
|
|
96
|
-
|
|
97
|
-
"onUpdate:value": p[0] || (p[0] = (R) => h.value = R)
|
|
98
|
-
}), E({
|
|
86
|
+
max: n.max
|
|
87
|
+
}), F({
|
|
99
88
|
suffix: u(() => [
|
|
100
|
-
e.$slots.suffix || n.suffixIcon ? (t(),
|
|
101
|
-
e.$slots.suffix ?
|
|
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, {
|
|
102
91
|
key: 1,
|
|
103
92
|
icon: n.suffixIcon
|
|
104
93
|
}, null, 8, ["icon"]))
|
|
105
94
|
], 64)) : a("", !0),
|
|
106
|
-
n.controlsInner ? (t(),
|
|
107
|
-
|
|
108
|
-
class:
|
|
109
|
-
onClick:
|
|
95
|
+
n.controlsInner ? (t(), c("div", L, [
|
|
96
|
+
B("div", {
|
|
97
|
+
class: b(["add", [s.value ? "is-disabled" : ""]]),
|
|
98
|
+
onClick: h
|
|
110
99
|
}, [
|
|
111
100
|
r(i, { icon: "arrow-top" })
|
|
112
101
|
], 2),
|
|
113
|
-
|
|
114
|
-
class:
|
|
115
|
-
onClick:
|
|
102
|
+
B("div", {
|
|
103
|
+
class: b(["minus", [l.value ? "is-disabled" : ""]]),
|
|
104
|
+
onClick: g
|
|
116
105
|
}, [
|
|
117
106
|
r(i, { icon: "arrow-down" })
|
|
118
107
|
], 2)
|
|
@@ -123,23 +112,23 @@ const T = {
|
|
|
123
112
|
e.$slots.prefix || n.prefixIcon ? {
|
|
124
113
|
name: "prefix",
|
|
125
114
|
fn: u(() => [
|
|
126
|
-
e.$slots.prefix ?
|
|
115
|
+
e.$slots.prefix ? x(e.$slots, "prefix", { key: 0 }, void 0, !0) : (t(), d(i, {
|
|
127
116
|
key: 1,
|
|
128
117
|
icon: n.prefixIcon
|
|
129
118
|
}, null, 8, ["icon"]))
|
|
130
119
|
]),
|
|
131
120
|
key: "0"
|
|
132
121
|
} : void 0
|
|
133
|
-
]), 1040, ["size", "disabled", "min", "max"
|
|
134
|
-
n.controlsInner ? a("", !0) : (t(), d(
|
|
122
|
+
]), 1040, ["size", "disabled", "min", "max"]),
|
|
123
|
+
n.controlsInner ? a("", !0) : (t(), d(y, f({
|
|
135
124
|
key: 1,
|
|
136
125
|
size: n.size,
|
|
137
|
-
ghost: !
|
|
138
|
-
style:
|
|
126
|
+
ghost: !s.value,
|
|
127
|
+
style: m.value,
|
|
139
128
|
class: "outer-controls add-btn"
|
|
140
129
|
}, e.$attrs, {
|
|
141
|
-
disabled:
|
|
142
|
-
onClick:
|
|
130
|
+
disabled: s.value,
|
|
131
|
+
onClick: h
|
|
143
132
|
}), {
|
|
144
133
|
default: u(() => [
|
|
145
134
|
r(i, { icon: "operate-add" })
|
|
@@ -151,5 +140,5 @@ const T = {
|
|
|
151
140
|
}
|
|
152
141
|
});
|
|
153
142
|
export {
|
|
154
|
-
|
|
143
|
+
T as default
|
|
155
144
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import i from "../../config/themes/color/dark.mjs";
|
|
2
|
+
import o from "../../config/themes/color/light.mjs";
|
|
3
3
|
import "../../config/themes/components/alert/light.mjs";
|
|
4
4
|
import "../../config/themes/components/button/light.mjs";
|
|
5
5
|
import "../../config/themes/components/card/light.mjs";
|
|
@@ -47,34 +47,34 @@ import "../../config/themes/components/baseComponent/dark.mjs";
|
|
|
47
47
|
import "../../config/themes/components/charts/dark.mjs";
|
|
48
48
|
import "../../config/themes/components/charts/light.mjs";
|
|
49
49
|
const t = {
|
|
50
|
-
"light-1": "
|
|
51
|
-
"light-3": "
|
|
50
|
+
"light-1": o["color-gray-10"],
|
|
51
|
+
"light-3": o["color-gray-6"],
|
|
52
52
|
"dark-1": "#FFFFFF",
|
|
53
53
|
"dark-3": "rgba(255,255,255,0.4)"
|
|
54
54
|
}, m = {
|
|
55
|
-
"light-1": "
|
|
55
|
+
"light-1": o["color-gray-2"],
|
|
56
56
|
"dark-1": "rgba(255,255,255,0.08)"
|
|
57
57
|
}, p = {
|
|
58
58
|
"light-2": "#FFFFFF",
|
|
59
|
-
"dark-2": "#111113
|
|
59
|
+
"dark-2": "#111113"
|
|
60
60
|
}, l = {
|
|
61
|
-
"light-1": "
|
|
62
|
-
"dark-1": "
|
|
63
|
-
},
|
|
61
|
+
"light-1": o["color-gray-3"],
|
|
62
|
+
"dark-1": i["color-gray-3"]
|
|
63
|
+
}, or = (r) => ({
|
|
64
64
|
fontSizeMedium: "12px",
|
|
65
65
|
titleFontSizeMedium: "14px",
|
|
66
66
|
borderColor: l[r ? "dark-1" : "light-1"],
|
|
67
67
|
color: m[r ? "dark-1" : "light-1"],
|
|
68
68
|
textColor: t[r ? "dark-3" : "light-3"],
|
|
69
69
|
titleTextColor: t[r ? "dark-1" : "light-1"]
|
|
70
|
-
}),
|
|
70
|
+
}), tr = (r) => ({
|
|
71
71
|
"--base-title-color": t[r ? "dark-1" : "light-1"],
|
|
72
72
|
"--base-text-color": t[r ? "dark-3" : "light-3"],
|
|
73
73
|
"--base-color": p[r ? "dark-2" : "light-2"],
|
|
74
|
-
"--base-card-border-hover-color": r ?
|
|
74
|
+
"--base-card-border-hover-color": r ? i["color-primary-6"] : o["color-primary-6"],
|
|
75
75
|
height: "620px"
|
|
76
76
|
});
|
|
77
77
|
export {
|
|
78
|
-
|
|
79
|
-
|
|
78
|
+
or as createCardThemeOverrides,
|
|
79
|
+
tr as createPopoverCssVar
|
|
80
80
|
};
|
|
@@ -1,5 +1,8 @@
|
|
|
1
|
+
import { SelectProps } from 'naive-ui';
|
|
1
2
|
type PropsType = {
|
|
3
|
+
disabled?: SelectProps['disabled'];
|
|
2
4
|
multiple?: boolean;
|
|
5
|
+
size?: SelectProps['size'];
|
|
3
6
|
};
|
|
4
7
|
declare function __VLS_template(): {
|
|
5
8
|
attrs: Partial<{}>;
|
|
@@ -9,6 +12,8 @@ declare function __VLS_template(): {
|
|
|
9
12
|
};
|
|
10
13
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
11
14
|
declare const __VLS_component: import('vue').DefineComponent<PropsType, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<PropsType> & Readonly<{}>, {
|
|
15
|
+
disabled: boolean;
|
|
16
|
+
size: import('naive-ui/es/select/src/interface').Size;
|
|
12
17
|
multiple: boolean;
|
|
13
18
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
14
19
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
@@ -1,59 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
props: {
|
|
7
|
-
multiple: { type: Boolean, default: !1 }
|
|
8
|
-
},
|
|
9
|
-
setup(r) {
|
|
10
|
-
const o = (e, t) => [
|
|
11
|
-
n(
|
|
12
|
-
u,
|
|
13
|
-
{
|
|
14
|
-
checked: t,
|
|
15
|
-
disabled: e.disabled
|
|
16
|
-
},
|
|
17
|
-
{
|
|
18
|
-
default: () => e.label
|
|
19
|
-
}
|
|
20
|
-
)
|
|
21
|
-
], s = ({ option: e, handleClose: t }) => n(
|
|
22
|
-
c,
|
|
23
|
-
{
|
|
24
|
-
type: "default",
|
|
25
|
-
closable: !0,
|
|
26
|
-
bordered: !1,
|
|
27
|
-
onMousedown: (l) => {
|
|
28
|
-
l.preventDefault();
|
|
29
|
-
},
|
|
30
|
-
onClose: (l) => {
|
|
31
|
-
l.stopPropagation(), t();
|
|
32
|
-
}
|
|
33
|
-
},
|
|
34
|
-
{ default: () => e.label }
|
|
35
|
-
);
|
|
36
|
-
return (e, t) => {
|
|
37
|
-
const l = d;
|
|
38
|
-
return p(), m(l, f({
|
|
39
|
-
class: "base-select",
|
|
40
|
-
renderTag: r.multiple ? s : void 0,
|
|
41
|
-
"render-label": r.multiple ? o : void 0,
|
|
42
|
-
multiple: r.multiple,
|
|
43
|
-
"menu-props": {
|
|
44
|
-
class: "base-select-menu"
|
|
45
|
-
}
|
|
46
|
-
}, e.$attrs), b({ _: 2 }, [
|
|
47
|
-
g(e.$slots, (C, a) => ({
|
|
48
|
-
name: a,
|
|
49
|
-
fn: h(() => [
|
|
50
|
-
B(e.$slots, a)
|
|
51
|
-
])
|
|
52
|
-
}))
|
|
53
|
-
]), 1040, ["renderTag", "render-label", "multiple"]);
|
|
54
|
-
};
|
|
55
|
-
}
|
|
56
|
-
});
|
|
1
|
+
import o from "./index.vue2.mjs";
|
|
2
|
+
/* empty css */
|
|
3
|
+
/* empty css */
|
|
4
|
+
import t from "../../_virtual/_plugin-vue_export-helper.mjs";
|
|
5
|
+
const f = /* @__PURE__ */ t(o, [["__scopeId", "data-v-066f4ee0"]]);
|
|
57
6
|
export {
|
|
58
|
-
|
|
7
|
+
f as default
|
|
59
8
|
};
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { NSelect as o, NCheckbox as u, NTag as c } from "naive-ui";
|
|
2
|
+
import { defineComponent as m, createBlock as b, openBlock as f, mergeProps as p, createSlots as g, renderList as z, withCtx as h, renderSlot as v, h as r } from "vue";
|
|
3
|
+
const T = /* @__PURE__ */ m({
|
|
4
|
+
name: "BaseSelect",
|
|
5
|
+
__name: "index",
|
|
6
|
+
props: {
|
|
7
|
+
disabled: { default: !1 },
|
|
8
|
+
multiple: { type: Boolean, default: !1 },
|
|
9
|
+
size: { default: "medium" }
|
|
10
|
+
},
|
|
11
|
+
setup(l) {
|
|
12
|
+
const s = l, n = (e, a) => [
|
|
13
|
+
r(
|
|
14
|
+
u,
|
|
15
|
+
{
|
|
16
|
+
checked: a,
|
|
17
|
+
disabled: e.disabled
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
default: () => e.label
|
|
21
|
+
}
|
|
22
|
+
)
|
|
23
|
+
], i = ({ option: e, handleClose: a }) => r(
|
|
24
|
+
c,
|
|
25
|
+
{
|
|
26
|
+
type: "default",
|
|
27
|
+
closable: !0,
|
|
28
|
+
bordered: !1,
|
|
29
|
+
disabled: s.disabled,
|
|
30
|
+
size: s.size,
|
|
31
|
+
onMousedown: (t) => {
|
|
32
|
+
t.preventDefault();
|
|
33
|
+
},
|
|
34
|
+
onClose: (t) => {
|
|
35
|
+
t.stopPropagation(), a();
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
{ default: () => e.label }
|
|
39
|
+
);
|
|
40
|
+
return (e, a) => {
|
|
41
|
+
const t = o;
|
|
42
|
+
return f(), b(t, p({
|
|
43
|
+
class: "base-select",
|
|
44
|
+
disabled: l.disabled,
|
|
45
|
+
renderTag: l.multiple ? i : void 0,
|
|
46
|
+
"render-label": l.multiple ? n : void 0,
|
|
47
|
+
multiple: l.multiple,
|
|
48
|
+
size: l.size,
|
|
49
|
+
"menu-props": {
|
|
50
|
+
class: "base-select-menu"
|
|
51
|
+
}
|
|
52
|
+
}, e.$attrs), g({ _: 2 }, [
|
|
53
|
+
z(e.$slots, (B, d) => ({
|
|
54
|
+
name: d,
|
|
55
|
+
fn: h(() => [
|
|
56
|
+
v(e.$slots, d, {}, void 0, !0)
|
|
57
|
+
])
|
|
58
|
+
}))
|
|
59
|
+
]), 1040, ["disabled", "renderTag", "render-label", "multiple", "size"]);
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
});
|
|
63
|
+
export {
|
|
64
|
+
T as default
|
|
65
|
+
};
|
|
@@ -24,8 +24,9 @@ export declare const commonBase: {
|
|
|
24
24
|
railWidthMedium: string;
|
|
25
25
|
railWidthLarge: string;
|
|
26
26
|
tagBorderRadius: string;
|
|
27
|
-
tagHeightMedium: string;
|
|
28
27
|
tagHeightLarge: string;
|
|
28
|
+
tagHeightMedium: string;
|
|
29
|
+
tagHeightSmall: string;
|
|
29
30
|
paddingBase: string;
|
|
30
31
|
iconSizeBase: string;
|
|
31
32
|
paddingMedium: string;
|
|
@@ -18,8 +18,9 @@ const a = {
|
|
|
18
18
|
railWidthSmall: "28px",
|
|
19
19
|
// tag
|
|
20
20
|
tagBorderRadius: "6px",
|
|
21
|
-
|
|
22
|
-
|
|
21
|
+
tagHeightLarge: "30px",
|
|
22
|
+
tagHeightMedium: "26px",
|
|
23
|
+
tagHeightSmall: "22px",
|
|
23
24
|
paddingBase: "8px 12px",
|
|
24
25
|
iconSizeBase: "20px",
|
|
25
26
|
paddingMedium: "0 10px",
|
|
@@ -4,6 +4,7 @@ import { commonBase as e } from "../../common.mjs";
|
|
|
4
4
|
import { ButtonThemeCommon as l } from "./common.mjs";
|
|
5
5
|
const d = {
|
|
6
6
|
...l,
|
|
7
|
+
opacityDisabled: "0.4",
|
|
7
8
|
heightMedium: e.heightMedium,
|
|
8
9
|
heightSmall: e.heightSmall,
|
|
9
10
|
border: `1px solid ${r["fill-color-2"]}`,
|
|
@@ -12,7 +13,7 @@ const d = {
|
|
|
12
13
|
borderSuccess: `1px solid ${o["color-green-6"]}`,
|
|
13
14
|
borderWarning: `1px solid ${o["color-origin-6"]}`,
|
|
14
15
|
borderDisabled: `1px solid ${r["color-default-disabled"]}`,
|
|
15
|
-
borderDisabledError: `1px solid ${
|
|
16
|
+
borderDisabledError: `1px solid ${r["color-error-disabled"]}`,
|
|
16
17
|
borderDisabledPrimary: `1px solid ${r["color-primary-disabled"]}`,
|
|
17
18
|
borderDisabledSuccess: `1px solid ${r["color-success-disabled"]}`,
|
|
18
19
|
borderDisabledWarning: `1px solid ${r["color-warning-disabled"]}`,
|
|
@@ -1,23 +1,24 @@
|
|
|
1
1
|
import o from "../../color/dark.mjs";
|
|
2
2
|
import r from "../../token/dark.mjs";
|
|
3
3
|
import { InputThemeCommon as l } from "./common.mjs";
|
|
4
|
-
const
|
|
4
|
+
const a = {
|
|
5
5
|
...l,
|
|
6
6
|
border: `1px solid ${o["color-gray-4"]}`,
|
|
7
7
|
borderDisabled: "1px solid #0000",
|
|
8
8
|
borderError: `1px solid ${o["color-red-6"]}`,
|
|
9
9
|
borderFocus: `1.5px solid ${o["color-primary-6"]}`,
|
|
10
10
|
borderHover: `1px solid ${o["color-primary-5"]}`,
|
|
11
|
+
color: r["bg-color-3"],
|
|
11
12
|
colorDisabled: r["fill-color-1"],
|
|
12
13
|
colorFocus: r["bg-color-2"],
|
|
13
14
|
groupLabelBorder: `1px solid ${o["color-gray-4"]}`,
|
|
14
|
-
groupLabelColor:
|
|
15
|
-
groupLabelTextColor:
|
|
15
|
+
groupLabelColor: r["bg-color-3"],
|
|
16
|
+
groupLabelTextColor: r["color-text-1"],
|
|
16
17
|
placeholderColor: o["color-gray-6"],
|
|
17
18
|
placeholderColorDisabled: r["color-text-4"],
|
|
18
19
|
textColor: o["color-gray-10"],
|
|
19
20
|
textColorDisabled: r["color-text-4"]
|
|
20
21
|
};
|
|
21
22
|
export {
|
|
22
|
-
|
|
23
|
+
a as InputThemeDark
|
|
23
24
|
};
|
|
@@ -9,6 +9,7 @@ const l = {
|
|
|
9
9
|
itemColorActive: o["bg-color-2"],
|
|
10
10
|
itemColorActiveHover: o["bg-color-2"],
|
|
11
11
|
itemColorActiveCollapsed: o["fill-color-5"],
|
|
12
|
+
itemIconColor: o["color-text-2"],
|
|
12
13
|
itemIconColorCollapsed: o["color-text-2"],
|
|
13
14
|
itemIconColorActive: o["color-text-1"],
|
|
14
15
|
itemIconColorHover: o["color-text-1"],
|
|
@@ -9,6 +9,7 @@ const e = {
|
|
|
9
9
|
itemColorActiveHover: o["color-gray-1"],
|
|
10
10
|
itemColorActiveCollapsed: o["color-gray-1"],
|
|
11
11
|
itemColorHover: "#0000",
|
|
12
|
+
itemIconColor: o["color-gray-8"],
|
|
12
13
|
itemIconColorCollapsed: o["color-gray-8"],
|
|
13
14
|
itemIconColorActive: o["color-gray-10"],
|
|
14
15
|
itemIconColorHover: o["color-gray-10"],
|
|
@@ -6,7 +6,7 @@ const i = {
|
|
|
6
6
|
InternalSelection: {
|
|
7
7
|
arrowColor: o["color-text-1"],
|
|
8
8
|
arrowColorDisabled: o["color-text-4"],
|
|
9
|
-
border: `1px solid ${
|
|
9
|
+
border: `1px solid ${r["color-gray-4"]}`,
|
|
10
10
|
borderActive: `1.5px solid ${r["color-primary-6"]}`,
|
|
11
11
|
borderHover: `1px solid ${r["color-primary-5"]}`,
|
|
12
12
|
borderFocus: `1px solid ${r["color-primary-5"]}`,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import r from "../../color/light.mjs";
|
|
2
2
|
import { commonBase as o } from "../../common.mjs";
|
|
3
|
-
const
|
|
3
|
+
const i = {
|
|
4
4
|
border: `1px solid ${r["color-gray-8"]}`,
|
|
5
5
|
borderError: `1px solid ${r["color-red-6"]}`,
|
|
6
6
|
borderPrimary: `1px solid ${r["color-primary-6"]}`,
|
|
@@ -18,6 +18,7 @@ const l = {
|
|
|
18
18
|
colorBorderedSuccess: "#0000",
|
|
19
19
|
colorBorderedWarning: "#0000",
|
|
20
20
|
heightMedium: o.tagHeightMedium,
|
|
21
|
+
heightSmall: o.tagHeightSmall,
|
|
21
22
|
heightLarge: o.tagHeightLarge,
|
|
22
23
|
fontSizeMedium: o.fontSizeSmall,
|
|
23
24
|
fontSizeLarge: o.fontSizeSmall,
|
|
@@ -29,5 +30,5 @@ const l = {
|
|
|
29
30
|
textColorWarning: r["color-origin-6"]
|
|
30
31
|
};
|
|
31
32
|
export {
|
|
32
|
-
|
|
33
|
+
i as TagThemeLight
|
|
33
34
|
};
|