mirror of
https://github.com/tenrok/BBob.git
synced 2026-06-20 20:00:33 +03:00
49065d239b
* fix: initial support to changeset * fix: changeset config * fix: vue3 changeset * feat: add github publish action for changeset
57 lines
994 B
Markdown
57 lines
994 B
Markdown
---
|
|
"@bbob/cli": major
|
|
"@bbob/core": major
|
|
"@bbob/html": major
|
|
"@bbob/parser": major
|
|
"@bbob/plugin-helper": major
|
|
"@bbob/preset": major
|
|
"@bbob/preset-html5": major
|
|
"@bbob/preset-react": major
|
|
"@bbob/preset-vue": major
|
|
"@bbob/react": major
|
|
"@bbob/vue2": major
|
|
"@bbob/vue3": major
|
|
---
|
|
|
|
# Vue3 support
|
|
|
|
Now you can use `@bbob` parser in `vue3`
|
|
|
|
Example usage
|
|
|
|
```shell
|
|
npm i @bbob/vue3 @bbob/preset-vue
|
|
```
|
|
|
|
```js
|
|
import { defineComponent } from 'vue'
|
|
import VueBbob from '@bbob/vue3';
|
|
|
|
Vue.use(VueBbob);
|
|
```
|
|
|
|
```html
|
|
<template>
|
|
<div class="vue3">
|
|
<h2>Generated vue3 here</h2>
|
|
<bbob-bbcode container="div" :plugins="plugins">{{ bbcode }}</bbob-bbcode>
|
|
</div>
|
|
</template>
|
|
<script>
|
|
import { defineComponent } from 'vue'
|
|
import preset from '@bbob/preset-vue'
|
|
|
|
export default defineComponent({
|
|
name: 'App',
|
|
data() {
|
|
return {
|
|
bbcode: 'Text [b]bolded[/b] and [i]Some Name[/i]',
|
|
plugins: [
|
|
preset()
|
|
],
|
|
}
|
|
}
|
|
})
|
|
</script>
|
|
```
|