/**
 * title: "内容区可收展"
 * description: "用于需要进行针对卡片整体进行操作的场景"
 */
import React from 'react';
import { Card } from '@alicloud/console-components';

const cardContent: React.CSSProperties = {
  background: '#f6f6f6',
  width: '100%',
  borderRadius: '4px',
  textAlign: 'center',
  color: '#aaaaaa',
  position: 'relative',
  height: '300px',
  lineHeight: '300px',
};

const contentext: React.CSSProperties = {
  lineHeight: '20px',
  position: 'absolute',
  top: '50%',
  width: '100%',
  marginTop: '-10px',
};

const CardContent = () => (
  <div style={cardContent}>
    <div style={contentext}>Card Content</div>
  </div>
);

export default () => {
  return (
    <Card style={{ width: 500 }} contentHeight={160}>
      <CardContent />
    </Card>
  );
};


