0.0.37 • Published 5 years ago
vuetify-gen v0.0.37
install
npm install vuetify-gen --save
create plugins/vuetify-gen.js
import Vue from 'vue'
// your plugins/vuetify
import vuetify from './vuetify'
import * as components from 'vuetify-gen/lib/components'
import vuetifyGen from 'vuetify-gen'
Vue.use(vuetifyGen, {
vuetify,
components
})
use
toast
this.$toast('message')
// timeout
this.$toast('message', 2000)
// persistent
this.$toast('message', 2000, true)
notify
this.$notify('message')
// color
this.$notify('message', 'success')
// timeout
this.$notify('message', 'success', 2000)
confirm
this.$confirm('title').then(() => {
console.log('ok')
}).catch(() => {
console.log('cancel')
})
// confirm persistent
this.$confirm('title', true)
form
this.$form(
'form title', [
{
is: 'v-text-field',
name: 'username',
props: {
label: 'username label'
}
}
],
// persistent
true
).then(({ username }) => {
console.log('submit', username)
}).catch(() => {
console.log('cancel')
})
dateTimePicker
this.$dateTimePicker().then(date => {
console.log('submit', date)
}).catch(() => {
console.log('cancel')
})
// range
this.$dateTimePicker(true)
// persistent
this.$dateTimePicker(true, true)
0.0.37
5 years ago
0.0.35
6 years ago
0.0.34
6 years ago
0.0.33
6 years ago
0.0.32
6 years ago
0.0.31
6 years ago
0.0.30
6 years ago
0.0.29
6 years ago
0.0.28
6 years ago
0.0.27
6 years ago
0.0.26
6 years ago
0.0.25
6 years ago
0.0.24
6 years ago
0.0.23
6 years ago
0.0.22
6 years ago
0.0.21
6 years ago
0.0.20
6 years ago
0.0.19
6 years ago
0.0.18
6 years ago
0.0.17
6 years ago
0.0.16
6 years ago
0.0.15
6 years ago
0.0.14
6 years ago
0.0.13
6 years ago
0.0.12
6 years ago
0.0.11
6 years ago
0.0.10
6 years ago
0.0.9
6 years ago
0.0.8
6 years ago
0.0.7
6 years ago
0.0.6
6 years ago
0.0.5
6 years ago
0.0.4
6 years ago
0.0.3
6 years ago