@vtx/components 4.0.0-beta.41 → 4.0.0-beta.42
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/vtx-import2/index.js
CHANGED
|
@@ -26,7 +26,7 @@ import getToken from "../utils/getToken";
|
|
|
26
26
|
import getSignature from '@vtx/utils/lib/getSignature';
|
|
27
27
|
import useSet from "../utils/useSet";
|
|
28
28
|
import md5 from 'md5';
|
|
29
|
-
import { getVtxToken } from '@vtx/utils';
|
|
29
|
+
import { getVtxToken, getUrlParam } from '@vtx/utils';
|
|
30
30
|
import classnames from 'classnames';
|
|
31
31
|
import { useStyle } from "./style/index";
|
|
32
32
|
import { VtxProvider, useIntl } from "../vtx-provider";
|
|
@@ -130,7 +130,6 @@ var VtxTreeSelect = function VtxTreeSelect(_ref) {
|
|
|
130
130
|
setPopWidth(size === null || size === void 0 ? void 0 : size.width);
|
|
131
131
|
}
|
|
132
132
|
}, [size === null || size === void 0 ? void 0 : size.width]);
|
|
133
|
-
console.log('selectedNodes', selectedNodes);
|
|
134
133
|
var popoverContent = /*#__PURE__*/_jsxs(_Fragment, {
|
|
135
134
|
children: [/*#__PURE__*/_jsxs("div", {
|
|
136
135
|
className: classnames("".concat(prefixCls, "-count-head"), hashId),
|
|
@@ -209,7 +208,8 @@ var VtxTreeSelect = function VtxTreeSelect(_ref) {
|
|
|
209
208
|
maxTagCount: "responsive",
|
|
210
209
|
treeDefaultExpandAll: true,
|
|
211
210
|
fieldNames: fieldNames,
|
|
212
|
-
labelInValue: _labelInValue
|
|
211
|
+
labelInValue: _labelInValue,
|
|
212
|
+
disabled: disabled
|
|
213
213
|
}, props), {}, {
|
|
214
214
|
onChange: function onChange(value, label, extra) {
|
|
215
215
|
return onChangeTreeSelect(value, label, extra, selectedNodes);
|
package/lib/vtx-import2/index.js
CHANGED
|
@@ -257,7 +257,7 @@ var VtxImport2 = exports.VtxImport2 = function VtxImport2(props) {
|
|
|
257
257
|
}
|
|
258
258
|
request.setRequestHeader('Authorization', token ? "Bearer ".concat(token) : '');
|
|
259
259
|
request.setRequestHeader('access_token', token ? "".concat(token) : '');
|
|
260
|
-
request.setRequestHeader('systemCode', getUrlParam('systemCode') ? getUrlParam('systemCode') : '');
|
|
260
|
+
request.setRequestHeader('systemCode', (0, _utils.getUrlParam)('systemCode') ? (0, _utils.getUrlParam)('systemCode') : '');
|
|
261
261
|
// 添加操作日志
|
|
262
262
|
request.setRequestHeader('operation', encodeURIComponent(JSON.stringify({
|
|
263
263
|
menuId: sessionStorage.getItem('vtxmenuselectedKeys'),
|
|
@@ -137,7 +137,6 @@ var VtxTreeSelect = exports.VtxTreeSelect = function VtxTreeSelect(_ref) {
|
|
|
137
137
|
setPopWidth(size === null || size === void 0 ? void 0 : size.width);
|
|
138
138
|
}
|
|
139
139
|
}, [size === null || size === void 0 ? void 0 : size.width]);
|
|
140
|
-
console.log('selectedNodes', selectedNodes);
|
|
141
140
|
var popoverContent = /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
142
141
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
143
142
|
className: (0, _classnames.default)("".concat(prefixCls, "-count-head"), hashId),
|
|
@@ -216,7 +215,8 @@ var VtxTreeSelect = exports.VtxTreeSelect = function VtxTreeSelect(_ref) {
|
|
|
216
215
|
maxTagCount: "responsive",
|
|
217
216
|
treeDefaultExpandAll: true,
|
|
218
217
|
fieldNames: fieldNames,
|
|
219
|
-
labelInValue: _labelInValue
|
|
218
|
+
labelInValue: _labelInValue,
|
|
219
|
+
disabled: disabled
|
|
220
220
|
}, props), {}, {
|
|
221
221
|
onChange: function onChange(value, label, extra) {
|
|
222
222
|
return onChangeTreeSelect(value, label, extra, selectedNodes);
|