panhui 4 rokov pred
rodič
commit
019c50d2a4
1 zmenil súbory, kde vykonal 10 pridanie a 6 odobranie
  1. 10 6
      src/main/vue/src/widgets/WidgetCard.vue

+ 10 - 6
src/main/vue/src/widgets/WidgetCard.vue

@@ -1,6 +1,6 @@
 <template>
 <template>
     <el-card shadow="hover" :body-style="[mBodyStyle, bodyStyle]" class="dashboard-widget-card">
     <el-card shadow="hover" :body-style="[mBodyStyle, bodyStyle]" class="dashboard-widget-card">
-        <div class="header" slot="header"><slot name="header"></slot></div>
+        <template slot="header"><slot name="header"></slot></template>
 
 
         <template :class="className">
         <template :class="className">
             <slot></slot>
             <slot></slot>
@@ -24,11 +24,15 @@ export default {
     display: flex;
     display: flex;
     flex-direction: column;
     flex-direction: column;
 }
 }
+</style>
 
 
-.header {
-    font-size: 14px;
-    font-weight: bold;
-    color: #000000;
-    line-height: 24px;
+<style lang="less">
+.vue-grid-item {
+    .el-card__header {
+        font-size: 14px;
+        font-weight: bold;
+        color: #000000;
+        line-height: 24px;
+    }
 }
 }
 </style>
 </style>