|
19 | 19 | <div> |
20 | 20 | <a-card class="mobile-breadcrumb"> |
21 | 21 | <a-row> |
22 | | - <a-col :span="24" style="display: inline-flex"> |
23 | | - <breadcrumb style="margin-right: 10px; width: 100%" @refresh="fetchData()" /> |
24 | | - <span |
25 | | - v-for="(action, actionIndex) in actions" |
26 | | - :key="actionIndex"> |
27 | | - <a-tooltip |
28 | | - placement="bottom" |
29 | | - v-if="action.api in $store.getters.apis && |
30 | | - ((!dataView && (action.listView || action.groupAction && selectedRowKeys.length > 0)) || |
31 | | - (dataView && action.dataView && ('show' in action ? action.show(resource) : true)))"> |
| 22 | + <a-col :span="14"> |
| 23 | + <breadcrumb style="padding-top: 6px" /> |
| 24 | + </a-col> |
| 25 | + <a-col :span="10"> |
| 26 | + <span style="float: right"> |
| 27 | + <a-tooltip placement="bottom"> |
32 | 28 | <template slot="title"> |
33 | | - {{ $t(action.label) }} |
| 29 | + {{ "Refresh" }} |
34 | 30 | </template> |
35 | 31 | <a-button |
36 | | - :icon="action.icon" |
37 | | - :type="action.icon === 'delete' ? 'danger' : (action.icon === 'plus' ? 'primary' : 'default')" |
| 32 | + :loading="loading" |
38 | 33 | shape="circle" |
| 34 | + type="dashed" |
| 35 | + icon="reload" |
39 | 36 | style="margin-right: 5px" |
40 | | - @click="execAction(action)" |
41 | | - > |
42 | | - </a-button> |
| 37 | + @click="fetchData()" /> |
43 | 38 | </a-tooltip> |
44 | | - </span> |
45 | | - |
46 | | - <a-input-search |
47 | | - style="width: 100%; padding-left: 5px" |
48 | | - size="default" |
49 | | - placeholder="Search" |
50 | | - v-model="searchQuery" |
51 | | - v-if="!dataView" |
52 | | - @search="onSearch" |
53 | | - > |
54 | | - </a-input-search> |
55 | | - </a-col> |
56 | | - <a-col :span="24" v-if="false"> |
57 | | - <span |
58 | | - v-for="(action, actionIndex) in actions" |
59 | | - :key="actionIndex"> |
60 | 39 | <a-tooltip |
61 | | - placement="bottom" |
62 | | - v-if="action.api in $store.getters.apis && |
63 | | - ((!dataView && (action.listView || action.groupAction && selectedRowKeys.length > 0)) || |
64 | | - (dataView && action.dataView && ('show' in action ? action.show(resource) : true)))"> |
| 40 | + v-for="(action, actionIndex) in actions" |
| 41 | + :key="actionIndex" |
| 42 | + placement="bottom"> |
65 | 43 | <template slot="title"> |
66 | 44 | {{ $t(action.label) }} |
67 | 45 | </template> |
68 | 46 | <a-button |
| 47 | + v-if="action.api in $store.getters.apis && |
| 48 | + ((!dataView && (action.listView || action.groupAction && selectedRowKeys.length > 0)) || |
| 49 | + (dataView && action.dataView && ('show' in action ? action.show(resource) : true)))" |
69 | 50 | :icon="action.icon" |
70 | 51 | :type="action.icon === 'delete' ? 'danger' : (action.icon === 'plus' ? 'primary' : 'default')" |
71 | 52 | shape="circle" |
|
74 | 55 | > |
75 | 56 | </a-button> |
76 | 57 | </a-tooltip> |
| 58 | + <a-input-search |
| 59 | + style="width: unset" |
| 60 | + placeholder="Search" |
| 61 | + v-model="searchQuery" |
| 62 | + v-if="!dataView" |
| 63 | + @search="onSearch" /> |
77 | 64 | </span> |
78 | 65 | </a-col> |
79 | 66 | </a-row> |
|
0 commit comments