mirror of https://github.com/ElemeFE/element
parent
848e69d472
commit
ad8612429a
|
@ -1,4 +1,5 @@
|
||||||
#! /bin/sh
|
#! /bin/sh
|
||||||
|
set -ex
|
||||||
mkdir temp_web
|
mkdir temp_web
|
||||||
npm run deploy:build
|
npm run deploy:build
|
||||||
cd temp_web
|
cd temp_web
|
||||||
|
@ -14,5 +15,5 @@ cp -rf ../../examples/element-ui/** $SUB_FOLDER/
|
||||||
cd ../..
|
cd ../..
|
||||||
|
|
||||||
# deploy domestic site
|
# deploy domestic site
|
||||||
faas deploy alpha
|
faas deploy alpha -P element
|
||||||
rm -rf temp_web
|
rm -rf temp_web
|
File diff suppressed because it is too large
Load Diff
|
@ -1,4 +1,4 @@
|
||||||
.demo-block.demo-datetime-picker .source {
|
.demo-block.demo-datetime-picker .source > div {
|
||||||
padding: 0;
|
padding: 0;
|
||||||
display: flex;
|
display: flex;
|
||||||
}
|
}
|
||||||
|
|
|
@ -299,14 +299,6 @@
|
||||||
bus.$on('user-theme-config-visible', val => {
|
bus.$on('user-theme-config-visible', val => {
|
||||||
this.isThemeConfigVisible = 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() {
|
mounted() {
|
||||||
if (window.userThemeConfigVisible) {
|
if (window.userThemeConfigVisible) {
|
||||||
|
@ -325,6 +317,17 @@
|
||||||
},
|
},
|
||||||
beforeDestroy() {
|
beforeDestroy() {
|
||||||
this.componentScrollBox.removeEventListener('scroll', this.throttledScrollHandler);
|
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>
|
</script>
|
||||||
|
|
Loading…
Reference in New Issue