Every now and then I stumble upon the above term/idiom, used in a non-idiomatic sense regarding fruit or vegetables other than grapes.
e.g. 'tomatoes on the vine', 'blackberries on the vine', etc.

By context, I understand that this is used with fruit clusters still attached to the branch on which they had grown, much like the way grape clusters are often thought of.

Is it the case that any fruit which is still attached to the branch on which it had grown may be referred to as 'on the vine'?

(If yes...), Is there a known historic/etymological reason for the use of 'on the vine' and not 'on the branch/bough/sprig' (or 'on the plant')? Especially so for tomatoes, berries, cherries etc.?

Thanks in advance
Flipper