linkmore-design
Version:
π πlmη»δ»ΆεΊγπ
22 lines β’ 1.15 kB
JavaScript
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;