mirror of https://github.com/ElemeFE/element
change mask icon source to github (#4063)
parent
d184e9c0b6
commit
44bc660b8b
|
@ -4,7 +4,7 @@
|
|||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
|
||||
<link rel="stylesheet" href="//at.alicdn.com/t/font_1473762766_7074292.css">
|
||||
<link rel='mask-icon' href="//fuss10.elemecdn.com/9/92/3a6e19a64a8ed173a4677ec0e412bsvg.svg" color="#20a0ff">
|
||||
<link rel='mask-icon' href="https://raw.githubusercontent.com/ElemeFE/element/dev/examples/assets/images/element-logo-small.svg" color="#20a0ff">
|
||||
<title>Element</title>
|
||||
</head>
|
||||
<body>
|
||||
|
|
|
@ -25,7 +25,6 @@
|
|||
|
||||
<script>
|
||||
import Popup from 'element-ui/src/utils/popup';
|
||||
import throttle from 'throttle-debounce/throttle';
|
||||
import emitter from 'element-ui/src/mixins/emitter';
|
||||
|
||||
export default {
|
||||
|
@ -98,12 +97,12 @@
|
|||
this.$emit('input', val);
|
||||
if (val) {
|
||||
this.$emit('open');
|
||||
this.$el.addEventListener('scroll', this.throttledUpdatePopper);
|
||||
this.$el.addEventListener('scroll', this.updatePopper);
|
||||
this.$nextTick(() => {
|
||||
this.$refs.dialog.scrollTop = 0;
|
||||
});
|
||||
} else {
|
||||
this.$el.removeEventListener('scroll', this.throttledUpdatePopper);
|
||||
this.$el.removeEventListener('scroll', this.updatePopper);
|
||||
this.$emit('close');
|
||||
}
|
||||
}
|
||||
|
@ -130,10 +129,6 @@
|
|||
}
|
||||
},
|
||||
|
||||
created() {
|
||||
this.throttledUpdatePopper = throttle(100, this.updatePopper);
|
||||
},
|
||||
|
||||
mounted() {
|
||||
if (this.value) {
|
||||
this.rendered = true;
|
||||
|
|
Loading…
Reference in New Issue