mirror of https://github.com/ElemeFE/element
update FAQ
parent
f2fe907593
commit
d8fc4fca36
12
FAQ.md
12
FAQ.md
|
@ -7,13 +7,17 @@
|
||||||
<el-button @click.native="handleButtonClick">Click Me</el-button>
|
<el-button @click.native="handleButtonClick">Click Me</el-button>
|
||||||
```
|
```
|
||||||
|
|
||||||
### 在项目中引入 Element UI,但是 CSS 报错/字体文件报错/组件没有样式是什么原因?
|
### 你们的文档怎么偷偷更新了?
|
||||||
|
|
||||||
|
我们只会在 Element 发布新版本时同步更新文档,以体现最新的变化。详细的更新内容可以查看 [changelog](https://github.com/ElemeFE/element/blob/master/CHANGELOG.md)。
|
||||||
|
|
||||||
|
### 在项目中引入 Element,但是 CSS 报错/字体文件报错/组件没有样式是什么原因?
|
||||||
|
|
||||||
请参考我们提供的 [starter kit](https://github.com/ElementUI/element-starter),在 webpack 的 loaders 中正确配置 file-loader、css-loader 和 style-loader。此外,我们还提供了基于 [cooking](https://github.com/ElementUI/element-cooking-starter) 和 [laravel](https://github.com/ElementUI/element-in-laravel-starter) 的项目模板。
|
请参考我们提供的 [starter kit](https://github.com/ElementUI/element-starter),在 webpack 的 loaders 中正确配置 file-loader、css-loader 和 style-loader。此外,我们还提供了基于 [cooking](https://github.com/ElementUI/element-cooking-starter) 和 [laravel](https://github.com/ElementUI/element-in-laravel-starter) 的项目模板。
|
||||||
|
|
||||||
### 在项目中引入 Element UI,报 `Uncaught Error: Module build failed: SyntaxError: 'with' in strict mode` 是什么原因?
|
### 在项目中引入 Element,报 `Uncaught Error: Module build failed: SyntaxError: 'with' in strict mode` 是什么原因?
|
||||||
|
|
||||||
请避免你使用的编译器处理 Element UI。比如,若是使用 webpack,请在 loaders 中配置:
|
请避免你使用的编译器处理 Element。比如,若是使用 webpack,请在 loaders 中配置:
|
||||||
```javascript
|
```javascript
|
||||||
{
|
{
|
||||||
test: /\.js$/,
|
test: /\.js$/,
|
||||||
|
@ -22,7 +26,7 @@
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
### 将 Element UI 克隆至本地,运行时为何会报错/跑不起来?
|
### 将 Element 克隆至本地,运行时为何会报错/跑不起来?
|
||||||
|
|
||||||
首先,确保克隆的是 master 分支的最新代码,并且文件完整。其次,确保本地的 node 版本在 4.0 以上,npm 版本在 3.0 以上。最后,请按照 README 的方法启动开发环境:
|
首先,确保克隆的是 master 分支的最新代码,并且文件完整。其次,确保本地的 node 版本在 4.0 以上,npm 版本在 3.0 以上。最后,请按照 README 的方法启动开发环境:
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue