Skip to content

Commit

Permalink
fix: js
Browse files Browse the repository at this point in the history
  • Loading branch information
kasuie committed Apr 24, 2024
1 parent 8335fb7 commit edb18cd
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions v3/js/style.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* @Author: kasuie
* @Date: 2024-04-24 15:35:59
* @LastEditors: kasuie
* @LastEditTime: 2024-04-24 17:16:03
* @LastEditTime: 2024-04-24 17:20:17
* @Description:
*/
let footer = false;
Expand Down Expand Up @@ -63,15 +63,13 @@ const renderFooter = (data) => {
})
: null;
aDom && (aDom.innerText = text);
if (!index) {
target.innerHTML = ImgDom
? target.innerHTML + ImgDom + aDom
: target.innerHTML + aDom;
} else {
target.innerHTML = ImgDom
? "<span>|</span>" + target.innerHTML + ImgDom + aDom
: "<span>|</span>" + target.innerHTML + aDom;
if (index) {
const split = onCreateElement("span", null);
split.innerText = "|";
split && target.appendChild(split);
}
ImgDom && target.appendChild(ImgDom);
aDom && target.appendChild(aDom);
}
}
footer = true;
Expand Down

0 comments on commit edb18cd

Please sign in to comment.