Giter Site home page Giter Site logo

lsy999 / floatbutton Goto Github PK

View Code? Open in Web Editor NEW

This project forked from suzhixiaoliao/floatbutton

0.0 2.0 0.0 33 KB

小程序 可拖动悬浮按钮 已封装成模块可直接引用

Home Page: https://github.com/suzhixiaoliao/floatButton/blob/master/%E5%BE%AE%E4%BF%A1%E6%88%AA%E5%9B%BE_20190110160957.png

JavaScript 100.00%

floatbutton's Introduction

floatButton

小程序 可拖动悬浮按钮 已封装成模块可直接引用 https://github.com/suzhixiaoliao/floatButton/blob/master/%E5%BE%AE%E4%BF%A1%E6%88%AA%E5%9B%BE_20190110160957.png

步骤一

const FloatButton = require('../../template/floatButton/floatButton.js') var floatButton; floatButton = new FloatButton(this, "home", { image: "../../assets/jq/home.png",//图像路径,必须 onclick: function () { wx.showToast({ title: 'fb click 1', }) }, imageRadio: 1, imageWidthRadio: 0.1, onLeft: false,//如果为flase靠右 为true靠左 topPos: 0.8,//高度 });

步骤二

# 步骤三@import '../../template/floatButton/floatButton.wxss';

floatbutton's People

Contributors

suzhixiaoliao avatar

Watchers

James Cloos avatar 粉饰太平 avatar

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.