From 1d3c6c7fe8ce6cfb6168e095d46ba503b261f77e Mon Sep 17 00:00:00 2001 From: ZiuChen <457353192@qq.com> Date: Sun, 18 Sep 2022 16:04:31 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=94=AF=E6=8C=81=E8=87=AA=E5=AE=9A?= =?UTF-8?q?=E4=B9=89=E5=8A=9F=E8=83=BD=E6=8C=89=E9=92=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/data/setting.json | 6 +----- src/style/cpns/setting.less | 3 +++ src/views/Setting.vue | 16 ++++++++++++---- 3 files changed, 16 insertions(+), 9 deletions(-) diff --git a/src/data/setting.json b/src/data/setting.json index 00a2717..8a715d3 100644 --- a/src/data/setting.json +++ b/src/data/setting.json @@ -5,28 +5,24 @@ "operation.shown": ["copy", "view", "collect", "remove"], "operation.custom": [ { - "id": "custom.1663468392", "title": "讯飞OCR识别", "icon": "⚡", - "match": ["image"], + "match": ["image", { "type": "file", "regex": ".(?:jpg|jpeg|png)$" }], "command": "redirect:讯飞ocr" }, { - "id": "custom.1663468466", "title": "百度搜索", "icon": "🔍", "match": ["text"], "command": "redirect:百度一下" }, { - "id": "custom.1663468466", "title": "上传到图床", "icon": "🚀", "match": ["image", { "type": "file", "regex": ".(?:jpg|jpeg|png)$" }], "command": "redirect:上传到图床" }, { - "id": "custom.1663476961", "title": "翻译", "icon": "🌎", "match": ["text"], diff --git a/src/style/cpns/setting.less b/src/style/cpns/setting.less index 4584186..b7a3437 100644 --- a/src/style/cpns/setting.less +++ b/src/style/cpns/setting.less @@ -15,6 +15,9 @@ width: 400px; } } + .el-textarea { + width: 70%; + } .path { width: 65%; } diff --git a/src/views/Setting.vue b/src/views/Setting.vue index ada36cb..5710833 100644 --- a/src/views/Setting.vue +++ b/src/views/Setting.vue @@ -46,6 +46,10 @@ /> +