@alicloud/console-components
Version:
Alibaba Cloud React Components
35 lines (34 loc) • 1.14 kB
JavaScript
;
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
/**
* title: "空白卡片"
* description: "不包含标题,仅内容"
*/
var react_1 = __importDefault(require("react"));
var console_components_1 = require("@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',
};
exports.default = (function () {
var CardContent = function () { return (react_1.default.createElement("div", { style: cardContent },
react_1.default.createElement("div", { style: contentext }, "Card Content"))); };
return (react_1.default.createElement(console_components_1.Card, { style: { width: 500 } },
react_1.default.createElement(CardContent, null)));
});