@teamix/pro 1.5.37 → 1.5.38
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/pro.js +83 -24
- package/dist/pro.min.js +1 -1
- package/es/form/Filter/index.js +18 -7
- package/es/index.d.ts +1 -1
- package/es/index.js +1 -1
- package/es/table/components/Cell/index.js +1 -1
- package/es/table/components/Layout/index.js +2 -1
- package/es/table/index.js +4 -2
- package/es/table/utils/index.d.ts +65 -1
- package/es/table/utils/index.js +1 -0
- package/es/table/utils/useTableSelection.js +6 -2
- package/lib/form/Filter/index.js +18 -7
- package/lib/index.d.ts +1 -1
- package/lib/index.js +1 -1
- package/lib/table/components/Cell/index.js +1 -1
- package/lib/table/components/Layout/index.js +2 -1
- package/lib/table/index.js +4 -2
- package/lib/table/utils/index.d.ts +65 -1
- package/lib/table/utils/index.js +1 -0
- package/lib/table/utils/useTableSelection.js +5 -1
- package/package.json +1 -1
package/dist/pro.js
CHANGED
@@ -81580,10 +81580,10 @@ var MenuCascaderSelect = function MenuCascaderSelect(props) {
|
|
81580
81580
|
setDataSource(dataSourceProp);
|
81581
81581
|
return;
|
81582
81582
|
}
|
81583
|
-
setSearchValue(value);
|
81583
|
+
setSearchValue(value === null || value === void 0 ? void 0 : value.trimStart());
|
81584
81584
|
var _filterTreeData = (0,_utils__WEBPACK_IMPORTED_MODULE_6__/* .filterTreeData */ .lH)(dataSourceProp, function (node) {
|
81585
|
-
var _node$label;
|
81586
|
-
return ((_node$label = node === null || node === void 0 ? void 0 : node.label) !== null && _node$label !== void 0 ? _node$label : '').includes(value);
|
81585
|
+
var _node$label$toLowerCa, _node$label, _value$trim;
|
81586
|
+
return ((_node$label$toLowerCa = node === null || node === void 0 ? void 0 : (_node$label = node.label) === null || _node$label === void 0 ? void 0 : _node$label.toLowerCase()) !== null && _node$label$toLowerCa !== void 0 ? _node$label$toLowerCa : '').includes(value === null || value === void 0 ? void 0 : (_value$trim = value.trim()) === null || _value$trim === void 0 ? void 0 : _value$trim.toLowerCase());
|
81587
81587
|
}),
|
81588
81588
|
filterTreeValue = _filterTreeData.filterTreeValue;
|
81589
81589
|
setDataSource(filterTreeValue);
|
@@ -81693,8 +81693,7 @@ var MenuCascaderSelect = function MenuCascaderSelect(props) {
|
|
81693
81693
|
placeholder: (0,_teamix_utils__WEBPACK_IMPORTED_MODULE_2__.getMessage)('searchCloudProduct'),
|
81694
81694
|
value: searchValue,
|
81695
81695
|
onChange: onSearch,
|
81696
|
-
hasClear: true
|
81697
|
-
trim: true
|
81696
|
+
hasClear: true
|
81698
81697
|
}, searchProps))), !!renderSearch && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement("div", {
|
81699
81698
|
className: cls('search')
|
81700
81699
|
}, renderSearch), !renderExtra && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement(_alicloudfe_components__WEBPACK_IMPORTED_MODULE_0__.Checkbox, {
|
@@ -81892,7 +81891,7 @@ var MenuCascaderSelect = function MenuCascaderSelect(props) {
|
|
81892
81891
|
/* harmony import */ var _teamix_icon__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(66126);
|
81893
81892
|
/* harmony import */ var ___WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(35511);
|
81894
81893
|
/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(72326);
|
81895
|
-
var _excluded = ["dataSource", "col", "width", "value", "onChange", "showAll", "size", "hideTitle", "placeholder", "className", "multiple", "label"];
|
81894
|
+
var _excluded = ["dataSource", "col", "width", "value", "onChange", "showAll", "size", "hideTitle", "placeholder", "className", "multiple", "label", "hideMore"];
|
81896
81895
|
function ownKeys(object, enumerableOnly) {
|
81897
81896
|
var keys = Object.keys(object);
|
81898
81897
|
if (Object.getOwnPropertySymbols) {
|
@@ -82056,6 +82055,8 @@ var MenuSelect = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().forwa
|
|
82056
82055
|
_props$multiple = props.multiple,
|
82057
82056
|
multiple = _props$multiple === void 0 ? false : _props$multiple,
|
82058
82057
|
label = props.label,
|
82058
|
+
_props$hideMore = props.hideMore,
|
82059
|
+
hideMore = _props$hideMore === void 0 ? false : _props$hideMore,
|
82059
82060
|
others = _objectWithoutProperties(props, _excluded);
|
82060
82061
|
var ref = (0,react__WEBPACK_IMPORTED_MODULE_1__.useRef)();
|
82061
82062
|
var _useState = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)([]),
|
@@ -82376,7 +82377,12 @@ var MenuSelect = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().forwa
|
|
82376
82377
|
className: cls('search-label')
|
82377
82378
|
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_teamix_icon__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z, {
|
82378
82379
|
type: "search-line"
|
82379
|
-
}),
|
82380
|
+
}), hideMore ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(___WEBPACK_IMPORTED_MODULE_4__/* .ProTagGroup */ .VM, {
|
82381
|
+
moreTooltip: true,
|
82382
|
+
tag: searchTags.map(function (item) {
|
82383
|
+
return item;
|
82384
|
+
})
|
82385
|
+
}) : searchTags.map(function (item) {
|
82380
82386
|
return (0,___WEBPACK_IMPORTED_MODULE_4__/* .renderTags */ .as)(item);
|
82381
82387
|
}));
|
82382
82388
|
};
|
@@ -83970,6 +83976,10 @@ function mappingOptions(fieldVal, render, options, beforeFormatter, customOption
|
|
83970
83976
|
if (render && (render === null || render === void 0 ? void 0 : render.type) === 'tag') {
|
83971
83977
|
return getNodeForRender(value, targetOptions, render, renderTag);
|
83972
83978
|
}
|
83979
|
+
// 输出TagGroup
|
83980
|
+
if (render && (render === null || render === void 0 ? void 0 : render.type) === 'groupTag') {
|
83981
|
+
return getNodeForRender(value, targetOptions, render, renderGroupTag);
|
83982
|
+
}
|
83973
83983
|
// 输出status tag
|
83974
83984
|
if (render && (render === null || render === void 0 ? void 0 : render.type) === 'statusTag') {
|
83975
83985
|
return getNodeForRender(value, targetOptions, render, renderStatusTag);
|
@@ -84069,6 +84079,33 @@ var renderTag = function renderTag(item, render) {
|
|
84069
84079
|
size: render.size
|
84070
84080
|
});
|
84071
84081
|
};
|
84082
|
+
var renderGroupTag = function renderGroupTag(item, render) {
|
84083
|
+
var renderClone = _objectSpread({}, render);
|
84084
|
+
if ((0,_utils__WEBPACK_IMPORTED_MODULE_3__/* .isNull */ .Ft)(item)) {
|
84085
|
+
var _renderClone$emptyTex;
|
84086
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement((react__WEBPACK_IMPORTED_MODULE_0___default().Fragment), null, (_renderClone$emptyTex = renderClone === null || renderClone === void 0 ? void 0 : renderClone.emptyText) !== null && _renderClone$emptyTex !== void 0 ? _renderClone$emptyTex : '');
|
84087
|
+
}
|
84088
|
+
if (Array.isArray(item)) {
|
84089
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_commonComponents__WEBPACK_IMPORTED_MODULE_8__/* .ProTagGroup */ .VM, _objectSpread(_objectSpread({
|
84090
|
+
moreTooltip: true
|
84091
|
+
}, renderClone === null || renderClone === void 0 ? void 0 : renderClone.groupTagProps), {}, {
|
84092
|
+
tag: item === null || item === void 0 ? void 0 : item.map(function (v) {
|
84093
|
+
return {
|
84094
|
+
children: v,
|
84095
|
+
color: renderClone === null || renderClone === void 0 ? void 0 : renderClone.color
|
84096
|
+
};
|
84097
|
+
})
|
84098
|
+
}));
|
84099
|
+
}
|
84100
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_commonComponents__WEBPACK_IMPORTED_MODULE_8__/* .ProTagGroup */ .VM, _objectSpread(_objectSpread({
|
84101
|
+
moreTooltip: true
|
84102
|
+
}, renderClone === null || renderClone === void 0 ? void 0 : renderClone.groupTagProps), {}, {
|
84103
|
+
tag: [{
|
84104
|
+
children: item,
|
84105
|
+
color: renderClone === null || renderClone === void 0 ? void 0 : renderClone.color
|
84106
|
+
}]
|
84107
|
+
}));
|
84108
|
+
};
|
84072
84109
|
/**
|
84073
84110
|
* 渲渲染告警等级tag
|
84074
84111
|
* @param item 输出的文本
|
@@ -84272,6 +84309,9 @@ var getNodeForRender = function getNodeForRender(value, options, render, compone
|
|
84272
84309
|
}
|
84273
84310
|
// 输出多项
|
84274
84311
|
if (Array.isArray(value)) {
|
84312
|
+
if ((render === null || render === void 0 ? void 0 : render.type) === 'groupTag') {
|
84313
|
+
return component === null || component === void 0 ? void 0 : component(value, renderClone);
|
84314
|
+
}
|
84275
84315
|
// 有折叠的情况
|
84276
84316
|
if (render.maxShowNumber) {
|
84277
84317
|
return processHidden(value, renderClone, component);
|
@@ -108779,13 +108819,13 @@ var SimpleFilter = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_0__.memo)(func
|
|
108779
108819
|
/* harmony import */ var _useSpecialProps__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(50667);
|
108780
108820
|
/* harmony import */ var _useBindUrl__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(38740);
|
108781
108821
|
var _excluded = ["addonAfter", "addonBefore", "mode", "purePanel", "expand", "formRef", "defaultFilterValue", "filterValues", "filterDebounce", "bindUrl", "onFilter", "onInit", "onReset", "onExpand", "onChange", "form"];
|
108782
|
-
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); }
|
108783
108822
|
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
108784
108823
|
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
108785
108824
|
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); }
|
108786
108825
|
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
108787
108826
|
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
108788
108827
|
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; }
|
108828
|
+
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); }
|
108789
108829
|
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 method = delegate.iterator[context.method]; if (undefined === method) { if (context.delegate = null, "throw" === context.method) { if (delegate.iterator["return"] && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method)) return ContinueSentinel; context.method = "throw", context.arg = new TypeError("The iterator does not provide a 'throw' method"); } return 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; }
|
108790
108830
|
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); } }
|
108791
108831
|
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); }); }; }
|
@@ -109094,7 +109134,17 @@ var QueryFilter = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_0__.memo)(funct
|
|
109094
109134
|
|
109095
109135
|
// 设置筛选数据
|
109096
109136
|
var configFilterItem = (0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)(function (form) {
|
109097
|
-
|
109137
|
+
var _getFilterDisplayValu;
|
109138
|
+
filterItem.current = (_getFilterDisplayValu = getFilterDisplayValues(form)) == null ? void 0 : _getFilterDisplayValu.map(function (item) {
|
109139
|
+
var _props$schema;
|
109140
|
+
// 需要找到 props 作为 proField 标签内渲染用
|
109141
|
+
var schemaFieldProps = (_props$schema = props.schema) == null ? void 0 : _props$schema.find == null ? void 0 : _props$schema.find(function (schemaItem) {
|
109142
|
+
return (item == null ? void 0 : item.key) === (schemaItem == null ? void 0 : schemaItem.name);
|
109143
|
+
});
|
109144
|
+
return _extends({}, item, {
|
109145
|
+
props: schemaFieldProps == null ? void 0 : schemaFieldProps.props
|
109146
|
+
});
|
109147
|
+
});
|
109098
109148
|
}, []);
|
109099
109149
|
|
109100
109150
|
// 设置标签数据
|
@@ -109273,7 +109323,8 @@ var QueryFilter = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_0__.memo)(funct
|
|
109273
109323
|
label = _ref7.label,
|
109274
109324
|
value = _ref7.value,
|
109275
109325
|
type = _ref7.type,
|
109276
|
-
index = _ref7.index
|
109326
|
+
index = _ref7.index,
|
109327
|
+
props = _ref7.props;
|
109277
109328
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_alicloudfe_components__WEBPACK_IMPORTED_MODULE_2__.Tag.Closeable, {
|
109278
109329
|
key: (0,_teamix_utils__WEBPACK_IMPORTED_MODULE_5__.isNum)(index) ? key + label : key,
|
109279
109330
|
afterClose: function afterClose() {
|
@@ -109283,10 +109334,10 @@ var QueryFilter = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_0__.memo)(funct
|
|
109283
109334
|
className: prefixCls('tag-title')
|
109284
109335
|
}, label), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("span", {
|
109285
109336
|
className: prefixCls('tag-content')
|
109286
|
-
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_field_index__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .ZP, {
|
109337
|
+
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_field_index__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .ZP, _extends({
|
109287
109338
|
type: type,
|
109288
109339
|
value: value
|
109289
|
-
})));
|
109340
|
+
}, props != null ? props : {}))));
|
109290
109341
|
})) : null);
|
109291
109342
|
});
|
109292
109343
|
QueryFilter.defaultProps = {
|
@@ -112490,7 +112541,7 @@ if (!((_window = window) != null && _window.TEAMIXPRO_WITHOUT_ICON)) {
|
|
112490
112541
|
|
112491
112542
|
|
112492
112543
|
|
112493
|
-
var version = '1.5.
|
112544
|
+
var version = '1.5.38';
|
112494
112545
|
|
112495
112546
|
// By TeamixTest
|
112496
112547
|
window.postMessage({
|
@@ -117447,7 +117498,7 @@ var Cell = function Cell(props) {
|
|
117447
117498
|
}
|
117448
117499
|
}, itemProps);
|
117449
117500
|
}
|
117450
|
-
if ((render == null ? void 0 : render.type) === 'step') {
|
117501
|
+
if ((render == null ? void 0 : render.type) === 'step' || (render == null ? void 0 : render.type) === 'groupTag') {
|
117451
117502
|
newRender = _extends({}, newRender, {
|
117452
117503
|
ellipsis: false
|
117453
117504
|
});
|
@@ -117906,7 +117957,6 @@ var Layout = function Layout(props) {
|
|
117906
117957
|
bindUrl = props.bindUrl,
|
117907
117958
|
bindUrlProps = props.bindUrlProps,
|
117908
117959
|
otherProps = _objectWithoutPropertiesLoose(props, _excluded);
|
117909
|
-
|
117910
117960
|
// 渲染主操作区
|
117911
117961
|
var renderMainAction = function renderMainAction() {
|
117912
117962
|
var _actions;
|
@@ -118015,7 +118065,7 @@ var Layout = function Layout(props) {
|
|
118015
118065
|
// todo: 有问题
|
118016
118066
|
mainAction,
|
118017
118067
|
// todo: 有问题
|
118018
|
-
dataFilterFormRef, afterDataFilter, rowSelection]);
|
118068
|
+
dataFilterFormRef, afterDataFilter, rowSelection, actionRef.current]);
|
118019
118069
|
|
118020
118070
|
// 区域组合渲染
|
118021
118071
|
var renderLayout = function renderLayout() {
|
@@ -118060,6 +118110,8 @@ var Layout = function Layout(props) {
|
|
118060
118110
|
}
|
118061
118111
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement((react__WEBPACK_IMPORTED_MODULE_0___default().Fragment), null);
|
118062
118112
|
};
|
118113
|
+
|
118114
|
+
// export default Layout
|
118063
118115
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().memo(Layout));
|
118064
118116
|
|
118065
118117
|
/***/ }),
|
@@ -120217,7 +120269,7 @@ var ProTable = function ProTable(props) {
|
|
120217
120269
|
});
|
120218
120270
|
|
120219
120271
|
// 绑定 Actions
|
120220
|
-
(0,_utils__WEBPACK_IMPORTED_MODULE_7__/* .useActionType */ .tx)(actionRef, {
|
120272
|
+
actionRef.current = (0,_utils__WEBPACK_IMPORTED_MODULE_7__/* .useActionType */ .tx)(actionRef, {
|
120221
120273
|
fullScreen: function fullScreen() {
|
120222
120274
|
var _actionRef$current2;
|
120223
120275
|
var state = !fullscreenState;
|
@@ -120696,7 +120748,9 @@ var ProTable = function ProTable(props) {
|
|
120696
120748
|
mainAction: mainAction,
|
120697
120749
|
extra: extra,
|
120698
120750
|
toolBar: toolBar,
|
120699
|
-
actionRef:
|
120751
|
+
actionRef: {
|
120752
|
+
current: actionRef.current
|
120753
|
+
},
|
120700
120754
|
columns: propsColumns,
|
120701
120755
|
dataFilter: dataFilter,
|
120702
120756
|
afterDataFilter: afterDataFilter,
|
@@ -121883,6 +121937,7 @@ function initActionRef(ref, action) {
|
|
121883
121937
|
}
|
121884
121938
|
function useActionType(ref, action) {
|
121885
121939
|
ref.current = _extends({}, ref.current, action);
|
121940
|
+
return _extends({}, ref.current, action);
|
121886
121941
|
}
|
121887
121942
|
function cloneDeep(obj) {
|
121888
121943
|
return cloneDeepLodash(obj);
|
@@ -122222,12 +122277,16 @@ function useTableSelection(config, records, primaryKey) {
|
|
122222
122277
|
defaultSelectedRecords = _config$defaultSelect === void 0 ? [] : _config$defaultSelect,
|
122223
122278
|
_config$defaultSelect2 = _config.defaultSelectedRowKeys,
|
122224
122279
|
defaultSelectedRowKeys = _config$defaultSelect2 === void 0 ? [] : _config$defaultSelect2;
|
122225
|
-
var _useState = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(defaultSelectedRowKeys),
|
122280
|
+
var _useState = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(config.selectedRowKeys || defaultSelectedRowKeys),
|
122226
122281
|
selectedRowKeys = _useState[0],
|
122227
122282
|
setSelectedRowKeys = _useState[1];
|
122228
122283
|
var _useState2 = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(defaultSelectedRecords),
|
122229
122284
|
selectedRecords = _useState2[0],
|
122230
122285
|
setSelectedRecords = _useState2[1];
|
122286
|
+
(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(function () {
|
122287
|
+
var _config$selectedRowKe, _config2;
|
122288
|
+
setSelectedRowKeys((_config$selectedRowKe = (_config2 = config) == null ? void 0 : _config2.selectedRowKeys) != null ? _config$selectedRowKe : []);
|
122289
|
+
}, [config.selectedRowKeys]);
|
122231
122290
|
function _onChange(value, records) {
|
122232
122291
|
if (primaryKey) {
|
122233
122292
|
var newValue = value.filter(function (v) {
|
@@ -122270,8 +122329,8 @@ function useTableSelection(config, records, primaryKey) {
|
|
122270
122329
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_alicloudfe_components__WEBPACK_IMPORTED_MODULE_2__.Checkbox, _extends({
|
122271
122330
|
checked: selectedRowKeys.includes(primaryKey),
|
122272
122331
|
onChange: function onChange(checked) {
|
122273
|
-
var
|
122274
|
-
(
|
122332
|
+
var _config3;
|
122333
|
+
(_config3 = config) == null ? void 0 : _config3.onSelect == null ? void 0 : _config3.onSelect(checked, record, records);
|
122275
122334
|
if (checked) {
|
122276
122335
|
_onChange == null ? void 0 : _onChange([].concat(_toConsumableArray(selectedRowKeys), [primaryKey]), [record]);
|
122277
122336
|
} else {
|
@@ -122283,12 +122342,12 @@ function useTableSelection(config, records, primaryKey) {
|
|
122283
122342
|
}, others));
|
122284
122343
|
};
|
122285
122344
|
var getProps = function getProps(record, index) {
|
122286
|
-
var
|
122287
|
-
var propResult = (
|
122345
|
+
var _config4, _config5;
|
122346
|
+
var propResult = (_config4 = config) == null ? void 0 : _config4.getProps == null ? void 0 : _config4.getProps(record, index);
|
122288
122347
|
// console.log('propResult', propResult, selectedRowKeys);
|
122289
122348
|
var resultProps = _extends({}, record, propResult);
|
122290
122349
|
var primaryKey = record == null ? void 0 : record[resultProps == null ? void 0 : resultProps['_primaryKey']];
|
122291
|
-
if (((
|
122350
|
+
if (((_config5 = config) == null ? void 0 : _config5.mode) === 'single') {
|
122292
122351
|
return resultProps;
|
122293
122352
|
}
|
122294
122353
|
return _extends({}, resultProps, {
|