erp-plus 1.0.15 → 1.0.17
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/README.md +0 -15
- package/dist/types/{erp-plus.css → assets/erp-plus.css} +1 -1
- package/dist/types/erp-plus.es.js +964 -446
- package/dist/types/erp-plus.umd.js +1 -1
- package/dist/types/packages/Dialog/Dialog.vue.d.ts +9 -0
- package/dist/types/packages/InputNumber/InputNumber.vue.d.ts +166 -0
- package/dist/types/packages/InputNumber/index.d.ts +4 -0
- package/dist/types/packages/Loading/Loading.vue.d.ts +24 -0
- package/dist/types/packages/Loading/index.d.ts +4 -0
- package/dist/types/packages/Pagination/Pagination.vue.d.ts +25 -0
- package/dist/types/packages/Pagination/index.d.ts +4 -0
- package/dist/types/packages/SelectorDialog/index.d.ts +4 -0
- package/dist/types/packages/Table/Table.vue.d.ts +51 -5
- package/package.json +2 -1
|
@@ -1,14 +1,17 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Sort, TableColumnCtx, TreeNode, TableProps, Filter, Translator, Table } from 'element-plus';
|
|
2
|
+
import { CSSProperties, VNode, CreateComponentPublicInstanceWithMixins, ExtractPropTypes, PropType, ComputedRef, Ref, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, GlobalComponents, GlobalDirectives, ComponentProvideOptions, DefineComponent, PublicProps } from 'vue';
|
|
2
3
|
import { EpPropMergeType } from 'element-plus/es/utils';
|
|
3
|
-
import { TableProps, TableColumnCtx, Sort, Filter, Translator, Table } from 'element-plus';
|
|
4
4
|
import { default as __DTS_DEFAULT_0__ } from 'element-plus/es/components/table/src/table-layout';
|
|
5
5
|
import { TreeData } from 'element-plus/es/components/table/src/store/tree';
|
|
6
|
+
import { TableColumnCtx } from 'element-plus/es/components/table/src/table-column/defaults';
|
|
6
7
|
import { StoreFilter } from 'element-plus/es/components/table/src/store';
|
|
7
|
-
import { TableSortOrder, RenderExpanded, TreeProps } from 'element-plus/es/components/table/src/table/defaults';
|
|
8
|
+
import { Sort, TableSortOrder, RenderExpanded, TreeProps } from 'element-plus/es/components/table/src/table/defaults';
|
|
8
9
|
import { DebouncedFunc } from 'lodash';
|
|
9
10
|
type sizeType = '' | 'large' | 'default' | 'small';
|
|
11
|
+
type tooltipEffect = 'dark' | 'light';
|
|
12
|
+
type tableLayout = 'fixed' | 'auto';
|
|
10
13
|
interface TableColumn extends Record<string, any> {
|
|
11
|
-
label
|
|
14
|
+
label?: string;
|
|
12
15
|
prop?: string;
|
|
13
16
|
required?: boolean;
|
|
14
17
|
slotName?: string;
|
|
@@ -21,8 +24,10 @@ interface TableProps {
|
|
|
21
24
|
stripe?: boolean;
|
|
22
25
|
border?: boolean;
|
|
23
26
|
size?: sizeType;
|
|
27
|
+
fit?: boolean;
|
|
24
28
|
showHeader?: boolean;
|
|
25
29
|
highlightCurrentRow?: boolean;
|
|
30
|
+
currentRowKey?: string | number;
|
|
26
31
|
rowClassName?: ((data: {
|
|
27
32
|
row: any;
|
|
28
33
|
rowIndex: number;
|
|
@@ -63,10 +68,42 @@ interface TableProps {
|
|
|
63
68
|
rowIndex: number;
|
|
64
69
|
columnIndex: number;
|
|
65
70
|
}) => CSSProperties) | CSSProperties;
|
|
71
|
+
rowKey?: ((row: any) => string) | string;
|
|
72
|
+
emptyText?: string;
|
|
73
|
+
defaultExpandAll?: boolean;
|
|
74
|
+
expandRowKeys?: Array<string>;
|
|
75
|
+
defaultSort?: Sort;
|
|
76
|
+
tooltipEffect?: tooltipEffect;
|
|
77
|
+
tooltipOptions?: object;
|
|
78
|
+
appendFilterPanelTo?: string;
|
|
79
|
+
showSummary?: boolean;
|
|
80
|
+
sumText?: string;
|
|
81
|
+
summaryMethod?: ((data: {
|
|
82
|
+
columns: any[];
|
|
83
|
+
data: any[];
|
|
84
|
+
}) => (VNode | string)[]);
|
|
85
|
+
selectOnIndeterminate?: boolean;
|
|
86
|
+
indent?: number;
|
|
87
|
+
lazy?: boolean;
|
|
88
|
+
load?: ((row: any, treeNode: TreeNode, resolve: (data: any[]) => void) => void);
|
|
89
|
+
treeProps?: object;
|
|
90
|
+
tableLayout?: tableLayout;
|
|
91
|
+
scrollbarAlwaysOn?: boolean;
|
|
92
|
+
showOverflowTooltip?: boolean | object;
|
|
93
|
+
flexible?: boolean;
|
|
94
|
+
scrollbarTabindex?: string | number;
|
|
95
|
+
allowDragLastColumn?: boolean;
|
|
96
|
+
tooltipFormatter?: (data: {
|
|
97
|
+
row: any;
|
|
98
|
+
column: TableColumnCtx<any>;
|
|
99
|
+
cellValue: any;
|
|
100
|
+
}) => VNode | string;
|
|
101
|
+
preserveExpandedContent?: boolean;
|
|
102
|
+
nativeScrollbar?: boolean;
|
|
66
103
|
}
|
|
67
104
|
declare function __VLS_template(): {
|
|
68
105
|
attrs: Partial<{}>;
|
|
69
|
-
slots: Partial<Record<string, (_: any) => any>>;
|
|
106
|
+
slots: Partial<Record<string, (_: any) => any>> & Partial<Record<any, (_: any) => any>>;
|
|
70
107
|
refs: {
|
|
71
108
|
tableRef: CreateComponentPublicInstanceWithMixins<Readonly< ExtractPropTypes<{
|
|
72
109
|
data: {
|
|
@@ -1588,10 +1625,19 @@ declare const __VLS_component: DefineComponent<TableProps, {
|
|
|
1588
1625
|
}>, {
|
|
1589
1626
|
data: any[];
|
|
1590
1627
|
height: string | number;
|
|
1628
|
+
fit: boolean;
|
|
1629
|
+
emptyText: string;
|
|
1591
1630
|
maxHeight: string | number;
|
|
1592
1631
|
stripe: boolean;
|
|
1593
1632
|
border: boolean;
|
|
1594
1633
|
showHeader: boolean;
|
|
1634
|
+
headerCellClassName: ((data: {
|
|
1635
|
+
row: any;
|
|
1636
|
+
column: any;
|
|
1637
|
+
rowIndex: number;
|
|
1638
|
+
columnIndex: number;
|
|
1639
|
+
}) => string) | string;
|
|
1640
|
+
tooltipEffect: tooltipEffect;
|
|
1595
1641
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
1596
1642
|
tableRef: CreateComponentPublicInstanceWithMixins<Readonly< ExtractPropTypes<{
|
|
1597
1643
|
data: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "erp-plus",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.17",
|
|
4
4
|
"author": "zhangxl",
|
|
5
5
|
"main": "dist/erp-plus.umd.js",
|
|
6
6
|
"module": "dist/erp-plus.es.js",
|
|
@@ -43,6 +43,7 @@
|
|
|
43
43
|
"unplugin-vue-components": "^28.8.0",
|
|
44
44
|
"vite": "^7.0.0",
|
|
45
45
|
"vite-plugin-dts": "^4.5.4",
|
|
46
|
+
"vite-svg-loader": "^5.1.0",
|
|
46
47
|
"vue": "^3.5.17",
|
|
47
48
|
"vue-tsc": "^2.2.10"
|
|
48
49
|
},
|