🐛 修改组件 ID 时间戳的生成方式

This commit is contained in:
Xiaoleng123
2019-09-09 21:17:50 +08:00
parent b511e3d786
commit 856e43dc09
8 changed files with 31 additions and 23 deletions

View File

@ -68,11 +68,12 @@ export default {
name: 'DvBorderBox8',
mixins: [autoResize],
data () {
const timestamp = Date.now()
return {
ref: 'border-box-8',
path: `border-box-8-path-${(new Date()).getTime()}`,
gradient: `border-box-8-gradient-${(new Date()).getTime()}`,
mask: `border-box-8-mask-${(new Date()).getTime()}`
path: `border-box-8-path-${timestamp}`,
gradient: `border-box-8-gradient-${timestamp}`,
mask: `border-box-8-mask-${timestamp}`
}
},
computed: {