Using the vue-cli project of the iview framework, how to get the width? of the tag tag

how to get the width? of the tag tag using the vue-cli project of the iview framework
my method is:
let valTagDOMWid = this.$refs.tab_ tagged [Val] .width | | this.$refs.tab_ tagged [Val] .offsetWidth | | this.$refs.tab_ tagged [Val] .clientWidth;
v-for loop dynamically generates multiple tag,this.$refs.tab_tag to get an array of DOM objects of tag.
val is the incoming index value that gets the width of the tag tag element of the specified index value.
the result is that valTagDOMWid is undefined. Why?

Apr.02,2021

generate vDom and then get Vue.nextTick ()

Menu