From 6726f1e4f1b2b0f077a7c3ae99325b0939296d9a Mon Sep 17 00:00:00 2001 From: cookfront Date: Fri, 17 Mar 2017 17:20:56 +0800 Subject: [PATCH] zanui docs --- docs/components/mobile-nav.vue | 2 +- docs/examples-dist/image-preview.vue | 10 ++++++- docs/examples-dist/popup.vue | 5 +++- docs/examples-dist/switch.vue | 22 ++++++++++++++-- docs/examples-dist/tab.vue | 9 +++++++ docs/examples-dist/toast.vue | 39 +++++++++++++++++++++------- docs/examples-docs/image-preview.md | 10 +++++++ docs/examples-docs/popup.md | 5 +++- docs/examples-docs/tab.md | 11 ++++++++ docs/examples-docs/uploader.md | 2 +- 10 files changed, 98 insertions(+), 17 deletions(-) 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 @@ +