Comments (6)
或者除了background可配置,可不可以增加一些配置项呢
from dps.
研究了以下,通过includeElement可以解决
from dps.
觉得drawBlock方法的width, height, top, left等参数值默认赋值为node节点的相应值更好
from dps.
看看 evalDOM.js
的41行,有对 border-radius
做处理;
from dps.
@famanoder 是的大佬,但其实我的意思是有些节点本身没有border-radius,我希望在生成的骨架屏中给这个节点加上border-radius,这个可以通过includeElement解决,但是稍微有点麻烦,如果能drawBlock方法的width, height, top, left等参数值默认赋值为该node节点的相应值更好
from dps.
- 可以加个参数支持
border-radius
,我找时间加上或者你有时间提个 pr 也行呀;
如果能drawBlock方法的width, height, top, left等参数值默认赋值为该node节点的相应值更好
- 这里的骨架屏是零碎的
div
拼接的,也就是都是fixed
定位的,节点数非常少;你说的赋值为节点相应的值,需要复用页面所有的节点和相关的样式,之前考虑过这个方案,生成的节点量一般大小的页面也有几十 K,还不包括抽取样式,最终想到一个“走捷径”的方案,就是节点的位置取绝对值,换算成百分比,虽然还会有差异,但是整体来说我觉得更优,具体细节可以看看代码;
from dps.
Related Issues (20)
- 你好, 请问多个页面应该怎么配置呢? HOT 8
- 请问如何提高生成的骨架图的准确性?对页面样式有什么推荐意见呢 HOT 1
- 关于dps的几点优化建议 HOT 1
- Error: Cannot find module 'puppeteer' HOT 3
- 启动失败
- dps start启动失败 HOT 1
- Cannot find module 'puppeteer' HOT 5
- 生成的骨架屏跟原来的相差很大啊. HOT 4
- Cannot find module 'puppeteer' HOT 2
- react和vue项目都可以支持吗 HOT 2
- url不支持配置数组? HOT 3
- 请问我配置好了生成了html文件 那页面怎么插入到网页中 HOT 1
- 单页能不能生成加载数据后的骨架屏? HOT 1
- 单页生成 HOT 1
- 生成骨架屏是空白
- 克隆项目后,dps start 运行不起来 HOT 3
- 一直显示ppteer.launch
- 多次生成骨架屏,生成后的股价平代码都不一样
- 运行 dps start 后,如何打开浏览器的可视化界面? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dps.