AntdUI.Shield 用于展示左右两段式徽章,例如版本号、构建状态、许可证、运行环境等。
import win.ui;
import dotNet.AntdUI;
/*DSG{{*/
var winform = win.form(text="AntdUI Shield";right=360;bottom=180)
winform.add(host={cls="custom";left=50;top=50;right=300;bottom=90;z=1})
/*}}*/
var shield = AntdUI.Shield(winform.host);
shield.Label = "build";
shield.Text = "passing";
shield.Radius = 6;
shield.Bold = true;
winform.show();
win.loopMessage();
Label:左侧标签文本。Text:右侧内容文本。LabelColor、Color:左右区域背景色。LabelFore、Fore:左右区域文字色。Logo、LogoSvg:左侧图标。Radius:圆角。Bold:加粗显示。AutoSize:按内容自动尺寸。Shield 常作为状态标签使用,尺寸通常较小。Tag/Button。