shineout 3.7.0-beta.35 → 3.7.0-beta.37
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 +11 -5
- 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.7.0-beta.
|
|
525
|
+
version: '3.7.0-beta.37'
|
|
526
526
|
};
|
package/dist/shineout.js
CHANGED
|
@@ -12227,7 +12227,7 @@ var handleStyle = function handleStyle(style) {
|
|
|
12227
12227
|
};
|
|
12228
12228
|
/* harmony default export */ var jss_style_handleStyle = (handleStyle);
|
|
12229
12229
|
;// CONCATENATED MODULE: ../shineout-style/src/version.ts
|
|
12230
|
-
/* harmony default export */ var version = ('3.7.0-beta.
|
|
12230
|
+
/* harmony default export */ var version = ('3.7.0-beta.37');
|
|
12231
12231
|
;// CONCATENATED MODULE: ../shineout-style/src/jss-style/index.tsx
|
|
12232
12232
|
|
|
12233
12233
|
|
|
@@ -22810,13 +22810,16 @@ var radioStyle = {
|
|
|
22810
22810
|
position: 'relative',
|
|
22811
22811
|
boxSizing: 'border-box',
|
|
22812
22812
|
width: src.radioIconWidth,
|
|
22813
|
+
minWidth: src.radioIconWidth,
|
|
22813
22814
|
height: src.radioIconWidth,
|
|
22814
22815
|
'$wrapperSmall &': {
|
|
22815
22816
|
width: src.radioSmallIconWidth,
|
|
22817
|
+
minWidth: src.radioSmallIconWidth,
|
|
22816
22818
|
height: src.radioSmallIconWidth
|
|
22817
22819
|
},
|
|
22818
22820
|
'$wrapperLarge &': {
|
|
22819
22821
|
width: src.radioLargeIconWidth,
|
|
22822
|
+
minWidth: src.radioLargeIconWidth,
|
|
22820
22823
|
height: src.radioLargeIconWidth
|
|
22821
22824
|
},
|
|
22822
22825
|
marginRight: src.radioIconGap,
|
|
@@ -36687,7 +36690,10 @@ var Carousel = function Carousel(props) {
|
|
|
36687
36690
|
_props$indicatorPosit = props.indicatorPosition,
|
|
36688
36691
|
indicatorPosition = _props$indicatorPosit === void 0 ? 'center' : _props$indicatorPosit,
|
|
36689
36692
|
_props$indicatorType = props.indicatorType,
|
|
36690
|
-
indicatorType = _props$indicatorType === void 0 ? 'circle' : _props$indicatorType
|
|
36693
|
+
indicatorType = _props$indicatorType === void 0 ? 'circle' : _props$indicatorType,
|
|
36694
|
+
itemClassName = props.itemClassName,
|
|
36695
|
+
_props$showIndicator = props.showIndicator,
|
|
36696
|
+
showIndicator = _props$showIndicator === void 0 ? true : _props$showIndicator;
|
|
36691
36697
|
var total = external_root_React_commonjs2_react_commonjs_react_amd_react_default().Children.toArray(props.children).length;
|
|
36692
36698
|
var carouselClasses = (_props$jssStyle = props.jssStyle) === null || _props$jssStyle === void 0 || (_props$jssStyle$carou = _props$jssStyle.carousel) === null || _props$jssStyle$carou === void 0 ? void 0 : _props$jssStyle$carou.call(_props$jssStyle);
|
|
36693
36699
|
var config = useConfig();
|
|
@@ -36709,7 +36715,7 @@ var Carousel = function Carousel(props) {
|
|
|
36709
36715
|
height: (_props$style = props.style) === null || _props$style === void 0 ? void 0 : _props$style.height
|
|
36710
36716
|
},
|
|
36711
36717
|
children: external_root_React_commonjs2_react_commonjs_react_amd_react_default().Children.map(props.children, function (child, index) {
|
|
36712
|
-
var itemClasses = classnames_default()(carouselClasses === null || carouselClasses === void 0 ? void 0 : carouselClasses.item, index === current && (carouselClasses === null || carouselClasses === void 0 ? void 0 : carouselClasses.itemCurrent), index === pre && pre !== current && (carouselClasses === null || carouselClasses === void 0 ? void 0 : carouselClasses.itemPre));
|
|
36718
|
+
var itemClasses = classnames_default()(carouselClasses === null || carouselClasses === void 0 ? void 0 : carouselClasses.item, index === current && (carouselClasses === null || carouselClasses === void 0 ? void 0 : carouselClasses.itemCurrent), index === pre && pre !== current && (carouselClasses === null || carouselClasses === void 0 ? void 0 : carouselClasses.itemPre), itemClassName);
|
|
36713
36719
|
return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
36714
36720
|
className: itemClasses,
|
|
36715
36721
|
children: child
|
|
@@ -36749,7 +36755,7 @@ var Carousel = function Carousel(props) {
|
|
|
36749
36755
|
});
|
|
36750
36756
|
};
|
|
36751
36757
|
var renderIndicator = function renderIndicator() {
|
|
36752
|
-
if (total <= 1) return null;
|
|
36758
|
+
if (total <= 1 || showIndicator === false) return null;
|
|
36753
36759
|
var content = null;
|
|
36754
36760
|
if (typeof indicatorType === 'function') {
|
|
36755
36761
|
content = indicatorType(current, func.moveTo);
|
|
@@ -71211,7 +71217,7 @@ var upload_interface = __webpack_require__(8821);
|
|
|
71211
71217
|
|
|
71212
71218
|
|
|
71213
71219
|
/* harmony default export */ var src_0 = ({
|
|
71214
|
-
version: '3.7.0-beta.
|
|
71220
|
+
version: '3.7.0-beta.37'
|
|
71215
71221
|
});
|
|
71216
71222
|
}();
|
|
71217
71223
|
/******/ return __webpack_exports__;
|