shineout 3.6.0-beta.20 → 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 +19 -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,
|
|
@@ -52069,6 +52078,7 @@ var useNumberFormat = function useNumberFormat(props) {
|
|
|
52069
52078
|
var onInnerChange = use_persist_fn(function (val) {
|
|
52070
52079
|
setInternalInputValue(getStringValue(val));
|
|
52071
52080
|
if (typeof val === 'string') {
|
|
52081
|
+
if (val.endsWith('.')) return;
|
|
52072
52082
|
var num = parseFloat(val);
|
|
52073
52083
|
if (val === '') {
|
|
52074
52084
|
// 如果允许空值,则返回 null,否则返回 undefined
|
|
@@ -66595,7 +66605,9 @@ var Upload = function Upload(props0) {
|
|
|
66595
66605
|
} : _props$renderResult,
|
|
66596
66606
|
_props$listType = props.listType,
|
|
66597
66607
|
listType = _props$listType === void 0 ? 'text' : _props$listType,
|
|
66598
|
-
leftHandler = props.leftHandler
|
|
66608
|
+
leftHandler = props.leftHandler,
|
|
66609
|
+
_props$hideHandler = props.hideHandler,
|
|
66610
|
+
hideHandler = _props$hideHandler === void 0 ? false : _props$hideHandler;
|
|
66599
66611
|
var _useConfig = useConfig(),
|
|
66600
66612
|
locale = _useConfig.locale;
|
|
66601
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);
|
|
@@ -66776,10 +66788,11 @@ var Upload = function Upload(props0) {
|
|
|
66776
66788
|
onFileRemove: func.removeFile,
|
|
66777
66789
|
onValueRemove: func.removeValue,
|
|
66778
66790
|
recoverValue: recycleValues,
|
|
66791
|
+
handler: renderHandler(),
|
|
66779
66792
|
onValueRecover: func.recoverValue
|
|
66780
|
-
}), !shouldRenderLeft && renderHandler()]
|
|
66793
|
+
}), !shouldRenderLeft && !hideHandler && renderHandler()]
|
|
66781
66794
|
}) : /*#__PURE__*/(0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
|
|
66782
|
-
children: [shouldRenderLeft && renderHandler(), renderValue(), renderFile(), !shouldRenderLeft && renderHandler(), renderRecover()]
|
|
66795
|
+
children: [shouldRenderLeft && !hideHandler && renderHandler(), renderValue(), renderFile(), !shouldRenderLeft && !hideHandler && renderHandler(), renderRecover()]
|
|
66783
66796
|
})
|
|
66784
66797
|
});
|
|
66785
66798
|
};
|
|
@@ -69351,7 +69364,7 @@ var upload_interface = __webpack_require__(8821);
|
|
|
69351
69364
|
|
|
69352
69365
|
|
|
69353
69366
|
/* harmony default export */ var src_0 = ({
|
|
69354
|
-
version: '3.6.0-beta.
|
|
69367
|
+
version: '3.6.0-beta.22'
|
|
69355
69368
|
});
|
|
69356
69369
|
}();
|
|
69357
69370
|
/******/ return __webpack_exports__;
|