pinokiod 1.2.59 → 1.2.61
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
package/server/public/style.css
CHANGED
package/server/views/index.ejs
CHANGED
|
@@ -374,7 +374,7 @@ const search = (items, value) => {
|
|
|
374
374
|
//})
|
|
375
375
|
|
|
376
376
|
|
|
377
|
-
let selectedIndex =
|
|
377
|
+
let selectedIndex = -1
|
|
378
378
|
let selectedBtnIndex = 0
|
|
379
379
|
let filteredCount = list.length
|
|
380
380
|
let filteredBtnsCount = 0
|
|
@@ -386,8 +386,6 @@ const renderSearch = () => {
|
|
|
386
386
|
result = list.map((i, index) => {
|
|
387
387
|
return { item: i }
|
|
388
388
|
})
|
|
389
|
-
// selectedIndex = 0
|
|
390
|
-
// selectedBtnIndex = 0
|
|
391
389
|
} else {
|
|
392
390
|
result = search(list, target.value)
|
|
393
391
|
}
|
|
@@ -398,7 +396,6 @@ const renderSearch = () => {
|
|
|
398
396
|
}
|
|
399
397
|
|
|
400
398
|
filteredCount = result.length
|
|
401
|
-
console.log("selectedIndex", selectedIndex)
|
|
402
399
|
for(let i=0; i<result.length; i++) {
|
|
403
400
|
let selector = result[i]
|
|
404
401
|
//let el = document.querySelector(".line[data-name='" + selector.item.name + "']")
|