element-plus [Component] [dialog, alert] 关于 Dialog 弹窗移动端适配问题。

qpgpyjmq  于 5个月前  发布在  其他
关注(0)|答案(1)|浏览(64)

Bug Type: Component

Environment

  • Vue Version: 3.2.0
  • Element Plus Version: 2.3.4
  • Browser / OS: oppo R17
  • Build Tool: Vite

Reproduction

  • el-dialog
  • el-alert

Docs

Steps to reproduce

oppo R17 消失的弹窗

What is Expected?

期望可以打开弹窗

What is actually happening?

无法打开弹窗

Additional comments

弹窗兼容

6rqinv9w

6rqinv9w1#

<script setup>
import { ref } from 'vue'
import { ElMessageBox } from 'element-plus'

const content = ref('oppo R17 消失的弹窗')
const onOpen = () => {
ElMessageBox.alert(content.value, '奖励', { dangerouslyUseHTMLString: true })
}

onOpen()
</script>

相关问题