aardio 文档

Shield 徽章

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();

常用属性

注意事项

Markdown 格式