UNPKG

oadp-material

Version:
36 lines 1.28 kB
import _Button from "@alifd/next/es/button"; import _extends from "@babel/runtime/helpers/extends"; import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose"; var _excluded = ["name", "id", "page", "entity", "tableComponentRefId", "label", "type", "size", "text", "disabled", "style", "onClick", "__designMode"]; import * as React from 'react'; import "./index.scss"; var OadpEntityButtonUpdate = function OadpEntityButtonUpdate(_ref) { var name = _ref.name, id = _ref.id, page = _ref.page, entity = _ref.entity, tableComponentRefId = _ref.tableComponentRefId, label = _ref.label, type = _ref.type, size = _ref.size, text = _ref.text, disabled = _ref.disabled, style = _ref.style, onClick = _ref.onClick, __designMode = _ref.__designMode, otherProps = _objectWithoutPropertiesLoose(_ref, _excluded); if (__designMode === 'design') { onClick = function onClick(e) { console.log('design mode OadpEntityButtonUpdate click'); }; } return /*#__PURE__*/React.createElement(_Button, _extends({ type: type, size: size, disabled: disabled, text: text, style: style, onClick: onClick }, otherProps), label); }; export default OadpEntityButtonUpdate;