chore:开启隐藏精选名片的资料行图标可控
This commit is contained in:
@@ -151,6 +151,12 @@ const ROW_ICONS = {
|
||||
phone: 'icon-dianhua',
|
||||
wechat: 'icon-weixin',
|
||||
address: 'icon-dizhi',
|
||||
// 方案1(2026-10-22): 邮箱图标 —— 需同时在 iconfont 字库补充信封字形 `icon-youxiang`
|
||||
// (见 common/css/iconfont.css), 字库更新前该行会渲染空白, 故上线前必须配套更新字库。
|
||||
// field 键名多写几套兜底(后端可能用 email / mail / 中文「邮箱」), 命中其一即可
|
||||
email: 'icon-youxiang',
|
||||
mail: 'icon-youxiang',
|
||||
'邮箱': 'icon-youxiang',
|
||||
};
|
||||
export function rowIconFor(field) {
|
||||
return ROW_ICONS[String(field || '')] || '';
|
||||
|
||||
@@ -380,9 +380,10 @@ export default {
|
||||
},
|
||||
});
|
||||
},
|
||||
/** 资料行图标(字段无字形返回空串, 模板退化为文字标签) */
|
||||
/** 资料行图标: 面板「名片信息展示 → 资料行图标」(默认开;
|
||||
* 关后全部退化为文字标签, 无字形的字段(邮箱/网站/自定义)也退化为文字标签) */
|
||||
rowIcon(row) {
|
||||
return rowIconFor(row && row.field);
|
||||
return flagOn(this.c.showRowIcons, true) ? rowIconFor(row && row.field) : '';
|
||||
},
|
||||
/** 资料行是否可点: 服务端 href 派生得出动作 */
|
||||
rowTapable(row) {
|
||||
|
||||
Reference in New Issue
Block a user