- 二维码组件使用
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();
}
}