linkmore-design 1.1.27 → 1.1.28
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/index.umd.js +8 -5
- package/dist/index.umd.min.js +2 -2
- package/es/LmFilter/baseFilter/index.js +3 -2
- package/es/LmFilter/filterFns/index.js +4 -2
- package/es/LmUpload/body/UploadCore.js +1 -1
- package/lib/LmFilter/baseFilter/index.js +3 -2
- package/lib/LmFilter/filterFns/index.js +4 -2
- package/lib/LmUpload/body/UploadCore.js +1 -1
- package/package.json +1 -1
package/dist/index.umd.js
CHANGED
|
@@ -91007,8 +91007,9 @@
|
|
|
91007
91007
|
// 二级过滤 => 基础过滤组件
|
|
91008
91008
|
var LmFilterBase = /*#__PURE__*/React__default['default'].memo(function (_ref) {
|
|
91009
91009
|
var instance = _ref.instance;
|
|
91010
|
-
var dataSource = instance.dataSource
|
|
91011
|
-
|
|
91010
|
+
var dataSource = instance.dataSource,
|
|
91011
|
+
enableSearch = instance.enableSearch;
|
|
91012
|
+
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, enableSearch && /*#__PURE__*/React__default['default'].createElement(FuzzySearch, {
|
|
91012
91013
|
instance: instance
|
|
91013
91014
|
}), dataSource.map(function (v, index) {
|
|
91014
91015
|
var isHidden = !v.show && typeof v.show === 'boolean';
|
|
@@ -92881,6 +92882,7 @@
|
|
|
92881
92882
|
|
|
92882
92883
|
if (getIsHas(itemValue) && !!item) {
|
|
92883
92884
|
return [].concat(_toConsumableArray$1(pre), [{
|
|
92885
|
+
relation: obj[cur].mode || 'and',
|
|
92884
92886
|
fieldName: cur,
|
|
92885
92887
|
fieldType: (item === null || item === void 0 ? void 0 : item.valueType) || 'string',
|
|
92886
92888
|
type: item.type,
|
|
@@ -92890,7 +92892,7 @@
|
|
|
92890
92892
|
* and 等同于逻辑关系contains: 选中的值包含所有值
|
|
92891
92893
|
* or 等同于逻辑关系in: 选中的值存在于所有值之中
|
|
92892
92894
|
*/
|
|
92893
|
-
operator:
|
|
92895
|
+
operator: 'in'
|
|
92894
92896
|
}]);
|
|
92895
92897
|
}
|
|
92896
92898
|
|
|
@@ -93056,11 +93058,12 @@
|
|
|
93056
93058
|
if (getIsHas(itemValue) && !!item) {
|
|
93057
93059
|
// eslint-disable-next-line no-param-reassign
|
|
93058
93060
|
pre[cur] = {
|
|
93061
|
+
relation: complexFilter[cur].mode || 'and',
|
|
93059
93062
|
fieldName: cur,
|
|
93060
93063
|
fieldType: (item === null || item === void 0 ? void 0 : item.valueType) || 'string',
|
|
93061
93064
|
type: item.type,
|
|
93062
93065
|
value: Array.isArray(itemValue) ? itemValue : [itemValue],
|
|
93063
|
-
operator:
|
|
93066
|
+
operator: 'in'
|
|
93064
93067
|
};
|
|
93065
93068
|
}
|
|
93066
93069
|
|
|
@@ -182040,7 +182043,7 @@
|
|
|
182040
182043
|
var isUploading = getUploadStatus().uploading;
|
|
182041
182044
|
if (isUploading) return;
|
|
182042
182045
|
inputRef === null || inputRef === void 0 ? void 0 : (_inputRef$current = inputRef.current) === null || _inputRef$current === void 0 ? void 0 : _inputRef$current.click();
|
|
182043
|
-
}, [getUploadStatus]); // 上传触发事件
|
|
182046
|
+
}, [disabled, getUploadStatus]); // 上传触发事件
|
|
182044
182047
|
|
|
182045
182048
|
var uploadChange = React.useCallback(function (e) {
|
|
182046
182049
|
var _inputRef$current2;
|