feat:enhance layoutConfig
This commit is contained in:
@@ -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: {
|
||||
|
14
doric-demo/src/components/PreferenceView.ts
Normal file
14
doric-demo/src/components/PreferenceView.ts
Normal 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)
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user