Git Product home page Git Product logo

cedric-song / weex-vue-fixed Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mmf-fe/weex-vue-fixed

1.0 2.0 0.0 43 KB

This component is using for solving the issue that when using vue-router in weex, the DOM elements with position: fixed attribute will never disappear or close on Android devices

Home Page: https://github.com/alibaba/weex/issues/2310

License: Apache License 2.0

TypeScript 54.24% Vue 2.68% JavaScript 43.08%

weex-vue-fixed's Introduction

weex-vue-fixed

中文说明

This component is using for solving the issue that when using vue-router in weex, the DOM elements with position: fixed attribute will never disappear or close on Android devices. issue

Install

npm i weex-vue-fixed --save-dev
# or
yarn add weex-vue-fixed --dev

Configuration

import Vue from 'vue'
import Router from 'vue-router'
import weexVueFixed from 'weex-vue-fixed'

Vue.use(weexVueFixed)
Vue.use(Router)

let router = new Router({
    // you config
})

router.beforeEach((to, from, next) => {
    Vue.fixedClear() // clear for android
    next()
})

Usage

<wv-fixed top="0" left="0" :show="true">
    <text>This is fixed tag for android , clear safe</text>
</wv-fixed>

Props

name type desc
left number css left
right number css right
bottom number css bottom
top number css top
show boolean create or destroy

weex-vue-fixed's People

Contributors

vfasky avatar charliefan avatar ciwyaitd avatar

Stargazers

 avatar

Watchers

James Cloos avatar Cedric Song 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.