Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@nutui/draw-page-structure

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nutui/draw-page-structure

a way to make skeleton screen

  • 0.0.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

DrawPageStructure(DPS)

a way to make skeleton screen

usage

  1. npm i @nutui/draw-page-structure -g
  2. DPS init生成配置文件
  3. DPS start开始生成骨架屏
  4. 可修改dps.config.js进行相关配置
  5. 对于DOM结构比较复杂和图片比较多且分布密集的情况 生成的骨架屏效果可能不尽如人意,这时候可以使用includeElement定制某个节点生成生成什么样 子,或者使用init在生成骨架屏之前对DOM节点进行调整,比如删除干扰节点;
  6. evalDOM.js支持直接在浏览器端运行,在控制台打印当前页面骨架屏节点,复制添加到应用页面

参数说明

参数说明默认值是否必填
url待生成骨架屏的页面地址--
output.filepath生成的骨架屏节点写入的文件--
output.injectSelector骨架屏节点插入的位置#app
background骨架屏主题色#ecf0f2
animationcss3动画属性--
device设备类型mobile
init开始生成之前的操作--
includeElement(node, draw)定制某个节点如何生成--
writePageStructure(html, filepath)回调的骨架屏节点--

FAQs

Package last updated on 14 Sep 2018

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc