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()