From 3a20686bfbbbab05dc8f3222cc1588c322240eb0 Mon Sep 17 00:00:00 2001 From: Frost-ZX <30585462+Frost-ZX@users.noreply.github.com> Date: Sun, 14 Nov 2021 16:28:03 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- postcss.config.js | 2 +- src/assets/css/global.less | 5 + src/assets/js/utils.js | 6 +- src/components/tools/ConvertEncodeDecode.vue | 2 +- src/components/tools/GenRandomStr.vue | 2 +- src/components/tools/OtherNewWindow.vue | 2 +- src/components/tools/OtherRunJS.vue | 4 +- src/components/tools/OtherWebSocket.vue | 2 +- src/views/Tools.vue | 421 ++++++++++--------- src/views/ToolsDetail.vue | 141 ++++--- 10 files changed, 301 insertions(+), 286 deletions(-) diff --git a/postcss.config.js b/postcss.config.js index a54d237..253040d 100644 --- a/postcss.config.js +++ b/postcss.config.js @@ -10,7 +10,7 @@ module.exports = { mediaQuery: true, propList: ['*'], rootValue: 16, - unitPrecision: 3, + unitPrecision: 4, } } }; diff --git a/src/assets/css/global.less b/src/assets/css/global.less index ea782ec..1a0878f 100644 --- a/src/assets/css/global.less +++ b/src/assets/css/global.less @@ -142,6 +142,11 @@ body { } .el-input { + &.is-disabled .el-input__inner { + background-color: #FFF; + color: #888; + } + input::-webkit-inner-spin-button, input::-webkit-outer-spin-button { -webkit-appearance: none; diff --git a/src/assets/js/utils.js b/src/assets/js/utils.js index 9aa5eb1..1a73e7e 100644 --- a/src/assets/js/utils.js +++ b/src/assets/js/utils.js @@ -10,11 +10,7 @@ class Utils { * @param {string} [value] 新的标题 */ changeTitle(value) { - if (value) { - document.title = config.siteName + ' - ' + value; - } else { - document.title = config.siteName; - } + document.title = (value ? (value + ' - ') : '') + config.siteName; } /** diff --git a/src/components/tools/ConvertEncodeDecode.vue b/src/components/tools/ConvertEncodeDecode.vue index f760813..d7a9433 100644 --- a/src/components/tools/ConvertEncodeDecode.vue +++ b/src/components/tools/ConvertEncodeDecode.vue @@ -1,5 +1,5 @@