Commit 10366de3 by Jaxon

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

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