UNPKG

@magicbe/design

Version:

React + Antd Drag Drop Visual design

29 lines (28 loc) 1 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); }; import { jsx as _jsx } from "react/jsx-runtime"; import { AutoComplete, Form } from "antd"; var Display = function (_a) { var hidden = _a.hidden; var options = [ { value: "block" }, { value: "inline" }, { value: "inline-block" }, { value: "flex" }, { value: "inline-flex" }, { value: "grid" }, { value: "inline-grid" }, { value: "flow-root" }, ]; return (_jsx(Form.Item, __assign({ name: ["style", "display"], label: "布局、显示", hidden: hidden }, { children: _jsx(AutoComplete, { options: options }) }))); }; export default Display;