@ditari/bsui 5.1.16 → 5.1.18
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/cjs/components/card/Card.cjs.map +1 -1
- package/dist/cjs/components/card/Card.d.ts +6 -0
- package/dist/cjs/components/card/index.d.ts +3 -0
- package/dist/cjs/components/card/style.d.ts +9 -0
- package/dist/cjs/components/date/RangePicker.vue.d.ts +64 -0
- package/dist/cjs/components/date/index.d.ts +3 -0
- package/dist/cjs/components/dic/DicReplace.d.ts +24 -0
- package/dist/cjs/components/dic/index.d.ts +3 -0
- package/dist/cjs/components/form/FormLayout.d.ts +49 -0
- package/dist/cjs/components/form/index.d.ts +3 -0
- package/dist/cjs/components/icon/index.d.ts +4 -0
- package/dist/cjs/components/index.d.ts +11 -0
- package/dist/cjs/components/layout/AppContext.d.ts +16 -0
- package/dist/cjs/components/layout/AppLayout.d.ts +3 -0
- package/dist/cjs/components/layout/Layout.vue.d.ts +269 -0
- package/dist/cjs/components/layout/List.d.ts +5 -0
- package/dist/cjs/components/layout/Show.d.ts +33 -0
- package/dist/cjs/components/layout/components/index.d.ts +5 -0
- package/dist/cjs/components/layout/components/layout/HeaderLayout.vue.d.ts +106 -0
- package/dist/cjs/components/layout/components/layout/RouterContent.vue.d.ts +11 -0
- package/dist/cjs/components/layout/components/layout/RouterContentName.vue.d.ts +19 -0
- package/dist/cjs/components/layout/components/layout/ThemeApp.vue.d.ts +24 -0
- package/dist/cjs/components/layout/components/menu/Menu.d.ts +5 -0
- package/dist/cjs/components/layout/components/mobile/MobileList.d.ts +3 -0
- package/dist/cjs/components/layout/components/settings/BlockCheckbox.vue.d.ts +47 -0
- package/dist/cjs/components/layout/components/settings/SettingDrawer.d.ts +50 -0
- package/dist/cjs/components/layout/index.d.ts +8 -0
- package/dist/cjs/components/layout/style.d.ts +5 -0
- package/dist/cjs/components/select/Select.vue.d.ts +98 -0
- package/dist/cjs/components/select/index.d.ts +3 -0
- package/dist/cjs/components/tab/Search.d.ts +3 -0
- package/dist/cjs/components/tab/Tab.vue.d.ts +78 -0
- package/dist/cjs/components/tab/index.d.ts +3 -0
- package/dist/cjs/components/table/Table.d.ts +137 -0
- package/dist/cjs/components/table/index.d.ts +4 -0
- package/dist/cjs/components/table/interface.d.ts +46 -0
- package/dist/cjs/components/table-form/TableForm.d.ts +46 -0
- package/dist/cjs/components/table-form/TableFormItem.d.ts +32 -0
- package/dist/cjs/components/table-form/index.d.ts +9 -0
- package/dist/cjs/components/table-form/interface.d.ts +56 -0
- package/dist/cjs/components/table-form/style.d.ts +12 -0
- package/dist/cjs/hooks/useDesign.d.ts +8 -0
- package/dist/cjs/index.d.ts +8 -0
- package/dist/cjs/utils/useMenuCore.d.ts +9 -0
- package/dist/cjs/utils/useTheme.d.ts +9 -0
- package/dist/cjs/utils/withInstall.d.ts +12 -0
- package/dist/esm/components/card/Card.d.ts +6 -0
- package/dist/esm/components/card/Card.mjs.map +1 -1
- package/dist/esm/components/card/index.d.ts +3 -0
- package/dist/esm/components/card/style.d.ts +9 -0
- package/dist/esm/components/date/RangePicker.vue.d.ts +64 -0
- package/dist/esm/components/date/index.d.ts +3 -0
- package/dist/esm/components/dic/DicReplace.d.ts +24 -0
- package/dist/esm/components/dic/index.d.ts +3 -0
- package/dist/esm/components/form/FormLayout.d.ts +49 -0
- package/dist/esm/components/form/index.d.ts +3 -0
- package/dist/esm/components/icon/index.d.ts +4 -0
- package/dist/esm/components/index.d.ts +11 -0
- package/dist/esm/components/layout/AppContext.d.ts +16 -0
- package/dist/esm/components/layout/AppLayout.d.ts +3 -0
- package/dist/esm/components/layout/Layout.vue.d.ts +269 -0
- package/dist/esm/components/layout/List.d.ts +5 -0
- package/dist/esm/components/layout/Show.d.ts +33 -0
- package/dist/esm/components/layout/components/index.d.ts +5 -0
- package/dist/esm/components/layout/components/layout/HeaderLayout.vue.d.ts +106 -0
- package/dist/esm/components/layout/components/layout/RouterContent.vue.d.ts +11 -0
- package/dist/esm/components/layout/components/layout/RouterContentName.vue.d.ts +19 -0
- package/dist/esm/components/layout/components/layout/ThemeApp.vue.d.ts +24 -0
- package/dist/esm/components/layout/components/menu/Menu.d.ts +5 -0
- package/dist/esm/components/layout/components/mobile/MobileList.d.ts +3 -0
- package/dist/esm/components/layout/components/settings/BlockCheckbox.vue.d.ts +47 -0
- package/dist/esm/components/layout/components/settings/SettingDrawer.d.ts +50 -0
- package/dist/esm/components/layout/index.d.ts +8 -0
- package/dist/esm/components/layout/style.d.ts +5 -0
- package/dist/esm/components/select/Select.vue.d.ts +98 -0
- package/dist/esm/components/select/index.d.ts +3 -0
- package/dist/esm/components/tab/Search.d.ts +3 -0
- package/dist/esm/components/tab/Tab.vue.d.ts +78 -0
- package/dist/esm/components/tab/index.d.ts +3 -0
- package/dist/esm/components/table/Table.d.ts +137 -0
- package/dist/esm/components/table/index.d.ts +4 -0
- package/dist/esm/components/table/interface.d.ts +46 -0
- package/dist/esm/components/table-form/TableForm.d.ts +46 -0
- package/dist/esm/components/table-form/TableFormItem.d.ts +32 -0
- package/dist/esm/components/table-form/index.d.ts +9 -0
- package/dist/esm/components/table-form/interface.d.ts +56 -0
- package/dist/esm/components/table-form/style.d.ts +12 -0
- package/dist/esm/hooks/useDesign.d.ts +8 -0
- package/dist/esm/index.d.ts +8 -0
- package/dist/esm/utils/useMenuCore.d.ts +9 -0
- package/dist/esm/utils/useTheme.d.ts +9 -0
- package/dist/esm/utils/withInstall.d.ts +12 -0
- package/dist/types/components/card/Card.d.ts.map +1 -1
- package/package.json +3 -3
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
interface DicItem {
|
|
2
|
+
value: string | number;
|
|
3
|
+
label: string;
|
|
4
|
+
}
|
|
5
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
6
|
+
value: {
|
|
7
|
+
type: null;
|
|
8
|
+
required: true;
|
|
9
|
+
default: undefined;
|
|
10
|
+
};
|
|
11
|
+
name: {
|
|
12
|
+
type: StringConstructor;
|
|
13
|
+
required: true;
|
|
14
|
+
default: string;
|
|
15
|
+
};
|
|
16
|
+
disabled: {
|
|
17
|
+
type: BooleanConstructor;
|
|
18
|
+
required: false;
|
|
19
|
+
default: boolean;
|
|
20
|
+
};
|
|
21
|
+
placeholder: {
|
|
22
|
+
type: StringConstructor;
|
|
23
|
+
required: false;
|
|
24
|
+
default: string;
|
|
25
|
+
};
|
|
26
|
+
include: {
|
|
27
|
+
type: ArrayConstructor;
|
|
28
|
+
required: false;
|
|
29
|
+
default: () => never[];
|
|
30
|
+
};
|
|
31
|
+
}>, {
|
|
32
|
+
props: any;
|
|
33
|
+
emits: (event: "update:value" | "change" | "select", ...args: any[]) => void;
|
|
34
|
+
getDicByKey: (key: string) => import("@ditari/store/dist/types/modules/useDicStore").DictionaryItem[];
|
|
35
|
+
keepNames: string[];
|
|
36
|
+
modelValue: import("vue").Ref<string | number | undefined, string | number | undefined>;
|
|
37
|
+
data: import("vue").Ref<{
|
|
38
|
+
value: string | number;
|
|
39
|
+
label: string;
|
|
40
|
+
}[], DicItem[] | {
|
|
41
|
+
value: string | number;
|
|
42
|
+
label: string;
|
|
43
|
+
}[]>;
|
|
44
|
+
onSelect: (value: string | number) => void;
|
|
45
|
+
onChange: () => void;
|
|
46
|
+
useSelect: () => {
|
|
47
|
+
data: import("vue").Ref<{
|
|
48
|
+
value: string | number;
|
|
49
|
+
label: string;
|
|
50
|
+
}[], DicItem[] | {
|
|
51
|
+
value: string | number;
|
|
52
|
+
label: string;
|
|
53
|
+
}[]>;
|
|
54
|
+
modelValue: import("vue").Ref<string | number | undefined, string | number | undefined>;
|
|
55
|
+
onSearch: (keywords: string) => void;
|
|
56
|
+
onSelect: (value: string | number) => void;
|
|
57
|
+
onChange: () => void;
|
|
58
|
+
};
|
|
59
|
+
onFilterOption: (inputValue: string, options: DicItem) => boolean;
|
|
60
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:value" | "change" | "select")[], "update:value" | "change" | "select", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
61
|
+
value: {
|
|
62
|
+
type: null;
|
|
63
|
+
required: true;
|
|
64
|
+
default: undefined;
|
|
65
|
+
};
|
|
66
|
+
name: {
|
|
67
|
+
type: StringConstructor;
|
|
68
|
+
required: true;
|
|
69
|
+
default: string;
|
|
70
|
+
};
|
|
71
|
+
disabled: {
|
|
72
|
+
type: BooleanConstructor;
|
|
73
|
+
required: false;
|
|
74
|
+
default: boolean;
|
|
75
|
+
};
|
|
76
|
+
placeholder: {
|
|
77
|
+
type: StringConstructor;
|
|
78
|
+
required: false;
|
|
79
|
+
default: string;
|
|
80
|
+
};
|
|
81
|
+
include: {
|
|
82
|
+
type: ArrayConstructor;
|
|
83
|
+
required: false;
|
|
84
|
+
default: () => never[];
|
|
85
|
+
};
|
|
86
|
+
}>> & Readonly<{
|
|
87
|
+
onSelect?: ((...args: any[]) => any) | undefined;
|
|
88
|
+
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
89
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
90
|
+
}>, {
|
|
91
|
+
name: string;
|
|
92
|
+
value: any;
|
|
93
|
+
disabled: boolean;
|
|
94
|
+
placeholder: string;
|
|
95
|
+
include: unknown[];
|
|
96
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
97
|
+
export default _default;
|
|
98
|
+
//# sourceMappingURL=Select.vue.d.ts.map
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
export default _default;
|
|
3
|
+
//# sourceMappingURL=Search.d.ts.map
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { type ComputedRef } from "vue";
|
|
2
|
+
declare const _default: import("vue").DefineComponent<{}, {
|
|
3
|
+
useStyle: () => {
|
|
4
|
+
tabsNavStyle: ComputedRef<string>;
|
|
5
|
+
tabHoverBgStyle: ComputedRef<string>;
|
|
6
|
+
closeBtnStyle: ComputedRef<string>;
|
|
7
|
+
dynamicVars: ComputedRef<{
|
|
8
|
+
"--active-tab-color": string | undefined;
|
|
9
|
+
"--splitColor": string | undefined;
|
|
10
|
+
"--active-text-color": string | undefined;
|
|
11
|
+
"--active-shadow-color": string | undefined;
|
|
12
|
+
"--tabs-text-color": string | undefined;
|
|
13
|
+
}>;
|
|
14
|
+
};
|
|
15
|
+
useTabAndMenu: () => {
|
|
16
|
+
activeKey: import("vue").Ref<string, string>;
|
|
17
|
+
list: ComputedRef<{
|
|
18
|
+
closeBtnVisible: boolean;
|
|
19
|
+
menus: {
|
|
20
|
+
key: string;
|
|
21
|
+
title: string;
|
|
22
|
+
icon: import("@ant-design/icons-vue/lib/icons/ReloadOutlined").ReloadOutlinedIconType;
|
|
23
|
+
disabled: boolean;
|
|
24
|
+
}[];
|
|
25
|
+
path?: string;
|
|
26
|
+
fullPath?: string;
|
|
27
|
+
query?: import("vue-router").LocationQuery;
|
|
28
|
+
params?: import("vue-router").RouteParams;
|
|
29
|
+
meta?: import("vue-router").RouteMeta;
|
|
30
|
+
name?: string;
|
|
31
|
+
openTime?: number | undefined;
|
|
32
|
+
}[]>;
|
|
33
|
+
enableTabContextMenu: boolean;
|
|
34
|
+
onChange: (key: string | number) => void;
|
|
35
|
+
onClose: ($event: Event, key: string | undefined) => void;
|
|
36
|
+
onContextMenuClick: ({ key }: {
|
|
37
|
+
key: string | number;
|
|
38
|
+
}, item: any) => void;
|
|
39
|
+
};
|
|
40
|
+
tabsNavStyle: ComputedRef<string>;
|
|
41
|
+
tabHoverBgStyle: ComputedRef<string>;
|
|
42
|
+
closeBtnStyle: ComputedRef<string>;
|
|
43
|
+
dynamicVars: ComputedRef<{
|
|
44
|
+
"--active-tab-color": string | undefined;
|
|
45
|
+
"--splitColor": string | undefined;
|
|
46
|
+
"--active-text-color": string | undefined;
|
|
47
|
+
"--active-shadow-color": string | undefined;
|
|
48
|
+
"--tabs-text-color": string | undefined;
|
|
49
|
+
}>;
|
|
50
|
+
activeKey: import("vue").Ref<string, string>;
|
|
51
|
+
list: ComputedRef<{
|
|
52
|
+
closeBtnVisible: boolean;
|
|
53
|
+
menus: {
|
|
54
|
+
key: string;
|
|
55
|
+
title: string;
|
|
56
|
+
icon: import("@ant-design/icons-vue/lib/icons/ReloadOutlined").ReloadOutlinedIconType;
|
|
57
|
+
disabled: boolean;
|
|
58
|
+
}[];
|
|
59
|
+
path?: string;
|
|
60
|
+
fullPath?: string;
|
|
61
|
+
query?: import("vue-router").LocationQuery;
|
|
62
|
+
params?: import("vue-router").RouteParams;
|
|
63
|
+
meta?: import("vue-router").RouteMeta;
|
|
64
|
+
name?: string;
|
|
65
|
+
openTime?: number | undefined;
|
|
66
|
+
}[]>;
|
|
67
|
+
enableTabContextMenu: boolean;
|
|
68
|
+
onChange: (key: string | number) => void;
|
|
69
|
+
onClose: ($event: Event, key: string | undefined) => void;
|
|
70
|
+
onContextMenuClick: ({ key }: {
|
|
71
|
+
key: string | number;
|
|
72
|
+
}, item: any) => void;
|
|
73
|
+
readonly Search: import("vue").DefineComponent<{}, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
74
|
+
readonly CloseOutlined: import("@ant-design/icons-vue/lib/icons/CloseOutlined").CloseOutlinedIconType;
|
|
75
|
+
readonly cx: (...classNames: import("@emotion/css/dist/declarations/src/create-instance").ClassNamesArg[]) => string;
|
|
76
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
77
|
+
export default _default;
|
|
78
|
+
//# sourceMappingURL=Tab.vue.d.ts.map
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
import { type ExtractPropTypes, type PropType } from "vue";
|
|
2
|
+
import { type PaginationProps } from "./interface";
|
|
3
|
+
import type { ColumnsType } from "ant-design-vue/es/table";
|
|
4
|
+
export type Key = string | number;
|
|
5
|
+
export type SizeType = "small" | "middle" | "large" | undefined;
|
|
6
|
+
interface Page {
|
|
7
|
+
total: number;
|
|
8
|
+
current: number;
|
|
9
|
+
pageSize: number;
|
|
10
|
+
}
|
|
11
|
+
interface Config<T = unknown> {
|
|
12
|
+
columns: ColumnsType<T>;
|
|
13
|
+
pagination?: Page | undefined;
|
|
14
|
+
paginationConfig?: PaginationProps;
|
|
15
|
+
changePagination?: (current: number, size: number) => void;
|
|
16
|
+
click?: (record: Record<string, unknown>, index: number) => void;
|
|
17
|
+
dbClick?: (record: Record<string, unknown>, index: number) => void;
|
|
18
|
+
getCheckboxProps?: (record: unknown) => Record<string, unknown> | undefined;
|
|
19
|
+
activeRowClass?: string;
|
|
20
|
+
selection?: string;
|
|
21
|
+
keepSelected?: boolean;
|
|
22
|
+
}
|
|
23
|
+
export declare const tableProps: <T = unknown>() => {
|
|
24
|
+
height: {
|
|
25
|
+
type: NumberConstructor;
|
|
26
|
+
default: number;
|
|
27
|
+
};
|
|
28
|
+
data: {
|
|
29
|
+
type: PropType<T[]>;
|
|
30
|
+
default: () => never[];
|
|
31
|
+
};
|
|
32
|
+
loading: {
|
|
33
|
+
type: BooleanConstructor;
|
|
34
|
+
default: boolean;
|
|
35
|
+
};
|
|
36
|
+
rowKey: {
|
|
37
|
+
type: StringConstructor;
|
|
38
|
+
default: string;
|
|
39
|
+
};
|
|
40
|
+
bordered: {
|
|
41
|
+
type: BooleanConstructor;
|
|
42
|
+
default: boolean;
|
|
43
|
+
};
|
|
44
|
+
size: {
|
|
45
|
+
type: PropType<SizeType>;
|
|
46
|
+
default: string;
|
|
47
|
+
};
|
|
48
|
+
keys: {
|
|
49
|
+
type: PropType<Key[]>;
|
|
50
|
+
default: () => never[];
|
|
51
|
+
};
|
|
52
|
+
config: {
|
|
53
|
+
type: PropType<Config<T>>;
|
|
54
|
+
required: boolean;
|
|
55
|
+
};
|
|
56
|
+
};
|
|
57
|
+
export type TableProps = Partial<ExtractPropTypes<ReturnType<typeof tableProps>>>;
|
|
58
|
+
declare const DTable: import("vue").DefineComponent<ExtractPropTypes<{
|
|
59
|
+
height: {
|
|
60
|
+
type: NumberConstructor;
|
|
61
|
+
default: number;
|
|
62
|
+
};
|
|
63
|
+
data: {
|
|
64
|
+
type: PropType<unknown[]>;
|
|
65
|
+
default: () => never[];
|
|
66
|
+
};
|
|
67
|
+
loading: {
|
|
68
|
+
type: BooleanConstructor;
|
|
69
|
+
default: boolean;
|
|
70
|
+
};
|
|
71
|
+
rowKey: {
|
|
72
|
+
type: StringConstructor;
|
|
73
|
+
default: string;
|
|
74
|
+
};
|
|
75
|
+
bordered: {
|
|
76
|
+
type: BooleanConstructor;
|
|
77
|
+
default: boolean;
|
|
78
|
+
};
|
|
79
|
+
size: {
|
|
80
|
+
type: PropType<SizeType>;
|
|
81
|
+
default: string;
|
|
82
|
+
};
|
|
83
|
+
keys: {
|
|
84
|
+
type: PropType<Key[]>;
|
|
85
|
+
default: () => never[];
|
|
86
|
+
};
|
|
87
|
+
config: {
|
|
88
|
+
type: PropType<Config<unknown>>;
|
|
89
|
+
required: boolean;
|
|
90
|
+
};
|
|
91
|
+
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:keys"[], "update:keys", import("vue").PublicProps, Readonly<ExtractPropTypes<{
|
|
92
|
+
height: {
|
|
93
|
+
type: NumberConstructor;
|
|
94
|
+
default: number;
|
|
95
|
+
};
|
|
96
|
+
data: {
|
|
97
|
+
type: PropType<unknown[]>;
|
|
98
|
+
default: () => never[];
|
|
99
|
+
};
|
|
100
|
+
loading: {
|
|
101
|
+
type: BooleanConstructor;
|
|
102
|
+
default: boolean;
|
|
103
|
+
};
|
|
104
|
+
rowKey: {
|
|
105
|
+
type: StringConstructor;
|
|
106
|
+
default: string;
|
|
107
|
+
};
|
|
108
|
+
bordered: {
|
|
109
|
+
type: BooleanConstructor;
|
|
110
|
+
default: boolean;
|
|
111
|
+
};
|
|
112
|
+
size: {
|
|
113
|
+
type: PropType<SizeType>;
|
|
114
|
+
default: string;
|
|
115
|
+
};
|
|
116
|
+
keys: {
|
|
117
|
+
type: PropType<Key[]>;
|
|
118
|
+
default: () => never[];
|
|
119
|
+
};
|
|
120
|
+
config: {
|
|
121
|
+
type: PropType<Config<unknown>>;
|
|
122
|
+
required: boolean;
|
|
123
|
+
};
|
|
124
|
+
}>> & Readonly<{
|
|
125
|
+
"onUpdate:keys"?: ((...args: any[]) => any) | undefined;
|
|
126
|
+
}>, {
|
|
127
|
+
keys: Key[];
|
|
128
|
+
data: unknown[];
|
|
129
|
+
size: SizeType;
|
|
130
|
+
height: number;
|
|
131
|
+
loading: boolean;
|
|
132
|
+
rowKey: string;
|
|
133
|
+
bordered: boolean;
|
|
134
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
135
|
+
export declare const useEleHeight: (node: Element) => number;
|
|
136
|
+
export default DTable;
|
|
137
|
+
//# sourceMappingURL=Table.d.ts.map
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
export interface PaginationProps {
|
|
2
|
+
/** 默认的每页条数 */
|
|
3
|
+
defaultPageSize?: number;
|
|
4
|
+
/** 禁用分页 */
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
/** 只有一页时是否隐藏分页器 */
|
|
7
|
+
hideOnSinglePage?: boolean;
|
|
8
|
+
/**
|
|
9
|
+
* 用于自定义页码的结构,可用于优化 SEO
|
|
10
|
+
* @param page 当前页码
|
|
11
|
+
* @param type 页码类型 ('page' | 'prev' | 'next')
|
|
12
|
+
* @param originalElement 默认的节点
|
|
13
|
+
* @returns 自定义的 VNode
|
|
14
|
+
*/
|
|
15
|
+
itemRender?: (opt: {
|
|
16
|
+
page: number;
|
|
17
|
+
type: "page" | "prev" | "next" | "jump-prev" | "jump-next";
|
|
18
|
+
originalElement: unknown;
|
|
19
|
+
}) => unknown;
|
|
20
|
+
/** 每页条数(支持 v-model) */
|
|
21
|
+
pageSize?: number;
|
|
22
|
+
/** 指定每页可以显示的条数 */
|
|
23
|
+
pageSizeOptions?: (string | number)[];
|
|
24
|
+
/** 当 size 未指定时,根据屏幕宽度自动调整尺寸 */
|
|
25
|
+
responsive?: boolean;
|
|
26
|
+
/** 是否显示较少页面内容 */
|
|
27
|
+
showLessItems?: boolean;
|
|
28
|
+
/** 是否可以快速跳转至某页 */
|
|
29
|
+
showQuickJumper?: boolean;
|
|
30
|
+
/** 是否展示 pageSize 切换器,当 total 大于 50 时默认为 true */
|
|
31
|
+
showSizeChanger?: boolean;
|
|
32
|
+
/**
|
|
33
|
+
* 用于显示数据总量和当前数据顺序
|
|
34
|
+
* @param total 数据总数
|
|
35
|
+
* @param range 当前数据范围
|
|
36
|
+
* @returns 显示的文本内容
|
|
37
|
+
*/
|
|
38
|
+
showTotal?: (total: number, range: [number, number]) => string;
|
|
39
|
+
/** 当添加该属性时,显示为简单分页 */
|
|
40
|
+
simple?: boolean;
|
|
41
|
+
/** 当为「small」时,是小尺寸分页 */
|
|
42
|
+
size?: "default" | "small";
|
|
43
|
+
/** 数据总数 */
|
|
44
|
+
total?: number;
|
|
45
|
+
}
|
|
46
|
+
//# sourceMappingURL=interface.d.ts.map
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { ComputedRef } from "vue";
|
|
2
|
+
import { StylesConfig } from "./interface";
|
|
3
|
+
export declare const FormContextKey: unique symbol;
|
|
4
|
+
export interface TableFormContext {
|
|
5
|
+
isFormParent: true;
|
|
6
|
+
span: ComputedRef<number>;
|
|
7
|
+
isReadonly: ComputedRef<boolean>;
|
|
8
|
+
fieldErrors: ComputedRef<Record<string, string | undefined>>;
|
|
9
|
+
stylesConfig: ComputedRef<StylesConfig>;
|
|
10
|
+
model: ComputedRef<Record<string, unknown>>;
|
|
11
|
+
}
|
|
12
|
+
export declare const TableForm: import("../../utils/withInstall").SFCWithInstall<import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
13
|
+
readonly: {
|
|
14
|
+
type: BooleanConstructor;
|
|
15
|
+
default: boolean;
|
|
16
|
+
};
|
|
17
|
+
stylesConfig: {
|
|
18
|
+
type: import("vue").PropType<StylesConfig>;
|
|
19
|
+
default: () => {
|
|
20
|
+
rowHeight?: number;
|
|
21
|
+
borderColor?: string;
|
|
22
|
+
borderWidth?: number;
|
|
23
|
+
labelBgColor?: string;
|
|
24
|
+
focusBorderColor?: string;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
28
|
+
readonly: {
|
|
29
|
+
type: BooleanConstructor;
|
|
30
|
+
default: boolean;
|
|
31
|
+
};
|
|
32
|
+
stylesConfig: {
|
|
33
|
+
type: import("vue").PropType<StylesConfig>;
|
|
34
|
+
default: () => {
|
|
35
|
+
rowHeight?: number;
|
|
36
|
+
borderColor?: string;
|
|
37
|
+
borderWidth?: number;
|
|
38
|
+
labelBgColor?: string;
|
|
39
|
+
focusBorderColor?: string;
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
}>> & Readonly<{}>, {
|
|
43
|
+
readonly: boolean;
|
|
44
|
+
stylesConfig: StylesConfig;
|
|
45
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>>;
|
|
46
|
+
//# sourceMappingURL=TableForm.d.ts.map
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
export declare const TableFormItem: import("../../utils/withInstall").SFCWithInstall<import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
2
|
+
dicName: {
|
|
3
|
+
type: StringConstructor;
|
|
4
|
+
default: undefined;
|
|
5
|
+
};
|
|
6
|
+
format: {
|
|
7
|
+
type: import("vue").PropType<import("./interface").Formatter> | undefined;
|
|
8
|
+
default: undefined;
|
|
9
|
+
};
|
|
10
|
+
span: {
|
|
11
|
+
type: NumberConstructor;
|
|
12
|
+
default: number;
|
|
13
|
+
};
|
|
14
|
+
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
15
|
+
dicName: {
|
|
16
|
+
type: StringConstructor;
|
|
17
|
+
default: undefined;
|
|
18
|
+
};
|
|
19
|
+
format: {
|
|
20
|
+
type: import("vue").PropType<import("./interface").Formatter> | undefined;
|
|
21
|
+
default: undefined;
|
|
22
|
+
};
|
|
23
|
+
span: {
|
|
24
|
+
type: NumberConstructor;
|
|
25
|
+
default: number;
|
|
26
|
+
};
|
|
27
|
+
}>> & Readonly<{}>, {
|
|
28
|
+
format: import("./interface").Formatter;
|
|
29
|
+
dicName: string;
|
|
30
|
+
span: number;
|
|
31
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>>;
|
|
32
|
+
//# sourceMappingURL=TableFormItem.d.ts.map
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { TableForm } from "./TableForm";
|
|
2
|
+
import { TableFormItem } from "./TableFormItem";
|
|
3
|
+
type TableFormWithItem = typeof TableForm & {
|
|
4
|
+
Item: typeof TableFormItem;
|
|
5
|
+
};
|
|
6
|
+
declare const TableFormExport: TableFormWithItem;
|
|
7
|
+
export { TableFormExport as TableForm, TableFormItem };
|
|
8
|
+
export * from "./interface";
|
|
9
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import type { ExtractPropTypes, PropType } from "vue";
|
|
2
|
+
export interface DTableFormItemProps {
|
|
3
|
+
name: string;
|
|
4
|
+
label?: string;
|
|
5
|
+
required?: boolean;
|
|
6
|
+
rules?: unknown[];
|
|
7
|
+
colon?: boolean;
|
|
8
|
+
extra?: string;
|
|
9
|
+
}
|
|
10
|
+
export type Formatter = (value: unknown, name: unknown) => unknown;
|
|
11
|
+
export declare const tableFormItemProps: {
|
|
12
|
+
dicName: {
|
|
13
|
+
type: StringConstructor;
|
|
14
|
+
default: undefined;
|
|
15
|
+
};
|
|
16
|
+
format: {
|
|
17
|
+
type: PropType<Formatter> | undefined;
|
|
18
|
+
default: undefined;
|
|
19
|
+
};
|
|
20
|
+
span: {
|
|
21
|
+
type: NumberConstructor;
|
|
22
|
+
default: number;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
export declare const DEFAULT_STYLES_CONFIG: StylesConfig;
|
|
26
|
+
export interface StylesConfig {
|
|
27
|
+
/**
|
|
28
|
+
* 表格行高度
|
|
29
|
+
*/
|
|
30
|
+
rowHeight?: number;
|
|
31
|
+
borderColor?: string;
|
|
32
|
+
borderWidth?: number;
|
|
33
|
+
labelBgColor?: string;
|
|
34
|
+
focusBorderColor?: string;
|
|
35
|
+
}
|
|
36
|
+
export declare const tableFormProps: {
|
|
37
|
+
readonly: {
|
|
38
|
+
type: BooleanConstructor;
|
|
39
|
+
default: boolean;
|
|
40
|
+
};
|
|
41
|
+
stylesConfig: {
|
|
42
|
+
type: PropType<StylesConfig>;
|
|
43
|
+
default: () => {
|
|
44
|
+
/**
|
|
45
|
+
* 表格行高度
|
|
46
|
+
*/
|
|
47
|
+
rowHeight?: number;
|
|
48
|
+
borderColor?: string;
|
|
49
|
+
borderWidth?: number;
|
|
50
|
+
labelBgColor?: string;
|
|
51
|
+
focusBorderColor?: string;
|
|
52
|
+
};
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
export type TableFormItemProps = Partial<ExtractPropTypes<typeof tableFormItemProps>>;
|
|
56
|
+
//# sourceMappingURL=interface.d.ts.map
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ComputedRef } from "vue";
|
|
2
|
+
import { StylesConfig } from "./interface";
|
|
3
|
+
import type { GlobalToken } from "ant-design-vue/es/theme/interface";
|
|
4
|
+
/**
|
|
5
|
+
* 表单项样式
|
|
6
|
+
*/
|
|
7
|
+
export declare const useFormItemStyle: (styles: StylesConfig, _token: ComputedRef<GlobalToken>) => {
|
|
8
|
+
cellBorderStyle: string;
|
|
9
|
+
valueDisplayClass: string;
|
|
10
|
+
textWrapperClass: string;
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=style.d.ts.map
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ComputedRef } from "vue";
|
|
2
|
+
import type { GlobalToken } from "ant-design-vue/es/theme/interface";
|
|
3
|
+
export declare function useDesign(scope: string): {
|
|
4
|
+
prefixCls: ComputedRef<string>;
|
|
5
|
+
getPrefixCls: (blockSuffix?: string) => string;
|
|
6
|
+
};
|
|
7
|
+
export declare function useAntdToken(): ComputedRef<GlobalToken>;
|
|
8
|
+
//# sourceMappingURL=useDesign.d.ts.map
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
declare const _default: () => {
|
|
2
|
+
findMatchedMenuById: (id: string, menuItems: any[]) => {
|
|
3
|
+
parentItem: any;
|
|
4
|
+
matchItem: any;
|
|
5
|
+
};
|
|
6
|
+
findMenuItemByUrl: (url: string, menuItems: any[]) => any;
|
|
7
|
+
};
|
|
8
|
+
export default _default;
|
|
9
|
+
//# sourceMappingURL=useMenuCore.d.ts.map
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { type Ref } from "vue";
|
|
2
|
+
import type { GlobalToken } from "ant-design-vue/es/theme";
|
|
3
|
+
type UseAntdTokenReturn = {
|
|
4
|
+
token: Ref<GlobalToken>;
|
|
5
|
+
setToken: (globalToken: GlobalToken) => void;
|
|
6
|
+
};
|
|
7
|
+
export declare const useAntdToken: () => UseAntdTokenReturn;
|
|
8
|
+
export {};
|
|
9
|
+
//# sourceMappingURL=useTheme.d.ts.map
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { Component, Plugin } from "vue";
|
|
2
|
+
export type SFCWithInstall<T> = T & Plugin & {
|
|
3
|
+
[key: string]: T;
|
|
4
|
+
};
|
|
5
|
+
/**
|
|
6
|
+
* 优化后的 withInstall 辅助函数
|
|
7
|
+
* * 关键修改:
|
|
8
|
+
* - 将泛型 T 的约束改为更通用的 Vue Component 类型。
|
|
9
|
+
* - 使用 'Component' 或 'ComponentOptionsBase' 来确保兼容性。
|
|
10
|
+
*/
|
|
11
|
+
export declare const withInstall: <T extends Component>(component: T) => SFCWithInstall<T>;
|
|
12
|
+
//# sourceMappingURL=withInstall.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Card.d.ts","sourceRoot":"","sources":["../../../../src/components/card/Card.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Card.d.ts","sourceRoot":"","sources":["../../../../src/components/card/Card.tsx"],"names":[],"mappings":"AA6DA,eAAO,MAAM,IAAI;;;;kGAAqB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ditari/bsui",
|
|
3
|
-
"version": "5.1.
|
|
3
|
+
"version": "5.1.18",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"./theme/*": "./dist/style/*"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@ditari/
|
|
33
|
-
"@ditari/
|
|
32
|
+
"@ditari/core": "^5.1.7",
|
|
33
|
+
"@ditari/store": "^5.1.6"
|
|
34
34
|
}
|
|
35
35
|
}
|