提交 cc007c13 编写于 作者: aaronchen2k2k's avatar aaronchen2k2k

get mod arr for child fields scroll

上级 3ffa8e30
......@@ -260,15 +260,13 @@ func computerLoop(field *model.DefField) {
func connectChildrenToSingleStr(arrOfArr [][]string, total int, values *[]string) {
indexArr := getModArr(arrOfArr)
for i := 0; i < total; i++ {
concat := ""
for count := 0; count < total; count++ {
str := ""
for idx, row := range arrOfArr {
concat = concat + row[indexArr[idx]] // get one item from each child, grouped as a1 or b2
str = str + row[count % indexArr[idx]] // get one item from each child, grouped as a1 or b2
}
*values = append(*values, concat)
*values = append(*values, str)
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册