@hep-code-runner/vue3 2.3.8 → 2.3.10
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 +2 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -36,6 +36,7 @@ import { CodeRunner } from "@hep-code-runner/vue3";
|
|
|
36
36
|
| 属性 | 类型 | 默认值 | 说明 |
|
|
37
37
|
|------|------|--------|------|
|
|
38
38
|
| pistonUrl | string | '/api/piston' | Piston API 地址 |
|
|
39
|
+
| token | string | - | 认证 Token(会作为 Authorization 和 id-token Header) |
|
|
39
40
|
| modelValue / v-model | string | '' | 当前代码 |
|
|
40
41
|
| v-model:language | string | 'javascript' | 当前语言 |
|
|
41
42
|
| theme | 'light' \| 'dark' | 'light' | 主题 |
|
|
@@ -142,6 +143,7 @@ const currentCode = ref('print("hello")');
|
|
|
142
143
|
| title | string | '代码执行器' | 弹窗标题 |
|
|
143
144
|
| width | string \| number | 800 | 弹窗宽度 |
|
|
144
145
|
| pistonUrl | string | '/api/piston' | Piston API 地址 |
|
|
146
|
+
| token | string | - | 认证 Token(会作为 Authorization 和 id-token Header) |
|
|
145
147
|
| theme | 'light' \| 'dark' | 'light' | 主题 |
|
|
146
148
|
| themeColor | string | - | 自定义主题色 |
|
|
147
149
|
| showLanguageSelector | boolean | true | 显示语言选择器 |
|