::ng-deep
;:root
;:host /deep/
;两种解决方案,html
areaStyle: { normal: { color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{ offset: 0, color: seriesItem.areaStyle.colorStart //赋值颜色 }, { offset: 0.8, color: seriesItem.areaStyle.colorEnd }], false), shadowColor: seriesItem.areaStyle.shadowColor, shadowBlur: 10 } },
问题定位:node
缘由系统windown开发环境变量出了问题,ipconfig等命令失效。git
这个 system32 文件夹中包含了大量的用于 Windows 的文件. 这里主要用于存储 DLL 文件, 控制面板小程序(.CPL), 设备驱动 (.drv), 帮助文件 (.hlp 和 .cnt), MS-DOS 工具 (.com), 语言支持文件 (.nls), 屏幕保护 (.scr), 安装信息文件 (.inf), 以及其它用于支持, 配置, 或操做的文件.文件说明 aclui.dll …Security Descriptor Editor,没有它,注册表编辑器会没法运行github
解决办法:npm
在系统属性中选择“高级系统设置”。在系统属性对话框中找到其上方的“高级”选项卡,里面有一个“环境变量”按钮,点击进入。小程序
下方的系统变量区中找到变量“path”,点击下方的编辑。windows
若是path变量以前有内容,则须要在末尾添加一个分号,而后加入内容“c:\windows\system32”,以下图所示。环境变量设置完毕后,依次单击“肯定”保存设置并退出设置界面。echarts
重启启动idea,并运行项目解决。less
ng-alian 官网中推荐使用的方式有两种:编辑器
# 确保使用的是最新版本 Angular cli ng new my-project --style less cd my-project ng add ng-alain # 若是你想建立一个英文版本,则: ng add ng-alain --defaultLanguage=en ng serve
# 卸载现有angular-cli npm uninstall -g angular-cli # 清空cache npm cache clean -f # 升级 npm install -g @angular/cli@latest # 升级到固定版本号 npm install -g @angular/cli@版本号
git clone --depth=1 https://github.com/ng-alain/ng-alain.git my-project cd my-project # 安装依赖包 yarn / npm i # 选一个 ng serve
第一种是一个空项目,第二种要本身删不少组件。
重点说明一下第二种,遇到经过npm添加,报不少的错误,具体的错误没有截图,这时候就须要经过yarm的方式来添加了。
全局安装yarn
npm install -g yarn
使用angular-cli成一个空项目
# 空项目 ng new ng-alain-demo --style less cd ng-alain-demo # 添加ng-alain yarn add ng-alain # 启动 ng serve
六、