This commit is contained in:
1 parent
dd294a75cd
commit
01253fceea
2 files changed
+10
-2
No files matched your search
+1
-1
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "@iwb-plugin/album",
|
||||
"private": true,
|
||||
"version": "1.0.3",
|
||||
"version": "1.0.4",
|
||||
"description": "相册:一个节点装多张本地图(只引用不复制),宫格自适应分页,一图一任务 / 批量两种模式批量生图",
|
||||
"ibwPlugin": {
|
||||
"id": "album",
|
||||
|
||||
+9
-1
@@ -543,7 +543,7 @@
|
||||
global.IWBPluginHost.register({
|
||||
id: 'album',
|
||||
name: '相册',
|
||||
version: '1.0.3',
|
||||
version: '1.0.4',
|
||||
apiVersion: 1,
|
||||
capabilities: ['nodeTypes', 'images', 'files'],
|
||||
settings: {
|
||||
@@ -559,6 +559,14 @@
|
||||
ports: { in: true, out: true },
|
||||
defaults: { outKind: 'images', items: [], albumMode: 'per-image', density: 'S', page: 0, onlyPage: false, keepOriginal: ctx.settings.get('keepOriginal') !== false },
|
||||
render: function (node, props, host) {
|
||||
// 自愈(2026-11-26):旧版本/兜底路径建出来的节点可能没有 outKind,
|
||||
// 那样连线规则会把相册当普通插件节点(只能连中继)。这里补写一次默认值。
|
||||
try {
|
||||
const d0 = node && node.data
|
||||
if (d0 && d0.outKind !== 'images') {
|
||||
props.onUpdate(node.id, { outKind: 'images', items: Array.isArray(d0.items) ? d0.items : [] })
|
||||
}
|
||||
} catch (e) { /* ignore */ }
|
||||
let st = STATE.get(host)
|
||||
if (!st || st.nodeId !== node.id) { st = buildShell(ctx, node, props, host); STATE.set(host, st) }
|
||||
try { sync(ctx, st, node, props) } catch (e) {
|
||||
|
||||
Reference in new issue
Block a user