|
@@ -536,6 +536,33 @@ class SystemEventFu {
|
|
|
}
|
|
|
|
|
|
@Lib({
|
|
|
+ title: '删除表格当前的选中行',
|
|
|
+ author: '罗一帆',
|
|
|
+ createAt: '2021-07-08',
|
|
|
+ updateAt: '2021-07-08',
|
|
|
+ type: 'system',
|
|
|
+ category: '表格',
|
|
|
+ args: [
|
|
|
+ {
|
|
|
+ type: 'refs',
|
|
|
+ title: 'gridRef 表格引用名',
|
|
|
+ allowEmpty: true,
|
|
|
+ name: 'gridRefName',
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ })
|
|
|
+ gridRemoveCurrentRow(gridRefName) {
|
|
|
+ return function (sender) {
|
|
|
+ const scope = lookupScope(sender)
|
|
|
+ const grid = scope.refs[gridRefName]
|
|
|
+ if (grid) {
|
|
|
+ const records = grid.getSelectionModel().getLastSelected()
|
|
|
+ grid.store.remove(records)
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ @Lib({
|
|
|
title: '查询表单,如果 url 为空值,就取消查询',
|
|
|
author: '罗一帆',
|
|
|
createAt: '2021-07-06',
|