UNPKG

@alicloud/console-components

Version:

Alibaba Cloud React Components

35 lines (34 loc) 1.19 kB
"use strict"; 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%', 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_1.default.createElement("div", { style: cardContent }, react_1.default.createElement("div", { style: contentext }, "Card Content"))); }; exports.default = (function () { return (react_1.default.createElement(console_components_1.Card, { style: { width: 500 }, contentHeight: 160 }, react_1.default.createElement(CardContent, null))); });