fix: 数据时间下拉框里选中项的文字不再被盖住

This commit is contained in:
2026-11-10 17:10:58 +08:00
parent 1c0ee149b9
commit 2d89d3fcd8
+7 -2
View File
@@ -121,8 +121,13 @@ const renderTimeOption = ({ node, option }: { node: VNode; option: { label?: str
"div",
node.props ?? {},
[
h("span", String(option.label ?? "")),
h("span", { style: "display:block;margin-top:2px;color:var(--muted);font-size:12px;font-weight:400;line-height:1.3" }, rangeText(String(option.value ?? ""))),
h("div", {
class: "n-base-select-option__content",
style: "position:relative;z-index:1;display:flex;flex-direction:column;align-items:flex-start;line-height:1.35;white-space:normal;overflow:visible",
}, [
h("span", String(option.label ?? "")),
h("span", { style: "color:var(--muted);font-size:12px;font-weight:400" }, rangeText(String(option.value ?? ""))),
]),
],
);
const needsCount = computed(() => ["prev_weeks", "prev_months", "prev_days"].includes(timeMode.value));