1.4.4 • Published 2 years ago

@readapt/app-container v1.4.4

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
2 years ago

@readapt/app-container

This package contains Vue.js components shared between readapt apps.

Installation

Prerequisites

Install peer-dependencies

  1. vue

npm

  1. Install @readapt/app-container
  npm install @readapt/app-container

Usage

Register shared components in your Vue.js app typically your main.ts

import ReadaptComponents from '@readapt/app-container'

Vue.use(ReadaptComponents)

Add the ReadaptComponent in your template for example:

<template>
  <readapt-color-picker :value="bar" @selectColor="fooFn" />
</template>

Or add it individually in your components (for smaller bundles)

import { defineComponent } from 'vue'
import { ColorPicker } from '@readapt/app-container'

const MyComponent = defineComponent({
  components: { ColorPicker },
  setup() {
    // ...
  }
})