Browse Source

增加复制标题icon

Karsa 10 months ago
parent
commit
cab2a1b14d
3 changed files with 8 additions and 2 deletions
  1. BIN
      src/assets/img/copy.png
  2. 4 0
      src/views/chartShow/index.less
  3. 4 2
      src/views/chartShow/index.vue

BIN
src/assets/img/copy.png


+ 4 - 0
src/views/chartShow/index.less

@@ -41,6 +41,10 @@
 					text-decoration: underline;
 					text-decoration: underline;
 				}
 				}
 			}
 			}
+			.copy-icon {
+				flex-shrink: 0;
+				
+			}
 			// .right-action {
 			// .right-action {
 			// 	display: flex;
 			// 	display: flex;
 			// 	color: #666;
 			// 	color: #666;

+ 4 - 2
src/views/chartShow/index.vue

@@ -4,8 +4,6 @@
     <header class="chart-header" @click="openNew">
     <header class="chart-header" @click="openNew">
       <span 
       <span 
         class="chart-title" 
         class="chart-title" 
-        @click.stop 
-        @dblclick="copyText"
         :style="chartInfo.ChartThemeStyle?`
         :style="chartInfo.ChartThemeStyle?`
           text-align:${JSON.parse(chartInfo.ChartThemeStyle).titleOptions.align};
           text-align:${JSON.parse(chartInfo.ChartThemeStyle).titleOptions.align};
           font-size:${JSON.parse(chartInfo.ChartThemeStyle).titleOptions.style.fontSize}px;
           font-size:${JSON.parse(chartInfo.ChartThemeStyle).titleOptions.style.fontSize}px;
@@ -15,6 +13,10 @@
         {{ language === 'ch'?chartInfo.ChartName: chartInfo.ChartNameEn}}
         {{ language === 'ch'?chartInfo.ChartName: chartInfo.ChartNameEn}}
       </span>
       </span>
 
 
+      <div class="copy-icon" @click.stop="copyText">
+        <img src="@/assets/img/copy.png" alt="" width="20" height="20">
+      </div>
+
     </header>
     </header>
     <template v-if="haveData">
     <template v-if="haveData">
       <div
       <div