mirror of
https://gitee.com/vant-contrib/vant.git
synced 2026-06-05 09:58:11 +08:00
Compare commits
No commits in common. "ba4a0760bbef8da0fca2bd305ca2b7ab272d67ef" and "7f38a0d9881b4dc883a9028ced0562bd05e3321d" have entirely different histories.
ba4a0760bb
...
7f38a0d988
@ -17,24 +17,6 @@ export default {
|
|||||||
return this.$route.name;
|
return this.$route.name;
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
mounted() {
|
|
||||||
const anchors = [].slice.call(this.$el.querySelectorAll('h2, h3, h4, h5'));
|
|
||||||
anchors.forEach((anchor) => {
|
|
||||||
anchor.addEventListener('click', this.scrollToAnchor);
|
|
||||||
});
|
|
||||||
},
|
|
||||||
|
|
||||||
methods: {
|
|
||||||
scrollToAnchor(event) {
|
|
||||||
if (event.target.id) {
|
|
||||||
this.$router.push({
|
|
||||||
name: this.$route.name,
|
|
||||||
hash: '#' + event.target.id,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
},
|
|
||||||
},
|
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|||||||
@ -1,6 +0,0 @@
|
|||||||
{
|
|
||||||
"extends": "../tsconfig.json",
|
|
||||||
"compilerOptions": {
|
|
||||||
"allowJs": true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@ -9,5 +9,5 @@
|
|||||||
"esModuleInterop": true,
|
"esModuleInterop": true,
|
||||||
"lib": ["esnext", "dom"]
|
"lib": ["esnext", "dom"]
|
||||||
},
|
},
|
||||||
"include": ["src/**/*"]
|
"include": ["src/**/*", "site"]
|
||||||
}
|
}
|
||||||
|
|||||||
@ -78,8 +78,6 @@
|
|||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
border: 0;
|
border: 0;
|
||||||
resize: none;
|
resize: none;
|
||||||
// https://github.com/youzan/vant/pull/9418
|
|
||||||
user-select: auto;
|
|
||||||
|
|
||||||
&::placeholder {
|
&::placeholder {
|
||||||
color: var(--van-field-placeholder-text-color);
|
color: var(--van-field-placeholder-text-color);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user