Custom component of weex, which directly inherits the data that cannot be obtained from the tag by WXText.

customize the component of the weex and directly inherit the WXText. Why can"t you get the data in the tag in the Attributes in basicComponentData?

the code is as follows:

public class FundWxRichText extends WXText {

public FundWxRichText(WXSDKInstance instance, WXVContainer parent, BasicComponentData basicComponentData) {
    super(instance, parent, basicComponentData);
    this.setContentBoxMeasurement(new FundWxRichText.RichTextContentBoxMeasurement(this));
}

}

the constructor parameter basicComponentData in the source code can get the data in the tag, but the custom one cannot. Why?

Jun.06,2022
Menu