🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

weex-v-show

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

weex-v-show

用于支持 weex 环境内的 v-show 指令

latest
npmnpm
Version
1.1.1
Version published
Weekly downloads
6
-25%
Maintainers
1
Weekly downloads
 
Created
Source

weex v-show

用于支持 weex 环境内的 v-show 指令

支持环境

  • 普通 weex 项目
  • uni-app 项目 nvue 页面

使用方式

NPM

npm i weex-v-show --save
import vShow from 'weex-v-show'
// #ifdef APP-NVUE
Vue.directive('show', vShow)
// #endif

直接下载

// 以下路径需根据项目实际情况填写
import vShow from '../../js/weex-v-show.js'
// #ifdef APP-NVUE
Vue.directive('show', vShow)
// #endif

原理及限制

  • 由于 weex 不支持设置 display 样式,本插件通过切换元素其他样式来实现;
  • 部分情况下导致隐藏不彻底,可以尝试自行调整插件内切换的样式;
  • 如遇隐藏后无法显示,请给元素显式的设置宽高;

FAQs

Package last updated on 11 Nov 2022

Did you know?

Socket

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