Socket
Socket
Sign inDemoInstall

nuke-view

Package Overview
Dependencies
2
Maintainers
2
Versions
55
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    nuke-view

视图


Version published
Weekly downloads
18
decreased by-37.93%
Maintainers
2
Install size
114 kB
Created
Weekly downloads
 

Readme

Source

View

  • category: Components
  • chinese: 视图
  • type: 基本

设计思路

View 是一个容器组件,在 Native 端可以理解为 UIView ,在 web 端即 <div> ,它可以任意嵌套,但嵌套层数过深可能会导致页面在安卓5.0以下或部分机型闪退

View 有如下默认样式,在项目中不必重复写:

{
    position: 'relative',
    boxSizing: 'border-box',
    display: 'flex',
    flexDirection: 'column',
}

API

参数说明类型默认值
style样式object
onClick点击事件Function

以及其他通用事件与属性

其他

  • bug、建议联系 @翊晨
  • 钉钉交流群

Keywords

FAQs

Last updated on 26 Sep 2019

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