dsh-plan-steps 0.1.2 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/client.js +3 -5
- package/package.json +1 -1
package/client.js
CHANGED
|
@@ -301,10 +301,9 @@ window.__ModuleLoader__.load({
|
|
|
301
301
|
if (position.done === true) {
|
|
302
302
|
return h('div', { style: { padding: '6px 2px', fontSize: '13px', fontWeight: 600 } }, '计划 · 全部完成')
|
|
303
303
|
}
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
}))
|
|
304
|
+
// No bar here: one linear bar cannot show a two-level list truthfully — a
|
|
305
|
+
// phase can be current while completed sub-steps sit after it — so the row
|
|
306
|
+
// states the position and the panel, which knows every status, draws it.
|
|
308
307
|
return h(
|
|
309
308
|
'div',
|
|
310
309
|
{ style: { padding: '6px 2px', fontSize: '13px', display: 'flex', alignItems: 'center', gap: '10px' } },
|
|
@@ -314,7 +313,6 @@ window.__ModuleLoader__.load({
|
|
|
314
313
|
{ style: { minWidth: 0, overflow: 'hidden', textOverflow: 'ellipsis', whiteSpace: 'nowrap' } },
|
|
315
314
|
position.current,
|
|
316
315
|
),
|
|
317
|
-
h(Bar, { items, index: done + 1 }),
|
|
318
316
|
)
|
|
319
317
|
} catch (error) {
|
|
320
318
|
return h('div', { style: { padding: '6px 2px', fontSize: '12px', opacity: 0.7 } }, '完成一步')
|