GDialog 对话框
所有属性都继承自element-plus
基础用法
<template>
<div>
<g-button type="primary" @click="dialog = true">open dialog</g-button>
<g-dialog v-model="dialog" title="标题" width="300px">
我是内容
</g-dialog>
</div>
</template>
<script setup lang="ts">
import { GDialog, GButton } from 'gao-components-plus'
import { ref } from 'vue';
const dialog = ref(false)
</script>属性
除以下属性外,其他属性都继承自element-plus
| 名称 | 描述 | 类型 | 默认值 |
|---|---|---|---|
| showFooter | 显示底部操作按钮 | Boolean | true |
| showCancel | 显示取消按钮 | Boolean | true |
| showConfirm | 显示确认按钮 | Boolean | true |
| cancelText | 取消按钮文本 | String | 取消 |
| confirmText | 确认按钮文本 | String | 确认 |
emit事件
| 名称 | 描述 | 类型 | 默认值 |
|---|---|---|---|
| confirm | 确认 | () => void | - |
| cancel | 取消 | () => void | - |
除以上方法外,其他方法都继承自element-plus
