Commit 7df39fc6 authored by Leopoldthecoder's avatar Leopoldthecoder

Dialog: update doc

parent ef90ce3c
...@@ -95,7 +95,7 @@ Dialog 组件的内容可以是任意的,甚至可以是表格或表单,下 ...@@ -95,7 +95,7 @@ Dialog 组件的内容可以是任意的,甚至可以是表格或表单,下
:::demo :::demo
```html ```html
<!-- Table --> <!-- Table -->
<el-button type="text" @click.native="dialogTableVisible = true" type="text">打开嵌套表格的 Dialog</el-button> <el-button type="text" @click.native="dialogTableVisible = true">打开嵌套表格的 Dialog</el-button>
<el-dialog title="收货地址" v-model="dialogTableVisible"> <el-dialog title="收货地址" v-model="dialogTableVisible">
<el-table :data="gridData"> <el-table :data="gridData">
...@@ -106,7 +106,7 @@ Dialog 组件的内容可以是任意的,甚至可以是表格或表单,下 ...@@ -106,7 +106,7 @@ Dialog 组件的内容可以是任意的,甚至可以是表格或表单,下
</el-dialog> </el-dialog>
<!-- Form --> <!-- Form -->
<el-button type="text" @click.native="dialogFormVisible = true" type="text">打开嵌套表单的 Dialog</el-button> <el-button type="text" @click.native="dialogFormVisible = true">打开嵌套表单的 Dialog</el-button>
<el-dialog title="收货地址" v-model="dialogFormVisible"> <el-dialog title="收货地址" v-model="dialogFormVisible">
<el-form :model="form"> <el-form :model="form">
...@@ -120,10 +120,10 @@ Dialog 组件的内容可以是任意的,甚至可以是表格或表单,下 ...@@ -120,10 +120,10 @@ Dialog 组件的内容可以是任意的,甚至可以是表格或表单,下
</el-select> </el-select>
</el-form-item> </el-form-item>
</el-form> </el-form>
<span slot="footer" class="dialog-footer"> <div slot="footer" class="dialog-footer">
<el-button @click.native="dialogFormVisible = false">取 消</el-button> <el-button @click.native="dialogFormVisible = false">取 消</el-button>
<el-button type="primary" @click.native="dialogFormVisible = false">确 定</el-button> <el-button type="primary" @click.native="dialogFormVisible = false">确 定</el-button>
</span> </div>
</el-dialog> </el-dialog>
``` ```
::: :::
......
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