ls-pro-common 3.1.14 → 3.1.15

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.
@@ -129,6 +129,8 @@ var InputTable = /*#__PURE__*/React.forwardRef(function (prop, ref) {
129
129
  return formRef === null || formRef === void 0 ? void 0 : (_formRef$current2 = formRef.current) === null || _formRef$current2 === void 0 ? void 0 : (_formRef$current2$get = _formRef$current2.getFieldsValue) === null || _formRef$current2$get === void 0 ? void 0 : _formRef$current2$get.call(_formRef$current2);
130
130
  };
131
131
  var setFormValue = function setFormValue(formValue) {
132
+ var _prop$onChange;
133
+ (_prop$onChange = prop.onChange) === null || _prop$onChange === void 0 ? void 0 : _prop$onChange.call(prop, formValue[name]);
132
134
  if (rowKey) {
133
135
  var _formRef$current3, _formRef$current3$set;
134
136
  formRef === null || formRef === void 0 ? void 0 : (_formRef$current3 = formRef.current) === null || _formRef$current3 === void 0 ? void 0 : (_formRef$current3$set = _formRef$current3.setFieldsValue) === null || _formRef$current3$set === void 0 ? void 0 : _formRef$current3$set.call(_formRef$current3, _defineProperty({}, rowKey, formValue));
package/es/http/index.js CHANGED
@@ -85,10 +85,8 @@ request.interceptors.request.use(function (url, options) {
85
85
  }
86
86
  // wms 提示,是否排班标识
87
87
  var expireWarnFlag = getCache('expireWarnFlag', true);
88
- if (expireWarnFlag === '1') {
89
- // @ts-ignore
90
- options.headers['expireWarnFlag'] = '1';
91
- }
88
+ // @ts-ignore
89
+ options.headers['expireWarnFlag'] = expireWarnFlag === '1' ? '1' : '0';
92
90
  var token = getCookie('token');
93
91
  if (token && url.indexOf('noToken=1') === -1) {
94
92
  //@ts-ignore
@@ -129,6 +129,8 @@ var InputTable = /*#__PURE__*/React.forwardRef(function (prop, ref) {
129
129
  return formRef === null || formRef === void 0 ? void 0 : (_formRef$current2 = formRef.current) === null || _formRef$current2 === void 0 ? void 0 : (_formRef$current2$get = _formRef$current2.getFieldsValue) === null || _formRef$current2$get === void 0 ? void 0 : _formRef$current2$get.call(_formRef$current2);
130
130
  };
131
131
  var setFormValue = function setFormValue(formValue) {
132
+ var _prop$onChange;
133
+ (_prop$onChange = prop.onChange) === null || _prop$onChange === void 0 ? void 0 : _prop$onChange.call(prop, formValue[name]);
132
134
  if (rowKey) {
133
135
  var _formRef$current3, _formRef$current3$set;
134
136
  formRef === null || formRef === void 0 ? void 0 : (_formRef$current3 = formRef.current) === null || _formRef$current3 === void 0 ? void 0 : (_formRef$current3$set = _formRef$current3.setFieldsValue) === null || _formRef$current3$set === void 0 ? void 0 : _formRef$current3$set.call(_formRef$current3, _defineProperty({}, rowKey, formValue));
package/lib/http/index.js CHANGED
@@ -85,10 +85,8 @@ request.interceptors.request.use(function (url, options) {
85
85
  }
86
86
  // wms 提示,是否排班标识
87
87
  var expireWarnFlag = getCache('expireWarnFlag', true);
88
- if (expireWarnFlag === '1') {
89
- // @ts-ignore
90
- options.headers['expireWarnFlag'] = '1';
91
- }
88
+ // @ts-ignore
89
+ options.headers['expireWarnFlag'] = expireWarnFlag === '1' ? '1' : '0';
92
90
  var token = getCookie('token');
93
91
  if (token && url.indexOf('noToken=1') === -1) {
94
92
  //@ts-ignore
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ls-pro-common",
3
- "version": "3.1.14",
3
+ "version": "3.1.15",
4
4
  "description": "ls-pro-common",
5
5
  "license": "MIT",
6
6
  "sideEffects": [