refactor: 重构多插件 UI 与配置结构,新增抖音/新美大平台核对插件
- 新增 XQ0042 抖音平台核对、XQ0041 新美大平台核对插件的 UI 源码与打包脚本 - 重构续签电子签、服务岗转正不通过电子签等插件的版本与配置 - 删除旧版考勤异常处理、微盟数据导出等冗余插件文件 - 修复出勤积分更新插件的 OPM 推送判断逻辑 - 优化壳子插件页面的 iframe 滚动条样式
This commit is contained in:
@@ -176,9 +176,28 @@ async function confirmEnqueue() {
|
||||
}
|
||||
}
|
||||
|
||||
// 插件界面是独立文档(同源 iframe),壳子的 ::-webkit-scrollbar 只作用于壳子自身文档、
|
||||
// 不会穿透到 iframe 里,插件内容区滚动条会退回 Chromium 原生粗灰条 → 载入时注入同款细滚动条。
|
||||
const FRAME_SCROLLBAR_CSS = `
|
||||
::-webkit-scrollbar { width: 8px; height: 8px; }
|
||||
::-webkit-scrollbar-thumb { background: #C6CBD6; border-radius: 4px; border: 2px solid transparent; background-clip: content-box; }
|
||||
::-webkit-scrollbar-thumb:hover { background: #A3AAB8; }
|
||||
::-webkit-scrollbar-track, ::-webkit-scrollbar-corner { background: transparent; }
|
||||
`
|
||||
|
||||
function injectFrameScrollbarStyle(doc) {
|
||||
if (!doc || doc.getElementById('__shell-scrollbar')) return
|
||||
const st = doc.createElement('style')
|
||||
st.id = '__shell-scrollbar'
|
||||
st.textContent = FRAME_SCROLLBAR_CSS
|
||||
;(doc.head || doc.documentElement).appendChild(st)
|
||||
}
|
||||
|
||||
function onUiLoad() {
|
||||
const w = uiFrame.value && uiFrame.value.contentWindow
|
||||
if (!w || w.__queueConfirmPatched) return
|
||||
if (!w) return
|
||||
injectFrameScrollbarStyle(w.document)
|
||||
if (w.__queueConfirmPatched) return
|
||||
w.__queueConfirmPatched = true
|
||||
const origFetch = w.fetch ? w.fetch.bind(w) : null
|
||||
if (!origFetch) return
|
||||
|
||||
Reference in New Issue
Block a user