Blame view

build/Table/Table.html 3.35 KB
3a3ecabe   Imshann   init
1
  <div class="ant-table-wrapper">
81f8a467   Imshann   调整组件前缀
2
3
4
5
6
7
      <div ng-class="'ant-table ant-table-'+state.size">
          <div class="ant-table-content">
              <table>
                  <thead class="ant-table-thead">
                      <tr>
                          <th ng-if="rowSelection" class="ant-table-selection-column">
3fe10ef1   Imshann   优化
8
                              <span ng-if="!rowSelection.hideSelectAll" class="ant-table-header-column">
81f8a467   Imshann   调整组件前缀
9
10
11
12
13
14
15
16
17
                                  <div>
                                      <span class="ant-table-column-title">
                                          <div class="ant-table-selection">
                                              <antd-checkbox on-change="handleSelectAll(event)" checked="{{state.isSelectAll}}" />
                                          </div>
                                      </span>
                                  </div>
                              </span>
                          </th>
3fe10ef1   Imshann   优化
18
                          <th ng-repeat="(key, column) in columns track by key" class="ant-table-cell ant-table-column-has-sorters" ng-style="{width:column.width}">
81f8a467   Imshann   调整组件前缀
19
20
21
22
23
24
25
                                  <span ng-if="!column.sorter">{{column.title}}</span>
                                  <div ng-if="column.sorter" class="ant-table-column-sorters" ng-click="handleSorter(column.key)">
                                      <span class="ant-table-column-title">{{column.title}}</span>
                                      <span class="ant-table-column-sorter ant-table-column-sorter-full">
                                          <span class="ant-table-column-sorter-inner">
                                              <antd-icon type="CaretUpOutlined" ng-class="'ant-table-column-sorter-up'+(state.sorter.field===column.key&&state.sorter.order==='ascend'?' active':'')"></antd-icon>
                                              <antd-icon type="CaretDownOutlined" ng-class="'ant-table-column-sorter-down'+(state.sorter.field===column.key&&state.sorter.order==='descend'?' active':'')"></antd-icon>
3a3ecabe   Imshann   init
26
                                          </span>
81f8a467   Imshann   调整组件前缀
27
28
                                      </span>
                                  </div>
dd962f77   Imshann   优化
29
                              </th>
81f8a467   Imshann   调整组件前缀
30
31
32
                      </tr>
                  </thead>
                  <tbody class="ant-table-tbody">
d6436262   Imshann   feat(Col): 新增offs...
33
                      <tr ng-repeat="(key, record) in state.dataSource track by record[state.rowKey]+'-'+$index" class="ant-table-row">
81f8a467   Imshann   调整组件前缀
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
                          <td ng-if="rowSelection" class="ant-table-selection-column">
                              <span>
                                  <antd-checkbox checked="{{record.checked}}" disabled="{{record.disabled}}" on-change="handleSelect(event,$index)" />
                              </span>
                          </td>
                              <td ng-repeat="(key, column) in columns track by key" data-key="{{column.key}}">
                                      <antd-slot content="{{record[column.key]}}" context="antdTable.getContext().$parent" />
                                  </td>
                      </tr>
                      <tr ng-if="state.dataSource.length===0" class="ant-table-placeholder">
                          <td colspan="{{rowSelection?columns.length+1:columns.length}}">
                              <antd-empty image="presented_image_simple"></antd-empty>
                          </td>
                      </tr>
                  </tbody>
              </table>
3a3ecabe   Imshann   init
50
          </div>
81f8a467   Imshann   调整组件前缀
51
      </div>
3a3ecabe   Imshann   init
52
  </div>