From 1617be29619cd7406f2f655f49f9576b95a38058 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E6=99=AF=E7=AB=8B?= Date: Tue, 11 Mar 2025 22:51:13 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=9B=B4=E6=96=B0=20Excel.loadAll=20?= =?UTF-8?q?=E4=B8=BA=20Excel.bindLoadDone=20=EF=BC=8C=E7=BB=91=E5=AE=9A?= =?UTF-8?q?=E4=BA=8B=E4=BB=B6=E5=B9=B6=E5=8A=A0=E8=BD=BD=E5=AE=8C=E6=88=90?= =?UTF-8?q?=E5=90=8E=E5=86=8D=E5=9B=9E=E8=B0=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../think-plugs-static/stc/public/static/plugs/admin/excel.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugin/think-plugs-static/stc/public/static/plugs/admin/excel.js b/plugin/think-plugs-static/stc/public/static/plugs/admin/excel.js index b291e4024..3c3cade95 100644 --- a/plugin/think-plugs-static/stc/public/static/plugs/admin/excel.js +++ b/plugin/think-plugs-static/stc/public/static/plugs/admin/excel.js @@ -42,7 +42,7 @@ define(function () { Excel.prototype.bind = function (done, filename, selector, options) { let that = this; this.options = options || {} - this.loadAll(function (data) { + this.bindLoadDone(function (data) { that.export(data, this.dataset.filename || filename, options); }, selector); }; @@ -52,7 +52,7 @@ define(function () { * @param done * @param selector */ - Excel.prototype.loadAll = function (done, selector) { + Excel.prototype.bindLoadDone = function (done, selector) { let that = this; $('body').off('click', selector || '[data-form-export]').on('click', selector || '[data-form-export]', function () { let button = this, form = $(button).parents('form');