MCPcopy Create free account
hub / github.com/MankaiHuang/screen-visualization / initPage

Function initPage

public/iframe/lib/js/mixinsComponents.js:2651–2662  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2649 })
2650 },
2651 async initPage() {
2652 // 渲染数据
2653 this.templateList.sort((a, b) => {
2654 return a.property.shareApiId ? 1 : -1 // 排序 shareApiId 往后排
2655 })
2656 await this.$nextTick()
2657 this.onResize()
2658 // 初始化背景图片的属性
2659 if (this.basicConfig.blur) {
2660 this.$refs.background.style.filter = `blur(${this.basicConfig.blur}px)`
2661 }
2662 },
2663 },
2664 template: ` <div ref="body" style="width:100%;height:100%">
2665 <resize-observer @notify="onResize" />

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected