@para-ui/core 3.0.74 → 3.0.75
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/Form/index.js +1 -1
- package/FormItem/index.js +1 -1
- package/MultiBox/index.d.ts +5 -0
- package/MultiBox/index.js +5 -3
- package/README.md +7 -0
- package/SingleBox/index.d.ts +3 -0
- package/SingleBox/index.js +3 -2
- package/Table/index.js +1 -1
- package/index.js +1 -1
- package/package.json +1 -1
- package/umd/ComboSelect.js +1 -1
- package/umd/DynamicMultiBox.js +1 -1
- package/umd/Form.js +1 -1
- package/umd/FormItem.js +1 -1
- package/umd/InputLang.js +1 -1
- package/umd/MultiBox.js +1 -1
- package/umd/SingleBox.js +1 -1
- package/umd/Table.js +1 -1
- /package/_verture/{index-e5af68b5.js → index-e7fd3a50.js} +0 -0
package/Form/index.js
CHANGED
|
@@ -3,7 +3,7 @@ import { _ as _slicedToArray } from '../_verture/slicedToArray-76060636.js';
|
|
|
3
3
|
import { jsx } from 'react/jsx-runtime';
|
|
4
4
|
import { DeepClone } from '@paraview/lib';
|
|
5
5
|
import React__default from 'react';
|
|
6
|
-
import { F as FormItem, v as validate } from '../_verture/index-
|
|
6
|
+
import { F as FormItem, v as validate } from '../_verture/index-e7fd3a50.js';
|
|
7
7
|
import { $ as $prefixCls } from '../_verture/constant-66aa48a1.js';
|
|
8
8
|
import '../_verture/unsupportedIterableToArray-cb478f24.js';
|
|
9
9
|
import '../TextField/index.js';
|
package/FormItem/index.js
CHANGED
package/MultiBox/index.d.ts
CHANGED
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
* @description 多值框
|
|
5
5
|
*/
|
|
6
6
|
import React, { FunctionComponent, ReactNode } from 'react';
|
|
7
|
+
import { TextFieldProps } from '../TextField';
|
|
7
8
|
import { LabelTooltipProps } from "../Label";
|
|
8
9
|
import { HelperTextDetailProps } from "../HelperText";
|
|
9
10
|
import './index.scss';
|
|
@@ -54,6 +55,10 @@ export interface MultiBoxProps extends HelperTextDetailProps {
|
|
|
54
55
|
fetchSuggestionsKey?: (val: string, cb: (data: any[]) => void) => void;
|
|
55
56
|
/** 值索引匹配 */
|
|
56
57
|
fetchSuggestionsValue?: (val: string, cb: (data: any[]) => void) => void;
|
|
58
|
+
/** 自定义键值Props */
|
|
59
|
+
keyOtherProps?: (index: number, val: string) => TextFieldProps;
|
|
60
|
+
/** 自定义值Props */
|
|
61
|
+
valueOtherProps?: (index: number, val: string) => TextFieldProps;
|
|
57
62
|
[name: string]: any;
|
|
58
63
|
}
|
|
59
64
|
export declare const MultiBox: FunctionComponent<MultiBoxProps>;
|
package/MultiBox/index.js
CHANGED
|
@@ -77,7 +77,9 @@ var MultiBox = function MultiBox(props) {
|
|
|
77
77
|
replaceFields = props.replaceFields,
|
|
78
78
|
onChange = props.onChange,
|
|
79
79
|
fetchSuggestionsKey = props.fetchSuggestionsKey,
|
|
80
|
-
fetchSuggestionsValue = props.fetchSuggestionsValue
|
|
80
|
+
fetchSuggestionsValue = props.fetchSuggestionsValue,
|
|
81
|
+
keyOtherProps = props.keyOtherProps,
|
|
82
|
+
valueOtherProps = props.valueOtherProps;
|
|
81
83
|
var isError = helperText && typeof helperText === 'string' ? true : false;
|
|
82
84
|
var isErrorArr = helperText instanceof Array;
|
|
83
85
|
var intl = useFormatMessage('MultiBox', localeJson);
|
|
@@ -185,7 +187,7 @@ var MultiBox = function MultiBox(props) {
|
|
|
185
187
|
onChange: changeValue(replaceFieldsCom.key || '', index),
|
|
186
188
|
fetchSuggestions: fetchSuggestionsKey ? fetchSuggestions('key') : undefined,
|
|
187
189
|
onSelect: selectValue(replaceFieldsCom.key || '', index)
|
|
188
|
-
})), separator && jsx("span", Object.assign({
|
|
190
|
+
}, keyOtherProps && keyOtherProps(index, keyValue))), separator && jsx("span", Object.assign({
|
|
189
191
|
className: 'multi-box-separator'
|
|
190
192
|
}, {
|
|
191
193
|
children: separator
|
|
@@ -199,7 +201,7 @@ var MultiBox = function MultiBox(props) {
|
|
|
199
201
|
onChange: changeValue(replaceFieldsCom.value || '', index),
|
|
200
202
|
fetchSuggestions: fetchSuggestionsValue ? fetchSuggestions('value') : undefined,
|
|
201
203
|
onSelect: selectValue(replaceFieldsCom.value || '', index)
|
|
202
|
-
}))]
|
|
204
|
+
}, valueOtherProps && valueOtherProps(index, valValue)))]
|
|
203
205
|
}));
|
|
204
206
|
};
|
|
205
207
|
/** 处理内容 */
|
package/README.md
CHANGED
package/SingleBox/index.d.ts
CHANGED
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
* @description 单值框
|
|
5
5
|
*/
|
|
6
6
|
import React, { FunctionComponent, ReactNode } from 'react';
|
|
7
|
+
import { TextFieldProps } from '../TextField';
|
|
7
8
|
import { LabelTooltipProps } from "../Label";
|
|
8
9
|
import { HelperTextDetailProps } from "../HelperText";
|
|
9
10
|
import './index.scss';
|
|
@@ -38,6 +39,8 @@ export interface SingleBoxProps extends HelperTextDetailProps {
|
|
|
38
39
|
onChange?: (val: string[]) => void;
|
|
39
40
|
/** 匹配 */
|
|
40
41
|
fetchSuggestions?: (val: string, cb: (data: any[]) => void) => void;
|
|
42
|
+
/** 输入框其他参数 */
|
|
43
|
+
otherProps?: (index: number, val: string) => TextFieldProps;
|
|
41
44
|
[name: string]: any;
|
|
42
45
|
}
|
|
43
46
|
export declare const SingleBox: FunctionComponent<SingleBoxProps>;
|
package/SingleBox/index.js
CHANGED
|
@@ -69,7 +69,8 @@ var SingleBox = function SingleBox(props) {
|
|
|
69
69
|
helperText = _props$helperText === void 0 ? '' : _props$helperText,
|
|
70
70
|
value = props.value,
|
|
71
71
|
onChange = props.onChange,
|
|
72
|
-
fetchSuggestions = props.fetchSuggestions
|
|
72
|
+
fetchSuggestions = props.fetchSuggestions,
|
|
73
|
+
otherProps = props.otherProps;
|
|
73
74
|
var isError = helperText && typeof helperText === 'string' ? true : false;
|
|
74
75
|
var isErrorArr = helperText instanceof Array;
|
|
75
76
|
var intl = useFormatMessage('SingleBox', localeJson);
|
|
@@ -190,7 +191,7 @@ var SingleBox = function SingleBox(props) {
|
|
|
190
191
|
onChange: changeInput(index),
|
|
191
192
|
fetchSuggestions: fetchSuggestions,
|
|
192
193
|
onSelect: selectValue(index)
|
|
193
|
-
}))
|
|
194
|
+
}, otherProps && otherProps(index, item)))
|
|
194
195
|
})), !disabled && jsx("div", Object.assign({
|
|
195
196
|
className: "opera-box"
|
|
196
197
|
}, {
|
package/Table/index.js
CHANGED
|
@@ -3034,7 +3034,7 @@ var Table = function Table(propsInit) {
|
|
|
3034
3034
|
selectAll: setAllCheck,
|
|
3035
3035
|
checkNumber: Object.keys(checkJson).length
|
|
3036
3036
|
});
|
|
3037
|
-
}, [total, pageCom, sizeCom, sizeArrCom, pagination, loadMore, autoPagination, paginationType, flippingArrow, refreshInside, checkCount, headSelectStatus, rowData, checkJson, disabledJson]);
|
|
3037
|
+
}, [total, pageCom, sizeCom, sizeArrCom, pagination, loadMore, autoPagination, paginationType, flippingArrow, refreshInside, checkCount, headSelectStatus, rowData, checkJson, disabledJson, totalDataJson]);
|
|
3038
3038
|
// 表格内容滚动
|
|
3039
3039
|
var tableBoxScroll = function tableBoxScroll(e) {
|
|
3040
3040
|
var dom = tableRef.current;
|
package/index.js
CHANGED
|
@@ -22,7 +22,7 @@ export { D as Dropdown } from './_verture/index-77f9e0fb.js';
|
|
|
22
22
|
export { default as DynamicMultiBox } from './DynamicMultiBox/index.js';
|
|
23
23
|
export { default as Empty } from './Empty/index.js';
|
|
24
24
|
export { default as Form } from './Form/index.js';
|
|
25
|
-
export { F as FormItem } from './_verture/index-
|
|
25
|
+
export { F as FormItem } from './_verture/index-e7fd3a50.js';
|
|
26
26
|
export { u as FunctionModal, F as FunctionModalProvider, a as useClose } from './_verture/modalContext-20780c9a.js';
|
|
27
27
|
export { default as GlobalContext, changeConfirmLocale, getConfirmLocale } from './GlobalContext/index.js';
|
|
28
28
|
export { default as Help } from './Help/index.js';
|