@teamix/pro 1.5.46-beta.1 → 1.5.46

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,4 +1,4 @@
1
1
  import React from 'react';
2
2
  import type { ProFormProps } from '../typing';
3
- declare const _default: React.MemoExoticComponent<({ schema, scope, components }: ProFormProps) => any>;
3
+ declare const _default: React.MemoExoticComponent<({ schema, scope, components }: ProFormProps) => JSX.Element>;
4
4
  export default _default;
@@ -190,12 +190,10 @@ export default /*#__PURE__*/memo(function (_ref) {
190
190
  return schemaProperties;
191
191
  }, []);
192
192
  var formilySchema = useMemo(function () {
193
- return schema === null || schema === void 0 ? void 0 : schema.map(function (item) {
194
- return {
195
- type: 'object',
196
- properties: formatSchema([item])
197
- };
198
- });
193
+ return {
194
+ type: 'object',
195
+ properties: formatSchema(schema)
196
+ };
199
197
  }, [schema]);
200
198
  var mergedScope = _objectSpread(_objectSpread({}, scope), {}, {
201
199
  $request: $request,
@@ -203,18 +201,9 @@ export default /*#__PURE__*/memo(function (_ref) {
203
201
  $dataSource: $dataSource,
204
202
  $validator: $validator
205
203
  }, schemaScopeRef.current);
206
- return formilySchema === null || formilySchema === void 0 ? void 0 : formilySchema.map(function (item) {
207
- return /*#__PURE__*/React.createElement(SchemaField, {
208
- key: JSON.stringify(item, function (key, value) {
209
- if (key.startsWith('x-') || key.startsWith('_')) return '';
210
- if (typeof value === 'function') {
211
- return value.toString();
212
- }
213
- return value;
214
- }),
215
- schema: item,
216
- components: components,
217
- scope: mergedScope
218
- });
204
+ return /*#__PURE__*/React.createElement(SchemaField, {
205
+ schema: formilySchema,
206
+ components: components,
207
+ scope: mergedScope
219
208
  });
220
209
  });
package/es/index.d.ts CHANGED
@@ -30,5 +30,5 @@ export * from './sidebar';
30
30
  export * from './utils';
31
31
  export * from './timeline';
32
32
  export * from './image';
33
- declare const version = "1.5.46-beta.1";
33
+ declare const version = "1.5.46";
34
34
  export { version, ProAction, ProCard, ProField, ProForm, ProInfo, ProPageContainer, ProPageHeader, ProSkeleton, ProTable, ProSidebar, ProTimeline, TeamixIcon, ProImage, hooks, nocode, templates, utils, };
package/es/index.js CHANGED
@@ -37,7 +37,7 @@ export * from './sidebar';
37
37
  export * from './utils';
38
38
  export * from './timeline';
39
39
  export * from './image';
40
- var version = '1.5.46-beta.1';
40
+ var version = '1.5.46';
41
41
  // By TeamixTest
42
42
  window.postMessage({
43
43
  source: 'teamix-test-devtools',
@@ -1,4 +1,4 @@
1
1
  import React from 'react';
2
2
  import type { ProFormProps } from '../typing';
3
- declare const _default: React.MemoExoticComponent<({ schema, scope, components }: ProFormProps) => any>;
3
+ declare const _default: React.MemoExoticComponent<({ schema, scope, components }: ProFormProps) => JSX.Element>;
4
4
  export default _default;
@@ -200,12 +200,10 @@ var _default = /*#__PURE__*/(0, _react.memo)(function (_ref) {
200
200
  return schemaProperties;
201
201
  }, []);
202
202
  var formilySchema = (0, _react.useMemo)(function () {
203
- return schema === null || schema === void 0 ? void 0 : schema.map(function (item) {
204
- return {
205
- type: 'object',
206
- properties: formatSchema([item])
207
- };
208
- });
203
+ return {
204
+ type: 'object',
205
+ properties: formatSchema(schema)
206
+ };
209
207
  }, [schema]);
210
208
  var mergedScope = _objectSpread(_objectSpread({}, scope), {}, {
211
209
  $request: _reactions.$request,
@@ -213,19 +211,10 @@ var _default = /*#__PURE__*/(0, _react.memo)(function (_ref) {
213
211
  $dataSource: _reactions.$dataSource,
214
212
  $validator: _reactions.$validator
215
213
  }, schemaScopeRef.current);
216
- return formilySchema === null || formilySchema === void 0 ? void 0 : formilySchema.map(function (item) {
217
- return /*#__PURE__*/_react.default.createElement(SchemaField, {
218
- key: JSON.stringify(item, function (key, value) {
219
- if (key.startsWith('x-') || key.startsWith('_')) return '';
220
- if (typeof value === 'function') {
221
- return value.toString();
222
- }
223
- return value;
224
- }),
225
- schema: item,
226
- components: components,
227
- scope: mergedScope
228
- });
214
+ return /*#__PURE__*/_react.default.createElement(SchemaField, {
215
+ schema: formilySchema,
216
+ components: components,
217
+ scope: mergedScope
229
218
  });
230
219
  });
231
220
  exports.default = _default;
package/lib/index.d.ts CHANGED
@@ -30,5 +30,5 @@ export * from './sidebar';
30
30
  export * from './utils';
31
31
  export * from './timeline';
32
32
  export * from './image';
33
- declare const version = "1.5.46-beta.1";
33
+ declare const version = "1.5.46";
34
34
  export { version, ProAction, ProCard, ProField, ProForm, ProInfo, ProPageContainer, ProPageHeader, ProSkeleton, ProTable, ProSidebar, ProTimeline, TeamixIcon, ProImage, hooks, nocode, templates, utils, };
package/lib/index.js CHANGED
@@ -299,7 +299,7 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
299
299
  if (!((_window = window) === null || _window === void 0 ? void 0 : _window.TEAMIXPRO_WITHOUT_ICON)) {
300
300
  _icon.default.setConfig(_utils.default.getTeamixIconConfig());
301
301
  }
302
- var version = '1.5.46-beta.1';
302
+ var version = '1.5.46';
303
303
  // By TeamixTest
304
304
  exports.version = version;
305
305
  window.postMessage({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@teamix/pro",
3
- "version": "1.5.46-beta.1",
3
+ "version": "1.5.46",
4
4
  "description": "TeamixPro大包",
5
5
  "keywords": [
6
6
  "aliyun",