UNPKG

linkmore-design

Version:

🌈 πŸš€lmη»„δ»ΆεΊ“γ€‚πŸš€

22 lines β€’ 1.15 kB
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2"; import React from 'react'; import { Button, IconFont } from "../../index"; var BottomOpetateComponent = function BottomOpetateComponent(props) { var isShowAddAction = props.isShowAddAction, recordCreatorProps = props.recordCreatorProps, handleAdd = props.handleAdd, _props$disabled = props.disabled, disabled = _props$disabled === void 0 ? false : _props$disabled; return isShowAddAction ? /*#__PURE__*/React.createElement(Button, { className: "lm_editTable_add_bar", type: "dashed", disabled: disabled, onClick: (recordCreatorProps === null || recordCreatorProps === void 0 ? void 0 : recordCreatorProps.customAddClick) || handleAdd, style: _objectSpread({ marginTop: 8 }, (recordCreatorProps === null || recordCreatorProps === void 0 ? void 0 : recordCreatorProps.style) || {}) }, /*#__PURE__*/React.createElement(IconFont, { type: "lmweb-plus" }), (recordCreatorProps === null || recordCreatorProps === void 0 ? void 0 : recordCreatorProps.creatorButtonText) || 'ζ–°ε’ž') : null; }; export default BottomOpetateComponent;