From c4b461f0af57e45c2895dffdc3f502978e3c084d Mon Sep 17 00:00:00 2001 From: augushong Date: Sat, 11 Dec 2021 14:49:11 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A1=A8=E6=A0=BC=E7=9A=84=E6=8C=89=E9=92=AE?= =?UTF-8?q?=E6=96=B0=E5=A2=9Eblank=E6=96=B9=E6=B3=95;?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/static/plugs/easy-admin/easy-admin.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/public/static/plugs/easy-admin/easy-admin.js b/public/static/plugs/easy-admin/easy-admin.js index aab7142..2ddedd1 100644 --- a/public/static/plugs/easy-admin/easy-admin.js +++ b/public/static/plugs/easy-admin/easy-admin.js @@ -245,9 +245,9 @@ define(["jquery", "tableSelect", "ckeditor"], function ($, tableSelect, undefine extend: 'data-table-id="' + options.id + '"' }]; - + options.page = { - layout: ['first','prev', 'page', 'next','last','count'] + layout: ['first', 'prev', 'page', 'next', 'last', 'count'] } } @@ -477,6 +477,9 @@ define(["jquery", "tableSelect", "ckeditor"], function ($, tableSelect, undefine formatToolbar.method = formatToolbar.method !== '' ? 'data-open="' + formatToolbar.url + '" data-title="' + formatToolbar.title + '" ' : ''; } else if (toolbar.method === 'none') { // 常用于与extend配合,自定义监听按钮 formatToolbar.method = ''; + } else if (operat.method === 'blank') { + formatOperat.method = ' href="' + formatOperat.url + '" target="_blank" '; + } else { formatToolbar.method = formatToolbar.method !== '' ? 'data-request="' + formatToolbar.url + '" data-title="' + formatToolbar.title + '" ' : ''; }