@innoways/drip-form-theme-antd 6.3.3 → 7.0.0
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/CHANGELOG.md +30 -0
- package/dist/index.js +16 -16
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,35 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
+
## 7.0.0
|
|
4
|
+
|
|
5
|
+
### Major Changes
|
|
6
|
+
|
|
7
|
+
- feature: nested api key support and data fetch and post changes 6.3.4
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- Updated dependencies
|
|
12
|
+
- @innoways/hooks@7.0.0
|
|
13
|
+
- @innoways/utils@7.0.0
|
|
14
|
+
|
|
15
|
+
## 6.3.5
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- feature: nested api key support and data fetch and post changes 6.3.4
|
|
20
|
+
- Updated dependencies
|
|
21
|
+
- @innoways/hooks@6.3.5
|
|
22
|
+
- @innoways/utils@6.3.5
|
|
23
|
+
|
|
24
|
+
## 6.3.4
|
|
25
|
+
|
|
26
|
+
### Patch Changes
|
|
27
|
+
|
|
28
|
+
- feature: place auto complete search feature added, version 6.3.3
|
|
29
|
+
- Updated dependencies
|
|
30
|
+
- @innoways/hooks@6.3.4
|
|
31
|
+
- @innoways/utils@6.3.4
|
|
32
|
+
|
|
3
33
|
## 6.3.3
|
|
4
34
|
|
|
5
35
|
### Patch Changes
|
package/dist/index.js
CHANGED
|
@@ -77,7 +77,9 @@ var searchTypes = [{
|
|
|
77
77
|
function GpsModal(_ref) {
|
|
78
78
|
var isOpen = _ref.isOpen,
|
|
79
79
|
setIsOpen = _ref.setIsOpen,
|
|
80
|
-
onChange = _ref.onChange
|
|
80
|
+
onChange = _ref.onChange,
|
|
81
|
+
_ref$searchUrl = _ref.searchUrl,
|
|
82
|
+
searchUrl = _ref$searchUrl === void 0 ? 'https://dform-api-dev.a4apple.cn:51127/api/v1/gps/searchGps' : _ref$searchUrl;
|
|
81
83
|
var columns = [{
|
|
82
84
|
title: 'Address',
|
|
83
85
|
dataIndex: 'address',
|
|
@@ -127,8 +129,6 @@ function GpsModal(_ref) {
|
|
|
127
129
|
_Form$useForm2 = _slicedToArray(_Form$useForm, 1),
|
|
128
130
|
form = _Form$useForm2[0];
|
|
129
131
|
|
|
130
|
-
var baseSearchUrl = 'http://localhost:8000/api/v1/gps/searchGps';
|
|
131
|
-
|
|
132
132
|
var handleGpsDataChange = function handleGpsDataChange(value, name) {
|
|
133
133
|
setGpsData(_objectSpread$f(_objectSpread$f({}, gpsData), {}, _defineProperty({}, name, value)));
|
|
134
134
|
};
|
|
@@ -242,7 +242,7 @@ function GpsModal(_ref) {
|
|
|
242
242
|
|
|
243
243
|
_context.next = 4;
|
|
244
244
|
return fetchFn({
|
|
245
|
-
url:
|
|
245
|
+
url: searchUrl,
|
|
246
246
|
params: [{
|
|
247
247
|
key: 'type',
|
|
248
248
|
value: gpsData.type
|
|
@@ -293,7 +293,7 @@ function GpsModal(_ref) {
|
|
|
293
293
|
|
|
294
294
|
_context2.next = 3;
|
|
295
295
|
return fetchFn({
|
|
296
|
-
url:
|
|
296
|
+
url: searchUrl,
|
|
297
297
|
params: [{
|
|
298
298
|
key: 'type',
|
|
299
299
|
value: gpsData.type
|
|
@@ -547,16 +547,14 @@ var config$l = {
|
|
|
547
547
|
allowClear: true
|
|
548
548
|
}
|
|
549
549
|
}, {
|
|
550
|
-
fieldKey: '
|
|
551
|
-
type: '
|
|
552
|
-
title: '
|
|
553
|
-
"default":
|
|
554
|
-
// formatter: 'value => `${value}%`',
|
|
550
|
+
fieldKey: 'searchUrl',
|
|
551
|
+
type: 'string',
|
|
552
|
+
title: 'Search URL',
|
|
553
|
+
"default": '',
|
|
555
554
|
ui: {
|
|
556
|
-
type: '
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
step: 1
|
|
555
|
+
type: 'text',
|
|
556
|
+
placeholder: 'Please enter text',
|
|
557
|
+
allowClear: true
|
|
560
558
|
}
|
|
561
559
|
}, {
|
|
562
560
|
fieldKey: 'disabled',
|
|
@@ -596,7 +594,7 @@ var config$l = {
|
|
|
596
594
|
}
|
|
597
595
|
};
|
|
598
596
|
|
|
599
|
-
var _excluded$m = ["multiline", "disabled", "onChange", "fieldData", "fieldKey", "dispatch", "disabled_input", "style", "asyncValidate", "getKey", "formMode", "autoSize", "type", "globalState"];
|
|
597
|
+
var _excluded$m = ["multiline", "disabled", "onChange", "fieldData", "fieldKey", "dispatch", "disabled_input", "style", "asyncValidate", "getKey", "formMode", "autoSize", "type", "globalState", "searchUrl"];
|
|
600
598
|
|
|
601
599
|
function ownKeys$e(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
602
600
|
|
|
@@ -618,6 +616,7 @@ var PlaceAutoCompleteField = function PlaceAutoCompleteField(_ref) {
|
|
|
618
616
|
_ref.autoSize;
|
|
619
617
|
_ref.type;
|
|
620
618
|
var globalState = _ref.globalState,
|
|
619
|
+
searchUrl = _ref.searchUrl,
|
|
621
620
|
restProps = _objectWithoutProperties(_ref, _excluded$m);
|
|
622
621
|
|
|
623
622
|
var _onChange = useField(_objectSpread$e({
|
|
@@ -646,7 +645,8 @@ var PlaceAutoCompleteField = function PlaceAutoCompleteField(_ref) {
|
|
|
646
645
|
}, restProps)), /*#__PURE__*/React.createElement(GpsModal, {
|
|
647
646
|
isOpen: globalState.webModalForPlaceAutoCompleteField === fieldKey,
|
|
648
647
|
setIsOpen: handleIsGPSModalOpen,
|
|
649
|
-
onChange: _onChange
|
|
648
|
+
onChange: _onChange,
|
|
649
|
+
searchUrl: searchUrl
|
|
650
650
|
}));
|
|
651
651
|
};
|
|
652
652
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@innoways/drip-form-theme-antd",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "7.0.0",
|
|
4
4
|
"author": "JDFED",
|
|
5
5
|
"description": "drip-form antd主题包",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -31,8 +31,8 @@
|
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"@ant-design/icons": "^4.7.0",
|
|
33
33
|
"@babel/runtime": "^7.10.2",
|
|
34
|
-
"@innoways/hooks": "^
|
|
35
|
-
"@innoways/utils": "^
|
|
34
|
+
"@innoways/hooks": "^7.0.0",
|
|
35
|
+
"@innoways/utils": "^7.0.0",
|
|
36
36
|
"antd": "^4.16.13",
|
|
37
37
|
"flatpickr": "^4.6.13",
|
|
38
38
|
"moment": "^2.26.0",
|