|
15 | 15 | Introduction="@Localizer["ButtonUploadIntro"]" |
16 | 16 | Name="Normal"> |
17 | 17 | <section ignore> |
18 | | - <div>@((MarkupString)Localizer["UploadPreCardStyleSSR"].Value)</div> |
19 | | - <div class="mb-3">@((MarkupString)Localizer["UploadPreCardStyleServerSide"].Value)</div> |
20 | | - <div>@((MarkupString)Localizer["UploadPreCardStyleWasm"].Value)</div> |
21 | | - <div>@((MarkupString)Localizer["UploadPreCardStyleWasmSide"].Value)</div> |
22 | | - <div>@((MarkupString)Localizer["UploadPreCardStyleLink", WebsiteOption.CurrentValue.VideoLibUrl].Value)</div> |
23 | | - <div>@((MarkupString)Localizer["UploadPreCardStyleValidation"].Value)</div> |
24 | | - <div class="mt-3">@((MarkupString)Localizer["UploadPreCardStyleTips1"].Value)</div> |
| 18 | + <div class="row g-3"> |
| 19 | + <div class="col-12 col-sm-6 col-xl-3"> |
| 20 | + <BootstrapInputGroup> |
| 21 | + <BootstrapInputGroupLabel DisplayText="IsDisabled"></BootstrapInputGroupLabel> |
| 22 | + <Switch @bind-Value="@_isDisabled"></Switch> |
| 23 | + </BootstrapInputGroup> |
| 24 | + </div> |
| 25 | + <div class="col-12 col-sm-6 col-xl-3"> |
| 26 | + <BootstrapInputGroup> |
| 27 | + <BootstrapInputGroupLabel DisplayText="IsMultiple"></BootstrapInputGroupLabel> |
| 28 | + <Switch @bind-Value="@_isMultiple"></Switch> |
| 29 | + </BootstrapInputGroup> |
| 30 | + </div> |
| 31 | + <div class="col-12 col-sm-6 col-xl-3"> |
| 32 | + <BootstrapInputGroup> |
| 33 | + <BootstrapInputGroupLabel DisplayText="IsDirectory"></BootstrapInputGroupLabel> |
| 34 | + <Switch @bind-Value="@_isDirectory"></Switch> |
| 35 | + </BootstrapInputGroup> |
| 36 | + </div> |
| 37 | + <div class="col-12 col-sm-6 col-xl-3"> |
| 38 | + <BootstrapInputGroup> |
| 39 | + <BootstrapInputGroupLabel DisplayText="IsUploadButtonAtFirst"></BootstrapInputGroupLabel> |
| 40 | + <Switch @bind-Value="@_isUploadButtonAtFirst"></Switch> |
| 41 | + </BootstrapInputGroup> |
| 42 | + </div> |
| 43 | + <div class="col-12 col-sm-6 col-xl-3"> |
| 44 | + <BootstrapInputGroup> |
| 45 | + <BootstrapInputGroupLabel DisplayText="ShowProgress"></BootstrapInputGroupLabel> |
| 46 | + <Switch @bind-Value="@_showProgress"></Switch> |
| 47 | + </BootstrapInputGroup> |
| 48 | + </div> |
| 49 | + <div class="col-12 col-sm-6 col-xl-3"> |
| 50 | + <BootstrapInputGroup> |
| 51 | + <BootstrapInputGroupLabel DisplayText="ShowDeleteButton"></BootstrapInputGroupLabel> |
| 52 | + <Switch @bind-Value="@_showDeleteButton"></Switch> |
| 53 | + </BootstrapInputGroup> |
| 54 | + </div> |
| 55 | + <div class="col-12 col-sm-6 col-xl-3"> |
| 56 | + <BootstrapInputGroup> |
| 57 | + <BootstrapInputGroupLabel DisplayText="ShowZoomButton"></BootstrapInputGroupLabel> |
| 58 | + <Switch @bind-Value="@_showZoomButton"></Switch> |
| 59 | + </BootstrapInputGroup> |
| 60 | + </div> |
| 61 | + <div class="col-12 col-sm-6 col-xl-3"> |
| 62 | + <BootstrapInputGroup> |
| 63 | + <BootstrapInputGroupLabel DisplayText="ShowDownloadButton"></BootstrapInputGroupLabel> |
| 64 | + <Switch @bind-Value="@_showDownloadButton"></Switch> |
| 65 | + </BootstrapInputGroup> |
| 66 | + </div> |
| 67 | + </div> |
25 | 68 | </section> |
26 | | - <CardUpload TValue="string" IsMultiple="true" ShowProgress="true" OnChange="@OnCardUpload"></CardUpload> |
| 69 | + <CardUpload TValue="string" IsMultiple="@_isMultiple" IsDirectory="@_isDirectory" |
| 70 | + IsDisabled="@_isDisabled" IsUploadButtonAtFirst="@_isUploadButtonAtFirst" |
| 71 | + ShowProgress="@_showProgress" ShowDeletedButton="@_showDeleteButton" |
| 72 | + ShowDownloadButton="@_showDownloadButton" ShowZoomButton="@_showZoomButton" OnChange="@OnCardUpload"></CardUpload> |
27 | 73 | </DemoBlock> |
28 | 74 |
|
29 | 75 | <DemoBlock Title="@Localizer["UploadFileIconTitle"]" |
|
0 commit comments