@vue-ui-kit/ant 2.5.10 → 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 +14 -14
- package/dist/es/index.js +1508 -1355
- package/dist/index.d.ts +58 -4
- package/dist/style.css +4 -4
- package/package.json +2 -2
- package/src/declarations/antProxy.ts +516 -491
- package/src/packages/components/PCanvasGrid.vue +17 -0
- package/src/packages/components/PCanvasTable.vue +7 -1
- package/src/packages/styles/canvas-theme.scss +4 -4
package/dist/index.d.ts
CHANGED
|
@@ -268,6 +268,10 @@ declare type BodyOptions = {
|
|
|
268
268
|
data: any[];
|
|
269
269
|
};
|
|
270
270
|
|
|
271
|
+
export declare type BorderConfigValue = boolean | BorderStyle;
|
|
272
|
+
|
|
273
|
+
export declare type BorderStyle = 'default' | 'outer' | 'inner' | 'none';
|
|
274
|
+
|
|
271
275
|
export declare interface CanvasColumnProps<T extends Recordable = Recordable> extends Omit<Column, 'children' | 'formatter' | 'key'> {
|
|
272
276
|
key?: string;
|
|
273
277
|
field?: string;
|
|
@@ -419,6 +423,7 @@ declare class Cell extends BaseCell {
|
|
|
419
423
|
userSelect: string;
|
|
420
424
|
};
|
|
421
425
|
drawContainer(): void;
|
|
426
|
+
drawHorizontalBorder(): void;
|
|
422
427
|
private drawAutofillPiont;
|
|
423
428
|
draw(): void;
|
|
424
429
|
/**
|
|
@@ -703,7 +708,7 @@ declare class Config {
|
|
|
703
708
|
/** 单元格字体 */
|
|
704
709
|
BODY_FONT: string;
|
|
705
710
|
/** 边框 */
|
|
706
|
-
BORDER:
|
|
711
|
+
BORDER: BorderConfigValue;
|
|
707
712
|
/** 斑马纹 */
|
|
708
713
|
STRIPE: boolean;
|
|
709
714
|
/** 斑马纹颜色 */
|
|
@@ -790,6 +795,10 @@ declare class Config {
|
|
|
790
795
|
ENABLE_ZOOM_WHEEL: boolean;
|
|
791
796
|
/** 滚动条轨道尺寸 */
|
|
792
797
|
SCROLLER_TRACK_SIZE: number;
|
|
798
|
+
/** 滚动条模式,outer 为外部预留区域,inner 为覆盖在内容上 */
|
|
799
|
+
scrollbarMode: ScrollbarMode_2;
|
|
800
|
+
/** 内部滚动条悬停后显示延迟 */
|
|
801
|
+
SCROLLBAR_SHOW_DELAY: number;
|
|
793
802
|
/** 滚动条滑块尺寸 */
|
|
794
803
|
SCROLLER_SIZE: number;
|
|
795
804
|
/** 滚动条滑块颜色 */
|
|
@@ -1609,6 +1618,7 @@ declare class EVirtTable {
|
|
|
1609
1618
|
constructor(target: HTMLDivElement, options: EVirtTableOptions);
|
|
1610
1619
|
private createContainer;
|
|
1611
1620
|
private doDraw;
|
|
1621
|
+
private updateStageBorder;
|
|
1612
1622
|
draw(ignoreOverlayer?: boolean): void;
|
|
1613
1623
|
loadConfig(_config: ConfigType): void;
|
|
1614
1624
|
loadColumns(columns: Column[]): void;
|
|
@@ -2024,7 +2034,11 @@ export declare const PCanvasGrid: <D extends Recordable = Recordable, F extends
|
|
|
2024
2034
|
records: D[];
|
|
2025
2035
|
}) => any) | undefined;
|
|
2026
2036
|
readonly onResetQuery?: (() => any) | undefined;
|
|
2027
|
-
|
|
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;
|
|
2028
2042
|
expose(exposed: ShallowUnwrapRef< {
|
|
2029
2043
|
commitProxy: {
|
|
2030
2044
|
query: (this: any, ...args: any[]) => any;
|
|
@@ -2839,6 +2853,10 @@ export declare const PCanvasGrid: <D extends Recordable = Recordable, F extends
|
|
|
2839
2853
|
field: string;
|
|
2840
2854
|
}): void;
|
|
2841
2855
|
(event: "resetQuery"): void;
|
|
2856
|
+
(event: "sortChange", value: Map<string, {
|
|
2857
|
+
direction: "asc" | "desc" | "none";
|
|
2858
|
+
timestamp: number;
|
|
2859
|
+
}>): void;
|
|
2842
2860
|
};
|
|
2843
2861
|
}>) => VNode & {
|
|
2844
2862
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
@@ -2857,6 +2875,27 @@ export declare interface PCanvasGridProps<D extends Recordable = Recordable, F e
|
|
|
2857
2875
|
pageConfig?: PageConfig;
|
|
2858
2876
|
proxyConfig?: ProxyConfig<D, F>;
|
|
2859
2877
|
config?: ConfigType;
|
|
2878
|
+
/**
|
|
2879
|
+
* 表格边框样式,映射 e-virt-table `BORDER`。
|
|
2880
|
+
* - `true` / `'default'`:完整单元格边框
|
|
2881
|
+
* - `'outer'`:仅外边框
|
|
2882
|
+
* - `'inner'` / `false`:仅内部横线
|
|
2883
|
+
* - `'none'`:无边框
|
|
2884
|
+
* 显式传入时优先于 `config.BORDER`。
|
|
2885
|
+
*/
|
|
2886
|
+
border?: BorderConfigValue;
|
|
2887
|
+
/**
|
|
2888
|
+
* 滚动条模式,映射 e-virt-table `scrollbarMode`。
|
|
2889
|
+
* - `'outer'`:外部预留滚动条轨道(默认)
|
|
2890
|
+
* - `'inner'`:覆盖在内容上,悬停表格内部后显示
|
|
2891
|
+
* 显式传入时优先于 `config.scrollbarMode`。
|
|
2892
|
+
*/
|
|
2893
|
+
scrollbarMode?: ScrollbarMode;
|
|
2894
|
+
/**
|
|
2895
|
+
* 内部滚动条(`scrollbarMode: 'inner'`)悬停后显示延迟(ms),映射 `SCROLLBAR_SHOW_DELAY`。
|
|
2896
|
+
* 显式传入时优先于 `config.SCROLLBAR_SHOW_DELAY`。
|
|
2897
|
+
*/
|
|
2898
|
+
scrollbarShowDelay?: number;
|
|
2860
2899
|
lazyReset?: boolean;
|
|
2861
2900
|
/**
|
|
2862
2901
|
* 适应展示区到页面顶部的高度,通常和容器最上的y值有关(正比)
|
|
@@ -2881,10 +2920,14 @@ export declare const PCanvasTable: <T extends Recordable = Recordable, B extends
|
|
|
2881
2920
|
props: __VLS_PrettifyLocal_3<Pick<Partial<{}> & Omit<{
|
|
2882
2921
|
readonly onChange?: ((value: any[]) => any) | undefined;
|
|
2883
2922
|
readonly onSelectionChange?: ((value: T[]) => any) | undefined;
|
|
2923
|
+
readonly onSortChange?: ((value: Map<string, {
|
|
2924
|
+
direction: "asc" | "desc" | "none";
|
|
2925
|
+
timestamp: number;
|
|
2926
|
+
}>) => any) | undefined;
|
|
2884
2927
|
readonly onReady?: ((value: EVirtTable) => any) | undefined;
|
|
2885
|
-
} & 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;
|
|
2886
2929
|
expose(exposed: ShallowUnwrapRef< {
|
|
2887
|
-
$table: null;
|
|
2930
|
+
readonly $table: EVirtTable | null;
|
|
2888
2931
|
selectedRecords: ComputedRef<UnwrapRefSimple<T>[]>;
|
|
2889
2932
|
reloadData: () => void;
|
|
2890
2933
|
}>): void;
|
|
@@ -3039,6 +3082,10 @@ export declare const PCanvasTable: <T extends Recordable = Recordable, B extends
|
|
|
3039
3082
|
emit: {
|
|
3040
3083
|
(e: "change", value: any[]): void;
|
|
3041
3084
|
(e: "selectionChange", value: T[]): void;
|
|
3085
|
+
(e: "sortChange", value: Map<string, {
|
|
3086
|
+
direction: "asc" | "desc" | "none";
|
|
3087
|
+
timestamp: number;
|
|
3088
|
+
}>): void;
|
|
3042
3089
|
(e: "ready", value: EVirtTable): void;
|
|
3043
3090
|
};
|
|
3044
3091
|
}>) => VNode & {
|
|
@@ -5114,6 +5161,8 @@ declare class Row {
|
|
|
5114
5161
|
drawFixed(): void;
|
|
5115
5162
|
drawContainer(): void;
|
|
5116
5163
|
drawFixedContainer(): void;
|
|
5164
|
+
drawHorizontalBorder(): void;
|
|
5165
|
+
drawFixedHorizontalBorder(): void;
|
|
5117
5166
|
}
|
|
5118
5167
|
|
|
5119
5168
|
declare type RowMaxHeightData = {
|
|
@@ -5152,6 +5201,11 @@ declare type Rules = Rule[];
|
|
|
5152
5201
|
|
|
5153
5202
|
declare type RuleValidator = (rule: Rule, value: any, callback: (message?: string) => void) => void;
|
|
5154
5203
|
|
|
5204
|
+
/** 与 e-virt-table `scrollbarMode` 对齐:`outer` 外部预留,`inner` 内部悬停显示 */
|
|
5205
|
+
export declare type ScrollbarMode = 'outer' | 'inner';
|
|
5206
|
+
|
|
5207
|
+
declare type ScrollbarMode_2 = 'outer' | 'inner';
|
|
5208
|
+
|
|
5155
5209
|
declare type ScrollBehavior_2 = 'auto' | 'smooth';
|
|
5156
5210
|
|
|
5157
5211
|
declare type ScrollLogicalPosition_2 = 'start' | 'center' | 'end' | 'nearest';
|
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,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vue-ui-kit/ant",
|
|
3
|
-
"version": "2.5.
|
|
3
|
+
"version": "2.5.12-beta.0",
|
|
4
4
|
"description": "Vue3 UI Kit based on Ant Design",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/cjs/index.js",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"email": "adoin@qq.com"
|
|
48
48
|
},
|
|
49
49
|
"dependencies": {
|
|
50
|
-
"e-virt-table": "1.4.
|
|
50
|
+
"e-virt-table": "1.4.3",
|
|
51
51
|
"uuid": "^11.1.1",
|
|
52
52
|
"xe-utils": "^3.7.6"
|
|
53
53
|
},
|