UNPKG

@flatbiz/antd

Version:
36 lines (32 loc) 1.38 kB
/*! @flatjs/forge MIT @flatbiz/antd */ import { _ as _objectWithoutProperties, b as _objectSpread2 } from './_rollupPluginBabelHelpers-BspM60Sw.js'; import { classNames } from '@dimjs/utils/class-names/class-names'; import { Form } from 'antd'; import { A as AmountFenInput } from './amount-fen-input-DI4mxLeO.js'; import { jsx } from 'react/jsx-runtime'; var _excluded = ["inputNumberProps"]; /** * 分金额输入组件(集成了FormItem),入参为分,返回为分,显示为元 * ``` * 例如: * <AmountFenInputFormItem * inputNumberProps={{ placeholder: '请输入', style: { width: 'auto' } }} * name="amount" * label="金额" * /> * ``` */ var AmountFenInputFormItem = function AmountFenInputFormItem(props) { var inputNumberProps = props.inputNumberProps, otherProps = _objectWithoutProperties(props, _excluded); return /*#__PURE__*/jsx(Form.Item, _objectSpread2(_objectSpread2({}, otherProps), {}, { label: otherProps.label ? /*#__PURE__*/jsx("span", { className: "afifi-color", children: otherProps.label }) : undefined, className: classNames('amount-fen-input-form-item', otherProps.className), children: /*#__PURE__*/jsx(AmountFenInput, _objectSpread2({}, inputNumberProps)) })); }; export { AmountFenInputFormItem as A }; //# sourceMappingURL=amount-fen-input-Vaayc5GF.js.map