[improvement] List: unify text font-size (#4077)

This commit is contained in:
neverland 2019-08-09 14:03:19 +08:00 committed by GitHub
parent 19cd2ed38e
commit 4cba618792
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
10 changed files with 52 additions and 50 deletions

View File

@ -44,22 +44,18 @@ export default createComponent({
mounted() {
if (this.immediateCheck) {
this.$nextTick(this.check);
this.check();
}
},
watch: {
loading() {
this.$nextTick(this.check);
},
finished() {
this.$nextTick(this.check);
}
loading: 'check',
finished: 'check'
},
methods: {
check() {
this.$nextTick(() => {
if (this.loading || this.finished || this.error) {
return;
}
@ -96,11 +92,12 @@ export default createComponent({
this.$emit('input', true);
this.$emit('load');
}
});
},
clickErrorText() {
this.$emit('update:error', false);
this.$nextTick(this.check);
this.check();
}
},

View File

@ -327,7 +327,7 @@
// List
@list-icon-margin-right: 5px;
@list-text-color: @gray-dark;
@list-text-font-size: @font-size-sm;
@list-text-font-size: @font-size-md;
@list-text-line-height: 50px;
// Loading

View File

@ -148,7 +148,12 @@ export default createComponent({
this.$nextTick(() => {
const { titles } = this.$refs;
if (!titles || !titles[this.currentIndex] || this.type !== 'line' || isHidden(this.$el)) {
if (
!titles ||
!titles[this.currentIndex] ||
this.type !== 'line' ||
isHidden(this.$el)
) {
return;
}