Commit ad861242 authored by hetech's avatar hetech Committed by GitHub

Doc: fix TimePicker page style (#14579)

Docs: fix TimePicker page style
parent 848e69d4
#! /bin/sh
set -ex
mkdir temp_web
npm run deploy:build
cd temp_web
......@@ -14,5 +15,5 @@ cp -rf ../../examples/element-ui/** $SUB_FOLDER/
cd ../..
# deploy domestic site
faas deploy alpha
faas deploy alpha -P element
rm -rf temp_web
\ No newline at end of file
This diff is collapsed.
.demo-block.demo-datetime-picker .source {
.demo-block.demo-datetime-picker .source > div {
padding: 0;
display: flex;
}
......
......@@ -299,14 +299,6 @@
bus.$on('user-theme-config-visible', val => {
this.isThemeConfigVisible = val;
});
window.addEventListener('hashchange', () => {
if (location.href.match(/#/g).length < 2) {
document.documentElement.scrollTop = document.body.scrollTop = 0;
this.renderAnchorHref();
} else {
this.goAnchor();
}
});
},
mounted() {
if (window.userThemeConfigVisible) {
......@@ -325,6 +317,17 @@
},
beforeDestroy() {
this.componentScrollBox.removeEventListener('scroll', this.throttledScrollHandler);
},
beforeRouteUpdate(to, from, next) {
next();
setTimeout(() => {
if (location.href.match(/#/g).length < 2) {
document.documentElement.scrollTop = document.body.scrollTop = 0;
this.renderAnchorHref();
} else {
this.goAnchor();
}
}, 100);
}
};
</script>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment