diff --git a/README.md b/README.md
index 160c8b2..81b8ed8 100644
--- a/README.md
+++ b/README.md
@@ -12,6 +12,8 @@ yarn add vite-plugin-dts -D
## Usage
+In `vite.config.ts`:
+
```ts
import { resolve } from 'path'
import { defineConfig } from 'vite'
@@ -30,6 +32,37 @@ export default defineConfig({
})
```
+In your component:
+
+```vue
+
+
+
+
+
+```
+
+```vue
+
+
+
+ {{ color }}
+
+```
+
## Options
```ts
diff --git a/README.zh-CN.md b/README.zh-CN.md
index f5c6de1..6360f08 100644
--- a/README.zh-CN.md
+++ b/README.zh-CN.md
@@ -12,6 +12,8 @@ yarn add vite-plugin-dts -D
## 使用
+在 `vite.config.ts`:
+
```ts
import { resolve } from 'path'
import { defineConfig } from 'vite'
@@ -30,6 +32,36 @@ export default defineConfig({
})
```
+在你的组件中:
+
+```vue
+
+
+
+
+
+```
+
+```vue
+
+
+
+ {{ color }}
+
+```
+
## 选项
```ts
diff --git a/example/components/JsTest.vue b/example/components/JsTest.vue
index 16be4f7..6021ae5 100644
--- a/example/components/JsTest.vue
+++ b/example/components/JsTest.vue
@@ -5,9 +5,8 @@