@luck-design-biz/luckda 0.0.25-16 → 0.0.25-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.
@@ -82,13 +82,13 @@
82
82
  "label": "getInstance",
83
83
  "kind": "method",
84
84
  "insertText": "getInstance",
85
- "documentation": " /**\r\n * 获取表格实例\r\n * @method\r\n */\r"
85
+ "documentation": " /**\n * 获取表格实例\n * @method\n */"
86
86
  },
87
87
  {
88
88
  "label": "submit",
89
89
  "kind": "method",
90
90
  "insertText": "submit",
91
- "documentation": " /**\r\n * 提交表格数据\r\n * @method\r\n */\r"
91
+ "documentation": " /**\n * 提交表格数据\n * @method\n */"
92
92
  }
93
93
  ]
94
94
  },
@@ -126,16 +126,16 @@ var LCForm = /*#__PURE__*/forwardRef(function (_ref3, ref) {
126
126
  }, []);
127
127
  useImperativeHandle(apiRef, function () {
128
128
  return {
129
- /**
130
- * 获取表格实例
131
- * @method
129
+ /**
130
+ * 获取表格实例
131
+ * @method
132
132
  */
133
133
  getInstance: function getInstance() {
134
134
  return formRef.current;
135
135
  },
136
- /**
137
- * 提交表格数据
138
- * @method
136
+ /**
137
+ * 提交表格数据
138
+ * @method
139
139
  */
140
140
  submit: function submit() {
141
141
  return new Promise(function (resolve) {
@@ -151,39 +151,39 @@ var LCForm = /*#__PURE__*/forwardRef(function (_ref3, ref) {
151
151
  }
152
152
  });
153
153
  },
154
- /**
155
- * @typedef {Object} Field
156
- * @property {Object} target - 字段引用
157
- * @property {boolean} disabled - 字段不可维护
158
- * @property {boolean} required - 字段必填
159
- * @property {any} value - 字段值
154
+ /**
155
+ * @typedef {Object} Field
156
+ * @property {Object} target - 字段引用
157
+ * @property {boolean} disabled - 字段不可维护
158
+ * @property {boolean} required - 字段必填
159
+ * @property {any} value - 字段值
160
160
  */
161
- /**
162
- * @typedef {Object} Block
163
- * @property {Object} target - 区块引用
164
- * @property {function(fieldName): Field} getField - 获取区块下的表单域
161
+ /**
162
+ * @typedef {Object} Block
163
+ * @property {Object} target - 区块引用
164
+ * @property {function(fieldName): Field} getField - 获取区块下的表单域
165
165
  */
166
- /**
167
- * 获取区块
168
- * @param {*} blockId - 区块ID
169
- * @returns {Block}
166
+ /**
167
+ * 获取区块
168
+ * @param {*} blockId - 区块ID
169
+ * @returns {Block}
170
170
  */
171
171
  getBlock: function getBlock(blockId) {
172
172
  var instance = formRef.current;
173
173
  var block = instance.formRefs[blockId];
174
174
  if (!block) {
175
- console.e('未发现区块');
175
+ console.error('未发现区块');
176
176
  return {};
177
177
  }
178
178
  var getField = function getField(fieldName) {
179
179
  if (block.current.props.type !== 'auto') {
180
- console.e('该区块无法获取表单域');
180
+ console.error('该区块无法获取表单域');
181
181
  return {};
182
182
  }
183
183
  var basicForm = block.current.props.wrappedComponentRef.current;
184
184
  var field = basicForm.fieldsRef[fieldName];
185
185
  if (!field) {
186
- console.e("\u672A\u53D1\u73B0".concat(fieldName, "\u5B57\u6BB5"));
186
+ console.error("\u672A\u53D1\u73B0".concat(fieldName, "\u5B57\u6BB5"));
187
187
  return {};
188
188
  }
189
189
  return new Proxy({
@@ -82,13 +82,13 @@
82
82
  "label": "getInstance",
83
83
  "kind": "method",
84
84
  "insertText": "getInstance",
85
- "documentation": " /**\r\n * 获取表格实例\r\n * @method\r\n */\r"
85
+ "documentation": " /**\n * 获取表格实例\n * @method\n */"
86
86
  },
87
87
  {
88
88
  "label": "submit",
89
89
  "kind": "method",
90
90
  "insertText": "submit",
91
- "documentation": " /**\r\n * 提交表格数据\r\n * @method\r\n */\r"
91
+ "documentation": " /**\n * 提交表格数据\n * @method\n */"
92
92
  }
93
93
  ]
94
94
  },
@@ -134,16 +134,16 @@ var LCForm = /*#__PURE__*/(0, _react.forwardRef)(function (_ref3, ref) {
134
134
  }, []);
135
135
  (0, _react.useImperativeHandle)(apiRef, function () {
136
136
  return {
137
- /**
138
- * 获取表格实例
139
- * @method
137
+ /**
138
+ * 获取表格实例
139
+ * @method
140
140
  */
141
141
  getInstance: function getInstance() {
142
142
  return formRef.current;
143
143
  },
144
- /**
145
- * 提交表格数据
146
- * @method
144
+ /**
145
+ * 提交表格数据
146
+ * @method
147
147
  */
148
148
  submit: function submit() {
149
149
  return new Promise(function (resolve) {
@@ -159,39 +159,39 @@ var LCForm = /*#__PURE__*/(0, _react.forwardRef)(function (_ref3, ref) {
159
159
  }
160
160
  });
161
161
  },
162
- /**
163
- * @typedef {Object} Field
164
- * @property {Object} target - 字段引用
165
- * @property {boolean} disabled - 字段不可维护
166
- * @property {boolean} required - 字段必填
167
- * @property {any} value - 字段值
162
+ /**
163
+ * @typedef {Object} Field
164
+ * @property {Object} target - 字段引用
165
+ * @property {boolean} disabled - 字段不可维护
166
+ * @property {boolean} required - 字段必填
167
+ * @property {any} value - 字段值
168
168
  */
169
- /**
170
- * @typedef {Object} Block
171
- * @property {Object} target - 区块引用
172
- * @property {function(fieldName): Field} getField - 获取区块下的表单域
169
+ /**
170
+ * @typedef {Object} Block
171
+ * @property {Object} target - 区块引用
172
+ * @property {function(fieldName): Field} getField - 获取区块下的表单域
173
173
  */
174
- /**
175
- * 获取区块
176
- * @param {*} blockId - 区块ID
177
- * @returns {Block}
174
+ /**
175
+ * 获取区块
176
+ * @param {*} blockId - 区块ID
177
+ * @returns {Block}
178
178
  */
179
179
  getBlock: function getBlock(blockId) {
180
180
  var instance = formRef.current;
181
181
  var block = instance.formRefs[blockId];
182
182
  if (!block) {
183
- console.e('未发现区块');
183
+ console.error('未发现区块');
184
184
  return {};
185
185
  }
186
186
  var getField = function getField(fieldName) {
187
187
  if (block.current.props.type !== 'auto') {
188
- console.e('该区块无法获取表单域');
188
+ console.error('该区块无法获取表单域');
189
189
  return {};
190
190
  }
191
191
  var basicForm = block.current.props.wrappedComponentRef.current;
192
192
  var field = basicForm.fieldsRef[fieldName];
193
193
  if (!field) {
194
- console.e("\u672A\u53D1\u73B0".concat(fieldName, "\u5B57\u6BB5"));
194
+ console.error("\u672A\u53D1\u73B0".concat(fieldName, "\u5B57\u6BB5"));
195
195
  return {};
196
196
  }
197
197
  return new Proxy({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@luck-design-biz/luckda",
3
- "version": "0.0.25-16",
3
+ "version": "0.0.25-17",
4
4
  "description": "前端配置管理中心业务组件库",
5
5
  "scripts": {
6
6
  "start": "cross-env NODE_OPTIONS=--max-old-space-size=10240 USER_RUNTIME=SITE RUNTIME=dev umi dev",