Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/jaweii/Vue-Layout
/ guid
Function
guid
src/utils/guid.js:1–8 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
1
var
guid =
function
() {
//获取随机ID,组件拖到预览视图后就会被设置个ID
2
function
s4() {
3
return
Math.floor((1 + Math.random()) * 0x10000)
4
.toString(16)
5
.substring(1);
6
}
7
return
s4() + s4() +
'-'
+ s4()
8
}
9
export
default guid
Callers
15
addComponent
Function · 0.85
addComponent
Function · 0.85
addComponent
Function · 0.85
addAvatarComponent
Function · 0.85
handle
Function · 0.85
addColumn
Function · 0.85
handle
Function · 0.85
addComponent
Function · 0.85
addAvatarComponent
Function · 0.85
addComponent
Function · 0.85
addComponent
Function · 0.85
addComponent
Function · 0.85
Calls
1
s4
Function · 0.85
Tested by
no test coverage detected