pom-text-editor 0.0.5 → 0.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -21,8 +21,8 @@ Global Registration
21
21
  To use the Editor component globally in your Vue 3 application, register it in your main application file (e.g., main.js or main.ts).
22
22
 
23
23
  main.js
24
- ```
25
24
 
25
+ ```
26
26
  js
27
27
  Copy code
28
28
  import { createApp } from 'vue';
@@ -44,6 +44,19 @@ Copy code
44
44
  <template>
45
45
  <Editor @change="resultData" />
46
46
  </template>
47
+ ## add ToolBar
48
+ <template>
49
+ <Editor @change="resultData" >
50
+ <template v-slot:toolbar-after>
51
+ <div class="hover:bg-gray-200 bg-gray-50 hover:text-gray-700 elemeSet items-center text-center justify-baseline rounded cursor-pointer text-md p-1">12</div>
52
+ <div class="hover:bg-gray-200 bg-gray-50 hover:text-gray-700 elemeSet items-center text-center justify-baseline rounded cursor-pointer text-md p-1">12</div>
53
+ </template>
54
+ <template v-slot:toolheader-after>
55
+ <componet @click='3' class='hover:bg-gray-200 bg-gray-50 hover:text-gray-700 elemeSet items-center text-center justify-baseline rounded cursor-pointer text-md p-0 m-1'>Helo5</componet>
56
+ <componet @click='3' class='hover:bg-gray-200 bg-gray-50 hover:text-gray-700 elemeSet items-center text-center justify-baseline rounded cursor-pointer text-md p-0 m-1'>Helo6</componet>
57
+ </template>
58
+ </Editor>
59
+ </template>
47
60
 
48
61
  <script setup>
49
62
  function resultData(val) {