ca-vuetify-message
v1.0.3
Published
ts+vuetify下的全局$message提示框
Downloads
6
Readme
Usage
1. Install
npm install ca-vuetify-message
2. Use
In main.js:
import message from "ca-vuetify-message";
Vue.use(message, {
verticalOffset: number, // 初始弹出位置(垂直)
position: "left" | "center" | "right", // 弹出位置(水平)
flat: boolean, // 是否具有阴影
width: string | number // 弹窗宽度
});
In any other script files:
this.$message({
type: "success" | "error" | "warning" | info,
message: string,
callback?: Function
});