@vue-cb/alert
v1.0.5
Published
vue 3,alert
Downloads
2
Readme
Other
validate
modal
grid
datepicker
select
sidenav
paginate
Development
npm install @cb/alert
Config
import alert from "@cb/alert";
createApp(app).use(alert, {
header: "แจ้งเตือน",
ok: "ตกลง",
cancel: "ยกเลิก",
});
Usage
const alert = inject("alert");
//or
import { alert } from "@cb/alert";
alert.success("is success");
alert.error("is error");
alert.confirm("is confirm", () => {
//...
});
Option
| name | value | | -------------- | ------ | | header | string | | ok | string | | cancel | string | | animatonMask | string | | animationAlert | string |