shineout 3.6.5-beta.9 → 3.6.6-beta.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 +43 -30
- 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.
|
|
517
|
+
version: '3.6.6-beta.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.
|
|
12220
|
+
/* harmony default export */ var version = ('3.6.6-beta.1');
|
|
12221
12221
|
;// CONCATENATED MODULE: ../shineout-style/src/jss-style/index.tsx
|
|
12222
12222
|
|
|
12223
12223
|
|
|
@@ -21762,9 +21762,6 @@ var modalStyle = objectSpread2_default()(objectSpread2_default()({
|
|
|
21762
21762
|
height: '100vh',
|
|
21763
21763
|
width: '100vw',
|
|
21764
21764
|
overflow: 'auto'
|
|
21765
|
-
},
|
|
21766
|
-
'& $body': {
|
|
21767
|
-
minHeight: 'auto'
|
|
21768
21765
|
}
|
|
21769
21766
|
},
|
|
21770
21767
|
wrapperZoom: {
|
|
@@ -33995,9 +33992,16 @@ var accordion_jssStyle = {
|
|
|
33995
33992
|
var ModalSubmit = function ModalSubmit(props) {
|
|
33996
33993
|
var modalFormContext = useFormFooter();
|
|
33997
33994
|
var handleClick = usePersistFn(function (e) {
|
|
33998
|
-
var
|
|
33999
|
-
(
|
|
34000
|
-
|
|
33995
|
+
var _modalFormContext$fun;
|
|
33996
|
+
if (modalFormContext !== null && modalFormContext !== void 0 && (_modalFormContext$fun = modalFormContext.func) !== null && _modalFormContext$fun !== void 0 && _modalFormContext$fun.hasSubmit) {
|
|
33997
|
+
modalFormContext === null || modalFormContext === void 0 || modalFormContext.func.submit(true, function () {
|
|
33998
|
+
var _props$onClick;
|
|
33999
|
+
return (_props$onClick = props.onClick) === null || _props$onClick === void 0 ? void 0 : _props$onClick.call(props, e);
|
|
34000
|
+
});
|
|
34001
|
+
} else {
|
|
34002
|
+
var _props$onClick2;
|
|
34003
|
+
(_props$onClick2 = props.onClick) === null || _props$onClick2 === void 0 || _props$onClick2.call(props, e);
|
|
34004
|
+
}
|
|
34001
34005
|
});
|
|
34002
34006
|
return /*#__PURE__*/(0,jsx_runtime.jsx)(base_src_button_button, objectSpread2_default()(objectSpread2_default()({
|
|
34003
34007
|
htmlType: "button",
|
|
@@ -49447,7 +49451,8 @@ var useForm = function useForm(props) {
|
|
|
49447
49451
|
size = props.size,
|
|
49448
49452
|
colon = props.colon,
|
|
49449
49453
|
formName = props.name,
|
|
49450
|
-
scrollParent = props.scrollParent
|
|
49454
|
+
scrollParent = props.scrollParent,
|
|
49455
|
+
isControl = props.isControl;
|
|
49451
49456
|
var deepSetOptions = {
|
|
49452
49457
|
removeUndefined: removeUndefined,
|
|
49453
49458
|
forceSet: true
|
|
@@ -49768,6 +49773,7 @@ var useForm = function useForm(props) {
|
|
|
49768
49773
|
});
|
|
49769
49774
|
var submit = use_persist_fn(function () {
|
|
49770
49775
|
var withValidate = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;
|
|
49776
|
+
var callback = arguments.length > 1 ? arguments[1] : undefined;
|
|
49771
49777
|
if (disabled) return;
|
|
49772
49778
|
if (context.submitLock) {
|
|
49773
49779
|
return;
|
|
@@ -49785,32 +49791,29 @@ var useForm = function useForm(props) {
|
|
|
49785
49791
|
while (1) switch (_context.prev = _context.next) {
|
|
49786
49792
|
case 0:
|
|
49787
49793
|
if (withValidate) {
|
|
49788
|
-
_context.next =
|
|
49794
|
+
_context.next = 4;
|
|
49789
49795
|
break;
|
|
49790
49796
|
}
|
|
49791
49797
|
(_props$onSubmit = props.onSubmit) === null || _props$onSubmit === void 0 || _props$onSubmit.call(props, (_context$value = context.value) !== null && _context$value !== void 0 ? _context$value : {});
|
|
49798
|
+
callback === null || callback === void 0 || callback();
|
|
49792
49799
|
return _context.abrupt("return");
|
|
49793
|
-
case
|
|
49794
|
-
_context.next =
|
|
49800
|
+
case 4:
|
|
49801
|
+
_context.next = 6;
|
|
49795
49802
|
return validateFields(undefined, {
|
|
49796
49803
|
ignoreBind: true
|
|
49797
49804
|
}).catch(function (e) {
|
|
49798
49805
|
return e;
|
|
49799
49806
|
});
|
|
49800
|
-
case
|
|
49807
|
+
case 6:
|
|
49801
49808
|
result = _context.sent;
|
|
49802
|
-
if (
|
|
49803
|
-
|
|
49804
|
-
|
|
49809
|
+
if (result === true) {
|
|
49810
|
+
(_props$onSubmit2 = props.onSubmit) === null || _props$onSubmit2 === void 0 || _props$onSubmit2.call(props, (_context$value2 = context.value) !== null && _context$value2 !== void 0 ? _context$value2 : {});
|
|
49811
|
+
if (activeEl) activeEl.focus();
|
|
49812
|
+
} else {
|
|
49813
|
+
handleSubmitError(result);
|
|
49805
49814
|
}
|
|
49806
|
-
|
|
49807
|
-
|
|
49808
|
-
_context.next = 13;
|
|
49809
|
-
break;
|
|
49810
|
-
case 11:
|
|
49811
|
-
handleSubmitError(result);
|
|
49812
|
-
return _context.abrupt("return");
|
|
49813
|
-
case 13:
|
|
49815
|
+
callback === null || callback === void 0 || callback();
|
|
49816
|
+
case 9:
|
|
49814
49817
|
case "end":
|
|
49815
49818
|
return _context.stop();
|
|
49816
49819
|
}
|
|
@@ -50011,7 +50014,7 @@ var useForm = function useForm(props) {
|
|
|
50011
50014
|
context.removeLock = false;
|
|
50012
50015
|
// 内部 onChange 改的 value, 不需要更新
|
|
50013
50016
|
if (props.value === context.value) {
|
|
50014
|
-
|
|
50017
|
+
if (!isControl) update();
|
|
50015
50018
|
return;
|
|
50016
50019
|
}
|
|
50017
50020
|
if (initValidate && !context.resetTime) {
|
|
@@ -63813,7 +63816,8 @@ var TabsPanel = function TabsPanel(props) {
|
|
|
63813
63816
|
active = _useTabsContext.active,
|
|
63814
63817
|
lazy = _useTabsContext.lazy,
|
|
63815
63818
|
setTabs = _useTabsContext.setTabs,
|
|
63816
|
-
color = _useTabsContext.color
|
|
63819
|
+
color = _useTabsContext.color,
|
|
63820
|
+
shape = _useTabsContext.shape;
|
|
63817
63821
|
var isActive = active === id;
|
|
63818
63822
|
var keekAlive = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(false);
|
|
63819
63823
|
(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useLayoutEffect)(function () {
|
|
@@ -63822,7 +63826,7 @@ var TabsPanel = function TabsPanel(props) {
|
|
|
63822
63826
|
tab: tab,
|
|
63823
63827
|
disabled: props.disabled,
|
|
63824
63828
|
jssStyle: jssStyle,
|
|
63825
|
-
background: background,
|
|
63829
|
+
background: shape !== 'button' && shape !== 'fill' ? background : undefined,
|
|
63826
63830
|
color: props.color || (active === id ? color : undefined)
|
|
63827
63831
|
};
|
|
63828
63832
|
setTabs(function (prev) {
|
|
@@ -63851,7 +63855,7 @@ var TabsPanel = function TabsPanel(props) {
|
|
|
63851
63855
|
});
|
|
63852
63856
|
});
|
|
63853
63857
|
};
|
|
63854
|
-
}, [id, tab, color, active, props.disabled, props.jssStyle]);
|
|
63858
|
+
}, [id, tab, color, active, shape, props.disabled, props.jssStyle]);
|
|
63855
63859
|
if (!isActive && lazy && !keekAlive.current) {
|
|
63856
63860
|
return null;
|
|
63857
63861
|
}
|
|
@@ -65440,6 +65444,7 @@ var TransferOperate = function TransferOperate(props) {
|
|
|
65440
65444
|
|
|
65441
65445
|
|
|
65442
65446
|
|
|
65447
|
+
|
|
65443
65448
|
var Transfer = function Transfer(props) {
|
|
65444
65449
|
var _jssStyle$transfer;
|
|
65445
65450
|
var jssStyle = props.jssStyle,
|
|
@@ -65514,7 +65519,7 @@ var Transfer = function Transfer(props) {
|
|
|
65514
65519
|
sourceSelectedKeys = _useTransfer.sourceSelectedKeys,
|
|
65515
65520
|
targetSelectedKeys = _useTransfer.targetSelectedKeys,
|
|
65516
65521
|
onFilter = _useTransfer.onFilter,
|
|
65517
|
-
|
|
65522
|
+
_onSelectChange = _useTransfer.onSelectChange;
|
|
65518
65523
|
var styles = (jssStyle === null || jssStyle === void 0 || (_jssStyle$transfer = jssStyle.transfer) === null || _jssStyle$transfer === void 0 ? void 0 : _jssStyle$transfer.call(jssStyle)) || {};
|
|
65519
65524
|
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));
|
|
65520
65525
|
var renderOperations = function renderOperations() {
|
|
@@ -65588,7 +65593,15 @@ var Transfer = function Transfer(props) {
|
|
|
65588
65593
|
searchPlaceholder: placeholder,
|
|
65589
65594
|
renderFilter: renderFilter,
|
|
65590
65595
|
onFilter: onFilterProp ? onFilter : undefined,
|
|
65591
|
-
onSelectChange: onSelectChange
|
|
65596
|
+
onSelectChange: function onSelectChange(keys) {
|
|
65597
|
+
if (isSource) {
|
|
65598
|
+
var newAllKeys = Array.from(new Set([].concat(toConsumableArray_default()(keys), toConsumableArray_default()(targetSelectedKeys || []))));
|
|
65599
|
+
_onSelectChange(newAllKeys, keys, targetSelectedKeys);
|
|
65600
|
+
} else {
|
|
65601
|
+
var _newAllKeys = Array.from(new Set([].concat(toConsumableArray_default()(keys), toConsumableArray_default()(sourceSelectedKeys || []))));
|
|
65602
|
+
_onSelectChange(_newAllKeys, sourceSelectedKeys, keys);
|
|
65603
|
+
}
|
|
65604
|
+
}
|
|
65592
65605
|
});
|
|
65593
65606
|
};
|
|
65594
65607
|
var renderSourceList = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useMemo)(function () {
|
|
@@ -70058,7 +70071,7 @@ var upload_interface = __webpack_require__(8821);
|
|
|
70058
70071
|
|
|
70059
70072
|
|
|
70060
70073
|
/* harmony default export */ var src_0 = ({
|
|
70061
|
-
version: '3.6.
|
|
70074
|
+
version: '3.6.6-beta.1'
|
|
70062
70075
|
});
|
|
70063
70076
|
}();
|
|
70064
70077
|
/******/ return __webpack_exports__;
|