Ant Design of Vue-modal组件
# modal组件
# 1.自定义页脚
不需要默认确定取消按钮时,你可以把 footer
设为 null
。
<a-modal v-model="visible" title="Title" on-ok="handleOk">
<template slot="footer">
<a-button key="back" @click="handleCancel">
Return
</a-button>
<a-button key="submit" type="primary" :loading="loading" @click="handleOk">
Submit
</a-button>
</template>
<p>Some contents...</p>
<p>Some contents...</p>
<p>Some contents...</p>
<p>Some contents...</p>
<p>Some contents...</p>
</a-modal>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
2
3
4
5
6
7
8
9
10
11
12
13
14
15
上次更新: 2024/08/14, 04:14:33