先看下最终的效果
静态:
动态:
一、开始实现
新建一个DoughnutProgress继承View
public class DoughnutProgress extends View {
}
先给出一些常量、变量以及公共方法的代码,方便理解后面的代码
private static final int DEFAULT_MIN_WIDTH = 400; //View默认最小宽度
private static final int RED = 230, GREEN
(1)、首先在app\Http\routes.php中定义路由;
Route::get('view','ViewControllerview');
Route::get('article','ViewControllerarticle');
Route::get('layout','ViewControllerlayout');
(2)、然后在Http\Controllers\ViewController.php中写入方法;
public function view(){
ret
公众看图器
受启发,マストドンの公开タイムラインをみるやつ。
构建设置
# install dependencies
yarn install
# serve with hot reload at localhost:8080
yarn dev
# build for production with minification
yarn build
# build for production and view the bundle analyzer report
yarn build --rep