File tree Expand file tree Collapse file tree 2 files changed +32
-1
lines changed
Expand file tree Collapse file tree 2 files changed +32
-1
lines changed Original file line number Diff line number Diff line change 11{
22 "name" : " vxe-pc-ui" ,
3- "version" : " 4.11.23 " ,
3+ "version" : " 4.11.24 " ,
44 "description" : " A vue based PC component library" ,
55 "scripts" : {
66 "update" : " npm install --legacy-peer-deps" ,
Original file line number Diff line number Diff line change @@ -1880,6 +1880,10 @@ export namespace VxeTablePropTypes {
18801880 * 如果功能被支持,用于 mouse-config.area,开启查找和替换功能
18811881 */
18821882 isFNR ?: boolean
1883+ /**
1884+ * 是否开启撤回键回退到一次状态
1885+ */
1886+ isUndo ?: boolean
18831887 /**
18841888 * 用于 mouse-config.area & column.type=checkbox|radio,开启空格键切换复选框或单选框状态功能
18851889 */
@@ -2429,6 +2433,28 @@ export namespace VxeTablePropTypes {
24292433 [ field : string ] : VxeTableDefines . ValidatorRule < D > [ ]
24302434 }
24312435
2436+ /**
2437+ * 可撤销配置项
2438+ */
2439+ export interface UndoHistoryConfig {
2440+ /**
2441+ * 撤销的最大次数
2442+ */
2443+ maxSize ?: number
2444+ /**
2445+ * 加载数据可撤销
2446+ */
2447+ isUpdateData ?: boolean
2448+ /**
2449+ * 加载列可撤销
2450+ */
2451+ isUpdateColumn ?: boolean
2452+ /**
2453+ * 编辑行数据可撤销
2454+ */
2455+ isEditRow ?: boolean
2456+ }
2457+
24322458 export type ZIndex = number
24332459 export type EmptyText = string
24342460
@@ -3398,6 +3424,10 @@ export interface VxeTableProps<D = any> {
33983424 * 校验规则配置项
33993425 */
34003426 editRules ?: VxeTablePropTypes . EditRules < D >
3427+ /**
3428+ * 可撤销配置项
3429+ */
3430+ undoHistoryConfig ?: VxeTablePropTypes . UndoHistoryConfig
34013431 /**
34023432 * 空数据时显示的内容
34033433 */
@@ -3578,6 +3608,7 @@ export interface TablePrivateComputed<D = any> {
35783608 computeRowGroupFields : ComputedRef < string [ ] | null | undefined >
35793609 computeRowGroupColumns : ComputedRef < VxeTableDefines . ColumnInfo < D > [ ] >
35803610 computeAggFuncColumns : ComputedRef < VxeTableDefines . ColumnInfo < D > [ ] >
3611+ computeUndoHistoryOpts : ComputedRef < VxeTablePropTypes . UndoHistoryConfig >
35813612
35823613 /**
35833614 * @deprecated
You can’t perform that action at this time.
0 commit comments