Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/David-Desmaisons/Vue-Semantic-Modal
Vue modal component for Semantic-Ui no jquery
https://github.com/David-Desmaisons/Vue-Semantic-Modal
component modal vue
Last synced: about 2 months ago
JSON representation
Vue modal component for Semantic-Ui no jquery
- Host: GitHub
- URL: https://github.com/David-Desmaisons/Vue-Semantic-Modal
- Owner: David-Desmaisons
- License: mit
- Created: 2017-06-15T19:32:50.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2017-11-29T22:23:12.000Z (over 6 years ago)
- Last Synced: 2024-03-12T09:24:26.346Z (3 months ago)
- Topics: component, modal, vue
- Language: JavaScript
- Homepage:
- Size: 48.9 MB
- Stars: 45
- Watchers: 8
- Forks: 14
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Lists
- awesome-vue - Vue-Semantic-Modal - Vue 2 Semantic-UI modal component without jQuery dependency (Components & Libraries / UI Components)
- awesome-vue - Vue-Semantic-Modal - Vue 2 Semantic-UI modal component without jQuery dependency (Components & Libraries / UI Components)
- awesome-vue - Vue-Semantic-Modal - Vue 2 Semantic-UI modal component without jQuery dependency (Components & Libraries / UI Components)
- awesome-vue - Vue-Semantic-Modal - Vue 2 Semantic-UI modal component without jQuery dependency (Components & Libraries / UI Components)
- awesome-vue - Vue-Semantic-Modal - Vue 2 Semantic-UI modal component without jQuery dependency (Components & Libraries / UI Components)
- awesome-vue - Vue-Semantic-Modal - Vue 2 Semantic-UI modal component without jQuery dependency (Components & Libraries / UI Components)
- awesome-vue - Vue-Semantic-Modal - Vue 2 Semantic-UI modal component without jQuery dependency (Components & Libraries / UI Components)
- awesome-vue - Vue-Semantic-Modal - Vue 2 Semantic-UI modal component without jQuery dependency (Components & Libraries / UI Components)
- awesome-vue - Vue-Semantic-Modal - Vue 2 Semantic-UI modal component without jQuery dependency (UI Components / Overlay)
- awesome-vue - Vue-Semantic-Modal ★39 - Vue 2 Semantic-UI modal component without jQuery dependency (UI Components / Overlay)
- awesome-vue - Vue-Semantic-Modal - Vue 2 Semantic-UI modal component without jQuery dependency (UI Components / Overlay)
- awesome-vue. - Vue-Semantic-Modal - Vue 2 Semantic-UI modal component without jQuery dependency (UI Components / Overlay)
- awesome-vue - Vue-Semantic-Modal - Vue 2 Semantic-UI modal component without jQuery dependency (UI Components / Overlay)
- awesome-vue - Vue-Semantic-Modal - Vue 2 Semantic-UI modal component without jQuery dependency (UI Components / Overlay)
- awesome-vue - Vue-Semantic-Modal - Vue 2 Semantic-UI modal component without jQuery dependency (UI Components / Overlay)
- awesome-vue - Vue-Semantic-Modal - Vue 2 Semantic-UI modal component without jQuery dependency (Components & Libraries / UI Components)
- awesome-vuejs - Vue-Semantic-Modal - Vue 2 Semantic-UI modal component without jQuery dependency (UI Components / Overlay)
- awesome-vue - Vue-Semantic-Modal - Vue 2 Semantic-UI modal component without jQuery dependency (Components & Libraries / UI Components)
README
# Vue-Semantic-Modal
Modal component for [semantic-ui](https://semantic-ui.com/) without jQuery
[![GitHub open issues](https://img.shields.io/github/issues/David-Desmaisons/Vue.Semantic.Modal.svg?maxAge=2592000)](https://github.com/David-Desmaisons/Vue.Semantic.Modal/issues)
[![Npm version](https://img.shields.io/npm/v/vue-semantic-modal.svg?maxAge=2592000)](https://www.npmjs.com/package/vue-semantic-modal)
[![vue2](https://img.shields.io/badge/vue-2.x-brightgreen.svg)](https://vuejs.org/)
[![MIT License](https://img.shields.io/github/license/David-Desmaisons/Vue.D3.tree.svg)](https://github.com/David-Desmaisons/Vue.Semantic.Modal/LICENSE)# Example
![demo](./modal.gif)
# Usage
```html
Confirmation needed
Do you want to continue?
```
```javascript
import modal from 'vue-semantic-modal'export default {
components: {
modal
},
data() {
return {
showModal: true,
confirmed: true
}
},
methods () {
confirm () {
this.confirmed = true
this.showModal = false
}
}
}
//...
```Include in the root component semantic-ui CSS:
```
@import '~dist/semantic.css';
```# Slot
* `header`
* `content`
* `actions`
# Props
| Name | Required | Type/Value | Default | Description |
| --- | --- | --- | --- | --- |
| opened | no | `Boolean` | false | triggers the opening/closing. Can be bind with v-model
| hasImage | no | `Boolean` | false | Should be true if the content contains image as per semantic-ui specification |
| animationDuration | no | `Number` | 500 | Opening and closing animation duration in ms |
| showCloseIcon | no | `Boolean` | false | If true close icon of the model is displayed |
| modalVariation | no | `'fullscreen', 'basic', 'mini', 'small', 'large' or ''` | '' | Additional modal styling [see here](https://semantic-ui.com/modules/modal.html#/definition) |
| dimmerVariation | no | `'inverted' or ''` | '' | Additional dimmer styling [see here](https://semantic-ui.com/modules/modal.html#/examples) |
| modalTransition | no | `String` | 'scale'| name of the modal transition to be applied. [See here](https://semantic-ui.com/modules/transition.html) |# Events
* `changed`
Sent when the modal state changed with a boolean true if the modal is opened
* `displayChanged`
Sent when the modal visual state changed with a string representing the modal visual state:
`'closed', 'opening', 'opened', 'closing'`
* `clickAwayModal`
Sent when modal is opened and user click outside.
# Installation
- Available through:
``` js
npm install vue-semantic-modal
```