An open API service indexing awesome lists of open source software.

https://github.com/ph1p/paintable-vue


https://github.com/ph1p/paintable-vue

Last synced: 6 months ago
JSON representation

Awesome Lists containing this project

README

          

# @paintable/vue

This package is a complete rewrite of vue-paintable. It's based on this core module: [https://github.com/ph1p/paintable-core](https://github.com/ph1p/paintable-core)

This plugin works with **Vue 3+**

**Demo:** [https://paintable-vue.vercel.app/](https://paintable-vue.vercel.app/)

### How to use?

Follow these three simple steps:

```bash
npm install @paintable/vue
```

**main.js**

```javascript
import { createApp } from 'vue';
import App from './App.vue';
// import the plugin
import Paintable from '@paintable/vue';

const app = createApp(App);

app.use(Paintable);

app.mount('#app');
```

Inside your **\*.vue** file (full example **./src/App.vue**)

```vue


Content


export default {
name: 'App',
data() {
return {
isFirstPaintable: true,
hidePaintable: false,
lineWidth: 5,
active: true,
color: '#000000'
};
}
};

```

### Development

```bash
npm run install
npm run serve
```