@qin-ui/element-plus-pro 1.3.5 → 1.4.0
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/AI-CONTEXT.md +26 -2
- package/README.md +41 -30
- package/api.json +69 -38
- package/es/components/component-provider/components/index.vue.d.ts +10 -3
- package/es/components/component-provider/components/index.vue.d.ts.map +1 -1
- package/es/components/component-provider/constants/index.d.ts +22 -4
- package/es/components/component-provider/constants/index.d.ts.map +1 -1
- package/es/components/component-provider/types/index.d.ts +15 -1
- package/es/components/component-provider/types/index.d.ts.map +1 -1
- package/es/components/form/components/BaseField/index.vue.d.ts.map +1 -1
- package/es/components/form/components/BaseField/utils/index.d.ts +15 -0
- package/es/components/form/components/BaseField/utils/index.d.ts.map +1 -1
- package/es/components/form/components/BaseFormItem/index.vue.d.ts +3 -1
- package/es/components/form/components/BaseFormItem/index.vue.d.ts.map +1 -1
- package/es/components/form/components/ContainerFragment/index.vue.d.ts.map +1 -1
- package/es/components/form/components/ProForm/index.vue.d.ts.map +1 -1
- package/es/components/form/components/SlotComponent/index.vue.d.ts.map +1 -1
- package/es/components/form/components/index.d.ts +4 -0
- package/es/components/form/components/index.d.ts.map +1 -1
- package/es/components/form/constants/index.d.ts +8 -2
- package/es/components/form/constants/index.d.ts.map +1 -1
- package/es/components/form/hooks/useFields.d.ts.map +1 -1
- package/es/components/form/hooks/useForm.d.ts.map +1 -1
- package/es/components/form/hooks/useGroupFieldAttrs.d.ts +9 -0
- package/es/components/form/hooks/useGroupFieldAttrs.d.ts.map +1 -1
- package/es/components/form/index.d.ts +2 -2
- package/es/components/form/index.d.ts.map +1 -1
- package/es/components/form/types/index.d.ts +65 -50
- package/es/components/form/types/index.d.ts.map +1 -1
- package/es/components/form/utils/fieldKey.d.ts +13 -0
- package/es/components/form/utils/fieldKey.d.ts.map +1 -0
- package/es/components/table/components/ColumnControl.vue.d.ts +1 -1
- package/es/components/table/components/ColumnControl.vue.d.ts.map +1 -1
- package/es/components/table/components/ProTable.vue.d.ts +15 -1
- package/es/components/table/components/ProTable.vue.d.ts.map +1 -1
- package/es/components/table/components/SearchForm.vue.d.ts +13 -1
- package/es/components/table/components/SearchForm.vue.d.ts.map +1 -1
- package/es/components/table/components/SizeControl.vue.d.ts +7 -2
- package/es/components/table/components/SizeControl.vue.d.ts.map +1 -1
- package/es/components/table/components/TableColumnRenderer.vue.d.ts +14 -14
- package/es/components/table/components/TableColumnRenderer.vue.d.ts.map +1 -1
- package/es/components/table/hooks/index.d.ts +2 -0
- package/es/components/table/hooks/index.d.ts.map +1 -0
- package/es/components/table/{useTable.d.ts → hooks/useTable.d.ts} +3 -3
- package/es/components/table/hooks/useTable.d.ts.map +1 -0
- package/es/components/table/index.d.ts +6 -2
- package/es/components/table/index.d.ts.map +1 -1
- package/es/components/table/types/index.d.ts +16 -12
- package/es/components/table/types/index.d.ts.map +1 -1
- package/es/element-plus-pro.css +14 -14
- package/es/index.d.ts +9 -6
- package/es/index.d.ts.map +1 -1
- package/es/index.js +307 -224
- package/es/index.js.map +1 -1
- package/es/locale/index.d.ts +2 -1
- package/es/locale/index.d.ts.map +1 -1
- package/es/shared/core/index.d.ts +1 -1
- package/es/shared/core/index.d.ts.map +1 -1
- package/es/shared/ui/index.d.ts +20 -2
- package/es/shared/ui/index.d.ts.map +1 -1
- package/package.json +6 -4
- package/src/components/component-provider/components/index.vue +48 -21
- package/src/components/component-provider/constants/index.ts +34 -6
- package/src/components/component-provider/types/index.ts +21 -7
- package/src/components/form/components/BaseField/index.vue +25 -12
- package/src/components/form/components/BaseField/utils/index.ts +16 -1
- package/src/components/form/components/BaseFormItem/index.vue +24 -28
- package/src/components/form/components/ContainerFragment/index.vue +3 -1
- package/src/components/form/components/ProForm/index.vue +42 -22
- package/src/components/form/components/SlotComponent/index.vue +4 -2
- package/src/components/form/components/index.ts +8 -1
- package/src/components/form/constants/index.ts +9 -2
- package/src/components/form/hooks/useFields.ts +5 -2
- package/src/components/form/hooks/useForm.ts +8 -1
- package/src/components/form/hooks/useGroupFieldAttrs.ts +24 -17
- package/src/components/form/index.ts +1 -3
- package/src/components/form/types/index.ts +71 -52
- package/src/components/form/utils/fieldKey.ts +27 -0
- package/src/components/table/components/ColumnControl.vue +16 -6
- package/src/components/table/components/ProTable.vue +183 -93
- package/src/components/table/components/SearchForm.vue +60 -22
- package/src/components/table/components/SizeControl.vue +23 -1
- package/src/components/table/components/TableColumnRenderer.vue +82 -63
- package/src/components/table/hooks/index.ts +1 -0
- package/src/components/table/{useTable.ts → hooks/useTable.ts} +6 -4
- package/src/components/table/index.ts +11 -2
- package/src/components/table/types/index.ts +17 -13
- package/src/index.ts +13 -7
- package/src/locale/index.ts +4 -2
- package/src/shared/core/index.ts +11 -0
- package/src/shared/ui/index.ts +29 -5
- package/tsconfig.json +0 -1
- package/es/components/table/useTable.d.ts.map +0 -1
|
@@ -1,17 +1,17 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
1
2
|
import { Columns } from '../types';
|
|
2
|
-
declare const _default: <
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
}
|
|
3
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
4
|
+
columns: {
|
|
5
|
+
type: PropType<Columns>;
|
|
6
|
+
default: () => never[];
|
|
7
|
+
};
|
|
8
|
+
}>, () => any[], {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
9
|
+
columns: {
|
|
10
|
+
type: PropType<Columns>;
|
|
11
|
+
default: () => never[];
|
|
12
|
+
};
|
|
13
|
+
}>> & Readonly<{}>, {
|
|
14
|
+
columns: Columns;
|
|
15
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
13
16
|
export default _default;
|
|
14
|
-
type __VLS_PrettifyLocal<T> = {
|
|
15
|
-
[K in keyof T]: T[K];
|
|
16
|
-
} & {};
|
|
17
17
|
//# sourceMappingURL=TableColumnRenderer.vue.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TableColumnRenderer.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/table/components/TableColumnRenderer.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"TableColumnRenderer.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/table/components/TableColumnRenderer.vue"],"names":[],"mappings":"AAwHA;;;;;;;;;GASG;AACH,OAAO,EAAsC,KAAK,QAAQ,EAAE,MAAM,KAAK,CAAC;AAIxE,OAAO,KAAK,EAAU,OAAO,EAAE,MAAM,UAAU,CAAC;;;cA2F3B,QAAQ,CAAC,OAAO,CAAC;;;;;cAAjB,QAAQ,CAAC,OAAO,CAAC;;;;;;AALtC,wBAeG"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/table/hooks/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Table as _Table, Data, ExtendWithAny, DeepPartial, PageParam } from '
|
|
2
|
-
import { Fields } from '
|
|
3
|
-
import { Column, Columns } from '
|
|
1
|
+
import { Table as _Table, Data, ExtendWithAny, DeepPartial, PageParam } from '../../../shared/core';
|
|
2
|
+
import { Fields } from '../../form/types';
|
|
3
|
+
import { Column, Columns } from '../types';
|
|
4
4
|
import { Ref } from 'vue';
|
|
5
5
|
/**
|
|
6
6
|
* 表格实例类型
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useTable.d.ts","sourceRoot":"","sources":["../../../../src/components/table/hooks/useTable.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,KAAK,IAAI,MAAM,EACrB,MAAM,sBAAsB,CAAC;AA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AC,CAAC,CAAC,EACjC,MAAM,GAAE,cAAc,CAAC,CAAC,EAAE,CAAC,CAAM,GAAG,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAqBhD"}
|
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
import { ComponentExposed, ComponentProps } from 'vue-component-type-helpers';
|
|
2
2
|
import { default as ProTable } from './components/ProTable.vue';
|
|
3
|
+
/** ProTable 组件属性(由组件 Props 推导) */
|
|
3
4
|
export type ProTableProps = ComponentProps<typeof ProTable>;
|
|
5
|
+
/** ProTable 组件实例(`defineExpose` 暴露的能力) */
|
|
4
6
|
export type ProTableInstance = ComponentExposed<typeof ProTable>;
|
|
5
|
-
export { type Column, type Columns } from './types';
|
|
7
|
+
export { type Column, type ColumnControlConfig, type ColumnScope, type Columns, } from './types';
|
|
8
|
+
/** Element Plus 宿主表格事件类型(仅 element 适配层提供) */
|
|
6
9
|
export { type TableEmits } from '../../shared/ui';
|
|
7
|
-
export { useTable, type Table } from './
|
|
10
|
+
export { useTable, type Table } from './hooks';
|
|
11
|
+
export { type PageParam } from '../../shared/core';
|
|
8
12
|
export default ProTable;
|
|
9
13
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/table/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,gBAAgB,EAChB,cAAc,EACf,MAAM,4BAA4B,CAAC;AACpC,OAAO,QAAQ,MAAM,2BAA2B,CAAC;AAGjD,MAAM,MAAM,aAAa,GAAG,cAAc,CAAC,OAAO,QAAQ,CAAC,CAAC;AAC5D,MAAM,MAAM,gBAAgB,GAAG,gBAAgB,CAAC,OAAO,QAAQ,CAAC,CAAC;AAGjE,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/table/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,gBAAgB,EAChB,cAAc,EACf,MAAM,4BAA4B,CAAC;AACpC,OAAO,QAAQ,MAAM,2BAA2B,CAAC;AAGjD,kCAAkC;AAClC,MAAM,MAAM,aAAa,GAAG,cAAc,CAAC,OAAO,QAAQ,CAAC,CAAC;AAC5D,0CAA0C;AAC1C,MAAM,MAAM,gBAAgB,GAAG,gBAAgB,CAAC,OAAO,QAAQ,CAAC,CAAC;AAGjE,OAAO,EACL,KAAK,MAAM,EACX,KAAK,mBAAmB,EACxB,KAAK,WAAW,EAChB,KAAK,OAAO,GACb,MAAM,SAAS,CAAC;AACjB,6CAA6C;AAC7C,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAGlD,OAAO,EAAE,QAAQ,EAAE,KAAK,KAAK,EAAE,MAAM,SAAS,CAAC;AAC/C,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAEnD,eAAe,QAAQ,CAAC"}
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import { ColumnType } from '../../../shared/ui';
|
|
2
2
|
import { Data, ExtendWithAny, Path } from '../../../shared/core';
|
|
3
|
+
import { ComputedRef, MaybeRef } from 'vue';
|
|
4
|
+
type MaybeRefOrComputedRef<T = any> = MaybeRef<T> | ComputedRef<T>;
|
|
3
5
|
type BivariantRender<D extends Data = Data> = {
|
|
4
6
|
bivarianceHack(scope: ColumnScope<D>): any;
|
|
5
7
|
}['bivarianceHack'];
|
|
6
8
|
/**
|
|
7
9
|
* Element Plus 表格列作用域
|
|
8
10
|
* @template D - 表格行数据类型
|
|
9
|
-
|
|
11
|
+
*
|
|
10
12
|
* @public
|
|
11
13
|
*/
|
|
12
14
|
export type ColumnScope<D extends Data = Data> = {
|
|
@@ -20,16 +22,14 @@ export type ColumnScope<D extends Data = Data> = {
|
|
|
20
22
|
cellValue: any;
|
|
21
23
|
};
|
|
22
24
|
/**
|
|
23
|
-
*
|
|
25
|
+
* 表格列配置类型,基于宿主 ColumnType 扩展
|
|
24
26
|
*
|
|
25
|
-
* @description
|
|
27
|
+
* @description 在宿主列类型之上新增:
|
|
26
28
|
* - prop 作为主要字段(Element Plus 使用 prop 而非 dataIndex)
|
|
27
29
|
* - key 作为辅助标识
|
|
28
30
|
* - hidden 属性
|
|
29
31
|
* - render 自定义渲染函数
|
|
30
|
-
*
|
|
31
32
|
* @template D - 表格行数据类型
|
|
32
|
-
*
|
|
33
33
|
* @example
|
|
34
34
|
* ```ts
|
|
35
35
|
* interface User { name: string; age: number }
|
|
@@ -39,29 +39,33 @@ export type ColumnScope<D extends Data = Data> = {
|
|
|
39
39
|
* { prop: 'age', label: '年龄', width: 80 },
|
|
40
40
|
* ]
|
|
41
41
|
* ```
|
|
42
|
-
|
|
42
|
+
*
|
|
43
43
|
* @public
|
|
44
44
|
*/
|
|
45
45
|
export type Column<D extends Data = Data> = Partial<Omit<ColumnType<any>, 'prop' | 'property' | 'children' | 'render'>> & {
|
|
46
46
|
/** 列字段标识(辅助字段) */
|
|
47
47
|
key?: Path<D>;
|
|
48
48
|
/**
|
|
49
|
-
*
|
|
50
|
-
* Element Plus 使用 prop 而非 dataIndex
|
|
49
|
+
* 列数据路径(主要字段),Element Plus 使用 prop 而非 dataIndex
|
|
51
50
|
* @example 'name' | 'address.city'
|
|
52
51
|
*/
|
|
53
52
|
prop?: Path<D>;
|
|
54
|
-
/**
|
|
55
|
-
|
|
53
|
+
/**
|
|
54
|
+
* 列是否隐藏;支持布尔、Ref 与 ComputedRef 形式,渲染期按 `toValue` 取值
|
|
55
|
+
*
|
|
56
|
+
* 分组列的子列同样参与过滤(递归生效)。
|
|
57
|
+
*/
|
|
58
|
+
hidden?: MaybeRefOrComputedRef<boolean>;
|
|
56
59
|
/** 自定义渲染函数 */
|
|
57
60
|
render?: BivariantRender<D>;
|
|
58
61
|
/** 嵌套子列(用于表头分组) */
|
|
59
62
|
children?: Column<D>[];
|
|
60
63
|
};
|
|
61
64
|
/**
|
|
62
|
-
*
|
|
65
|
+
* 表格列配置数组类型
|
|
66
|
+
*
|
|
63
67
|
* @template D - 表格行数据类型
|
|
64
|
-
|
|
68
|
+
*
|
|
65
69
|
* @public
|
|
66
70
|
*/
|
|
67
71
|
export type Columns<D extends Data = Data> = Array<Column<D>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/table/types/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EAAE,IAAI,EAAE,aAAa,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/table/types/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,KAAK,EAAE,IAAI,EAAE,aAAa,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAC;AACtE,OAAO,KAAK,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAC;AACjD,KAAK,qBAAqB,CAAC,CAAC,GAAG,GAAG,IAAI,QAAQ,CAAC,CAAC,CAAC,GAAG,WAAW,CAAC,CAAC,CAAC,CAAC;AAEnE,KAAK,eAAe,CAAC,CAAC,SAAS,IAAI,GAAG,IAAI,IAAI;IAC5C,cAAc,CAAC,KAAK,EAAE,WAAW,CAAC,CAAC,CAAC,GAAG,GAAG,CAAC;CAC5C,CAAC,gBAAgB,CAAC,CAAC;AAEpB;;;;;GAKG;AACH,MAAM,MAAM,WAAW,CAAC,CAAC,SAAS,IAAI,GAAG,IAAI,IAAI;IAC/C,YAAY;IACZ,GAAG,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC;IACtB,YAAY;IACZ,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC;IAClB,UAAU;IACV,MAAM,EAAE,MAAM,CAAC;IACf,WAAW;IACX,SAAS,EAAE,GAAG,CAAC;CAChB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='-form-item'][data-v-237594c9] {
|
|
2
2
|
margin-bottom: 18px;
|
|
3
3
|
}
|
|
4
|
-
.pro-table_search-form[data-v-
|
|
4
|
+
.pro-table_search-form[data-v-419025fd] [class*='-form-item'] {
|
|
5
5
|
margin: 0;
|
|
6
6
|
}
|
|
7
|
-
.pro-table_search-form_expand-toggle-button[data-v-
|
|
7
|
+
.pro-table_search-form_expand-toggle-button[data-v-419025fd] {
|
|
8
8
|
display: flex;
|
|
9
9
|
align-items: center;
|
|
10
10
|
padding: 0;
|
|
11
11
|
padding-left: 4px;
|
|
12
12
|
}
|
|
13
|
-
.pro-table_search-form .transition[data-v-
|
|
13
|
+
.pro-table_search-form .transition[data-v-419025fd] {
|
|
14
14
|
transition: all 0.25s;
|
|
15
15
|
}
|
|
16
16
|
.pro-table_search-form-container[data-v-45e627f4] {
|
|
@@ -25,42 +25,42 @@
|
|
|
25
25
|
background-color: var(--el-bg-color, #fff);
|
|
26
26
|
border-radius: 4px;
|
|
27
27
|
}
|
|
28
|
-
.pro-table_size-control_button[data-v-
|
|
28
|
+
.pro-table_size-control_button[data-v-61d0ef11] {
|
|
29
29
|
display: flex;
|
|
30
30
|
align-items: center;
|
|
31
31
|
padding-right: 12px;
|
|
32
32
|
padding-left: 12px;
|
|
33
33
|
}
|
|
34
|
-
.pro-table_size-control_button[data-v-
|
|
34
|
+
.pro-table_size-control_button[data-v-61d0ef11] svg {
|
|
35
35
|
transform: scale(1.3);
|
|
36
36
|
}
|
|
37
|
-
.pro-table_column-control_button[data-v-
|
|
37
|
+
.pro-table_column-control_button[data-v-4d2b4f1c] {
|
|
38
38
|
display: flex;
|
|
39
39
|
align-items: center;
|
|
40
40
|
padding-right: 12px;
|
|
41
41
|
padding-left: 12px;
|
|
42
42
|
}
|
|
43
|
-
.pro-table_column-control_button[data-v-
|
|
43
|
+
.pro-table_column-control_button[data-v-4d2b4f1c] svg {
|
|
44
44
|
transform: scale(1.2, 1.4);
|
|
45
45
|
}
|
|
46
|
-
.pro-table_header[data-v-
|
|
46
|
+
.pro-table_header[data-v-d092780c] {
|
|
47
47
|
display: flex;
|
|
48
48
|
align-items: center;
|
|
49
49
|
justify-content: flex-end;
|
|
50
50
|
}
|
|
51
|
-
.pro-table_header[data-v-
|
|
51
|
+
.pro-table_header[data-v-d092780c]:empty {
|
|
52
52
|
display: none;
|
|
53
53
|
}
|
|
54
|
-
.pro-table_header + .pro-table_header_content[data-v-
|
|
54
|
+
.pro-table_header + .pro-table_header_content[data-v-d092780c] {
|
|
55
55
|
margin-top: 16px;
|
|
56
56
|
}
|
|
57
|
-
.pro-table_header_button-bar[data-v-
|
|
57
|
+
.pro-table_header_button-bar[data-v-d092780c] {
|
|
58
58
|
flex: 1;
|
|
59
59
|
}
|
|
60
|
-
.pro-table_header_toolbar[data-v-
|
|
60
|
+
.pro-table_header_toolbar[data-v-d092780c] {
|
|
61
61
|
margin-left: 12px;
|
|
62
62
|
}
|
|
63
|
-
.pro-table_pagination[data-v-
|
|
63
|
+
.pro-table_pagination[data-v-d092780c] {
|
|
64
64
|
justify-content: flex-end;
|
|
65
65
|
padding: 16px 0;
|
|
66
66
|
}
|
package/es/index.d.ts
CHANGED
|
@@ -24,7 +24,9 @@ export * from './locale';
|
|
|
24
24
|
* <ProForm :form="form" />
|
|
25
25
|
* </template>
|
|
26
26
|
* ```
|
|
27
|
-
|
|
27
|
+
*/
|
|
28
|
+
export { ProForm };
|
|
29
|
+
/**
|
|
28
30
|
* Schema 驱动的表格组件,基于 element-plus Table 封装
|
|
29
31
|
*
|
|
30
32
|
* @description 通过声明式列配置即可生成功能完整的表格,
|
|
@@ -40,7 +42,9 @@ export * from './locale';
|
|
|
40
42
|
* <ProTable :table="table" />
|
|
41
43
|
* </template>
|
|
42
44
|
* ```
|
|
43
|
-
|
|
45
|
+
*/
|
|
46
|
+
export { ProTable };
|
|
47
|
+
/**
|
|
44
48
|
* 组件提供者,用于全局配置 ProForm 和 ProTable 的默认行为
|
|
45
49
|
*
|
|
46
50
|
* @description 通过 `ProComponentProvider` 包裹应用根组件,
|
|
@@ -55,14 +59,13 @@ export * from './locale';
|
|
|
55
59
|
* </template>
|
|
56
60
|
* ```
|
|
57
61
|
*/
|
|
58
|
-
export {
|
|
62
|
+
export { ProComponentProvider };
|
|
59
63
|
declare const _default: {
|
|
60
64
|
/**
|
|
61
|
-
*
|
|
62
|
-
* @description 全局注册所有组件(ProForm、ProTable、ProComponentProvider)
|
|
65
|
+
* 安装方法:全局注册 ProForm / ProTable / ProComponentProvider
|
|
63
66
|
*
|
|
67
|
+
* @description 供 `app.use(ProComponents)` 调用
|
|
64
68
|
* @param {App} app - Vue 应用实例
|
|
65
|
-
*
|
|
66
69
|
* @example
|
|
67
70
|
* ```ts
|
|
68
71
|
* import { createApp } from 'vue'
|
package/es/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAC/B,OAAO,OAAO,MAAM,mBAAmB,CAAC;AACxC,OAAO,QAAQ,MAAM,oBAAoB,CAAC;AAC1C,OAAO,oBAAoB,MAAM,iCAAiC,CAAC;AAEnE,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,iCAAiC,CAAC;AAChD,cAAc,UAAU,CAAC;AAEzB
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAC/B,OAAO,OAAO,MAAM,mBAAmB,CAAC;AACxC,OAAO,QAAQ,MAAM,oBAAoB,CAAC;AAC1C,OAAO,oBAAoB,MAAM,iCAAiC,CAAC;AAEnE,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,iCAAiC,CAAC;AAChD,cAAc,UAAU,CAAC;AAEzB;;;;;;;;;;;;;;;;;;GAkBG;AACH,OAAO,EAAE,OAAO,EAAE,CAAC;AACnB;;;;;;;;;;;;;;;;GAgBG;AACH,OAAO,EAAE,QAAQ,EAAE,CAAC;AACpB;;;;;;;;;;;;;;GAcG;AACH,OAAO,EAAE,oBAAoB,EAAE,CAAC;;IAG9B;;;;;;;;;;;;OAYG;iBACU,GAAG;;AAdlB,wBAsBE"}
|