mirror of https://github.com/ElemeFE/element
update footer-nav
parent
74abc40bf3
commit
c5c050a52a
|
@ -30,6 +30,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
& i {
|
& i {
|
||||||
|
transition: .3s;
|
||||||
color: #d9def1;
|
color: #d9def1;
|
||||||
vertical-align: baseline;
|
vertical-align: baseline;
|
||||||
}
|
}
|
||||||
|
@ -37,6 +38,7 @@
|
||||||
|
|
||||||
.footer-nav-link {
|
.footer-nav-link {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
transition: .3s;
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
color: #5e6d82;
|
color: #5e6d82;
|
||||||
|
@ -101,5 +103,5 @@
|
||||||
this.nav = this.nav.concat(navConfig[1].children);
|
this.nav = this.nav.concat(navConfig[1].children);
|
||||||
this.updateNav();
|
this.updateNav();
|
||||||
}
|
}
|
||||||
}
|
};
|
||||||
</script>
|
</script>
|
|
@ -183,29 +183,31 @@
|
||||||
this.valueChangeBySelected = false;
|
this.valueChangeBySelected = false;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (this.multiple && Array.isArray(val)) {
|
this.$nextTick(() => {
|
||||||
this.$nextTick(() => {
|
if (this.multiple && Array.isArray(val)) {
|
||||||
this.resetInputHeight();
|
this.$nextTick(() => {
|
||||||
});
|
this.resetInputHeight();
|
||||||
this.selectedInit = true;
|
});
|
||||||
this.selected = [];
|
this.selectedInit = true;
|
||||||
val.forEach(item => {
|
this.selected = [];
|
||||||
let option = this.options.filter(option => option.value === item)[0];
|
val.forEach(item => {
|
||||||
|
let option = this.options.filter(option => option.value === item)[0];
|
||||||
|
if (option) {
|
||||||
|
this.$emit('addOptionToValue', option);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
if (!this.multiple) {
|
||||||
|
let option = this.options.filter(option => option.value === val)[0];
|
||||||
if (option) {
|
if (option) {
|
||||||
this.$emit('addOptionToValue', option);
|
this.$emit('addOptionToValue', option);
|
||||||
|
} else {
|
||||||
|
this.selected = {};
|
||||||
|
this.selectedLabel = '';
|
||||||
}
|
}
|
||||||
});
|
|
||||||
}
|
|
||||||
if (!this.multiple) {
|
|
||||||
let option = this.options.filter(option => option.value === val)[0];
|
|
||||||
if (option) {
|
|
||||||
this.$emit('addOptionToValue', option);
|
|
||||||
} else {
|
|
||||||
this.selected = {};
|
|
||||||
this.selectedLabel = '';
|
|
||||||
}
|
}
|
||||||
}
|
this.resetHoverIndex();
|
||||||
this.resetHoverIndex();
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
selected(val) {
|
selected(val) {
|
||||||
|
|
Loading…
Reference in New Issue