wargerm 0.3.14 → 0.3.17
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.esm.js +11 -3
- package/dist/index.js +11 -3
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
@@ -729,7 +729,12 @@ var WSelect = function WSelect(props) {
|
|
729
729
|
onLoad && onLoad(options);
|
730
730
|
setValueEnumList(valueEnumNode);
|
731
731
|
}, [JSON.stringify(resList), JSON.stringify(request), JSON.stringify(params || {})]);
|
732
|
-
return /*#__PURE__*/React.createElement(_Select, _objectSpread2({
|
732
|
+
return /*#__PURE__*/React.createElement(_Select, _objectSpread2({
|
733
|
+
showSearch: true,
|
734
|
+
filterOption: function filterOption(input, option) {
|
735
|
+
return option.children.toLowerCase().indexOf(input.toLowerCase()) >= 0;
|
736
|
+
}
|
737
|
+
}, extraProps), request ? childrenNode : valueEnum ? valueEnumList : children);
|
733
738
|
};
|
734
739
|
|
735
740
|
WSelect.defaultProps = {};
|
@@ -6622,6 +6627,8 @@ var TreeSelect = function TreeSelect(_ref) {
|
|
6622
6627
|
}))();
|
6623
6628
|
}, []);
|
6624
6629
|
return /*#__PURE__*/React.createElement(_TreeSelect, _objectSpread2({
|
6630
|
+
showSearch: true,
|
6631
|
+
treeNodeFilterProp: "title",
|
6625
6632
|
treeDefaultExpandAll: true
|
6626
6633
|
}, props), !props.children ? renderTree(treeData) : props.children);
|
6627
6634
|
};
|
@@ -10128,7 +10135,7 @@ var ModalForm = function ModalForm(props, ref) {
|
|
10128
10135
|
|
10129
10136
|
var ModalForm$1 = /*#__PURE__*/React.forwardRef(ModalForm);
|
10130
10137
|
|
10131
|
-
var _excluded$h = ["columns", "extraColumns", "request", "modalFormSearch", "search", "tableAction", "renderTableBar", "className", "style", "onFormChange", "modalConfig", "optionColumnConfig"],
|
10138
|
+
var _excluded$h = ["columns", "extraColumns", "request", "modalFormSearch", "search", "tableAction", "renderTableBar", "className", "style", "onFormChange", "modalConfig", "optionColumnConfig", "pagination"],
|
10132
10139
|
_excluded2$3 = ["actionMethod"];
|
10133
10140
|
|
10134
10141
|
var TabelCard = function TabelCard(props, ref) {
|
@@ -10144,6 +10151,7 @@ var TabelCard = function TabelCard(props, ref) {
|
|
10144
10151
|
onFormChange = props.onFormChange,
|
10145
10152
|
modalConfig = props.modalConfig,
|
10146
10153
|
optionColumnConfig = props.optionColumnConfig,
|
10154
|
+
pagination = props.pagination,
|
10147
10155
|
extraProps = _objectWithoutProperties(props, _excluded$h);
|
10148
10156
|
|
10149
10157
|
var actionRef = useRef();
|
@@ -10622,7 +10630,7 @@ var TabelCard = function TabelCard(props, ref) {
|
|
10622
10630
|
return obj;
|
10623
10631
|
}),
|
10624
10632
|
search: false,
|
10625
|
-
pagination: {
|
10633
|
+
pagination: pagination || {
|
10626
10634
|
pageSize: 20
|
10627
10635
|
}
|
10628
10636
|
}, extraProps)));
|
package/dist/index.js
CHANGED
@@ -763,7 +763,12 @@ var WSelect = function WSelect(props) {
|
|
763
763
|
onLoad && onLoad(options);
|
764
764
|
setValueEnumList(valueEnumNode);
|
765
765
|
}, [JSON.stringify(resList), JSON.stringify(request), JSON.stringify(params || {})]);
|
766
|
-
return /*#__PURE__*/React__default['default'].createElement(_Select__default['default'], _objectSpread2({
|
766
|
+
return /*#__PURE__*/React__default['default'].createElement(_Select__default['default'], _objectSpread2({
|
767
|
+
showSearch: true,
|
768
|
+
filterOption: function filterOption(input, option) {
|
769
|
+
return option.children.toLowerCase().indexOf(input.toLowerCase()) >= 0;
|
770
|
+
}
|
771
|
+
}, extraProps), request ? childrenNode : valueEnum ? valueEnumList : children);
|
767
772
|
};
|
768
773
|
|
769
774
|
WSelect.defaultProps = {};
|
@@ -6656,6 +6661,8 @@ var TreeSelect = function TreeSelect(_ref) {
|
|
6656
6661
|
}))();
|
6657
6662
|
}, []);
|
6658
6663
|
return /*#__PURE__*/React__default['default'].createElement(_TreeSelect__default['default'], _objectSpread2({
|
6664
|
+
showSearch: true,
|
6665
|
+
treeNodeFilterProp: "title",
|
6659
6666
|
treeDefaultExpandAll: true
|
6660
6667
|
}, props), !props.children ? renderTree(treeData) : props.children);
|
6661
6668
|
};
|
@@ -10162,7 +10169,7 @@ var ModalForm = function ModalForm(props, ref) {
|
|
10162
10169
|
|
10163
10170
|
var ModalForm$1 = /*#__PURE__*/React__default['default'].forwardRef(ModalForm);
|
10164
10171
|
|
10165
|
-
var _excluded$h = ["columns", "extraColumns", "request", "modalFormSearch", "search", "tableAction", "renderTableBar", "className", "style", "onFormChange", "modalConfig", "optionColumnConfig"],
|
10172
|
+
var _excluded$h = ["columns", "extraColumns", "request", "modalFormSearch", "search", "tableAction", "renderTableBar", "className", "style", "onFormChange", "modalConfig", "optionColumnConfig", "pagination"],
|
10166
10173
|
_excluded2$3 = ["actionMethod"];
|
10167
10174
|
|
10168
10175
|
var TabelCard = function TabelCard(props, ref) {
|
@@ -10178,6 +10185,7 @@ var TabelCard = function TabelCard(props, ref) {
|
|
10178
10185
|
onFormChange = props.onFormChange,
|
10179
10186
|
modalConfig = props.modalConfig,
|
10180
10187
|
optionColumnConfig = props.optionColumnConfig,
|
10188
|
+
pagination = props.pagination,
|
10181
10189
|
extraProps = _objectWithoutProperties(props, _excluded$h);
|
10182
10190
|
|
10183
10191
|
var actionRef = React.useRef();
|
@@ -10656,7 +10664,7 @@ var TabelCard = function TabelCard(props, ref) {
|
|
10656
10664
|
return obj;
|
10657
10665
|
}),
|
10658
10666
|
search: false,
|
10659
|
-
pagination: {
|
10667
|
+
pagination: pagination || {
|
10660
10668
|
pageSize: 20
|
10661
10669
|
}
|
10662
10670
|
}, extraProps)));
|