feat: 1.升级vue版本,2.修正tabs在剩余2个时动画不正确的问题
This commit is contained in:
1 parent
d16f11c263
commit
b2c5c7cc6d
4 files changed
+101
-76
No files matched your search
@@ -373,6 +373,7 @@ $tag-width: 170px;
|
||||
}
|
||||
|
||||
.tab-leave-active {
|
||||
opacity: 0;
|
||||
transition: none;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
const idList: number[] = [];
|
||||
const idList: number[] = []
|
||||
|
||||
/**
|
||||
* 生成一个唯一的id
|
||||
@@ -6,11 +6,11 @@ const idList: number[] = [];
|
||||
* @returns {number}
|
||||
*/
|
||||
export default function generateId(length?: number) {
|
||||
length || (length = 16);
|
||||
let id;
|
||||
while (!id || idList.includes(id)) {
|
||||
id = Math.ceil(Math.random() * 10 ** 16);
|
||||
}
|
||||
idList.push(id)
|
||||
length || (length = 16)
|
||||
let id
|
||||
while (!id || idList.includes(id)) {
|
||||
id = Math.ceil(Math.random() * 10 ** 16)
|
||||
}
|
||||
idList.push(id)
|
||||
return id
|
||||
}
|
||||
Reference in new issue
Block a user