|
@@ -325,8 +325,9 @@ watch(() => props.startTabIndex, () => {
|
|
|
tabCurrentIndex.value = props.startTabIndex;
|
|
|
}
|
|
|
});
|
|
|
-watch(() => props.dropDownNames, () => {
|
|
|
+watch(() => props.dropDownNames.length, () => {
|
|
|
loadDropDownValues();
|
|
|
+ listLoader.loadData(undefined, true);
|
|
|
});
|
|
|
|
|
|
defineExpose({
|
|
@@ -336,15 +337,13 @@ defineExpose({
|
|
|
})
|
|
|
|
|
|
onMounted(() => {
|
|
|
- setTimeout(() => {
|
|
|
- if (props.startTabIndex)
|
|
|
- tabCurrentIndex.value = props.startTabIndex;
|
|
|
- if (props.title)
|
|
|
- uni.setNavigationBarTitle({ title: props.title, })
|
|
|
- loadDropDownValues();
|
|
|
- if (props.loadMounted)
|
|
|
- listLoader.loadData(undefined, true);
|
|
|
- }, 300);
|
|
|
+ if (props.startTabIndex)
|
|
|
+ tabCurrentIndex.value = props.startTabIndex;
|
|
|
+ if (props.title)
|
|
|
+ uni.setNavigationBarTitle({ title: props.title, })
|
|
|
+ loadDropDownValues();
|
|
|
+ if (props.loadMounted)
|
|
|
+ listLoader.loadData(undefined, true);
|
|
|
});
|
|
|
</script>
|
|
|
|