@alicloud/console-components
Version:
Alibaba Cloud React Components
30 lines (29 loc) • 825 B
JavaScript
/**
* title: "空白卡片"
* description: "不包含标题,仅内容"
*/
import React from 'react';
import { Card } 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',
};
export default (function () {
var CardContent = function () { return (React.createElement("div", { style: cardContent },
React.createElement("div", { style: contentext }, "Card Content"))); };
return (React.createElement(Card, { style: { width: 500 } },
React.createElement(CardContent, null)));
});