zxt-table 0.1.2 → 0.2.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/dist/index.d.ts +49 -1
- package/package.json +9 -8
package/dist/index.d.ts
CHANGED
|
@@ -1 +1,49 @@
|
|
|
1
|
-
|
|
1
|
+
import type { DefineComponent, App } from "vue";
|
|
2
|
+
|
|
3
|
+
export interface ZxtTableProps {
|
|
4
|
+
id?: string;
|
|
5
|
+
columns?: any[];
|
|
6
|
+
data?: any[];
|
|
7
|
+
height?: string | number;
|
|
8
|
+
pageable?: boolean;
|
|
9
|
+
currentPage?: number;
|
|
10
|
+
pageSize?: number;
|
|
11
|
+
pageSizes?: number[];
|
|
12
|
+
total?: number;
|
|
13
|
+
paginationLayout?: string;
|
|
14
|
+
proxyConfig?: any;
|
|
15
|
+
[key: string]: any;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export interface ZxtTableRenderer {
|
|
19
|
+
add(name: string, render: any): void;
|
|
20
|
+
get(name: string): any;
|
|
21
|
+
mixin(map: any): void;
|
|
22
|
+
delete(name: string): void;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export declare const ZxtTable: DefineComponent<ZxtTableProps> & {
|
|
26
|
+
install(app: App): void;
|
|
27
|
+
renderer: ZxtTableRenderer;
|
|
28
|
+
registerRenderer: (name: string, render: any) => void;
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
export declare const MyButton: DefineComponent;
|
|
32
|
+
export declare const JsxButton: DefineComponent;
|
|
33
|
+
export declare const ZxtGrid: DefineComponent;
|
|
34
|
+
export declare const ZxtForm: DefineComponent;
|
|
35
|
+
export declare const ZxtPagination: DefineComponent;
|
|
36
|
+
|
|
37
|
+
declare const ZxtTableLib: {
|
|
38
|
+
install(app: App): void;
|
|
39
|
+
MyButton: typeof MyButton;
|
|
40
|
+
JsxButton: typeof JsxButton;
|
|
41
|
+
ZxtTable: typeof ZxtTable;
|
|
42
|
+
ZxtGrid: typeof ZxtGrid;
|
|
43
|
+
ZxtForm: typeof ZxtForm;
|
|
44
|
+
ZxtPagination: typeof ZxtPagination;
|
|
45
|
+
renderer: ZxtTableRenderer;
|
|
46
|
+
registerRenderer: (name: string, render: any) => void;
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
export default ZxtTableLib;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "zxt-table",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.2.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description": "一个基于 Vue 3 和 Element Plus 的高级表格、表单组件库",
|
|
7
7
|
"keywords": [
|
|
@@ -31,11 +31,6 @@
|
|
|
31
31
|
"dist",
|
|
32
32
|
"README.md"
|
|
33
33
|
],
|
|
34
|
-
"scripts": {
|
|
35
|
-
"dev": "vite",
|
|
36
|
-
"build": "vite build",
|
|
37
|
-
"preview": "vite preview"
|
|
38
|
-
},
|
|
39
34
|
"peerDependencies": {
|
|
40
35
|
"element-plus": "^2.0.0",
|
|
41
36
|
"vue": "^3.2.0"
|
|
@@ -53,6 +48,12 @@
|
|
|
53
48
|
"vue": "^3.5.22"
|
|
54
49
|
},
|
|
55
50
|
"dependencies": {
|
|
56
|
-
"@element-plus/icons-vue": "^2.3.2"
|
|
51
|
+
"@element-plus/icons-vue": "^2.3.2",
|
|
52
|
+
"zxt-table": "file:.yalc/zxt-table"
|
|
53
|
+
},
|
|
54
|
+
"scripts": {
|
|
55
|
+
"dev": "vite",
|
|
56
|
+
"build": "vite build",
|
|
57
|
+
"preview": "vite preview"
|
|
57
58
|
}
|
|
58
|
-
}
|
|
59
|
+
}
|