Ver código fonte

feat: 问答输入框还原样式

sunxiao 1 semana atrás
pai
commit
8878e2083f
1 arquivos alterados com 12 adições e 0 exclusões
  1. 12 0
      src/components/Chat/ChatAgentInput.vue

+ 12 - 0
src/components/Chat/ChatAgentInput.vue

@@ -17,6 +17,17 @@ const props = defineProps({
   }
 });
 
+const inputThemeOverrides = {
+  border: '0px',
+  borderHover: '0px',
+  borderFocus: '0px',
+  borderFocusWarning: '0px',
+  boxShadowFocus: 'none',
+  fontSizeMedium: '15px',
+  textColor: '#1A2029',
+  placeholderColor: 'rgba(158, 158, 158, 0.6)'
+}
+
 const emit = defineEmits(['onClick', 'onEnter']);
 
 const MAX_NUM = 5;
@@ -394,6 +405,7 @@ defineExpose({
                   @focus="focusInput"
                   @blur="blurInput"
                   @keypress="handleInpEnter"
+                  :theme-overrides="inputThemeOverrides"
                 />
               </div>
             </div>