UNPKG

sunmao-sdk

Version:

榫卯-开箱即用赋能-sdk

45 lines (40 loc) 1.8 kB
import "antd/es/input/style"; import _Input from "antd/es/input"; var _excluded = ["value", "onChange", "name"]; function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; } function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; } import React from "react"; export default function range(_ref) { var value = _ref.value, onChange = _ref.onChange, name = _ref.name, rest = _objectWithoutProperties(_ref, _excluded); return /*#__PURE__*/React.createElement(_Input.Group, { compact: true, style: { width: "100%", display: "flex" } }, /*#__PURE__*/React.createElement(_Input, { style: {// width: 100, // textAlign: 'center', } }), /*#__PURE__*/React.createElement(_Input, { className: "site-input-split", style: { backgroundColor: "#fff", width: 30, borderLeft: 0, borderRight: 0, pointerEvents: "none", flexShrink: 0 }, placeholder: "~", disabled: true }), /*#__PURE__*/React.createElement(_Input, { style: { borderLeftWidth: 0 // width: 100, // textAlign: 'center', } })); }