Socket
Socket
Sign inDemoInstall

dfws-ad

Package Overview
Dependencies
4
Maintainers
1
Versions
40
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    dfws-ad

东方网升 Ant Mobile 版本广告组件


Version published
Maintainers
1
Created

Readme

Source

东方网升Ant Mobile 版本广告组件。

发布

  1. 更改package.josn版本
  2. yarn run build
  3. npm publish 注:镜像源需切换回NPM官方源

链接

  • 更新日志

示例

  • cd example
  • yarn install
  • yarn start

使用之前

该组件依赖于Ant Mobile组件,使用之前请配置Ant Mobile。

何时使用

  • 对接东方网升广告系统,实现轮播广告,普通广告的展示。
  • 对广告展示次数,点击次数的统计。

API

<DfwsAd code="2520190715152252" type={1}>
</DfwsAd>

DfwsAd props

参数说明类型默认值
code广告位编号codestring-
historyreact-router history(短链跳转使用)json-
cache广告缓存booleantrue
expireDay缓存日期(小时)number1
autoplay是否自动切换(支持轮播广告)booleantrue
path短链接的前缀字段string''
dotStylebanner点样式objectnull
dotActiveStylebanner点选中样式objectnull
isLenOne如果banner为一张时 是否展示dotbooleantrue

参考

Ant Mobile

Keywords

FAQs

Last updated on 20 Apr 2022

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc