wt-enjoy-link-antd-repack 4.1.42 → 4.1.45
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/dist/esm/component/BiuAButton/index.d.ts +4 -4
- package/dist/esm/component/BiuField/component/lpnSelectNew.d.ts +3 -0
- package/dist/esm/component/BiuField/component/lpnSelectNew.js +13 -5
- package/dist/esm/component/BiuField/component/orderTypeSelect.d.ts +1 -1
- package/dist/esm/component/BiuMapSelectSite/index.d.ts +1 -0
- package/dist/esm/component/BiuMapSelectSite/index.js +52 -68
- package/dist/esm/component/BiuVirtualTable/index.d.ts +1 -1
- package/package.json +1 -1
@@ -3,16 +3,16 @@ export declare const BiuAButton: React.MemoExoticComponent<import("styled-compon
|
|
3
3
|
href: string;
|
4
4
|
target?: string | undefined;
|
5
5
|
onClick?: React.MouseEventHandler<HTMLElement> | undefined;
|
6
|
-
} & import("antd/lib/button/button").BaseButtonProps & Omit<React.AnchorHTMLAttributes<any>, "
|
6
|
+
} & import("antd/lib/button/button").BaseButtonProps & Omit<React.AnchorHTMLAttributes<any>, "type" | "onClick"> & {
|
7
7
|
htmlType?: "button" | "submit" | "reset" | undefined;
|
8
8
|
onClick?: React.MouseEventHandler<HTMLElement> | undefined;
|
9
|
-
} & Omit<React.ButtonHTMLAttributes<any>, "
|
9
|
+
} & Omit<React.ButtonHTMLAttributes<any>, "type" | "onClick">> & React.RefAttributes<HTMLElement>, never>> & Omit<React.ForwardRefExoticComponent<Partial<{
|
10
10
|
href: string;
|
11
11
|
target?: string | undefined;
|
12
12
|
onClick?: React.MouseEventHandler<HTMLElement> | undefined;
|
13
|
-
} & import("antd/lib/button/button").BaseButtonProps & Omit<React.AnchorHTMLAttributes<any>, "
|
13
|
+
} & import("antd/lib/button/button").BaseButtonProps & Omit<React.AnchorHTMLAttributes<any>, "type" | "onClick"> & {
|
14
14
|
htmlType?: "button" | "submit" | "reset" | undefined;
|
15
15
|
onClick?: React.MouseEventHandler<HTMLElement> | undefined;
|
16
|
-
} & Omit<React.ButtonHTMLAttributes<any>, "
|
16
|
+
} & Omit<React.ButtonHTMLAttributes<any>, "type" | "onClick">> & React.RefAttributes<HTMLElement>> & {
|
17
17
|
Group: React.FC<import("antd/lib/button").ButtonGroupProps>;
|
18
18
|
}, keyof React.Component<any, {}, any>>>;
|
@@ -8,5 +8,8 @@ declare const _default: React.MemoExoticComponent<React.ForwardRefExoticComponen
|
|
8
8
|
locationType?: number | undefined;
|
9
9
|
defaultValues?: string | number | undefined;
|
10
10
|
style?: any;
|
11
|
+
goodsId?: string | undefined;
|
12
|
+
qty?: string | number | undefined;
|
13
|
+
lpnId?: string | number | undefined;
|
11
14
|
} & SelectProps<any, import("antd/lib/select").DefaultOptionType> & React.RefAttributes<unknown>>>;
|
12
15
|
export default _default;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
2
|
-
var _excluded = ["locationId", "onChange", "onChangeData", "isFirstLoad", "isAutoComplete", "locationType", "defaultValues", "style"];
|
2
|
+
var _excluded = ["locationId", "onChange", "onChangeData", "isFirstLoad", "isAutoComplete", "locationType", "defaultValues", "style", "goodsId", "qty", "lpnId"];
|
3
3
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
4
4
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
5
5
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
@@ -45,6 +45,9 @@ export default /*#__PURE__*/React.memo( /*#__PURE__*/forwardRef(function (props,
|
|
45
45
|
locationType = props.locationType,
|
46
46
|
defaultValues = props.defaultValues,
|
47
47
|
style = props.style,
|
48
|
+
goodsId = props.goodsId,
|
49
|
+
qty = props.qty,
|
50
|
+
lpnId = props.lpnId,
|
48
51
|
restProps = _objectWithoutProperties(props, _excluded);
|
49
52
|
var _useState3 = useState(isFirstLoad),
|
50
53
|
_useState4 = _slicedToArray(_useState3, 2),
|
@@ -68,14 +71,19 @@ export default /*#__PURE__*/React.memo( /*#__PURE__*/forwardRef(function (props,
|
|
68
71
|
setResult([]);
|
69
72
|
return;
|
70
73
|
}
|
71
|
-
if (locationType == 3 && !defaultValues) {
|
74
|
+
if (locationType == 3 && !defaultValues && !locationId) {
|
72
75
|
setDefaultValue('');
|
76
|
+
} else {
|
77
|
+
setDefaultValue(defaultValues);
|
73
78
|
}
|
74
79
|
getLpnList({
|
75
80
|
locationId: locationId,
|
76
|
-
locationType: locationType
|
81
|
+
locationType: locationType,
|
82
|
+
goodsId: goodsId,
|
83
|
+
qty: qty,
|
84
|
+
lpnId: lpnId
|
77
85
|
}).then(function (res) {
|
78
|
-
var data = res.map(function (item) {
|
86
|
+
var data = res === null || res === void 0 ? void 0 : res.map(function (item) {
|
79
87
|
return _objectSpread(_objectSpread({}, item), {}, {
|
80
88
|
title: item.lpn,
|
81
89
|
label: item.lpn,
|
@@ -84,7 +92,7 @@ export default /*#__PURE__*/React.memo( /*#__PURE__*/forwardRef(function (props,
|
|
84
92
|
});
|
85
93
|
setResult(data || []);
|
86
94
|
});
|
87
|
-
}, [locationId, isFirstLoadSearch, locationType, defaultValue, defaultValues]);
|
95
|
+
}, [locationId, isFirstLoadSearch, locationType, defaultValue, defaultValues, goodsId, qty, lpnId]);
|
88
96
|
var onSearch = useCallback(function () {
|
89
97
|
setIsFirstLoadSearch(true);
|
90
98
|
}, []);
|
@@ -9,7 +9,7 @@ declare const _default: React.MemoExoticComponent<React.ForwardRefExoticComponen
|
|
9
9
|
/**
|
10
10
|
* 0:入库 1:出库 2:移库 3:冻结 4:调整 5:属性变更
|
11
11
|
*/
|
12
|
-
orderType: 0 |
|
12
|
+
orderType: 0 | 3 | 1 | 4 | 2 | 5;
|
13
13
|
isFirstLoad: boolean;
|
14
14
|
} & SelectProps<any, import("antd/lib/select").DefaultOptionType> & React.RefAttributes<unknown>>>;
|
15
15
|
export default _default;
|
@@ -37,6 +37,7 @@ export declare class BiuMapSelectSite extends React.PureComponent<BiuMapSelectSi
|
|
37
37
|
init: () => void;
|
38
38
|
mapDrawMarker: (lng: any, lat: any) => void;
|
39
39
|
search: (value: string) => void;
|
40
|
+
debounceSearch: (...args: any) => any;
|
40
41
|
handleSelect: (_value: string, opts: any) => void;
|
41
42
|
getAddress: (lng: string, lat: string) => void;
|
42
43
|
selectPeriphery: (opts: any) => void;
|
@@ -75,7 +75,7 @@ export var BiuMapSelectSite = /*#__PURE__*/function (_React$PureComponent) {
|
|
75
75
|
_defineProperty(_assertThisInitialized(_this), "init", function () {
|
76
76
|
;
|
77
77
|
window._AMapSecurityConfig = {
|
78
|
-
securityJsCode: '
|
78
|
+
securityJsCode: process.env.AmapSecurityCode || ''
|
79
79
|
};
|
80
80
|
var start = function start() {
|
81
81
|
// 初次加载如果已存在则注销
|
@@ -128,20 +128,13 @@ export var BiuMapSelectSite = /*#__PURE__*/function (_React$PureComponent) {
|
|
128
128
|
};
|
129
129
|
if (!AMap) {
|
130
130
|
AMapLoader.load({
|
131
|
-
key: '
|
131
|
+
key: process.env.AmapKey || '',
|
132
132
|
// 申请好的Web端开发者Key,首次调用 load 时必填
|
133
133
|
version: '2.0',
|
134
134
|
plugins: ['AMap.Geocoder', 'AMap.PlaceSearch', 'AMap.LngLat']
|
135
135
|
}).then(function (amap) {
|
136
136
|
AMap = amap;
|
137
|
-
_this.placeSearch = new AMap.PlaceSearch({
|
138
|
-
pageSize: 20,
|
139
|
-
// 单页显示结果条数
|
140
|
-
pageIndex: 1 // 页码
|
141
|
-
});
|
142
137
|
start();
|
143
|
-
}).catch(function (ref) {
|
144
|
-
console.log(175, ref);
|
145
138
|
});
|
146
139
|
} else if (_this.props.open) {
|
147
140
|
setTimeout(function () {
|
@@ -162,28 +155,30 @@ export var BiuMapSelectSite = /*#__PURE__*/function (_React$PureComponent) {
|
|
162
155
|
});
|
163
156
|
// 搜索
|
164
157
|
_defineProperty(_assertThisInitialized(_this), "search", function (value) {
|
165
|
-
var _this$placeSearch;
|
166
158
|
if (!value) {
|
167
159
|
_this.setState({
|
168
|
-
searchList: []
|
169
|
-
searchValue: value
|
160
|
+
searchList: []
|
170
161
|
});
|
171
162
|
return;
|
172
163
|
}
|
173
164
|
// eslint-disable-next-line @typescript-eslint/no-this-alias
|
174
165
|
var that = _assertThisInitialized(_this);
|
175
166
|
that.setState({
|
176
|
-
searchList: []
|
177
|
-
searchValue: value
|
167
|
+
searchList: []
|
178
168
|
});
|
179
|
-
console.log(211, !AMap);
|
180
169
|
if (!AMap) return;
|
181
|
-
(_this
|
182
|
-
|
183
|
-
|
170
|
+
if (!_this.placeSearch) {
|
171
|
+
_this.placeSearch = new AMap.PlaceSearch({
|
172
|
+
pageSize: 20,
|
173
|
+
// 单页显示结果条数
|
174
|
+
pageIndex: 1 // 页码
|
175
|
+
});
|
176
|
+
}
|
177
|
+
_this.placeSearch.search(value, function (status, result) {
|
178
|
+
if ((result === null || result === void 0 ? void 0 : result.info) === 'OK') {
|
184
179
|
var _result$poiList;
|
185
180
|
that.setState({
|
186
|
-
searchList: ((_result$poiList = result.poiList) === null || _result$poiList === void 0 ? void 0 : _result$poiList.pois) || []
|
181
|
+
searchList: (result === null || result === void 0 || (_result$poiList = result.poiList) === null || _result$poiList === void 0 ? void 0 : _result$poiList.pois) || []
|
187
182
|
});
|
188
183
|
} else {
|
189
184
|
that.setState({
|
@@ -191,31 +186,10 @@ export var BiuMapSelectSite = /*#__PURE__*/function (_React$PureComponent) {
|
|
191
186
|
});
|
192
187
|
}
|
193
188
|
});
|
194
|
-
|
195
|
-
// AMap.plugin('AMap.Autocomplete', () => {
|
196
|
-
// // 实例化Autocomplete
|
197
|
-
// const autoOptions = {
|
198
|
-
// city: '全国',
|
199
|
-
// };
|
200
|
-
// const autoComplete = new AMap.Autocomplete(autoOptions);
|
201
|
-
// autoComplete.search(value, (status: string, result: any) => {
|
202
|
-
// console.log(220,status,result)
|
203
|
-
// // 搜索成功时,result即是对应的匹配数据
|
204
|
-
// if (status === 'complete') {
|
205
|
-
// that.setState({
|
206
|
-
// searchList: result.tips,
|
207
|
-
// });
|
208
|
-
// } else {
|
209
|
-
// that.setState({
|
210
|
-
// searchList: [],
|
211
|
-
// });
|
212
|
-
// }
|
213
|
-
// });
|
214
|
-
// });
|
215
189
|
});
|
190
|
+
_defineProperty(_assertThisInitialized(_this), "debounceSearch", ChainDebounceOrThrottle(_this.search, 2000, true));
|
216
191
|
// 搜索确定
|
217
192
|
_defineProperty(_assertThisInitialized(_this), "handleSelect", function (_value, opts) {
|
218
|
-
console.log(265, _value, opts);
|
219
193
|
// 根据地址获取经纬度,改变地图中心位置
|
220
194
|
_this.mapDrawMarker(opts.location.lng, opts.location.lat);
|
221
195
|
// map.setCenter([opts.location.R, opts.location.Q]); // 设置地图中心点
|
@@ -231,13 +205,14 @@ export var BiuMapSelectSite = /*#__PURE__*/function (_React$PureComponent) {
|
|
231
205
|
var that = _assertThisInitialized(_this);
|
232
206
|
geocoder.getAddress([lng, lat], function (status, result) {
|
233
207
|
if (status === 'complete' && result.regeocode) {
|
234
|
-
var
|
208
|
+
var _result$regeocode, _result$regeocode2, _result$regeocode3, _result$regeocode4, _result$regeocode5, _result$regeocode6;
|
209
|
+
var address = result === null || result === void 0 || (_result$regeocode = result.regeocode) === null || _result$regeocode === void 0 ? void 0 : _result$regeocode.formattedAddress;
|
235
210
|
_this.setState({
|
236
|
-
province: result.regeocode.addressComponent.province,
|
211
|
+
province: result === null || result === void 0 || (_result$regeocode2 = result.regeocode) === null || _result$regeocode2 === void 0 ? void 0 : _result$regeocode2.addressComponent.province,
|
237
212
|
// 省
|
238
|
-
city: result.regeocode.addressComponent.city ? result.regeocode.addressComponent.city : result.regeocode.addressComponent.province,
|
213
|
+
city: result !== null && result !== void 0 && (_result$regeocode3 = result.regeocode) !== null && _result$regeocode3 !== void 0 && _result$regeocode3.addressComponent.city ? result === null || result === void 0 || (_result$regeocode4 = result.regeocode) === null || _result$regeocode4 === void 0 ? void 0 : _result$regeocode4.addressComponent.city : result === null || result === void 0 || (_result$regeocode5 = result.regeocode) === null || _result$regeocode5 === void 0 ? void 0 : _result$regeocode5.addressComponent.province,
|
239
214
|
// 市
|
240
|
-
district: result.regeocode.addressComponent.district,
|
215
|
+
district: result === null || result === void 0 || (_result$regeocode6 = result.regeocode) === null || _result$regeocode6 === void 0 ? void 0 : _result$regeocode6.addressComponent.district,
|
241
216
|
// 区
|
242
217
|
lng: lng,
|
243
218
|
lat: lat,
|
@@ -278,13 +253,14 @@ export var BiuMapSelectSite = /*#__PURE__*/function (_React$PureComponent) {
|
|
278
253
|
// 获取地名
|
279
254
|
geocoder.getAddress("".concat(opts.location.R, ",").concat(opts.location.Q), function (status, result) {
|
280
255
|
if (status === 'complete' && result.regeocode) {
|
281
|
-
var
|
256
|
+
var _result$regeocode7, _result$regeocode8, _result$regeocode9, _result$regeocode10, _result$regeocode11, _result$regeocode12;
|
257
|
+
var address = result === null || result === void 0 || (_result$regeocode7 = result.regeocode) === null || _result$regeocode7 === void 0 ? void 0 : _result$regeocode7.formattedAddress;
|
282
258
|
_this.setState({
|
283
|
-
province: result.regeocode.addressComponent.province,
|
259
|
+
province: result === null || result === void 0 || (_result$regeocode8 = result.regeocode) === null || _result$regeocode8 === void 0 ? void 0 : _result$regeocode8.addressComponent.province,
|
284
260
|
// 省
|
285
|
-
city: result.regeocode.addressComponent.city ? result.regeocode.addressComponent.city : result.regeocode.addressComponent.province,
|
261
|
+
city: result !== null && result !== void 0 && (_result$regeocode9 = result.regeocode) !== null && _result$regeocode9 !== void 0 && _result$regeocode9.addressComponent.city ? result === null || result === void 0 || (_result$regeocode10 = result.regeocode) === null || _result$regeocode10 === void 0 ? void 0 : _result$regeocode10.addressComponent.city : result === null || result === void 0 || (_result$regeocode11 = result.regeocode) === null || _result$regeocode11 === void 0 ? void 0 : _result$regeocode11.addressComponent.province,
|
286
262
|
// 市
|
287
|
-
district: result.regeocode.addressComponent.district,
|
263
|
+
district: result === null || result === void 0 || (_result$regeocode12 = result.regeocode) === null || _result$regeocode12 === void 0 ? void 0 : _result$regeocode12.addressComponent.district,
|
288
264
|
// 区
|
289
265
|
lng: opts.location.R,
|
290
266
|
lat: opts.location.Q,
|
@@ -321,20 +297,21 @@ export var BiuMapSelectSite = /*#__PURE__*/function (_React$PureComponent) {
|
|
321
297
|
});
|
322
298
|
geolocation.getCurrentPosition(function (status, result) {
|
323
299
|
if (status === 'complete') {
|
300
|
+
var _result$position, _result$position2, _result$addressCompon, _result$addressCompon2, _result$addressCompon3, _result$addressCompon4, _result$addressCompon5, _result$position3, _result$position4;
|
324
301
|
// 定位成功默认设置到自己位置
|
325
|
-
map.setCenter([result.position.R, result.position.Q]); // 设置地图中心点
|
302
|
+
map.setCenter([result === null || result === void 0 || (_result$position = result.position) === null || _result$position === void 0 ? void 0 : _result$position.R, result === null || result === void 0 || (_result$position2 = result.position) === null || _result$position2 === void 0 ? void 0 : _result$position2.Q]); // 设置地图中心点
|
326
303
|
map.setZoom(16); // 设置地图层级
|
327
304
|
|
328
305
|
that.setState({
|
329
|
-
province: result.addressComponent.province,
|
306
|
+
province: result === null || result === void 0 || (_result$addressCompon = result.addressComponent) === null || _result$addressCompon === void 0 ? void 0 : _result$addressCompon.province,
|
330
307
|
// 省
|
331
|
-
city: result.addressComponent.city ? result.addressComponent.city : result.addressComponent.province,
|
308
|
+
city: result !== null && result !== void 0 && (_result$addressCompon2 = result.addressComponent) !== null && _result$addressCompon2 !== void 0 && _result$addressCompon2.city ? result === null || result === void 0 || (_result$addressCompon3 = result.addressComponent) === null || _result$addressCompon3 === void 0 ? void 0 : _result$addressCompon3.city : result === null || result === void 0 || (_result$addressCompon4 = result.addressComponent) === null || _result$addressCompon4 === void 0 ? void 0 : _result$addressCompon4.province,
|
332
309
|
// 市
|
333
|
-
district: result.addressComponent.district,
|
310
|
+
district: result === null || result === void 0 || (_result$addressCompon5 = result.addressComponent) === null || _result$addressCompon5 === void 0 ? void 0 : _result$addressCompon5.district,
|
334
311
|
// 区
|
335
|
-
lng: result.position.R,
|
336
|
-
lat: result.position.Q,
|
337
|
-
address: result.formattedAddress
|
312
|
+
lng: result === null || result === void 0 || (_result$position3 = result.position) === null || _result$position3 === void 0 ? void 0 : _result$position3.R,
|
313
|
+
lat: result === null || result === void 0 || (_result$position4 = result.position) === null || _result$position4 === void 0 ? void 0 : _result$position4.Q,
|
314
|
+
address: result === null || result === void 0 ? void 0 : result.formattedAddress
|
338
315
|
});
|
339
316
|
}
|
340
317
|
});
|
@@ -342,13 +319,14 @@ export var BiuMapSelectSite = /*#__PURE__*/function (_React$PureComponent) {
|
|
342
319
|
});
|
343
320
|
// 选中
|
344
321
|
_defineProperty(_assertThisInitialized(_this), "handleOk", function () {
|
322
|
+
var _this$state, _this$state2, _this$state3, _this$state4, _this$state5, _this$state6;
|
345
323
|
_this.props.onSelect({
|
346
|
-
province: _this.state.province,
|
347
|
-
city: _this.state.city,
|
348
|
-
district: _this.state.district,
|
349
|
-
lng: _this.state.lng,
|
350
|
-
lat: _this.state.lat,
|
351
|
-
address: _this.state.address //this.props?.textAddress ? this.props?.textAddress : this.state
|
324
|
+
province: (_this$state = _this.state) === null || _this$state === void 0 ? void 0 : _this$state.province,
|
325
|
+
city: (_this$state2 = _this.state) === null || _this$state2 === void 0 ? void 0 : _this$state2.city,
|
326
|
+
district: (_this$state3 = _this.state) === null || _this$state3 === void 0 ? void 0 : _this$state3.district,
|
327
|
+
lng: (_this$state4 = _this.state) === null || _this$state4 === void 0 ? void 0 : _this$state4.lng,
|
328
|
+
lat: (_this$state5 = _this.state) === null || _this$state5 === void 0 ? void 0 : _this$state5.lat,
|
329
|
+
address: (_this$state6 = _this.state) === null || _this$state6 === void 0 ? void 0 : _this$state6.address // this.props?.textAddress ? this.props?.textAddress : this.state?.address,
|
352
330
|
});
|
353
331
|
_this.setState({
|
354
332
|
lngSearch: '',
|
@@ -375,8 +353,8 @@ export var BiuMapSelectSite = /*#__PURE__*/function (_React$PureComponent) {
|
|
375
353
|
key: "componentDidUpdate",
|
376
354
|
value: function componentDidUpdate() {
|
377
355
|
if (this.isSuccess && this.props.open) {
|
378
|
-
var _this$
|
379
|
-
if (!((_this$
|
356
|
+
var _this$state7, _this$props2;
|
357
|
+
if (!((_this$state7 = this.state) !== null && _this$state7 !== void 0 && _this$state7.searchValue)) {
|
380
358
|
var _this$props;
|
381
359
|
this.setState({
|
382
360
|
searchValue: (_this$props = this.props) === null || _this$props === void 0 ? void 0 : _this$props.textAddress
|
@@ -392,6 +370,7 @@ export var BiuMapSelectSite = /*#__PURE__*/function (_React$PureComponent) {
|
|
392
370
|
}, {
|
393
371
|
key: "render",
|
394
372
|
value: function render() {
|
373
|
+
var _this2 = this;
|
395
374
|
var _this$props4 = this.props,
|
396
375
|
id = _this$props4.id,
|
397
376
|
open = _this$props4.open,
|
@@ -399,9 +378,9 @@ export var BiuMapSelectSite = /*#__PURE__*/function (_React$PureComponent) {
|
|
399
378
|
width = _this$props4$width === void 0 ? '990px' : _this$props4$width,
|
400
379
|
_this$props4$height = _this$props4.height,
|
401
380
|
height = _this$props4$height === void 0 ? '410px' : _this$props4$height;
|
402
|
-
var _this$
|
403
|
-
searchList = _this$
|
404
|
-
searchValue = _this$
|
381
|
+
var _this$state8 = this.state,
|
382
|
+
searchList = _this$state8.searchList,
|
383
|
+
searchValue = _this$state8.searchValue;
|
405
384
|
return /*#__PURE__*/_jsx(StyledModal, {
|
406
385
|
title: "\u9009\u62E9\u4F4D\u7F6E",
|
407
386
|
open: open,
|
@@ -438,8 +417,13 @@ export var BiuMapSelectSite = /*#__PURE__*/function (_React$PureComponent) {
|
|
438
417
|
},
|
439
418
|
onSelect: this.handleSelect,
|
440
419
|
placeholder: "\u8F93\u5165\u5173\u952E\u8BCD\u641C\u7D22",
|
441
|
-
|
420
|
+
onSearch: this.debounceSearch,
|
442
421
|
value: searchValue,
|
422
|
+
onChange: function onChange(value) {
|
423
|
+
_this2.setState({
|
424
|
+
searchValue: value
|
425
|
+
});
|
426
|
+
},
|
443
427
|
children: searchList.map(function (item) {
|
444
428
|
return /*#__PURE__*/_jsx(AutoComplete.Option, _objectSpread(_objectSpread({}, item), {}, {
|
445
429
|
value: "".concat(item.name, " "),
|
@@ -10,4 +10,4 @@ export interface BiuVirtualTablePropsType {
|
|
10
10
|
y: number;
|
11
11
|
};
|
12
12
|
}
|
13
|
-
export declare const BiuVirtualTable: React.MemoExoticComponent<React.ForwardRefExoticComponent<BiuVirtualTablePropsType & Omit<TableProps<any>, "
|
13
|
+
export declare const BiuVirtualTable: React.MemoExoticComponent<React.ForwardRefExoticComponent<BiuVirtualTablePropsType & Omit<TableProps<any>, "scroll" | "columns"> & React.RefAttributes<unknown>>>;
|