shineout 3.2.6-beta.0 → 3.2.6-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 +61 -27
- 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
|
@@ -476,5 +476,5 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
|
476
476
|
// 此文件由脚本自动生成,请勿直接修改。
|
|
477
477
|
// This file was generated automatically by a script. Please do not modify it directly.
|
|
478
478
|
var _default = exports.default = {
|
|
479
|
-
version: '3.2.6-
|
|
479
|
+
version: '3.2.6-fix.1'
|
|
480
480
|
};
|
package/dist/shineout.js
CHANGED
|
@@ -11960,7 +11960,7 @@ var handleStyle = function handleStyle(style) {
|
|
|
11960
11960
|
};
|
|
11961
11961
|
/* harmony default export */ var jss_style_handleStyle = (handleStyle);
|
|
11962
11962
|
;// CONCATENATED MODULE: ../shineout-style/src/version.ts
|
|
11963
|
-
/* harmony default export */ var version = ('3.2.6-
|
|
11963
|
+
/* harmony default export */ var version = ('3.2.6-fix.1');
|
|
11964
11964
|
;// CONCATENATED MODULE: ../shineout-style/src/jss-style/index.tsx
|
|
11965
11965
|
|
|
11966
11966
|
|
|
@@ -14945,6 +14945,9 @@ var alertStyle = {
|
|
|
14945
14945
|
marginLeft: src.alertNearlyMargin,
|
|
14946
14946
|
'&:hover': {
|
|
14947
14947
|
color: src.alertCloseHoverColor
|
|
14948
|
+
},
|
|
14949
|
+
'& svg': {
|
|
14950
|
+
width: '100%'
|
|
14948
14951
|
}
|
|
14949
14952
|
},
|
|
14950
14953
|
closeWrapper: {
|
|
@@ -15012,7 +15015,10 @@ var alertStyle = {
|
|
|
15012
15015
|
height: src.lineHeightDynamic,
|
|
15013
15016
|
flex: '0 0 auto',
|
|
15014
15017
|
alignItems: 'center',
|
|
15015
|
-
marginRight: src.alertNearlyMargin
|
|
15018
|
+
marginRight: src.alertNearlyMargin,
|
|
15019
|
+
'& svg': {
|
|
15020
|
+
width: '100%'
|
|
15021
|
+
}
|
|
15016
15022
|
}
|
|
15017
15023
|
};
|
|
15018
15024
|
/* harmony default export */ var shineout_style_src_alert_alert = (alertStyle);
|
|
@@ -16606,6 +16612,12 @@ var cascaderStyle = objectSpread2_default()(objectSpread2_default()({
|
|
|
16606
16612
|
borderRight: "1px solid ".concat(src.cascaderListBorderColor)
|
|
16607
16613
|
}
|
|
16608
16614
|
},
|
|
16615
|
+
filterList: {
|
|
16616
|
+
display: 'block',
|
|
16617
|
+
'& $list': {
|
|
16618
|
+
width: '100%'
|
|
16619
|
+
}
|
|
16620
|
+
},
|
|
16609
16621
|
hideTag: {},
|
|
16610
16622
|
list: {
|
|
16611
16623
|
paddingTop: 3,
|
|
@@ -23324,7 +23336,10 @@ var stepsStyle = {
|
|
|
23324
23336
|
iconWrapper: {
|
|
23325
23337
|
display: 'inline-block',
|
|
23326
23338
|
textAlign: 'center',
|
|
23327
|
-
borderRadius: '50%'
|
|
23339
|
+
borderRadius: '50%',
|
|
23340
|
+
'& svg': {
|
|
23341
|
+
width: "calc(100% - 12px)"
|
|
23342
|
+
}
|
|
23328
23343
|
},
|
|
23329
23344
|
dot: {
|
|
23330
23345
|
'&$vertical': {
|
|
@@ -23962,9 +23977,6 @@ var tableStyle = objectSpread2_default()(objectSpread2_default()({}, globalStyle
|
|
|
23962
23977
|
background: src.tableTfootBackgroundColor,
|
|
23963
23978
|
color: src.tableTfootFontColor,
|
|
23964
23979
|
fontWeight: src.tableTfootFontWeight
|
|
23965
|
-
},
|
|
23966
|
-
'&bordered tr:last-child td': {
|
|
23967
|
-
borderBottom: 'none'
|
|
23968
23980
|
}
|
|
23969
23981
|
}
|
|
23970
23982
|
},
|
|
@@ -24015,6 +24027,17 @@ var tableStyle = objectSpread2_default()(objectSpread2_default()({}, globalStyle
|
|
|
24015
24027
|
bordered: {
|
|
24016
24028
|
border: "1px solid ".concat(src.tableCellBorderColor),
|
|
24017
24029
|
borderBottom: 'none',
|
|
24030
|
+
borderTop: 'none',
|
|
24031
|
+
'&::before': {
|
|
24032
|
+
position: 'absolute',
|
|
24033
|
+
zIndex: 7,
|
|
24034
|
+
content: '""',
|
|
24035
|
+
display: 'block',
|
|
24036
|
+
top: 0,
|
|
24037
|
+
left: 0,
|
|
24038
|
+
right: 0,
|
|
24039
|
+
borderTop: "1px solid ".concat(src.tableCellBorderColor)
|
|
24040
|
+
},
|
|
24018
24041
|
'&::after': {
|
|
24019
24042
|
position: 'absolute',
|
|
24020
24043
|
content: '""',
|
|
@@ -28088,7 +28111,7 @@ var usePositionStyle = function usePositionStyle(config) {
|
|
|
28088
28111
|
setStyle(newStyle);
|
|
28089
28112
|
}
|
|
28090
28113
|
});
|
|
28091
|
-
(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(updateStyle, [show, position, absolute, updateKey]);
|
|
28114
|
+
(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(updateStyle, [show, position, absolute, updateKey, fixedWidth]);
|
|
28092
28115
|
return style;
|
|
28093
28116
|
};
|
|
28094
28117
|
/* harmony default export */ var use_position_style = ((/* unused pure expression or super */ null && (usePositionStyle)));
|
|
@@ -31423,19 +31446,18 @@ function useInputAble(props) {
|
|
|
31423
31446
|
var render = useRender(syncValue);
|
|
31424
31447
|
var shouldUseState = delay || !control;
|
|
31425
31448
|
var value = shouldUseState ? stateValue : valuePo;
|
|
31426
|
-
(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.
|
|
31427
|
-
if (context.timer) {
|
|
31428
|
-
clearTimeout(context.timer);
|
|
31429
|
-
context.timer = null;
|
|
31430
|
-
}
|
|
31449
|
+
(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useLayoutEffect)(function () {
|
|
31431
31450
|
if (delay && props.value !== stateValue) {
|
|
31432
31451
|
changeStateValue(props.value);
|
|
31452
|
+
} else if (context.timer) {
|
|
31453
|
+
clearTimeout(context.timer);
|
|
31454
|
+
context.timer = null;
|
|
31433
31455
|
}
|
|
31434
31456
|
}, [props.value, delay]);
|
|
31435
31457
|
var forceDelayChange = use_persist_fn(function () {
|
|
31436
|
-
if (context.
|
|
31458
|
+
if (context.delayChange) context.delayChange();
|
|
31459
|
+
if (context.timer) {
|
|
31437
31460
|
clearTimeout(context.timer);
|
|
31438
|
-
context.delayChange();
|
|
31439
31461
|
context.timer = null;
|
|
31440
31462
|
context.delayChange = null;
|
|
31441
31463
|
}
|
|
@@ -36624,12 +36646,14 @@ var preventDefault = function preventDefault(e) {
|
|
|
36624
36646
|
var Cascader = function Cascader(props0) {
|
|
36625
36647
|
var _jssStyle$cascader;
|
|
36626
36648
|
var props = use_with_form_config(props0);
|
|
36649
|
+
var defaultHeight = 232;
|
|
36627
36650
|
var jssStyle = props.jssStyle,
|
|
36628
36651
|
style = props.style,
|
|
36629
36652
|
_props$adjust = props.adjust,
|
|
36630
36653
|
adjust = _props$adjust === void 0 ? true : _props$adjust,
|
|
36631
36654
|
width = props.width,
|
|
36632
|
-
height = props.height,
|
|
36655
|
+
_props$height = props.height,
|
|
36656
|
+
height = _props$height === void 0 ? defaultHeight : _props$height,
|
|
36633
36657
|
className = props.className,
|
|
36634
36658
|
_props$hideTag = props.hideTag,
|
|
36635
36659
|
hideTag = _props$hideTag === void 0 ? false : _props$hideTag,
|
|
@@ -36725,6 +36749,7 @@ var Cascader = function Cascader(props0) {
|
|
|
36725
36749
|
filterFunc = _useFilter.filterFunc,
|
|
36726
36750
|
onFilter = _useFilter.onFilter;
|
|
36727
36751
|
var isDataEmpty = !filterData || filterData.length === 0;
|
|
36752
|
+
var isMultiple = multiple === true || mode !== undefined;
|
|
36728
36753
|
var _useCascader = use_cascader({
|
|
36729
36754
|
data: data,
|
|
36730
36755
|
control: 'value' in props,
|
|
@@ -37033,7 +37058,6 @@ var Cascader = function Cascader(props0) {
|
|
|
37033
37058
|
};
|
|
37034
37059
|
var renderList = function renderList() {
|
|
37035
37060
|
var tempData = filterData;
|
|
37036
|
-
var isMultiple = multiple === true || mode !== undefined;
|
|
37037
37061
|
var cascaderList = [/*#__PURE__*/(0,jsx_runtime.jsx)(cascader_list, {
|
|
37038
37062
|
jssStyle: jssStyle,
|
|
37039
37063
|
datum: datum,
|
|
@@ -37084,11 +37108,10 @@ var Cascader = function Cascader(props0) {
|
|
|
37084
37108
|
}
|
|
37085
37109
|
var listStyle = data && data.length === 0 ? {
|
|
37086
37110
|
height: 'auto',
|
|
37087
|
-
minHeight:
|
|
37111
|
+
minHeight: height,
|
|
37088
37112
|
width: '100%'
|
|
37089
37113
|
} : {
|
|
37090
|
-
height: height
|
|
37091
|
-
minHeight: height || 232
|
|
37114
|
+
height: height
|
|
37092
37115
|
};
|
|
37093
37116
|
return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
37094
37117
|
className: classnames_default()(styles.listContent),
|
|
@@ -37108,13 +37131,12 @@ var Cascader = function Cascader(props0) {
|
|
|
37108
37131
|
};
|
|
37109
37132
|
var renderFilterList = function renderFilterList() {
|
|
37110
37133
|
var listStyle = data && data.length === 0 ? {
|
|
37111
|
-
|
|
37112
|
-
width: '100%'
|
|
37134
|
+
maxHeight: height
|
|
37113
37135
|
} : {
|
|
37114
|
-
|
|
37136
|
+
maxHeight: height
|
|
37115
37137
|
};
|
|
37116
37138
|
return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
37117
|
-
className: classnames_default()(styles.listContent),
|
|
37139
|
+
className: classnames_default()(styles.listContent, styles.filterList),
|
|
37118
37140
|
style: listStyle,
|
|
37119
37141
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(filter_list, {
|
|
37120
37142
|
jssStyle: jssStyle,
|
|
@@ -37198,8 +37220,17 @@ var Cascader = function Cascader(props0) {
|
|
|
37198
37220
|
}, []);
|
|
37199
37221
|
var shouldFullWidth = props.loading || isDataEmpty;
|
|
37200
37222
|
var pickerWrapperStyle = shouldFullWidth ? {
|
|
37201
|
-
minWidth: '100%'
|
|
37223
|
+
minWidth: absolute && isDataEmpty ? '' : '100%'
|
|
37202
37224
|
} : {};
|
|
37225
|
+
var getFixedWidth = function getFixedWidth() {
|
|
37226
|
+
if (absolute && isDataEmpty) {
|
|
37227
|
+
return true;
|
|
37228
|
+
}
|
|
37229
|
+
if (filterText && !isMultiple) {
|
|
37230
|
+
return 'min';
|
|
37231
|
+
}
|
|
37232
|
+
return false;
|
|
37233
|
+
};
|
|
37203
37234
|
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", objectSpread2_default()(objectSpread2_default()({
|
|
37204
37235
|
tabIndex: disabled === true || showInput ? undefined : 0
|
|
37205
37236
|
}, getDataAttribute(defineProperty_default()({}, 'input-border', 'true'))), {}, {
|
|
@@ -37217,7 +37248,7 @@ var Cascader = function Cascader(props0) {
|
|
|
37217
37248
|
children: [tipNode, renderResult(), /*#__PURE__*/(0,jsx_runtime.jsx)(absolute_list, {
|
|
37218
37249
|
adjust: adjust,
|
|
37219
37250
|
focus: open,
|
|
37220
|
-
fixedWidth:
|
|
37251
|
+
fixedWidth: getFixedWidth(),
|
|
37221
37252
|
absolute: absolute,
|
|
37222
37253
|
zIndex: zIndex,
|
|
37223
37254
|
position: position,
|
|
@@ -50641,6 +50672,9 @@ var usePagination = function usePagination(props) {
|
|
|
50641
50672
|
(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
|
|
50642
50673
|
if (pageSizeProp !== pageSize) setPageSize(pageSizeProp);
|
|
50643
50674
|
}, [pageSizeProp]);
|
|
50675
|
+
(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
|
|
50676
|
+
if (currentProp !== undefined && currentProp !== current) setCurrent(currentProp);
|
|
50677
|
+
}, [currentProp]);
|
|
50644
50678
|
var handleChange = usePersistFn(function (c, size) {
|
|
50645
50679
|
if (c === current && size === undefined) return;
|
|
50646
50680
|
setCurrent(c);
|
|
@@ -50660,7 +50694,7 @@ var usePagination = function usePagination(props) {
|
|
|
50660
50694
|
return objectSpread2_default()({}, mergedEventHandlers);
|
|
50661
50695
|
};
|
|
50662
50696
|
return {
|
|
50663
|
-
current:
|
|
50697
|
+
current: current,
|
|
50664
50698
|
pageSize: pageSize,
|
|
50665
50699
|
total: total,
|
|
50666
50700
|
onChange: handleChange,
|
|
@@ -63089,7 +63123,7 @@ var upload_interface = __webpack_require__(4412);
|
|
|
63089
63123
|
|
|
63090
63124
|
|
|
63091
63125
|
/* harmony default export */ var src_0 = ({
|
|
63092
|
-
version: '3.2.6-
|
|
63126
|
+
version: '3.2.6-fix.1'
|
|
63093
63127
|
});
|
|
63094
63128
|
}();
|
|
63095
63129
|
/******/ return __webpack_exports__;
|