@incremark/vue 0.0.3 → 0.0.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/README.en.md +9 -0
- package/README.md +9 -0
- package/package.json +5 -4
package/README.en.md
CHANGED
|
@@ -19,9 +19,18 @@ pnpm add @incremark/core @incremark/vue
|
|
|
19
19
|
|
|
20
20
|
## Quick Start
|
|
21
21
|
|
|
22
|
+
**1. Import Styles**
|
|
23
|
+
|
|
24
|
+
```ts
|
|
25
|
+
import '@incremark/vue/style.css'
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
**2. Use in Your Component**
|
|
29
|
+
|
|
22
30
|
```vue
|
|
23
31
|
<script setup>
|
|
24
32
|
import { useIncremark, Incremark } from '@incremark/vue'
|
|
33
|
+
import '@incremark/vue/style.css'
|
|
25
34
|
|
|
26
35
|
const { blocks, append, finalize, reset } = useIncremark({ gfm: true })
|
|
27
36
|
|
package/README.md
CHANGED
|
@@ -19,9 +19,18 @@ pnpm add @incremark/core @incremark/vue
|
|
|
19
19
|
|
|
20
20
|
## 快速开始
|
|
21
21
|
|
|
22
|
+
**1. 引入样式**
|
|
23
|
+
|
|
24
|
+
```ts
|
|
25
|
+
import '@incremark/vue/style.css'
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
**2. 在组件中使用**
|
|
29
|
+
|
|
22
30
|
```vue
|
|
23
31
|
<script setup>
|
|
24
32
|
import { useIncremark, Incremark } from '@incremark/vue'
|
|
33
|
+
import '@incremark/vue/style.css'
|
|
25
34
|
|
|
26
35
|
const { blocks, append, finalize, reset } = useIncremark({ gfm: true })
|
|
27
36
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@incremark/vue",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.4",
|
|
4
4
|
"description": "Incremark Vue 3 集成",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -13,7 +13,8 @@
|
|
|
13
13
|
},
|
|
14
14
|
"./components/*": {
|
|
15
15
|
"import": "./src/components/*.vue"
|
|
16
|
-
}
|
|
16
|
+
},
|
|
17
|
+
"./style.css": "./dist/index.css"
|
|
17
18
|
},
|
|
18
19
|
"files": [
|
|
19
20
|
"dist",
|
|
@@ -21,8 +22,8 @@
|
|
|
21
22
|
],
|
|
22
23
|
"dependencies": {
|
|
23
24
|
"shiki": "^3.20.0",
|
|
24
|
-
"@incremark/core": "0.0.
|
|
25
|
-
"@incremark/devtools": "0.0.
|
|
25
|
+
"@incremark/core": "0.0.4",
|
|
26
|
+
"@incremark/devtools": "0.0.4"
|
|
26
27
|
},
|
|
27
28
|
"peerDependencies": {
|
|
28
29
|
"vue": "^3.3.0",
|