-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Project 1:Page Transformer #1
Comments
题外话:为什么选择Vue本质上,选择Vue是因为,我觉得在可视化领域Vue可以轻易绕过一些麻烦的问题。因为Vue有 <template>
<img v-lazyload="http://ww3.sinaimg.cn/mw690/62aad664jw1f2nxvya0u2j20u01hc16p.jpg" />
<img v-lazyload="http://ww1.sinaimg.cn/mw690/62aad664jw1f2nxvyo52qj20u01hcqeq.jpg" />
<img v-lazyload="http://ww2.sinaimg.cn/mw690/62aad664jw1f2nxvz2cj6j20u01hck1o.jpg" />
<img v-lazyload="http://ww1.sinaimg.cn/mw690/62aad664jw1f2nxvzfjv6j20u01hc496.jpg" />
<img v-lazyload="http://ww1.sinaimg.cn/mw690/62aad664jw1f2nxw0e1mlj20u01hcgvs.jpg" />
<img v-lazyload="http://ww4.sinaimg.cn/mw690/62aad664jw1f2nxw0p95dj20u01hc7d8.jpg" />
<img v-lazyload="http://ww2.sinaimg.cn/mw690/62aad664jw1f2nxw134xqj20u01hcqjg.jpg" />
<img v-lazyload="http://ww1.sinaimg.cn/mw690/62aad664jw1f2nxw1kcykj20u01hcn9p.jpg" />
</template> 但如果用React,且如果lazyload能力是需要外部被注入的,我们需要这样: import React, { Component } from 'react';
export default class Image extends Component {
render(props) {
const { Lazyload, Operation } = props
return (
<div className="wrapper">
<Operation type="image" noExtra />
<div className="widget-list image-container">
<Lazyload throttle={200} height={300}>
<img src="http://ww3.sinaimg.cn/mw690/62aad664jw1f2nxvya0u2j20u01hc16p.jpg" />
</Lazyload>
<Lazyload throttle={200} height={300}>
<img src="http://ww1.sinaimg.cn/mw690/62aad664jw1f2nxvyo52qj20u01hcqeq.jpg" />
</Lazyload>
<Lazyload throttle={200} height={300}>
<img src="http://ww2.sinaimg.cn/mw690/62aad664jw1f2nxvz2cj6j20u01hck1o.jpg" />
</Lazyload>
<Lazyload throttle={200} height={300}>
<img src="http://ww1.sinaimg.cn/mw690/62aad664jw1f2nxvzfjv6j20u01hc496.jpg" />
</Lazyload>
<Lazyload throttle={200} height={300}>
<img src="http://ww1.sinaimg.cn/mw690/62aad664jw1f2nxw0e1mlj20u01hcgvs.jpg" />
</Lazyload>
<Lazyload throttle={200} height={300}>
<img src="http://ww4.sinaimg.cn/mw690/62aad664jw1f2nxw0p95dj20u01hc7d8.jpg" />
</Lazyload>
<Lazyload throttle={200} height={300}>
<img src="http://ww2.sinaimg.cn/mw690/62aad664jw1f2nxw134xqj20u01hcqjg.jpg" />
</Lazyload>
<Lazyload throttle={200} height={300}>
<img src="http://ww1.sinaimg.cn/mw690/62aad664jw1f2nxw1kcykj20u01hcn9p.jpg" />
</Lazyload>
</div>
</div>
);
} 这时候我们比较难在组件本身没有提供切面的情况下扩展他,这样可能导致一些额外的麻烦。 |
学员报道, |
可以查一下AOP:面向切面编程,可以这么理解一个系统我可以“切”一刀形成一个横切面,使得我在这个面上能看清楚一个明确目标的功能是如何完成的,而不是分散在每个不同的地方。其实大家用的最多的AOP就是CSS:https://plpatterns.com/post/482063133/every-time-you-use-css-youre-doing |
鼓励大家用issue反馈问题哈~ |
请问在Boostrap的栅格中,媒体查询写作 |
简单说就是,为了可读性,还有0.02px是为了解决Safri的bug。 |
相关学习
level 1
:表示最少预习内容level 2
:表示课程需要学会的东西level 3
:表示课外知识level1
(大部分场景其实定宽就可以解决)level2
(后面讲多端会再讲,暂时要知道就好)level2
level1
(需要大概了解下IntersectionObserver,并大概知道以前这种需求是通过在onscroll计算实现的)level1
level1
level2
level3
level3
The text was updated successfully, but these errors were encountered: