Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/2nthony/vue-cusdis

Vue port cusdis. Support Vue 2 & 3.
https://github.com/2nthony/vue-cusdis

cusdis vue vue-cusdis

Last synced: 2 months ago
JSON representation

Vue port cusdis. Support Vue 2 & 3.

Awesome Lists containing this project

README

        

React Cusdis: https://github.com/Cusdis/sdk/tree/master/packages/react-cusdis

# vue-cusdis

```console
npm i vue-cusdis
```

## Usage

```html

// For Vue 3
import VueCusdis from 'vue-cusdis'
// For Vue 2
import VueCusdis from 'vue-cusdis/dist/vue2.es'

export default {
components: { VueCusdis },
}

```

## props

### attrs

- Type: `Object`

Cusdis SDK attributes: https://cusdis.com/doc#/advanced/sdk

### lang

- Type: `String`

For i18n, Available languages: https://cusdis.com/doc#/advanced/i18n

## BREAKING CHANGES

Please migrate `@evillt/vue-cusdis` to `vue-cusdis`.

In `v2.0.0`, we rename the filename for vue2 version. Just make this change:

```diff
- import VueCusdis from '@evillt/vue-cusdis/dist/V2.es'
+ import VueCusdis from '@evillt/vue-cusdis/dist/vue2.es'
```

We thought `V2.es` was misleading.

## Thanks

- [Frost Ming](https://github.com/frostming)

## License

MIT