From 289e9306bdfaac3618cf3f98224f4f40f82ea42a Mon Sep 17 00:00:00 2001 From: unknown <634320873@example.com> Date: Tue, 13 Apr 2021 13:10:10 +0800 Subject: [PATCH] =?UTF-8?q?=E7=82=B9=E5=87=BB=E8=A1=A8=E6=A0=BC=E5=88=A0?= =?UTF-8?q?=E9=99=A4=E6=8C=89=E9=92=AE=E5=90=8E=20LAYER=20=E5=BC=B9?= =?UTF-8?q?=E5=87=BA=E5=B1=82=20=E7=A1=AE=E5=AE=9A=E5=8F=96=E6=B6=88=20?= =?UTF-8?q?=E6=8C=89=E9=92=AE=E7=9A=84=20=E5=A4=9A=E8=AF=AD=E8=A8=80?= =?UTF-8?q?=E7=89=88=E6=9C=AC=20=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/assets/js/require-table.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/public/assets/js/require-table.js b/public/assets/js/require-table.js index 98244086f..1148b6893 100644 --- a/public/assets/js/require-table.js +++ b/public/assets/js/require-table.js @@ -396,7 +396,7 @@ define(['jquery', 'bootstrap', 'moment', 'moment/locale/zh-cn', 'bootstrap-table var ids = Table.api.selectedids(table); Layer.confirm( __('Are you sure you want to delete the %s selected item?', ids.length), - {icon: 3, title: __('Warning'), offset: 0, shadeClose: true}, + {icon: 3, title: __('Warning'), offset: 0, shadeClose: true, btn: [__('OK'), __('Cancel')]}, function (index) { Table.api.multi("del", ids, table, that); Layer.close(index); @@ -485,7 +485,7 @@ define(['jquery', 'bootstrap', 'moment', 'moment/locale/zh-cn', 'bootstrap-table var that = this; Layer.confirm( __('Are you sure you want to delete this item?'), - {icon: 3, title: __('Warning'), shadeClose: true}, + {icon: 3, title: __('Warning'), shadeClose: true, btn: [__('OK'), __('Cancel')]}, function (index) { Table.api.multi("del", id, table, that); Layer.close(index); @@ -588,7 +588,7 @@ define(['jquery', 'bootstrap', 'moment', 'moment/locale/zh-cn', 'bootstrap-table } Layer.confirm( __('Are you sure you want to delete this item?'), - {icon: 3, title: __('Warning'), offset: [top, left], shadeClose: true}, + {icon: 3, title: __('Warning'), offset: [top, left], shadeClose: true, btn: [__('OK'), __('Cancel')]}, function (index) { var table = $(that).closest('table'); var options = table.bootstrapTable('getOptions'); -- Gitee