From 16e02f643f8dd40fe4b24e1b9f976cb4a1d0307f Mon Sep 17 00:00:00 2001
From: 无木 <netfan@foxmail.com>
Date: Tue, 21 May 2019 14:07:50 +0800
Subject: [PATCH] 单元格多图片预览时可以根据引发单击事件的图片索引来决定初始显示的图片序号

---
 public/assets/js/require-table.js | 1 +
 1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/public/assets/js/require-table.js b/public/assets/js/require-table.js
index e259ec3..ecd310a 100644
--- a/public/assets/js/require-table.js
+++ b/public/assets/js/require-table.js
@@ -409,6 +409,7 @@ define(['jquery', 'bootstrap', 'moment', 'moment/locale/zh-cn', 'bootstrap-table
                         });
                         Layer.photos({
                             photos: {
+                                "start":$(this).index(".img-center"),
                                 "data": data
                             },
                             anim: 5 //0-6的选择,指定弹出图片动画类型,默认随机(请注意,3.0之前的版本用shift参数)
--
libgit2 0.24.0