Commit 4584d6ad authored by Zhi Cun's avatar Zhi Cun Committed by hetech

Docs: add more detail about how to run play mode for contribution (#14355)

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

* Update index.vue
parent 5ae443a4
...@@ -43,6 +43,8 @@ npm run dev ...@@ -43,6 +43,8 @@ npm run dev
# open http://localhost:8085 # 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: To build:
```shell ```shell
......
...@@ -47,6 +47,8 @@ npm run dev ...@@ -47,6 +47,8 @@ npm run dev
# abra http://localhost:8085 # 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: Para armar:
``` ```
......
...@@ -41,6 +41,8 @@ npm run dev ...@@ -41,6 +41,8 @@ npm run dev
# open http://localhost:8085 # open http://localhost:8085
``` ```
> **提示**:可以运行 `npm run dev:play`,修改 `examples/play/index.vue` 文件,调用你修改后的组件,仍然访问 http://localhost:8085,查看修改效果,更快更方便。
打包代码: 打包代码:
```shell ```shell
......
<template> <template>
<div style="margin: 20px;"> <div style="margin: 20px;">
<el-input v-model="input" placeholder="请输入内容"></el-input>
</div> </div>
</template> </template>
<script> <script>
export default { export default {
data() {
return {
input: 'Hello Element UI!'
};
}
}; };
</script> </script>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment