Skip to content
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

ImagePreview不支持隐藏页码 #2407

Closed
llaunkmjb590 opened this issue Jul 3, 2024 · 0 comments · Fixed by #2411
Closed

ImagePreview不支持隐藏页码 #2407

llaunkmjb590 opened this issue Jul 3, 2024 · 0 comments · Fixed by #2411

Comments

@llaunkmjb590
Copy link

NutUI React 包名

@nutui/nutui-react-taro

NutUI React 版本号

2.4.1

平台

jd

重现链接

https://cofe-portal.jdfmgt.com/app/m/#/app/static/files?app_id=61b06d3c1b8eeeb5de3a56d9&release_type=2

重现步骤

import React, { useState } from 'react'
import { ImagePreview, Cell } from '@nutui/nutui-react-taro'

const Demo1 = () => {
const images = [
{
src: '//fastly.jsdelivr.net/npm/@vant/assets/apple-4.jpeg',
},
{
src: '//m.360buyimg.com/mobilecms/s750x366_jfs/t1/26597/30/4870/174583/5c35c5d2Ed55eedc6/50e27870c25e7a82.png',
},
{
src: '//m.360buyimg.com/mobilecms/s750x366_jfs/t1/9542/17/12873/201687/5c3c4362Ea9eb757d/60026b40a9d60d85.jpg',
},
{
src: '//m.360buyimg.com/mobilecms/s750x366_jfs/t1/30042/36/427/82951/5c3bfdabE3faf2f66/9adca782661c988c.jpg',
},
]
const [showPreview, setShowPreview] = useState(false)
return (
<>
<ImagePreview
autoPlay
images={images}
visible={showPreview}
onClose={() => setShowPreview(false)}
/>
<Cell title="展示图片预览" onClick={() => setShowPreview(true)} />
</>
)
}
export default Demo1

期望的结果是什么?

期望可以 隐藏页码
image

实际的结果是什么?

目前没有api可以支持 隐藏页码

环境信息

👽 Taro v3.6.19

代理https://jtk-pre.jd.com:
启动 taro-plugin-environment:读取env环境变量 undefined

Taro CLI 3.6.19 environment info:
System:
OS: macOS 13.4
Shell: 5.9 - /bin/zsh
Binaries:
Node: 18.0.0 - ~/.nvm/versions/node/v18.0.0/bin/node
Yarn: 1.22.19 - ~/.nvm/versions/node/v18.0.0/bin/yarn
npm: 8.6.0 - ~/.nvm/versions/node/v18.0.0/bin/npm
npmPackages:
@tarojs/cli: 3.6.14 => 3.6.14
@tarojs/components: 3.6.14 => 3.6.14
@tarojs/helper: 3.6.14 => 3.6.14
@tarojs/plugin-framework-react: 3.6.14 => 3.6.14
@tarojs/plugin-html: 3.6.14 => 3.6.14
@tarojs/plugin-platform-jd: 3.6.14 => 3.6.14
@tarojs/react: 3.6.14 => 3.6.14
@tarojs/runtime: 3.6.14 => 3.6.14
@tarojs/shared: 3.6.14 => 3.6.14
@tarojs/taro: 3.6.14 => 3.6.14
@tarojs/taro-loader: 3.6.14 => 3.6.14
@tarojs/webpack5-runner: 3.6.14 => 3.6.14
babel-preset-taro: 3.6.14 => 3.6.14
eslint-config-taro: 3.6.14 => 3.6.14
react: ^18.0.0 => 18.2.0

其他补充信息

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant