forked from ElemeFE/element-react
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCard.tsx
29 lines (27 loc) · 759 Bytes
/
Card.tsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
import * as React from 'react'
import { Card, Button } from 'element-react'
import { Card as CardNext } from 'element-react/next'
class Component extends React.Component<{}, {}> {
render() {
return (
<div>
<Card className="className" style={{ width: 100 }} />
<Card header="header" />
<Card header={
<div>
<Button>按钮</Button>
</div>
} />
<Card bodyStyle={{ padding: '50px' }} />
<CardNext className="className" style={{ width: 100 }} />
<CardNext header="header" />
<CardNext header={
<div>
<Button>按钮</Button>
</div>
} />
<CardNext bodyStyle={{ padding: '50px' }} />
</div>
)
}
}