build docs

This commit is contained in:
cookfront
2017-03-24 12:06:33 +08:00
parent 429e6e129a
commit c0f9eb012e
8 changed files with 19 additions and 7 deletions

View File

@@ -8,7 +8,7 @@
</zan-tabs>
</example-block><example-block title="禁用用法">
<zan-tabs>
<zan-tabs :active="active">
<zan-tab title="选项一">内容一</zan-tab>
<zan-tab disable="" title="选项二" @disable="popalert">内容二</zan-tab>
<zan-tab title="选项三">内容三</zan-tab>
@@ -40,7 +40,7 @@
<style>
@component-namespace demo {
@b tab {
.zan-tabs-pane {
.zan-tab__pane {
background-color: #fff;
padding: 20px;
}
@@ -68,6 +68,16 @@
<script>
import Vue from "vue";import ExampleBlock from "../components/example-block";Vue.component("example-block", ExampleBlock);
export default {
data() {
return {
active: 2
};
},
mounted() {
setTimeout(() => {
this.active = 3;
}, 1000);
},
methods: {
popalert() {
alert('haha')