fix card and routes.js

This commit is contained in:
wangxueliang 2018-01-25 15:26:10 +08:00
parent 7cb596df9c
commit a5121e5d4a
4 changed files with 6 additions and 7 deletions

View File

@ -139,8 +139,7 @@
let head
const tabs = tabList && tabList.length ? (
// size='large' Tabs
<Tabs class={`${prefixCls}-head-tabs`} onChange={this.onHandleTabChange}>
<Tabs class={`${prefixCls}-head-tabs`} size='large' onChange={this.onHandleTabChange}>
{tabList.map(item => <TabPane tab={item.tab} key={item.key} />)}
</Tabs>
) : null
@ -169,7 +168,7 @@
const actions = getComponentFromProp(this, 'actions')
const actionDom = actions || null
const divProps = omit(others, [
'onTabChange',
'tabChange',
])
return (
<div {...divProps} class={classString} ref='cardContainerRef'>

View File

@ -3,7 +3,7 @@
<md>
## 基本
</md>
<Card title="Card title" >
<Card title="Card title">
<a href="#" slot="extra">More</a>
<p>Card content</p>
<p>Card content</p>

View File

@ -44,7 +44,7 @@ Pagination | done|select完成后补全
Avatar | done
Badge | done
Breadcrumb | done
Card
Card | done
Collapse
LocaleProvider
Progress

View File

@ -1,11 +1,11 @@
import Demo from './demo.vue'
const AsyncComp = () => {
return {
component: import(`../components/card/demo/basic.vue`),
component: import(`../components/button/demo/index.vue`),
}
}
export default [
{ path: '/components/:name/:demo?', component: Demo },
{ path: 'test/:name/:demo', component: AsyncComp },
{ path: '/test/:name/:demo?', component: AsyncComp },
{ path: '/*', redirect: '/components/menu' },
]