-<Switch OnColor="Color.Primary" OnText="开启" OffText="关闭" >Primary</Switch> -<Switch OnColor="Color.Secondary" OnText="开启" OffText="关闭" >Secondary</Switch> -<Switch OnColor="Color.Success" OnText="开启" OffText="关闭" >Success</Switch> -<Switch OnColor="Color.Danger" OnText="开启" OffText="关闭" >Danger</Switch> -<Switch OnColor="Color.Warning" OnText="开启" OffText="关闭" >Warning</Switch> -<Switch OnColor="Color.Info" OnText="开启" OffText="关闭" >Info</Switch> -<Switch OnColor="Color.Dark" OnText="开启" OffText="关闭" >Dark</Switch> -<Switch OnColor="Color.Light" OnText="开启" OffText="关闭" >Light</Switch> -<Switch OnColor="Color.Link" OnText="开启" OffText="关闭" >Link</Switch> -+<Switch Value="true" OnColor="Color.Primary" OnText="开启" OffText="关闭">Primary</Switch> +<Switch Value="true" OnColor="Color.Secondary" OnText="开启" OffText="关闭">Secondary</Switch> +<Switch Value="true" OnColor="Color.Success" OnText="开启" OffText="关闭">Success</Switch> +<Switch Value="true" OnColor="Color.Danger" OnText="开启" OffText="关闭">Danger</Switch> +<Switch Value="true" OnColor="Color.Warning" OnText="开启" OffText="关闭">Warning</Switch> +<Switch Value="true" OnColor="Color.Info" OnText="开启" OffText="关闭">Info</Switch> +<Switch Value="true" OnColor="Color.Dark" OnText="开启" OffText="关闭">Dark</Switch> +
@@ -58,40 +52,58 @@ <Switch OnColor="Color.Dark" OnText="开启" OffText="关闭" >Dark</Switch> <Switch OnColor="Color.Light" OnText="开启" OffText="关闭" >Light</Switch> <Switch OnColor="Color.Link" OnText="开启" OffText="关闭" >Link</Switch> -+
-<Switch OnColor="Color.Primary" IsDisabled="true" OnText="开启" OffText="关闭" >primary</Switch> - -+<Switch OnColor="Color.Primary" IsDisabled="true" OnText="开启" OffText="关闭">primary</Switch> +
-<Switch OnColor="Color.Danger" OffColor="Color.Success" OnText="开启" OffText="关闭" >开关颜色</Switch> +<Switch Value="true" OnColor="Color.Primary">primary</Switch> ++
+<Switch Color="Color.Success" @@bind-Value="@@BindValue"">primary</Switch> +