shineout 3.6.0-beta.17 → 3.6.0-beta.18
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 +7 -8
- 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
|
@@ -514,5 +514,5 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
|
514
514
|
// 此文件由脚本自动生成,请勿直接修改。
|
|
515
515
|
// This file was generated automatically by a script. Please do not modify it directly.
|
|
516
516
|
var _default = exports.default = {
|
|
517
|
-
version: '3.6.0-beta.
|
|
517
|
+
version: '3.6.0-beta.18'
|
|
518
518
|
};
|
package/dist/shineout.js
CHANGED
|
@@ -12130,7 +12130,7 @@ var handleStyle = function handleStyle(style) {
|
|
|
12130
12130
|
};
|
|
12131
12131
|
/* harmony default export */ var jss_style_handleStyle = (handleStyle);
|
|
12132
12132
|
;// CONCATENATED MODULE: ../shineout-style/src/version.ts
|
|
12133
|
-
/* harmony default export */ var version = ('3.6.0-beta.
|
|
12133
|
+
/* harmony default export */ var version = ('3.6.0-beta.18');
|
|
12134
12134
|
;// CONCATENATED MODULE: ../shineout-style/src/jss-style/index.tsx
|
|
12135
12135
|
|
|
12136
12136
|
|
|
@@ -48864,7 +48864,6 @@ var useForm = function useForm(props) {
|
|
|
48864
48864
|
forceSet: true
|
|
48865
48865
|
};
|
|
48866
48866
|
var preValue = use_previous_usePrevious(props.value);
|
|
48867
|
-
var formDomRef = external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef();
|
|
48868
48867
|
var _React$useRef = external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef({
|
|
48869
48868
|
defaultValues: {},
|
|
48870
48869
|
validateMap: {},
|
|
@@ -48938,9 +48937,9 @@ var useForm = function useForm(props) {
|
|
|
48938
48937
|
onError === null || onError === void 0 || onError(err);
|
|
48939
48938
|
if (!props.scrollToError) return;
|
|
48940
48939
|
setTimeout(function () {
|
|
48941
|
-
var
|
|
48940
|
+
var _props$formElRef$curr;
|
|
48942
48941
|
var selector = "[".concat(getDataAttributeName('status'), "=\"error\"]");
|
|
48943
|
-
var el = (
|
|
48942
|
+
var el = (_props$formElRef$curr = props.formElRef.current) === null || _props$formElRef$curr === void 0 ? void 0 : _props$formElRef$curr.querySelector(selector);
|
|
48944
48943
|
if (el) {
|
|
48945
48944
|
el.scrollIntoView();
|
|
48946
48945
|
var focusableSelectors = 'textarea, input,[tabindex]:not([tabindex="-1"])';
|
|
@@ -49281,7 +49280,6 @@ var useForm = function useForm(props) {
|
|
|
49281
49280
|
var externalProps = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
49282
49281
|
var externalEventHandlers = extractEventHandlers(externalProps);
|
|
49283
49282
|
return objectSpread2_default()(objectSpread2_default()(objectSpread2_default()({}, externalProps), externalEventHandlers), {}, {
|
|
49284
|
-
ref: formDomRef,
|
|
49285
49283
|
disabled: !!disabled,
|
|
49286
49284
|
onSubmit: handleSubmit(externalEventHandlers),
|
|
49287
49285
|
onReset: handleReset(externalEventHandlers)
|
|
@@ -49497,12 +49495,14 @@ var Form = function Form(props) {
|
|
|
49497
49495
|
beforeChange: undefined,
|
|
49498
49496
|
reserveAble: false
|
|
49499
49497
|
};
|
|
49498
|
+
var formElRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(null);
|
|
49500
49499
|
var _useInputAble = useInputAble(inputAbleParams),
|
|
49501
49500
|
value = _useInputAble.value,
|
|
49502
49501
|
onChange = _useInputAble.onChange;
|
|
49503
49502
|
var _useForm = use_form(objectSpread2_default()(objectSpread2_default()({}, rest), {}, {
|
|
49504
49503
|
value: value,
|
|
49505
|
-
onChange: onChange
|
|
49504
|
+
onChange: onChange,
|
|
49505
|
+
formElRef: formElRef
|
|
49506
49506
|
})),
|
|
49507
49507
|
Provider = _useForm.Provider,
|
|
49508
49508
|
ProviderProps = _useForm.ProviderProps,
|
|
@@ -49576,7 +49576,6 @@ var Form = function Form(props) {
|
|
|
49576
49576
|
className: rootClass,
|
|
49577
49577
|
style: style
|
|
49578
49578
|
});
|
|
49579
|
-
var formElRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(null);
|
|
49580
49579
|
(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
|
|
49581
49580
|
if (formElRef.current instanceof HTMLFormElement) {
|
|
49582
49581
|
formElRef.current.addEventListener('submit', formProps.onSubmit);
|
|
@@ -68988,7 +68987,7 @@ var upload_interface = __webpack_require__(8821);
|
|
|
68988
68987
|
|
|
68989
68988
|
|
|
68990
68989
|
/* harmony default export */ var src_0 = ({
|
|
68991
|
-
version: '3.6.0-beta.
|
|
68990
|
+
version: '3.6.0-beta.18'
|
|
68992
68991
|
});
|
|
68993
68992
|
}();
|
|
68994
68993
|
/******/ return __webpack_exports__;
|