@hw-component/form 1.10.68 → 1.10.69
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,7 +1,7 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import type { HItemProps } from "
|
|
2
|
+
import type { HItemProps } from "../Form/modal";
|
|
3
3
|
declare const _default: {
|
|
4
|
-
Component: React.ForwardRefExoticComponent<import("
|
|
4
|
+
Component: React.ForwardRefExoticComponent<import("../Form/modal").HFormItemProps & React.RefAttributes<any>>;
|
|
5
5
|
placeholder: ({ label }: HItemProps) => string[];
|
|
6
6
|
};
|
|
7
7
|
export default _default;
|
package/es/Input/hooks.js
CHANGED
|
@@ -26,7 +26,7 @@ var useNumberGroupRestriction = function useNumberGroupRestriction(_ref) {
|
|
|
26
26
|
};
|
|
27
27
|
var minValControl = function minValControl() {
|
|
28
28
|
if (minValMk) {
|
|
29
|
-
return minValMk(
|
|
29
|
+
return minValMk(minVal);
|
|
30
30
|
}
|
|
31
31
|
if (!(minVal !== null && minVal !== void 0 && minVal.toString())) {
|
|
32
32
|
return min;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import type { HItemProps } from "
|
|
2
|
+
import type { HItemProps } from "../Form/modal";
|
|
3
3
|
declare const _default: {
|
|
4
|
-
Component: React.ForwardRefExoticComponent<import("
|
|
4
|
+
Component: React.ForwardRefExoticComponent<import("../Form/modal").HFormItemProps & React.RefAttributes<any>>;
|
|
5
5
|
placeholder: ({ label }: HItemProps) => string[];
|
|
6
6
|
};
|
|
7
7
|
export default _default;
|
package/lib/Input/hooks.js
CHANGED
|
@@ -27,7 +27,7 @@ var useNumberGroupRestriction = function useNumberGroupRestriction(_ref) {
|
|
|
27
27
|
};
|
|
28
28
|
var minValControl = function minValControl() {
|
|
29
29
|
if (minValMk) {
|
|
30
|
-
return minValMk(
|
|
30
|
+
return minValMk(minVal);
|
|
31
31
|
}
|
|
32
32
|
if (!(minVal !== null && minVal !== void 0 && minVal.toString())) {
|
|
33
33
|
return min;
|
package/package.json
CHANGED
|
@@ -3,10 +3,10 @@ import { SwapRightOutlined } from "@ant-design/icons";
|
|
|
3
3
|
import React, { useMemo, useState } from "react";
|
|
4
4
|
import type { InputNumberProps } from "antd/lib/input-number";
|
|
5
5
|
import { useClassName } from "../hooks";
|
|
6
|
-
import type { addFormatItemModal, HItemProps } from "
|
|
6
|
+
import type { addFormatItemModal, HItemProps } from "../Form/modal";
|
|
7
7
|
import HFormConnect from "../Form/HFormConnect";
|
|
8
8
|
import InputGroup from "../InputGroup";
|
|
9
|
-
import { useNumberGroupRestriction } from "
|
|
9
|
+
import { useNumberGroupRestriction } from "./hooks";
|
|
10
10
|
|
|
11
11
|
interface IProps<T = any> {
|
|
12
12
|
placeholder?: [string, string] | string;
|