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.js CHANGED
@@ -2017,12 +2017,14 @@ var settingRender$9 = [
2017
2017
  {
2018
2018
  label: '背景色',
2019
2019
  name: ['props', 'swiper', 'dotsBgColor'],
2020
- type: 'Color'
2020
+ type: 'Color',
2021
+ initialValue: 'rgba(0,0,0,.2)'
2021
2022
  },
2022
2023
  {
2023
2024
  label: '选中色',
2024
2025
  name: ['props', 'swiper', 'dotsActiveColor'],
2025
- type: 'Color'
2026
+ type: 'Color',
2027
+ initialValue: 'rgba(0,0,0,1)'
2026
2028
  },
2027
2029
  {
2028
2030
  label: '底边距',
@@ -9080,7 +9082,7 @@ var ExpandableText$1 = memo(ExpandableText);
9080
9082
 
9081
9083
  const FormatImage = forwardRef((props, ref) => {
9082
9084
  const { src, onLoad, style, className, loading, alt = 'image' } = props;
9083
- const [imgSrc, setImgSrc] = useState();
9085
+ const [imgSrc, setImgSrc] = useState(src);
9084
9086
  const imgRef = useRef(null);
9085
9087
  const [visible, setVisible] = useState(false);
9086
9088
  useImperativeHandle(ref, () => ({
@@ -9106,7 +9108,7 @@ const FormatImage = forwardRef((props, ref) => {
9106
9108
  };
9107
9109
  }, [src, visible]);
9108
9110
  return (React.createElement(React.Fragment, null,
9109
- !visible && React.createElement("div", { style: { width: '100%', height: '100%', zIndex: 1, backgroundColor: '#fff' } }),
9111
+ !visible && !imgSrc && React.createElement("div", { style: { width: '100%', height: '100%', zIndex: 1, backgroundColor: '#fff' } }),
9110
9112
  (imgSrc === null || imgSrc === void 0 ? void 0 : imgSrc.includes('.avif')) ? (React.createElement("picture", null,
9111
9113
  React.createElement("source", { type: 'image/avif', srcSet: imgSrc }),
9112
9114
  React.createElement("source", { type: 'image/webp', srcSet: `${imgSrc}?imageMogr2/format/webp` }),
@@ -9705,7 +9707,7 @@ const Prompt = createMaterial(PromptComponent, {
9705
9707
  * @Author: binruan@chatlabs.com
9706
9708
  * @Date: 2024-03-26 16:50:25
9707
9709
  * @LastEditors: binruan@chatlabs.com
9708
- * @LastEditTime: 2024-08-29 16:45:54
9710
+ * @LastEditTime: 2024-08-30 18:08:55
9709
9711
  * @FilePath: \pb-sxp-ui\src\materials\sxp\popup\CommodityDetailDiroNew\settingRender.tsx
9710
9712
  *
9711
9713
  */
@@ -10027,12 +10029,14 @@ var settingRender$7 = [
10027
10029
  {
10028
10030
  label: '背景色',
10029
10031
  name: ['props', 'swiper', 'dotsBgColor'],
10030
- type: 'Color'
10032
+ type: 'Color',
10033
+ initialValue: 'rgba(0,0,0,.2)'
10031
10034
  },
10032
10035
  {
10033
10036
  label: '选中色',
10034
10037
  name: ['props', 'swiper', 'dotsActiveColor'],
10035
- type: 'Color'
10038
+ type: 'Color',
10039
+ initialValue: 'rgba(0,0,0,1)'
10036
10040
  },
10037
10041
  {
10038
10042
  label: '底边距',