+
Disable specific dates or date intervals
@@ -101,10 +120,8 @@
-
-
- Setting options on the fly
+ Setting options dynamically
@@ -128,7 +145,7 @@
Localization
-
+
@@ -152,12 +169,12 @@ export default {
mounted () {
const { checkIn, checkOut } = this.$refs
- checkIn.datepicker.set('onChange', (d) => {
- checkOut.datepicker.set('minDate', d.fp_incr(1))
+ checkIn.datepicker.set('onChange', (selectedDates, dateStr, instance) => {
+ checkOut.datepicker.set('minDate', selectedDates[0].fp_incr(1))
})
- checkOut.datepicker.set('onChange', (d) => {
- checkIn.datepicker.set('maxDate', d)
+ checkOut.datepicker.set('onChange', (selectedDates, dateStr, instance) => {
+ checkIn.datepicker.set('maxDate', dateStr)
})
},
diff --git a/client/views/components/Default.vue b/client/views/components/Default.vue
index 2f75c484..276375b9 100644
--- a/client/views/components/Default.vue
+++ b/client/views/components/Default.vue
@@ -2,63 +2,66 @@
-
-
-
-
{{ getDescription(item) }}
-
-
-
+
+
+
+
+
+ Repository
+
+
+
+
+
+ Demo
+
+
-
+
+
+
diff --git a/client/views/components/Modal.vue b/client/views/components/Modal.vue
index a61ed41d..c4aed3d9 100644
--- a/client/views/components/Modal.vue
+++ b/client/views/components/Modal.vue
@@ -1,6 +1,5 @@
@@ -32,25 +32,21 @@ import Modal from './modals/Modal'
import ImageModal from './modals/ImageModal'
import CardModal from './modals/CardModal'
-const ModalComponent = Vue.extend(Modal)
const ImageModalComponent = Vue.extend(ImageModal)
const CardModalComponent = Vue.extend(CardModal)
-const openModal = (propsData = {}) => {
- return new ModalComponent({
- el: document.createElement('div'),
- propsData
- })
-}
-
-const openImageModal = (propsData = {}) => {
+const openImageModal = (propsData = {
+ visible: true
+}) => {
return new ImageModalComponent({
el: document.createElement('div'),
propsData
})
}
-const openCardModal = (propsData = {}) => {
+const openCardModal = (propsData = {
+ visible: true
+}) => {
return new CardModalComponent({
el: document.createElement('div'),
propsData
@@ -62,19 +58,34 @@ export default {
Modal
},
+ data () {
+ return {
+ showModal: true,
+ cardModal: null,
+ imageModal: null
+ }
+ },
+
methods: {
openModalBasic () {
- openModal()
+ this.showModal = true
+ },
+
+ closeModalBasic () {
+ this.showModal = false
},
openModalImage () {
- openImageModal()
+ const imageModal = this.imageModal || (this.imageModal = openImageModal())
+ imageModal.$children[0].active()
},
openModalCard () {
- openCardModal({
- title: 'Modal title'
- })
+ const cardModal = this.cardModal || (this.cardModal = openCardModal({
+ title: 'Modal title',
+ url: this.$store.state.pkg.homepage
+ }))
+ cardModal.$children[0].active()
}
}
}
diff --git a/client/views/components/ProgressTracker.vue b/client/views/components/ProgressTracker.vue
index ff755c19..8250b994 100644
--- a/client/views/components/ProgressTracker.vue
+++ b/client/views/components/ProgressTracker.vue
@@ -6,19 +6,19 @@
Tracker Styles
@@ -39,31 +39,31 @@
Tracker Alignments
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
diff --git a/client/views/components/Quill.vue b/client/views/components/Quill.vue
index 9a2ab40c..481c070e 100644
--- a/client/views/components/Quill.vue
+++ b/client/views/components/Quill.vue
@@ -1,19 +1,17 @@
-
- Your powerful, rich text editor.
- http://quilljs.com
-
+
Your powerful, rich text editor.
+
One Ring to Rule Them All
http://en.wikipedia.org/wiki/One_Ring
Three Rings for the Elven-kings under the sky,
- Seven for the Dwarf-lords in halls of stone,
+ Seven for the Dwarf-lords in halls of stone,
Nine for Mortal Men, doomed to die,
One for the Dark Lord on his dark throne.
- In the Land of Mordor where the Shadows lie.
+ In the Land of Mordor where the Shadows lie.
One Ring to rule them all, One Ring to find them,
One Ring to bring them all and in the darkness bind them.
In the Land of Mordor where the Shadows lie.
diff --git a/client/views/components/Switch.vue b/client/views/components/Switch.vue
index ae67049d..1fad156c 100644
--- a/client/views/components/Switch.vue
+++ b/client/views/components/Switch.vue
@@ -52,10 +52,10 @@
Dynamics
-
+
- {{ value }}
+ {{ switchStat }}
@@ -80,9 +80,9 @@ export default {
}
},
- methods: {
- updateValue (val) {
- this.value = val
+ computed: {
+ switchStat () {
+ return this.value ? 'On' : 'Off'
}
}
}
diff --git a/client/views/components/Tabs.vue b/client/views/components/Tabs.vue
index 5504fb2d..47abe064 100644
--- a/client/views/components/Tabs.vue
+++ b/client/views/components/Tabs.vue
@@ -111,7 +111,7 @@
Document Tab
-
+
{{ item.desc }}
diff --git a/client/views/components/modals/CardModal.vue b/client/views/components/modals/CardModal.vue
index 96eebf6c..4c982130 100644
--- a/client/views/components/modals/CardModal.vue
+++ b/client/views/components/modals/CardModal.vue
@@ -1,6 +1,7 @@
-
+
+ Vue Admin on GitHub
@@ -13,13 +14,25 @@ export default {
},
props: {
- title: String
+ visible: Boolean,
+ title: String,
+ url: String
},
data () {
return {
src: require('assets/logo.svg')
}
+ },
+
+ methods: {
+ open (url) {
+ window.open(url)
+ },
+
+ close () {
+ this.$emit('close')
+ }
}
}
diff --git a/client/views/components/modals/ImageModal.vue b/client/views/components/modals/ImageModal.vue
index 839fca4b..ec276cc5 100644
--- a/client/views/components/modals/ImageModal.vue
+++ b/client/views/components/modals/ImageModal.vue
@@ -1,5 +1,5 @@
-
+
@@ -10,6 +10,17 @@ import { ImageModal } from 'vue-bulma-modal'
export default {
components: {
ImageModal
+ },
+
+ props: {
+ visible: Boolean
+ },
+
+ methods: {
+ close () {
+ this.$emit('close')
+ }
}
+
}
diff --git a/client/views/components/modals/Modal.vue b/client/views/components/modals/Modal.vue
index 6f53d5fc..0f880eec 100644
--- a/client/views/components/modals/Modal.vue
+++ b/client/views/components/modals/Modal.vue
@@ -1,5 +1,5 @@
-
+