!521 批量编辑按钮事件中对data-title浅拷贝,避免执行一次后删除原属性

Merge pull request !521 from 还俗二师兄/1.x
pull/522/MERGE
Karson 2026-03-23 09:37:32 +00:00 committed by Gitee
commit b6bd59657a
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
1 changed files with 1 additions and 1 deletions

View File

@ -450,7 +450,7 @@ define(['jquery', 'bootstrap', 'moment', 'moment/locale/zh-cn', 'bootstrap-table
return;
}
var title = $(that).data('title') || $(that).attr("title") || __('Edit');
var data = $(that).data() || {};
var data = $.extend({}, $(that).data());
delete data.title;
//循环弹出多个编辑框
$.each(Table.api.selecteddata(table), function (index, row) {