jqh 5 years ago
parent
commit
a115875043
2 changed files with 10 additions and 1 deletions
  1. 1 1
      src/Layout/Asset.php
  2. 9 0
      src/Widgets/Metrics/DonutChartCard.php

+ 1 - 1
src/Layout/Asset.php

@@ -169,7 +169,7 @@ class Asset
             'js' => '@admin/dcat/plugins/input-mask/jquery.inputmask.bundle.min.js',
         ],
         '@apex-charts' => [
-            'js' => '@admin/vendors/js/charts/apexcharts.js',
+            'js' => '@admin/vendors/js/charts/apexcharts.min.js',
         ],
         '@smart-wizard' => [
             'js' => '@admin/dcat/plugins/SmartWizard/dist/js/jquery.smartWizard.min.js',

+ 9 - 0
src/Widgets/Metrics/DonutChartCard.php

@@ -7,10 +7,19 @@ use Dcat\Admin\Admin;
 class DonutChartCard extends Card
 {
     /**
+     * 图表高度.
+     *
      * @var int
      */
     protected $chartHeight = 100;
 
+    /**
+     * 图表上间距.
+     *
+     * @var int
+     */
+    protected $chartMarginTop = 5;
+
     /**
      * 内容宽度.
      *