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/index.cjs CHANGED
@@ -2039,12 +2039,14 @@ var settingRender$9 = [
2039
2039
  {
2040
2040
  label: '背景色',
2041
2041
  name: ['props', 'swiper', 'dotsBgColor'],
2042
- type: 'Color'
2042
+ type: 'Color',
2043
+ initialValue: 'rgba(0,0,0,.2)'
2043
2044
  },
2044
2045
  {
2045
2046
  label: '选中色',
2046
2047
  name: ['props', 'swiper', 'dotsActiveColor'],
2047
- type: 'Color'
2048
+ type: 'Color',
2049
+ initialValue: 'rgba(0,0,0,1)'
2048
2050
  },
2049
2051
  {
2050
2052
  label: '底边距',
@@ -9102,7 +9104,7 @@ var ExpandableText$1 = React.memo(ExpandableText);
9102
9104
 
9103
9105
  const FormatImage = React.forwardRef((props, ref) => {
9104
9106
  const { src, onLoad, style, className, loading, alt = 'image' } = props;
9105
- const [imgSrc, setImgSrc] = React.useState();
9107
+ const [imgSrc, setImgSrc] = React.useState(src);
9106
9108
  const imgRef = React.useRef(null);
9107
9109
  const [visible, setVisible] = React.useState(false);
9108
9110
  React.useImperativeHandle(ref, () => ({
@@ -9128,7 +9130,7 @@ const FormatImage = React.forwardRef((props, ref) => {
9128
9130
  };
9129
9131
  }, [src, visible]);
9130
9132
  return (React.createElement(React.Fragment, null,
9131
- !visible && React.createElement("div", { style: { width: '100%', height: '100%', zIndex: 1, backgroundColor: '#fff' } }),
9133
+ !visible && !imgSrc && React.createElement("div", { style: { width: '100%', height: '100%', zIndex: 1, backgroundColor: '#fff' } }),
9132
9134
  (imgSrc === null || imgSrc === void 0 ? void 0 : imgSrc.includes('.avif')) ? (React.createElement("picture", null,
9133
9135
  React.createElement("source", { type: 'image/avif', srcSet: imgSrc }),
9134
9136
  React.createElement("source", { type: 'image/webp', srcSet: `${imgSrc}?imageMogr2/format/webp` }),
@@ -9727,7 +9729,7 @@ const Prompt = createMaterial(PromptComponent, {
9727
9729
  * @Author: binruan@chatlabs.com
9728
9730
  * @Date: 2024-03-26 16:50:25
9729
9731
  * @LastEditors: binruan@chatlabs.com
9730
- * @LastEditTime: 2024-08-29 16:45:54
9732
+ * @LastEditTime: 2024-08-30 18:08:55
9731
9733
  * @FilePath: \pb-sxp-ui\src\materials\sxp\popup\CommodityDetailDiroNew\settingRender.tsx
9732
9734
  *
9733
9735
  */
@@ -10049,12 +10051,14 @@ var settingRender$7 = [
10049
10051
  {
10050
10052
  label: '背景色',
10051
10053
  name: ['props', 'swiper', 'dotsBgColor'],
10052
- type: 'Color'
10054
+ type: 'Color',
10055
+ initialValue: 'rgba(0,0,0,.2)'
10053
10056
  },
10054
10057
  {
10055
10058
  label: '选中色',
10056
10059
  name: ['props', 'swiper', 'dotsActiveColor'],
10057
- type: 'Color'
10060
+ type: 'Color',
10061
+ initialValue: 'rgba(0,0,0,1)'
10058
10062
  },
10059
10063
  {
10060
10064
  label: '底边距',