docs: 添加涉密文件自检工具实施计划

This commit is contained in:
2026-06-08 13:53:24 +08:00
commit 31161d9a5f
1838 changed files with 455407 additions and 0 deletions

View File

@@ -0,0 +1,31 @@
// ==============================================
// =============== 增强的Image组件 ===============
// ==============================================
import QtQuick 2.15
Image {
// 组件ID
readonly property string compID: this.toString()
// 传入路径,展示图片
function showPath(path) {
path = encodeURIComponent(path) // URL编码
source = `file:///${path}`
}
// 传入imgID展示图片
function showImgID(imgID) {
source = `image://pixmapprovider/${compID}/${imgID}`
}
// 清空展示,并释放缓存
function clear() {
source = `image://pixmapprovider/${compID}`
}
Component.onDestruction: {
clear()
}
}