fix: 数据时间下拉框里选中项的文字不再被盖住
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user