소스 검색

firefox26纯数字英文输入换行bug修改2331

zhouna 5 년 전
부모
커밋
49d6668edf

+ 1 - 1
src/common/components/EditableSpan/index.less

@@ -2,7 +2,7 @@
 .editable-span{
   display: inline-block;
   outline: none;
-  word-break: break-word;
+  word-break: break-all;
   min-width: 10px;
   // line-height: 2;
   min-height: 16px;//火狐需要

+ 1 - 0
src/common/components/InlineTag/index.less

@@ -22,4 +22,5 @@
   text-align: center;
   /*border-bottom: 1px @placeholder-color solid;*/
   outline: none;
+  word-break: break-all;
 }

+ 1 - 1
src/components/NumberUnitDrop/index.jsx

@@ -92,7 +92,7 @@ class NumberUnitDrop extends Component{
       <span ref = {this.$pre}>{prefix?prefix+' ':prefix}</span>
       <span ref = {this.$span}
             onKeyDown={handleEnter}
-            style={{cursor:editable?'text':'pointer'}}>{value||placeholder}</span>
+            style={{cursor:editable?'text':'pointer',wordBreak:'break-all'}}>{value||placeholder}</span>
       <span ref = {this.$suf}>{suffix?' '+suffix:suffix}</span>
       <NumberUnitPan handleSelect={(obj)=>this.select(obj)}
                  onClose={handleHide}

+ 1 - 0
src/components/RadioDrop/index.less

@@ -7,6 +7,7 @@
 .tag,.selected-tag,.no-tag{
   display: inline-block;
   cursor: pointer;
+  word-break: break-all;
   /*line-height: 20px;*/
 }
 .tag{

+ 1 - 0
src/components/RadioInpDrop/index.less

@@ -26,4 +26,5 @@
   display:inline-block;
   min-width:30px;
   text-align:center;
+  word-break: break-all;
 }

+ 1 - 0
src/components/SpreadDrop/index.less

@@ -48,6 +48,7 @@
   color: @text-color;
   border-bottom: 1px @border-color solid;
   line-height: 22px;
+  word-break: break-all;
 }
 .orderTips{
   color: #bfbfbf;