Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Jul 22, 2024. It is now read-only.

关于新版layer.ext.js点击放大图片查看不全的bug#18

Closed
sphenginx wants to merge 2 commits into
layui:2.x from
sphenginx:2.0
Closed

关于新版layer.ext.js点击放大图片查看不全的bug #18
sphenginx wants to merge 2 commits into
layui:2.x from
sphenginx:2.0

Conversation

@sphenginx

@sphenginx sphenginx commented Dec 18, 2015

Copy link
Copy Markdown

你好,最近用你的layer插件,photos方法中发现一个bug,就是在放大图片的时候有个area闭包,
你这边是宽高直接赋值为当前屏幕的宽高,

return!a.full&&b[0]>d[0]&&(b[0]=d[0],b[1]=b[0]*d[1]/b[0]),[b[0]+"px",b[1]+"px"]

图片应该按比例进行缩略

return!a.full&&b[0]>d[0]&&(b[1]=b[1]*d[0]/b[0],b[0]=d[0]),[b[0]+"px",b[1]+"px"]

这样吧

bug fixed:layer.hotos方法 图片放大不按比例缩放

zhe-he commented Dec 18, 2015

Copy link
Copy Markdown
Contributor

+1,他那是写反了

Copy link
Copy Markdown
最近用你的插件,发现按钮的自定义性比较弱,望能改进。定义按钮时,如btn:[1,2,3];按通常配置为,1:确定,2:取消,3:其他。但视觉设计往往随心所欲,根本不会按照这个顺序定义按钮。当然,我可以在btn0-3的函数中去自定义他们的作用。但可惜的是css样式确没法按照顺序来了。
比如两个弹窗,只有按钮的顺序不同,第一个弹窗按钮是:【确定,取消】。第二个是弹窗是:【取消】。在定义CSS时,btn1为蓝色,btn2为黄色。这时,第一个弹窗,确定按钮为蓝色,取消按钮为黄色。而第二个弹窗,取消按钮为蓝色。于是这样就违背的设计原则,因为设计原则一定是确定按钮为蓝色,取消按钮为黄色,而不是按顺序来配置颜色。
因此,希望在配置btn属性时,能有一些可自定义的值可以传入。

sentsim commented Jan 7, 2016

Copy link
Copy Markdown
Collaborator

请修改src目录的文件。

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /