diff --git a/FAQ.md b/FAQ.md index 34a7f39c8..113cc454b 100644 --- a/FAQ.md +++ b/FAQ.md @@ -7,6 +7,16 @@ Click Me ``` +### 如何在 Table 组件的每一行添加操作该行数据的按钮? + +使用 inline-template 即可: +```html + + 查看详情 + +``` +参数 `row` 即为对应行的数据。 + ### 你们的文档怎么偷偷更新了? 我们只会在 Element 发布新版本时同步更新文档,以体现最新的变化。详细的更新内容可以查看 [changelog](https://github.com/ElemeFE/element/blob/master/CHANGELOG.md)。 @@ -28,7 +38,7 @@ ### 将 Element 克隆至本地,运行时为何会报错/跑不起来? -首先,确保克隆的是 master 分支的最新代码,并且文件完整。其次,确保本地的 node 版本在 4.0 以上,npm 版本在 3.0 以上。最后,请按照 README 的方法启动开发环境: +首先,确保克隆的是 master 分支的最新代码,并且文件完整。其次,确保本地的 node 版本在 4.0 以上,npm 版本在 3.0 以上。最后,可以启动开发环境: ```bash npm run dev diff --git a/README.md b/README.md index 943b7502a..1ed29ed63 100644 --- a/README.md +++ b/README.md @@ -73,15 +73,9 @@ Vue.component(Button.name, Button) Modern browsers and Internet Explorer 9+. ## Development -Recommend: node >= 4 npm >= 3 +Skip this part if you just want to use Element. -```shell -# development => install packages -> build icon etc. -> run webpack -$ npm run dev - -# build => build all component -$ npm run dist -``` +For those who are interested in contributing to Element, please refer to our [contributing guide](https://github.com/ElemeFE/element/blob/master/.github/CONTRIBUTING.md) to see how to run this project. ## Other links - Starter Kit @@ -97,6 +91,9 @@ $ npm run dist ## Changelog Detailed changes for each release are documented in the [release notes](https://github.com/ElemeFE/element/releases). +## FAQ +We have collected some [frequently asked questions](https://github.com/ElemeFE/element/blob/master/FAQ.md). Before reporting an issue, please search if the FAQ has the answer to your problem. + ## Contribution Please make sure to read the [Contributing Guide](https://github.com/ElemeFE/element/blob/master/.github/CONTRIBUTING.md) before making a pull request.