Giter VIP home page Giter VIP logo

weplug-add-tips's Introduction

add-tips

微信小程序UI插件 用于提示用户首次进入小程序时,点击右上角菜单进行【添加到我的小程序】操作

文档

首先,把这个仓库下载/克隆到你的小程序目录,比如/components/weplug-add-tips/
然后,在首页index.json配置文件中,引入该组件:

{
  "usingComponents": {
    "add-tips": "/components/weplug-add-tips/index"
  }
}

最后,在首页index.wxml文件中,调用该组件即可:

<add-tips />

参数

你可以传递两个参数进行自定义操作:

1. text:提示的文字内容

<add-tips text="点击添加到小程序" />

2. duration:提示关闭时间(单位秒)

<add-tips duration="10" />

截图

你也可以扫一扫小程序进行体验效果:

weplug-add-tips's People

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.