@aiao/code-editor-vue 0.0.16 → 0.0.18

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.
Files changed (2) hide show
  1. package/README.md +30 -1
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -1 +1,30 @@
1
- # code-editor-vue
1
+ # @aiao/code-editor-vue
2
+
3
+ Vue 代码编辑器组件,基于 CodeMirror 6。
4
+
5
+ ## 功能特性
6
+
7
+ - **Vue 组件**: 开箱即用的 Vue 3 组件
8
+ - **v-model 支持**: 支持 v-model 双向绑定
9
+ - **主题支持**: 支持亮色和暗色主题
10
+
11
+ ## 安装
12
+
13
+ ```bash
14
+ npm install @aiao/code-editor @aiao/code-editor-vue
15
+ # 或
16
+ pnpm add @aiao/code-editor @aiao/code-editor-vue
17
+ ```
18
+
19
+ ## 使用
20
+
21
+ ```vue
22
+ <script setup lang="ts">
23
+ import { CodeEditor } from '@aiao/code-editor-vue';
24
+ </script>
25
+
26
+ <template>
27
+ <CodeEditor v-model="code" language="typescript" />
28
+ </template>
29
+ ```
30
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aiao/code-editor-vue",
3
- "version": "0.0.16",
3
+ "version": "0.0.18",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",
@@ -37,6 +37,6 @@
37
37
  "@codemirror/theme-one-dark": "^6.1.3",
38
38
  "@codemirror/view": "^6.39.16",
39
39
  "codemirror": "^6.0.1",
40
- "@aiao/code-editor": "0.0.16"
40
+ "@aiao/code-editor": "0.0.18"
41
41
  }
42
42
  }