问题详情
117 | 清风大侠
如何使用二维码组件
  • 二维码组件使用js创建,配置参考qrcode.js
@inherits BaseComponent

<KQRCode Option="@Option" />

@code {
    private object Option => new { Text = 'http://test', Width = 200, Height = 200 };
}
class Test : BaseComponent
{
    protected override void BuildRender(RenderTreeBuilder builder)
    {
        builder.Component<KQRCode>()
               .Set(c => c.Option, new { Text = 'http://test', Width = 200, Height = 200 })
               .Build();
    }
}
回复列表

暂无数据