pb-sxp-ui 1.4.2 → 1.4.4

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/pb-ui.js CHANGED
@@ -2032,12 +2032,14 @@
2032
2032
  {
2033
2033
  label: '背景色',
2034
2034
  name: ['props', 'swiper', 'dotsBgColor'],
2035
- type: 'Color'
2035
+ type: 'Color',
2036
+ initialValue: 'rgba(0,0,0,.2)'
2036
2037
  },
2037
2038
  {
2038
2039
  label: '选中色',
2039
2040
  name: ['props', 'swiper', 'dotsActiveColor'],
2040
- type: 'Color'
2041
+ type: 'Color',
2042
+ initialValue: 'rgba(0,0,0,1)'
2041
2043
  },
2042
2044
  {
2043
2045
  label: '底边距',
@@ -9095,7 +9097,7 @@
9095
9097
 
9096
9098
  const FormatImage = React.forwardRef((props, ref) => {
9097
9099
  const { src, onLoad, style, className, loading, alt = 'image' } = props;
9098
- const [imgSrc, setImgSrc] = React.useState();
9100
+ const [imgSrc, setImgSrc] = React.useState(src);
9099
9101
  const imgRef = React.useRef(null);
9100
9102
  const [visible, setVisible] = React.useState(false);
9101
9103
  React.useImperativeHandle(ref, () => ({
@@ -9121,7 +9123,7 @@
9121
9123
  };
9122
9124
  }, [src, visible]);
9123
9125
  return (React.createElement(React.Fragment, null,
9124
- !visible && React.createElement("div", { style: { width: '100%', height: '100%', zIndex: 1, backgroundColor: '#fff' } }),
9126
+ !visible && !imgSrc && React.createElement("div", { style: { width: '100%', height: '100%', zIndex: 1, backgroundColor: '#fff' } }),
9125
9127
  (imgSrc === null || imgSrc === void 0 ? void 0 : imgSrc.includes('.avif')) ? (React.createElement("picture", null,
9126
9128
  React.createElement("source", { type: 'image/avif', srcSet: imgSrc }),
9127
9129
  React.createElement("source", { type: 'image/webp', srcSet: `${imgSrc}?imageMogr2/format/webp` }),
@@ -9720,7 +9722,7 @@
9720
9722
  * @Author: binruan@chatlabs.com
9721
9723
  * @Date: 2024-03-26 16:50:25
9722
9724
  * @LastEditors: binruan@chatlabs.com
9723
- * @LastEditTime: 2024-08-29 16:45:54
9725
+ * @LastEditTime: 2024-08-30 18:08:55
9724
9726
  * @FilePath: \pb-sxp-ui\src\materials\sxp\popup\CommodityDetailDiroNew\settingRender.tsx
9725
9727
  *
9726
9728
  */
@@ -10042,12 +10044,14 @@
10042
10044
  {
10043
10045
  label: '背景色',
10044
10046
  name: ['props', 'swiper', 'dotsBgColor'],
10045
- type: 'Color'
10047
+ type: 'Color',
10048
+ initialValue: 'rgba(0,0,0,.2)'
10046
10049
  },
10047
10050
  {
10048
10051
  label: '选中色',
10049
10052
  name: ['props', 'swiper', 'dotsActiveColor'],
10050
- type: 'Color'
10053
+ type: 'Color',
10054
+ initialValue: 'rgba(0,0,0,1)'
10051
10055
  },
10052
10056
  {
10053
10057
  label: '底边距',