shineout 3.6.0-beta.21 → 3.6.0-beta.22
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/image/image.type.d.ts +2 -1
- package/cjs/index.js +1 -1
- package/dist/shineout.js +18 -6
- package/dist/shineout.js.map +1 -1
- package/dist/shineout.min.js +1 -1
- package/dist/shineout.min.js.map +1 -1
- package/esm/image/image.type.d.ts +2 -1
- package/esm/index.js +1 -1
- package/package.json +5 -5
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { ImageProps as UnStyledImageProps } from '@sheinx/base';
|
|
1
|
+
import { ImageProps as UnStyledImageProps, CustomRenderHoverMaskOptions } from '@sheinx/base';
|
|
2
2
|
/**
|
|
3
3
|
* @title Image
|
|
4
4
|
* @sort 1
|
|
5
5
|
*/
|
|
6
6
|
export type ImageProps = Omit<UnStyledImageProps, 'jssStyle' | 'renderImage' | 'renderError' | 'renderWrapper' | 'renderPlaceholder' | 'renderInnerWrapper' | 'componentRef' | 'imageRef'>;
|
|
7
|
+
export type ImageCustomRenderHoverMaskOptions = CustomRenderHoverMaskOptions;
|
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.22'
|
|
518
518
|
};
|
package/dist/shineout.js
CHANGED
|
@@ -12136,7 +12136,7 @@ var handleStyle = function handleStyle(style) {
|
|
|
12136
12136
|
};
|
|
12137
12137
|
/* harmony default export */ var jss_style_handleStyle = (handleStyle);
|
|
12138
12138
|
;// CONCATENATED MODULE: ../shineout-style/src/version.ts
|
|
12139
|
-
/* harmony default export */ var version = ('3.6.0-beta.
|
|
12139
|
+
/* harmony default export */ var version = ('3.6.0-beta.22');
|
|
12140
12140
|
;// CONCATENATED MODULE: ../shineout-style/src/jss-style/index.tsx
|
|
12141
12141
|
|
|
12142
12142
|
|
|
@@ -51511,7 +51511,7 @@ var ImageGroup = function ImageGroup(props) {
|
|
|
51511
51511
|
|
|
51512
51512
|
|
|
51513
51513
|
|
|
51514
|
-
var image_excluded = ["fit", "alt", "src", "href", "lazy", "title", "style", "error", "target", "jssStyle", "className", "placeholder", "width", "height", "shape", "autoSSL", "noImgDrag", "onClick", "componentRef"];
|
|
51514
|
+
var image_excluded = ["fit", "alt", "src", "href", "lazy", "title", "style", "error", "target", "jssStyle", "className", "placeholder", "width", "height", "shape", "autoSSL", "noImgDrag", "onClick", "componentRef", "customRenderHoverMask"];
|
|
51515
51515
|
|
|
51516
51516
|
|
|
51517
51517
|
|
|
@@ -51551,6 +51551,7 @@ var Image = function Image(props) {
|
|
|
51551
51551
|
noImgDrag = props.noImgDrag,
|
|
51552
51552
|
onClick = props.onClick,
|
|
51553
51553
|
componentRef = props.componentRef,
|
|
51554
|
+
customRenderHoverMask = props.customRenderHoverMask,
|
|
51554
51555
|
rest = objectWithoutProperties_default()(props, image_excluded);
|
|
51555
51556
|
var _useImage = use_image(objectSpread2_default()({
|
|
51556
51557
|
container: getDefaultContainer(),
|
|
@@ -51703,6 +51704,14 @@ var Image = function Image(props) {
|
|
|
51703
51704
|
|
|
51704
51705
|
// 遮罩层
|
|
51705
51706
|
var renderMask = function renderMask() {
|
|
51707
|
+
if (customRenderHoverMask) {
|
|
51708
|
+
return /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
51709
|
+
className: maskClass,
|
|
51710
|
+
children: customRenderHoverMask({
|
|
51711
|
+
preview: preview
|
|
51712
|
+
})
|
|
51713
|
+
});
|
|
51714
|
+
}
|
|
51706
51715
|
return /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
|
|
51707
51716
|
className: maskClass,
|
|
51708
51717
|
onClick: handleOpenGallery,
|
|
@@ -66596,7 +66605,9 @@ var Upload = function Upload(props0) {
|
|
|
66596
66605
|
} : _props$renderResult,
|
|
66597
66606
|
_props$listType = props.listType,
|
|
66598
66607
|
listType = _props$listType === void 0 ? 'text' : _props$listType,
|
|
66599
|
-
leftHandler = props.leftHandler
|
|
66608
|
+
leftHandler = props.leftHandler,
|
|
66609
|
+
_props$hideHandler = props.hideHandler,
|
|
66610
|
+
hideHandler = _props$hideHandler === void 0 ? false : _props$hideHandler;
|
|
66600
66611
|
var _useConfig = useConfig(),
|
|
66601
66612
|
locale = _useConfig.locale;
|
|
66602
66613
|
var uploadClasses = (_props$jssStyle = props.jssStyle) === null || _props$jssStyle === void 0 || (_props$jssStyle$uploa = _props$jssStyle.upload) === null || _props$jssStyle$uploa === void 0 ? void 0 : _props$jssStyle$uploa.call(_props$jssStyle);
|
|
@@ -66777,10 +66788,11 @@ var Upload = function Upload(props0) {
|
|
|
66777
66788
|
onFileRemove: func.removeFile,
|
|
66778
66789
|
onValueRemove: func.removeValue,
|
|
66779
66790
|
recoverValue: recycleValues,
|
|
66791
|
+
handler: renderHandler(),
|
|
66780
66792
|
onValueRecover: func.recoverValue
|
|
66781
|
-
}), !shouldRenderLeft && renderHandler()]
|
|
66793
|
+
}), !shouldRenderLeft && !hideHandler && renderHandler()]
|
|
66782
66794
|
}) : /*#__PURE__*/(0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
|
|
66783
|
-
children: [shouldRenderLeft && renderHandler(), renderValue(), renderFile(), !shouldRenderLeft && renderHandler(), renderRecover()]
|
|
66795
|
+
children: [shouldRenderLeft && !hideHandler && renderHandler(), renderValue(), renderFile(), !shouldRenderLeft && !hideHandler && renderHandler(), renderRecover()]
|
|
66784
66796
|
})
|
|
66785
66797
|
});
|
|
66786
66798
|
};
|
|
@@ -69352,7 +69364,7 @@ var upload_interface = __webpack_require__(8821);
|
|
|
69352
69364
|
|
|
69353
69365
|
|
|
69354
69366
|
/* harmony default export */ var src_0 = ({
|
|
69355
|
-
version: '3.6.0-beta.
|
|
69367
|
+
version: '3.6.0-beta.22'
|
|
69356
69368
|
});
|
|
69357
69369
|
}();
|
|
69358
69370
|
/******/ return __webpack_exports__;
|