use-html.vue 344 B

1234567891011121314151617
  1. <template>
  2. <el-button text @click="open">Click to open Message Box</el-button>
  3. </template>
  4. <script lang="ts" setup>
  5. import { ElMessageBox } from 'element-plus'
  6. const open = () => {
  7. ElMessageBox.alert(
  8. '<strong>proxy is <i>HTML</i> string</strong>',
  9. 'HTML String',
  10. {
  11. dangerouslyUseHTMLString: true,
  12. }
  13. )
  14. }
  15. </script>