@xfe-repo/web-components 1.8.5 → 1.8.7

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/dist/index.d.mts CHANGED
@@ -691,6 +691,15 @@ declare const ModalGroup: FunctionComponent<OSSImageGroupProps>;
691
691
  declare const PreviewGroup: typeof Image.PreviewGroup;
692
692
  interface OSSImageProps extends ImageProps {
693
693
  resizeWidth?: number;
694
+ resizeHeight?: number;
695
+ /** 缩放模式
696
+ * lfit(默认值):等比缩放至指定宽高区域内最大图形。
697
+ * fill:等比缩放至覆盖指定宽高区域并居中裁剪。
698
+ * mfit:等比缩放至覆盖指定宽高区域。
699
+ * pad:等比缩放至指定宽高内最大图形并填充颜色至指定尺寸。
700
+ * fixed:固定宽高,强制缩放。
701
+ * https://help.aliyun.com/zh/oss/user-guide/resize-images-4#fb97a01efc5o6 */
702
+ resizeMode?: 'lfit' | 'mfit' | 'fill' | 'pad' | 'fixed';
694
703
  clearDefault?: boolean;
695
704
  }
696
705
  declare const OSSImage: MemoExoticComponent<FunctionComponent<OSSImageProps>> & {
package/dist/index.d.ts CHANGED
@@ -691,6 +691,15 @@ declare const ModalGroup: FunctionComponent<OSSImageGroupProps>;
691
691
  declare const PreviewGroup: typeof Image.PreviewGroup;
692
692
  interface OSSImageProps extends ImageProps {
693
693
  resizeWidth?: number;
694
+ resizeHeight?: number;
695
+ /** 缩放模式
696
+ * lfit(默认值):等比缩放至指定宽高区域内最大图形。
697
+ * fill:等比缩放至覆盖指定宽高区域并居中裁剪。
698
+ * mfit:等比缩放至覆盖指定宽高区域。
699
+ * pad:等比缩放至指定宽高内最大图形并填充颜色至指定尺寸。
700
+ * fixed:固定宽高,强制缩放。
701
+ * https://help.aliyun.com/zh/oss/user-guide/resize-images-4#fb97a01efc5o6 */
702
+ resizeMode?: 'lfit' | 'mfit' | 'fill' | 'pad' | 'fixed';
694
703
  clearDefault?: boolean;
695
704
  }
696
705
  declare const OSSImage: MemoExoticComponent<FunctionComponent<OSSImageProps>> & {
package/dist/index.js CHANGED
@@ -3072,9 +3072,11 @@ var import_jsx_runtime20 = require("react/jsx-runtime");
3072
3072
  var PreviewGroup = import_antd16.Image.PreviewGroup;
3073
3073
  var fallback = "https://imgs.eshetang.com/product/default-product-1608019533274.png";
3074
3074
  var _OSSImage = (0, import_react24.memo)(function(props) {
3075
- var _props_src = props.src, src = _props_src === void 0 ? "" : _props_src, _props_resizeWidth = props.resizeWidth, resizeWidth = _props_resizeWidth === void 0 ? 750 : _props_resizeWidth, preview = props.preview, clearDefault = props.clearDefault, params = _object_without_properties(props, [
3075
+ var _props_src = props.src, src = _props_src === void 0 ? "" : _props_src, tmp = props.resizeWidth, width = tmp === void 0 ? 750 : tmp, height = props.resizeHeight, mode = props.resizeMode, preview = props.preview, clearDefault = props.clearDefault, params = _object_without_properties(props, [
3076
3076
  "src",
3077
3077
  "resizeWidth",
3078
+ "resizeHeight",
3079
+ "resizeMode",
3078
3080
  "preview",
3079
3081
  "clearDefault"
3080
3082
  ]);
@@ -3095,7 +3097,9 @@ var _OSSImage = (0, import_react24.memo)(function(props) {
3095
3097
  };
3096
3098
  return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_antd16.Image, _object_spread_props(_object_spread({}, params), {
3097
3099
  src: (0, import_tools2.resizeAliYun)(src, {
3098
- width: resizeWidth
3100
+ width: width,
3101
+ height: height,
3102
+ mode: mode
3099
3103
  }),
3100
3104
  preview: resizePreview(),
3101
3105
  fallback: clearDefault ? void 0 : fallback,
@@ -6358,7 +6362,7 @@ var EffectSkuRecognize = (0, import_react44.memo)(function(props) {
6358
6362
  })
6359
6363
  }),
6360
6364
  /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)(Link, {
6361
- href: "/dashboard/product/standardSku/detail?skuId=".concat(item.skuId),
6365
+ href: "https://data-system.eshetang.com/product/sku-standard-page/detail?skuId=".concat(item.skuId),
6362
6366
  target: "_blank",
6363
6367
  children: [
6364
6368
  item.brandName,
package/dist/index.mjs CHANGED
@@ -2790,9 +2790,11 @@ import { jsx as jsx20 } from "react/jsx-runtime";
2790
2790
  var PreviewGroup = Image2.PreviewGroup;
2791
2791
  var fallback = "https://imgs.eshetang.com/product/default-product-1608019533274.png";
2792
2792
  var _OSSImage = memo16(function(props) {
2793
- var _props_src = props.src, src = _props_src === void 0 ? "" : _props_src, _props_resizeWidth = props.resizeWidth, resizeWidth = _props_resizeWidth === void 0 ? 750 : _props_resizeWidth, preview = props.preview, clearDefault = props.clearDefault, params = _object_without_properties(props, [
2793
+ var _props_src = props.src, src = _props_src === void 0 ? "" : _props_src, tmp = props.resizeWidth, width = tmp === void 0 ? 750 : tmp, height = props.resizeHeight, mode = props.resizeMode, preview = props.preview, clearDefault = props.clearDefault, params = _object_without_properties(props, [
2794
2794
  "src",
2795
2795
  "resizeWidth",
2796
+ "resizeHeight",
2797
+ "resizeMode",
2796
2798
  "preview",
2797
2799
  "clearDefault"
2798
2800
  ]);
@@ -2813,7 +2815,9 @@ var _OSSImage = memo16(function(props) {
2813
2815
  };
2814
2816
  return /* @__PURE__ */ jsx20(Image2, _object_spread_props(_object_spread({}, params), {
2815
2817
  src: resizeAliYun(src, {
2816
- width: resizeWidth
2818
+ width: width,
2819
+ height: height,
2820
+ mode: mode
2817
2821
  }),
2818
2822
  preview: resizePreview(),
2819
2823
  fallback: clearDefault ? void 0 : fallback,
@@ -6076,7 +6080,7 @@ var EffectSkuRecognize = memo30(function(props) {
6076
6080
  })
6077
6081
  }),
6078
6082
  /* @__PURE__ */ jsxs17(Link, {
6079
- href: "/dashboard/product/standardSku/detail?skuId=".concat(item.skuId),
6083
+ href: "https://data-system.eshetang.com/product/sku-standard-page/detail?skuId=".concat(item.skuId),
6080
6084
  target: "_blank",
6081
6085
  children: [
6082
6086
  item.brandName,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xfe-repo/web-components",
3
- "version": "1.8.5",
3
+ "version": "1.8.7",
4
4
  "module": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "sideEffects": [
@@ -64,9 +64,9 @@
64
64
  "react-use": "^17.5.1",
65
65
  "swr": "^2.2.5",
66
66
  "@xfe-repo/web-micro": "1.7.0",
67
- "@xfe-repo/web-service": "1.6.0",
68
67
  "@xfe-repo/web-router": "1.6.1",
69
- "@xfe-repo/web-utils": "1.6.1"
68
+ "@xfe-repo/web-service": "1.6.0",
69
+ "@xfe-repo/web-utils": "1.6.2"
70
70
  },
71
71
  "publishConfig": {
72
72
  "registry": "https://registry.npmjs.org/"