@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.
- package/dist/pro.js +9 -20
- package/dist/pro.min.js +1 -1
- package/es/form/SchemaForm/index.d.ts +1 -1
- package/es/form/SchemaForm/index.js +8 -19
- package/es/index.d.ts +1 -1
- package/es/index.js +1 -1
- package/lib/form/SchemaForm/index.d.ts +1 -1
- package/lib/form/SchemaForm/index.js +8 -19
- package/lib/index.d.ts +1 -1
- package/lib/index.js +1 -1
- package/package.json +1 -1
@@ -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) =>
|
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
|
194
|
-
|
195
|
-
|
196
|
-
|
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
|
207
|
-
|
208
|
-
|
209
|
-
|
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
|
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
@@ -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) =>
|
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
|
204
|
-
|
205
|
-
|
206
|
-
|
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
|
217
|
-
|
218
|
-
|
219
|
-
|
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
|
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
|
302
|
+
var version = '1.5.46';
|
303
303
|
// By TeamixTest
|
304
304
|
exports.version = version;
|
305
305
|
window.postMessage({
|