Skip to content

Commit

Permalink
fix: tip show
Browse files Browse the repository at this point in the history
  • Loading branch information
lisonge committed Mar 23, 2024
1 parent 1087a4b commit 5ac443c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/AttrCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,12 @@ const lenAttrNames = [`text`, `desc`];
const attrs = computed(() => {
return Object.entries(props.focusNode.attr)
.map(([name, value]) => {
const show = attrTip[name]?.show;
const attr = {
name,
value,
desc: JSON.stringify(value),
tip: attrTip[name]?.show?.() ? attrTip[name] : undefined,
tip: (show ? show() : true) ? attrTip[name] : undefined,
};
if (lenAttrNames.includes(name)) {
return [
Expand Down

0 comments on commit 5ac443c

Please sign in to comment.