This repository was archived by the owner on Jul 22, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Closed
Conversation
bug fixed:layer.hotos方法 图片放大不按比例缩放
Update layer.ext.js
zhe-he
commented
Dec 18, 2015
Contributor
+1,他那是写反了
Hades-li
commented
Dec 18, 2015
最近用你的插件,发现按钮的自定义性比较弱,望能改进。定义按钮时,如btn:[1,2,3];按通常配置为,1:确定,2:取消,3:其他。但视觉设计往往随心所欲,根本不会按照这个顺序定义按钮。当然,我可以在btn0-3的函数中去自定义他们的作用。但可惜的是css样式确没法按照顺序来了。
比如两个弹窗,只有按钮的顺序不同,第一个弹窗按钮是:【确定,取消】。第二个是弹窗是:【取消】。在定义CSS时,btn1为蓝色,btn2为黄色。这时,第一个弹窗,确定按钮为蓝色,取消按钮为黄色。而第二个弹窗,取消按钮为蓝色。于是这样就违背的设计原则,因为设计原则一定是确定按钮为蓝色,取消按钮为黄色,而不是按顺序来配置颜色。
因此,希望在配置btn属性时,能有一些可自定义的值可以传入。
sentsim
commented
Jan 7, 2016
Collaborator
请修改src目录的文件。
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
你好,最近用你的layer插件,photos方法中发现一个bug,就是在放大图片的时候有个area闭包,
你这边是宽高直接赋值为当前屏幕的宽高,
图片应该按比例进行缩略
这样吧