antonyz89 / yii2-material-design-lite
为 Yii2 的 Material Design Lite
v0.0.1-beta
2021-07-20 03:55 UTC
Requires
- php: >=7.2
- antonyz89/yii2-pagesize: >=0.0.1
- bower-asset/d3: 3.5.14
- bower-asset/material-design-lite: ^1.3.0
- bower-asset/nvd3: 1.8.2
- kartik-v/yii2-date-range: ^1.7
- kartik-v/yii2-datecontrol: ^1.9
- kartik-v/yii2-grid: ^3.3
- kartik-v/yii2-widget-activeform: ^1.5
- kartik-v/yii2-widget-datepicker: ^1.4
- kartik-v/yii2-widget-datetimepicker: ^1.4
- kartik-v/yii2-widget-fileinput: ^1.1
- kartik-v/yii2-widget-timepicker: ^1.0
- yiisoft/yii2: ~2.0.0
- yiisoft/yii2-bootstrap: ^2.0
This package is auto-updated.
Last update: 2024-08-29 05:44:12 UTC
README
为 Yii2 的 Material Design Lite
安装
安装此扩展的首选方式是通过 composer。
运行以下命令之一
php composer.phar require --prefer-dist antonyz89/yii2-material-design-lite "*"
或在您的 composer.json
文件的 require 部分添加
"antonyz89/yii2-material-design-lite": "*"
to the require section of your composer.json
file.
用法
使用前
- 移除 bootstrap css
- 移除 Kartik's DialogBootstrap js 和 css
# common/config/main.php [ 'components' => [ 'assetManager' => [ //'forceCopy' => true, 'converter' => [ //'forceConvert' => true, 'commands' => [ 'scss' => ['css', 'sass {from} {to} --source-map'], ] ], 'bundles' => [ BootstrapAsset::class => ['css' => []], DialogBootstrapAsset::class => ['js' => [], 'css' => []] ] ] ] ];
- 将
MaterialAsset::class
添加到您的AppAsset::class
use antonyz89\mdl\MaterialAsset; use yii\web\YiiAsset; class AppAsset extends AssetBundle { public $basePath = '@webroot'; public $baseUrl = '@web'; public $css = []; public $js = []; public $depends = [ // ... YiiAsset::class, MaterialAsset::class ]; }
特性
-
通过 Material Design Lite 实现 Material Design
-
Ecmascript 6 (带 babel)
-
响应式 深色 和 浅色 Material Design。
-
以用户体验为重点
-
Sass
-
D3 和 NVD3
-
MIT 许可证
致谢
- 使用 Material Design Lite 构建的 UI 组件。
- Material Dashboard Lite 为您提供令人惊叹的响应式仪表板,具有深色主题、组件、图表等。(该库基于哪个库)
- Kartik 增强 yii2 的组件
支持项目
- 给仓库加星标
- 创建问题报告或功能请求