feat(components): [config-provider] add message plain config (#20723)

* feat(components): [config-provider] add message plain config

* feat: update
This commit is contained in:
kooriookami
2025-05-14 15:02:21 +08:00
committed by GitHub
parent 420d4ff75c
commit 386129f402
5 changed files with 8 additions and 0 deletions

View File

@@ -95,6 +95,7 @@ In this section, you can learn how to use Config Provider to provide experimenta
| duration ^(2.8.2) | display duration, millisecond. If set to 0, it will not turn off automatically | ^[number] | — |
| showClose ^(2.8.2) | whether to show a close button | ^[boolean] | — |
| offset ^(2.8.2) | set the distance to the top of viewport | ^[number] | — |
| plain ^(2.9.11) | whether message is plain | ^[boolean] | — |
### Config Provider Slots

View File

@@ -11,6 +11,7 @@ import { reactive } from 'vue'
import { ElMessage } from 'element-plus'
const config = reactive({
max: 3,
plain: true,
})
const open = () => {
ElMessage('This is a message.')