Compare commits

..

No commits in common. "267f23dc584d4e7de2ca06ef6f46d34133bb431e" and "a21833f9733f4bef6cf88f08c1687fa3e41c27ae" have entirely different histories.

4 changed files with 7 additions and 20 deletions

View File

@ -6,7 +6,7 @@ code {
color: var(--van-doc-code-color);
font-weight: 400;
font-size: 14px;
font-family: var(--van-doc-code-font-family);
font-family: 'Source Code Pro', 'Monaco', 'Inconsolata', monospace;
line-height: 26px;
white-space: pre-wrap;
word-wrap: break-word;

View File

@ -12,7 +12,6 @@
--van-doc-gray-8: #323233;
--van-doc-blue: #1989fa;
--van-doc-green: #07c160;
--van-doc-purple: #8e69d3;
// sizes
--van-doc-padding: 32px;
@ -22,10 +21,6 @@
--van-doc-simulator-width: 360px;
--van-doc-simulator-height: 620px;
--van-doc-header-top-height: 64px;
// fonts
--van-doc-code-font-family: 'Menlo', 'Source Code Pro', 'Monaco',
'Inconsolata', monospace;
}
.van-doc-theme-light {

View File

@ -245,7 +245,7 @@ export default {
display: inline-block;
color: var(--van-doc-green);
font-size: 14px;
font-family: var(--van-doc-code-font-family);
font-family: 'Source Code Pro', 'Monaco', 'Inconsolata', monospace;
font-style: normal;
max-width: 300px;
-webkit-font-smoothing: auto;
@ -291,12 +291,13 @@ export default {
> table code {
display: inline;
margin: 0 2px;
padding: 3px 7px;
padding: 2px 5px;
font-size: 14px;
font-family: inherit;
font-weight: 600;
word-break: keep-all;
border-radius: 6px;
-webkit-font-smoothing: auto;
font-family: var(--van-doc-code-font-family);
border-radius: 4px;
-webkit-font-smoothing: antialiased;
}
> blockquote {

View File

@ -17,7 +17,6 @@ import { Instance, createPopper, offsetModifier } from '@vant/popperjs';
import {
pick,
extend,
inBrowser,
truthProp,
numericProp,
unknownProp,
@ -138,10 +137,6 @@ export default defineComponent({
if (!popper) {
popper = createPopperInstance();
if (inBrowser) {
window.addEventListener('animationend', updateLocation);
window.addEventListener('transitionend', updateLocation);
}
} else {
popper.setOptions(getPopoverOptions());
}
@ -222,10 +217,6 @@ export default defineComponent({
onBeforeUnmount(() => {
if (popper) {
if (inBrowser) {
window.removeEventListener('animationend', updateLocation);
window.removeEventListener('transitionend', updateLocation);
}
popper.destroy();
popper = null;
}