新增依赖配套的Asset

This commit is contained in:
Chenx221 2024-04-09 19:01:14 +08:00
parent ec845b647b
commit 6ee55e4cf7
Signed by: chenx221
GPG Key ID: D7A9EC07024C3021
2 changed files with 26 additions and 0 deletions

13
assets/EChartsAsset.php Normal file
View File

@ -0,0 +1,13 @@
<?php
namespace app\assets;
use yii\web\AssetBundle;
class EChartsAsset extends AssetBundle
{
public $sourcePath = '@npm/echarts/dist';
public $js = [
'echarts.js',
];
}

View File

@ -0,0 +1,13 @@
<?php
namespace app\assets;
use yii\web\AssetBundle;
class EChartsLiquidFillAsset extends AssetBundle
{
public $sourcePath = '@npm/echarts-liquidfill/dist';
public $js = [
'echarts-liquidfill.js',
];
}