af-mobile-client-vue3 1.1.13 → 1.1.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -199,6 +199,9 @@ watch(() => props.modelValue, (newVal) => {
|
|
|
199
199
|
}
|
|
200
200
|
else {
|
|
201
201
|
localValue.value = newVal !== undefined ? newVal : getDefaultValue()
|
|
202
|
+
if (attr.type === 'rangePicker') {
|
|
203
|
+
pickerValue.value = newVal !== undefined ? `${newVal[0]} ~ ${newVal[1]}` : ''
|
|
204
|
+
}
|
|
202
205
|
}
|
|
203
206
|
})
|
|
204
207
|
|
|
@@ -388,6 +391,7 @@ const formatDate = date => `${date.getFullYear()}-${date.getMonth() + 1}-${date.
|
|
|
388
391
|
|
|
389
392
|
function onCalendarConfirm(values) {
|
|
390
393
|
localValue.value = [formatDate(values[0]), formatDate(values[1])]
|
|
394
|
+
pickerValue.value = `${formatDate(values[0])} ~ ${formatDate(values[1])}`
|
|
391
395
|
calendarShow.value = false
|
|
392
396
|
}
|
|
393
397
|
|
|
@@ -446,7 +450,7 @@ function init() {
|
|
|
446
450
|
}
|
|
447
451
|
if (attr.queryFormDefault) {
|
|
448
452
|
// console.log(querySelectDefaultValue.value)
|
|
449
|
-
querySelectDefaultValue.value.push(attr.queryFormDefault)
|
|
453
|
+
querySelectDefaultValue.value.push(...attr.queryFormDefault)
|
|
450
454
|
// querySelectDefaultValue.value = attr.queryFormDefault
|
|
451
455
|
}
|
|
452
456
|
}
|
|
@@ -806,7 +810,7 @@ function handleAddressConfirm(location) {
|
|
|
806
810
|
<!-- 日历选择-查询 -->
|
|
807
811
|
<VanField
|
|
808
812
|
v-if="attr.type === 'rangePicker' && mode === '查询' && showItem"
|
|
809
|
-
v-model="(
|
|
813
|
+
v-model="(pickerValue as string | number)"
|
|
810
814
|
is-link
|
|
811
815
|
readonly
|
|
812
816
|
name="rangePicker"
|