Browse Source

refactor(ticketList): fix style and add tooltip content

LaveyD 2 months ago
parent
commit
5dc8af74f8
1 changed files with 9 additions and 1 deletions
  1. 9 1
      src/pages/sellManage/common/TicketList.vue

+ 9 - 1
src/pages/sellManage/common/TicketList.vue

@@ -157,9 +157,16 @@
             <div class="title">
               <i class="el-icon-info" style="cursor: pointer; margin-right: 8px;" title="查看票种详情" @click.stop="showTicketInfo(item)"></i>
               <el-tooltip
-                :content="getTicketTip(item)"
                 placement="top"
                 effect="dark">
+                <div slot="content">
+                  <div>
+                    {{ item.name }}
+                  </div>
+                  <div>
+                    {{ getTicketTip(item) }}
+                  </div>
+                </div>
                 <span>
                   {{ item.name }}
                 </span>
@@ -821,6 +828,7 @@ export default {
             width: calc(100% - 80px);
             margin-top: 4px;
             line-height: 1;
+            display: flex;
 
             span {
               overflow: hidden;