vxe-table 3.6.12-beta.0 → 3.6.12-beta.2
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/lib/icon/style/style.css +1 -1
- package/lib/icon/style/style.min.css +1 -1
- package/lib/index.css +1 -1
- package/lib/index.umd.js +4 -3
- package/lib/index.umd.min.js +1 -1
- package/lib/style.css +1 -1
- package/lib/style.min.css +1 -1
- package/lib/table/src/methods.js +2 -1
- package/lib/table/src/methods.min.js +1 -1
- package/lib/tools/log.js +1 -1
- package/lib/tools/log.min.js +1 -1
- package/lib/v-x-e-table/index.js +1 -1
- package/lib/v-x-e-table/index.min.js +1 -1
- package/package.json +1 -1
- package/packages/table/src/methods.js +2 -1
- package/types/table.d.ts +49 -27
- /package/lib/icon/style/{iconfont.1677164683133.ttf → iconfont.1678407950638.ttf} +0 -0
- /package/lib/icon/style/{iconfont.1677164683133.woff → iconfont.1678407950638.woff} +0 -0
- /package/lib/icon/style/{iconfont.1677164683133.woff2 → iconfont.1678407950638.woff2} +0 -0
- /package/lib/{iconfont.1677164683133.ttf → iconfont.1678407950638.ttf} +0 -0
- /package/lib/{iconfont.1677164683133.woff → iconfont.1678407950638.woff} +0 -0
- /package/lib/{iconfont.1677164683133.woff2 → iconfont.1678407950638.woff2} +0 -0
package/types/table.d.ts
CHANGED
|
@@ -246,6 +246,7 @@ export declare class Table extends VXETableComponent {
|
|
|
246
246
|
oSize?: number;
|
|
247
247
|
[key: string]: any;
|
|
248
248
|
};
|
|
249
|
+
|
|
249
250
|
/**
|
|
250
251
|
* 纵向虚拟滚动配置
|
|
251
252
|
*/
|
|
@@ -260,6 +261,7 @@ export declare class Table extends VXETableComponent {
|
|
|
260
261
|
oSize?: number;
|
|
261
262
|
[key: string]: any;
|
|
262
263
|
};
|
|
264
|
+
|
|
263
265
|
// 额外的参数
|
|
264
266
|
params?: any;
|
|
265
267
|
|
|
@@ -318,6 +320,7 @@ export declare class Table extends VXETableComponent {
|
|
|
318
320
|
index: number;
|
|
319
321
|
parent?: RowInfo;
|
|
320
322
|
};
|
|
323
|
+
|
|
321
324
|
/**
|
|
322
325
|
* 根据 th/td 元素获取对应的 column 信息
|
|
323
326
|
* @param cell 单元格节点元素
|
|
@@ -329,6 +332,7 @@ export declare class Table extends VXETableComponent {
|
|
|
329
332
|
index: number;
|
|
330
333
|
parent?: ColumnInfo;
|
|
331
334
|
};
|
|
335
|
+
|
|
332
336
|
/**
|
|
333
337
|
* 根据 row 获取相对于 data 中的索引
|
|
334
338
|
* @param row 行对象
|
|
@@ -418,6 +422,7 @@ export declare class Table extends VXETableComponent {
|
|
|
418
422
|
visibleColumn: ColumnInfo[];
|
|
419
423
|
tableColumn: ColumnInfo[];
|
|
420
424
|
};
|
|
425
|
+
|
|
421
426
|
/**
|
|
422
427
|
* 获取数据,和 data 的行为一致,也可以指定索引获取数据
|
|
423
428
|
*/
|
|
@@ -441,6 +446,7 @@ export declare class Table extends VXETableComponent {
|
|
|
441
446
|
tableData: RowInfo[];
|
|
442
447
|
footerData: any[][];
|
|
443
448
|
};
|
|
449
|
+
|
|
444
450
|
/**
|
|
445
451
|
* 隐藏指定列
|
|
446
452
|
* @param column 列对象
|
|
@@ -608,7 +614,7 @@ export declare class Table extends VXETableComponent {
|
|
|
608
614
|
/**
|
|
609
615
|
* 手动清空排序条件,数据会恢复成未排序的状态
|
|
610
616
|
*/
|
|
611
|
-
|
|
617
|
+
clearSort(fieldOrColumn?: string | ColumnInfo | null): Promise<any>;
|
|
612
618
|
/**
|
|
613
619
|
* 获取当前排序的 column 信息
|
|
614
620
|
*/
|
|
@@ -719,6 +725,7 @@ export declare class Table extends VXETableComponent {
|
|
|
719
725
|
scrollTop: number;
|
|
720
726
|
scrollLeft: number;
|
|
721
727
|
};
|
|
728
|
+
|
|
722
729
|
/**
|
|
723
730
|
* 如果有滚动条,则滚动到对应的位置
|
|
724
731
|
* @param scrollLeft 左边距离
|
|
@@ -754,6 +761,7 @@ export declare class Table extends VXETableComponent {
|
|
|
754
761
|
column: ColumnInfo;
|
|
755
762
|
}
|
|
756
763
|
): Promise<any>;
|
|
764
|
+
|
|
757
765
|
/**
|
|
758
766
|
* 用于 filters,修改筛选列表
|
|
759
767
|
* 在筛选条件更新之后可以调用 updateData 函数处理表格数据
|
|
@@ -778,6 +786,7 @@ export declare class Table extends VXETableComponent {
|
|
|
778
786
|
row: RowInfo;
|
|
779
787
|
column: ColumnInfo;
|
|
780
788
|
};
|
|
789
|
+
|
|
781
790
|
/**
|
|
782
791
|
* 用于 mouse-config.area,用于获取鼠标选择的区域
|
|
783
792
|
*/
|
|
@@ -846,6 +855,7 @@ export declare class Table extends VXETableComponent {
|
|
|
846
855
|
removeRecords: RowInfo[];
|
|
847
856
|
updateRecords: RowInfo[];
|
|
848
857
|
};
|
|
858
|
+
|
|
849
859
|
/**
|
|
850
860
|
* 用于 edit-config,获取新增的临时数据
|
|
851
861
|
*/
|
|
@@ -863,7 +873,7 @@ export declare class Table extends VXETableComponent {
|
|
|
863
873
|
* @deprecated
|
|
864
874
|
*/
|
|
865
875
|
clearActived(evnt?: Event): Promise<any>
|
|
866
|
-
|
|
876
|
+
/**
|
|
867
877
|
* 手动清除单元格激活状态
|
|
868
878
|
*/
|
|
869
879
|
clearEdit(evnt?: Event): Promise<any>
|
|
@@ -884,6 +894,7 @@ export declare class Table extends VXETableComponent {
|
|
|
884
894
|
$columnIndex: number
|
|
885
895
|
cell: HTMLElement
|
|
886
896
|
}
|
|
897
|
+
|
|
887
898
|
/**
|
|
888
899
|
* 用于 edit-config,获取已激活的行数据
|
|
889
900
|
*/
|
|
@@ -896,12 +907,13 @@ export declare class Table extends VXETableComponent {
|
|
|
896
907
|
$columnIndex: number
|
|
897
908
|
cell: HTMLElement
|
|
898
909
|
}
|
|
910
|
+
|
|
899
911
|
/**
|
|
900
912
|
* 请使用 isEditByRow
|
|
901
913
|
* @deprecated
|
|
902
914
|
*/
|
|
903
915
|
isActiveByRow(row: any): boolean
|
|
904
|
-
|
|
916
|
+
/**
|
|
905
917
|
* 用于 edit-config,判断行是否为激活编辑状态
|
|
906
918
|
* @param row 指定行
|
|
907
919
|
*/
|
|
@@ -916,17 +928,17 @@ export declare class Table extends VXETableComponent {
|
|
|
916
928
|
* @deprecated
|
|
917
929
|
*/
|
|
918
930
|
setActiveRow(row: any): Promise<any>
|
|
919
|
-
|
|
931
|
+
/**
|
|
920
932
|
* 用于 edit-config,激活行编辑并激活第一个单元格
|
|
921
933
|
* @param row 指定行
|
|
922
934
|
*/
|
|
923
935
|
setEditRow(row: any): Promise<any>
|
|
924
|
-
|
|
936
|
+
/**
|
|
925
937
|
* 请使用 setEditCell
|
|
926
938
|
* @deprecated
|
|
927
939
|
*/
|
|
928
940
|
setActiveCell(row: any, fieldOrColumn: string | ColumnInfo): Promise<any>
|
|
929
|
-
|
|
941
|
+
/**
|
|
930
942
|
* 用于 edit-config,激活单元格编辑
|
|
931
943
|
* @param row 指定行
|
|
932
944
|
* @param field 字段名
|
|
@@ -947,6 +959,7 @@ export declare class Table extends VXETableComponent {
|
|
|
947
959
|
column?: number | ColumnInfo;
|
|
948
960
|
row?: number | RowInfo;
|
|
949
961
|
}): Promise<any>;
|
|
962
|
+
|
|
950
963
|
/**
|
|
951
964
|
* 用于 mouse-config.area,设置活动的区域的单元格
|
|
952
965
|
* @param activeArea
|
|
@@ -956,6 +969,7 @@ export declare class Table extends VXETableComponent {
|
|
|
956
969
|
column: number | ColumnInfo;
|
|
957
970
|
row: number | RowInfo;
|
|
958
971
|
}): Promise<any>;
|
|
972
|
+
|
|
959
973
|
/**
|
|
960
974
|
* 临时合并单元格,如果为数组则合并多个
|
|
961
975
|
*/
|
|
@@ -1002,7 +1016,7 @@ export declare class Table extends VXETableComponent {
|
|
|
1002
1016
|
importData(options?: TableImportConfig): Promise<any>;
|
|
1003
1017
|
/**
|
|
1004
1018
|
* 保存文件到本地
|
|
1005
|
-
* @param options
|
|
1019
|
+
* @param options
|
|
1006
1020
|
*/
|
|
1007
1021
|
saveFile(options: SaveFileOptions): Promise<any>;
|
|
1008
1022
|
/**
|
|
@@ -1032,6 +1046,10 @@ export declare class Table extends VXETableComponent {
|
|
|
1032
1046
|
* 手动关闭查找与替换窗口
|
|
1033
1047
|
*/
|
|
1034
1048
|
closeFNR(): Promise<any>;
|
|
1049
|
+
/**
|
|
1050
|
+
* 用于 mouse-config.area,更新已选区域的单元格样式
|
|
1051
|
+
*/
|
|
1052
|
+
updateCellAreas(): Promise<void>;
|
|
1035
1053
|
/**
|
|
1036
1054
|
* 连接工具栏
|
|
1037
1055
|
* @param toolbar 工具栏组件实例
|
|
@@ -1059,10 +1077,10 @@ export interface TableFooterMethodParams {
|
|
|
1059
1077
|
}
|
|
1060
1078
|
export function TableFooterMethod(params: TableFooterMethodParams): Array<string | number | null>[];
|
|
1061
1079
|
|
|
1062
|
-
export
|
|
1080
|
+
export type TableSpanMethodParams = ColumnCellRenderParams
|
|
1063
1081
|
export function TableSpanMethod(params: TableSpanMethodParams): { rowspan: number, colspan: number }
|
|
1064
1082
|
|
|
1065
|
-
export
|
|
1083
|
+
export type TableFooterSpanMethodParams = ColumnFooterRenderParams
|
|
1066
1084
|
export function TableFooterSpanMethod(params: TableFooterSpanMethodParams): { rowspan: number, colspan: number }
|
|
1067
1085
|
|
|
1068
1086
|
export interface TableOptions {
|
|
@@ -1160,7 +1178,7 @@ export interface TableColumnConfig {
|
|
|
1160
1178
|
width?: number;
|
|
1161
1179
|
minWidth?: number;
|
|
1162
1180
|
}
|
|
1163
|
-
export
|
|
1181
|
+
export type ColumnDefaultConfig = TableColumnConfig
|
|
1164
1182
|
|
|
1165
1183
|
/**
|
|
1166
1184
|
* 自定义列配置项
|
|
@@ -1172,7 +1190,7 @@ export interface TableCustomConfig {
|
|
|
1172
1190
|
};
|
|
1173
1191
|
checkMethod?(params: { column: ColumnInfo }): boolean;
|
|
1174
1192
|
}
|
|
1175
|
-
export
|
|
1193
|
+
export type CustomConfig = TableCustomConfig
|
|
1176
1194
|
|
|
1177
1195
|
/**
|
|
1178
1196
|
* 序号配置项
|
|
@@ -1181,7 +1199,7 @@ export interface TableSeqConfig {
|
|
|
1181
1199
|
startIndex?: number;
|
|
1182
1200
|
seqMethod?(params: ColumnCellRenderParams): number;
|
|
1183
1201
|
}
|
|
1184
|
-
export
|
|
1202
|
+
export type SeqConfig = TableSeqConfig
|
|
1185
1203
|
|
|
1186
1204
|
export interface TableSortConfs {
|
|
1187
1205
|
field: string;
|
|
@@ -1206,7 +1224,7 @@ export interface TableSortConfig {
|
|
|
1206
1224
|
iconAsc?: string;
|
|
1207
1225
|
iconDesc?: string;
|
|
1208
1226
|
}
|
|
1209
|
-
export
|
|
1227
|
+
export type SortConfig = TableSortConfig
|
|
1210
1228
|
|
|
1211
1229
|
/**
|
|
1212
1230
|
* 筛选配置项
|
|
@@ -1217,7 +1235,7 @@ export interface TableFilterConfig {
|
|
|
1217
1235
|
iconNone?: string;
|
|
1218
1236
|
iconMatch?: string;
|
|
1219
1237
|
}
|
|
1220
|
-
export
|
|
1238
|
+
export type FilterConfig = TableFilterConfig
|
|
1221
1239
|
|
|
1222
1240
|
/**
|
|
1223
1241
|
* 单选框配置
|
|
@@ -1230,7 +1248,7 @@ export interface TableRadioConfig {
|
|
|
1230
1248
|
trigger?: 'default' | 'cell' | 'row';
|
|
1231
1249
|
highlight?: boolean;
|
|
1232
1250
|
}
|
|
1233
|
-
export
|
|
1251
|
+
export type RadioConfig = TableRadioConfig
|
|
1234
1252
|
|
|
1235
1253
|
/**
|
|
1236
1254
|
* 复选框配置项
|
|
@@ -1250,7 +1268,7 @@ export interface TableCheckboxConfig {
|
|
|
1250
1268
|
highlight?: boolean;
|
|
1251
1269
|
range?: boolean;
|
|
1252
1270
|
}
|
|
1253
|
-
export
|
|
1271
|
+
export type CheckboxConfig = TableCheckboxConfig
|
|
1254
1272
|
|
|
1255
1273
|
/**
|
|
1256
1274
|
* 提示信息配置项
|
|
@@ -1262,7 +1280,7 @@ export interface TableTooltipConfig {
|
|
|
1262
1280
|
leaveDelay?: number;
|
|
1263
1281
|
contentMethod?(params: { items: any[], row: RowInfo, rowIndex: number, $rowIndex: number, column: ColumnInfo, columnIndex: number, $columnIndex: number, type: 'header' | 'body' | 'footer', cell: HTMLElement, $event: any }): string | null | void;
|
|
1264
1282
|
}
|
|
1265
|
-
export
|
|
1283
|
+
export type TooltipConfig = TableTooltipConfig
|
|
1266
1284
|
|
|
1267
1285
|
/**
|
|
1268
1286
|
* 展开行配置项
|
|
@@ -1283,7 +1301,7 @@ export interface TableExpandConfig {
|
|
|
1283
1301
|
iconClose?: string;
|
|
1284
1302
|
iconLoaded?: string;
|
|
1285
1303
|
}
|
|
1286
|
-
export
|
|
1304
|
+
export type ExpandConfig = TableExpandConfig
|
|
1287
1305
|
|
|
1288
1306
|
/**
|
|
1289
1307
|
* 树形结构配置项
|
|
@@ -1305,7 +1323,7 @@ export interface TableTreeConfig {
|
|
|
1305
1323
|
iconClose?: string;
|
|
1306
1324
|
iconLoaded?: string;
|
|
1307
1325
|
}
|
|
1308
|
-
export
|
|
1326
|
+
export type TreeConfig = TableTreeConfig
|
|
1309
1327
|
|
|
1310
1328
|
export interface TreeOpts {
|
|
1311
1329
|
children: string;
|
|
@@ -1336,8 +1354,8 @@ export interface TableMenuConfig {
|
|
|
1336
1354
|
visibleMethod?(params: { type: string, options: MenuFirstOption[], columns: ColumnInfo[], row?: RowInfo, rowIndex?: number, column?: ColumnInfo, columnIndex?: number }): boolean;
|
|
1337
1355
|
className?: string;
|
|
1338
1356
|
}
|
|
1339
|
-
export
|
|
1340
|
-
export
|
|
1357
|
+
export type TableContextMenu = TableMenuConfig
|
|
1358
|
+
export type ContextMenuConfig = TableContextMenu
|
|
1341
1359
|
|
|
1342
1360
|
/**
|
|
1343
1361
|
* 鼠标配置项
|
|
@@ -1349,7 +1367,7 @@ export interface TableMouseConfig {
|
|
|
1349
1367
|
*/
|
|
1350
1368
|
area?: boolean;
|
|
1351
1369
|
}
|
|
1352
|
-
export
|
|
1370
|
+
export type MouseConfig = TableMouseConfig
|
|
1353
1371
|
|
|
1354
1372
|
export interface MouseCellArea {
|
|
1355
1373
|
main: boolean;
|
|
@@ -1377,7 +1395,7 @@ export interface TableMergeConfig {
|
|
|
1377
1395
|
rowspan: number;
|
|
1378
1396
|
colspan: number;
|
|
1379
1397
|
}
|
|
1380
|
-
export
|
|
1398
|
+
export type MergeOptions = TableMergeConfig
|
|
1381
1399
|
|
|
1382
1400
|
export interface MergeItem {
|
|
1383
1401
|
row: number;
|
|
@@ -1403,6 +1421,10 @@ export interface TableKeyboardConfig {
|
|
|
1403
1421
|
* 是否开启回车移动上下行移动
|
|
1404
1422
|
*/
|
|
1405
1423
|
isEnter?: boolean;
|
|
1424
|
+
/**
|
|
1425
|
+
* 如果功能被支持,用于 mouse-config.area,开启同时按住方向键以活动区域为起始,向指定方向延伸单元格区域
|
|
1426
|
+
*/
|
|
1427
|
+
isShift?: boolean
|
|
1406
1428
|
/**
|
|
1407
1429
|
* 是否开启TAB键左右移动功能
|
|
1408
1430
|
*/
|
|
@@ -1428,7 +1450,7 @@ export interface TableKeyboardConfig {
|
|
|
1428
1450
|
*/
|
|
1429
1451
|
editMethod?(params: { row: RowInfo, rowIndex: number, column: ColumnInfo, columnIndex: number, cell: HTMLElement }): boolean;
|
|
1430
1452
|
}
|
|
1431
|
-
export
|
|
1453
|
+
export type KeyboardConfig = TableKeyboardConfig
|
|
1432
1454
|
|
|
1433
1455
|
/**
|
|
1434
1456
|
* 复制粘贴配置项
|
|
@@ -1472,7 +1494,7 @@ export interface TableEditConfig {
|
|
|
1472
1494
|
*/
|
|
1473
1495
|
activeMethod?(params: { row: RowInfo, rowIndex: number, column: ColumnInfo, columnIndex: number }): boolean;
|
|
1474
1496
|
}
|
|
1475
|
-
export
|
|
1497
|
+
export type EditConfig = TableEditConfig
|
|
1476
1498
|
|
|
1477
1499
|
/**
|
|
1478
1500
|
* 校验配置项
|
|
@@ -1482,7 +1504,7 @@ export interface TableValidConfig {
|
|
|
1482
1504
|
message?: string;
|
|
1483
1505
|
maxWidth?: number;
|
|
1484
1506
|
}
|
|
1485
|
-
export
|
|
1507
|
+
export type ValidConfig = TableValidConfig
|
|
1486
1508
|
|
|
1487
1509
|
/**
|
|
1488
1510
|
* 校验规则配置项
|
|
@@ -1490,4 +1512,4 @@ export interface ValidConfig extends TableValidConfig {}
|
|
|
1490
1512
|
export interface EditVaildRules {
|
|
1491
1513
|
[field: string]: ColumnEditRule[];
|
|
1492
1514
|
}
|
|
1493
|
-
export
|
|
1515
|
+
export type VaildRules = EditVaildRules
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|