diff --git a/docs/components/mobile-nav.vue b/docs/components/mobile-nav.vue index 049d999ff..b188ff135 100644 --- a/docs/components/mobile-nav.vue +++ b/docs/components/mobile-nav.vue @@ -29,7 +29,7 @@ export default { props: { group: { - type: Array, + type: Object, default: () => { return []; } diff --git a/docs/examples-dist/image-preview.vue b/docs/examples-dist/image-preview.vue index db90bc295..37389b507 100644 --- a/docs/examples-dist/image-preview.vue +++ b/docs/examples-dist/image-preview.vue @@ -4,7 +4,15 @@ - + \ No newline at end of file +import Vue from "vue";import ExampleBlock from "../components/example-block";Vue.component("example-block", ExampleBlock); +export default { + data() { + return { + switchState: true + }; + }, + computed: { + switchStateText() { + return this.switchState ? ' ON' : 'OFF'; + } + }, + methods: { + updateState(newState) { + this.switchState = newState; + } + } +}; + \ No newline at end of file diff --git a/docs/examples-dist/tab.vue b/docs/examples-dist/tab.vue index 748728183..6d5b91709 100644 --- a/docs/examples-dist/tab.vue +++ b/docs/examples-dist/tab.vue @@ -38,6 +38,15 @@ +