Skip to content

Commit

Permalink
chore: lint code
Browse files Browse the repository at this point in the history
  • Loading branch information
qmhc committed Jan 29, 2025
1 parent 2af1abf commit c3247bd
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions components/menu/menu-group.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -107,4 +107,5 @@ const MenuGroup = defineComponent({
}
})

// eslint-disable-next-line vue/require-direct-export
export default MenuGroup
6 changes: 4 additions & 2 deletions components/menu/menu-item.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,8 @@ const MenuItem = defineComponent({
}

const indentWidth = nh.gcv('indent-width')
const multiplier = indent.value + (menuState?.isReduced ? 0 : groupState?.indent ?? 0) * 0.25
const multiplier =
indent.value + (menuState?.isReduced ? 0 : (groupState?.indent ?? 0)) * 0.25

return {
paddingInlineStart:
Expand All @@ -140,7 +141,7 @@ const MenuItem = defineComponent({
const tooltipReverse = computed(() => !!menuState?.tooltipReverse)
const isHorizontal = computed(() => menuState?.horizontal && !parentItemState)
const transition = computed(() => {
return props.transitionName ?? isHorizontal.value ? nh.ns('drop') : nh.ns('zoom')
return (props.transitionName ?? isHorizontal.value) ? nh.ns('drop') : nh.ns('zoom')
})
const dropTrigger = computed(() => props.trigger || menuState?.trigger || 'hover')

Expand Down Expand Up @@ -497,4 +498,5 @@ const MenuItem = defineComponent({
}
})

// eslint-disable-next-line vue/require-direct-export
export default MenuItem
1 change: 1 addition & 0 deletions components/table/table-column-group.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -137,4 +137,5 @@ const TableColumnGroup = defineComponent({
}
})

// eslint-disable-next-line vue/require-direct-export
export default TableColumnGroup

0 comments on commit c3247bd

Please sign in to comment.