2
0
mirror of https://github.com/tenrok/BBob.git synced 2026-05-15 11:59:37 +03:00
Files
bbob/packages/bbob-vue3
github-actions[bot] 2677542ccc chore(release): publish v4.3.0 (#279)
* chore(release): release

* fix: lock file

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Nikolay Kost <JiLiZART@Gmail.com>
2025-10-17 13:57:29 +02:00
..
2024-04-23 21:11:14 +02:00
2024-04-23 21:11:14 +02:00
2023-10-23 13:21:56 +02:00
2023-07-17 16:27:21 +02:00
2024-04-23 21:11:14 +02:00

@bbob/vue3

install size Known Vulnerabilities

Converts @bbob/parser AST tree to Vue 3

npm i @bbob/vue3 @bbob/preset-vue
import { defineComponent } from 'vue'
import VueBbob from '@bbob/vue3';

Vue.use(VueBbob);
<template>
  <div class="vue3">
    <h2>Generated vue3 here</h2>
    <bbob-bbcode container="div" :plugins="plugins">{{ bbcode }}</bbob-bbcode>
  </div>
</template>
<script>
  import Vue 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>