What does ‘ding-bat’ mean?

( n ) A stupid or foolish person. Archie Bunker always called his wife a ding- bat.