vxe-pc-ui 4.4.20 → 4.4.22
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/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 +2 -2
- package/lib/index.umd.min.js +1 -1
- package/lib/style.css +1 -1
- package/lib/style.min.css +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/types/components/table-module/keyboard.d.ts +7 -1
- package/types/components/table-plugins/extend-cell-area.d.ts +116 -80
- package/types/components/table-plugins/extend-pivot-table.d.ts +7 -0
- package/types/components/table-plugins/index.d.ts +1 -0
- package/types/components/table.d.ts +44 -32
- /package/es/icon/{iconfont.1742437791559.ttf → iconfont.1742629559493.ttf} +0 -0
- /package/es/icon/{iconfont.1742437791559.woff → iconfont.1742629559493.woff} +0 -0
- /package/es/icon/{iconfont.1742437791559.woff2 → iconfont.1742629559493.woff2} +0 -0
- /package/es/{iconfont.1742437791559.ttf → iconfont.1742629559493.ttf} +0 -0
- /package/es/{iconfont.1742437791559.woff → iconfont.1742629559493.woff} +0 -0
- /package/es/{iconfont.1742437791559.woff2 → iconfont.1742629559493.woff2} +0 -0
- /package/lib/icon/style/{iconfont.1742437791559.ttf → iconfont.1742629559493.ttf} +0 -0
- /package/lib/icon/style/{iconfont.1742437791559.woff → iconfont.1742629559493.woff} +0 -0
- /package/lib/icon/style/{iconfont.1742437791559.woff2 → iconfont.1742629559493.woff2} +0 -0
- /package/lib/{iconfont.1742437791559.ttf → iconfont.1742629559493.ttf} +0 -0
- /package/lib/{iconfont.1742437791559.woff → iconfont.1742629559493.woff} +0 -0
- /package/lib/{iconfont.1742437791559.woff2 → iconfont.1742629559493.woff2} +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { RenderFunction, SetupContext, Ref, ComputedRef, ComponentPublicInstance, VNode } from 'vue'
|
|
2
2
|
import { DefineVxeComponentApp, DefineVxeComponentOptions, DefineVxeComponentInstance, VxeComponentBaseOptions, VxeComponentEventParams, VxeComponentSizeType, ValueOf, VxeGlobalConfig, VxeComponentStyleType, VxeComponentSlotType, VxeComponentAlignType } from '@vxe-ui/core'
|
|
3
3
|
import { VxeColumnPropTypes, VxeColumnProps, VxeColumnSlotTypes } from './column'
|
|
4
|
-
import {
|
|
4
|
+
import { VxeTableExtendCellAreaDefines, VxeTableExtendCellAreaEmits } from './table-plugins'
|
|
5
5
|
import { VxeGridConstructor } from './grid'
|
|
6
6
|
import { VxeTooltipInstance, VxeTooltipPropTypes } from './tooltip'
|
|
7
7
|
import { VxeModalPropTypes } from './modal'
|
|
@@ -24,7 +24,12 @@ export interface VxeTableConstructor<D = any> extends VxeComponentBaseOptions, V
|
|
|
24
24
|
getComputeMaps(): TablePrivateComputed
|
|
25
25
|
renderVN: RenderFunction
|
|
26
26
|
|
|
27
|
-
|
|
27
|
+
xeGrid: VxeGridConstructor<D> | null
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* @deprecated
|
|
31
|
+
*/
|
|
32
|
+
xegrid: VxeGridConstructor<D> | null | undefined
|
|
28
33
|
}
|
|
29
34
|
|
|
30
35
|
export interface TablePrivateRef {
|
|
@@ -915,6 +920,13 @@ export namespace VxeTablePropTypes {
|
|
|
915
920
|
row: D
|
|
916
921
|
column: VxeTableDefines.ColumnInfo<D>
|
|
917
922
|
}) => any
|
|
923
|
+
/**
|
|
924
|
+
* 是否精确筛选到每一行,默认情况下是父级被匹配到则所有子级也被匹配;如果传 true 则会对每一行进行筛选
|
|
925
|
+
*/
|
|
926
|
+
isEvery?: boolean
|
|
927
|
+
/**
|
|
928
|
+
* 是否启用远程筛选
|
|
929
|
+
*/
|
|
918
930
|
remote?: boolean
|
|
919
931
|
/**
|
|
920
932
|
* 是否显示筛选按钮图标
|
|
@@ -1371,12 +1383,12 @@ export namespace VxeTablePropTypes {
|
|
|
1371
1383
|
* 只对 mouse-config.extension 启用后有效,扩展区域之前的方法,可以通过返回 false 阻止扩展行为
|
|
1372
1384
|
* @param params
|
|
1373
1385
|
*/
|
|
1374
|
-
beforeExtendMethod?(params:
|
|
1386
|
+
beforeExtendMethod?(params: VxeTableExtendCellAreaDefines.CellAreaExtensionStartParams<D>): boolean
|
|
1375
1387
|
/**
|
|
1376
1388
|
* 只对 mouse-config.extension 启用后有效,扩展区域之后的方法
|
|
1377
1389
|
* @param params
|
|
1378
1390
|
*/
|
|
1379
|
-
afterExtendMethod?(params:
|
|
1391
|
+
afterExtendMethod?(params: VxeTableExtendCellAreaDefines.CellAreaExtensionEndParams<D>): void
|
|
1380
1392
|
/**
|
|
1381
1393
|
* 当点击表格之外,是否自动清除单元格的选取状态
|
|
1382
1394
|
*/
|
|
@@ -1385,7 +1397,7 @@ export namespace VxeTablePropTypes {
|
|
|
1385
1397
|
* 只对 extendByCalc 启用后有效,重写单元格扩展区域计算值的方法
|
|
1386
1398
|
* @param params
|
|
1387
1399
|
*/
|
|
1388
|
-
extendCalcMethod?(params:
|
|
1400
|
+
extendCalcMethod?(params: VxeTableExtendCellAreaDefines.ExtendCellAreaCalcBaseParams<D>): any[][]
|
|
1389
1401
|
/**
|
|
1390
1402
|
* 只对 extendByCopy | extendByCalc 启用后有效,重写单元格扩展区域赋值的方法
|
|
1391
1403
|
* @param params
|
|
@@ -1394,19 +1406,19 @@ export namespace VxeTablePropTypes {
|
|
|
1394
1406
|
cellValue: any
|
|
1395
1407
|
row: D
|
|
1396
1408
|
column: VxeTableDefines.ColumnInfo<D>
|
|
1397
|
-
} &
|
|
1409
|
+
} & VxeTableExtendCellAreaDefines.ExtendCellAreaCalcBaseParams<D>): void
|
|
1398
1410
|
/**
|
|
1399
1411
|
* 只对 extendByCopy | extendByCalc 启用后有效,自定义单元格扩展区域赋值之前的方法,可以通过返回 false 阻止扩展赋值行为
|
|
1400
1412
|
* @param params
|
|
1401
1413
|
*/
|
|
1402
|
-
beforeExtendSetMethod?(params:
|
|
1414
|
+
beforeExtendSetMethod?(params: VxeTableExtendCellAreaDefines.ExtendCellAreaCalcBaseParams<D>): boolean
|
|
1403
1415
|
/**
|
|
1404
1416
|
* 只对 extendByCopy | extendByCalc 启用后有效,自定义单元格扩展区域赋值之后的方法
|
|
1405
1417
|
* @param params
|
|
1406
1418
|
*/
|
|
1407
1419
|
afterExtendSetMethod?(params: {
|
|
1408
1420
|
extendValues: any[][]
|
|
1409
|
-
} &
|
|
1421
|
+
} & VxeTableExtendCellAreaDefines.ExtendCellAreaCalcBaseParams<D>): void
|
|
1410
1422
|
}
|
|
1411
1423
|
export interface AreaOpts<D = any> extends AreaConfig<D> { }
|
|
1412
1424
|
|
|
@@ -1598,8 +1610,8 @@ export namespace VxeTablePropTypes {
|
|
|
1598
1610
|
*/
|
|
1599
1611
|
beforeCopyMethod?(params: {
|
|
1600
1612
|
isCut: boolean
|
|
1601
|
-
activeArea:
|
|
1602
|
-
targetAreas:
|
|
1613
|
+
activeArea: VxeTableExtendCellAreaDefines.MouseActiveCellArea
|
|
1614
|
+
targetAreas: VxeTableExtendCellAreaDefines.CellAreaParams<DT>[]
|
|
1603
1615
|
$table: VxeTableConstructor<DT> & VxeTablePrivateMethods<DT>
|
|
1604
1616
|
$grid: VxeGridConstructor<DT> | null | undefined
|
|
1605
1617
|
}): boolean
|
|
@@ -1608,7 +1620,7 @@ export namespace VxeTablePropTypes {
|
|
|
1608
1620
|
*/
|
|
1609
1621
|
afterCopyMethod?(params: {
|
|
1610
1622
|
isCut: boolean
|
|
1611
|
-
targetAreas:
|
|
1623
|
+
targetAreas: VxeTableExtendCellAreaDefines.CellAreaParams<DT>[]
|
|
1612
1624
|
$table: VxeTableConstructor<DT> & VxeTablePrivateMethods<DT>
|
|
1613
1625
|
$grid: VxeGridConstructor<DT> | null | undefined
|
|
1614
1626
|
}): boolean
|
|
@@ -1630,9 +1642,9 @@ export namespace VxeTablePropTypes {
|
|
|
1630
1642
|
* 自定义单元格剪贴值清除之前的方法,可以通过返回 false 阻止清除行为
|
|
1631
1643
|
*/
|
|
1632
1644
|
beforeCutMethod?:(params: {
|
|
1633
|
-
activeArea:
|
|
1634
|
-
cutAreas:
|
|
1635
|
-
currentAreas:
|
|
1645
|
+
activeArea: VxeTableExtendCellAreaDefines.MouseActiveCellArea
|
|
1646
|
+
cutAreas: VxeTableExtendCellAreaDefines.CellAreaParams<DT>[]
|
|
1647
|
+
currentAreas: VxeTableExtendCellAreaDefines.CellAreaParams<DT>[]
|
|
1636
1648
|
clipData: {
|
|
1637
1649
|
text?: string
|
|
1638
1650
|
html?: string
|
|
@@ -1644,8 +1656,8 @@ export namespace VxeTablePropTypes {
|
|
|
1644
1656
|
* 自定义单元格剪贴值清除之后的方法
|
|
1645
1657
|
*/
|
|
1646
1658
|
afterCutMethod?:(params: {
|
|
1647
|
-
cutAreas:
|
|
1648
|
-
currentAreas:
|
|
1659
|
+
cutAreas: VxeTableExtendCellAreaDefines.CellAreaParams<DT>[]
|
|
1660
|
+
currentAreas: VxeTableExtendCellAreaDefines.CellAreaParams<DT>[]
|
|
1649
1661
|
$table: VxeTableConstructor<DT> & VxeTablePrivateMethods<DT>
|
|
1650
1662
|
$grid: VxeGridConstructor<DT> | null | undefined
|
|
1651
1663
|
}) => void
|
|
@@ -1669,10 +1681,10 @@ export namespace VxeTablePropTypes {
|
|
|
1669
1681
|
*/
|
|
1670
1682
|
beforePasteMethod?(params: {
|
|
1671
1683
|
isCut: boolean
|
|
1672
|
-
activeArea:
|
|
1673
|
-
cutAreas:
|
|
1674
|
-
currentAreas:
|
|
1675
|
-
targetAreas:
|
|
1684
|
+
activeArea: VxeTableExtendCellAreaDefines.MouseActiveCellArea
|
|
1685
|
+
cutAreas: VxeTableExtendCellAreaDefines.CellAreaParams<DT>[]
|
|
1686
|
+
currentAreas: VxeTableExtendCellAreaDefines.CellAreaParams<DT>[]
|
|
1687
|
+
targetAreas: VxeTableExtendCellAreaDefines.CellAreaParams<DT>[]
|
|
1676
1688
|
cellValues: string[][]
|
|
1677
1689
|
pasteCells: string[][]
|
|
1678
1690
|
clipData: {
|
|
@@ -1687,9 +1699,9 @@ export namespace VxeTablePropTypes {
|
|
|
1687
1699
|
*/
|
|
1688
1700
|
afterPasteMethod?(params: {
|
|
1689
1701
|
isCut: boolean
|
|
1690
|
-
currentAreas:
|
|
1691
|
-
cutAreas:
|
|
1692
|
-
targetAreas:
|
|
1702
|
+
currentAreas: VxeTableExtendCellAreaDefines.CellAreaParams<DT>[]
|
|
1703
|
+
cutAreas: VxeTableExtendCellAreaDefines.CellAreaParams<DT>[]
|
|
1704
|
+
targetAreas: VxeTableExtendCellAreaDefines.CellAreaParams<DT>[]
|
|
1693
1705
|
cellValues: any[][]
|
|
1694
1706
|
pasteCells: string[][]
|
|
1695
1707
|
insertRows: DT[]
|
|
@@ -1701,8 +1713,8 @@ export namespace VxeTablePropTypes {
|
|
|
1701
1713
|
* 只对 isRowIncrement 有效,自定义创建自增行数据的方法
|
|
1702
1714
|
*/
|
|
1703
1715
|
createRowsMethod?(params: {
|
|
1704
|
-
currentAreas:
|
|
1705
|
-
targetAreas:
|
|
1716
|
+
currentAreas: VxeTableExtendCellAreaDefines.CellAreaParams<DT>[]
|
|
1717
|
+
targetAreas: VxeTableExtendCellAreaDefines.CellAreaParams<DT>[]
|
|
1706
1718
|
cellValues: any[][]
|
|
1707
1719
|
pasteCells: string[][]
|
|
1708
1720
|
insertRows: DT[]
|
|
@@ -1713,8 +1725,8 @@ export namespace VxeTablePropTypes {
|
|
|
1713
1725
|
* 只对 isColumnIncrement 有效,自定义创建自增列配置的方法
|
|
1714
1726
|
*/
|
|
1715
1727
|
createColumnsMethod?(params: {
|
|
1716
|
-
currentAreas:
|
|
1717
|
-
targetAreas:
|
|
1728
|
+
currentAreas: VxeTableExtendCellAreaDefines.CellAreaParams<DT>[]
|
|
1729
|
+
targetAreas: VxeTableExtendCellAreaDefines.CellAreaParams<DT>[]
|
|
1718
1730
|
cellValues: any[][]
|
|
1719
1731
|
pasteCells: string[][]
|
|
1720
1732
|
insertColumns: VxeTableDefines.ColumnOptions[]
|
|
@@ -1758,7 +1770,7 @@ export namespace VxeTablePropTypes {
|
|
|
1758
1770
|
afterFindMethod?(params: {
|
|
1759
1771
|
isAll: boolean
|
|
1760
1772
|
findValue: string | null
|
|
1761
|
-
result:
|
|
1773
|
+
result: VxeTableExtendCellAreaDefines.FindAndReplaceResult[]
|
|
1762
1774
|
$table: VxeTableConstructor<DT> & VxeTablePrivateMethods<DT>
|
|
1763
1775
|
$grid: VxeGridConstructor<DT> | null | undefined
|
|
1764
1776
|
}): void
|
|
@@ -1793,7 +1805,7 @@ export namespace VxeTablePropTypes {
|
|
|
1793
1805
|
isAll: boolean
|
|
1794
1806
|
findValue: string
|
|
1795
1807
|
replaceValue: string
|
|
1796
|
-
result:
|
|
1808
|
+
result: VxeTableExtendCellAreaDefines.FindAndReplaceResult[]
|
|
1797
1809
|
$table: VxeTableConstructor<DT> & VxeTablePrivateMethods<DT>
|
|
1798
1810
|
$grid: VxeGridConstructor<DT> | null | undefined
|
|
1799
1811
|
}) => void
|
|
@@ -4429,7 +4441,7 @@ export type VxeTableEmits = [
|
|
|
4429
4441
|
'scroll-boundary',
|
|
4430
4442
|
'custom',
|
|
4431
4443
|
|
|
4432
|
-
...
|
|
4444
|
+
...VxeTableExtendCellAreaEmits
|
|
4433
4445
|
]
|
|
4434
4446
|
|
|
4435
4447
|
export namespace VxeTableDefines {
|
|
@@ -4911,8 +4923,8 @@ export namespace VxeTableDefines {
|
|
|
4911
4923
|
rowIndex: number
|
|
4912
4924
|
column: VxeTableDefines.ColumnInfo<D>
|
|
4913
4925
|
columnIndex: number
|
|
4914
|
-
activeArea:
|
|
4915
|
-
cellAreas:
|
|
4926
|
+
activeArea: VxeTableExtendCellAreaDefines.MouseActiveCellArea<D>
|
|
4927
|
+
cellAreas: VxeTableExtendCellAreaDefines.MouseCellArea<D>[]
|
|
4916
4928
|
}
|
|
4917
4929
|
export interface CellDeleteValueEventParams<D = any> extends TableEventParams<D>, CellDeleteValueParams<D> { }
|
|
4918
4930
|
|
|
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
|