@owocow/saber-ui 0.1.13 → 0.1.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/SaberAppLayout.vue_vue_type_script_setup_true_lang-Hr4TdNqR.js +487 -0
- package/dist/{SaberDictSelect.vue_vue_type_script_setup_true_lang-B8PTKNKX.js → SaberDictSelect.vue_vue_type_script_setup_true_lang-BKdOdlFX.js} +1 -1
- package/dist/SaberDistrictSelect.vue_vue_type_script_setup_true_lang-jkl2AOay.js +272 -0
- package/dist/{SaberInfo.vue_vue_type_script_setup_true_lang-B3W5VsGR.js → SaberInfo.vue_vue_type_script_setup_true_lang-B_1ugpqI.js} +1 -1
- package/dist/SaberPopSelect.vue_vue_type_script_setup_true_lang-eH8jkkzK.js +162 -0
- package/dist/SaberSwitchBar.vue_vue_type_script_setup_true_lang-CIbFBx5r.js +47 -0
- package/dist/components/SaberAppLayout.mjs +1 -1
- package/dist/components/SaberInfo.mjs +1 -1
- package/dist/components/SaberPagination.vue.d.ts +48 -0
- package/dist/components/SaberSwitchBar.mjs +1 -1
- package/dist/components/layout/SaberAppLayout.types.d.ts +8 -0
- package/dist/components/layout/SaberAppLayout.vue.d.ts +5 -0
- package/dist/composables/index.d.ts +1 -1
- package/dist/composables/use-page-header.d.ts +3 -1
- package/dist/composables/use-page-header.mjs +27 -15
- package/dist/composables/use-table.d.ts +1 -0
- package/dist/composables/use-table.mjs +45 -42
- package/dist/composables.mjs +22 -20
- package/dist/control-size.d.ts +33 -0
- package/dist/forms/components/SaberFilterBar.vue.d.ts +3 -0
- package/dist/forms/components/SaberFormModal.vue.d.ts +2 -0
- package/dist/forms/components/fields/SaberDistrictSelect.vue.d.ts +5 -0
- package/dist/forms/components/fields/SaberInput.vue.d.ts +5 -0
- package/dist/forms/components/fields/SaberInputNumber.vue.d.ts +10 -2
- package/dist/forms/components/fields/SaberPopSelect.vue.d.ts +4 -1
- package/dist/forms/components/fields/SaberSelect.vue.d.ts +10 -2
- package/dist/forms/dict-select.mjs +1 -1
- package/dist/forms/district-select.mjs +1 -1
- package/dist/forms/index.d.ts +1 -0
- package/dist/forms/pop-select.mjs +1 -1
- package/dist/forms.mjs +4 -4
- package/dist/index.d.ts +4 -1
- package/dist/index.mjs +175 -98
- package/dist/plugin-Cg7MKH3t.js +438 -0
- package/package.json +1 -1
- package/dist/SaberAppLayout.vue_vue_type_script_setup_true_lang-R7F5K7kj.js +0 -418
- package/dist/SaberDistrictSelect.vue_vue_type_script_setup_true_lang-BX8nLC35.js +0 -257
- package/dist/SaberPopSelect.vue_vue_type_script_setup_true_lang-BcS27NXI.js +0 -125
- package/dist/SaberSwitchBar.vue_vue_type_script_setup_true_lang-CDx3Dcas.js +0 -47
- package/dist/plugin-Dr3z0YFg.js +0 -396
|
@@ -1,24 +1,36 @@
|
|
|
1
|
-
import { reactive as
|
|
2
|
-
const
|
|
1
|
+
import { reactive as E, provide as r, ref as t, inject as i, watchEffect as d, toValue as a, onBeforeUnmount as _ } from "vue";
|
|
2
|
+
const u = Symbol.for("@owocow/saber-ui:page-header-state"), c = Symbol.for(
|
|
3
3
|
"@owocow/saber-ui:page-header-suffix-target"
|
|
4
|
+
), s = Symbol.for(
|
|
5
|
+
"@owocow/saber-ui:page-header-description-target"
|
|
6
|
+
), f = Symbol.for(
|
|
7
|
+
"@owocow/saber-ui:page-header-title-suffix-target"
|
|
4
8
|
);
|
|
5
|
-
function
|
|
6
|
-
const
|
|
7
|
-
return
|
|
9
|
+
function g(o, e = t(null), l = t(null)) {
|
|
10
|
+
const n = E({ title: void 0, description: void 0 });
|
|
11
|
+
return r(u, n), r(c, o), r(s, e), r(f, l), n;
|
|
8
12
|
}
|
|
9
|
-
function
|
|
10
|
-
const e =
|
|
11
|
-
e && (
|
|
12
|
-
e.title =
|
|
13
|
-
}),
|
|
13
|
+
function A(o) {
|
|
14
|
+
const e = i(u, null);
|
|
15
|
+
e && (d(() => {
|
|
16
|
+
e.title = a(o.title), e.description = a(o.description);
|
|
17
|
+
}), _(() => {
|
|
14
18
|
e.title = void 0, e.description = void 0;
|
|
15
19
|
}));
|
|
16
20
|
}
|
|
17
|
-
function
|
|
18
|
-
return
|
|
21
|
+
function T() {
|
|
22
|
+
return i(c, t(null));
|
|
23
|
+
}
|
|
24
|
+
function P() {
|
|
25
|
+
return i(s, t(null));
|
|
26
|
+
}
|
|
27
|
+
function S() {
|
|
28
|
+
return i(f, t(null));
|
|
19
29
|
}
|
|
20
30
|
export {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
31
|
+
g as providePageHeader,
|
|
32
|
+
A as usePageHeader,
|
|
33
|
+
P as usePageHeaderDescription,
|
|
34
|
+
T as usePageHeaderSuffix,
|
|
35
|
+
S as usePageHeaderTitleSuffix
|
|
24
36
|
};
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { reactive as z, ref as
|
|
2
|
-
import { klona as
|
|
3
|
-
import { useBoolean as
|
|
4
|
-
import { useLoading as
|
|
5
|
-
function
|
|
6
|
-
const
|
|
1
|
+
import { reactive as z, ref as C, watch as h, computed as b } from "vue";
|
|
2
|
+
import { klona as w } from "klona/json";
|
|
3
|
+
import { useBoolean as D } from "./use-boolean.mjs";
|
|
4
|
+
import { useLoading as I } from "./use-loading.mjs";
|
|
5
|
+
function W(n) {
|
|
6
|
+
const a = n == null ? void 0 : n.data;
|
|
7
7
|
return {
|
|
8
|
-
rows: Array.isArray(
|
|
9
|
-
total: Number((
|
|
8
|
+
rows: Array.isArray(a == null ? void 0 : a.rows) ? a.rows : [],
|
|
9
|
+
total: Number((a == null ? void 0 : a.total) ?? 0)
|
|
10
10
|
};
|
|
11
11
|
}
|
|
12
|
-
function
|
|
13
|
-
const { loading:
|
|
14
|
-
pageSizes:
|
|
15
|
-
pageSize:
|
|
12
|
+
function J(n) {
|
|
13
|
+
const { loading: a, startLoading: g, endLoading: d } = I(), { bool: y, setBool: j } = D(), { apiFn: O, apiParams: f, transformer: p, responseAdapter: P, immediate: k = !0, paginConfig: v } = n, i = z(w({ ...f })), S = C([]), { pageSizes: x, pageSize: A, disabled: E = !1 } = v || {}, t = z({
|
|
14
|
+
pageSizes: x || [10, 20, 50, 100],
|
|
15
|
+
pageSize: A || 10,
|
|
16
16
|
currentPage: 1,
|
|
17
17
|
total: 0
|
|
18
18
|
});
|
|
@@ -20,68 +20,71 @@ function H(n) {
|
|
|
20
20
|
h(
|
|
21
21
|
() => t.currentPage,
|
|
22
22
|
() => {
|
|
23
|
-
u ||
|
|
23
|
+
u || s();
|
|
24
24
|
},
|
|
25
25
|
{ flush: "sync" }
|
|
26
26
|
), h(
|
|
27
27
|
() => t.pageSize,
|
|
28
28
|
() => {
|
|
29
|
-
u = !0, t.currentPage = 1, u = !1,
|
|
29
|
+
u = !0, t.currentPage = 1, u = !1, s();
|
|
30
30
|
},
|
|
31
31
|
{ flush: "sync" }
|
|
32
32
|
);
|
|
33
|
-
function
|
|
33
|
+
function L(e) {
|
|
34
34
|
const o = t.currentPage || 1, c = t.pageSize > 0 ? t.pageSize : 10;
|
|
35
|
-
return
|
|
35
|
+
return e.map((m, r) => ({
|
|
36
36
|
...m,
|
|
37
37
|
_index: (o - 1) * c + r + 1
|
|
38
38
|
}));
|
|
39
39
|
}
|
|
40
|
-
async function
|
|
41
|
-
var
|
|
42
|
-
|
|
40
|
+
async function s() {
|
|
41
|
+
var e;
|
|
42
|
+
g();
|
|
43
43
|
try {
|
|
44
|
-
const o =
|
|
45
|
-
return t.total = m.total, S.value = l,
|
|
44
|
+
const o = B(i), c = await O(o), m = P ? P(c) : W(c), r = L(m.rows), l = p ? p(r) : r;
|
|
45
|
+
return t.total = m.total, S.value = l, j(l.length === 0), await ((e = n.onFetched) == null ? void 0 : e.call(n, l)), l;
|
|
46
46
|
} finally {
|
|
47
|
-
|
|
47
|
+
d();
|
|
48
48
|
}
|
|
49
49
|
}
|
|
50
|
-
function
|
|
51
|
-
return
|
|
50
|
+
function T() {
|
|
51
|
+
return E ? {} : {
|
|
52
52
|
pageNum: t.currentPage,
|
|
53
53
|
pageSize: t.pageSize
|
|
54
54
|
};
|
|
55
55
|
}
|
|
56
|
-
function
|
|
57
|
-
const o = {}, c = { ...
|
|
56
|
+
function B(e) {
|
|
57
|
+
const o = {}, c = { ...T(), ...e };
|
|
58
58
|
return Object.entries(c).forEach(([m, r]) => {
|
|
59
59
|
r != null && r !== "" && (o[m] = r);
|
|
60
60
|
}), o;
|
|
61
61
|
}
|
|
62
|
-
function
|
|
63
|
-
return Object.assign(
|
|
62
|
+
function F(e) {
|
|
63
|
+
return Object.assign(i, e), s();
|
|
64
64
|
}
|
|
65
|
-
function
|
|
65
|
+
function N() {
|
|
66
66
|
u = !0, t.currentPage = 1, u = !1;
|
|
67
|
-
const
|
|
68
|
-
return Object.keys(
|
|
67
|
+
const e = w({ ...f });
|
|
68
|
+
return Object.keys(i).forEach((o) => delete i[o]), Object.assign(i, e), s();
|
|
69
69
|
}
|
|
70
|
-
|
|
71
|
-
|
|
70
|
+
k && s();
|
|
71
|
+
const R = b(() => !a && t.total && t.total >= t.pageSize);
|
|
72
|
+
return {
|
|
73
|
+
loading: a,
|
|
72
74
|
empty: y,
|
|
73
75
|
data: S,
|
|
74
|
-
getData:
|
|
75
|
-
params:
|
|
76
|
-
updateSearchParams:
|
|
77
|
-
resetSearchParams:
|
|
76
|
+
getData: s,
|
|
77
|
+
params: i,
|
|
78
|
+
updateSearchParams: F,
|
|
79
|
+
resetSearchParams: N,
|
|
78
80
|
pagination: t,
|
|
79
|
-
total:
|
|
80
|
-
startLoading:
|
|
81
|
-
endLoading:
|
|
81
|
+
total: b(() => t.total),
|
|
82
|
+
startLoading: g,
|
|
83
|
+
endLoading: d,
|
|
84
|
+
showPagination: R
|
|
82
85
|
};
|
|
83
86
|
}
|
|
84
87
|
export {
|
|
85
|
-
|
|
86
|
-
|
|
88
|
+
W as normalizeTableResponse,
|
|
89
|
+
J as useTable
|
|
87
90
|
};
|
package/dist/composables.mjs
CHANGED
|
@@ -1,25 +1,27 @@
|
|
|
1
|
-
import { useBoolean as
|
|
2
|
-
import { useLoading as
|
|
3
|
-
import { settleConfirm as f, useConfirm as
|
|
4
|
-
import { useDelete as
|
|
5
|
-
import { useSkeleton as
|
|
6
|
-
import { useDelayUnmount as
|
|
1
|
+
import { useBoolean as o } from "./composables/use-boolean.mjs";
|
|
2
|
+
import { useLoading as a } from "./composables/use-loading.mjs";
|
|
3
|
+
import { settleConfirm as f, useConfirm as u, useConfirmState as m } from "./composables/use-confirm.mjs";
|
|
4
|
+
import { useDelete as i } from "./composables/use-delete.mjs";
|
|
5
|
+
import { useSkeleton as x } from "./composables/use-skeleton.mjs";
|
|
6
|
+
import { useDelayUnmount as l } from "./composables/use-delay-unmount.mjs";
|
|
7
7
|
import { useAddressParse as P } from "./composables/use-address-parse.mjs";
|
|
8
|
-
import { providePageHeader as
|
|
9
|
-
import { normalizeTableResponse as
|
|
8
|
+
import { providePageHeader as S, usePageHeader as C, usePageHeaderDescription as D, usePageHeaderSuffix as T, usePageHeaderTitleSuffix as b } from "./composables/use-page-header.mjs";
|
|
9
|
+
import { normalizeTableResponse as k, useTable as v } from "./composables/use-table.mjs";
|
|
10
10
|
export {
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
k as normalizeTableResponse,
|
|
12
|
+
S as providePageHeader,
|
|
13
13
|
f as settleConfirm,
|
|
14
14
|
P as useAddressParse,
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
15
|
+
o as useBoolean,
|
|
16
|
+
u as useConfirm,
|
|
17
|
+
m as useConfirmState,
|
|
18
|
+
l as useDelayUnmount,
|
|
19
|
+
i as useDelete,
|
|
20
|
+
a as useLoading,
|
|
21
|
+
C as usePageHeader,
|
|
22
|
+
D as usePageHeaderDescription,
|
|
23
|
+
T as usePageHeaderSuffix,
|
|
24
|
+
b as usePageHeaderTitleSuffix,
|
|
25
|
+
x as useSkeleton,
|
|
26
|
+
v as useTable
|
|
25
27
|
};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
export declare const SABER_CONTROL_SIZE_CONFIG: {
|
|
2
|
+
readonly xs: {
|
|
3
|
+
readonly height: "h-6";
|
|
4
|
+
readonly square: "size-6";
|
|
5
|
+
readonly paginationButtons: "[&_button]:h-6";
|
|
6
|
+
readonly nuxtSize: "xs";
|
|
7
|
+
};
|
|
8
|
+
readonly sm: {
|
|
9
|
+
readonly height: "h-7";
|
|
10
|
+
readonly square: "size-7";
|
|
11
|
+
readonly paginationButtons: "[&_button]:h-7";
|
|
12
|
+
readonly nuxtSize: "sm";
|
|
13
|
+
};
|
|
14
|
+
readonly sl: {
|
|
15
|
+
readonly height: "h-8";
|
|
16
|
+
readonly square: "size-8";
|
|
17
|
+
readonly paginationButtons: "[&_button]:h-8";
|
|
18
|
+
readonly nuxtSize: "sm";
|
|
19
|
+
};
|
|
20
|
+
readonly md: {
|
|
21
|
+
readonly height: "h-9";
|
|
22
|
+
readonly square: "size-9";
|
|
23
|
+
readonly paginationButtons: "[&_button]:h-9";
|
|
24
|
+
readonly nuxtSize: "md";
|
|
25
|
+
};
|
|
26
|
+
readonly lg: {
|
|
27
|
+
readonly height: "h-10";
|
|
28
|
+
readonly square: "size-10";
|
|
29
|
+
readonly paginationButtons: "[&_button]:h-10";
|
|
30
|
+
readonly nuxtSize: "lg";
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
export type SaberControlSize = keyof typeof SABER_CONTROL_SIZE_CONFIG;
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
+
import { SaberControlSize } from '../../control-size';
|
|
1
2
|
import { FilterField } from '../types';
|
|
2
3
|
type __VLS_Props = {
|
|
3
4
|
fields: FilterField[];
|
|
4
5
|
/** 与该值相同的字段视为未筛选。 */
|
|
5
6
|
initialParams?: Record<string, unknown> | null;
|
|
7
|
+
size?: SaberControlSize;
|
|
6
8
|
};
|
|
7
9
|
type __VLS_PublicProps = {
|
|
8
10
|
modelValue?: Record<string, unknown>;
|
|
@@ -30,6 +32,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
|
|
|
30
32
|
onReset?: (() => any) | undefined;
|
|
31
33
|
onRefresh?: (() => any) | undefined;
|
|
32
34
|
}>, {
|
|
35
|
+
size: SaberControlSize;
|
|
33
36
|
initialParams: Record<string, unknown> | null;
|
|
34
37
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
35
38
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { SaberControlSize } from '../../control-size';
|
|
1
2
|
import { FormField, FormSubmitHandler, FormValidator } from '../types';
|
|
2
3
|
declare const _default: <T extends Record<string, unknown>>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
3
4
|
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
@@ -17,6 +18,7 @@ declare const _default: <T extends Record<string, unknown>>(__VLS_props: NonNull
|
|
|
17
18
|
cancelLabel?: string;
|
|
18
19
|
submitLabel?: string;
|
|
19
20
|
closeOnSuccess?: boolean;
|
|
21
|
+
fieldSize?: SaberControlSize;
|
|
20
22
|
}) & Partial<{}>> & import('vue').PublicProps;
|
|
21
23
|
expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
|
|
22
24
|
attrs: any;
|
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
import { DistrictNode, DistrictValue } from '../../types';
|
|
2
|
+
type SaberDistrictSelectSize = 'xs' | 'sm' | 'md' | 'lg';
|
|
3
|
+
type SaberDistrictSelectUI = Record<string, string | undefined>;
|
|
2
4
|
type __VLS_Props = {
|
|
3
5
|
districts?: readonly DistrictNode[];
|
|
4
6
|
placeholder?: string;
|
|
5
7
|
clearable?: boolean;
|
|
6
8
|
disabled?: boolean;
|
|
7
9
|
loading?: boolean;
|
|
10
|
+
size?: SaberDistrictSelectSize;
|
|
11
|
+
ui?: SaberDistrictSelectUI;
|
|
8
12
|
};
|
|
9
13
|
type __VLS_PublicProps = {
|
|
10
14
|
modelValue?: DistrictValue | undefined;
|
|
@@ -23,6 +27,7 @@ declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {
|
|
|
23
27
|
}>, {
|
|
24
28
|
loading: boolean;
|
|
25
29
|
placeholder: string;
|
|
30
|
+
size: SaberDistrictSelectSize;
|
|
26
31
|
disabled: boolean;
|
|
27
32
|
clearable: boolean;
|
|
28
33
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
@@ -1,5 +1,9 @@
|
|
|
1
|
+
import { SaberControlSize } from '../../../control-size';
|
|
2
|
+
type SaberInputUI = Record<string, string | undefined>;
|
|
1
3
|
type __VLS_Props = {
|
|
2
4
|
clearable?: boolean;
|
|
5
|
+
size?: SaberControlSize;
|
|
6
|
+
ui?: SaberInputUI;
|
|
3
7
|
};
|
|
4
8
|
type __VLS_PublicProps = {
|
|
5
9
|
modelValue?: string | number | undefined;
|
|
@@ -11,6 +15,7 @@ declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {},
|
|
|
11
15
|
onChange?: ((value: string | number | undefined) => any) | undefined;
|
|
12
16
|
"onUpdate:modelValue"?: ((value: string | number | undefined) => any) | undefined;
|
|
13
17
|
}>, {
|
|
18
|
+
size: SaberControlSize;
|
|
14
19
|
clearable: boolean;
|
|
15
20
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
16
21
|
export default _default;
|
|
@@ -1,11 +1,19 @@
|
|
|
1
|
+
import { SaberControlSize } from '../../../control-size';
|
|
2
|
+
type SaberInputNumberUI = Record<string, string | undefined>;
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
size?: SaberControlSize;
|
|
5
|
+
ui?: SaberInputNumberUI;
|
|
6
|
+
};
|
|
1
7
|
type __VLS_PublicProps = {
|
|
2
8
|
modelValue?: number | undefined;
|
|
3
|
-
};
|
|
9
|
+
} & __VLS_Props;
|
|
4
10
|
declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
5
11
|
change: (value: number | undefined) => any;
|
|
6
12
|
"update:modelValue": (value: number | undefined) => any;
|
|
7
13
|
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
8
14
|
onChange?: ((value: number | undefined) => any) | undefined;
|
|
9
15
|
"onUpdate:modelValue"?: ((value: number | undefined) => any) | undefined;
|
|
10
|
-
}>, {
|
|
16
|
+
}>, {
|
|
17
|
+
size: SaberControlSize;
|
|
18
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
11
19
|
export default _default;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { SaberControlSize } from '../../../control-size';
|
|
1
2
|
import { PopSelectOption } from '../../types';
|
|
2
3
|
type __VLS_Props = {
|
|
3
4
|
items?: PopSelectOption[];
|
|
@@ -5,6 +6,7 @@ type __VLS_Props = {
|
|
|
5
6
|
multiple?: boolean;
|
|
6
7
|
clearable?: boolean;
|
|
7
8
|
disabled?: boolean;
|
|
9
|
+
size?: SaberControlSize;
|
|
8
10
|
};
|
|
9
11
|
type __VLS_PublicProps = {
|
|
10
12
|
modelValue?: any;
|
|
@@ -17,9 +19,10 @@ declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {},
|
|
|
17
19
|
"onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
|
18
20
|
}>, {
|
|
19
21
|
placeholder: string;
|
|
22
|
+
size: SaberControlSize;
|
|
23
|
+
items: PopSelectOption[];
|
|
20
24
|
disabled: boolean;
|
|
21
25
|
multiple: boolean;
|
|
22
26
|
clearable: boolean;
|
|
23
|
-
items: PopSelectOption[];
|
|
24
27
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
25
28
|
export default _default;
|
|
@@ -1,11 +1,19 @@
|
|
|
1
|
+
import { SaberControlSize } from '../../../control-size';
|
|
2
|
+
type SaberSelectUI = Record<string, string | undefined>;
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
size?: SaberControlSize;
|
|
5
|
+
ui?: SaberSelectUI;
|
|
6
|
+
};
|
|
1
7
|
type __VLS_PublicProps = {
|
|
2
8
|
modelValue?: any;
|
|
3
|
-
};
|
|
9
|
+
} & __VLS_Props;
|
|
4
10
|
declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
5
11
|
change: (value: any) => any;
|
|
6
12
|
"update:modelValue": (value: any) => any;
|
|
7
13
|
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
8
14
|
onChange?: ((value: any) => any) | undefined;
|
|
9
15
|
"onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
|
10
|
-
}>, {
|
|
16
|
+
}>, {
|
|
17
|
+
size: SaberControlSize;
|
|
18
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
11
19
|
export default _default;
|
package/dist/forms/index.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export type { SaberControlSize } from '../control-size';
|
|
1
2
|
export { default as SaberFilterBar } from './components/SaberFilterBar.vue';
|
|
2
3
|
export { default as SaberFormModal } from './components/SaberFormModal.vue';
|
|
3
4
|
export { default as SaberModal } from './components/SaberModal.vue';
|
package/dist/forms.mjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { F as r, _ as s, a as o, b as t, c as i, d as c, e as m, f as S, g as p, h as b, i as l, j as u, k as D, l as f, r as x, u as n } from "./plugin-
|
|
1
|
+
import { F as r, _ as s, a as o, b as t, c as i, d as c, e as m, f as S, g as p, h as b, i as l, j as u, k as D, l as f, r as x, u as n } from "./plugin-Cg7MKH3t.js";
|
|
2
2
|
import { _ } from "./SaberModal.vue_vue_type_script_setup_true_lang-DJno3jA3.js";
|
|
3
3
|
import { _ as g } from "./SaberDictCheckbox.vue_vue_type_script_setup_true_lang-DUbzy_C6.js";
|
|
4
4
|
import { _ as v, a as R } from "./SaberDictRadio.vue_vue_type_script_setup_true_lang-DR6-jSID.js";
|
|
5
|
-
import { _ as C } from "./SaberDictSelect.vue_vue_type_script_setup_true_lang-
|
|
6
|
-
import { _ as K } from "./SaberPopSelect.vue_vue_type_script_setup_true_lang-
|
|
7
|
-
import { _ as U } from "./SaberDistrictSelect.vue_vue_type_script_setup_true_lang-
|
|
5
|
+
import { _ as C } from "./SaberDictSelect.vue_vue_type_script_setup_true_lang-BKdOdlFX.js";
|
|
6
|
+
import { _ as K } from "./SaberPopSelect.vue_vue_type_script_setup_true_lang-eH8jkkzK.js";
|
|
7
|
+
import { _ as U } from "./SaberDistrictSelect.vue_vue_type_script_setup_true_lang-jkl2AOay.js";
|
|
8
8
|
import { _ as k } from "./SaberUploadImage.vue_vue_type_script_setup_true_lang-CAwci2Vr.js";
|
|
9
9
|
import { D as G, u as j } from "./use-dict-options-DjtbYYIa.js";
|
|
10
10
|
import { U as N } from "./upload-image-source-On8NHgmx.js";
|
package/dist/index.d.ts
CHANGED
|
@@ -6,6 +6,7 @@ import { default as SaberConfirmProvider } from './components/SaberConfirmProvid
|
|
|
6
6
|
import { default as SaberInfo } from './components/SaberInfo.vue';
|
|
7
7
|
import { default as SaberInfoProvider } from './components/SaberInfoProvider.vue';
|
|
8
8
|
import { default as SaberModalWithMobile } from './components/SaberModalWithMobile.vue';
|
|
9
|
+
import { default as SaberPagination } from './components/SaberPagination.vue';
|
|
9
10
|
import { default as SaberStatus } from './components/SaberStatus.vue';
|
|
10
11
|
import { default as SaberSwitchBar } from './components/SaberSwitchBar.vue';
|
|
11
12
|
import { default as SaberAppLayout } from './components/layout/SaberAppLayout.vue';
|
|
@@ -25,6 +26,7 @@ import { default as SaberRadioGroup } from './forms/components/fields/SaberRadio
|
|
|
25
26
|
import { default as SaberSelect } from './forms/components/fields/SaberSelect.vue';
|
|
26
27
|
import { default as SaberTextarea } from './forms/components/fields/SaberTextarea.vue';
|
|
27
28
|
import { SaberFormsOptions } from './forms/plugin';
|
|
29
|
+
export type { SaberControlSize } from './control-size';
|
|
28
30
|
export interface SaberUIOptions {
|
|
29
31
|
forms?: SaberFormsOptions;
|
|
30
32
|
}
|
|
@@ -34,7 +36,7 @@ export { BadgeStatus as SaberBadgeStatus };
|
|
|
34
36
|
export type { BadgeStatusProps } from './BadgeStatus.types';
|
|
35
37
|
export { SaberNoData };
|
|
36
38
|
export type { SaberNoDataProps } from './SaberNoData.types';
|
|
37
|
-
export { SaberConfirmModal, SaberConfirmProvider, SaberInfo, SaberInfoProvider, SaberModalWithMobile, SaberAppLayout, SaberAppSidebar, SaberNavigationSearch, SaberStatus, SaberSwitchBar, };
|
|
39
|
+
export { SaberConfirmModal, SaberConfirmProvider, SaberInfo, SaberInfoProvider, SaberModalWithMobile, SaberPagination, SaberAppLayout, SaberAppSidebar, SaberNavigationSearch, SaberStatus, SaberSwitchBar, };
|
|
38
40
|
export type { SaberInfoContext, SaberInfoMode, SaberInfoProps, SaberInfoVariant } from './components/SaberInfo.types';
|
|
39
41
|
export type { SaberStatusType } from './components/SaberStatus.types';
|
|
40
42
|
export type { SaberSwitchBarItem, SaberSwitchBarUI, SaberSwitchBarValue } from './components/SaberSwitchBar.types';
|
|
@@ -53,6 +55,7 @@ declare module 'vue' {
|
|
|
53
55
|
SaberInfo: typeof SaberInfo;
|
|
54
56
|
SaberInfoProvider: typeof SaberInfoProvider;
|
|
55
57
|
SaberModalWithMobile: typeof SaberModalWithMobile;
|
|
58
|
+
SaberPagination: typeof SaberPagination;
|
|
56
59
|
SaberStatus: typeof SaberStatus;
|
|
57
60
|
SaberSwitchBar: typeof SaberSwitchBar;
|
|
58
61
|
SaberAppSidebar: typeof SaberAppSidebar;
|