@vue-ui-kit/ant 2.5.11 → 2.5.12-beta.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/cjs/index.js +7 -7
- package/dist/es/index.js +523 -514
- package/dist/index.d.ts +19 -3
- package/dist/style.css +4 -4
- package/package.json +85 -85
- package/src/declarations/antProxy.ts +516 -516
- package/src/packages/components/PCanvasGrid.vue +11 -0
- package/src/packages/components/PCanvasTable.vue +7 -1
- package/src/packages/styles/canvas-theme.scss +4 -4
package/dist/index.d.ts
CHANGED
|
@@ -2034,7 +2034,11 @@ export declare const PCanvasGrid: <D extends Recordable = Recordable, F extends
|
|
|
2034
2034
|
records: D[];
|
|
2035
2035
|
}) => any) | undefined;
|
|
2036
2036
|
readonly onResetQuery?: (() => any) | undefined;
|
|
2037
|
-
|
|
2037
|
+
readonly onSortChange?: ((value: Map<string, {
|
|
2038
|
+
direction: "asc" | "desc" | "none";
|
|
2039
|
+
timestamp: number;
|
|
2040
|
+
}>) => any) | undefined;
|
|
2041
|
+
} & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, "onPick" | "onToolbarButtonClick" | "onToolbarToolClick" | "onResetQuery" | "onSortChange"> & PCanvasGridProps<D, F> & Partial<{}>> & PublicProps;
|
|
2038
2042
|
expose(exposed: ShallowUnwrapRef< {
|
|
2039
2043
|
commitProxy: {
|
|
2040
2044
|
query: (this: any, ...args: any[]) => any;
|
|
@@ -2849,6 +2853,10 @@ export declare const PCanvasGrid: <D extends Recordable = Recordable, F extends
|
|
|
2849
2853
|
field: string;
|
|
2850
2854
|
}): void;
|
|
2851
2855
|
(event: "resetQuery"): void;
|
|
2856
|
+
(event: "sortChange", value: Map<string, {
|
|
2857
|
+
direction: "asc" | "desc" | "none";
|
|
2858
|
+
timestamp: number;
|
|
2859
|
+
}>): void;
|
|
2852
2860
|
};
|
|
2853
2861
|
}>) => VNode & {
|
|
2854
2862
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
@@ -2912,10 +2920,14 @@ export declare const PCanvasTable: <T extends Recordable = Recordable, B extends
|
|
|
2912
2920
|
props: __VLS_PrettifyLocal_3<Pick<Partial<{}> & Omit<{
|
|
2913
2921
|
readonly onChange?: ((value: any[]) => any) | undefined;
|
|
2914
2922
|
readonly onSelectionChange?: ((value: T[]) => any) | undefined;
|
|
2923
|
+
readonly onSortChange?: ((value: Map<string, {
|
|
2924
|
+
direction: "asc" | "desc" | "none";
|
|
2925
|
+
timestamp: number;
|
|
2926
|
+
}>) => any) | undefined;
|
|
2915
2927
|
readonly onReady?: ((value: EVirtTable) => any) | undefined;
|
|
2916
|
-
} & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, "onChange" | "onSelectionChange" | "onReady"> & CanvasTableProps<T, B> & Partial<{}>> & PublicProps;
|
|
2928
|
+
} & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, "onChange" | "onSelectionChange" | "onSortChange" | "onReady"> & CanvasTableProps<T, B> & Partial<{}>> & PublicProps;
|
|
2917
2929
|
expose(exposed: ShallowUnwrapRef< {
|
|
2918
|
-
$table: null;
|
|
2930
|
+
readonly $table: EVirtTable | null;
|
|
2919
2931
|
selectedRecords: ComputedRef<UnwrapRefSimple<T>[]>;
|
|
2920
2932
|
reloadData: () => void;
|
|
2921
2933
|
}>): void;
|
|
@@ -3070,6 +3082,10 @@ export declare const PCanvasTable: <T extends Recordable = Recordable, B extends
|
|
|
3070
3082
|
emit: {
|
|
3071
3083
|
(e: "change", value: any[]): void;
|
|
3072
3084
|
(e: "selectionChange", value: T[]): void;
|
|
3085
|
+
(e: "sortChange", value: Map<string, {
|
|
3086
|
+
direction: "asc" | "desc" | "none";
|
|
3087
|
+
timestamp: number;
|
|
3088
|
+
}>): void;
|
|
3073
3089
|
(e: "ready", value: EVirtTable): void;
|
|
3074
3090
|
};
|
|
3075
3091
|
}>) => VNode & {
|
package/dist/style.css
CHANGED
|
@@ -24,10 +24,10 @@
|
|
|
24
24
|
--evt-footer-text-color: #4e5969;
|
|
25
25
|
--evt-readonly-text-color: #4e5969;
|
|
26
26
|
/* 默认 14px。font 简写必须是「字重 字号 字体」;表头 bold、表体 normal */
|
|
27
|
-
--evt-header-font:
|
|
28
|
-
sans-serif;
|
|
29
|
-
--evt-body-font:
|
|
30
|
-
sans-serif;
|
|
27
|
+
--evt-header-font:
|
|
28
|
+
bold 14px 'Microsoft YaHei', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
|
|
29
|
+
--evt-body-font:
|
|
30
|
+
normal 14px 'Microsoft YaHei', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
|
|
31
31
|
--evt-scroller-color: #dee0e3;
|
|
32
32
|
--evt-scroller-focus-color: #bbbec4;
|
|
33
33
|
--evt-edit-bg-color: #fcf6ed;
|
package/package.json
CHANGED
|
@@ -1,85 +1,85 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@vue-ui-kit/ant",
|
|
3
|
-
"version": "2.5.
|
|
4
|
-
"description": "Vue3 UI Kit based on Ant Design",
|
|
5
|
-
"type": "module",
|
|
6
|
-
"main": "./dist/cjs/index.js",
|
|
7
|
-
"module": "./dist/es/index.js",
|
|
8
|
-
"types": "./dist/index.d.ts",
|
|
9
|
-
"style": "./dist/style.css",
|
|
10
|
-
"sass": "./src/packages/styles/index.scss",
|
|
11
|
-
"exports": {
|
|
12
|
-
".": {
|
|
13
|
-
"require": "./dist/cjs/index.js",
|
|
14
|
-
"import": "./dist/es/index.js",
|
|
15
|
-
"types": "./dist/index.d.ts"
|
|
16
|
-
},
|
|
17
|
-
"./style.css": "./dist/style.css",
|
|
18
|
-
"./style.scss": "./src/packages/styles/index.scss",
|
|
19
|
-
"./dist/style.scss": "./src/packages/styles/index.scss",
|
|
20
|
-
"./dist/style.css": "./dist/style.css"
|
|
21
|
-
},
|
|
22
|
-
"files": [
|
|
23
|
-
"dist",
|
|
24
|
-
"src",
|
|
25
|
-
"README.md",
|
|
26
|
-
"README.zh.md",
|
|
27
|
-
"tsconfig.json"
|
|
28
|
-
],
|
|
29
|
-
"scripts": {
|
|
30
|
-
"dev": "ts-patch uninstall && vue-tsc --noEmit --skipLibCheck & vite",
|
|
31
|
-
"typecheck": "ts-patch uninstall && vue-tsc --noEmit --skipLibCheck",
|
|
32
|
-
"build": "ts-patch install && vite build && sass src/packages/styles/index.scss dist/style.css --no-source-map",
|
|
33
|
-
"prepack": "rimraf dist && pnpm build",
|
|
34
|
-
"prepare": "husky",
|
|
35
|
-
"lint:lint-staged": "lint-staged",
|
|
36
|
-
"lint:prettier": "prettier --write \"src/**/*.{js,json,tsx,css,less,scss,vue,html,md}\""
|
|
37
|
-
},
|
|
38
|
-
"keywords": [
|
|
39
|
-
"vue3",
|
|
40
|
-
"ui kit",
|
|
41
|
-
"ant design",
|
|
42
|
-
"ant",
|
|
43
|
-
"antdv"
|
|
44
|
-
],
|
|
45
|
-
"author": {
|
|
46
|
-
"name": "adoin",
|
|
47
|
-
"email": "adoin@qq.com"
|
|
48
|
-
},
|
|
49
|
-
"dependencies": {
|
|
50
|
-
"e-virt-table": "1.4.3",
|
|
51
|
-
"uuid": "^11.1.1",
|
|
52
|
-
"xe-utils": "^3.7.6"
|
|
53
|
-
},
|
|
54
|
-
"peerDependencies": {
|
|
55
|
-
"@ant-design/icons-vue": ">=7.0.0",
|
|
56
|
-
"ant-design-vue": ">=4.0.0",
|
|
57
|
-
"vue": ">=3.2.0"
|
|
58
|
-
},
|
|
59
|
-
"license": "GPL",
|
|
60
|
-
"engines": {
|
|
61
|
-
"node": "^20.19.0 || >=22.12.0"
|
|
62
|
-
},
|
|
63
|
-
"devDependencies": {
|
|
64
|
-
"@ant-design/icons-vue": ">=7.0.0",
|
|
65
|
-
"@commitlint/cli": "^21.0.0",
|
|
66
|
-
"@commitlint/config-conventional": "^21.0.0",
|
|
67
|
-
"@vitejs/plugin-vue": "^6.0.5",
|
|
68
|
-
"@vitejs/plugin-vue-jsx": "^5.1.5",
|
|
69
|
-
"ant-design-vue": "^4.2.3",
|
|
70
|
-
"esbuild": "^0.28.0",
|
|
71
|
-
"husky": "^9.1.5",
|
|
72
|
-
"lint-staged": "^15.2.9",
|
|
73
|
-
"prettier": "^3.3.3",
|
|
74
|
-
"rimraf": "^6.0.1",
|
|
75
|
-
"sass": "^1.77.8",
|
|
76
|
-
"scroll-into-view-if-needed": "^2.2.31",
|
|
77
|
-
"ts-patch": "^3.2.1",
|
|
78
|
-
"typescript-transform-paths": "^3.5.0",
|
|
79
|
-
"vite": "^8.0.8",
|
|
80
|
-
"vite-plugin-dts": "^4.5.4",
|
|
81
|
-
"vue": "^3.5.33",
|
|
82
|
-
"vue-tsc": "3.3.5",
|
|
83
|
-
"vue-types": "^3.0.2"
|
|
84
|
-
}
|
|
85
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@vue-ui-kit/ant",
|
|
3
|
+
"version": "2.5.12-beta.0",
|
|
4
|
+
"description": "Vue3 UI Kit based on Ant Design",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "./dist/cjs/index.js",
|
|
7
|
+
"module": "./dist/es/index.js",
|
|
8
|
+
"types": "./dist/index.d.ts",
|
|
9
|
+
"style": "./dist/style.css",
|
|
10
|
+
"sass": "./src/packages/styles/index.scss",
|
|
11
|
+
"exports": {
|
|
12
|
+
".": {
|
|
13
|
+
"require": "./dist/cjs/index.js",
|
|
14
|
+
"import": "./dist/es/index.js",
|
|
15
|
+
"types": "./dist/index.d.ts"
|
|
16
|
+
},
|
|
17
|
+
"./style.css": "./dist/style.css",
|
|
18
|
+
"./style.scss": "./src/packages/styles/index.scss",
|
|
19
|
+
"./dist/style.scss": "./src/packages/styles/index.scss",
|
|
20
|
+
"./dist/style.css": "./dist/style.css"
|
|
21
|
+
},
|
|
22
|
+
"files": [
|
|
23
|
+
"dist",
|
|
24
|
+
"src",
|
|
25
|
+
"README.md",
|
|
26
|
+
"README.zh.md",
|
|
27
|
+
"tsconfig.json"
|
|
28
|
+
],
|
|
29
|
+
"scripts": {
|
|
30
|
+
"dev": "ts-patch uninstall && vue-tsc --noEmit --skipLibCheck & vite",
|
|
31
|
+
"typecheck": "ts-patch uninstall && vue-tsc --noEmit --skipLibCheck",
|
|
32
|
+
"build": "ts-patch install && vite build && sass src/packages/styles/index.scss dist/style.css --no-source-map",
|
|
33
|
+
"prepack": "rimraf dist && pnpm build",
|
|
34
|
+
"prepare": "husky",
|
|
35
|
+
"lint:lint-staged": "lint-staged",
|
|
36
|
+
"lint:prettier": "prettier --write \"src/**/*.{js,json,tsx,css,less,scss,vue,html,md}\""
|
|
37
|
+
},
|
|
38
|
+
"keywords": [
|
|
39
|
+
"vue3",
|
|
40
|
+
"ui kit",
|
|
41
|
+
"ant design",
|
|
42
|
+
"ant",
|
|
43
|
+
"antdv"
|
|
44
|
+
],
|
|
45
|
+
"author": {
|
|
46
|
+
"name": "adoin",
|
|
47
|
+
"email": "adoin@qq.com"
|
|
48
|
+
},
|
|
49
|
+
"dependencies": {
|
|
50
|
+
"e-virt-table": "1.4.3",
|
|
51
|
+
"uuid": "^11.1.1",
|
|
52
|
+
"xe-utils": "^3.7.6"
|
|
53
|
+
},
|
|
54
|
+
"peerDependencies": {
|
|
55
|
+
"@ant-design/icons-vue": ">=7.0.0",
|
|
56
|
+
"ant-design-vue": ">=4.0.0",
|
|
57
|
+
"vue": ">=3.2.0"
|
|
58
|
+
},
|
|
59
|
+
"license": "GPL",
|
|
60
|
+
"engines": {
|
|
61
|
+
"node": "^20.19.0 || >=22.12.0"
|
|
62
|
+
},
|
|
63
|
+
"devDependencies": {
|
|
64
|
+
"@ant-design/icons-vue": ">=7.0.0",
|
|
65
|
+
"@commitlint/cli": "^21.0.0",
|
|
66
|
+
"@commitlint/config-conventional": "^21.0.0",
|
|
67
|
+
"@vitejs/plugin-vue": "^6.0.5",
|
|
68
|
+
"@vitejs/plugin-vue-jsx": "^5.1.5",
|
|
69
|
+
"ant-design-vue": "^4.2.3",
|
|
70
|
+
"esbuild": "^0.28.0",
|
|
71
|
+
"husky": "^9.1.5",
|
|
72
|
+
"lint-staged": "^15.2.9",
|
|
73
|
+
"prettier": "^3.3.3",
|
|
74
|
+
"rimraf": "^6.0.1",
|
|
75
|
+
"sass": "^1.77.8",
|
|
76
|
+
"scroll-into-view-if-needed": "^2.2.31",
|
|
77
|
+
"ts-patch": "^3.2.1",
|
|
78
|
+
"typescript-transform-paths": "^3.5.0",
|
|
79
|
+
"vite": "^8.0.8",
|
|
80
|
+
"vite-plugin-dts": "^4.5.4",
|
|
81
|
+
"vue": "^3.5.33",
|
|
82
|
+
"vue-tsc": "3.3.5",
|
|
83
|
+
"vue-types": "^3.0.2"
|
|
84
|
+
}
|
|
85
|
+
}
|