标签数据

interface ContentTypeMapInterface {
    Audio: {
        appearance?: "line" | "plane";
        audioUrl: string;
        text?: string;
        theme?: "light" | "dark";
        title?: string;
    };
    Custom: Object;
    Image: {
        mediaData: (MediaData & {
            name?: string;
        })[];
        text?: string;
        title?: string;
    };
    ImageText: {
        mediaData: (MediaData & {
            name?: string;
        })[];
        text?: string;
        title?: string;
    };
    Link: {
        icon?: TagIconUrl;
        linkType?: "vr" | "normal";
        text?: string;
        title?: string;
    };
    Marketing: {
        brandTags?: string[];
        headerPictureUrl?: string;
        highlightText?: string;
        limitWidth?: number | boolean;
        price?: {
            unit: string;
            value: string | number;
        };
        tags?: string[];
        theme?: "light" | "dark";
        title: string;
    };
    MediaModel: {
        mediaData: MediaData[];
        mediaPosition: [ArrayPosition, ArrayPosition, ArrayPosition, ArrayPosition];
        modelUrl: string;
        objectFit?: ObjectFit;
    };
    MediaPlane: {
        autoplayConfig?: {
            autoplayCarousel?: boolean;
            autoplayVideo?: boolean;
            autoplayVideoInCarousel?: boolean;
        };
        enableCarousel?: boolean;
        mediaData: MediaData[];
        objectFit?: ObjectFit;
        playIcon?: string;
    } & DeprecatedMediaPlaneProperty;
    Model: {
        modelUrl: string;
    };
    PanoLink: {
        icon?: TagIconUrl;
        linkType?: "vr" | "normal";
        text?: string;
        title?: string;
    };
    Panorama: {
        mediaData: (MediaData & {
            name?: string;
        })[];
        text?: string;
        title?: string;
    };
    Sticker: {
        icon?: TagIconUrl;
        linkType?: "vr" | "normal";
        text?: string;
        title?: string;
    };
    Text: {
        appearance?: "line" | "plane";
        description?: string;
        descriptionMaxRows?: number;
        edit?: {
            description?: {
                inputting?: boolean;
                placeholder?: string;
            };
            title?: {
                inputting?: boolean;
                placeholder?: string;
            };
        };
        text?: string;
        title?: string;
        titleMaxRows?: number;
    };
    Unknown: Object;
    Video: {
        mediaData: (MediaData & {
            name?: string;
        })[];
        text?: string;
        title?: string;
    };
    VRLink: {
        icon?: TagIconUrl;
        linkType?: "vr" | "normal";
        text?: string;
        title?: string;
    };
}

Properties

Audio: {
    appearance?: "line" | "plane";
    audioUrl: string;
    text?: string;
    theme?: "light" | "dark";
    title?: string;
}

音频标签

Type declaration

  • Optionalappearance?: "line" | "plane"

    'line' 是旧的那种有一条线的,默认为'line', 'plane' 是新的那种圆形的

  • audioUrl: string
  • Optionaltext?: string

    @deprecated: 'text' replace by title

  • Optionaltheme?: "light" | "dark"
  • Optionaltitle?: string
Custom: Object
Image: {
    mediaData: (MediaData & {
        name?: string;
    })[];
    text?: string;
    title?: string;
}

图片标签

Type declaration

  • mediaData: (MediaData & {
        name?: string;
    })[]
  • Optionaltext?: string

    @deprecated: 'text' replace by 'title'

  • Optionaltitle?: string
ImageText: {
    mediaData: (MediaData & {
        name?: string;
    })[];
    text?: string;
    title?: string;
}

图文标签

Type declaration

  • mediaData: (MediaData & {
        name?: string;
    })[]
  • Optionaltext?: string

    @deprecated: 'text' replace by 'title'

  • Optionaltitle?: string
Link: {
    icon?: TagIconUrl;
    linkType?: "vr" | "normal";
    text?: string;
    title?: string;
}

跳转外链标签

Type declaration

  • Optionalicon?: TagIconUrl
  • OptionallinkType?: "vr" | "normal"

    @deprecated: linkType 不再和样式绑定,使用 iconUrl 代替

  • Optionaltext?: string

    @deprecated: 'text' replace by 'title'

  • Optionaltitle?: string
Marketing: {
    brandTags?: string[];
    headerPictureUrl?: string;
    highlightText?: string;
    limitWidth?: number | boolean;
    price?: {
        unit: string;
        value: string | number;
    };
    tags?: string[];
    theme?: "light" | "dark";
    title: string;
}

营销标签

Type declaration

  • OptionalbrandTags?: string[]

    高亮的标签

  • OptionalheaderPictureUrl?: string

    头部宣传图

  • OptionalhighlightText?: string

    跳转文字

  • OptionallimitWidth?: number | boolean

    限制营销标签大小

  • Optionalprice?: {
        unit: string;
        value: string | number;
    }

    价格

    • unit: string

      单位

    • value: string | number
  • Optionaltags?: string[]

    普通标签

  • Optionaltheme?: "light" | "dark"

    主题

  • title: string

    标题

MediaModel: {
    mediaData: MediaData[];
    mediaPosition: [ArrayPosition, ArrayPosition, ArrayPosition, ArrayPosition];
    modelUrl: string;
    objectFit?: ObjectFit;
}

Type declaration

MediaPlane: {
    autoplayConfig?: {
        autoplayCarousel?: boolean;
        autoplayVideo?: boolean;
        autoplayVideoInCarousel?: boolean;
    };
    enableCarousel?: boolean;
    mediaData: MediaData[];
    objectFit?: ObjectFit;
    playIcon?: string;
} & DeprecatedMediaPlaneProperty

营销贴片

Type declaration

  • OptionalautoplayConfig?: {
        autoplayCarousel?: boolean;
        autoplayVideo?: boolean;
        autoplayVideoInCarousel?: boolean;
    }
    • OptionalautoplayCarousel?: boolean

      是否自动轮播

      autoplayCarousel: true
      
    • OptionalautoplayVideo?: boolean

      是否自动播放视频

      autoplayVideo: false
      
    • OptionalautoplayVideoInCarousel?: boolean

      轮播中遇到视频是否要自动播放

      autoplayVideoInCarousel: false
      
  • OptionalenableCarousel?: boolean
  • mediaData: MediaData[]
  • OptionalobjectFit?: ObjectFit
  • OptionalplayIcon?: string

    暂停时的播放按钮url

Model: {
    modelUrl: string;
}
PanoLink: {
    icon?: TagIconUrl;
    linkType?: "vr" | "normal";
    text?: string;
    title?: string;
}

全景跳转标签

Type declaration

  • Optionalicon?: TagIconUrl
  • OptionallinkType?: "vr" | "normal"

    @deprecated: linkType 不再和样式绑定,使用 iconUrl 代替

  • Optionaltext?: string

    @deprecated: 'text' replace by 'title'

  • Optionaltitle?: string
Panorama: {
    mediaData: (MediaData & {
        name?: string;
    })[];
    text?: string;
    title?: string;
}

全景标签

Type declaration

  • mediaData: (MediaData & {
        name?: string;
    })[]
  • Optionaltext?: string

    @deprecated: 'text' replace by 'title'

  • Optionaltitle?: string
Sticker: {
    icon?: TagIconUrl;
    linkType?: "vr" | "normal";
    text?: string;
    title?: string;
}

贴纸标签

Type declaration

  • Optionalicon?: TagIconUrl
  • OptionallinkType?: "vr" | "normal"

    @deprecated: linkType 不再和样式绑定,使用 iconUrl 代替

  • Optionaltext?: string

    @deprecated: 'text' replace by 'title'

  • Optionaltitle?: string
Text: {
    appearance?: "line" | "plane";
    description?: string;
    descriptionMaxRows?: number;
    edit?: {
        description?: {
            inputting?: boolean;
            placeholder?: string;
        };
        title?: {
            inputting?: boolean;
            placeholder?: string;
        };
    };
    text?: string;
    title?: string;
    titleMaxRows?: number;
}

文字标签

Type declaration

  • Optionalappearance?: "line" | "plane"
  • Optionaldescription?: string
  • OptionaldescriptionMaxRows?: number

    description 最大行数, null不限制 @default: null

  • Optionaledit?: {
        description?: {
            inputting?: boolean;
            placeholder?: string;
        };
        title?: {
            inputting?: boolean;
            placeholder?: string;
        };
    }
    • Optionaldescription?: {
          inputting?: boolean;
          placeholder?: string;
      }
      • Optionalinputting?: boolean
      • Optionalplaceholder?: string
    • Optionaltitle?: {
          inputting?: boolean;
          placeholder?: string;
      }
      • Optionalinputting?: boolean
      • Optionalplaceholder?: string
  • Optionaltext?: string

    @deprecated: please use 'title'

  • Optionaltitle?: string
  • OptionaltitleMaxRows?: number

    title 最大行数, null不限制 @default: null

Unknown: Object
Video: {
    mediaData: (MediaData & {
        name?: string;
    })[];
    text?: string;
    title?: string;
}

视频标签

Type declaration

  • mediaData: (MediaData & {
        name?: string;
    })[]
  • Optionaltext?: string

    @deprecated: 'text' replace by 'title'

  • Optionaltitle?: string
VRLink: {
    icon?: TagIconUrl;
    linkType?: "vr" | "normal";
    text?: string;
    title?: string;
}

VR跳转标签

Type declaration

  • Optionalicon?: TagIconUrl
  • OptionallinkType?: "vr" | "normal"

    @deprecated: linkType 不再和样式绑定,使用 iconUrl 代替

  • Optionaltext?: string

    @deprecated: 'text' replace by 'title'

  • Optionaltitle?: string