<template>
<a class="parentA uk-panel uk-panel-hover algo-progress" >
<slot name="content"></slot>
</a>
</template>
<script>
export default{
init() {
console.log("init 实例开始初始化:");
console.log($(".parentA").width());
},
created() {
console.log("created 实例创建后:");
console.log($(".parentA").width());
},
beforeCompile() {
console.log("beforeCompile:");
console.log($(".parentA").width());
},
compiled() {
console.log("compiled:");
console.log($(".parentA").width());
},
attached() {
console.log("attached 插入DOM成功:");
console.log($(".parentA").width());
},
ready() {
console.log("ready 一切准备好了:");
console.log($(".parentA").width());
},
beforeDestroy() {
console.log("beforeDestroy 销毁前:");
console.log($(".parentA").width());
},
destroyed() {
console.log("destroyed 已销毁:");
console.log($(".parentA").width());
},
detached() {
console.log("detached 删除DOM成功:");
console.log($(".parentA").width());
},
}
</script>

试下使用
this.$nextTick()