@covergo/ui-renderer

CoverGo UI Renderer
6,393
Install
npm install @covergo/ui-renderer
Latest Version:0.0.21
Vue:2
License:ISC
Last Updated:Jul 4, 2019
Links: npm
Maintainer: johnvalustik

UI Renderer

Component that takes uiConfig JSON and renders Vue component client side


About Schema

See schema here

Events:

  • We should only invoke methods in events

Directives:

  • We support only if,for and editor-helpers directive as of now
  • Directives are not nativelly supported in React and others so we have to avoid using directives for complex cases that's why we have limited directives we can use

Localization:

  • We will localize configs backend side via string interplations (syntax not know now)
  • We also have an option to introduce the whole new config if trsanslation is not enough - this allows us to change everything per language

Slots:

  • We don't need traditional slots for UI composition - avoid it
  • We might need some mechanics for scoped slots - maybe just attributes as it's vue specific?

UI tree:

  • Every UI tree has to have only one root component
  • Every UI tree node is an object
  • We never use keyword "this" to point to data in UI tree

Methods:

  • Methods have to be in ES5 syntax so that we support all browsers or we have to figure out some transpilation but that seems complicated

Typed value:

  • In some scenarios we need to pass value (e.g. args, props, attributes...)
  • We have a special object to handle type properly
{
	number: 10,
	string: "hello world",
	boolean: true,
	js: "this.isLoading ? 'Loading...' : ''", can be js expressions as string or Object, Array
}

Related Packages

npool-cli-v4

Npool Client SDK

8,226 0
bridgecore

供Weex开发者调用的core接口

1,275
tribiani-vue-tools

数据结构 OrgTree 说明

778
168wangxiao-ui

基于vue2、element-ui二次封装

7,423

Version History

Version Released Vue License
0.0.21 ^2.6.10 ISC
0.0.20 ^2.6.10 ISC
0.0.19 ^2.6.10 ISC
0.0.18 ^2.6.10 ISC
0.0.17 ^2.6.10 ISC