@alicloud/console-components
Version:
Alibaba Cloud React Components
30 lines (29 loc) • 875 B
JavaScript
/**
* title: "内容区可收展"
* description: "用于需要进行针对卡片整体进行操作的场景"
*/
import React from 'react';
import { Card } from '@alicloud/console-components';
var cardContent = {
background: '#f6f6f6',
width: '100%',
borderRadius: '4px',
textAlign: 'center',
color: '#aaaaaa',
position: 'relative',
height: '300px',
lineHeight: '300px',
};
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 }, contentHeight: 160 },
React.createElement(CardContent, null)));
});