@fle-ui/plus-choose-site-goods 1.1.9 → 1.1.10
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/index.js +2 -5
- package/lib/index.js +2 -5
- package/package.json +3 -3
package/es/index.js
CHANGED
|
@@ -55,12 +55,12 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
|
55
55
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
56
56
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } } return target; }
|
|
57
57
|
import React, { useEffect, useState, useRef } from 'react';
|
|
58
|
+
import _ from 'lodash';
|
|
58
59
|
import ProImage from '@fle-ui/plus-image';
|
|
59
60
|
import ChooseMallGoods from '@fle-ui/plus-choose-mall-goods';
|
|
60
61
|
import AddressSelection from '@fle-ui/plus-address-selection';
|
|
61
62
|
import { QuestionCircleOutlined, LoadingOutlined } from '@ant-design/icons';
|
|
62
63
|
import PlusConfigProvider from '@fle-ui/plus-config-provider';
|
|
63
|
-
import _ from 'lodash';
|
|
64
64
|
import Icon from './components/icon';
|
|
65
65
|
import { tabs, tabsSearchParamsMap, priceRangeForOnce, priceRangeForPurchase, profitRangeForOnce, profitRangeForPurchase, sortOptions } from './utils/options';
|
|
66
66
|
import api from './utils/api';
|
|
@@ -121,13 +121,11 @@ var ChooseSiteGoods = function ChooseSiteGoods(props) {
|
|
|
121
121
|
flagCategory: undefined,
|
|
122
122
|
saleableCity: undefined // dgss可售卖城市
|
|
123
123
|
};
|
|
124
|
-
// http ------------ begin
|
|
125
124
|
var $http = request({
|
|
126
125
|
baseUrl: getApiHost(env),
|
|
127
126
|
token: token,
|
|
128
127
|
loginErrFn: loginErrFn
|
|
129
128
|
});
|
|
130
|
-
// http ------------ end
|
|
131
129
|
useEffect(function () {
|
|
132
130
|
if (env) {
|
|
133
131
|
window.localStorage.setItem('env', env);
|
|
@@ -1203,8 +1201,7 @@ var ChooseSiteGoods = function ChooseSiteGoods(props) {
|
|
|
1203
1201
|
align: 'center',
|
|
1204
1202
|
width: 150,
|
|
1205
1203
|
render: function render(_, record) {
|
|
1206
|
-
|
|
1207
|
-
return (record === null || record === void 0 ? void 0 : (_record$flagCategoryI = record.flagCategoryInfo) === null || _record$flagCategoryI === void 0 ? void 0 : _record$flagCategoryI.goodsCategoryTreeName) || '-';
|
|
1204
|
+
return (record === null || record === void 0 ? void 0 : record.goodsCategoryTreeName) || '-';
|
|
1208
1205
|
}
|
|
1209
1206
|
}];
|
|
1210
1207
|
var columns = function columns() {
|
package/lib/index.js
CHANGED
|
@@ -7,12 +7,12 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports.default = void 0;
|
|
8
8
|
var _react = _interopRequireWildcard(require("react"));
|
|
9
9
|
var _antd = require("antd");
|
|
10
|
+
var _lodash = _interopRequireDefault(require("lodash"));
|
|
10
11
|
var _plusImage = _interopRequireDefault(require("@fle-ui/plus-image"));
|
|
11
12
|
var _plusChooseMallGoods = _interopRequireDefault(require("@fle-ui/plus-choose-mall-goods"));
|
|
12
13
|
var _plusAddressSelection = _interopRequireDefault(require("@fle-ui/plus-address-selection"));
|
|
13
14
|
var _icons = require("@ant-design/icons");
|
|
14
15
|
var _plusConfigProvider = _interopRequireDefault(require("@fle-ui/plus-config-provider"));
|
|
15
|
-
var _lodash = _interopRequireDefault(require("lodash"));
|
|
16
16
|
var _icon = _interopRequireDefault(require("./components/icon"));
|
|
17
17
|
var _options = require("./utils/options");
|
|
18
18
|
var _api = _interopRequireDefault(require("./utils/api"));
|
|
@@ -99,13 +99,11 @@ var ChooseSiteGoods = function ChooseSiteGoods(props) {
|
|
|
99
99
|
flagCategory: undefined,
|
|
100
100
|
saleableCity: undefined // dgss可售卖城市
|
|
101
101
|
};
|
|
102
|
-
// http ------------ begin
|
|
103
102
|
var $http = (0, _request.default)({
|
|
104
103
|
baseUrl: (0, _serviceEnv.getApiHost)(env),
|
|
105
104
|
token: token,
|
|
106
105
|
loginErrFn: loginErrFn
|
|
107
106
|
});
|
|
108
|
-
// http ------------ end
|
|
109
107
|
(0, _react.useEffect)(function () {
|
|
110
108
|
if (env) {
|
|
111
109
|
window.localStorage.setItem('env', env);
|
|
@@ -1181,8 +1179,7 @@ var ChooseSiteGoods = function ChooseSiteGoods(props) {
|
|
|
1181
1179
|
align: 'center',
|
|
1182
1180
|
width: 150,
|
|
1183
1181
|
render: function render(_, record) {
|
|
1184
|
-
|
|
1185
|
-
return (record === null || record === void 0 ? void 0 : (_record$flagCategoryI = record.flagCategoryInfo) === null || _record$flagCategoryI === void 0 ? void 0 : _record$flagCategoryI.goodsCategoryTreeName) || '-';
|
|
1182
|
+
return (record === null || record === void 0 ? void 0 : record.goodsCategoryTreeName) || '-';
|
|
1186
1183
|
}
|
|
1187
1184
|
}];
|
|
1188
1185
|
var columns = function columns() {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fle-ui/plus-choose-site-goods",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.10",
|
|
4
4
|
"description": "@fle-ui/plus-choose-site-goods",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"fle-ui",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"@ant-design/icons": "^5.3.0",
|
|
29
29
|
"@fle-tools/env": "^1.0.3",
|
|
30
30
|
"@fle-ui/plus-address-selection": "^1.0.14",
|
|
31
|
-
"@fle-ui/plus-choose-mall-goods": "^1.1.
|
|
31
|
+
"@fle-ui/plus-choose-mall-goods": "^1.1.11-alpha.1"
|
|
32
32
|
},
|
|
33
33
|
"peerDependencies": {
|
|
34
34
|
"antd": ">=4.23.0 || >=5.0.0",
|
|
@@ -45,5 +45,5 @@
|
|
|
45
45
|
"publishConfig": {
|
|
46
46
|
"access": "public"
|
|
47
47
|
},
|
|
48
|
-
"gitHead": "
|
|
48
|
+
"gitHead": "0c631954240d64433307f9b73b617ecc96a843a2"
|
|
49
49
|
}
|