UNPKG

@alicloud/console-components

Version:

Alibaba Cloud React Components

37 lines (36 loc) 1.24 kB
var __assign = (this && this.__assign) || function () { __assign = Object.assign || function(t) { for (var s, i = 1, n = arguments.length; i < n; i++) { s = arguments[i]; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; } return t; }; return __assign.apply(this, arguments); }; /** * title: "卡片内容加载" * description: "通过visible属性控制loading效果显示隐藏。" */ import React from 'react'; import { Loading, Card, Icon } from '@alicloud/console-components'; var commonProps = { extra: React.createElement(Icon, { type: "more", size: "small" }), showHeadDivider: false, title: '卡片', }; var contentStyle = { background: '#f6f6f6', width: '468px', height: '110px', borderRadius: '4px', textAlign: 'center', color: '#aaaaaa', }; var CardContent = function () { return React.createElement("div", { style: contentStyle }); }; export default (function () { return (React.createElement(Card, __assign({ style: { width: 500 } }, commonProps), React.createElement(Loading, { size: "medium", visible: true }, React.createElement(CardContent, null)))); });