From 0da188adb390c45a762602c9aefb1b28affcfe75 Mon Sep 17 00:00:00 2001 From: zhangyahui Date: Wed, 4 Feb 2026 15:08:52 +0800 Subject: [PATCH] feat: setting icon --- src/assets/images/setting.png | Bin 0 -> 1057 bytes src/lang/en.ts | 6 ++ src/lang/zh-cn.ts | 6 ++ src/views/home/components/Input.vue | 150 ++++++++++++++++++++++------ 4 files changed, 131 insertions(+), 31 deletions(-) create mode 100644 src/assets/images/setting.png diff --git a/src/assets/images/setting.png b/src/assets/images/setting.png new file mode 100644 index 0000000000000000000000000000000000000000..dc2f9064c4f819d32c182a408003e2404fbe0d6a GIT binary patch literal 1057 zcmV++1m63JP)k}J0OcrrL|Zrn0u_V`2rj^Rkhn$>TmYoDNt!0?%g$qG9cLS)?8Y$C z$jMDo!yn{J(LY>#iq*o|bTC04B zTp!l0t_f*(URYb-SI2|Dm2uBzKB$p<4xB{hsbOfNSmi_aUc1o?`r>mc{mqvBPzOz# zFYdr~6uJPz!PWhRV%K7%2~HZc?P1flcN7^@z}oJ2jMQ#S6LmY|FR0(#UvZAh zm41}*XA}~^Z=N_TBdedGj8EV0`2jYND^gv|LEj**#2u8C*qhiR!{__zqS&RzM5ko~ z4^V(tNj>bN3|?iGZZ<0R8f*(?px&8IE#ptfMa_Sk9EEbdiZa+X7A!U`IITy%dYuYDNs-_3_Zj~{ZkOrGPmqg2vhlkB zJwRE(#*zA7&?XsTVlgXz51rDEwMjypB-dPJf%oxy7}HP?UyJ4q%#jbslJqehzw5|D zX4J>;D`+;yxbme!UjeOhWZUy}+$2f1DQmG%!avg~TC(Sv6sKe4G5eV@>q!T5qA*bH*f3%+5{lMQGtLz{l;sj`= zLWjtb&N93oplPOP=~S
-
+
{{ $t('Input.chooseStyle') }}
{{ $t(item.label) }}
- + + +
+
{{ $t('Input.setting') }}
+
+
+
{{ $t(item.label) }}
+
+ + {{ item.value }}% +
+
+
+
+
@@ -95,6 +119,13 @@ const styleValue = ref('') const tempSelectedValue = ref('') const stylePopupVisible = ref(false) +const settingPopupVisible = ref(false) +const settingOptions = ref([ + { label: 'Input.settingOptions.creativity', value: 50 }, + { label: 'Input.settingOptions.diversity', value: 75 }, + { label: 'Input.settingOptions.relevance', value: 60 } +]) + const openStylePopup = () => { // 打开弹窗时初始化临时选中值为当前选中值 tempSelectedValue.value = styleValue.value @@ -110,6 +141,10 @@ const confirmStyle = () => { styleValue.value = tempSelectedValue.value stylePopupVisible.value = false } + +const confirmSetting = () => { + settingPopupVisible.value = false +} const typeOptions = ref([ { label: 'Input.types.sofa', @@ -193,6 +228,12 @@ const styleOptions = ref( width: 100%; height: 100%; z-index: 1; + cursor: pointer; + } + .setting-icon { + width: 2.4rem; + height: 2.4rem; + cursor: pointer; } } } @@ -213,7 +254,6 @@ const styleOptions = ref(