gp-designer 1.0.103 → 1.0.104

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/README.md CHANGED
@@ -62,7 +62,18 @@
62
62
 
63
63
  #### 图片预览
64
64
 
65
- 设置图片预览时,自动添加 `gp-designer-image-preview` class
65
+ 设置图片预览时,自动添加 `gp-designer-image-preview` class,通过 `data-preview` 获取大图链接。
66
+ 使用预览参数,必须返回 previewUrl 字段。
67
+
68
+ ```ts
69
+ {
70
+ success: data?.success || false,
71
+ file: {
72
+ url: data?.file?.url,
73
+ previewUrl: '',
74
+ }
75
+ }
76
+ ```
66
77
 
67
78
  ## 使用
68
79