qianlishi 4 年之前
父節點
當前提交
ef4f3c121d

+ 17 - 12
report-ui/src/views/report/bigscreen/designer/form/dynamicAddTable.vue

@@ -13,18 +13,20 @@
       <el-table-column prop="key" label="key值" width="80" />
       <el-table-column label="操作" width="100">
         <template slot-scope="scope">
-          <el-button
-            @click="handleEditorClick(scope.$index, scope.row)"
-            type="text"
-            size="small"
-            >编辑</el-button
-          >
-          <el-button
-            type="text"
-            size="small"
-            @click="handleDeleteClick(scope.$index, scope.row)"
-            >删除</el-button
-          >
+          <div class="button-group">
+            <el-button
+              @click="handleEditorClick(scope.$index, scope.row)"
+              type="text"
+              size="small"
+              >编辑</el-button
+            >
+            <el-button
+              type="text"
+              size="small"
+              @click="handleDeleteClick(scope.$index, scope.row)"
+              >删除</el-button
+            >
+          </div>
         </template>
       </el-table-column>
     </el-table>
@@ -161,4 +163,7 @@ export default {
 /deep/.el-table::before {
   height: 0;
 }
+.button-group .el-button {
+  padding: 0;
+}
 </style>

+ 2 - 3
report-ui/src/views/report/bigscreen/designer/widget/widgetTable.vue

@@ -27,11 +27,10 @@
   </div>
 </template>
 <script>
+import vue from "vue";
 import VueSuperSlide from "vue-superslide";
+vue.use(VueSuperSlide);
 export default {
-  components: {
-    VueSuperSlide
-  },
   props: {
     value: Object,
     ispreview: Boolean