From b071a9eb58e6c8a3a2d365d5103e63824d96cf5d Mon Sep 17 00:00:00 2001 From: ZiuChen <457353192@qq.com> Date: Sun, 18 Sep 2022 15:20:03 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20Setting=E9=A1=B5=E6=94=AF=E6=8C=81?= =?UTF-8?q?=E8=87=AA=E5=AE=9A=E4=B9=89=E4=B8=BB=E7=95=8C=E9=9D=A2=E5=8A=9F?= =?UTF-8?q?=E8=83=BD=E6=8C=89=E9=92=AE=20=E6=94=AF=E6=8C=81=E9=87=8D?= =?UTF-8?q?=E7=BD=AE=E8=AE=BE=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/cpns/ClipOperate.vue | 6 +--- src/style/cpns/setting.less | 7 +++- src/views/Setting.vue | 71 ++++++++++++++++++++++++++++++------- 3 files changed, 66 insertions(+), 18 deletions(-) diff --git a/src/cpns/ClipOperate.vue b/src/cpns/ClipOperate.vue index 0c31def..c75ac03 100644 --- a/src/cpns/ClipOperate.vue +++ b/src/cpns/ClipOperate.vue @@ -31,11 +31,7 @@ const props = defineProps({ } }) -const operation = computed(() => - props.isFullData - ? [...defaultOperation, ...setting.operation.custom] - : [...defaultOperation, ...setting.operation.custom].splice(0, 5) -) +const operation = computed(() => [...defaultOperation, ...setting.operation.custom]) const { handleOperateClick, filterOperate } = useClipOperate({ emit }) diff --git a/src/style/cpns/setting.less b/src/style/cpns/setting.less index 2ab4684..4584186 100644 --- a/src/style/cpns/setting.less +++ b/src/style/cpns/setting.less @@ -8,7 +8,12 @@ align-items: center; margin: 10px; .el-select { - width: 85px; + &.number-select { + width: 85px; + } + &.operation-select { + width: 400px; + } } .path { width: 65%; diff --git a/src/views/Setting.vue b/src/views/Setting.vue index 296521b..ada36cb 100644 --- a/src/views/Setting.vue +++ b/src/views/Setting.vue @@ -17,20 +17,38 @@
最大历史条数 - +
最长保存时间 - +
+
+ 展示在主界面的功能按钮 + + + +
@@ -40,16 +58,21 @@