We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fdd9c3f commit fd07906Copy full SHA for fd07906
components/anchor/Anchor.jsx
@@ -225,7 +225,7 @@ export default {
225
226
const wrapperStyle = {
227
maxHeight: offsetTop ? `calc(100vh - ${offsetTop}px)` : '100vh',
228
- ...getStyle(this, true),
+ // ...getStyle(this, true),
229
}
230
231
const anchorContent = (
components/anchor/AnchorLink.jsx
@@ -25,6 +25,12 @@ export default {
25
beforeDestroy () {
26
this.antAnchor.unregisterLink(this.href)
27
},
28
+ watch: {
29
+ href (val) {
30
+ this.antAnchor.unregisterLink(val)
31
+ this.antAnchor.registerLink(val)
32
+ },
33
34
methods: {
35
handleClick () {
36
this.antAnchor.scrollTo(this.href)
0 commit comments