style: 表格列宽调整
This commit is contained in:
@@ -55,7 +55,7 @@ public class Device : PrimaryIdEntity
|
||||
/// 插件类型
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnDescription = "插件类型")]
|
||||
[AutoGenerateColumn(Visible = false, Filterable = false, Sortable = false)]
|
||||
[AutoGenerateColumn(Ignore = true)]
|
||||
public virtual PluginTypeEnum PluginType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
@@ -166,4 +166,4 @@ public class Device : PrimaryIdEntity
|
||||
[Newtonsoft.Json.JsonIgnore]
|
||||
[AutoGenerateColumn(Ignore = true)]
|
||||
public ModelValueValidateForm PluginPropertyModel { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -17,14 +17,14 @@
|
||||
OnSaveAsync="Save" OnDeleteAsync="Delete">
|
||||
|
||||
<TableColumns>
|
||||
<TableColumn @bind-Field="@context.PluginName" Width="50" Align="Alignment.Center">
|
||||
<TableColumn @bind-Field="@context.PluginName" Align="Alignment.Center">
|
||||
<Template Context="pluginName">
|
||||
@PluginServiceUtil.GetFileNameAndTypeName(pluginName?.Value).TypeName
|
||||
</Template>
|
||||
|
||||
</TableColumn>
|
||||
|
||||
<TableColumn @bind-Field="@context.ChannelId" Width="50" Align="Alignment.Center">
|
||||
<TableColumn @bind-Field="@context.ChannelId" Align="Alignment.Center">
|
||||
<Template Context="channelId">
|
||||
@{
|
||||
ChannelDict.TryGetValue(channelId.Value, out var channel);
|
||||
@@ -59,4 +59,4 @@
|
||||
|
||||
@code {
|
||||
AdminTable<Device> table;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
|
||||
<TableColumns>
|
||||
|
||||
<TableColumn @bind-Field="@context.DeviceId" Width="50" Align="Alignment.Center">
|
||||
<TableColumn @bind-Field="@context.DeviceId" Align="Alignment.Center">
|
||||
<Template Context="deviceId">
|
||||
@{
|
||||
CollectDeviceDict.TryGetValue(deviceId.Value!.Value, out var device);
|
||||
@@ -66,4 +66,4 @@
|
||||
|
||||
@code {
|
||||
AdminTable<Variable> table;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user