cbvirtua 1.0.68 → 1.0.71
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/FireShot Capture 007 - /343/200/220async_await /345/216/237/347/220/206/343/200/221/344/271/213 Thunk /345/207/275/346/225/260/345/222/214 co /345/207/275/346/225/260/345/216/237/347/220/206/345/276/210/345/244/232/346/234/213/345/217/213/347/233/262/347/233/256/347/232/204/350/256/260/344/275/217/344/272/206 Promise + Gene - /346/216/230/351/207/221_ - [juejin.cn].7z +0 -0
- package/babel-plugin-async-lock-master.zip +0 -0
- package/package.json +1 -1
- package//346/226/260/345/273/272 /346/226/207/346/234/254/346/226/207/346/241/243 (3).txt" +77 -0
- package/FireShot Capture 007 - /343/200/220async_await /345/216/237/347/220/206/343/200/221/344/271/213 Thunk /345/207/275/346/225/260/345/222/214 co /345/207/275/346/225/260/345/216/237/347/220/206/345/276/210/345/244/232/346/234/213/345/217/213/347/233/262/347/233/256/347/232/204/350/256/260/344/275/217/344/272/206 Promise + Gene - /346/216/230/351/207/221_ - [juejin.cn].png +0 -0
- package/FireShot Capture 008 - Vue /351/241/271/347/233/256/347/272/277/344/270/212/346/233/264/346/226/260/346/227/240/351/234/200/345/274/272/345/210/266/345/210/267/346/226/260/347/232/204/346/226/271/346/241/210Vue /351/241/271/347/233/256/347/272/277/344/270/212/346/233/264/346/226/260/346/227/240/351/234/200/345/274/272/345/210/266/345/210/267/346/226/260/347/232/204/346/226/271/346/241/210 /345/234/250 Vue /351/241/271/347/233/256/344/270/255/357/274/214/345/275/223/345/217/221/345/270/203/346/226/260/347/211/210/346/234/254/345/220/216/357/274/214/347/224/250/346/210/267/345/217/257 - /346/216/230/351/207/221_ - [juejin.cn].png +0 -0
- package/FireShot Capture 009 - /345/276/256/344/277/241/345/260/217/347/250/213/345/272/217/351/230/273/346/255/242/346/210/226/347/233/221/345/220/254/346/211/213/346/234/272/350/277/224/345/233/236/344/270/212/344/270/200/344/270/252/347/225/214/351/235/242/357/274/214/350/277/224/345/233/236/344/270/212/351/241/265/345/211/215/345/274/271/345/207/272/350/257/242/351/227/256/345/257/271/350/257/235/346/241/206/345/276/256/344/277/241/345/260/217/347/250/213/345/272/217/351/230/273/346/255/242/346/210/226/347/233/221/345/220/254/346/211/213/346/234/272/350/277/224/345/233/236/344/270/212/344/270/200/344/270/252/347/225/214/351/235/242/357/274/214/345/256/236/347/216/260/346/213/246/346/210/252/351/241/265/351/235/242/350/277/224/345/233/236 - /346/216/230/351/207/221_ - [juejin.cn].png +0 -0
- package/FireShot Capture 010 - GitHub - KimKeepLearning_build-own-react - [github.com].png +0 -0
- package/FireShot Capture 012 - /345/217/210/350/247/201/345/275/251/347/245/250/344/272/213/344/273/266/357/274/210/345/220/253/347/261/263/345/223/210/346/270/270/347/256/227/346/263/225/345/217/230/345/275/242/351/242/230/357/274/211/345/217/210/350/247/201/345/275/251/347/245/250/344/272/213/344/273/266 1/346/234/21017/346/227/245/357/274/214/344/270/255/345/233/275/344/275/223/345/275/251/346/234/200/346/226/260/345/274/200/345/245/226/347/273/223/346/236/234/345/207/272/347/202/211/357/274/214/345/205/266/344/270/255/342/200/234/346/216/222/345/210/2273/342/200/235/345/222/214/342/200/234/346/216/222/345/210/2275/342/200/235/345/235/207/345/207/272/347/216/260/347/275/225 - /346/216/230/351/207/221_ - [juejin.cn].png +0 -0
- package/FireShot Capture 013 - /345/211/215/347/253/257/345/246/202/344/275/225/345/217/226/346/266/210/350/257/267/346/261/202/357/274/237AbortController/351/231/244/344/272/206/345/217/226/346/266/210/350/257/267/346/261/202/350/277/230/350/203/275/345/201/232/345/225/245/357/274/237/357/274/210/351/231/204/345/256/236/347/216/260/345/216/237/347/220/206/345/217/212/346/272/220/347/240/201/357/274/2111. /345/211/215/347/253/257/345/246/202/344/275/225/345/217/226/346/266/210/351/207/215/345/244/215/350/257/267/346/261/202/357/274/237 - /346/216/230/351/207/221_ - [juejin.cn].png +0 -0
- package/FireShot Capture 014 - JavaScript /344/270/255/345/246/202/344/275/225/345/217/226/346/266/210/350/257/267/346/261/202/346/234/254/347/257/207/345/270/246/346/235/245 XMLHttpRequest/343/200/201Fetch /345/222/214 axios /345/210/206/345/210/253/346/230/257/346/200/216/346/240/267/342/200/234/345/217/226/346/266/210 - /346/216/230/351/207/221_ - [juejin.cn].png +0 -0
- package/FireShot Capture 015 - /347/224/250canvas/347/224/273/344/272/206/344/270/252table/357/274/214/346/211/213/345/206/231/344/272/206/344/270/200/344/270/252/346/273/232/345/212/250/346/235/241/346/214/201/347/273/255/345/210/233/344/275/234/357/274/214/345/212/240/351/200/237/346/210/220/351/225/277/357/274/201/350/277/231/346/230/257/346/210/221/345/217/202/344/270/216/343/200/214/346/216/230/351/207/221/346/227/245/346/226/260/350/256/241/345/210/222 /302/267 10 /346/234/210/346/233/264/346/226/207/346/214/221/346/210/230/343/200/215/347/232/204/347/254/254 - /346/216/230/351/207/221_ - [juejin.cn].png +0 -0
- package/FireShot Capture 016 - /347/224/250canvas/347/224/273/344/272/206/344/270/252table/357/274/214/346/211/213/345/206/231/344/272/206/344/270/200/344/270/252/346/273/232/345/212/250/346/235/241/346/214/201/347/273/255/345/210/233/344/275/234/357/274/214/345/212/240/351/200/237/346/210/220/351/225/277/357/274/201/350/277/231/346/230/257/346/210/221/345/217/202/344/270/216/343/200/214/346/216/230/351/207/221/346/227/245/346/226/260/350/256/241/345/210/222 /302/267 10 /346/234/210/346/233/264/346/226/207/346/214/221/346/210/230/343/200/215/347/232/204/347/254/254 - /346/216/230/351/207/221_ - [juejin.cn].png +0 -0
- package/Identity_Page_South_Korea_New_Passport.jpg +0 -0
|
Binary file
|
package/package.json
CHANGED
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
function remove(arr, item) {
|
|
2
|
+
if (arr.length) {
|
|
3
|
+
var index = arr.indexOf(item)
|
|
4
|
+
if (index > -1) {
|
|
5
|
+
return arr.splice(index, 1)
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
function getFirstComponentChild(children) {
|
|
11
|
+
if (Array.isArray(children)) {
|
|
12
|
+
for (var i = 0; i < children.length; i++) {
|
|
13
|
+
var c = children[i]
|
|
14
|
+
if (isDef(c) && (isDef(c.componentOptions) || isAsyncPlaceholder(c))) {
|
|
15
|
+
return c
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
function isDef(v) {
|
|
21
|
+
return v !== undefined && v !== null
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
function isAsyncPlaceholder(node) {
|
|
25
|
+
return node.isComment && node.asyncFactory
|
|
26
|
+
}
|
|
27
|
+
var patternTypes = [String, RegExp, Array]
|
|
28
|
+
|
|
29
|
+
export default {
|
|
30
|
+
name: 'keep-alive',
|
|
31
|
+
abstract: true,
|
|
32
|
+
computed: {
|
|
33
|
+
// 这里算是一个伪代码
|
|
34
|
+
// 缓存的数组 [{ 'tab1/组件名称':comp, 'tab2/组件名称':comp },{ 'tab1/组件名称':comp, 'tab2/组件名称':comp }]
|
|
35
|
+
cacheArray() {
|
|
36
|
+
return this.$store.state.xxx.groupCache
|
|
37
|
+
},
|
|
38
|
+
// 当前选中的分组 例:0/1/2... 这里用来读取cache数组的index
|
|
39
|
+
groupIndex() {
|
|
40
|
+
return this.$store.state.xxx.groupIndex
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
|
|
44
|
+
created: function created() {
|
|
45
|
+
// 当前tab的缓存
|
|
46
|
+
const cache = this.cacheArray[this.groupIndex]
|
|
47
|
+
this.cache = cache || Object.create(null)
|
|
48
|
+
// TODO 页面初始化事件,后续可触发初始化事件
|
|
49
|
+
},
|
|
50
|
+
destroyed: function destroyed(to, form) {
|
|
51
|
+
// TODO 页面离开事件,后续可触发关闭事件
|
|
52
|
+
},
|
|
53
|
+
render: function render() {
|
|
54
|
+
var slot = this.$slots.default
|
|
55
|
+
var vnode = getFirstComponentChild(slot)
|
|
56
|
+
var componentOptions = vnode && vnode.componentOptions
|
|
57
|
+
// check pattern
|
|
58
|
+
var ref$1 = this
|
|
59
|
+
var cache = ref$1.cache
|
|
60
|
+
const key = `${this.groupIndex}/${componentOptions.Ctor.options.name}`
|
|
61
|
+
// 存在key直接读取
|
|
62
|
+
if (cache[key]) {
|
|
63
|
+
vnode.componentInstance = cache[key].componentInstance
|
|
64
|
+
} else {
|
|
65
|
+
// 没有进行缓存
|
|
66
|
+
cache[key] = vnode
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
// 写入缓存
|
|
70
|
+
this.$store.dispatch('setGroupCache', {
|
|
71
|
+
cache: this.cache
|
|
72
|
+
})
|
|
73
|
+
|
|
74
|
+
return vnode || (slot && slot[0])
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
|
|
Binary file
|
|
Binary file
|