modal取消默認按鈕 ,自己定義按鈕

<template>
  <a-modal
    :title="title"
    :width="800"
    :visible="visible"
    :confirmLoading="confirmLoading"
    @ok="handleOk"
    @cancel="handleCancel"
    cancelText="關閉"
    wrapClassName="ant-modal-cust-warp"
    style="top:5%;height: 85%;overflow-y: hidden">
    <a-form :form="form">

    </a-form>
    <template slot="footer">
      <a-button type="primary">取消</a-button>
      <a-button type="primary">暫存</a-button>
      <a-button type="primary">入庫</a-button>
    </template>

  </a-modal>
</template>

效果如下
在這裏插入圖片描述
主要是footer屬性

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章