gp-designer 1.0.103 → 1.0.104
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +12 -1
- package/dist/gp-designer.es.js +592 -586
- package/dist/gp-designer.umd.js +11 -11
- package/dist/spa/topic/js/index.js +2 -1
- package/dist/spa/topic/js/photoswipe.js +32 -0
- package/dist/spa/topic/photoswipe/photoswipe-lightbox.esm.js +1960 -0
- package/dist/spa/topic/photoswipe/photoswipe-lightbox.esm.js.map +1 -0
- package/dist/spa/topic/photoswipe/photoswipe-lightbox.esm.min.js +5 -0
- package/dist/spa/topic/photoswipe/photoswipe.css +420 -0
- package/dist/spa/topic/photoswipe/photoswipe.esm.js +7081 -0
- package/dist/spa/topic/photoswipe/photoswipe.esm.js.map +1 -0
- package/dist/spa/topic/photoswipe/photoswipe.esm.min.js +5 -0
- package/dist/style.css +1 -1
- package/dist/types/components/Designer.vue.d.ts +2 -0
- package/package.json +1 -1
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
|
|