@arim-aisdc/public-components 2.0.21 → 2.0.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { InputNumber } from 'antd';
|
|
2
2
|
import "./index.less";
|
|
3
3
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
4
|
-
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
5
4
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
6
5
|
var CustomFormItemInputNumber = function CustomFormItemInputNumber(_ref) {
|
|
7
6
|
var item = _ref.item,
|
|
8
7
|
value = _ref.value,
|
|
9
8
|
_onChange = _ref.onChange;
|
|
10
|
-
return /*#__PURE__*/_jsxs(
|
|
9
|
+
return /*#__PURE__*/_jsxs("div", {
|
|
10
|
+
className: "customFormItemInputNumber",
|
|
11
11
|
children: [/*#__PURE__*/_jsx(InputNumber, {
|
|
12
12
|
placeholder: item.inputTips,
|
|
13
13
|
precision: item.precision,
|
|
@@ -1,6 +1,12 @@
|
|
|
1
|
-
.
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
.customFormItemInputNumber {
|
|
2
|
+
display: flex;
|
|
3
|
+
align-items: center;
|
|
4
|
+
|
|
5
|
+
.unit {
|
|
6
|
+
font-weight: 400;
|
|
7
|
+
font-size: 14px;
|
|
8
|
+
margin-left: 6px;
|
|
9
|
+
color: @globalColor1;
|
|
10
|
+
flex-shrink: 0;
|
|
11
|
+
}
|
|
6
12
|
}
|
|
@@ -9,7 +9,7 @@ var Icon = function Icon(_ref) {
|
|
|
9
9
|
name = _ref.name,
|
|
10
10
|
prefix = _ref.prefix,
|
|
11
11
|
style = _ref.style,
|
|
12
|
-
|
|
12
|
+
onClick = _ref.onClick;
|
|
13
13
|
var _useConfig = useConfig(),
|
|
14
14
|
theme = _useConfig.theme;
|
|
15
15
|
var iconPrefix = useMemo(function () {
|
|
@@ -20,9 +20,7 @@ var Icon = function Icon(_ref) {
|
|
|
20
20
|
return /*#__PURE__*/_jsx("i", {
|
|
21
21
|
className: "public-icon ".concat(className, " iconfont-").concat(iconPrefix, " icon-").concat(iconPrefix, "-").concat(name),
|
|
22
22
|
style: style,
|
|
23
|
-
onClick:
|
|
24
|
-
return _onClick(event);
|
|
25
|
-
}
|
|
23
|
+
onClick: onClick
|
|
26
24
|
});
|
|
27
25
|
};
|
|
28
26
|
export default Icon;
|