feat(out): 无本地源时显示「下载中…」骨架(方案 A),有缩略图时仍走 LOD(方案 B)
This commit is contained in:
1 parent
d36bbe3b91
commit
301669a148
3 files changed
+11
-1
No files matched your search
@@ -892,6 +892,11 @@
|
||||
// 但不改 data.result —— 失败时旧图原样保留,不会出现「图没了」。
|
||||
const ingView = (typeof ingestView === 'function') ? ingestView() : null
|
||||
const ingSt = (ingView && typeof ingView.get === 'function') ? ingView.get(r.url) : null
|
||||
// 2026-12-02(方案 A):这一格还没有任何本地源时,垫一层骨架 + 「下载中…」文字,
|
||||
// 避免大图区域纯空白(有缩略图时 LOD 已经会显示模糊可辨的画面,不需要这层)。
|
||||
const phEl = (!_localSrc && !(ingSt && ingSt.localUrl))
|
||||
? el('div', { className: 'iwb-out-cell-ph', key: 'ph' }, el('span', { className: 'iwb-out-cell-ph-txt' }, '下载中…'))
|
||||
: null
|
||||
const imgEl = el('img', { key: 'out-img-' + cur + '-' + String(r.url || '').slice(-48), className: 'iwb-out-cell-img', decoding: 'async', fetchPriority: 'low', referrerPolicy: 'no-referrer', src: (function () {
|
||||
var need = Math.max(120, Math.min(360, (node && node.w ? node.w - 40 : 240)))
|
||||
var pick = (typeof wImgSrcForNode === 'function') ? wImgSrcForNode : wDisplayThumbOf
|
||||
@@ -919,6 +924,7 @@
|
||||
? el('span', { className: 'iwb-out-cell-flag', key: 'ing-flag' }, ingStatus === 'queued' ? '排队中' : '下载中')
|
||||
: null)
|
||||
return el('div', { key: String(r.url || '') + '|' + ri, className: 'iwb-out-cell' },
|
||||
phEl,
|
||||
ingBadge,
|
||||
DlOv ? el(DlOv, { key: 'ov', onDownload: doDownload, icon: I('download'), label: '下载' }, imgEl) : imgEl,
|
||||
el('div', { className: 'iwb-out-cell-meta' }, (r.width || '?') + '×' + (r.height || '?')),
|
||||
|
||||
Reference in new issue
Block a user