Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
Element
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
CI / CD Analytics
Repository Analytics
Value Stream Analytics
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
林焕东
Element
Commits
fdf0938c
Commit
fdf0938c
authored
Oct 13, 2016
by
Leopoldthecoder
Committed by
cinwell.li
Oct 13, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add FAQ
parent
0a8c6af8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
41 additions
and
0 deletions
+41
-0
.github/ISSUE_TEMPLATE.md
.github/ISSUE_TEMPLATE.md
+4
-0
FAQ.md
FAQ.md
+37
-0
No files found.
.github/ISSUE_TEMPLATE.md
View file @
fdf0938c
<!--
提交 issue 前请务必查看 FAQ:https://github.com/ElemeFE/element/blob/master/FAQ.md。如果你的问题可以在 FAQ 中找到解决方案,我们会直接关闭 issue。
-->
<!--
issue 仅用于提交 bug 或 feature 以及设计相关的内容,其它疑问请到 gitter 聊天室找社区里面的小伙伴聊一聊:https://gitter.im/ElemeFE/element
-->
...
...
FAQ.md
0 → 100644
View file @
fdf0938c
## FAQ
### 给组件绑定的事件为什么无法触发?
在 Vue 2.0 中,为自定义组件绑定原生事件必须使用
`.native`
修饰符:
```
html
<el-button
@
click.native=
"handleButtonClick"
>
Click Me
</el-button>
```
### 在项目中引入 Element UI,但是 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
)
的项目模板。
### 在项目中引入 Element UI,报 `Uncaught Error: Module build failed: SyntaxError: 'with' in strict mode` 是什么原因?
请避免你使用的编译器处理 Element UI。比如,若是使用 webpack,请在 loaders 中配置:
```
javascript
{
test
:
/
\.
js$/
,
loader
:
'
babel
'
,
exclude
:
/
node_modules
/
}
```
### 将 Element UI 克隆至本地,运行时为何会报错/跑不起来?
首先,确保克隆的是 master 分支的最新代码,并且文件完整。其次,确保本地的 node 版本在 4.0 以上,npm 版本在 3.0 以上。最后,请按照 README 的方法启动开发环境:
```
bash
npm run dev
```
或是直接打包:
```
bash
npm run dist
```
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment