Browse Source

Merge branch 'need_pool139'

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

BIN
src/assets/img/copy.png


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

@@ -34,6 +34,9 @@
 			min-height: 40px;
 			display: flex;
 			align-items: center;
+			&:hover .copy-icon {
+				display: block;
+			}
 			.chart-title {
 				width: 100%;
 				// flex: 1;
@@ -41,6 +44,10 @@
 					text-decoration: underline;
 				}
 			}
+			.copy-icon {
+				flex-shrink: 0;
+				display: none;
+			}
 			// .right-action {
 			// 	display: flex;
 			// 	color: #666;

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

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