workflow(sfc-playground): init custom formatter when selecting new version (#9958)

close #9957
This commit is contained in:
SerKo 2024-01-03 16:54:47 +08:00 committed by GitHub
parent d94d8d4bff
commit a47fb45c50
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 0 deletions

View File

@ -137,6 +137,12 @@ onMounted(() => {
:autoResize="true"
:sfcOptions="sfcOptions"
:clearConsole="false"
:preview-options="{
customCode: {
importCode: `import { initCustomFormatter } from 'vue'`,
useCode: `initCustomFormatter()`
}
}"
/>
</template>