UNPKG

owl-rich-table

Version:

富文本编辑表格,react组件

41 lines (40 loc) 1.27 kB
import "./style.css"; /** * @description * @author Huang Wenjie * @createDate 2023-10-08 */ import { jsx as _jsx } from "react/jsx-runtime"; import { jsxs as _jsxs } from "react/jsx-runtime"; export default function AddButton(props) { var children = props.children, handleClick = props.handleClick, width = props.width, childrenIsMoverBar = props.childrenIsMoverBar, height = props.height, bindId = props.bindId, _props$type = props.type, type = _props$type === void 0 ? 'row' : _props$type; return /*#__PURE__*/_jsxs("div", { id: bindId, style: { position: 'relative', width: width, height: height }, children: [/*#__PURE__*/_jsxs("div", { className: "bar-action-add-button bar-action-add-button-".concat(type), onClick: handleClick, children: [/*#__PURE__*/_jsx("div", { className: "bar-action-add-button-icon" }), /*#__PURE__*/_jsx("div", { className: "bar-action-add-button-h" }), /*#__PURE__*/_jsx("div", { className: "bar-action-add-button-s" })] }), /*#__PURE__*/_jsx("div", { className: "bar-action-add-button-bar ".concat(childrenIsMoverBar ? 'bar-action-add-button-move-bar' : ''), children: children })] }); }