1.0.9 • Published 2 years ago

vue-awesome-dialog v1.0.9

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

vue-awesome-dialog

npm.io

A awesome dialog component for Vue3

Installation

NPM

npm i vue-awesome-dialog

YARN

yarn add vue-awesome-dialog

CDN

https://www.jsdelivr.com/package/npm/vue-awesome-dialog

Getting Started

To install it globally.

import { createApp } from "vue";
import App from "./App.vue";
import VueAwesomeDialog from "vue-awesome-dialog";

createApp(App).use(VueAwesomeDialog).mount("#app");
<template>
    <div>
        <vue-awesome-dialog />
    </div>
</template>

If not globally, you can also import the individual components locally.

<script>
import VueAwesomeDialog from "vue-awesome-dialog";
export default {
  components: {
    VueAwesomeDialog,
  },
};
</script>
<template>
    <div>
        <vue-awesome-dialog />
    </div>
</template>

Events

NameUsageDescription
close@closeEmitted for close dialog
save@saveEmitted for save dialog

Slots

NameDescription
headerSlot for custom header
bosySlot for custom body content

Example

<button @click="show = true">show</button>
<vue-awesome-dialog v-show="show" @close="show = false" @save="add">
    <template v-slot:header>Custom Title</template>
    <template v-slot:body>
        It is a long established fact that a reader will be distracted
        by the readable content of a page when looking at its layout.
    </template>
</vue-awesome-dialog>
1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

2.0.7

2 years ago

2.0.6

2 years ago

2.0.5

2 years ago

2.0.4

2 years ago

2.0.3

2 years ago

2.0.2

2 years ago

2.0.1

2 years ago

2.0.0-0

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago

0.1.1

2 years ago