/**
 * title: "卡片内容加载"
 * description: "通过visible属性控制loading效果显示隐藏。"
 */
import React from 'react';
import { Loading, Card, Icon } from '@alicloud/console-components';

const commonProps = {
  extra: <Icon type="more" size="small" />,
  showHeadDivider: false,
  title: '卡片',
};

const contentStyle: React.CSSProperties = {
  background: '#f6f6f6',
  width: '468px',
  height: '110px',
  borderRadius: '4px',
  textAlign: 'center',
  color: '#aaaaaa',
};

const CardContent = () => <div style={contentStyle} />;

export default () => {
  return (
    <Card style={{ width: 500 }} {...commonProps}>
      <Loading size="medium" visible>
        <CardContent />
      </Loading>
    </Card>
  );
};


