jp-common-component
JP-Common-Component
Common commponet which are used on vue3 projects
Installation
npm install jp-common-component@latest
Usage
Load jp-common-commponent and style in main.js/main.ts file
import { createApp } from "vue";
import App from "./App.vue";
import JpCommonComponent from 'jp-common-component';
import "jp-common-component/dist/style.css";
const app = createApp(App)
app.use(JpCommonComponent);
app.mount("#app");
Editor component
<script>
import { Editor } from "jp-common-component";
const data = ref("")
</script>
<template>
<Editor v-model="data" />
</template>
If you want add mention option,
<script>
import { Editor } from "jp-common-component";
const data = ref("")
const items = [ '@Barney', '@Lily', '@Marry Ann', '@Marshall', '@Robin', '@Ted' ];
</script>
<template>
<Editor v-model="data" :mentions="items" />
</template>
If you want hide toolbar,
<script>
import { Editor } from "jp-common-component";
const data = ref("")
</script>
<template>
<Editor v-model="data" :toolbarToggle="true"/>
</template>
Related Packages
Version History
| Version | Released | Vue | License |
|---|---|---|---|
| 0.1.41 | ^3.5.10 | ||
| 0.1.39 | ^3.5.10 | ||
| 0.1.38 | ^3.5.10 | ||
| 0.1.37 | ^3.4.37 | ||
| 0.1.35 | ^3.4.37 | ||
| 0.1.34 | ^3.4.37 | ||
| 0.1.33 | ^3.4.37 | ||
| 0.1.32 | ^3.4.37 | ||
| 0.1.31 | ^3.4.37 | ||
| 0.1.30 | ^3.4.37 | ||
| 0.1.29 | ^3.4.37 | ||
| 0.1.28 | ^3.4.37 | ||
| 0.1.27 | ^3.4.37 | ||
| 0.1.26 | ^3.4.37 | ||
| 0.1.25 | ^3.4.37 | ||
| 0.1.24 | ^3.4.37 | ||
| 0.1.23 | ^3.4.37 | ||
| 0.1.22 | ^3.4.37 | ||
| 0.1.21 | ^3.4.37 | ||
| 0.1.20 | ^3.4.37 | ||
| 0.1.19 | ^3.4.37 | ||
| 0.1.18 | ^3.4.37 | ||
| 0.1.17 | ^3.4.37 | ||
| 0.1.16 | ^3.4.37 | ||
| 0.1.15 | ^3.0.0 | ||
| 0.1.14 | ^3.0.0 | ||
| 0.1.12 | ^3.0.0 | ||
| 0.1.11 | ^3.0.0 | ||
| 0.1.10 | ^3.0.0 | ||
| 0.1.9 | ^3.0.0 |
Showing the latest 30 of 37. See every release on npm