assui 2.0.108 → 2.0.111
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.
- package/es/label-auto-complete/index.d.ts +2 -2
- package/es/label-date-picker/index.d.ts +1 -1
- package/es/label-select/index.d.ts +1 -1
- package/es/label-tree-select/index.d.ts +1 -1
- package/es/step-number-input/index.js +2 -2
- package/lib/label-auto-complete/index.d.ts +2 -2
- package/lib/label-date-picker/index.d.ts +1 -1
- package/lib/label-select/index.d.ts +1 -1
- package/lib/label-tree-select/index.d.ts +1 -1
- package/lib/step-number-input/index.js +2 -2
- package/package.json +2 -2
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { AutoCompleteProps } from 'antd/es/auto-complete';
|
|
3
3
|
export interface LabelAutoCompleteProps extends AutoCompleteProps {
|
|
4
|
-
label
|
|
5
|
-
className
|
|
4
|
+
label?: React.ReactNode;
|
|
5
|
+
className?: string;
|
|
6
6
|
}
|
|
7
7
|
declare const LabelAutoComplete: (props: LabelAutoCompleteProps) => JSX.Element;
|
|
8
8
|
export default LabelAutoComplete;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { DatePickerProps } from 'antd/es/date-picker';
|
|
3
3
|
export interface LabelDatePickerProps extends Omit<DatePickerProps, 'label'> {
|
|
4
|
-
label
|
|
4
|
+
label?: React.ReactNode;
|
|
5
5
|
}
|
|
6
6
|
declare const LabelDatePicker: React.FC<LabelDatePickerProps>;
|
|
7
7
|
export default LabelDatePicker;
|
|
@@ -3,7 +3,7 @@ import type { SelectProps } from 'antd/es/select';
|
|
|
3
3
|
declare const Option: import("rc-select/lib/Option").OptionFC;
|
|
4
4
|
export { Option };
|
|
5
5
|
export interface LabelSelectProps extends SelectProps<string> {
|
|
6
|
-
label
|
|
6
|
+
label?: React.ReactNode;
|
|
7
7
|
}
|
|
8
8
|
declare const LabelSelect: {
|
|
9
9
|
(props: LabelSelectProps): JSX.Element;
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import type { TreeSelectProps } from 'antd/es/tree-select';
|
|
3
3
|
export interface LabelTreeSelectProps extends Omit<TreeSelectProps<string[]>, 'onDropdownVisibleChange'> {
|
|
4
4
|
/** 输入框的label */
|
|
5
|
-
label
|
|
5
|
+
label?: React.ReactNode;
|
|
6
6
|
/** 输入框value的单位 */
|
|
7
7
|
unit?: React.ReactNode;
|
|
8
8
|
onDropdownVisibleChange?: (value: boolean) => void;
|
|
@@ -81,8 +81,8 @@ var StepNumberInput = function StepNumberInput(props) {
|
|
|
81
81
|
var isEmpty = isUndefined(resultValue) || resultValue === '';
|
|
82
82
|
var plusNumber = new BigNumber(resultValue).plus(step).toString();
|
|
83
83
|
var minusNumber = new BigNumber(resultValue).minus(step).toString();
|
|
84
|
-
var maxCondition = isUndefined(max) ? false : max === Number(resultValue) || Number(max)
|
|
85
|
-
var minCondition = isUndefined(min) ? false : min === Number(resultValue) || Number(min)
|
|
84
|
+
var maxCondition = isUndefined(max) ? false : max === Number(resultValue) || Number(max) < Number(plusNumber);
|
|
85
|
+
var minCondition = isUndefined(min) ? false : min === Number(resultValue) || Number(min) > Number(minusNumber);
|
|
86
86
|
|
|
87
87
|
var onNumberChange = function onNumberChange(lastValue) {
|
|
88
88
|
if (resultValue !== lastValue) {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { AutoCompleteProps } from 'antd/es/auto-complete';
|
|
3
3
|
export interface LabelAutoCompleteProps extends AutoCompleteProps {
|
|
4
|
-
label
|
|
5
|
-
className
|
|
4
|
+
label?: React.ReactNode;
|
|
5
|
+
className?: string;
|
|
6
6
|
}
|
|
7
7
|
declare const LabelAutoComplete: (props: LabelAutoCompleteProps) => JSX.Element;
|
|
8
8
|
export default LabelAutoComplete;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { DatePickerProps } from 'antd/es/date-picker';
|
|
3
3
|
export interface LabelDatePickerProps extends Omit<DatePickerProps, 'label'> {
|
|
4
|
-
label
|
|
4
|
+
label?: React.ReactNode;
|
|
5
5
|
}
|
|
6
6
|
declare const LabelDatePicker: React.FC<LabelDatePickerProps>;
|
|
7
7
|
export default LabelDatePicker;
|
|
@@ -3,7 +3,7 @@ import type { SelectProps } from 'antd/es/select';
|
|
|
3
3
|
declare const Option: import("rc-select/lib/Option").OptionFC;
|
|
4
4
|
export { Option };
|
|
5
5
|
export interface LabelSelectProps extends SelectProps<string> {
|
|
6
|
-
label
|
|
6
|
+
label?: React.ReactNode;
|
|
7
7
|
}
|
|
8
8
|
declare const LabelSelect: {
|
|
9
9
|
(props: LabelSelectProps): JSX.Element;
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import type { TreeSelectProps } from 'antd/es/tree-select';
|
|
3
3
|
export interface LabelTreeSelectProps extends Omit<TreeSelectProps<string[]>, 'onDropdownVisibleChange'> {
|
|
4
4
|
/** 输入框的label */
|
|
5
|
-
label
|
|
5
|
+
label?: React.ReactNode;
|
|
6
6
|
/** 输入框value的单位 */
|
|
7
7
|
unit?: React.ReactNode;
|
|
8
8
|
onDropdownVisibleChange?: (value: boolean) => void;
|
|
@@ -133,8 +133,8 @@ var StepNumberInput = function StepNumberInput(props) {
|
|
|
133
133
|
var isEmpty = isUndefined_1["default"](resultValue) || resultValue === '';
|
|
134
134
|
var plusNumber = new bignumber_js_1["default"](resultValue).plus(step).toString();
|
|
135
135
|
var minusNumber = new bignumber_js_1["default"](resultValue).minus(step).toString();
|
|
136
|
-
var maxCondition = isUndefined_1["default"](max) ? false : max === Number(resultValue) || Number(max)
|
|
137
|
-
var minCondition = isUndefined_1["default"](min) ? false : min === Number(resultValue) || Number(min)
|
|
136
|
+
var maxCondition = isUndefined_1["default"](max) ? false : max === Number(resultValue) || Number(max) < Number(plusNumber);
|
|
137
|
+
var minCondition = isUndefined_1["default"](min) ? false : min === Number(resultValue) || Number(min) > Number(minusNumber);
|
|
138
138
|
|
|
139
139
|
var onNumberChange = function onNumberChange(lastValue) {
|
|
140
140
|
if (resultValue !== lastValue) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "assui",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.111",
|
|
4
4
|
"description": "react ui library",
|
|
5
5
|
"author": "jason <usochen@gmail.com>",
|
|
6
6
|
"main": "./lib/index.js",
|
|
@@ -69,5 +69,5 @@
|
|
|
69
69
|
"node": ">=10.0.0"
|
|
70
70
|
},
|
|
71
71
|
"license": "MIT",
|
|
72
|
-
"gitHead": "
|
|
72
|
+
"gitHead": "7fc8653b5d4d49ebc0bf44e82930b0e1b984b2cc"
|
|
73
73
|
}
|