@alicloud/console-components
Version:
Alibaba Cloud React Components
29 lines (28 loc) • 1.01 kB
JavaScript
import React from 'react';
import { Card, Button } from '@alicloud/console-components';
var cardContent = {
background: '#f6f6f6',
width: '100%',
height: '100%',
borderRadius: '4px',
textAlign: 'center',
lineHeight: '100%',
color: '#aaaaaa',
position: 'relative',
};
var contentext = {
lineHeight: '20px',
position: 'absolute',
top: '50%',
width: '100%',
marginTop: '-10px',
};
var CardContent = function () { return (React.createElement("div", { style: cardContent },
React.createElement("div", { style: contentext }, "Card Content"))); };
export default (function () {
return (React.createElement(Card, { style: { width: 500, padding: '16px' }, free: true },
React.createElement("div", { style: { height: '100px' } },
React.createElement(CardContent, null)),
React.createElement("div", { style: { marginTop: '16px' } },
React.createElement(Button, { size: "medium" }, "\u57FA\u7840\u6309\u94AE"))));
});