From 89796eab43fd9557fb3f8e0073e0a0119e4477d5 Mon Sep 17 00:00:00 2001 From: fofolee Date: Sun, 21 Jun 2020 20:11:23 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E7=94=A8=E6=88=B7=E8=AF=B4?= =?UTF-8?q?=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/assets/options.js | 32 +++++++++++++++++++------------- 1 file changed, 19 insertions(+), 13 deletions(-) diff --git a/src/assets/options.js b/src/assets/options.js index 5d94b2c..42262f7 100644 --- a/src/assets/options.js +++ b/src/assets/options.js @@ -310,7 +310,7 @@ let showCustomize = () => { 格式化

- +

@@ -593,22 +593,28 @@ $("#options").on('click', '#showHelp', function () { $("#options").on('click', '#addAction', function () { var html = ` - + 加引号 ` Swal.fire({ title: "预设动作", + onBeforeOpen: () => { + $('#actionType').change(function () { + $('#actionArgs').attr('placeholder', $(this).find(`[value=${$(this).val().replace('.', '\\.')}]`).attr('args')) + }) + }, html: html, showCancelButton: true, preConfirm: () => { @@ -964,7 +970,7 @@ showCodeEditor = () => { } programCheck() $('#program').select2({ - width: 140, + width: 100, minimumResultsForSearch: Infinity }); $("#options").show()