uiengine-adapter-vue
v0.15.0
Published
UIengine template adapter for Vue.js
Downloads
6
Maintainers
Readme
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.