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

layer.photos能否增加自定义按钮在顶部 #1765

Open
4 tasks done
onlycyndi opened this issue Apr 8, 2024 · 0 comments
Open
4 tasks done

layer.photos能否增加自定义按钮在顶部 #1765

onlycyndi opened this issue Apr 8, 2024 · 0 comments
Labels
feature 功能请求 Feature Request PR welcome 欢迎提交 PR 来协助实现

Comments

@onlycyndi
Copy link

议题条件

  • 我确认已查看官方使用文档:https://layui.dev ,但没有找到相关解决方案。
  • 我确认已在 Issues 中搜索过类似的问题,但没有找到相关解决方案。
  • 我已仔细阅读: 🍀 Layui Issue 贡献指南

议题类型

功能请求

使用版本

V2.9.8

问题描述

你好,我打开了photos进行图片列表预览,类似的我想做个删除按钮,查询了Api这些没有相关的解答。

业务代码

layer.photos({
        photos: {
          "title": "Photos Demo",
          "start": 0,
          "data": [
            {
              "alt": "layer",
              "pid": 1,
              "src": "https://unpkg.com/outeres@0.1.1/demo/layer.png",
            },
            {
              "alt": "壁纸",
              "pid": 3,
              "src": "https://unpkg.com/outeres@0.1.1/demo/000.jpg",
            },
            {
              "alt": "浩瀚宇宙",
              "pid": 5,
              "src": "https://unpkg.com/outeres@0.1.1/demo/outer-space.jpg",
            }
          ]
        }
      });

截图补充

No response

浏览器

版本 123.0.6312.107(正式版本) (arm64)

演示地址

No response

友好承诺

  • 我承诺将本着相互尊重、理解和友善的态度进行交流,共同维护 Layui 良好的社区氛围。
@Sight-wcg Sight-wcg added feature 功能请求 Feature Request PR welcome 欢迎提交 PR 来协助实现 labels Apr 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature 功能请求 Feature Request PR welcome 欢迎提交 PR 来协助实现
Projects
None yet
Development

No branches or pull requests

2 participants