arco-design-vue
arco-design-vue copied to clipboard
对话框Modal在使用函数调用时设置closable=true不显示取消按钮
- [ x ] I'm sure this does not appear in the issue list of the repository
Basic Info
- Package Name And Version: @arco-design/[email protected]
- Framework version: vue3.2.41
- Browser: chrome108.0.0.0
What is expected?
希望closable=true时,可以正常显示取消按钮
Steps to reproduce
- 使用
const modal = getCurrentInstance()?.appContext.config.globalProperties.$modal;
导入Modal - 然后进行如下配置
modal?.warning({
title: '退出登录',
content: '确认退出登录吗?',
width: 150,
closable: true,
cancelText: '取消',
onOk: () => {},
});
- 此时页面上的Modal只有确认按钮没有取消按钮