mirror of
https://github.com/youzan/vant.git
synced 2025-10-20 10:44:59 +00:00
chore: prefer nullish coalescing (#7125)
This commit is contained in:
@@ -72,7 +72,7 @@ export default createComponent({
|
||||
},
|
||||
|
||||
data() {
|
||||
const defaultValue = isDef(this.value) ? this.value : this.defaultValue;
|
||||
const defaultValue = this.value ?? this.defaultValue;
|
||||
const value = this.format(defaultValue);
|
||||
|
||||
if (!equal(value, this.value)) {
|
||||
|
Reference in New Issue
Block a user