-
-
Notifications
You must be signed in to change notification settings - Fork 9.5k
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
feat: add enableDoubleScale attribute #12360
Conversation
package.json
Outdated
"husky": "^8.0.1", | ||
"nano-staged": "^0.8.0", | ||
"prettier": "^3.0.0", | ||
"vue": "^3.3.4" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
为什么需要在根目录安装 Vue 和格式化 package.json 文件呢
@@ -72,6 +72,7 @@ export const imagePreviewProps = { | |||
closeOnClickOverlay: truthProp, | |||
closeIconPosition: makeStringProp<PopupCloseIconPosition>('top-right'), | |||
teleport: [String, Object] as PropType<TeleportProps['to']>, | |||
enableDoubleScale: Boolean, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
文档需要更新
我启动项目时发现要有vue的依赖,上传代码时忘记恢复了,代码格式化工具有出入,也是忘记恢复了,不好意思
…---Original---
From: ***@***.***>
Date: Fri, Oct 13, 2023 20:20 PM
To: ***@***.***>;
Cc: ***@***.******@***.***>;
Subject: Re: [youzan/vant] feat: add enableDoubleSclae (PR #12360)
@chenjiahan commented on this pull request.
In package.json:
> + "*.md": "prettier --write", + "*.{ts,tsx,js,vue,less}": "prettier --write", + "*.{ts,tsx,js,vue}": "eslint --fix" + }, + "engines": { + "pnpm": ">= 8.8.0" + }, + "packageManager": ***@***.***", + "devDependencies": { + ***@***.***/cli": "workspace:*", + ***@***.***/eslint-config": "workspace:*", + "eslint": "^8.46.0", + "husky": "^8.0.1", + "nano-staged": "^0.8.0", + "prettier": "^3.0.0", + "vue": "^3.3.4"
为什么需要在根目录安装 Vue 和格式化 package.json 文件呢
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Codecov ReportAttention:
... and 2 files with indirect coverage changes 📢 Thoughts on this report? Let us know!. |
哈哈 没事~ |
你好,以组件调用的方式使用 ImagePreview 时,并通过 image 插槽展示图片好像不支持缩放诶 |
* feat: add enableDoubleSclae * feat: add enableDoubleScale attribute * Update package.json --------- Co-authored-by: neverland <[email protected]>
feat:添加了enableDoubleScale属性(默认为true),true为允许双击缩放,蒙层关闭会有250ms延迟;false为不允许双击缩放,蒙层关闭没有延迟。
解决问题:提供用户双向选择是否开启双击缩放,关闭会导致预留双击时间以致于关闭延迟,解决有些延迟效果不好而且双击缩放需求不大的场景。