shineout 3.6.5-beta.8 → 3.6.5-fix.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 +48 -32
- 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.5-
|
|
517
|
+
version: '3.6.5-fix.1'
|
|
518
518
|
};
|
package/dist/shineout.js
CHANGED
|
@@ -12217,7 +12217,7 @@ var handleStyle = function handleStyle(style) {
|
|
|
12217
12217
|
};
|
|
12218
12218
|
/* harmony default export */ var jss_style_handleStyle = (handleStyle);
|
|
12219
12219
|
;// CONCATENATED MODULE: ../shineout-style/src/version.ts
|
|
12220
|
-
/* harmony default export */ var version = ('3.6.5-
|
|
12220
|
+
/* harmony default export */ var version = ('3.6.5-fix.1');
|
|
12221
12221
|
;// CONCATENATED MODULE: ../shineout-style/src/jss-style/index.tsx
|
|
12222
12222
|
|
|
12223
12223
|
|
|
@@ -33995,9 +33995,16 @@ var accordion_jssStyle = {
|
|
|
33995
33995
|
var ModalSubmit = function ModalSubmit(props) {
|
|
33996
33996
|
var modalFormContext = useFormFooter();
|
|
33997
33997
|
var handleClick = usePersistFn(function (e) {
|
|
33998
|
-
var
|
|
33999
|
-
(
|
|
34000
|
-
|
|
33998
|
+
var _modalFormContext$fun;
|
|
33999
|
+
if (modalFormContext !== null && modalFormContext !== void 0 && (_modalFormContext$fun = modalFormContext.func) !== null && _modalFormContext$fun !== void 0 && _modalFormContext$fun.hasSubmit) {
|
|
34000
|
+
modalFormContext === null || modalFormContext === void 0 || modalFormContext.func.submit(true, function () {
|
|
34001
|
+
var _props$onClick;
|
|
34002
|
+
return (_props$onClick = props.onClick) === null || _props$onClick === void 0 ? void 0 : _props$onClick.call(props, e);
|
|
34003
|
+
});
|
|
34004
|
+
} else {
|
|
34005
|
+
var _props$onClick2;
|
|
34006
|
+
(_props$onClick2 = props.onClick) === null || _props$onClick2 === void 0 || _props$onClick2.call(props, e);
|
|
34007
|
+
}
|
|
34001
34008
|
});
|
|
34002
34009
|
return /*#__PURE__*/(0,jsx_runtime.jsx)(base_src_button_button, objectSpread2_default()(objectSpread2_default()({
|
|
34003
34010
|
htmlType: "button",
|
|
@@ -34922,19 +34929,18 @@ function useInputAble(props) {
|
|
|
34922
34929
|
var render = useRender(syncValue);
|
|
34923
34930
|
var shouldUseState = delay || !control;
|
|
34924
34931
|
var value = shouldUseState ? stateValue : valuePo;
|
|
34925
|
-
(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.
|
|
34926
|
-
if (context.timer) {
|
|
34927
|
-
clearTimeout(context.timer);
|
|
34928
|
-
context.timer = null;
|
|
34929
|
-
}
|
|
34932
|
+
(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useLayoutEffect)(function () {
|
|
34930
34933
|
if (delay && control && props.value !== stateValue) {
|
|
34931
34934
|
changeStateValue(props.value);
|
|
34935
|
+
} else if (context.timer) {
|
|
34936
|
+
clearTimeout(context.timer);
|
|
34937
|
+
context.timer = null;
|
|
34932
34938
|
}
|
|
34933
34939
|
}, [props.value, delay, control]);
|
|
34934
34940
|
var forceDelayChange = use_persist_fn(function () {
|
|
34935
|
-
if (context.
|
|
34941
|
+
if (context.delayChange) context.delayChange();
|
|
34942
|
+
if (context.timer) {
|
|
34936
34943
|
clearTimeout(context.timer);
|
|
34937
|
-
context.delayChange();
|
|
34938
34944
|
context.timer = null;
|
|
34939
34945
|
context.delayChange = null;
|
|
34940
34946
|
}
|
|
@@ -49704,13 +49710,16 @@ var useForm = function useForm(props) {
|
|
|
49704
49710
|
var values = Object.keys(vals);
|
|
49705
49711
|
// 针对 name 为数组模式,如 datepicker 的 name={['startTime', 'endTime']} 时,前者校验可能需要依赖后者,因此需要提前将后者数据整合至 draft 用于多字段整合校验
|
|
49706
49712
|
values.forEach(function (key) {
|
|
49707
|
-
|
|
49713
|
+
// upload组件返回的可能是函数: (prev) => [...prev, file]
|
|
49714
|
+
var valueOfKey = typeof vals[key] === 'function' ? vals[key](getValue(key)) : vals[key];
|
|
49715
|
+
deepSet(draft, key, valueOfKey, deepSetOptions);
|
|
49708
49716
|
});
|
|
49709
49717
|
values.forEach(function (key) {
|
|
49710
49718
|
if (option.validate) {
|
|
49711
49719
|
var _context$validateMap$;
|
|
49712
49720
|
(_context$validateMap$ = context.validateMap[key]) === null || _context$validateMap$ === void 0 || _context$validateMap$.forEach(function (validate) {
|
|
49713
|
-
|
|
49721
|
+
var valueOfKey = typeof vals[key] === 'function' ? vals[key](getValue(key)) : vals[key];
|
|
49722
|
+
validate(key, valueOfKey, current(draft));
|
|
49714
49723
|
});
|
|
49715
49724
|
}
|
|
49716
49725
|
});
|
|
@@ -49766,6 +49775,7 @@ var useForm = function useForm(props) {
|
|
|
49766
49775
|
});
|
|
49767
49776
|
var submit = use_persist_fn(function () {
|
|
49768
49777
|
var withValidate = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;
|
|
49778
|
+
var callback = arguments.length > 1 ? arguments[1] : undefined;
|
|
49769
49779
|
if (disabled) return;
|
|
49770
49780
|
if (context.submitLock) {
|
|
49771
49781
|
return;
|
|
@@ -49783,32 +49793,29 @@ var useForm = function useForm(props) {
|
|
|
49783
49793
|
while (1) switch (_context.prev = _context.next) {
|
|
49784
49794
|
case 0:
|
|
49785
49795
|
if (withValidate) {
|
|
49786
|
-
_context.next =
|
|
49796
|
+
_context.next = 4;
|
|
49787
49797
|
break;
|
|
49788
49798
|
}
|
|
49789
49799
|
(_props$onSubmit = props.onSubmit) === null || _props$onSubmit === void 0 || _props$onSubmit.call(props, (_context$value = context.value) !== null && _context$value !== void 0 ? _context$value : {});
|
|
49800
|
+
callback === null || callback === void 0 || callback();
|
|
49790
49801
|
return _context.abrupt("return");
|
|
49791
|
-
case
|
|
49792
|
-
_context.next =
|
|
49802
|
+
case 4:
|
|
49803
|
+
_context.next = 6;
|
|
49793
49804
|
return validateFields(undefined, {
|
|
49794
49805
|
ignoreBind: true
|
|
49795
49806
|
}).catch(function (e) {
|
|
49796
49807
|
return e;
|
|
49797
49808
|
});
|
|
49798
|
-
case
|
|
49809
|
+
case 6:
|
|
49799
49810
|
result = _context.sent;
|
|
49800
|
-
if (
|
|
49801
|
-
|
|
49802
|
-
|
|
49811
|
+
if (result === true) {
|
|
49812
|
+
(_props$onSubmit2 = props.onSubmit) === null || _props$onSubmit2 === void 0 || _props$onSubmit2.call(props, (_context$value2 = context.value) !== null && _context$value2 !== void 0 ? _context$value2 : {});
|
|
49813
|
+
if (activeEl) activeEl.focus();
|
|
49814
|
+
} else {
|
|
49815
|
+
handleSubmitError(result);
|
|
49803
49816
|
}
|
|
49804
|
-
|
|
49805
|
-
|
|
49806
|
-
_context.next = 13;
|
|
49807
|
-
break;
|
|
49808
|
-
case 11:
|
|
49809
|
-
handleSubmitError(result);
|
|
49810
|
-
return _context.abrupt("return");
|
|
49811
|
-
case 13:
|
|
49817
|
+
callback === null || callback === void 0 || callback();
|
|
49818
|
+
case 9:
|
|
49812
49819
|
case "end":
|
|
49813
49820
|
return _context.stop();
|
|
49814
49821
|
}
|
|
@@ -50009,7 +50016,7 @@ var useForm = function useForm(props) {
|
|
|
50009
50016
|
context.removeLock = false;
|
|
50010
50017
|
// 内部 onChange 改的 value, 不需要更新
|
|
50011
50018
|
if (props.value === context.value) {
|
|
50012
|
-
|
|
50019
|
+
if (!isControl) update();
|
|
50013
50020
|
return;
|
|
50014
50021
|
}
|
|
50015
50022
|
if (initValidate && !context.resetTime) {
|
|
@@ -65438,6 +65445,7 @@ var TransferOperate = function TransferOperate(props) {
|
|
|
65438
65445
|
|
|
65439
65446
|
|
|
65440
65447
|
|
|
65448
|
+
|
|
65441
65449
|
var Transfer = function Transfer(props) {
|
|
65442
65450
|
var _jssStyle$transfer;
|
|
65443
65451
|
var jssStyle = props.jssStyle,
|
|
@@ -65512,7 +65520,7 @@ var Transfer = function Transfer(props) {
|
|
|
65512
65520
|
sourceSelectedKeys = _useTransfer.sourceSelectedKeys,
|
|
65513
65521
|
targetSelectedKeys = _useTransfer.targetSelectedKeys,
|
|
65514
65522
|
onFilter = _useTransfer.onFilter,
|
|
65515
|
-
|
|
65523
|
+
_onSelectChange = _useTransfer.onSelectChange;
|
|
65516
65524
|
var styles = (jssStyle === null || jssStyle === void 0 || (_jssStyle$transfer = jssStyle.transfer) === null || _jssStyle$transfer === void 0 ? void 0 : _jssStyle$transfer.call(jssStyle)) || {};
|
|
65517
65525
|
var rootClass = classnames_default()(styles.rootClass, styles.transfer, className, defineProperty_default()(defineProperty_default()(defineProperty_default()(defineProperty_default()({}, styles.simple, simple), styles.small, size === 'small'), styles.large, size === 'large'), styles.equalPanelWidth, equalPanelWidth));
|
|
65518
65526
|
var renderOperations = function renderOperations() {
|
|
@@ -65586,7 +65594,15 @@ var Transfer = function Transfer(props) {
|
|
|
65586
65594
|
searchPlaceholder: placeholder,
|
|
65587
65595
|
renderFilter: renderFilter,
|
|
65588
65596
|
onFilter: onFilterProp ? onFilter : undefined,
|
|
65589
|
-
onSelectChange: onSelectChange
|
|
65597
|
+
onSelectChange: function onSelectChange(keys) {
|
|
65598
|
+
if (isSource) {
|
|
65599
|
+
var newAllKeys = Array.from(new Set([].concat(toConsumableArray_default()(keys), toConsumableArray_default()(targetSelectedKeys || []))));
|
|
65600
|
+
_onSelectChange(newAllKeys, keys, targetSelectedKeys);
|
|
65601
|
+
} else {
|
|
65602
|
+
var _newAllKeys = Array.from(new Set([].concat(toConsumableArray_default()(keys), toConsumableArray_default()(sourceSelectedKeys || []))));
|
|
65603
|
+
_onSelectChange(_newAllKeys, sourceSelectedKeys, keys);
|
|
65604
|
+
}
|
|
65605
|
+
}
|
|
65590
65606
|
});
|
|
65591
65607
|
};
|
|
65592
65608
|
var renderSourceList = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useMemo)(function () {
|
|
@@ -70056,7 +70072,7 @@ var upload_interface = __webpack_require__(8821);
|
|
|
70056
70072
|
|
|
70057
70073
|
|
|
70058
70074
|
/* harmony default export */ var src_0 = ({
|
|
70059
|
-
version: '3.6.5-
|
|
70075
|
+
version: '3.6.5-fix.1'
|
|
70060
70076
|
});
|
|
70061
70077
|
}();
|
|
70062
70078
|
/******/ return __webpack_exports__;
|