iter(g141): 通知支持四角停靠
This commit is contained in:
@@ -2240,6 +2240,12 @@
|
||||
"n": "action",
|
||||
"t": "unknown",
|
||||
"d": "操作区内容(如按钮);缺省不渲染"
|
||||
},
|
||||
{
|
||||
"n": "placement",
|
||||
"t": "'top-right' | 'bottom-right' | 'top-left' | 'bottom-left'",
|
||||
"df": "bottom-right",
|
||||
"d": "停靠角落;每个角落独立堆叠(同角最多 3 条),右上与 toast 同侧,建议次要信息放左侧"
|
||||
}
|
||||
],
|
||||
"example": "const { close } = notification({ title: '导出完成', description: 'report.csv 已开始下载', variant: 'success', duration: 4000 }); // close() 手动关闭",
|
||||
@@ -2248,7 +2254,8 @@
|
||||
"缺省常驻(duration 0),需要自动消失就传毫秒数,如 duration: 4000",
|
||||
"返回 { el, close } 句柄:程序化关闭用 close(),需要自己挂交互就用 el",
|
||||
"action 放操作区(常见为按钮);variant 决定左侧条与圆点语义色",
|
||||
"与 toast 的分工:toast 右上角轻量瞬时,notification 右下角可长读、可操作"
|
||||
"与 toast 的分工:toast 右上角轻量瞬时,notification 右下角可长读、可操作",
|
||||
"停靠角落用 placement 调:四个角各自独立堆叠与节流,顶部角落新通知从屏幕边缘长出、旧的往下让"
|
||||
]
|
||||
},
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user