mirror of
https://github.com/tenrok/BBob.git
synced 2026-06-11 18:02:26 +03:00
chore(release): publish v3.0.0 (#183)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
50e8a9c8a2
commit
485bb11df0
@@ -1,56 +0,0 @@
|
||||
---
|
||||
"@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>
|
||||
```
|
||||
Reference in New Issue
Block a user