Skip to content

自渲染(信息流)广告样式

广告组件样式根据项目 ui 的风格来设计,可以通过custom-style属性来自定义广告组件的样式。

1、 vadAd 广告标识组件

html
<template>
  <vad-ad custom-style="{{adStyle}}"></vad-ad>
</template>

<script>
  export default {
    data() {
      return {
        adStyle: {
          containerStyle: {},
          logoStyle: {},
          textStyle: {},
          tagStyle: {},
        },
      };
    },
  };
</script>
参数说明类型默认值
containerStyle容器样式Object{}
logoStyle图标样式Object{}
textStyle文字样式Object{}
tagStyle“广告”标识样式Object{}

2、 vadButton 下载按钮组件

html
<template>
  <vad-button custom-style="{{buttonStyle}}"></vad-button>
</template>

<script>
  export default {
    data() {
      return {
        buttonStyle: {},
      };
    },
  };
</script>
参数说明类型默认值
buttonStyle按钮样式Object{}

3、 vadCompliance 6 要素合规组件

html
<template>
  <vad-compliance custom-style="{{complianceStyle}}"></vad-compliance>
</template>

<script>
  export default {
    data() {
      return {
        complianceStyle: {
          containerStyle: {},
          groupStyle: {},
          itemStyle: {},
          separatorStyle: {},
        },
      };
    },
  };
</script>
参数说明类型默认值
containerStyle容器样式Object{}
groupStyle文字组样式Object{}
itemStyle文字样式Object{}
separatorStyle分割符样式Object{}

4、 vadScore 评分组件

html
<template>
  <vad-score custom-style="{{scoreStyle}}"></vad-score>
</template>

<script>
  export default {
    data() {
      return {
        scoreStyle: {
          containerStyle: {},
          starStyle: {},
          textStyle: {},
        },
      };
    },
  };
</script>
参数说明类型默认值
containerStyle容器样式Object{}
starStyle图标样式Object{}
textStyle文字样式Object{}

5、 vadVideo 视频组件

html
<template>
  <vad-video custom-style="{{videoStyle}}"></vad-video>
</template>

<script>
  export default {
    data() {
      return {
        videoStyle: {
          containerStyle: {},
          videoStyle: {},
          barStyle: {},
          progressStyle: {},
        },
      };
    },
  };
</script>
参数说明类型默认值
containerStyle容器样式Object{}
videoStyle视频样式Object{}
barStyle进度条背景样式Object{}
progressStyle进度条样式Object{}