🌐 AI搜索 & 代理 主页
Skip to content

Commit f784334

Browse files
committed
Update nav-item-dropdown.js
1 parent a0f016c commit f784334

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

src/components/nav/nav-item-dropdown.js

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,13 @@ import dropdownMixin from '../../mixins/dropdown'
55
import idMixin from '../../mixins/id'
66
import normalizeSlotMixin from '../../mixins/normalize-slot'
77
import { props as BDropdownProps } from '../dropdown/dropdown'
8-
import { BLink, props as BLinkProps } from '../link/link'
8+
import { BLink } from '../link/link'
99

1010
// --- Props ---
11-
export const props = {
12-
...pluckProps(
13-
['text', 'html', 'menuClass', 'toggleClass', 'noCaret', 'role', 'lazy'],
14-
BDropdownProps
15-
),
16-
...pluckProps(['href'], BLinkProps)
17-
}
11+
export const props = pluckProps(
12+
['text', 'html', 'menuClass', 'toggleClass', 'noCaret', 'role', 'lazy'],
13+
BDropdownProps
14+
)
1815

1916
// --- Main component ---
2017
// @vue/component
@@ -55,7 +52,7 @@ export const BNavItemDropdown = /*#__PURE__*/ Vue.extend({
5552
staticClass: 'nav-link dropdown-toggle',
5653
class: this.toggleClasses,
5754
props: {
58-
href: this.href || `#${toggleId || ''}`,
55+
href: `#${this.id || ''}`,
5956
disabled: this.disabled
6057
},
6158
attrs: {

0 commit comments

Comments
 (0)