Browse Source

弹出框自定义按钮

pull/92/head
zq 2 days ago
parent
commit
09d0e8bdef
  1. 3
      src/components/GuipDialog.vue

3
src/components/GuipDialog.vue

@ -11,6 +11,7 @@
>
<!-- 自定义内容 -->
<slot></slot>
<slot name="footer"></slot>
<!-- 底部按钮 -->
<span v-if="showFooterButton" slot="footer" :class="[type == 'center' ? 'dialog-footer-center' : 'dialog-footer-normal', 'flex']" style="justify-content: space-between;">
<GuipButton v-if="showCancelButton" @click="handleCancel" type="ignore" >{{ cancelText }}</GuipButton>
@ -23,7 +24,7 @@
import GuipButton from '@/components/GuipButton.vue';
export default {
name: 'CustomDialog',
name: 'GuipDialog',
props: {
type:{
type:String,

Loading…
Cancel
Save