UNPKG

@cuvp1225/tango-mail

Version:
21 lines (20 loc) 1.02 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Card = void 0; const tslib_1 = require("tslib"); const tango_boot_1 = require("@music163/tango-boot"); const react_1 = tslib_1.__importDefault(require("react")); const classnames_1 = tslib_1.__importDefault(require("classnames")); const placeholder_1 = require("../placeholder"); function CardView(_a) { var { className, style, children } = _a, props = tslib_1.__rest(_a, ["className", "style", "children"]); return (react_1.default.createElement("div", Object.assign({}, props, { style: style, className: (0, classnames_1.default)('min-w-0 m-1 rounded-md border-solid border border-slate-300 overflow-hidden bg-white', className) }), children)); } exports.Card = (0, tango_boot_1.defineComponent)(CardView, { name: 'Card', designerConfig: { defaultProps: { children: react_1.default.createElement(placeholder_1.Placeholder, { text: "\u62D6\u62FD\u5185\u5BB9\u5230\u6B64\u5904" }), }, }, });