vue 用typescript 写computed里的方法不生效?应该怎么写?
变量是这么声明的private activeIndex:number=0;
` top():string {
console.log('5555');
return - this.activeIndex * 35 + 'px';
}`
vue 用typescript 写computed里的方法不生效?应该怎么写?
变量是这么声明的private activeIndex:number=0;
` top():string {
console.log('5555');
return - this.activeIndex * 35 + 'px';
}`