add dropdown component

This commit is contained in:
2023-03-31 17:35:36 +08:00
parent b9447997fe
commit 41b1bbd7d6
20 changed files with 575 additions and 74 deletions

View File

@ -49,9 +49,7 @@ function setTooltip(container, content) {
}
function resolveTooltip(container) {
if (container == null) {
container = document.body;
}
container ??= document.body;
const tips = container.querySelectorAll('[title]');
for (let tip of tips) {
const title = tip.getAttribute('title');