@fle-ui/plus-choose-mall-goods 1.0.1
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/LICENSE +1 -0
- package/README.md +19 -0
- package/es/components/changePrice/index.d.ts +16 -0
- package/es/components/changePrice/index.js +510 -0
- package/es/components/changePrice/index.less +97 -0
- package/es/components/changePrice/utils/api.d.ts +5 -0
- package/es/components/changePrice/utils/api.js +4 -0
- package/es/components/changePrice/utils/common.d.ts +24 -0
- package/es/components/changePrice/utils/common.js +26 -0
- package/es/components/changePrice/utils/request.d.ts +26 -0
- package/es/components/changePrice/utils/request.js +177 -0
- package/es/components/changePrice/utils/serviceEnv.d.ts +8 -0
- package/es/components/changePrice/utils/serviceEnv.js +12 -0
- package/es/components/changePriceConfirm/index.d.ts +7 -0
- package/es/components/changePriceConfirm/index.js +124 -0
- package/es/components/changePriceConfirm/index.less +78 -0
- package/es/components/icon/index.d.ts +3 -0
- package/es/components/icon/index.js +7 -0
- package/es/index.d.ts +21 -0
- package/es/index.js +1330 -0
- package/es/index.less +103 -0
- package/es/utils/api.d.ts +11 -0
- package/es/utils/api.js +10 -0
- package/es/utils/common.d.ts +24 -0
- package/es/utils/common.js +26 -0
- package/es/utils/options.d.ts +30 -0
- package/es/utils/options.js +84 -0
- package/es/utils/request.d.ts +26 -0
- package/es/utils/request.js +177 -0
- package/es/utils/serviceEnv.d.ts +8 -0
- package/es/utils/serviceEnv.js +12 -0
- package/lib/components/changePrice/index.d.ts +16 -0
- package/lib/components/changePrice/index.js +511 -0
- package/lib/components/changePrice/index.less +97 -0
- package/lib/components/changePrice/utils/api.d.ts +5 -0
- package/lib/components/changePrice/utils/api.js +11 -0
- package/lib/components/changePrice/utils/common.d.ts +24 -0
- package/lib/components/changePrice/utils/common.js +36 -0
- package/lib/components/changePrice/utils/request.d.ts +26 -0
- package/lib/components/changePrice/utils/request.js +183 -0
- package/lib/components/changePrice/utils/serviceEnv.d.ts +8 -0
- package/lib/components/changePrice/utils/serviceEnv.js +21 -0
- package/lib/components/changePriceConfirm/index.d.ts +7 -0
- package/lib/components/changePriceConfirm/index.js +128 -0
- package/lib/components/changePriceConfirm/index.less +78 -0
- package/lib/components/icon/index.d.ts +3 -0
- package/lib/components/icon/index.js +14 -0
- package/lib/index.d.ts +21 -0
- package/lib/index.js +1313 -0
- package/lib/index.less +103 -0
- package/lib/utils/api.d.ts +11 -0
- package/lib/utils/api.js +17 -0
- package/lib/utils/common.d.ts +24 -0
- package/lib/utils/common.js +36 -0
- package/lib/utils/options.d.ts +30 -0
- package/lib/utils/options.js +97 -0
- package/lib/utils/request.d.ts +26 -0
- package/lib/utils/request.js +183 -0
- package/lib/utils/serviceEnv.d.ts +8 -0
- package/lib/utils/serviceEnv.js +21 -0
- package/package.json +46 -0
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.showTime = exports.showMoney = exports.parseQueryString = void 0;
|
|
7
|
+
var _moment = _interopRequireDefault(require("moment"));
|
|
8
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
9
|
+
var showMoney = function showMoney(data) {
|
|
10
|
+
return (+data / 100).toFixed(2);
|
|
11
|
+
};
|
|
12
|
+
exports.showMoney = showMoney;
|
|
13
|
+
var showTime = function showTime(data) {
|
|
14
|
+
var fmtType = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'YYYY-MM-DD HH:mm:ss';
|
|
15
|
+
return data ? (0, _moment.default)(data).format(fmtType) : '';
|
|
16
|
+
};
|
|
17
|
+
/**
|
|
18
|
+
* 格式化url参数
|
|
19
|
+
*/
|
|
20
|
+
exports.showTime = showTime;
|
|
21
|
+
var parseQueryString = function parseQueryString() {
|
|
22
|
+
var url = window.location.href;
|
|
23
|
+
var regUrl = /^[^\?]+\?([\w\W]+)$/; //eslint-disable-line
|
|
24
|
+
var regPara = /([^&=]+)=([\w\W]*?)(&|$|#)/g;
|
|
25
|
+
var arrUrl = regUrl.exec(url);
|
|
26
|
+
var ret = {};
|
|
27
|
+
if (arrUrl && arrUrl[1]) {
|
|
28
|
+
var strPara = arrUrl[1];
|
|
29
|
+
var result;
|
|
30
|
+
while ((result = regPara.exec(strPara)) != null) {
|
|
31
|
+
ret[result[1]] = result[2];
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
return ret;
|
|
35
|
+
};
|
|
36
|
+
exports.parseQueryString = parseQueryString;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { AxiosRequestConfig } from 'axios';
|
|
2
|
+
interface RequestConfig extends AxiosRequestConfig {
|
|
3
|
+
notice?: boolean;
|
|
4
|
+
}
|
|
5
|
+
declare module 'axios' {
|
|
6
|
+
interface AxiosInstance {
|
|
7
|
+
(config: RequestConfig): Promise<any>;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
interface AxiosConfig {
|
|
11
|
+
baseUrl?: string;
|
|
12
|
+
timeout?: number;
|
|
13
|
+
tokenKey?: string;
|
|
14
|
+
token?: string | undefined;
|
|
15
|
+
loginErrUrl?: string;
|
|
16
|
+
loginErrFn?: Function | undefined;
|
|
17
|
+
noNotificationCodes?: Array<string | number>;
|
|
18
|
+
errUrlFn?: Function | undefined;
|
|
19
|
+
formDataUrls?: Array<string>;
|
|
20
|
+
exceptionErrFn?: {
|
|
21
|
+
notification?: Function | undefined;
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
declare const Request: (configParams: AxiosConfig) => import("axios").AxiosInstance;
|
|
25
|
+
export declare const request: import("axios").AxiosInstance;
|
|
26
|
+
export default Request;
|
|
@@ -0,0 +1,183 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.request = exports.default = void 0;
|
|
7
|
+
var _jsCookie = _interopRequireDefault(require("js-cookie"));
|
|
8
|
+
var _axios = _interopRequireDefault(require("axios"));
|
|
9
|
+
var _antd = require("antd");
|
|
10
|
+
var _env = require("@fle-tools/env");
|
|
11
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
12
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
13
|
+
function ownKeys(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; }
|
|
14
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
15
|
+
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; }
|
|
16
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
17
|
+
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
18
|
+
var DATA_CODE = new Map([['SUCCESS', '2000'], ['LOGIN_ERROR', '100003']]);
|
|
19
|
+
// 登录失效
|
|
20
|
+
var CancelToken = _axios.default.CancelToken;
|
|
21
|
+
var source = CancelToken.source();
|
|
22
|
+
var pending = [];
|
|
23
|
+
// 移除重复请求
|
|
24
|
+
var removePending = function removePending(config) {
|
|
25
|
+
for (var key in pending) {
|
|
26
|
+
var item = +key;
|
|
27
|
+
var list = pending[key];
|
|
28
|
+
// 当前请求在数组中存在时执行函数体
|
|
29
|
+
if (list.url === config.url && list.method === config.method && JSON.stringify(list.params) === JSON.stringify(config.params) && JSON.stringify(list.data) === JSON.stringify(config.data)) {
|
|
30
|
+
// 执行取消操作
|
|
31
|
+
list.cancel('操作太频繁,请稍后再试');
|
|
32
|
+
// 从数组中移除记录
|
|
33
|
+
pending.splice(item, 1);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
// 默认配置
|
|
38
|
+
var initAxiosConfig = {
|
|
39
|
+
baseUrl: undefined,
|
|
40
|
+
timeout: 10000,
|
|
41
|
+
tokenKey: 'token',
|
|
42
|
+
token: undefined,
|
|
43
|
+
loginErrUrl: undefined,
|
|
44
|
+
loginErrFn: undefined,
|
|
45
|
+
noNotificationCodes: [],
|
|
46
|
+
errUrlFn: undefined,
|
|
47
|
+
formDataUrls: [] // 需要用formData提交的接口列表
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
var Request = function Request(configParams) {
|
|
51
|
+
configParams = _objectSpread(_objectSpread({}, initAxiosConfig), configParams);
|
|
52
|
+
// console.log(configParams, 'config')
|
|
53
|
+
var service = _axios.default.create({
|
|
54
|
+
baseURL: configParams.baseUrl,
|
|
55
|
+
timeout: configParams.timeout
|
|
56
|
+
});
|
|
57
|
+
service.interceptors.request.use(function (config) {
|
|
58
|
+
var _configParams$formDat;
|
|
59
|
+
removePending(config);
|
|
60
|
+
config.headers['authority_token'] = configParams.token || _jsCookie.default.get(configParams.tokenKey);
|
|
61
|
+
config.url = "".concat(config.url);
|
|
62
|
+
if ((_configParams$formDat = configParams.formDataUrls) === null || _configParams$formDat === void 0 ? void 0 : _configParams$formDat.includes(config.url)) {
|
|
63
|
+
config.headers['Content-Type'] = 'multipart/form-data';
|
|
64
|
+
config.headers['Accept'] = '*/*';
|
|
65
|
+
}
|
|
66
|
+
return _objectSpread(_objectSpread({}, config), {}, {
|
|
67
|
+
cancelToken: source.token
|
|
68
|
+
});
|
|
69
|
+
}, function (err) {
|
|
70
|
+
var _configParams$excepti;
|
|
71
|
+
if ((_configParams$excepti = configParams.exceptionErrFn) === null || _configParams$excepti === void 0 ? void 0 : _configParams$excepti.notification) {
|
|
72
|
+
var _configParams$excepti2;
|
|
73
|
+
(_configParams$excepti2 = configParams.exceptionErrFn) === null || _configParams$excepti2 === void 0 ? void 0 : _configParams$excepti2.notification('提示', err.toString());
|
|
74
|
+
} else {
|
|
75
|
+
_antd.notification.error({
|
|
76
|
+
message: '提示',
|
|
77
|
+
description: err.toString()
|
|
78
|
+
});
|
|
79
|
+
}
|
|
80
|
+
return Promise.reject(_objectSpread(_objectSpread({}, err), {}, {
|
|
81
|
+
data: null
|
|
82
|
+
}));
|
|
83
|
+
});
|
|
84
|
+
service.interceptors.response.use(function (res) {
|
|
85
|
+
var status = res.status,
|
|
86
|
+
data = res.data,
|
|
87
|
+
statusText = res.statusText,
|
|
88
|
+
config = res.config;
|
|
89
|
+
removePending(config);
|
|
90
|
+
return new Promise(function (resolve, reject) {
|
|
91
|
+
if (status < 200 || status > 300) {
|
|
92
|
+
var _configParams$excepti3;
|
|
93
|
+
if ((_configParams$excepti3 = configParams.exceptionErrFn) === null || _configParams$excepti3 === void 0 ? void 0 : _configParams$excepti3.notification) {
|
|
94
|
+
var _configParams$excepti4;
|
|
95
|
+
(_configParams$excepti4 = configParams.exceptionErrFn) === null || _configParams$excepti4 === void 0 ? void 0 : _configParams$excepti4.notification("\u8BF7\u6C42\u9519\u8BEF: ".concat(status), statusText);
|
|
96
|
+
} else {
|
|
97
|
+
_antd.notification.error({
|
|
98
|
+
message: "\u8BF7\u6C42\u9519\u8BEF: ".concat(status),
|
|
99
|
+
description: statusText
|
|
100
|
+
});
|
|
101
|
+
}
|
|
102
|
+
reject(data);
|
|
103
|
+
} else if (!data.success) {
|
|
104
|
+
if (data.code === DATA_CODE.get('LOGIN_ERROR')) {
|
|
105
|
+
// 登录失效后,取消后续的http请求
|
|
106
|
+
source.cancel('登录失效');
|
|
107
|
+
if (configParams.loginErrFn) {
|
|
108
|
+
configParams.loginErrFn();
|
|
109
|
+
} else if (configParams.loginErrUrl) {
|
|
110
|
+
_antd.Modal.warning({
|
|
111
|
+
title: '登录失效',
|
|
112
|
+
content: '点击确定重新登录',
|
|
113
|
+
okText: '确定',
|
|
114
|
+
onOk: function onOk() {
|
|
115
|
+
var _getAppInfo;
|
|
116
|
+
window.location.href = configParams.loginErrUrl || ((_getAppInfo = (0, _env.getAppInfo)()) === null || _getAppInfo === void 0 ? void 0 : _getAppInfo.__fle_loginErrUrl__);
|
|
117
|
+
}
|
|
118
|
+
});
|
|
119
|
+
}
|
|
120
|
+
} else {
|
|
121
|
+
var _configParams$noNotif;
|
|
122
|
+
if (!((_configParams$noNotif = configParams.noNotificationCodes) === null || _configParams$noNotif === void 0 ? void 0 : _configParams$noNotif.includes(data.code))) {
|
|
123
|
+
var _configParams$excepti5;
|
|
124
|
+
if ((_configParams$excepti5 = configParams.exceptionErrFn) === null || _configParams$excepti5 === void 0 ? void 0 : _configParams$excepti5.notification) {
|
|
125
|
+
var _configParams$excepti6;
|
|
126
|
+
(_configParams$excepti6 = configParams.exceptionErrFn) === null || _configParams$excepti6 === void 0 ? void 0 : _configParams$excepti6.notification('提示', data.message);
|
|
127
|
+
} else {
|
|
128
|
+
_antd.notification.error({
|
|
129
|
+
message: '提示',
|
|
130
|
+
description: data.message
|
|
131
|
+
});
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
reject(data);
|
|
136
|
+
} else {
|
|
137
|
+
resolve(data);
|
|
138
|
+
}
|
|
139
|
+
});
|
|
140
|
+
}, function (err) {
|
|
141
|
+
var _err$message;
|
|
142
|
+
if (err.message === 'Request failed with status code 404') {
|
|
143
|
+
if (configParams.errUrlFn) {
|
|
144
|
+
configParams.errUrlFn();
|
|
145
|
+
return;
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
if (err.message === '登录失效') {
|
|
149
|
+
return;
|
|
150
|
+
}
|
|
151
|
+
if ((_err$message = err.message) === null || _err$message === void 0 ? void 0 : _err$message.includes('timeout')) {
|
|
152
|
+
var _configParams$excepti7;
|
|
153
|
+
if ((_configParams$excepti7 = configParams.exceptionErrFn) === null || _configParams$excepti7 === void 0 ? void 0 : _configParams$excepti7.notification) {
|
|
154
|
+
var _configParams$excepti8;
|
|
155
|
+
(_configParams$excepti8 = configParams.exceptionErrFn) === null || _configParams$excepti8 === void 0 ? void 0 : _configParams$excepti8.notification('提示', '请求超时~');
|
|
156
|
+
} else {
|
|
157
|
+
_antd.notification.error({
|
|
158
|
+
message: '提示',
|
|
159
|
+
description: '请求超时~'
|
|
160
|
+
});
|
|
161
|
+
}
|
|
162
|
+
} else {
|
|
163
|
+
var _configParams$excepti9;
|
|
164
|
+
if ((_configParams$excepti9 = configParams.exceptionErrFn) === null || _configParams$excepti9 === void 0 ? void 0 : _configParams$excepti9.notification) {
|
|
165
|
+
var _configParams$excepti10;
|
|
166
|
+
(_configParams$excepti10 = configParams.exceptionErrFn) === null || _configParams$excepti10 === void 0 ? void 0 : _configParams$excepti10.notification('提示', err.toString());
|
|
167
|
+
} else {
|
|
168
|
+
_antd.notification.error({
|
|
169
|
+
message: '提示',
|
|
170
|
+
description: err.toString()
|
|
171
|
+
});
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
return Promise.reject(err);
|
|
175
|
+
});
|
|
176
|
+
return service;
|
|
177
|
+
};
|
|
178
|
+
var request = Request({
|
|
179
|
+
baseUrl: (0, _env.getAePrefix)()
|
|
180
|
+
});
|
|
181
|
+
exports.request = request;
|
|
182
|
+
var _default = Request;
|
|
183
|
+
exports.default = _default;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.getApiUrl = exports.getApiHost = exports.baseURLMap = void 0;
|
|
7
|
+
var baseURLMap = {
|
|
8
|
+
dev: 'https://dev-gateway.fxqifu.net/pangu',
|
|
9
|
+
test: 'https://qa-gateway.fxqifu.net/pangu',
|
|
10
|
+
qa: 'https://qa-gateway.fxqifu.net/pangu',
|
|
11
|
+
prod: 'https://gateway.fxqifu.net/pangu'
|
|
12
|
+
};
|
|
13
|
+
exports.baseURLMap = baseURLMap;
|
|
14
|
+
var getApiHost = function getApiHost(env) {
|
|
15
|
+
return baseURLMap[env];
|
|
16
|
+
};
|
|
17
|
+
exports.getApiHost = getApiHost;
|
|
18
|
+
var getApiUrl = function getApiUrl(env, url) {
|
|
19
|
+
return baseURLMap[env] + url;
|
|
20
|
+
};
|
|
21
|
+
exports.getApiUrl = getApiUrl;
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.default = void 0;
|
|
8
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
9
|
+
var _antd = require("antd");
|
|
10
|
+
var _icons = require("@ant-design/icons");
|
|
11
|
+
require("./index.less");
|
|
12
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
13
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
14
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
15
|
+
function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return exports; }; var exports = {}, Op = Object.prototype, hasOwn = Op.hasOwnProperty, defineProperty = Object.defineProperty || function (obj, key, desc) { obj[key] = desc.value; }, $Symbol = "function" == typeof Symbol ? Symbol : {}, iteratorSymbol = $Symbol.iterator || "@@iterator", asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator", toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag"; function define(obj, key, value) { return Object.defineProperty(obj, key, { value: value, enumerable: !0, configurable: !0, writable: !0 }), obj[key]; } try { define({}, ""); } catch (err) { define = function define(obj, key, value) { return obj[key] = value; }; } function wrap(innerFn, outerFn, self, tryLocsList) { var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator, generator = Object.create(protoGenerator.prototype), context = new Context(tryLocsList || []); return defineProperty(generator, "_invoke", { value: makeInvokeMethod(innerFn, self, context) }), generator; } function tryCatch(fn, obj, arg) { try { return { type: "normal", arg: fn.call(obj, arg) }; } catch (err) { return { type: "throw", arg: err }; } } exports.wrap = wrap; var ContinueSentinel = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var IteratorPrototype = {}; define(IteratorPrototype, iteratorSymbol, function () { return this; }); var getProto = Object.getPrototypeOf, NativeIteratorPrototype = getProto && getProto(getProto(values([]))); NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype); var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype); function defineIteratorMethods(prototype) { ["next", "throw", "return"].forEach(function (method) { define(prototype, method, function (arg) { return this._invoke(method, arg); }); }); } function AsyncIterator(generator, PromiseImpl) { function invoke(method, arg, resolve, reject) { var record = tryCatch(generator[method], generator, arg); if ("throw" !== record.type) { var result = record.arg, value = result.value; return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) { invoke("next", value, resolve, reject); }, function (err) { invoke("throw", err, resolve, reject); }) : PromiseImpl.resolve(value).then(function (unwrapped) { result.value = unwrapped, resolve(result); }, function (error) { return invoke("throw", error, resolve, reject); }); } reject(record.arg); } var previousPromise; defineProperty(this, "_invoke", { value: function value(method, arg) { function callInvokeWithMethodAndArg() { return new PromiseImpl(function (resolve, reject) { invoke(method, arg, resolve, reject); }); } return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(innerFn, self, context) { var state = "suspendedStart"; return function (method, arg) { if ("executing" === state) throw new Error("Generator is already running"); if ("completed" === state) { if ("throw" === method) throw arg; return doneResult(); } for (context.method = method, context.arg = arg;;) { var delegate = context.delegate; if (delegate) { var delegateResult = maybeInvokeDelegate(delegate, context); if (delegateResult) { if (delegateResult === ContinueSentinel) continue; return delegateResult; } } if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) { if ("suspendedStart" === state) throw state = "completed", context.arg; context.dispatchException(context.arg); } else "return" === context.method && context.abrupt("return", context.arg); state = "executing"; var record = tryCatch(innerFn, self, context); if ("normal" === record.type) { if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue; return { value: record.arg, done: context.done }; } "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg); } }; } function maybeInvokeDelegate(delegate, context) { var methodName = context.method, method = delegate.iterator[methodName]; if (undefined === method) return context.delegate = null, "throw" === methodName && delegate.iterator.return && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method) || "return" !== methodName && (context.method = "throw", context.arg = new TypeError("The iterator does not provide a '" + methodName + "' method")), ContinueSentinel; var record = tryCatch(method, delegate.iterator, context.arg); if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel; var info = record.arg; return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel); } function pushTryEntry(locs) { var entry = { tryLoc: locs[0] }; 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry); } function resetTryEntry(entry) { var record = entry.completion || {}; record.type = "normal", delete record.arg, entry.completion = record; } function Context(tryLocsList) { this.tryEntries = [{ tryLoc: "root" }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0); } function values(iterable) { if (iterable) { var iteratorMethod = iterable[iteratorSymbol]; if (iteratorMethod) return iteratorMethod.call(iterable); if ("function" == typeof iterable.next) return iterable; if (!isNaN(iterable.length)) { var i = -1, next = function next() { for (; ++i < iterable.length;) if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next; return next.value = undefined, next.done = !0, next; }; return next.next = next; } } return { next: doneResult }; } function doneResult() { return { value: undefined, done: !0 }; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), defineProperty(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) { var ctor = "function" == typeof genFun && genFun.constructor; return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name)); }, exports.mark = function (genFun) { return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun; }, exports.awrap = function (arg) { return { __await: arg }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () { return this; }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) { void 0 === PromiseImpl && (PromiseImpl = Promise); var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl); return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) { return result.done ? result.value : iter.next(); }); }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () { return this; }), define(Gp, "toString", function () { return "[object Generator]"; }), exports.keys = function (val) { var object = Object(val), keys = []; for (var key in object) keys.push(key); return keys.reverse(), function next() { for (; keys.length;) { var key = keys.pop(); if (key in object) return next.value = key, next.done = !1, next; } return next.done = !0, next; }; }, exports.values = values, Context.prototype = { constructor: Context, reset: function reset(skipTempReset) { if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined); }, stop: function stop() { this.done = !0; var rootRecord = this.tryEntries[0].completion; if ("throw" === rootRecord.type) throw rootRecord.arg; return this.rval; }, dispatchException: function dispatchException(exception) { if (this.done) throw exception; var context = this; function handle(loc, caught) { return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught; } for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i], record = entry.completion; if ("root" === entry.tryLoc) return handle("end"); if (entry.tryLoc <= this.prev) { var hasCatch = hasOwn.call(entry, "catchLoc"), hasFinally = hasOwn.call(entry, "finallyLoc"); if (hasCatch && hasFinally) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } else if (hasCatch) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); } else { if (!hasFinally) throw new Error("try statement without catch or finally"); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } } } }, abrupt: function abrupt(type, arg) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) { var finallyEntry = entry; break; } } finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null); var record = finallyEntry ? finallyEntry.completion : {}; return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record); }, complete: function complete(record, afterLoc) { if ("throw" === record.type) throw record.arg; return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel; }, finish: function finish(finallyLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel; } }, catch: function _catch(tryLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc === tryLoc) { var record = entry.completion; if ("throw" === record.type) { var thrown = record.arg; resetTryEntry(entry); } return thrown; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(iterable, resultName, nextLoc) { return this.delegate = { iterator: values(iterable), resultName: resultName, nextLoc: nextLoc }, "next" === this.method && (this.arg = undefined), ContinueSentinel; } }, exports; }
|
|
16
|
+
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
|
|
17
|
+
function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
|
|
18
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
19
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
20
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
21
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
22
|
+
function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
|
|
23
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
24
|
+
// 有已在站点商品的改价前提示
|
|
25
|
+
var AfterPriceConfirm = function AfterPriceConfirm(props) {
|
|
26
|
+
var _props$content = props.content,
|
|
27
|
+
content = _props$content === void 0 ? '' : _props$content,
|
|
28
|
+
onOk = props.onOk,
|
|
29
|
+
onClose = props.onClose;
|
|
30
|
+
var _useState = (0, _react.useState)(0),
|
|
31
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
32
|
+
isKeepPrice = _useState2[0],
|
|
33
|
+
setIsKeepPrice = _useState2[1];
|
|
34
|
+
var _useState3 = (0, _react.useState)(0),
|
|
35
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
36
|
+
isKeepStatus = _useState4[0],
|
|
37
|
+
setIsKeepStatus = _useState4[1];
|
|
38
|
+
// 销售价规则 0: 重新定价 1: 按照原有定价
|
|
39
|
+
var onChangePrice = function onChangePrice(e) {
|
|
40
|
+
setIsKeepPrice(e.target.value);
|
|
41
|
+
};
|
|
42
|
+
// 上架状态 0: 重新上架 1: 保留原有上下架状态
|
|
43
|
+
var onChangePutaway = function onChangePutaway(e) {
|
|
44
|
+
setIsKeepStatus(e.target.value);
|
|
45
|
+
};
|
|
46
|
+
// 点击温馨提示确定
|
|
47
|
+
var handleOkVisiblePrice = /*#__PURE__*/function () {
|
|
48
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
49
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
50
|
+
while (1) switch (_context.prev = _context.next) {
|
|
51
|
+
case 0:
|
|
52
|
+
onOk({
|
|
53
|
+
isKeepPrice: isKeepPrice,
|
|
54
|
+
isKeepStatus: isKeepStatus
|
|
55
|
+
});
|
|
56
|
+
case 1:
|
|
57
|
+
case "end":
|
|
58
|
+
return _context.stop();
|
|
59
|
+
}
|
|
60
|
+
}, _callee);
|
|
61
|
+
}));
|
|
62
|
+
return function handleOkVisiblePrice() {
|
|
63
|
+
return _ref.apply(this, arguments);
|
|
64
|
+
};
|
|
65
|
+
}();
|
|
66
|
+
return /*#__PURE__*/_react.default.createElement(_antd.Modal, _extends({}, props, {
|
|
67
|
+
visible: true,
|
|
68
|
+
className: "after-price-confirm-components",
|
|
69
|
+
footer: null,
|
|
70
|
+
width: 480,
|
|
71
|
+
closable: false
|
|
72
|
+
}), /*#__PURE__*/_react.default.createElement("div", {
|
|
73
|
+
className: "after-price-confirm-content"
|
|
74
|
+
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
75
|
+
className: "after-price-confirm-icon-wrap"
|
|
76
|
+
}, /*#__PURE__*/_react.default.createElement(_icons.ExclamationCircleFilled, {
|
|
77
|
+
className: "after-price-confirm-icon"
|
|
78
|
+
})), /*#__PURE__*/_react.default.createElement("div", {
|
|
79
|
+
className: "main-tips"
|
|
80
|
+
}, "\u6E29\u99A8\u63D0\u793A"), /*#__PURE__*/_react.default.createElement("div", {
|
|
81
|
+
className: "sub-tips"
|
|
82
|
+
}, content), /*#__PURE__*/_react.default.createElement("div", {
|
|
83
|
+
className: "select"
|
|
84
|
+
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
85
|
+
className: "radio_select"
|
|
86
|
+
}, /*#__PURE__*/_react.default.createElement("span", {
|
|
87
|
+
className: "radio_label"
|
|
88
|
+
}, "\u9500\u552E\u4EF7\u89C4\u5219:"), /*#__PURE__*/_react.default.createElement("div", {
|
|
89
|
+
className: "radio_top"
|
|
90
|
+
}, /*#__PURE__*/_react.default.createElement(_antd.Radio.Group, {
|
|
91
|
+
onChange: onChangePrice,
|
|
92
|
+
value: isKeepPrice
|
|
93
|
+
}, /*#__PURE__*/_react.default.createElement(_antd.Radio, {
|
|
94
|
+
value: 0
|
|
95
|
+
}, "\u91CD\u65B0\u5B9A\u4EF7"), /*#__PURE__*/_react.default.createElement(_antd.Radio, {
|
|
96
|
+
value: 1
|
|
97
|
+
}, "\u6309\u7167\u539F\u6709\u5B9A\u4EF7")))), /*#__PURE__*/_react.default.createElement("div", {
|
|
98
|
+
className: "radio_select"
|
|
99
|
+
}, /*#__PURE__*/_react.default.createElement("span", {
|
|
100
|
+
className: "radio_label"
|
|
101
|
+
}, "\u4E0A\u67B6\u72B6\u6001:"), /*#__PURE__*/_react.default.createElement("div", {
|
|
102
|
+
className: "radio_bottom"
|
|
103
|
+
}, /*#__PURE__*/_react.default.createElement(_antd.Radio.Group, {
|
|
104
|
+
onChange: onChangePutaway,
|
|
105
|
+
value: isKeepStatus
|
|
106
|
+
}, /*#__PURE__*/_react.default.createElement(_antd.Radio, {
|
|
107
|
+
value: 0
|
|
108
|
+
}, "\u91CD\u65B0\u4E0A\u67B6"), /*#__PURE__*/_react.default.createElement(_antd.Radio, {
|
|
109
|
+
value: 1
|
|
110
|
+
}, "\u4FDD\u7559\u539F\u6709\u4E0A\u4E0B\u67B6\u72B6\u6001"))))), /*#__PURE__*/_react.default.createElement("div", {
|
|
111
|
+
className: "alter-buttons"
|
|
112
|
+
}, /*#__PURE__*/_react.default.createElement(_antd.Button, {
|
|
113
|
+
onClick: onClose,
|
|
114
|
+
className: "alter-button",
|
|
115
|
+
style: {
|
|
116
|
+
marginRight: 40
|
|
117
|
+
},
|
|
118
|
+
type: "default"
|
|
119
|
+
}, "\u6211\u518D\u60F3\u60F3"), /*#__PURE__*/_react.default.createElement(_antd.Button, {
|
|
120
|
+
onClick: function onClick() {
|
|
121
|
+
return handleOkVisiblePrice();
|
|
122
|
+
},
|
|
123
|
+
className: "alter-button",
|
|
124
|
+
type: "primary"
|
|
125
|
+
}, "\u786E\u5B9A"))));
|
|
126
|
+
};
|
|
127
|
+
var _default = AfterPriceConfirm;
|
|
128
|
+
exports.default = _default;
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
.after-price-confirm-components {
|
|
2
|
+
.ant-modal-body {
|
|
3
|
+
padding: 0px;
|
|
4
|
+
overflow: hidden;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.after-price-confirm-icon-wrap {
|
|
8
|
+
text-align: center;
|
|
9
|
+
|
|
10
|
+
.after-price-confirm-icon {
|
|
11
|
+
color: #faad14;
|
|
12
|
+
font-size: 38px;
|
|
13
|
+
margin: 45px auto 0 auto;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.main-tips {
|
|
18
|
+
height: 28px;
|
|
19
|
+
font-size: 20px;
|
|
20
|
+
font-weight: 600;
|
|
21
|
+
color: #494949;
|
|
22
|
+
line-height: 28px;
|
|
23
|
+
margin-top: 14px;
|
|
24
|
+
text-align: center;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.sub-tips {
|
|
28
|
+
margin-top: 20px;
|
|
29
|
+
text-align: center;
|
|
30
|
+
// height: 20px;
|
|
31
|
+
font-size: 14px;
|
|
32
|
+
font-weight: 400;
|
|
33
|
+
color: #666666;
|
|
34
|
+
line-height: 20px;
|
|
35
|
+
padding: 0 44px;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.alter-buttons {
|
|
39
|
+
margin-top: 28px;
|
|
40
|
+
padding-bottom: 45px;
|
|
41
|
+
display: flex;
|
|
42
|
+
justify-content: center;
|
|
43
|
+
|
|
44
|
+
.alter-button {
|
|
45
|
+
width: 123px;
|
|
46
|
+
height: 32px;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.select {
|
|
51
|
+
margin-top: 15px;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.radio_select {
|
|
55
|
+
width: 480px;
|
|
56
|
+
height: 25px;
|
|
57
|
+
line-height: 20px;
|
|
58
|
+
display: flex;
|
|
59
|
+
|
|
60
|
+
.radio_label {
|
|
61
|
+
width: 100px;
|
|
62
|
+
font-size: 14px;
|
|
63
|
+
float: left;
|
|
64
|
+
text-align: right;
|
|
65
|
+
margin-right: 15px;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.radio_bottom,
|
|
69
|
+
.radio_top {
|
|
70
|
+
flex: 1;
|
|
71
|
+
margin-left: 14px;
|
|
72
|
+
|
|
73
|
+
.ant-radio-wrapper:nth-child(2) {
|
|
74
|
+
margin-left: 43px;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _icons = require("@ant-design/icons");
|
|
8
|
+
/* 采用iconfont Symbol模式
|
|
9
|
+
每次更新icon后,记得复制最新的地址哦~ */
|
|
10
|
+
var Icon = (0, _icons.createFromIconfontCN)({
|
|
11
|
+
scriptUrl: ['//at.alicdn.com/t/c/font_3161758_5bzjjx85uxv.js', '//at.alicdn.com/t/font_2562875_b3aduyabrj.js']
|
|
12
|
+
});
|
|
13
|
+
var _default = Icon;
|
|
14
|
+
exports.default = _default;
|
package/lib/index.d.ts
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import type { ModalProps } from 'antd';
|
|
3
|
+
import './index.less';
|
|
4
|
+
export interface ChooseMallGoodsProps extends ModalProps {
|
|
5
|
+
env?: string;
|
|
6
|
+
token?: string;
|
|
7
|
+
loginErrFn?: any;
|
|
8
|
+
onClose?: any;
|
|
9
|
+
siteId?: string | number;
|
|
10
|
+
app: number;
|
|
11
|
+
multiple?: boolean;
|
|
12
|
+
defaultSelectedGoodsIds?: any[];
|
|
13
|
+
onSelectOk?: any;
|
|
14
|
+
isChangePrice?: boolean;
|
|
15
|
+
onChangePriceOk?: any;
|
|
16
|
+
mode?: number;
|
|
17
|
+
templateId?: string | number;
|
|
18
|
+
tabsConfig?: any;
|
|
19
|
+
}
|
|
20
|
+
declare const ChooseMallGoods: FC<ChooseMallGoodsProps>;
|
|
21
|
+
export default ChooseMallGoods;
|