feat:enhance layoutConfig

This commit is contained in:
pengfei.zhou
2021-05-14 19:32:19 +08:00
committed by osborn
parent 7ee30d1cd3
commit 57643c5990
11 changed files with 178 additions and 40 deletions

View File

@@ -19,45 +19,7 @@ class ComponentDemo extends Panel {
imageBase64: logo,
}
}),
richTitleView().applyChild({
title: {
text: "Title"
},
subTitle: {
text: "Subtitle"
},
}),
richTitleView().applyChild({
icon: {
imageBase64: logo,
},
subTitle: {
text: "Subtitle"
},
}),
richTitleView().applyChild({
icon: {
imageBase64: logo,
},
title: {
text: "Title"
},
}),
richTitleView().applyChild({
title: {
text: "Just title"
},
}),
richTitleView().applyChild({
subTitle: {
text: "Just subtitle"
},
}),
richTitleView().applyChild({
icon: {
imageBase64: logo,
},
}),
],
{
layoutConfig: {

View File

@@ -0,0 +1,14 @@
import { hlayout, HLayout, layoutConfig, ViewComponent } from "doric";
@ViewComponent
export class PreferenceView extends HLayout {
constructor() {
super()
hlayout(
[],
{
layoutConfig: layoutConfig(),
}).in(this)
}
}