zhaolei
5 days ago 4a2e5b9a21940f11757be37d99f0944e240e908b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
@typeparam TItem
@inherits AssignModalBase<TItem>
 
<Modal @ref="Modal" Id="@Id" Title="@Title" Size="ModalSize.Large">
    <ModalBody>
        <form class="form-inline">
            <div class="row">
                @foreach(var item in Items)
                {
                    <div class="form-group col-md-3 col-sm-4 col-6">
                        @ItemTemplate?.Invoke(item)
                    </div>
                }
            </div>
        </form>
    </ModalBody>
    <ModalFooter>
        <button type="button" class="btn btn-secondary" data-dismiss="modal">
            <i class="fa fa-times"></i>
            <span>关闭</span>
        </button>
        <button type="button" class="btn btn-primary" @onclick="Save">
            <i class="fa fa-save"></i>
            <span>保存</span>
        </button>
    </ModalFooter>
</Modal>