Skip to content

Commit

Permalink
Docs: add more detail about how to run play mode for contribution (El…
Browse files Browse the repository at this point in the history
…emeFE#14355)

* Docs: Add more detail about how to run play mode for contribution

* Update index.vue
  • Loading branch information
island205 authored and ziyoung committed Feb 15, 2019
1 parent 5ae443a commit 4584d6a
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/CONTRIBUTING.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ npm run dev
# open http://localhost:8085
```

> **Notice**: modify `examples/play/index.vue` file, use the component you contribute, then run `npm run dev:play`, go ahead http://localhost:8085, get result, more quickly and friendly.
To build:

```shell
Expand Down
4 changes: 3 additions & 1 deletion .github/CONTRIBUTING.es.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ Estamos orgullosos de que usted esta interesado en contribuir al proyecto `Eleme
- Fusión de un PR requiere dos mantenedores: el primero aprueba los cambios después de revisar, y entonces el segundo mantenedor revisa los cambios y hace la fusión.


## Requerimientos Técnicos
## Requerimientos Técnicos
`Node.js 4+`, `yarn` y `npm 3+` son requisitos. Nota: Usamos yarn para bloquear versiones de dependencias, por lo que debería instalar dependencias usando `yarn` en lugar de `npm install`.
.
```shell
Expand All @@ -47,6 +47,8 @@ npm run dev
# abra http://localhost:8085
```

> **Notice**: modify `examples/play/index.vue` file, use the component you contribute, then run `npm run dev:play`, go ahead http://localhost:8085, get result, more quickly and friendly.
Para armar:

```
Expand Down
2 changes: 2 additions & 0 deletions .github/CONTRIBUTING.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ npm run dev
# open http://localhost:8085
```

> **提示**:可以运行 `npm run dev:play`,修改 `examples/play/index.vue` 文件,调用你修改后的组件,仍然访问 http://localhost:8085,查看修改效果,更快更方便。
打包代码:

```shell
Expand Down
6 changes: 6 additions & 0 deletions examples/play/index.vue
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
<template>
<div style="margin: 20px;">
<el-input v-model="input" placeholder="请输入内容"></el-input>
</div>
</template>

<script>
export default {
data() {
return {
input: 'Hello Element UI!'
};
}
};
</script>

0 comments on commit 4584d6a

Please sign in to comment.