aardio 文档

PageHeader 页头

AntdUI.PageHeader 用于页面顶部标题区,可展示标题、副标题、描述、返回按钮、窗口按钮和分割线。

最小示例

import win.ui;
import dotNet.AntdUI;
/*DSG{{*/
var winform = win.form(text="AntdUI PageHeader";right=720;bottom=300)
winform.add(host={cls="custom";left=0;top=0;right=720;bottom=300;db=1;dl=1;dr=1;dt=1;z=1})
/*}}*/

var header = AntdUI.PageHeader(winform.host);
header.Text = "订单详情";
header.SubText = "#20260704001";
header.Description = "展示订单基础信息、物流状态和操作入口。";
header.ShowBack = true;
header.ShowIcon = false;
header.DividerShow = true;
header.UseTitleFont = true;
header.UseTextBold = true;

header.BackClick = function(sender,e){
    winform.msgbox("返回上一页");
}

winform.show();
win.loopMessage();

常用属性与事件

成员 说明
Text 标题。
SubText 副标题。
Description 描述文本。
Loading 加载状态。
ShowBack 是否显示返回按钮。
ShowIcon / Icon / IconSvg 图标显示与图标内容。
UseTitleFont / UseTextBold 标题字体与加粗。
UseLeftMargin 是否使用左边距。
DividerShow / DividerColor / DividerThickness 底部分割线。
ShowButton 是否显示标题栏按钮。
MaximizeBox / MinimizeBox / FullBox 标题栏按钮控制。
DragMove 是否允许拖动窗口。
BackClick 返回按钮点击事件。

注意事项

Markdown 格式