@ecoding/components.antd 0.3.53 → 0.3.55
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.
|
@@ -35,7 +35,7 @@ const SingleFileUpload = (props) => {
|
|
|
35
35
|
response.success ||
|
|
36
36
|
response.successed) {
|
|
37
37
|
setLoading(false);
|
|
38
|
-
const url = data && data.url;
|
|
38
|
+
const url = data && data[props.valueKey || "url"];
|
|
39
39
|
setFileUrl(url);
|
|
40
40
|
props.onChange && props.onChange(url);
|
|
41
41
|
props.onDone && props.onDone(info.file, data);
|
|
@@ -9,7 +9,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
9
9
|
};
|
|
10
10
|
import React, { useRef, useEffect, useState, useMemo } from 'react';
|
|
11
11
|
import { Button, Form, Row, Col, Space } from 'antd';
|
|
12
|
-
const FiltersHorizontal = ({ items, onFinish, onClear, y, setY, overMax, colOpts }) => {
|
|
12
|
+
const FiltersHorizontal = ({ items, onFinish, onClear, y, setY, overMax, colOpts, searchText, resetText }) => {
|
|
13
13
|
const [form] = Form.useForm(); // 该组件内form全局变量
|
|
14
14
|
const ref = useRef(null);
|
|
15
15
|
const refInitY = useRef(undefined);
|
|
@@ -78,11 +78,11 @@ const FiltersHorizontal = ({ items, onFinish, onClear, y, setY, overMax, colOpts
|
|
|
78
78
|
return (React.createElement(Col, Object.assign({}, colProps), item));
|
|
79
79
|
}),
|
|
80
80
|
isOpShowAfter ? (React.createElement(Col, Object.assign({}, colProps, { style: { paddingTop: 4 } }),
|
|
81
|
-
React.createElement(Button, { type: "primary", className: 'mr10', size: 'small', htmlType: "submit" },
|
|
82
|
-
React.createElement(Button, { size: 'small', onClick: clear },
|
|
81
|
+
React.createElement(Button, { type: "primary", className: 'mr10', size: 'small', htmlType: "submit" }, searchText || '搜索'),
|
|
82
|
+
React.createElement(Button, { size: 'small', onClick: clear }, resetText || '重置'))) : null),
|
|
83
83
|
!isOpShowAfter ? (React.createElement(Space, { size: "small", direction: isLineAfter ? undefined : "vertical", style: Object.assign({ width: 90, textAlign: "right" }, isLineAfter ? { width: 130, margin: "4px 0 0 12px" } : {}) },
|
|
84
|
-
React.createElement(Button, { type: "primary", size: 'small', htmlType: "submit" },
|
|
85
|
-
React.createElement(Button, { size: 'small', onClick: clear },
|
|
84
|
+
React.createElement(Button, { type: "primary", size: 'small', htmlType: "submit" }, searchText || '搜索'),
|
|
85
|
+
React.createElement(Button, { size: 'small', onClick: clear }, resetText || '重置'))) : null),
|
|
86
86
|
showMore ? (React.createElement(Button, { type: 'link', onClick: switchShow, style: { fontSize: 12, position: "absolute", bottom: -10, left: '50%', transform: "translateX(-50%)" }, size: 'small' }, moreFlag ? "收起" : "展开更多")) : null));
|
|
87
87
|
};
|
|
88
88
|
FiltersHorizontal.defaultProps = {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ecoding/components.antd",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.55",
|
|
4
4
|
"author": "cxc",
|
|
5
5
|
"homepage": "",
|
|
6
6
|
"license": "MIT",
|
|
@@ -43,5 +43,5 @@
|
|
|
43
43
|
"antd": "^5.8.4",
|
|
44
44
|
"axios": "^1.1.2"
|
|
45
45
|
},
|
|
46
|
-
"gitHead": "
|
|
46
|
+
"gitHead": "00f234b8a20e23166525ceee2ea60e67eb23cdae"
|
|
47
47
|
}
|