فهرست منبع

Merge remote-tracking branch 'origin/pro_zn' into dev/new1

zhouna 5 سال پیش
والد
کامیت
e3657afa8a
2فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 1 1
      src/components/SpreadDrop/index.jsx
  2. 1 1
      src/store/actions/checkBody.js

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

@@ -501,7 +501,7 @@ class ListItem extends Component{
       width:'6px',
       background:'#f1f1f1'};
     const barStyle={background:'#777',width:'100%'};
-    if(datas.length>11){
+    if(datas&&datas.length>11){
       return <ScrollArea speed={0.8}
                     horizontal={false}
                     stopScrollPropagation={true}

+ 1 - 1
src/store/actions/checkBody.js

@@ -90,7 +90,7 @@ export function setNumberValue(state,action){
       if(it.value){     //至少有一个子值才黑显
         hasValue = true;
       }
-      if(it.tagType===8){
+      if(it.tagType===8&&!config.punctuationReg.test(it.name)){
         return it.name;
       }else{
         return (it.labelPrefix||'')+(it.value||'')+(it.labelSuffix||'');