fix card and routes.js
parent
7cb596df9c
commit
a5121e5d4a
|
@ -139,8 +139,7 @@
|
||||||
|
|
||||||
let head
|
let head
|
||||||
const tabs = tabList && tabList.length ? (
|
const tabs = tabList && tabList.length ? (
|
||||||
// size='large' Tabs组件暂时未支持
|
<Tabs class={`${prefixCls}-head-tabs`} size='large' onChange={this.onHandleTabChange}>
|
||||||
<Tabs class={`${prefixCls}-head-tabs`} onChange={this.onHandleTabChange}>
|
|
||||||
{tabList.map(item => <TabPane tab={item.tab} key={item.key} />)}
|
{tabList.map(item => <TabPane tab={item.tab} key={item.key} />)}
|
||||||
</Tabs>
|
</Tabs>
|
||||||
) : null
|
) : null
|
||||||
|
@ -169,7 +168,7 @@
|
||||||
const actions = getComponentFromProp(this, 'actions')
|
const actions = getComponentFromProp(this, 'actions')
|
||||||
const actionDom = actions || null
|
const actionDom = actions || null
|
||||||
const divProps = omit(others, [
|
const divProps = omit(others, [
|
||||||
'onTabChange',
|
'tabChange',
|
||||||
])
|
])
|
||||||
return (
|
return (
|
||||||
<div {...divProps} class={classString} ref='cardContainerRef'>
|
<div {...divProps} class={classString} ref='cardContainerRef'>
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
<md>
|
<md>
|
||||||
## 基本
|
## 基本
|
||||||
</md>
|
</md>
|
||||||
<Card title="Card title" >
|
<Card title="Card title">
|
||||||
<a href="#" slot="extra">More</a>
|
<a href="#" slot="extra">More</a>
|
||||||
<p>Card content</p>
|
<p>Card content</p>
|
||||||
<p>Card content</p>
|
<p>Card content</p>
|
||||||
|
|
|
@ -44,7 +44,7 @@ Pagination | done|select完成后补全
|
||||||
Avatar | done
|
Avatar | done
|
||||||
Badge | done
|
Badge | done
|
||||||
Breadcrumb | done
|
Breadcrumb | done
|
||||||
Card
|
Card | done
|
||||||
Collapse
|
Collapse
|
||||||
LocaleProvider
|
LocaleProvider
|
||||||
Progress
|
Progress
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
import Demo from './demo.vue'
|
import Demo from './demo.vue'
|
||||||
const AsyncComp = () => {
|
const AsyncComp = () => {
|
||||||
return {
|
return {
|
||||||
component: import(`../components/card/demo/basic.vue`),
|
component: import(`../components/button/demo/index.vue`),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
export default [
|
export default [
|
||||||
{ path: '/components/:name/:demo?', component: Demo },
|
{ path: '/components/:name/:demo?', component: Demo },
|
||||||
{ path: 'test/:name/:demo', component: AsyncComp },
|
{ path: '/test/:name/:demo?', component: AsyncComp },
|
||||||
{ path: '/*', redirect: '/components/menu' },
|
{ path: '/*', redirect: '/components/menu' },
|
||||||
]
|
]
|
||||||
|
|
Loading…
Reference in New Issue