@aplus-frontend/ui 0.0.33 → 0.0.35
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/es/index.mjs +217 -215
- package/es/src/ap-field/select/index.vue.mjs +36 -32
- package/es/src/ap-form/ap-form-item-group/index.vue.mjs +27 -26
- package/es/src/ap-form/ap-form.vue.d.ts +1 -1
- package/es/src/ap-form/ap-form.vue2.mjs +40 -40
- package/es/src/ap-form/interface.d.ts +1 -1
- package/es/src/ap-form/search-form/index.vue.mjs +79 -78
- package/es/src/ap-modal/utils/createModal.mjs +34 -31
- package/es/src/ap-table/ap-table.vue.d.ts +54 -11
- package/es/src/ap-table/ap-table.vue.mjs +171 -148
- package/es/src/ap-table/hooks/use-table-paging.d.ts +1 -0
- package/es/src/ap-table/hooks/use-table-paging.mjs +48 -47
- package/es/src/ap-table/hooks/use-table-row-selection.d.ts +60 -0
- package/es/src/ap-table/hooks/use-table-row-selection.mjs +62 -0
- package/es/src/ap-table/interface.d.ts +14 -2
- package/es/src/ap-table/style/ap-table.css +2 -0
- package/es/src/ap-upload/apUpload.vue.d.ts +3 -3
- package/es/src/ap-upload/hooks/useOss.d.ts +3 -3
- package/es/src/business/ap-select-layout/index.css +117 -0
- package/es/src/business/ap-select-layout/index.d.ts +4 -0
- package/es/src/business/ap-select-layout/interface.d.ts +9 -0
- package/es/src/business/ap-select-layout/select-layout.vue.d.ts +76 -0
- package/es/src/business/ap-select-layout/select-layout.vue.mjs +4 -0
- package/es/src/business/ap-select-layout/select-layout.vue2.mjs +145 -0
- package/es/src/business/index.d.ts +76 -1
- package/es/src/business/index.mjs +9 -6
- package/es/src/config-provider/config-provider.d.ts +144 -1
- package/es/src/config-provider/config-provider.mjs +35 -29
- package/es/src/config-provider/index.mjs +22 -20
- package/es/src/design-token/index.mjs +1 -1
- package/es/src/editable-table/form-item.vue.d.ts +7 -7
- package/es/src/editable-table/form-item.vue.mjs +2 -2
- package/es/src/editable-table/index.vue.d.ts +7 -7
- package/es/src/editable-table/index.vue.mjs +10 -10
- package/es/src/editable-table/interface.d.ts +1 -1
- package/es/src/index.mjs +188 -186
- package/es/src/theme/ap-select-layout/ap-select-layout.css +117 -0
- package/es/src/theme/ap-table/ap-table.css +2 -0
- package/lib/index.js +1 -1
- package/lib/src/ap-field/select/index.vue.js +1 -1
- package/lib/src/ap-form/ap-form-item-group/index.vue.js +1 -1
- package/lib/src/ap-form/ap-form.vue.d.ts +1 -1
- package/lib/src/ap-form/ap-form.vue2.js +1 -1
- package/lib/src/ap-form/interface.d.ts +1 -1
- package/lib/src/ap-form/search-form/index.vue.js +1 -1
- package/lib/src/ap-modal/utils/createModal.js +1 -1
- package/lib/src/ap-table/ap-table.vue.d.ts +54 -11
- package/lib/src/ap-table/ap-table.vue.js +1 -1
- package/lib/src/ap-table/hooks/use-table-paging.d.ts +1 -0
- package/lib/src/ap-table/hooks/use-table-paging.js +1 -1
- package/lib/src/ap-table/hooks/use-table-row-selection.d.ts +60 -0
- package/lib/src/ap-table/hooks/use-table-row-selection.js +1 -0
- package/lib/src/ap-table/interface.d.ts +14 -2
- package/lib/src/ap-table/style/ap-table.css +2 -0
- package/lib/src/ap-upload/apUpload.vue.d.ts +3 -3
- package/lib/src/ap-upload/hooks/useOss.d.ts +3 -3
- package/lib/src/business/ap-select-layout/index.css +117 -0
- package/lib/src/business/ap-select-layout/index.d.ts +4 -0
- package/lib/src/business/ap-select-layout/interface.d.ts +9 -0
- package/lib/src/business/ap-select-layout/select-layout.vue.d.ts +76 -0
- package/lib/src/business/ap-select-layout/select-layout.vue.js +1 -0
- package/lib/src/business/ap-select-layout/select-layout.vue2.js +1 -0
- package/lib/src/business/index.d.ts +76 -1
- package/lib/src/business/index.js +1 -1
- package/lib/src/config-provider/config-provider.d.ts +144 -1
- package/lib/src/config-provider/config-provider.js +1 -1
- package/lib/src/config-provider/index.js +1 -1
- package/lib/src/design-token/index.js +1 -1
- package/lib/src/editable-table/form-item.vue.d.ts +7 -7
- package/lib/src/editable-table/form-item.vue.js +1 -1
- package/lib/src/editable-table/index.vue.d.ts +7 -7
- package/lib/src/editable-table/index.vue.js +1 -1
- package/lib/src/editable-table/interface.d.ts +1 -1
- package/lib/src/index.js +1 -1
- package/lib/src/theme/ap-select-layout/ap-select-layout.css +117 -0
- package/lib/src/theme/ap-table/ap-table.css +2 -0
- package/package.json +2 -2
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { TableRowSelection } from 'ant-design-vue/lib/table/interface';
|
|
2
|
+
import { ComputedRef, Ref } from 'vue';
|
|
3
|
+
import { ApTableProps, ApTableRowSelection } from '../interface';
|
|
4
|
+
import { Recordable } from '../../type';
|
|
5
|
+
|
|
6
|
+
export interface RowSelectionReturnType<RecordType = any> {
|
|
7
|
+
rowSelection: ComputedRef<TableRowSelection<RecordType>>;
|
|
8
|
+
selectedRows: Ref<RecordType[]>;
|
|
9
|
+
/**
|
|
10
|
+
* 选中某行
|
|
11
|
+
* @param item
|
|
12
|
+
* @returns
|
|
13
|
+
*/
|
|
14
|
+
select: (item: RecordType) => void;
|
|
15
|
+
/**
|
|
16
|
+
* 取消选中某行
|
|
17
|
+
* @param item
|
|
18
|
+
* @returns
|
|
19
|
+
*/
|
|
20
|
+
unSelect: (item: RecordType) => void;
|
|
21
|
+
/**
|
|
22
|
+
* 某行是否被选中
|
|
23
|
+
* @param item
|
|
24
|
+
* @returns
|
|
25
|
+
*/
|
|
26
|
+
isSelected: (item: RecordType) => boolean;
|
|
27
|
+
/**
|
|
28
|
+
* 选中当前所有数据
|
|
29
|
+
* @returns
|
|
30
|
+
*/
|
|
31
|
+
selectAll: () => void;
|
|
32
|
+
/**
|
|
33
|
+
* 取消选中当前所有数据
|
|
34
|
+
* @returns
|
|
35
|
+
*/
|
|
36
|
+
unSelectAll: () => void;
|
|
37
|
+
/**
|
|
38
|
+
* 清空所有选中
|
|
39
|
+
* @returns
|
|
40
|
+
*/
|
|
41
|
+
clearAll: () => void;
|
|
42
|
+
/**
|
|
43
|
+
* 切换某行的选中状态
|
|
44
|
+
* @param item
|
|
45
|
+
* @returns
|
|
46
|
+
*/
|
|
47
|
+
toggleSelect: (item: RecordType) => void;
|
|
48
|
+
}
|
|
49
|
+
type RowSelectionParams<T> = ApTableRowSelection<T> & {
|
|
50
|
+
/**
|
|
51
|
+
* 数据源(如果是后端分页,则表示当页数据,否则是全量数据)
|
|
52
|
+
*/
|
|
53
|
+
dataSource: Ref<T[]>;
|
|
54
|
+
/**
|
|
55
|
+
* 同Table的rowkey
|
|
56
|
+
*/
|
|
57
|
+
rowKey: ApTableProps['rowKey'];
|
|
58
|
+
};
|
|
59
|
+
declare const useTableRowSelection: <RecordType = Recordable>(props: RowSelectionParams<RecordType>) => RowSelectionReturnType<RecordType>;
|
|
60
|
+
export default useTableRowSelection;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const n=require("vue"),w=require("lodash-unified"),g=l=>{const u=n.ref([]);function r(e,t){u.value=t}const c=e=>w.isFunction(l.rowKey)?l.rowKey(e):e[l.rowKey],o=n.computed(()=>{const e=new Map;return n.unref(u).forEach(t=>{e.set(c(t),t)}),e});function s(e){return n.unref(o).has(c(e))}function f(e){const t=n.unref(o);t.set(c(e),e),u.value=[...t.values()]}function d(e){const t=n.unref(o);t.delete(c(e)),u.value=[...t.values()]}function i(){const e=n.unref(o);n.unref(l.dataSource).forEach(t=>{e.set(c(t),t)}),u.value=[...e.values()]}function S(e){const t=n.unref(o),a=c(e);t.has(a)?t.delete(a):t.set(a,e),u.value=[...t.values()]}function v(){const e=n.unref(o);n.unref(l.dataSource).forEach(t=>{e.delete(c(t))}),u.value=[...e.values()]}function M(){u.value=[]}return{select:f,unSelect:d,isSelected:s,selectAll:i,unSelectAll:v,clearAll:M,toggleSelect:S,selectedRows:u,rowSelection:n.computed(()=>({...l,onChange:r,selectedRowKeys:n.unref(u).map(e=>c(e))}))}};exports.default=g;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ColumnType, TableProps } from 'ant-design-vue/es/table';
|
|
2
|
-
import { CompareFn, SortOrder } from 'ant-design-vue/es/table/interface';
|
|
2
|
+
import { CompareFn, SortOrder, TableRowSelection } from 'ant-design-vue/es/table/interface';
|
|
3
3
|
import { ApFormSearchFormProps } from '../ap-form';
|
|
4
4
|
import { ApFormItemCheckboxProps, ApFormItemDateProps, ApFormItemDateRangeProps, ApFormItemNumberProps, ApFormItemRadioProps, ApFormItemSelectProps, ApFormItemSwitchProps, ApFormItemTextAreaProps, ApFormItemTextPasswordProps, ApFormItemTextProps } from '../ap-form/items/interface';
|
|
5
5
|
import { Recordable } from '../type';
|
|
@@ -7,6 +7,7 @@ import { ComputedRef, CSSProperties, VNode } from 'vue';
|
|
|
7
7
|
import { ApActionGroupProps } from '../ap-action';
|
|
8
8
|
import { ApTableIndexProps } from './components/interface';
|
|
9
9
|
import { EllipsisConfig } from 'ant-design-vue/es/typography/Base';
|
|
10
|
+
import { RowSelectionReturnType } from './hooks/use-table-row-selection';
|
|
10
11
|
|
|
11
12
|
export type ValueEnumType = {
|
|
12
13
|
text: string;
|
|
@@ -64,6 +65,7 @@ export type ExtraProColumnType<T> = Omit<ColumnType<T>, 'children' | 'filters' |
|
|
|
64
65
|
multiple?: number;
|
|
65
66
|
};
|
|
66
67
|
};
|
|
68
|
+
export type ApTableRowSelection<RecordType = any> = Omit<TableRowSelection<RecordType>, 'selectedRowKeys' | 'onChange' | 'onSelect' | 'onSelectAll' | 'onSelectInvert' | 'onSelectNone'>;
|
|
67
69
|
export type ApColumnType<RecordType = any, ValueType extends ApTableValueTypes = ApTableValueTypes> = ValueType extends ApTableValueTypes ? ExtraProColumnType<RecordType> & {
|
|
68
70
|
children?: ApColumnType<RecordType, ValueType>[];
|
|
69
71
|
/**
|
|
@@ -141,11 +143,15 @@ export type RequestData<T> = {
|
|
|
141
143
|
data: T[] | undefined;
|
|
142
144
|
total: number;
|
|
143
145
|
} & Record<string, any>;
|
|
144
|
-
export type ApTableProps<RecordType = any, ParamsType = any> = Omit<TableProps<RecordType>, 'columns' | 'pagination' | 'dataSource' | 'size'> & {
|
|
146
|
+
export type ApTableProps<RecordType = any, ParamsType = any> = Omit<TableProps<RecordType>, 'columns' | 'pagination' | 'dataSource' | 'size' | 'rowSelection'> & {
|
|
145
147
|
/**
|
|
146
148
|
* 列配置
|
|
147
149
|
*/
|
|
148
150
|
columns?: ApColumnType<RecordType, any>[];
|
|
151
|
+
/**
|
|
152
|
+
* 行选中配置
|
|
153
|
+
*/
|
|
154
|
+
rowSelection?: true | ApTableRowSelection<RecordType>;
|
|
149
155
|
/**
|
|
150
156
|
* 是否启用卡片样式
|
|
151
157
|
*/
|
|
@@ -252,4 +258,10 @@ export type ApTableExpose<SearchParamsType = Recordable, RecordType = any> = {
|
|
|
252
258
|
* 表格数据源
|
|
253
259
|
*/
|
|
254
260
|
dataSource: ComputedRef<RecordType>;
|
|
261
|
+
/**
|
|
262
|
+
* 行选中相关的数据和API
|
|
263
|
+
*/
|
|
264
|
+
rowSelection?: Omit<RowSelectionReturnType<RecordType>, 'rowSelection'> & {
|
|
265
|
+
selectedRows: ComputedRef<RecordType[]>;
|
|
266
|
+
};
|
|
255
267
|
};
|
|
@@ -90,12 +90,14 @@
|
|
|
90
90
|
}
|
|
91
91
|
.aplus-ap-table .ant-table-column-sorters {
|
|
92
92
|
justify-content: unset;
|
|
93
|
+
display: inline-flex;
|
|
93
94
|
}
|
|
94
95
|
.aplus-ap-table .ant-table-column-sorters .ant-table-column-title {
|
|
95
96
|
flex: unset;
|
|
96
97
|
}
|
|
97
98
|
.aplus-ap-table .ant-table-filter-column {
|
|
98
99
|
justify-content: unset;
|
|
100
|
+
display: inline-flex;
|
|
99
101
|
}
|
|
100
102
|
.aplus-ap-table .ant-table-filter-column .ant-table-column-title {
|
|
101
103
|
flex: unset;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PropType, VNode, DefineComponent, ComputedRef, ComponentOptionsMixin, PublicProps, ExtractPropTypes, RendererNode, RendererElement } from 'vue';
|
|
2
2
|
import { FileUploadType, BeforeUpload, CustomRequest } from './apUploadTypes';
|
|
3
|
-
import {
|
|
3
|
+
import { GetOssAccess } from './hooks/useOss';
|
|
4
4
|
|
|
5
5
|
declare function clear(): void;
|
|
6
6
|
declare const _default: DefineComponent<{
|
|
@@ -42,7 +42,7 @@ declare const _default: DefineComponent<{
|
|
|
42
42
|
type: PropType<CustomRequest>;
|
|
43
43
|
};
|
|
44
44
|
getOssAccess: {
|
|
45
|
-
type: PropType<
|
|
45
|
+
type: PropType<GetOssAccess>;
|
|
46
46
|
};
|
|
47
47
|
}, {
|
|
48
48
|
done: ComputedRef<boolean>;
|
|
@@ -88,7 +88,7 @@ declare const _default: DefineComponent<{
|
|
|
88
88
|
type: PropType<CustomRequest>;
|
|
89
89
|
};
|
|
90
90
|
getOssAccess: {
|
|
91
|
-
type: PropType<
|
|
91
|
+
type: PropType<GetOssAccess>;
|
|
92
92
|
};
|
|
93
93
|
}>> & {
|
|
94
94
|
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { accessCreate, Oss } from '@aplus-frontend/oss';
|
|
2
2
|
import { Translator } from '../../config-provider';
|
|
3
3
|
import { Ref } from 'vue';
|
|
4
4
|
|
|
5
5
|
export type { Oss } from '@aplus-frontend/oss';
|
|
6
|
-
export type GetOssAccess =
|
|
6
|
+
export type GetOssAccess = () => Promise<accessCreate>;
|
|
7
7
|
export declare function injectLocaleToOss(tValue: Translator, langValue: Ref<string>): void;
|
|
8
8
|
declare function put({ file, dirName, oss, successCallBack, errorCallBack, progressCallBack }: {
|
|
9
9
|
file: File;
|
|
@@ -21,4 +21,4 @@ export declare function useOssInit(getOssAccess: GetOssAccess): Promise<{
|
|
|
21
21
|
client: Oss;
|
|
22
22
|
put: typeof put;
|
|
23
23
|
}>;
|
|
24
|
-
export declare function getOssInstance(getOssAccess:
|
|
24
|
+
export declare function getOssInstance(getOssAccess: GetOssAccess): Promise<Oss>;
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
.aplus-ap-select-layout {
|
|
2
|
+
display: flex;
|
|
3
|
+
height: 100%;
|
|
4
|
+
width: 100%;
|
|
5
|
+
}
|
|
6
|
+
.aplus-ap-select-layout .v-enter-active,
|
|
7
|
+
.aplus-ap-select-layout .v-leave-active {
|
|
8
|
+
transition: all 0.2s, background 0s;
|
|
9
|
+
}
|
|
10
|
+
.aplus-ap-select-layout .v-enter-from,
|
|
11
|
+
.aplus-ap-select-layout .v-leave-to {
|
|
12
|
+
width: 0;
|
|
13
|
+
min-width: 0;
|
|
14
|
+
max-width: 0;
|
|
15
|
+
margin-right: 0;
|
|
16
|
+
}
|
|
17
|
+
.aplus-ap-select-layout-side {
|
|
18
|
+
display: flex;
|
|
19
|
+
flex-direction: column;
|
|
20
|
+
width: 214px;
|
|
21
|
+
min-width: 214px;
|
|
22
|
+
max-width: 214px;
|
|
23
|
+
margin-right: 16px;
|
|
24
|
+
overflow: hidden;
|
|
25
|
+
background-color: #fff;
|
|
26
|
+
}
|
|
27
|
+
.aplus-ap-select-layout-side__header {
|
|
28
|
+
display: flex;
|
|
29
|
+
align-items: center;
|
|
30
|
+
justify-content: space-between;
|
|
31
|
+
padding: 12px 16px;
|
|
32
|
+
border-bottom: 1px solid #e9e9e9;
|
|
33
|
+
overflow: hidden;
|
|
34
|
+
white-space: nowrap;
|
|
35
|
+
}
|
|
36
|
+
.aplus-ap-select-layout-side__header > h3 {
|
|
37
|
+
margin: 0;
|
|
38
|
+
color: #333;
|
|
39
|
+
font-size: 16px;
|
|
40
|
+
font-weight: bold;
|
|
41
|
+
line-height: 18px;
|
|
42
|
+
}
|
|
43
|
+
.aplus-ap-select-layout-side__header--imgWrap {
|
|
44
|
+
border-radius: 2px;
|
|
45
|
+
cursor: pointer;
|
|
46
|
+
font-size: 24px;
|
|
47
|
+
}
|
|
48
|
+
.aplus-ap-select-layout-side__header--imgWrap:hover {
|
|
49
|
+
background: #f5f5f5;
|
|
50
|
+
}
|
|
51
|
+
.aplus-ap-select-layout-side__header--imgWrap > img {
|
|
52
|
+
width: 24px;
|
|
53
|
+
height: 24px;
|
|
54
|
+
}
|
|
55
|
+
.aplus-ap-select-layout-side__body {
|
|
56
|
+
position: relative;
|
|
57
|
+
flex: 1;
|
|
58
|
+
}
|
|
59
|
+
.aplus-ap-select-layout-side__body--search {
|
|
60
|
+
margin: 10px 0;
|
|
61
|
+
padding: 0 16px;
|
|
62
|
+
}
|
|
63
|
+
.aplus-ap-select-layout-side__body--scroll {
|
|
64
|
+
position: absolute;
|
|
65
|
+
inset: 52px 0 0;
|
|
66
|
+
overflow-y: auto;
|
|
67
|
+
padding: 0 16px;
|
|
68
|
+
}
|
|
69
|
+
.aplus-ap-select-layout-side__body--scroll-item {
|
|
70
|
+
margin-bottom: 8px;
|
|
71
|
+
padding: 8px 12px;
|
|
72
|
+
overflow: hidden;
|
|
73
|
+
color: #333;
|
|
74
|
+
line-height: 22px;
|
|
75
|
+
width: calc(214px - 32px);
|
|
76
|
+
text-overflow: ellipsis;
|
|
77
|
+
text-wrap: nowrap;
|
|
78
|
+
cursor: pointer;
|
|
79
|
+
border-radius: 4px;
|
|
80
|
+
}
|
|
81
|
+
.aplus-ap-select-layout-side__body--scroll-item:hover {
|
|
82
|
+
background: #f5f5f5;
|
|
83
|
+
}
|
|
84
|
+
.aplus-ap-select-layout-side__body--scroll-item.active {
|
|
85
|
+
background-color: #e4faf1;
|
|
86
|
+
color: #34b77c;
|
|
87
|
+
font-weight: bold;
|
|
88
|
+
}
|
|
89
|
+
.aplus-ap-select-layout-content {
|
|
90
|
+
flex: 1;
|
|
91
|
+
overflow-x: hidden;
|
|
92
|
+
display: flex;
|
|
93
|
+
flex-direction: column;
|
|
94
|
+
}
|
|
95
|
+
.aplus-ap-select-layout-content__header {
|
|
96
|
+
display: flex;
|
|
97
|
+
align-items: center;
|
|
98
|
+
height: 32px;
|
|
99
|
+
padding: 16px 16px 0;
|
|
100
|
+
box-sizing: content-box;
|
|
101
|
+
background: #fff;
|
|
102
|
+
}
|
|
103
|
+
.aplus-ap-select-layout-content__header--imgWrap {
|
|
104
|
+
margin-right: 10px;
|
|
105
|
+
border-radius: 2px;
|
|
106
|
+
cursor: pointer;
|
|
107
|
+
font-size: 24px;
|
|
108
|
+
}
|
|
109
|
+
.aplus-ap-select-layout-content__header--imgWrap:hover {
|
|
110
|
+
background: #f5f5f5;
|
|
111
|
+
}
|
|
112
|
+
.aplus-ap-select-layout-content__header--title {
|
|
113
|
+
margin: 0;
|
|
114
|
+
font-size: 16px;
|
|
115
|
+
font-weight: bold;
|
|
116
|
+
line-height: 32px;
|
|
117
|
+
}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { ApSelectItem } from './interface';
|
|
2
|
+
import { VNodeProps, AllowedComponentProps, ComponentCustomProps, ShallowUnwrapRef, VNode, RendererNode, RendererElement } from 'vue';
|
|
3
|
+
|
|
4
|
+
declare const _default: <T extends ApSelectItem>(__VLS_props: {
|
|
5
|
+
onAfterEnter?: ((el: Element) => any) | undefined;
|
|
6
|
+
onAfterLeave?: ((el: Element) => any) | undefined;
|
|
7
|
+
title: string;
|
|
8
|
+
request: () => Promise<T[]>;
|
|
9
|
+
onOnSelect?: ((value: T) => any) | undefined;
|
|
10
|
+
defaultFold?: boolean | undefined;
|
|
11
|
+
} & VNodeProps & AllowedComponentProps & ComponentCustomProps, __VLS_ctx?: {
|
|
12
|
+
attrs: any;
|
|
13
|
+
slots: {
|
|
14
|
+
itemRender?(_: {
|
|
15
|
+
item: T;
|
|
16
|
+
}): any;
|
|
17
|
+
default?(_: {}): any;
|
|
18
|
+
};
|
|
19
|
+
emit: {
|
|
20
|
+
(event: 'onSelect', value: T): void;
|
|
21
|
+
(event: 'afterEnter', el: Element): void;
|
|
22
|
+
(event: 'afterLeave', el: Element): void;
|
|
23
|
+
};
|
|
24
|
+
} | undefined, __VLS_expose?: ((exposed: ShallowUnwrapRef<{}>) => void) | undefined, __VLS_setup?: Promise<{
|
|
25
|
+
props: {
|
|
26
|
+
onAfterEnter?: ((el: Element) => any) | undefined;
|
|
27
|
+
onAfterLeave?: ((el: Element) => any) | undefined;
|
|
28
|
+
title: string;
|
|
29
|
+
request: () => Promise<T[]>;
|
|
30
|
+
onOnSelect?: ((value: T) => any) | undefined;
|
|
31
|
+
defaultFold?: boolean | undefined;
|
|
32
|
+
} & VNodeProps & AllowedComponentProps & ComponentCustomProps;
|
|
33
|
+
expose(exposed: ShallowUnwrapRef<{}>): void;
|
|
34
|
+
attrs: any;
|
|
35
|
+
slots: {
|
|
36
|
+
itemRender?(_: {
|
|
37
|
+
item: T;
|
|
38
|
+
}): any;
|
|
39
|
+
default?(_: {}): any;
|
|
40
|
+
};
|
|
41
|
+
emit: {
|
|
42
|
+
(event: 'onSelect', value: T): void;
|
|
43
|
+
(event: 'afterEnter', el: Element): void;
|
|
44
|
+
(event: 'afterLeave', el: Element): void;
|
|
45
|
+
};
|
|
46
|
+
}>) => VNode<RendererNode, RendererElement, {
|
|
47
|
+
[key: string]: any;
|
|
48
|
+
}> & {
|
|
49
|
+
__ctx?: {
|
|
50
|
+
props: {
|
|
51
|
+
onAfterEnter?: ((el: Element) => any) | undefined;
|
|
52
|
+
onAfterLeave?: ((el: Element) => any) | undefined;
|
|
53
|
+
title: string;
|
|
54
|
+
request: () => Promise<T[]>;
|
|
55
|
+
onOnSelect?: ((value: T) => any) | undefined;
|
|
56
|
+
defaultFold?: boolean | undefined;
|
|
57
|
+
} & VNodeProps & AllowedComponentProps & ComponentCustomProps;
|
|
58
|
+
expose(exposed: ShallowUnwrapRef<{}>): void;
|
|
59
|
+
attrs: any;
|
|
60
|
+
slots: {
|
|
61
|
+
itemRender?(_: {
|
|
62
|
+
item: T;
|
|
63
|
+
}): any;
|
|
64
|
+
default?(_: {}): any;
|
|
65
|
+
};
|
|
66
|
+
emit: {
|
|
67
|
+
(event: 'onSelect', value: T): void;
|
|
68
|
+
(event: 'afterEnter', el: Element): void;
|
|
69
|
+
(event: 'afterLeave', el: Element): void;
|
|
70
|
+
};
|
|
71
|
+
} | undefined;
|
|
72
|
+
};
|
|
73
|
+
export default _default;
|
|
74
|
+
type __VLS_Prettify<T> = {
|
|
75
|
+
[K in keyof T]: T[K];
|
|
76
|
+
} & {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./select-layout.vue2.js");exports.default=e.default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../ap-field/index.js");const E=require("@aplus-frontend/icon");require("../../config-provider/index.js");const p=require("ant-design-vue"),S=require("lodash-unified");require("./index.css");const b=require("../../config-provider/hooks/use-namespace.js"),w=require("../../ap-field/text/index.js"),x=["onClick"],B=e.defineComponent({__name:"select-layout",props:{title:{},request:{},defaultFold:{type:Boolean,default:!1}},emits:["onSelect","afterEnter","afterLeave"],setup(k,{emit:y}){const{b:s,be:c,bem:a}=b.useNamespace("ap-select-layout"),o=k,i=y,u=e.ref(),r=e.ref(o.defaultFold),d=e.ref(!o.defaultFold),f=e.ref(),v=e.ref(),m=e.ref(),h=e.ref(""),C=()=>{r.value=!r.value,f.value=!1,v.value=!1},N=t=>{m.value=t,i("onSelect",t)},g=S.debounce(t=>{var n;h.value=(n=t.target)==null?void 0:n.value},500),z=e.computed(()=>{var t;return(t=u.value)==null?void 0:t.filter(n=>n.name.includes(h.value))}),T=t=>{d.value=!0,i("afterEnter",t)},q=t=>{d.value=!1,i("afterLeave",t)};return e.onMounted(()=>{o.request().then(t=>{var n;u.value=t,N((n=u.value)==null?void 0:n[0])})}),(t,n)=>{var V;return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(e.unref(s)())},[e.createVNode(e.Transition,{mode:"out-in",onAfterEnter:T,onAfterLeave:q},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",{class:e.normalizeClass(e.unref(s)("side"))},[e.createElementVNode("div",{class:e.normalizeClass(e.unref(c)("side","header"))},[e.createElementVNode("h3",null,e.toDisplayString(o.title),1),e.createElementVNode("div",{class:e.normalizeClass(e.unref(a)("side","header","imgWrap"))},[e.createVNode(e.unref(p.Tooltip),{open:f.value,"onUpdate:open":n[0]||(n[0]=l=>f.value=l)},{title:e.withCtx(()=>[e.createTextVNode("收起")]),default:e.withCtx(()=>[e.createVNode(e.unref(E.IconApLeftarrow),{onClick:C})]),_:1},8,["open"])],2)],2),e.createElementVNode("div",{class:e.normalizeClass(e.unref(c)("side","body"))},[e.createElementVNode("div",{class:e.normalizeClass(e.unref(a)("side","body","search"))},[e.createVNode(e.unref(w.ApFieldText),{placeholder:"请输入",onChange:e.unref(g)},null,8,["onChange"])],2),e.createElementVNode("div",{class:e.normalizeClass(e.unref(a)("side","body","scroll"))},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(z.value,l=>e.withDirectives((e.openBlock(),e.createElementBlock("div",{key:l.value,class:e.normalizeClass(`${e.unref(a)("side","body","scroll-item")} ${m.value===l?"active":""}`),onClick:L=>N(l)},[e.renderSlot(t.$slots,"itemRender",{item:l},()=>[e.createVNode(e.unref(p.TypographyText),{ellipsis:{tooltip:l.name},content:`${l.name}`},null,8,["ellipsis","content"])])],10,x)),[[e.vShow,d.value]])),128))],2)],2)],2),[[e.vShow,!r.value]])]),_:3}),e.createElementVNode("div",{class:e.normalizeClass(e.unref(s)("content"))},[e.createElementVNode("div",{class:e.normalizeClass(e.unref(c)("content","header"))},[r.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(e.unref(a)("content","header","imgWrap"))},[e.createVNode(e.unref(p.Tooltip),{open:v.value,"onUpdate:open":n[1]||(n[1]=l=>v.value=l)},{title:e.withCtx(()=>[e.createTextVNode("展开")]),default:e.withCtx(()=>[e.createVNode(e.unref(E.IconApMenu),{onClick:C})]),_:1},8,["open"])],2)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(e.unref(a)("content","header","title"))},e.toDisplayString((V=m.value)==null?void 0:V.name),3)],2),e.renderSlot(t.$slots,"default")],2)],2)}}});exports.default=B;
|
|
@@ -1,11 +1,13 @@
|
|
|
1
|
-
import { CreateComponentPublicInstance, ExtractPropTypes, PropType, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ComponentOptionsBase, Plugin, CSSProperties } from 'vue';
|
|
1
|
+
import { CreateComponentPublicInstance, ExtractPropTypes, PropType, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ComponentOptionsBase, Plugin, CSSProperties, ShallowUnwrapRef, VNode, RendererNode, RendererElement } from 'vue';
|
|
2
2
|
import { LiteralUnion } from 'ant-design-vue/es/_util/type';
|
|
3
3
|
import { TooltipPlacement } from 'ant-design-vue/es/tooltip';
|
|
4
4
|
import { ApStatusProps } from './ap-status/interface';
|
|
5
|
+
import { ApSelectItem } from './ap-select-layout/interface';
|
|
5
6
|
export type { ApTitleProps } from './title/interface';
|
|
6
7
|
export type { ApExpandAlertProps } from './expandAlert/interface';
|
|
7
8
|
export type { ApLabelProps } from './ap-label/interface';
|
|
8
9
|
export type { ApStatusProps, ApStatusGroupProps, ApStatusGroupItemProps } from './ap-status/interface';
|
|
10
|
+
export type { ApSelectItem, ApSelectLayoutProps } from './ap-select-layout/interface';
|
|
9
11
|
export declare const ApTitle: {
|
|
10
12
|
new (...args: any[]): CreateComponentPublicInstance<Readonly< ExtractPropTypes<{
|
|
11
13
|
trigger: {
|
|
@@ -839,3 +841,76 @@ export declare const ApStatusGroup: {
|
|
|
839
841
|
onClick?: (() => void) | undefined;
|
|
840
842
|
};
|
|
841
843
|
});
|
|
844
|
+
export declare const ApSelectLayout: (<T extends ApSelectItem>(__VLS_props: {
|
|
845
|
+
onAfterEnter?: ((el: Element) => any) | undefined;
|
|
846
|
+
onAfterLeave?: ((el: Element) => any) | undefined;
|
|
847
|
+
title: string;
|
|
848
|
+
request: () => Promise<T[]>;
|
|
849
|
+
onOnSelect?: ((value: T) => any) | undefined;
|
|
850
|
+
defaultFold?: boolean | undefined;
|
|
851
|
+
} & VNodeProps & AllowedComponentProps & ComponentCustomProps, __VLS_ctx?: {
|
|
852
|
+
attrs: any;
|
|
853
|
+
slots: {
|
|
854
|
+
itemRender?(_: {
|
|
855
|
+
item: T;
|
|
856
|
+
}): any;
|
|
857
|
+
default?(_: {}): any;
|
|
858
|
+
};
|
|
859
|
+
emit: {
|
|
860
|
+
(event: "onSelect", value: T): void;
|
|
861
|
+
(event: "afterEnter", el: Element): void;
|
|
862
|
+
(event: "afterLeave", el: Element): void;
|
|
863
|
+
};
|
|
864
|
+
} | undefined, __VLS_expose?: ((exposed: ShallowUnwrapRef<{}>) => void) | undefined, __VLS_setup?: Promise<{
|
|
865
|
+
props: {
|
|
866
|
+
onAfterEnter?: ((el: Element) => any) | undefined;
|
|
867
|
+
onAfterLeave?: ((el: Element) => any) | undefined;
|
|
868
|
+
title: string;
|
|
869
|
+
request: () => Promise<T[]>;
|
|
870
|
+
onOnSelect?: ((value: T) => any) | undefined;
|
|
871
|
+
defaultFold?: boolean | undefined;
|
|
872
|
+
} & VNodeProps & AllowedComponentProps & ComponentCustomProps;
|
|
873
|
+
expose(exposed: ShallowUnwrapRef<{}>): void;
|
|
874
|
+
attrs: any;
|
|
875
|
+
slots: {
|
|
876
|
+
itemRender?(_: {
|
|
877
|
+
item: T;
|
|
878
|
+
}): any;
|
|
879
|
+
default?(_: {}): any;
|
|
880
|
+
};
|
|
881
|
+
emit: {
|
|
882
|
+
(event: "onSelect", value: T): void;
|
|
883
|
+
(event: "afterEnter", el: Element): void;
|
|
884
|
+
(event: "afterLeave", el: Element): void;
|
|
885
|
+
};
|
|
886
|
+
}>) => VNode<RendererNode, RendererElement, {
|
|
887
|
+
[key: string]: any;
|
|
888
|
+
}> & {
|
|
889
|
+
__ctx?: {
|
|
890
|
+
props: {
|
|
891
|
+
onAfterEnter?: ((el: Element) => any) | undefined;
|
|
892
|
+
onAfterLeave?: ((el: Element) => any) | undefined;
|
|
893
|
+
title: string;
|
|
894
|
+
request: () => Promise<T[]>;
|
|
895
|
+
onOnSelect?: ((value: T) => any) | undefined;
|
|
896
|
+
defaultFold?: boolean | undefined;
|
|
897
|
+
} & VNodeProps & AllowedComponentProps & ComponentCustomProps;
|
|
898
|
+
expose(exposed: ShallowUnwrapRef<{}>): void;
|
|
899
|
+
attrs: any;
|
|
900
|
+
slots: {
|
|
901
|
+
itemRender?(_: {
|
|
902
|
+
item: T;
|
|
903
|
+
}): any;
|
|
904
|
+
default?(_: {}): any;
|
|
905
|
+
};
|
|
906
|
+
emit: {
|
|
907
|
+
(event: "onSelect", value: T): void;
|
|
908
|
+
(event: "afterEnter", el: Element): void;
|
|
909
|
+
(event: "afterLeave", el: Element): void;
|
|
910
|
+
};
|
|
911
|
+
} | undefined;
|
|
912
|
+
}) & Plugin & (new (...args: any[]) => {
|
|
913
|
+
$props: {
|
|
914
|
+
onClick?: (() => void) | undefined;
|
|
915
|
+
};
|
|
916
|
+
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("@aplus-frontend/utils");require("./title/ApTitle.vue.js");require("./expandAlert/ApExpandAlert.vue.js");require("./ap-label/ApLabel.vue.js");require("./ap-status/ApStatus.vue.js");require("./ap-status/ApStatusGroup.vue.js");require("./ap-select-layout/select-layout.vue.js");const t=require("./title/ApTitle.vue2.js"),u=require("./expandAlert/ApExpandAlert.vue2.js"),r=require("./ap-label/ApLabel.vue2.js"),p=require("./ap-status/ApStatus.vue2.js"),_=require("./ap-status/ApStatusGroup.vue2.js"),s=require("./ap-select-layout/select-layout.vue2.js"),l=e.withInstall(t.default),a=u.default,i=e.withInstall(r.default),n=e.withInstall(p.default),c=e.withInstall(_.default),o=e.withInstall(s.default);exports.ApExpandAlert=a;exports.ApLabel=i;exports.ApSelectLayout=o;exports.ApStatus=n;exports.ApStatusGroup=c;exports.ApTitle=l;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Ref, ExtractPropTypes, PropType, DefineComponent, ComponentOptionsMixin, PublicProps } from 'vue';
|
|
2
2
|
import { default as __DTS_DEFAULT_0__ } from 'ant-design-vue/es/config-provider/renderEmpty';
|
|
3
3
|
import { TransformCellTextProps } from 'ant-design-vue/es/table/interface';
|
|
4
4
|
import { CSPConfig } from 'ant-design-vue/es/config-provider';
|
|
@@ -9,6 +9,149 @@ import { RequiredMark } from 'ant-design-vue/es/form/Form';
|
|
|
9
9
|
import { ThemeConfig } from 'ant-design-vue/es/config-provider/context';
|
|
10
10
|
import { LocaleType } from 'src';
|
|
11
11
|
import { ApiType, TableDefaultConfig, ScrollbarGlobalConfig, ApUploadConfig } from './constants';
|
|
12
|
+
|
|
13
|
+
export declare const globalConfigCached: Ref<Partial< ExtractPropTypes<{
|
|
14
|
+
iconPrefixCls: StringConstructor;
|
|
15
|
+
getTargetContainer: {
|
|
16
|
+
type: PropType<() => Window | HTMLElement>;
|
|
17
|
+
};
|
|
18
|
+
getPopupContainer: {
|
|
19
|
+
type: PropType<(triggerNode?: HTMLElement | undefined) => HTMLElement>;
|
|
20
|
+
};
|
|
21
|
+
prefixCls: StringConstructor;
|
|
22
|
+
getPrefixCls: {
|
|
23
|
+
type: PropType<(suffixCls?: string | undefined, customizePrefixCls?: string | undefined) => string>;
|
|
24
|
+
};
|
|
25
|
+
renderEmpty: {
|
|
26
|
+
type: PropType<__DTS_DEFAULT_0__>;
|
|
27
|
+
};
|
|
28
|
+
transformCellText: {
|
|
29
|
+
type: PropType<(tableProps: TransformCellTextProps) => any>;
|
|
30
|
+
};
|
|
31
|
+
csp: {
|
|
32
|
+
type: PropType<CSPConfig>;
|
|
33
|
+
default: CSPConfig;
|
|
34
|
+
};
|
|
35
|
+
input: {
|
|
36
|
+
type: PropType<{
|
|
37
|
+
autocomplete?: string | undefined;
|
|
38
|
+
}>;
|
|
39
|
+
default: {
|
|
40
|
+
autocomplete?: string | undefined;
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
autoInsertSpaceInButton: {
|
|
44
|
+
type: BooleanConstructor;
|
|
45
|
+
default: any;
|
|
46
|
+
};
|
|
47
|
+
locale: {
|
|
48
|
+
type: PropType<Locale>;
|
|
49
|
+
default: Locale;
|
|
50
|
+
};
|
|
51
|
+
pageHeader: {
|
|
52
|
+
type: PropType<{
|
|
53
|
+
ghost?: boolean | undefined;
|
|
54
|
+
}>;
|
|
55
|
+
default: {
|
|
56
|
+
ghost?: boolean | undefined;
|
|
57
|
+
};
|
|
58
|
+
};
|
|
59
|
+
componentSize: {
|
|
60
|
+
type: PropType<ButtonSize>;
|
|
61
|
+
};
|
|
62
|
+
componentDisabled: {
|
|
63
|
+
type: BooleanConstructor;
|
|
64
|
+
default: any;
|
|
65
|
+
};
|
|
66
|
+
direction: {
|
|
67
|
+
type: PropType<"ltr" | "rtl">;
|
|
68
|
+
default: string;
|
|
69
|
+
};
|
|
70
|
+
space: {
|
|
71
|
+
type: PropType<{
|
|
72
|
+
size?: number | ButtonSize;
|
|
73
|
+
}>;
|
|
74
|
+
default: {
|
|
75
|
+
size?: number | ButtonSize;
|
|
76
|
+
};
|
|
77
|
+
};
|
|
78
|
+
virtual: {
|
|
79
|
+
type: BooleanConstructor;
|
|
80
|
+
default: any;
|
|
81
|
+
};
|
|
82
|
+
dropdownMatchSelectWidth: {
|
|
83
|
+
type: (BooleanConstructor | NumberConstructor)[];
|
|
84
|
+
default: boolean;
|
|
85
|
+
};
|
|
86
|
+
form: {
|
|
87
|
+
type: PropType<{
|
|
88
|
+
validateMessages?: ValidateMessages | undefined;
|
|
89
|
+
requiredMark?: RequiredMark | undefined;
|
|
90
|
+
colon?: boolean | undefined;
|
|
91
|
+
}>;
|
|
92
|
+
default: {
|
|
93
|
+
validateMessages?: ValidateMessages | undefined;
|
|
94
|
+
requiredMark?: RequiredMark | undefined;
|
|
95
|
+
colon?: boolean | undefined;
|
|
96
|
+
};
|
|
97
|
+
};
|
|
98
|
+
pagination: {
|
|
99
|
+
type: PropType<{
|
|
100
|
+
showSizeChanger?: boolean | undefined;
|
|
101
|
+
}>;
|
|
102
|
+
default: {
|
|
103
|
+
showSizeChanger?: boolean | undefined;
|
|
104
|
+
};
|
|
105
|
+
};
|
|
106
|
+
theme: {
|
|
107
|
+
type: PropType<ThemeConfig>;
|
|
108
|
+
default: ThemeConfig;
|
|
109
|
+
};
|
|
110
|
+
select: {
|
|
111
|
+
type: PropType<{
|
|
112
|
+
showSearch?: boolean | undefined;
|
|
113
|
+
}>;
|
|
114
|
+
default: {
|
|
115
|
+
showSearch?: boolean | undefined;
|
|
116
|
+
};
|
|
117
|
+
};
|
|
118
|
+
wave: {
|
|
119
|
+
type: PropType<{
|
|
120
|
+
disabled?: boolean | undefined;
|
|
121
|
+
}>;
|
|
122
|
+
default: {
|
|
123
|
+
disabled?: boolean | undefined;
|
|
124
|
+
};
|
|
125
|
+
};
|
|
126
|
+
aplusLocale: {
|
|
127
|
+
type: PropType<LocaleType>;
|
|
128
|
+
};
|
|
129
|
+
namespace: {
|
|
130
|
+
type: StringConstructor;
|
|
131
|
+
default: string;
|
|
132
|
+
};
|
|
133
|
+
api: {
|
|
134
|
+
type: PropType<ApiType>;
|
|
135
|
+
default: () => {};
|
|
136
|
+
};
|
|
137
|
+
table: {
|
|
138
|
+
type: PropType<TableDefaultConfig>;
|
|
139
|
+
};
|
|
140
|
+
scrollbar: {
|
|
141
|
+
type: PropType<ScrollbarGlobalConfig>;
|
|
142
|
+
default: () => {
|
|
143
|
+
native: boolean;
|
|
144
|
+
};
|
|
145
|
+
};
|
|
146
|
+
uiMode: {
|
|
147
|
+
type: PropType<"aplus" | "admin">;
|
|
148
|
+
default: string;
|
|
149
|
+
};
|
|
150
|
+
apUpload: {
|
|
151
|
+
type: PropType<ApUploadConfig>;
|
|
152
|
+
default: () => {};
|
|
153
|
+
};
|
|
154
|
+
}>>>;
|
|
12
155
|
export declare const ConfigProvider: DefineComponent<{
|
|
13
156
|
iconPrefixCls: StringConstructor;
|
|
14
157
|
getTargetContainer: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue"),l=require("ant-design-vue"),c=require("./hooks/use-global-config.js"),u=require("./config-provider-props.js"),d=require("./constants.js"),f=require("../utils/config-provider-preset.js");function s(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!o.isVNode(e)}const n=o.ref({}),g=o.defineComponent({name:"AplusConfigProvider",props:u.configProviderProps(),setup(e,{slots:i}){const a=o.computed(()=>({namespace:e.namespace,aplusLocale:e.aplusLocale,api:e.api,table:{...d.tableDefaultConfig,...e.table||{}},scrollbar:e.scrollbar,uiMode:e.uiMode,apUpload:e.apUpload})),r=c.provideGlobalConfig(a);return o.watch(()=>e,t=>{n.value=f.mergeAntdProvideConfig(t)},{deep:!0,immediate:!0}),()=>{let t;return o.createVNode(l.ConfigProvider,n.value,s(t=o.renderSlot(i,"default",{config:r==null?void 0:r.value}))?t:{default:()=>[t]})}}});exports.ConfigProvider=g;exports.globalConfigCached=n;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const n=require("@aplus-frontend/utils"),
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const n=require("@aplus-frontend/utils"),a=require("./config-provider.js"),l=require("./config-provider-props.js"),i=require("./constants.js"),r=require("./hooks/use-global-config.js"),e=require("./hooks/use-locale.js"),o=require("./hooks/use-namespace.js"),t=n.withInstall(a.ConfigProvider);exports.ConfigProvider=a.ConfigProvider;exports.globalConfigCached=a.globalConfigCached;exports.configProviderProps=l.configProviderProps;exports.configProviderContextKey=i.configProviderContextKey;exports.tableDefaultConfig=i.tableDefaultConfig;exports.keysOf=r.keysOf;exports.provideGlobalConfig=r.provideGlobalConfig;exports.useGlobalConfig=r.useGlobalConfig;exports.buildLocaleContext=e.buildLocaleContext;exports.buildTranslator=e.buildTranslator;exports.localeContextKey=e.localeContextKey;exports.translate=e.translate;exports.useLocale=e.useLocale;exports.defaultNamespace=o.defaultNamespace;exports.namespaceContextKey=o.namespaceContextKey;exports.useGetDerivedNamespace=o.useGetDerivedNamespace;exports.useNamespace=o.useNamespace;exports.APConfigProvider=t;exports.default=t;
|