wargerm 0.3.9 → 0.3.10

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.
@@ -10,5 +10,5 @@ export interface ISelect extends SelectProps<any> {
10
10
  export declare type IWSelectComponent = React.FC<ISelect> & {
11
11
  Option?: React.FC<IOptionProps>;
12
12
  };
13
- declare let Index: IWSelectComponent;
14
- export default Index;
13
+ declare const _default: React.NamedExoticComponent<ISelect>;
14
+ export default _default;
package/dist/index.esm.js CHANGED
@@ -737,7 +737,7 @@ var WSelect = function WSelect(props) {
737
737
 
738
738
  onLoad && onLoad(options);
739
739
  setValueEnumList(valueEnumNode);
740
- }, [JSON.stringify(resList), request]);
740
+ }, [JSON.stringify(resList), JSON.stringify(request)]);
741
741
  return /*#__PURE__*/React.createElement(_Select, _objectSpread2({}, extraProps), request ? childrenNode : valueEnum ? valueEnumList : children);
742
742
  };
743
743
 
@@ -752,6 +752,7 @@ var Option = function Option(props) {
752
752
 
753
753
  var Index$4 = WSelect;
754
754
  Index$4.Option = Option;
755
+ var Select = /*#__PURE__*/React.memo(Index$4);
755
756
 
756
757
  //! moment.js
757
758
  //! version : 2.29.1
@@ -6783,7 +6784,7 @@ var WForm = function WForm(props, ref) {
6783
6784
  name: c.dataIndex,
6784
6785
  label: c.title,
6785
6786
  labelCol: labelCol
6786
- }), /*#__PURE__*/React.createElement(Index$4, _objectSpread2(_objectSpread2({
6787
+ }), /*#__PURE__*/React.createElement(Select, _objectSpread2(_objectSpread2({
6787
6788
  placeholder: "\u8BF7\u9009\u62E9",
6788
6789
  disabled: disabled,
6789
6790
  onLoad: function onLoad(opt) {
@@ -7283,7 +7284,7 @@ var WForm = function WForm(props, ref) {
7283
7284
  name: c.dataIndex,
7284
7285
  label: c.title,
7285
7286
  labelCol: labelCol
7286
- }), /*#__PURE__*/React.createElement(Index$4, _objectSpread2(_objectSpread2({
7287
+ }), /*#__PURE__*/React.createElement(Select, _objectSpread2(_objectSpread2({
7287
7288
  placeholder: "\u8BF7\u9009\u62E9",
7288
7289
  disabled: disabled,
7289
7290
  onLoad: function onLoad(opt) {
@@ -7788,11 +7789,15 @@ var WForm = function WForm(props, ref) {
7788
7789
  };
7789
7790
 
7790
7791
  var handleRest = function handleRest() {
7792
+ var _form$resetFields;
7793
+
7791
7794
  onReset && onReset();
7792
- form.resetFields();
7795
+ form === null || form === void 0 ? void 0 : (_form$resetFields = form.resetFields) === null || _form$resetFields === void 0 ? void 0 : _form$resetFields.call(form);
7793
7796
  };
7794
7797
 
7795
7798
  var setFieldsValue = function setFieldsValue(record) {
7799
+ var _form$setFieldsValue;
7800
+
7796
7801
  var setFieldsValues = _objectSpread2({}, record);
7797
7802
 
7798
7803
  filterFormColumns.forEach(function (c) {
@@ -7807,7 +7812,7 @@ var WForm = function WForm(props, ref) {
7807
7812
  return false;
7808
7813
  }
7809
7814
  });
7810
- form.setFieldsValue(setFieldsValues);
7815
+ form === null || form === void 0 ? void 0 : (_form$setFieldsValue = form.setFieldsValue) === null || _form$setFieldsValue === void 0 ? void 0 : _form$setFieldsValue.call(form, setFieldsValues);
7811
7816
  };
7812
7817
 
7813
7818
  useImperativeHandle(ref, function () {
@@ -10790,4 +10795,4 @@ var WebsocketHeart = /*#__PURE__*/_createClass(function WebsocketHeart(_ref) {
10790
10795
  this.heartCheck = null;
10791
10796
  });
10792
10797
 
10793
- export { Index$9 as AutoScroll, Index$b as Breadcrumb, WButton as Button, Index$c as Card, WCascader as Cascader, Index$3 as Checkbox, Index$8 as CountUp, Index$1 as DatePicker, index as IconFont, Index as Input, WInputNumber as InputNumber, Modal, ModalForm$1 as ModalForm, Modal$1 as ModalTips, Index$7 as Number, NumericInput, Index$2 as Radio, Index$4 as Select, Index$a as Swiper, WSwitch as Switch, index$1 as TabelCard, Table, Index$6 as TreeSelect, Index$5 as WDatePicker, WForm$1 as WForm, WebsocketHeart };
10798
+ export { Index$9 as AutoScroll, Index$b as Breadcrumb, WButton as Button, Index$c as Card, WCascader as Cascader, Index$3 as Checkbox, Index$8 as CountUp, Index$1 as DatePicker, index as IconFont, Index as Input, WInputNumber as InputNumber, Modal, ModalForm$1 as ModalForm, Modal$1 as ModalTips, Index$7 as Number, NumericInput, Index$2 as Radio, Select, Index$a as Swiper, WSwitch as Switch, index$1 as TabelCard, Table, Index$6 as TreeSelect, Index$5 as WDatePicker, WForm$1 as WForm, WebsocketHeart };
package/dist/index.js CHANGED
@@ -771,7 +771,7 @@ var WSelect = function WSelect(props) {
771
771
 
772
772
  onLoad && onLoad(options);
773
773
  setValueEnumList(valueEnumNode);
774
- }, [JSON.stringify(resList), request]);
774
+ }, [JSON.stringify(resList), JSON.stringify(request)]);
775
775
  return /*#__PURE__*/React__default['default'].createElement(_Select__default['default'], _objectSpread2({}, extraProps), request ? childrenNode : valueEnum ? valueEnumList : children);
776
776
  };
777
777
 
@@ -786,6 +786,7 @@ var Option = function Option(props) {
786
786
 
787
787
  var Index$4 = WSelect;
788
788
  Index$4.Option = Option;
789
+ var Select = /*#__PURE__*/React__default['default'].memo(Index$4);
789
790
 
790
791
  //! moment.js
791
792
  //! version : 2.29.1
@@ -6817,7 +6818,7 @@ var WForm = function WForm(props, ref) {
6817
6818
  name: c.dataIndex,
6818
6819
  label: c.title,
6819
6820
  labelCol: labelCol
6820
- }), /*#__PURE__*/React__default['default'].createElement(Index$4, _objectSpread2(_objectSpread2({
6821
+ }), /*#__PURE__*/React__default['default'].createElement(Select, _objectSpread2(_objectSpread2({
6821
6822
  placeholder: "\u8BF7\u9009\u62E9",
6822
6823
  disabled: disabled,
6823
6824
  onLoad: function onLoad(opt) {
@@ -7317,7 +7318,7 @@ var WForm = function WForm(props, ref) {
7317
7318
  name: c.dataIndex,
7318
7319
  label: c.title,
7319
7320
  labelCol: labelCol
7320
- }), /*#__PURE__*/React__default['default'].createElement(Index$4, _objectSpread2(_objectSpread2({
7321
+ }), /*#__PURE__*/React__default['default'].createElement(Select, _objectSpread2(_objectSpread2({
7321
7322
  placeholder: "\u8BF7\u9009\u62E9",
7322
7323
  disabled: disabled,
7323
7324
  onLoad: function onLoad(opt) {
@@ -7822,11 +7823,15 @@ var WForm = function WForm(props, ref) {
7822
7823
  };
7823
7824
 
7824
7825
  var handleRest = function handleRest() {
7826
+ var _form$resetFields;
7827
+
7825
7828
  onReset && onReset();
7826
- form.resetFields();
7829
+ form === null || form === void 0 ? void 0 : (_form$resetFields = form.resetFields) === null || _form$resetFields === void 0 ? void 0 : _form$resetFields.call(form);
7827
7830
  };
7828
7831
 
7829
7832
  var setFieldsValue = function setFieldsValue(record) {
7833
+ var _form$setFieldsValue;
7834
+
7830
7835
  var setFieldsValues = _objectSpread2({}, record);
7831
7836
 
7832
7837
  filterFormColumns.forEach(function (c) {
@@ -7841,7 +7846,7 @@ var WForm = function WForm(props, ref) {
7841
7846
  return false;
7842
7847
  }
7843
7848
  });
7844
- form.setFieldsValue(setFieldsValues);
7849
+ form === null || form === void 0 ? void 0 : (_form$setFieldsValue = form.setFieldsValue) === null || _form$setFieldsValue === void 0 ? void 0 : _form$setFieldsValue.call(form, setFieldsValues);
7845
7850
  };
7846
7851
 
7847
7852
  React.useImperativeHandle(ref, function () {
@@ -10841,7 +10846,7 @@ exports.ModalTips = Modal$1;
10841
10846
  exports.Number = Index$7;
10842
10847
  exports.NumericInput = NumericInput;
10843
10848
  exports.Radio = Index$2;
10844
- exports.Select = Index$4;
10849
+ exports.Select = Select;
10845
10850
  exports.Swiper = Index$a;
10846
10851
  exports.Switch = WSwitch;
10847
10852
  exports.TabelCard = index$1;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "private": false,
3
3
  "name": "wargerm",
4
- "version": "0.3.9",
4
+ "version": "0.3.10",
5
5
  "scripts": {
6
6
  "dev": "dumi dev",
7
7
  "docs:build": "dumi build",