瀏覽代碼

修改标签池标签名称样式

zhangxc 6 年之前
父節點
當前提交
56c4f223af
共有 1 個文件被更改,包括 7 次插入2 次删除
  1. 7 2
      src/components/icss/BloodPressTagGroup.vue

+ 7 - 2
src/components/icss/BloodPressTagGroup.vue

@@ -16,10 +16,11 @@
             <li v-for="(item, index) in leftTagsList"
                 class = "tagItem"
                 :key='item.id'
+                :title="'[ '+item.tagName+' ]'"
                 :style="getStyle(item)?styles:null"
                 @click='selectLeftTag(item, index, $event)'
             >
-                <p class="tagName" >{{item.tagName}} </p>
+                <p class="tagName ellipsis" >{{item.tagName}} </p>
             </li>
         </ul>
       </div>
@@ -167,7 +168,11 @@ export default {
                 if (this.selectRightTagsList[i].type !== 'input') {
                     for (let j = 0; j < this.rightTagsList2.length; j++) {
                         if(this.selectRightTagsList[i].id === this.rightTagsList2[j].id) {
-                                this.rightTagsList2.splice(j-1, 3)
+                            if(this.rightTagsList2.length === 3) {
+                                this.rightTagsList2 = []
+                            } else {
+                                this.rightTagsList2.splice(j, 2)
+                            }
                         }
                     }
                 }