vxe-pc-ui 4.7.30 → 4.8.1
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/es/icon/style.css +1 -1
- package/es/style.css +1 -1
- package/es/style.min.css +1 -1
- package/es/table-select/src/table-select.js +20 -3
- package/es/tree/src/tree.js +36 -5
- package/es/ui/index.js +1 -1
- package/es/ui/src/log.js +1 -1
- package/lib/icon/style/style.css +1 -1
- package/lib/icon/style/style.min.css +1 -1
- package/lib/index.umd.js +63 -10
- package/lib/index.umd.min.js +1 -1
- package/lib/style.css +1 -1
- package/lib/style.min.css +1 -1
- package/lib/table-select/src/table-select.js +19 -3
- package/lib/table-select/src/table-select.min.js +1 -1
- package/lib/tree/src/tree.js +42 -5
- package/lib/tree/src/tree.min.js +1 -1
- package/lib/ui/index.js +1 -1
- package/lib/ui/index.min.js +1 -1
- package/lib/ui/src/log.js +1 -1
- package/lib/ui/src/log.min.js +1 -1
- package/package.json +1 -1
- package/packages/table-select/src/table-select.ts +19 -3
- package/packages/tree/src/tree.ts +38 -8
- package/types/components/table-plugins/extend-pivot-table.d.ts +5 -1
- package/types/components/table.d.ts +28 -13
- package/types/components/tree.d.ts +15 -7
- /package/es/icon/{iconfont.1753674723968.ttf → iconfont.1753861253551.ttf} +0 -0
- /package/es/icon/{iconfont.1753674723968.woff → iconfont.1753861253551.woff} +0 -0
- /package/es/icon/{iconfont.1753674723968.woff2 → iconfont.1753861253551.woff2} +0 -0
- /package/es/{iconfont.1753674723968.ttf → iconfont.1753861253551.ttf} +0 -0
- /package/es/{iconfont.1753674723968.woff → iconfont.1753861253551.woff} +0 -0
- /package/es/{iconfont.1753674723968.woff2 → iconfont.1753861253551.woff2} +0 -0
- /package/lib/icon/style/{iconfont.1753674723968.ttf → iconfont.1753861253551.ttf} +0 -0
- /package/lib/icon/style/{iconfont.1753674723968.woff → iconfont.1753861253551.woff} +0 -0
- /package/lib/icon/style/{iconfont.1753674723968.woff2 → iconfont.1753861253551.woff2} +0 -0
- /package/lib/{iconfont.1753674723968.ttf → iconfont.1753861253551.ttf} +0 -0
- /package/lib/{iconfont.1753674723968.woff → iconfont.1753861253551.woff} +0 -0
- /package/lib/{iconfont.1753674723968.woff2 → iconfont.1753861253551.woff2} +0 -0
|
@@ -907,7 +907,7 @@ export namespace VxeTablePropTypes {
|
|
|
907
907
|
updateStore?(params: {
|
|
908
908
|
$table: VxeTableConstructor<D>
|
|
909
909
|
id: string
|
|
910
|
-
type: 'reset' | 'confirm' | 'update:width' | 'update:fixed' | 'update:sort' | 'update:visible' | 'update:
|
|
910
|
+
type: 'reset' | 'confirm' | 'update:width' | 'update:fixed' | 'update:sort' | 'update:visible' | 'update:aggGroup' | 'update:aggFunc'
|
|
911
911
|
storeData: VxeTableDefines.CustomStoreData
|
|
912
912
|
}): Promise<any>
|
|
913
913
|
mode?: 'default' | 'modal' | 'drawer' | 'simple' | 'popup' | '' | null
|
|
@@ -1449,9 +1449,9 @@ export namespace VxeTablePropTypes {
|
|
|
1449
1449
|
*/
|
|
1450
1450
|
showLine?: boolean
|
|
1451
1451
|
/**
|
|
1452
|
-
* 树结构序号显示模式,支持层级序号和自增序号(仅支持 transform
|
|
1452
|
+
* 树结构序号显示模式,支持层级序号和自增序号(仅支持 transform)个固定序号
|
|
1453
1453
|
*/
|
|
1454
|
-
seqMode?: 'default' | 'increasing' | ''
|
|
1454
|
+
seqMode?: 'default' | 'increasing' | 'fixed' | '' | null
|
|
1455
1455
|
/**
|
|
1456
1456
|
* 默认展开所有子孙树节点(只会在初始化时被触发一次)
|
|
1457
1457
|
*/
|
|
@@ -1467,7 +1467,7 @@ export namespace VxeTablePropTypes {
|
|
|
1467
1467
|
/**
|
|
1468
1468
|
* 触发方式(注:当多种功能重叠时,会同时触发)
|
|
1469
1469
|
*/
|
|
1470
|
-
trigger?: 'default' | 'cell' | 'row' | 'manual' |'' | null
|
|
1470
|
+
trigger?: 'default' | 'cell' | 'row' | 'manual' | '' | null
|
|
1471
1471
|
/**
|
|
1472
1472
|
* 是否使用懒加载(启用后只有指定 hasChildField 字段的节点才允许被点击)
|
|
1473
1473
|
*/
|
|
@@ -5191,6 +5191,7 @@ export namespace VxeTableDefines {
|
|
|
5191
5191
|
$index: number
|
|
5192
5192
|
_index: number
|
|
5193
5193
|
treeIndex: number
|
|
5194
|
+
_tIndex: number
|
|
5194
5195
|
items: any[]
|
|
5195
5196
|
parent: any
|
|
5196
5197
|
level: number
|
|
@@ -5321,7 +5322,7 @@ export namespace VxeTableDefines {
|
|
|
5321
5322
|
/**
|
|
5322
5323
|
* @private
|
|
5323
5324
|
*/
|
|
5324
|
-
parentId: string
|
|
5325
|
+
parentId: string | null
|
|
5325
5326
|
/**
|
|
5326
5327
|
* @private
|
|
5327
5328
|
*/
|
|
@@ -5334,6 +5335,10 @@ export namespace VxeTableDefines {
|
|
|
5334
5335
|
* @private
|
|
5335
5336
|
*/
|
|
5336
5337
|
colSpan: number
|
|
5338
|
+
/**
|
|
5339
|
+
* @private
|
|
5340
|
+
*/
|
|
5341
|
+
defaultParentId: string | null
|
|
5337
5342
|
/**
|
|
5338
5343
|
* @private
|
|
5339
5344
|
*/
|
|
@@ -5346,6 +5351,10 @@ export namespace VxeTableDefines {
|
|
|
5346
5351
|
* @private
|
|
5347
5352
|
*/
|
|
5348
5353
|
defaultFixed: VxeColumnPropTypes.Fixed | undefined
|
|
5354
|
+
/**
|
|
5355
|
+
* @private
|
|
5356
|
+
*/
|
|
5357
|
+
defaultAggGroup: boolean
|
|
5349
5358
|
/**
|
|
5350
5359
|
* @private
|
|
5351
5360
|
*/
|
|
@@ -5896,37 +5905,43 @@ export namespace VxeTableDefines {
|
|
|
5896
5905
|
oldVisibleMaps: Record<string, boolean>
|
|
5897
5906
|
}
|
|
5898
5907
|
|
|
5908
|
+
export type CustomSortStoreObj = {
|
|
5909
|
+
k: string
|
|
5910
|
+
c?: CustomSortStoreObj[]
|
|
5911
|
+
}
|
|
5912
|
+
|
|
5899
5913
|
export interface CustomStoreData {
|
|
5900
5914
|
resizableData?: Record<string, number>
|
|
5901
|
-
sortData?:
|
|
5915
|
+
sortData?: CustomSortStoreObj[]
|
|
5902
5916
|
visibleData?: Record<string, boolean>
|
|
5903
5917
|
fixedData?: Record<string, VxeColumnPropTypes.Fixed>
|
|
5918
|
+
aggGroupData?: Record<string, boolean>
|
|
5904
5919
|
aggFuncData?: Record<string, VxeColumnPropTypes.AggFunc>
|
|
5905
5920
|
}
|
|
5906
5921
|
|
|
5907
5922
|
export interface VxeTableCustomStorageObj {
|
|
5908
5923
|
/**
|
|
5909
|
-
*
|
|
5924
|
+
* 保存列可视状态
|
|
5910
5925
|
*/
|
|
5911
5926
|
visible?: boolean
|
|
5912
5927
|
/**
|
|
5913
|
-
*
|
|
5928
|
+
* 保存列宽调整状态
|
|
5914
5929
|
*/
|
|
5915
5930
|
resizable?: boolean
|
|
5916
5931
|
/**
|
|
5917
|
-
*
|
|
5932
|
+
* 保存列冻结状态
|
|
5918
5933
|
*/
|
|
5919
5934
|
fixed?: boolean
|
|
5920
5935
|
/**
|
|
5921
|
-
*
|
|
5936
|
+
* 保存列顺序状态
|
|
5922
5937
|
*/
|
|
5923
5938
|
sort?: boolean
|
|
5924
5939
|
/**
|
|
5925
|
-
*
|
|
5940
|
+
* 保存列的聚合分组状态
|
|
5926
5941
|
*/
|
|
5927
|
-
|
|
5942
|
+
aggGroup?: boolean
|
|
5928
5943
|
/**
|
|
5929
|
-
*
|
|
5944
|
+
* 保存列聚合函数状态
|
|
5930
5945
|
*/
|
|
5931
5946
|
aggFunc?: boolean
|
|
5932
5947
|
}
|
|
@@ -305,7 +305,7 @@ export interface TreeMethods<D = any> {
|
|
|
305
305
|
/**
|
|
306
306
|
* 根据主键设置当前节点是否被选中
|
|
307
307
|
*/
|
|
308
|
-
setCurrentNodeId(nodeKey: string | number): Promise<any>
|
|
308
|
+
setCurrentNodeId(nodeKey: string | number | null): Promise<any>
|
|
309
309
|
/**
|
|
310
310
|
* 根据节点设置当前节点是否被选中
|
|
311
311
|
*/
|
|
@@ -325,7 +325,7 @@ export interface TreeMethods<D = any> {
|
|
|
325
325
|
/**
|
|
326
326
|
* 只对 show-radio 有效,通过键值设置节点是否被选中
|
|
327
327
|
*/
|
|
328
|
-
setRadioNodeId(nodeKey: string | number): Promise<any>
|
|
328
|
+
setRadioNodeId(nodeKey: string | number | null): Promise<any>
|
|
329
329
|
/**
|
|
330
330
|
* 用于 showRadio 单选框,设置指定节点为选中状态
|
|
331
331
|
*/
|
|
@@ -357,7 +357,7 @@ export interface TreeMethods<D = any> {
|
|
|
357
357
|
/**
|
|
358
358
|
* 用于 showCheckbox 复选框,设置指定节点 key 为选中状态,第二个参数为选中与否
|
|
359
359
|
*/
|
|
360
|
-
setCheckboxByNodeId(nodeKeys:
|
|
360
|
+
setCheckboxByNodeId(nodeKeys: string | number | null | (string | number | null)[], checked: boolean): Promise<any>
|
|
361
361
|
/**
|
|
362
362
|
* 已废弃,请使用 clearAllExpandNode
|
|
363
363
|
* @deprecated
|
|
@@ -370,7 +370,7 @@ export interface TreeMethods<D = any> {
|
|
|
370
370
|
/**
|
|
371
371
|
* 设置指定节点 key 为展开状态,第二个参数为选中与否
|
|
372
372
|
*/
|
|
373
|
-
setExpandByNodeId(nodeKeys:
|
|
373
|
+
setExpandByNodeId(nodeKeys: string | number | null | (string | number | null)[], expanded: boolean): Promise<any>
|
|
374
374
|
/**
|
|
375
375
|
* 设置指定节点为展开状态
|
|
376
376
|
*/
|
|
@@ -378,7 +378,7 @@ export interface TreeMethods<D = any> {
|
|
|
378
378
|
/**
|
|
379
379
|
* 根据节点主键切换指定节点为展开状态
|
|
380
380
|
*/
|
|
381
|
-
toggleExpandByNodeId(nodeKeys:
|
|
381
|
+
toggleExpandByNodeId(nodeKeys: string | number | null | (string | number | null)[]): Promise<any>
|
|
382
382
|
/**
|
|
383
383
|
* 切换指定节点为展开状态
|
|
384
384
|
*/
|
|
@@ -411,7 +411,7 @@ export interface TreeMethods<D = any> {
|
|
|
411
411
|
/**
|
|
412
412
|
* 用于 show-radio,根据节点主键判断指定节点是否为选中状态
|
|
413
413
|
*/
|
|
414
|
-
isCheckedByRadioNodeId(nodeKey:
|
|
414
|
+
isCheckedByRadioNodeId(nodeKey: string | number | null): boolean
|
|
415
415
|
/**
|
|
416
416
|
* 用于 show-radio,判断指定节点是否为选中状态
|
|
417
417
|
*/
|
|
@@ -419,7 +419,7 @@ export interface TreeMethods<D = any> {
|
|
|
419
419
|
/**
|
|
420
420
|
* 用于 show-checkbox,根据节点主键判断指定节点是否为选中状态
|
|
421
421
|
*/
|
|
422
|
-
isCheckedByCheckboxNodeId(nodeKey:
|
|
422
|
+
isCheckedByCheckboxNodeId(nodeKey: string | number | null): boolean
|
|
423
423
|
/**
|
|
424
424
|
* 用于 show-checkbox,判断指定节点是否为半选状态
|
|
425
425
|
*/
|
|
@@ -444,6 +444,14 @@ export interface TreeMethods<D = any> {
|
|
|
444
444
|
top?: number | null
|
|
445
445
|
left?: number | null
|
|
446
446
|
} | number | null | undefined, y?: number | null): Promise<void>
|
|
447
|
+
/**
|
|
448
|
+
* 如果有滚动条,则滚动到指定的节点位置
|
|
449
|
+
*/
|
|
450
|
+
scrollToNode(node: any): Promise<void>
|
|
451
|
+
/**
|
|
452
|
+
* 如果有滚动条,则根据节点主键滚动到对应的节点位置
|
|
453
|
+
*/
|
|
454
|
+
scrollToNodeId(nodeKey: string | number | null): Promise<void>
|
|
447
455
|
|
|
448
456
|
/**
|
|
449
457
|
* 手动清除滚动相关信息,还原到初始状态
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|