Vue initializes the default properties of the elementui component

import {
  Message
} from "element-ui"

Vue.prototype.$message = Message

when I introduce the Message component of elementui into the project, how can I give it a default property?
for example, I want the default font size and vanishing time property duration to default to 5000 milliseconds

Mar.31,2021

you can encapsulate a method that calls the component of Message, and then calls that method directly in other components.

Menu