1
import { AppStorage, ArkColumn, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, ArkText, CanvasRenderingContext2D, ESObject, ForEach, GestureGroup, IDataSource, ImageBitmap, Indicator, LazyForEach, LinearGradient, LocalStorage, LongPressGesture, OffscreenCanvasRenderingContext2D, PanGesture, PanGestureOptions, PatternLockController, PinchGesture, RenderingContextSettings, RichEditorController, Scroller, SearchController, SwiperController, TabsController, TapGesture, TextAreaController, TextClockController, TextInputController, TextInputOptions, TextTimerController, TransitionEffect, VideoController, WebController, XComponentController, animateTo } from "@koalaui/arkoala-arkui";
2
class ArkParentStructComponent extends ArkStructBase<ArkParentStructComponent> {
3
private _entry_local_storage_ = new LocalStorage();
6
content?: () => void, initializers?: Partial<ArkParentStructComponent>): void {
11
builder: ((instance: ArkParentStructComponent) => void) | undefined) {
12
ArkColumn(undefined, () => {
13
ChildStruct(undefined, () => {
14
ArkText(undefined, undefined, "xxx");
19
class ArkChildStructComponent extends ArkStructBase<ArkChildStructComponent> {
20
private _entry_local_storage_ = new LocalStorage();
23
content?: () => void, initializers?: Partial<ArkChildStructComponent>): void {
24
if (initializers?.content) {
25
this._content = initializers?.content;
27
if (!this._content && content)
28
this._content = content;
31
_content!: () => void;
33
get content(): () => void {
39
this._content = value;
44
builder: ((instance: ArkChildStructComponent) => void) | undefined) {
49
export function ParentStruct(style?: any,
51
content?: () => void, initializers?: Partial<ArkParentStructComponent>): ArkParentStructComponent {
52
return ArkParentStructComponent._instantiate(style, () => new ArkParentStructComponent, content, initializers);
55
export function ChildStruct(style?: any,
57
content?: () => void, initializers?: Partial<ArkChildStructComponent>): ArkChildStructComponent {
58
return ArkChildStructComponent._instantiate(style, () => new ArkChildStructComponent, content, initializers);