mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
[improvement] List: unify text font-size (#4077)
This commit is contained in:
parent
19cd2ed38e
commit
4cba618792
@ -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();
|
||||
}
|
||||
},
|
||||
|
||||
|
@ -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
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user