Skip to content

Commit 8692336

Browse files
committed
update site
1 parent 7ddc17b commit 8692336

File tree

3 files changed

+17
-3
lines changed

3 files changed

+17
-3
lines changed

components/tabs/index.en-US.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
| Property | Description | Type | Default |
77
| -------- | ----------- | ---- | ------- |
8-
| activeKey | Current TabPane's key | string | - |
8+
| activeKey(v-model) | Current TabPane's key | string | - |
99
| animated | Whether to change tabs with animation. Only works while `tabPosition="top"\|"bottom"` | boolean \| {inkBar:boolean, tabPane:boolean} | `true`, `false` when `type="card"` |
1010
| defaultActiveKey | Initial active TabPane's key, if `activeKey` is not set. | string | - |
1111
| hideAdd | Hide plus icon or not. Only works while `type="editable-card"` | boolean | `false` |

components/tabs/index.zh-CN.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
| 参数 | 说明 | 类型 | 默认值 |
77
| --- | --- | --- | --- |
8-
| activeKey | 当前激活 tab 面板的 key | string ||
8+
| activeKey(v-model) | 当前激活 tab 面板的 key | string ||
99
| animated | 是否使用动画切换 Tabs,在 `tabPosition=top|bottom` 时有效 | boolean \| {inkBar:boolean, tabPane:boolean} | true, 当 type="card" 时为 false |
1010
| defaultActiveKey | 初始化选中面板的 key,如果没有设置 activeKey | string | 第一个面板 |
1111
| hideAdd | 是否隐藏加号图标,在 `type="editable-card"` 时有效 | boolean | false |

site/dev.js

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import '../components/style.js';
33
import './index.less';
44
import 'highlight.js/styles/solarized-light.css';
55
import Vue from 'vue';
6+
import Vuex from 'vuex';
67
import VueI18n from 'vue-i18n';
78
import VueRouter from 'vue-router';
89
import VueClipboard from 'vue-clipboard2';
@@ -11,9 +12,10 @@ import Api from './components/api';
1112
import './components';
1213
import demoBox from './components/demoBox';
1314
import demoContainer from './components/demoContainer';
14-
import Test from '../components/test/index.vue';
15+
import Test from '../components/form/demo/index.vue';
1516
import zhCN from './theme/zh-CN';
1617
import enUS from './theme/en-US';
18+
Vue.use(Vuex);
1719
Vue.use(VueClipboard);
1820
Vue.use(VueRouter);
1921
Vue.use(VueI18n);
@@ -34,8 +36,20 @@ const router = new VueRouter({
3436
mode: 'history',
3537
routes: [{ path: '/*', component: Test }],
3638
});
39+
40+
const store = new Vuex.Store({
41+
state: {
42+
username: 'zeka',
43+
},
44+
mutations: {
45+
update(state, payload) {
46+
state.username = payload.username;
47+
},
48+
},
49+
});
3750
new Vue({
3851
el: '#app',
3952
i18n,
4053
router,
54+
store,
4155
});

0 commit comments

Comments
 (0)