新增依赖配套的Asset
This commit is contained in:
parent
ec845b647b
commit
6ee55e4cf7
13
assets/EChartsAsset.php
Normal file
13
assets/EChartsAsset.php
Normal 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',
|
||||||
|
];
|
||||||
|
}
|
13
assets/EChartsLiquidFillAsset.php
Normal file
13
assets/EChartsLiquidFillAsset.php
Normal 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',
|
||||||
|
];
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user