Эх сурвалжийг харах

Changed: 在searchInput开放设置样式功能

洪海涛 3 жил өмнө
parent
commit
97192df547

+ 1 - 1
src/components/searchInput/index.js

@@ -276,7 +276,7 @@ export default function SearchInput(props) {
   },[viewInEdit])
   return (
     //  onClick={(e) => e.stopPropagation()}
-    <div className={styles.searchInput} onClick={(e) => renderFormData.layout === 'vertical' && onEditChange(e)}>
+    <div className={styles.searchInput} style={renderFormData.searchInputStyles || {}} onClick={(e) => renderFormData.layout === 'vertical' && onEditChange(e)}>
       {/* 传递onchange方法 并且不是编辑状态 */}
       { ((viewInEditChange && !edit) || renderFormData.onlyText) ? (
           // textInput为true可以编辑

+ 1 - 1
src/components/searchInput/style.module.less

@@ -3,7 +3,7 @@
   width: 100%;
   color: var(--font-1);
   text-align: left;
-  overflow: scroll;
+  // overflow: scroll;
   // max-height: 32px;
   .text {
     color: var(--font-1);