Skip to content

Commit

Permalink
feat: changes
Browse files Browse the repository at this point in the history
  • Loading branch information
[email protected] committed Oct 11, 2023
1 parent 4e43ede commit c26ffa6
Show file tree
Hide file tree
Showing 3 changed files with 76 additions and 6 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"vitepress": "^1.0.0-rc.10",
"vitepress-plugin-auto-sidebar": "^1.1.0",
"vitepress-plugin-mermaid": "^2.0.14",
"vitepress-plugin-vue-repl": "0.0.8",
"vitepress-plugin-vue-repl": "0.0.9",
"vitepress-theme-demoblock": "^3.0.3"
}
}
8 changes: 4 additions & 4 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

72 changes: 71 additions & 1 deletion src/open-source/vitepress-plugin-vue-repl.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,13 @@ div {
}
</style>
```
```json
{
"editorConfig": {
"layout": "vertical",
}
}
```
:::
## install

Expand Down Expand Up @@ -108,4 +115,67 @@ div {
```

+ Monaco
+ CodeMirror
+ CodeMirror



## Vue Repl Config & imports



```markdown{18-27}
:::playground
```vue
<template>
<mrp-space>
<mrp-button type="primary">Primary</mrp-button>
<mrp-button>Secondary</mrp-button>
<mrp-button type="dashed">Dashed</mrp-button>
<mrp-button type="outline">Outline</mrp-button>
<mrp-button type="text">Text</mrp-button>
</mrp-space>
</template>
<script lang="ts" setup>
import 'regenerator'
import { MrpSpace, MrpButton } from '@tuhu/shop-mars-pc'
</script>
\``` # remove slash
```json
{
"imports": {
"ant-design-vue": "xxx"
},
"editorConfig": {
"layout": "vertical"
}
}
\``` # remove slash
:::
```


editorConfig:

```ts
interface Props {
theme?: 'dark' | 'light'
autoResize?: boolean
showCompileOutput?: boolean
showImportMap?: boolean
showTsConfig?: boolean
clearConsole?: boolean
sfcOptions?: SFCOptions
layout?: 'horizontal' | 'vertical'
ssr?: boolean
previewOptions?: {
headHTML?: string
bodyHTML?: string
placeholderHTML?: string
customCode?: {
importCode?: string
useCode?: string
}
}
}
```

0 comments on commit c26ffa6

Please sign in to comment.