slidev-addon-infographic 1.0.0 → 1.0.3
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 +14 -5
- package/package.json +3 -2
- package/vite.config.ts +9 -0
package/README.md
CHANGED
|
@@ -6,13 +6,24 @@
|
|
|
6
6
|
pnpm i slidev-addon-infographic --save
|
|
7
7
|
```
|
|
8
8
|
|
|
9
|
+
Add the following to your `package.json`:
|
|
10
|
+
|
|
11
|
+
``` json
|
|
12
|
+
...
|
|
13
|
+
"slidev": {
|
|
14
|
+
"addons": [
|
|
15
|
+
"slidev-addon-infographic"
|
|
16
|
+
]
|
|
17
|
+
}
|
|
18
|
+
...
|
|
19
|
+
```
|
|
20
|
+
|
|
9
21
|
Add the following to your `slides.md`:
|
|
10
22
|
|
|
11
23
|
``` md
|
|
12
24
|
---
|
|
13
|
-
layout: center
|
|
14
25
|
addons:
|
|
15
|
-
|
|
26
|
+
- slidev-addon-infographic
|
|
16
27
|
---
|
|
17
28
|
|
|
18
29
|
<RenderWhen
|
|
@@ -32,12 +43,10 @@ addons:
|
|
|
32
43
|
```
|
|
33
44
|
|
|
34
45
|
- **Infographic component must be used with RenderWhen component to show infographic in slidev**
|
|
35
|
-
- **The Infographic component must occupy the entire page or be contained within elements with dimensions**
|
|
36
46
|
- **Temporarily supports exporting in PPTX and PNG formats**
|
|
37
47
|
|
|
38
48
|
1. **Infographic组件必须与RenderWhen组件一起使用,才能在幻灯片中显示信息图**
|
|
39
|
-
2.
|
|
40
|
-
3. **暂时支持导出 PPTX, PNG 格式**
|
|
49
|
+
2. **暂时支持导出 PPTX, PNG 格式**
|
|
41
50
|
|
|
42
51
|
Edit the [slides.md](./slides.md) to see the changes.
|
|
43
52
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "slidev-addon-infographic",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"author": "fxss5201",
|
|
6
6
|
"description": "@antv/infographic component for slidev",
|
|
@@ -29,6 +29,7 @@
|
|
|
29
29
|
"@antv/infographic"
|
|
30
30
|
],
|
|
31
31
|
"files": [
|
|
32
|
-
"components
|
|
32
|
+
"components",
|
|
33
|
+
"vite.config.ts"
|
|
33
34
|
]
|
|
34
35
|
}
|