@kmkf-fe-packages/basic-components 1.8.0-beta.6 → 1.8.0

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/README.md CHANGED
@@ -18,4 +18,4 @@ yarn start
18
18
  - common 公共组件
19
19
  - config 公共方法
20
20
  - assets 静态资源
21
- -
21
+ -
package/dist/index.esm.js CHANGED
@@ -7661,7 +7661,8 @@ var SubForm = function SubForm(props) {
7661
7661
  workOrderTemplateId = _props$subConfig.workOrderTemplateId,
7662
7662
  correlationList = _props$subConfig.correlationList,
7663
7663
  tableHeader = props.tableHeader,
7664
- disabled = props.disabled;
7664
+ disabled = props.disabled,
7665
+ platform = props.platform;
7665
7666
  var ref = useRef(null);
7666
7667
  var _useState = useState(false),
7667
7668
  _useState2 = _slicedToArray(_useState, 2),
@@ -7934,14 +7935,12 @@ var SubForm = function SubForm(props) {
7934
7935
  }
7935
7936
  };
7936
7937
  var selectValueHandle = function selectValueHandle(record) {
7937
- console.log('record', record);
7938
7938
  var numberKeys = newTableHeader.reduce(function (prv, t) {
7939
7939
  if (t.isNumber) {
7940
7940
  prv.push(t.key);
7941
7941
  }
7942
7942
  return prv;
7943
7943
  }, []);
7944
- console.log('numberKeys', numberKeys);
7945
7944
  var newValue = record || {};
7946
7945
  if (numberKeys === null || numberKeys === void 0 ? void 0 : numberKeys.length) {
7947
7946
  Object.keys(newValue).forEach(function (key) {
@@ -7950,7 +7949,6 @@ var SubForm = function SubForm(props) {
7950
7949
  }
7951
7950
  });
7952
7951
  }
7953
- console.log('newValue', newValue);
7954
7952
  onChange === null || onChange === void 0 ? void 0 : onChange([].concat(_toConsumableArray(value), [_objectSpread2(_objectSpread2({}, newValue), {}, {
7955
7953
  uuid: uuid()
7956
7954
  })]));
@@ -7973,6 +7971,7 @@ var SubForm = function SubForm(props) {
7973
7971
  onScrollCapture: onScrollCapture,
7974
7972
  style: {
7975
7973
  height: 320,
7974
+ maxWidth: platform !== 'pc' ? '325px' : '100%',
7976
7975
  overflowY: 'scroll',
7977
7976
  overflowX: 'auto'
7978
7977
  }
@@ -14249,7 +14248,9 @@ var wdtReissue = function wdtReissue(props) {
14249
14248
  var _typeMap$type25;
14250
14249
  return !!(value === null || value === void 0 ? void 0 : value[(_typeMap$type25 = typeMap$1[type]) === null || _typeMap$type25 === void 0 ? void 0 : _typeMap$type25.wdtSystemOrderNo]);
14251
14250
  }, [value === null || value === void 0 ? void 0 : value[(_typeMap$type26 = typeMap$1[type]) === null || _typeMap$type26 === void 0 ? void 0 : _typeMap$type26.wdtSystemOrderNo]]);
14252
- return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Row, null, /*#__PURE__*/React.createElement(Col, {
14251
+ return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Row, {
14252
+ gutter: 8
14253
+ }, /*#__PURE__*/React.createElement(Col, {
14253
14254
  className: "gutter-row",
14254
14255
  xs: {
14255
14256
  span: 11
@@ -14281,9 +14282,6 @@ var wdtReissue = function wdtReissue(props) {
14281
14282
  },
14282
14283
  md: {
14283
14284
  span: 6
14284
- },
14285
- style: {
14286
- marginLeft: '8px'
14287
14285
  }
14288
14286
  }, /*#__PURE__*/React.createElement(Cascader, {
14289
14287
  style: {
package/dist/index.js CHANGED
@@ -7673,7 +7673,8 @@ var SubForm = function SubForm(props) {
7673
7673
  workOrderTemplateId = _props$subConfig.workOrderTemplateId,
7674
7674
  correlationList = _props$subConfig.correlationList,
7675
7675
  tableHeader = props.tableHeader,
7676
- disabled = props.disabled;
7676
+ disabled = props.disabled,
7677
+ platform = props.platform;
7677
7678
  var ref = React.useRef(null);
7678
7679
  var _useState = React.useState(false),
7679
7680
  _useState2 = _slicedToArray(_useState, 2),
@@ -7946,14 +7947,12 @@ var SubForm = function SubForm(props) {
7946
7947
  }
7947
7948
  };
7948
7949
  var selectValueHandle = function selectValueHandle(record) {
7949
- console.log('record', record);
7950
7950
  var numberKeys = newTableHeader.reduce(function (prv, t) {
7951
7951
  if (t.isNumber) {
7952
7952
  prv.push(t.key);
7953
7953
  }
7954
7954
  return prv;
7955
7955
  }, []);
7956
- console.log('numberKeys', numberKeys);
7957
7956
  var newValue = record || {};
7958
7957
  if (numberKeys === null || numberKeys === void 0 ? void 0 : numberKeys.length) {
7959
7958
  Object.keys(newValue).forEach(function (key) {
@@ -7962,7 +7961,6 @@ var SubForm = function SubForm(props) {
7962
7961
  }
7963
7962
  });
7964
7963
  }
7965
- console.log('newValue', newValue);
7966
7964
  onChange === null || onChange === void 0 ? void 0 : onChange([].concat(_toConsumableArray(value), [_objectSpread2(_objectSpread2({}, newValue), {}, {
7967
7965
  uuid: kmkfUtils.uuid()
7968
7966
  })]));
@@ -7985,6 +7983,7 @@ var SubForm = function SubForm(props) {
7985
7983
  onScrollCapture: onScrollCapture,
7986
7984
  style: {
7987
7985
  height: 320,
7986
+ maxWidth: platform !== 'pc' ? '325px' : '100%',
7988
7987
  overflowY: 'scroll',
7989
7988
  overflowX: 'auto'
7990
7989
  }
@@ -14261,7 +14260,9 @@ var wdtReissue = function wdtReissue(props) {
14261
14260
  var _typeMap$type25;
14262
14261
  return !!(value === null || value === void 0 ? void 0 : value[(_typeMap$type25 = typeMap$1[type]) === null || _typeMap$type25 === void 0 ? void 0 : _typeMap$type25.wdtSystemOrderNo]);
14263
14262
  }, [value === null || value === void 0 ? void 0 : value[(_typeMap$type26 = typeMap$1[type]) === null || _typeMap$type26 === void 0 ? void 0 : _typeMap$type26.wdtSystemOrderNo]]);
14264
- return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(antd.Row, null, /*#__PURE__*/React__default['default'].createElement(antd.Col, {
14263
+ return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(antd.Row, {
14264
+ gutter: 8
14265
+ }, /*#__PURE__*/React__default['default'].createElement(antd.Col, {
14265
14266
  className: "gutter-row",
14266
14267
  xs: {
14267
14268
  span: 11
@@ -14293,9 +14294,6 @@ var wdtReissue = function wdtReissue(props) {
14293
14294
  },
14294
14295
  md: {
14295
14296
  span: 6
14296
- },
14297
- style: {
14298
- marginLeft: '8px'
14299
14297
  }
14300
14298
  }, /*#__PURE__*/React__default['default'].createElement(antd.Cascader, {
14301
14299
  style: {
@@ -24,6 +24,7 @@ type SubFormProps = {
24
24
  needFilterShopByPermission: boolean;
25
25
  tableHeader: subConfigType[];
26
26
  disabled: boolean;
27
+ platform: string;
27
28
  };
28
29
  declare const SubForm: (props: SubFormProps) => React.JSX.Element;
29
30
  export default SubForm;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kmkf-fe-packages/basic-components",
3
- "version": "1.8.0-beta.6",
3
+ "version": "1.8.0",
4
4
  "description": "> TODO: description",
5
5
  "homepage": "",
6
6
  "license": "ISC",
@@ -20,7 +20,7 @@
20
20
  "watch": "nodemon --ignore dist/ --ignore node_modules/ --watch src/ -C -e ts,tsx,less --debug -x 'yarn async'"
21
21
  },
22
22
  "dependencies": {
23
- "@kmkf-fe-packages/kmkf-utils": "1.8.0-beta.0",
23
+ "@kmkf-fe-packages/kmkf-utils": "1.8.0",
24
24
  "ahooks": "^3.7.4",
25
25
  "bignumber.js": "^9.1.2",
26
26
  "kmkf-monitor": "^0.8.8",
@@ -65,5 +65,5 @@
65
65
  "publishConfig": {
66
66
  "access": "public"
67
67
  },
68
- "gitHead": "04b97d0e42072c5fe31ec0cf0a7751768ff13aa9"
68
+ "gitHead": "d2228b5d77f9eb2ade4a0e56ccb2ce71bfbe8e62"
69
69
  }