shineout 3.8.1-beta.6 → 3.8.1
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/cjs/index.js +1 -1
- package/dist/shineout.js +29 -22
- package/dist/shineout.js.map +1 -1
- package/dist/shineout.min.js +1 -1
- package/dist/shineout.min.js.map +1 -1
- package/esm/index.js +1 -1
- package/package.json +5 -5
package/cjs/index.js
CHANGED
|
@@ -522,5 +522,5 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
|
522
522
|
// 此文件由脚本自动生成,请勿直接修改。
|
|
523
523
|
// This file was generated automatically by a script. Please do not modify it directly.
|
|
524
524
|
var _default = exports.default = {
|
|
525
|
-
version: '3.8.1
|
|
525
|
+
version: '3.8.1'
|
|
526
526
|
};
|
package/dist/shineout.js
CHANGED
|
@@ -12386,7 +12386,7 @@ var handleStyle = function handleStyle(style) {
|
|
|
12386
12386
|
};
|
|
12387
12387
|
/* harmony default export */ var jss_style_handleStyle = (handleStyle);
|
|
12388
12388
|
;// CONCATENATED MODULE: ../shineout-style/src/version.ts
|
|
12389
|
-
/* harmony default export */ var version = ('3.8.1
|
|
12389
|
+
/* harmony default export */ var version = ('3.8.1');
|
|
12390
12390
|
;// CONCATENATED MODULE: ../shineout-style/src/jss-style/index.tsx
|
|
12391
12391
|
|
|
12392
12392
|
|
|
@@ -33388,12 +33388,14 @@ var Tooltip = function Tooltip(props) {
|
|
|
33388
33388
|
var persistent = persistentProp !== null && persistentProp !== void 0 ? persistentProp : (_config$tooltip = config.tooltip) === null || _config$tooltip === void 0 ? void 0 : _config$tooltip.persistent;
|
|
33389
33389
|
var childrenProps = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.isValidElement)(children) ? children === null || children === void 0 ? void 0 : children.props : {};
|
|
33390
33390
|
var delay = props.delay || props.mouseEnterDelay || defaultDelay;
|
|
33391
|
+
var mouseLeaveDelay = props.mouseLeaveDelay || defaultDelay;
|
|
33391
33392
|
var _usePopup = use_popup({
|
|
33392
33393
|
position: popsitionProps,
|
|
33393
33394
|
trigger: trigger,
|
|
33394
33395
|
autoMode: 'popover',
|
|
33395
33396
|
priorityDirection: priorityDirection,
|
|
33396
33397
|
mouseEnterDelay: delay,
|
|
33398
|
+
mouseLeaveDelay: mouseLeaveDelay,
|
|
33397
33399
|
targetEvents: disabledChild ? {} : childrenProps
|
|
33398
33400
|
}),
|
|
33399
33401
|
open = _usePopup.open,
|
|
@@ -43920,23 +43922,26 @@ var FormField = function FormField(props) {
|
|
|
43920
43922
|
var _useContext3 = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useContext)(FormItemContext),
|
|
43921
43923
|
label = _useContext3.label;
|
|
43922
43924
|
var finalFieldId = formFieldId || fieldId || fieldsetPathId;
|
|
43923
|
-
|
|
43924
|
-
|
|
43925
|
-
|
|
43926
|
-
|
|
43927
|
-
|
|
43928
|
-
|
|
43929
|
-
|
|
43930
|
-
|
|
43931
|
-
|
|
43932
|
-
|
|
43933
|
-
});
|
|
43934
|
-
schemaFields.forEach(function (field) {
|
|
43935
|
-
formSchema.updateSchema({
|
|
43936
|
-
path: getOriginField(field, formConfig.formName),
|
|
43937
|
-
meta: schemaMeta
|
|
43925
|
+
try {
|
|
43926
|
+
// 只有当 formConfig.formName 存在时才运行 schema 逻辑
|
|
43927
|
+
if (formConfig.formName && formSchema && finalFieldId) {
|
|
43928
|
+
var schemaFields = finalFieldId.split(separator) || [];
|
|
43929
|
+
var schemaMeta = formSchema.buildSchemaFromComponent({
|
|
43930
|
+
componentElement: finalChildren,
|
|
43931
|
+
rules: props.rules,
|
|
43932
|
+
label: label,
|
|
43933
|
+
finalFieldId: finalFieldId,
|
|
43934
|
+
separator: separator
|
|
43938
43935
|
});
|
|
43939
|
-
|
|
43936
|
+
schemaFields.forEach(function (field) {
|
|
43937
|
+
formSchema.updateSchema({
|
|
43938
|
+
path: getOriginField(field, formConfig.formName),
|
|
43939
|
+
meta: schemaMeta
|
|
43940
|
+
});
|
|
43941
|
+
});
|
|
43942
|
+
}
|
|
43943
|
+
} catch (error) {
|
|
43944
|
+
if (false) {}
|
|
43940
43945
|
}
|
|
43941
43946
|
return /*#__PURE__*/(0,jsx_runtime.jsx)(FormFieldContext.Provider, {
|
|
43942
43947
|
value: {
|
|
@@ -51179,7 +51184,7 @@ var SchemaBuilder = /*#__PURE__*/function () {
|
|
|
51179
51184
|
if (typeof format === 'string') {
|
|
51180
51185
|
var _data$;
|
|
51181
51186
|
itemType = typeof_default()(data === null || data === void 0 ? void 0 : data[0]) === 'object' ? typeof_default()(data === null || data === void 0 || (_data$ = data[0]) === null || _data$ === void 0 ? void 0 : _data$[format]) : typeof_default()(data === null || data === void 0 ? void 0 : data[0]);
|
|
51182
|
-
} else if (typeof format === 'function') {
|
|
51187
|
+
} else if (typeof format === 'function' && data !== null && data !== void 0 && data[0]) {
|
|
51183
51188
|
itemType = typeof_default()(format(data === null || data === void 0 ? void 0 : data[0]));
|
|
51184
51189
|
} else {
|
|
51185
51190
|
itemType = typeof_default()(data === null || data === void 0 ? void 0 : data[0]);
|
|
@@ -51248,7 +51253,7 @@ var SchemaBuilder = /*#__PURE__*/function () {
|
|
|
51248
51253
|
if (typeof format === 'string') {
|
|
51249
51254
|
var _data$2;
|
|
51250
51255
|
itemType = typeof_default()(data === null || data === void 0 ? void 0 : data[0]) === 'object' ? typeof_default()(data === null || data === void 0 || (_data$2 = data[0]) === null || _data$2 === void 0 ? void 0 : _data$2[format]) : typeof_default()(data === null || data === void 0 ? void 0 : data[0]);
|
|
51251
|
-
} else if (typeof format === 'function') {
|
|
51256
|
+
} else if (typeof format === 'function' && data !== null && data !== void 0 && data[0]) {
|
|
51252
51257
|
itemType = typeof_default()(format(data === null || data === void 0 ? void 0 : data[0]));
|
|
51253
51258
|
} else {
|
|
51254
51259
|
itemType = typeof_default()(data === null || data === void 0 ? void 0 : data[0]);
|
|
@@ -51283,7 +51288,7 @@ var SchemaBuilder = /*#__PURE__*/function () {
|
|
|
51283
51288
|
if (typeof format === 'string') {
|
|
51284
51289
|
var _data$3;
|
|
51285
51290
|
itemType = typeof_default()(data === null || data === void 0 ? void 0 : data[0]) === 'object' ? typeof_default()(data === null || data === void 0 || (_data$3 = data[0]) === null || _data$3 === void 0 ? void 0 : _data$3[format]) : typeof_default()(data === null || data === void 0 ? void 0 : data[0]);
|
|
51286
|
-
} else if (typeof format === 'function') {
|
|
51291
|
+
} else if (typeof format === 'function' && data !== null && data !== void 0 && data[0]) {
|
|
51287
51292
|
itemType = typeof_default()(format(data === null || data === void 0 ? void 0 : data[0]));
|
|
51288
51293
|
} else {
|
|
51289
51294
|
itemType = typeof_default()(data === null || data === void 0 ? void 0 : data[0]);
|
|
@@ -51291,7 +51296,9 @@ var SchemaBuilder = /*#__PURE__*/function () {
|
|
|
51291
51296
|
} else {
|
|
51292
51297
|
itemType = typeof_default()(data === null || data === void 0 ? void 0 : data[0]);
|
|
51293
51298
|
}
|
|
51294
|
-
|
|
51299
|
+
if (itemType !== 'undefined') {
|
|
51300
|
+
fieldSchemaInfo.type = itemType;
|
|
51301
|
+
}
|
|
51295
51302
|
|
|
51296
51303
|
// ShineoutRadioGroup 有 data 时(单选的)
|
|
51297
51304
|
if (itemType === 'object') {
|
|
@@ -73060,7 +73067,7 @@ var upload_interface = __webpack_require__(8821);
|
|
|
73060
73067
|
|
|
73061
73068
|
|
|
73062
73069
|
/* harmony default export */ var src_0 = ({
|
|
73063
|
-
version: '3.8.1
|
|
73070
|
+
version: '3.8.1'
|
|
73064
73071
|
});
|
|
73065
73072
|
}();
|
|
73066
73073
|
/******/ return __webpack_exports__;
|