@luck-design-biz/luckda 0.0.12-3 → 0.0.12-5

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.
@@ -62,8 +62,7 @@ var buildLdAutoForm = function buildLdAutoForm(_ref) {
62
62
  formId: ldId,
63
63
  moduleCode: moduleCode,
64
64
  formRef: formRef,
65
- formMode: formMode,
66
- uid: forwardFormData[ldId][window.appConfig.constraintKeys.PRIMARY]
65
+ formMode: formMode
67
66
  }, customFiled), {}, {
68
67
  handleValueChange: function handleValueChange(value) {
69
68
  return onValueChange(_defineProperty({}, ldId, _defineProperty({}, col.field, value)));
@@ -58,12 +58,14 @@ var LdInfoPanel = function LdInfoPanel(_ref) {
58
58
  return _objectSpread({
59
59
  title: xCol.fieldName
60
60
  }, col);
61
- }) : columns.map(function (item) {
62
- return {
63
- title: item.fieldName,
64
- dataIndex: item.field
65
- };
66
- });
61
+ }) : transform(columns, function (result, item) {
62
+ if (item.isShowInForm) {
63
+ result.push({
64
+ title: item.fieldName,
65
+ dataIndex: item.field
66
+ });
67
+ }
68
+ }, []);
67
69
  }, [columns]);
68
70
  var _useRequest = useRequest(service || behaviorCall, {
69
71
  // 获取数据源
@@ -70,8 +70,7 @@ var buildLdAutoForm = function buildLdAutoForm(_ref) {
70
70
  formId: ldId,
71
71
  moduleCode: moduleCode,
72
72
  formRef: formRef,
73
- formMode: formMode,
74
- uid: forwardFormData[ldId][window.appConfig.constraintKeys.PRIMARY]
73
+ formMode: formMode
75
74
  }, customFiled), {}, {
76
75
  handleValueChange: function handleValueChange(value) {
77
76
  return onValueChange((0, _defineProperty2.default)({}, ldId, (0, _defineProperty2.default)({}, col.field, value)));
@@ -66,12 +66,14 @@ var LdInfoPanel = function LdInfoPanel(_ref) {
66
66
  return (0, _objectSpread2.default)({
67
67
  title: xCol.fieldName
68
68
  }, col);
69
- }) : columns.map(function (item) {
70
- return {
71
- title: item.fieldName,
72
- dataIndex: item.field
73
- };
74
- });
69
+ }) : (0, _lodash.transform)(columns, function (result, item) {
70
+ if (item.isShowInForm) {
71
+ result.push({
72
+ title: item.fieldName,
73
+ dataIndex: item.field
74
+ });
75
+ }
76
+ }, []);
75
77
  }, [columns]);
76
78
  var _useRequest = (0, _ahooks.useRequest)(service || _utils.behaviorCall, {
77
79
  // 获取数据源
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@luck-design-biz/luckda",
3
- "version": "0.0.12-3",
3
+ "version": "0.0.12-5",
4
4
  "scripts": {
5
5
  "start": "dumi dev",
6
6
  "docs:build": "dumi build",