+
+
{{ msg }} {{version}}
+
+
+
+ `.trim()
+ })),
+
+ // 传入repl编辑器选项
+ replOptions: {
+ layout: 'vertical'
+ },
+
+ // Store的选项配置
+ storeOptions: {
+
+ },
+ vueVersion: 'xx' // 例如 2.7.14
+ })
+ }
+}).mount('#app')
+```
+
+
+## 配置
+
+### code
+参考上方例子
+
+### StoreOptions
+
+```ts
+interface StoreOptions {
+ serializedState?: string;
+ showOutput?: boolean;
+ outputMode?: OutputModes | string;
+ defaultVueRuntimeURL?: string;
+ defaultVueServerRendererURL?: string;
+ defaultVueVersion?: string;
+}
+```
+
+### ReplProps
+```ts
+export interface Props {
+ theme?: 'dark' | 'light'
+ editor: EditorComponentType
+ store?: Store
+ autoResize?: boolean
+ showCompileOutput?: boolean
+ showImportMap?: boolean
+ showTsConfig?: boolean
+ clearConsole?: boolean
+ sfcOptions?: SFCOptions
+ layout?: 'horizontal' | 'vertical'
+ layoutReverse?: boolean
+ ssr?: boolean
+ previewOptions?: {
+ headHTML?: string
+ bodyHTML?: string
+ placeholderHTML?: string
+ customCode?: {
+ importCode?: string
+ useCode?: string
+ }
+ }
+}
+```
+
+### vueVersion
+指定vue版本