0.15.0 ā€¢ Published 6 years ago

uiengine-adapter-vue v0.15.0

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

UIengine template adapter for Vue.js

šŸš¦ State: Proof of concept

Configuration

Plain and simple:

adapters:
  vue: uiengine-adapter-vue

With options:

adapters:
  vue:
    module: uiengine-adapter-vue
    options:
      debug: true
      bundle: /absolute-path-to/server-side-bundle.js

The debug option allows for a more detailed output in case of rendering errors.

The bundle option should be the absolute path to a module that exports a factory function for new Vue instances. This function should accepts an object with options that are passed into the new Vue instance:

export default function createApp (options = {}) {
  const opts = Object.assign({
    // provide all components that are needed for variant previews
    components: {
      MyLabel,
      MyInput,
      MyEtcetera
    }
  }, options)

  return new Vue(opts)
}

See the sample project vue folder for examples.