0.0.21 • Published 6 years ago
@covergo/ui-renderer v0.0.21
UI Renderer
Component that takes uiConfig JSON and renders Vue component client side
About Schema
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
}
0.0.21
6 years ago
0.0.20
6 years ago
0.0.19
6 years ago
0.0.18
6 years ago
0.0.17
6 years ago
0.0.16
6 years ago
0.0.15
6 years ago
0.0.14
6 years ago
0.0.13
6 years ago
0.0.12
6 years ago
0.0.11
6 years ago
0.0.9
6 years ago
0.0.8
6 years ago
0.0.7
6 years ago
0.0.6
6 years ago
0.0.5
6 years ago
0.0.4
6 years ago
0.0.3
6 years ago
0.0.2
6 years ago
0.0.1
6 years ago