Commit 10366de3 by Jaxon

fix(shelfProductConfirm): 优化适用车型列的tooltip展示和文本渲染

替换浏览器默认tooltip为组件自定义tooltip,调整样式与渲染逻辑,优化溢出文本的提示展示
1 parent eae883d2
......@@ -315,17 +315,27 @@ export async function getProductDetailUpgradeGoodsDescriptionSchema() {
label: "适用车型",
col: 8,
tooltip: true,
tooltipProps: { effect: "dark", placement: "right" },
tooltipProps: {
effect: "dark",
placement: "right",
style: { "display": "inline-block", "width": "auto", "max-width": "100%" },
render(h, { data, schemaItem }) {
const list = get(data, schemaItem.name);
const seriesNameList = list?.map(item => item.seriesName);
const names = seriesNameList?.join("/") || "-";
return h(
"span",
names,
);
},
},
render(h, { data, schemaItem }) {
const list = get(data, schemaItem.name);
const seriesNameList = list?.map(item => item.seriesName);
const names = seriesNameList?.join("/") || "-";
return h(
"div",
"span",
{
attrs: {
title: names,
},
class: "text-hide",
},
names,
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!