|
52 | 52 | showSearch |
53 | 53 | optionFilterProp="children" |
54 | 54 | :filterOption="(input, option) => { |
55 | | - return option.componentOptions.children[0].text.toLowerCase().indexOf(input.toLowerCase()) >= 0 |
| 55 | + return option.componentOptions.propsData.label.toLowerCase().indexOf(input.toLowerCase()) >= 0 |
56 | 56 | }" > |
57 | | - <a-select-option v-for="domain in domains" :key="domain.name" :value="domain.id"> |
58 | | - <resource-icon v-if="domain && domain.icon" :image="domain.icon.base64image" size="1x" style="margin-right: 5px"/> |
59 | | - <a-icon v-else type="block" style="margin-right: 5px" /> |
60 | | - {{ domain.path || domain.name || domain.description }} |
| 57 | + <a-select-option v-for="domain in domains" :key="domain.name" :value="domain.id" :label="domain.path || domain.name || domain.description"> |
| 58 | + <span> |
| 59 | + <resource-icon v-if="domain && domain.icon" :image="domain.icon.base64image" size="1x" style="margin-right: 5px"/> |
| 60 | + <a-icon v-else type="block" style="margin-right: 5px" /> |
| 61 | + {{ domain.path || domain.name || domain.description }} |
| 62 | + </span> |
61 | 63 | </a-select-option> |
62 | 64 | </a-select> |
63 | 65 | </div> |
|
71 | 73 | showSearch |
72 | 74 | optionFilterProp="children" |
73 | 75 | :filterOption="(input, option) => { |
74 | | - return option.componentOptions.children[0].text.toLowerCase().indexOf(input.toLowerCase()) >= 0 |
| 76 | + return option.componentOptions.propsData.value.toLowerCase().indexOf(input.toLowerCase()) >= 0 |
75 | 77 | }" > |
76 | 78 | <a-select-option v-for="account in accounts" :key="account.name" :value="account.name"> |
77 | | - <resource-icon v-if="account && account.icon" :image="account.icon.base64image" size="1x" style="margin-right: 5px"/> |
78 | | - <a-icon v-else type="team" style="margin-right: 5px" /> |
79 | | - {{ account.name }} |
| 79 | + <span> |
| 80 | + <resource-icon v-if="account && account.icon" :image="account.icon.base64image" size="1x" style="margin-right: 5px"/> |
| 81 | + <a-icon v-else type="team" style="margin-right: 5px" /> |
| 82 | + {{ account.name }} |
| 83 | + </span> |
80 | 84 | </a-select-option> |
81 | 85 | </a-select> |
82 | 86 | <span v-if="accountError" class="required">{{ $t('label.required') }}</span> |
|
92 | 96 | showSearch |
93 | 97 | optionFilterProp="children" |
94 | 98 | :filterOption="(input, option) => { |
95 | | - return option.componentOptions.children[0].text.toLowerCase().indexOf(input.toLowerCase()) >= 0 |
| 99 | + return option.componentOptions.propsData.label.toLowerCase().indexOf(input.toLowerCase()) >= 0 |
96 | 100 | }" > |
97 | | - <a-select-option v-for="project in projects" :key="project.id" :value="project.id"> |
98 | | - <resource-icon v-if="project && project.icon" :image="project.icon.base64image" size="1x" style="margin-right: 5px"/> |
99 | | - <a-icon v-else type="project" style="margin-right: 5px" /> |
100 | | - {{ project.name }} |
| 101 | + <a-select-option v-for="project in projects" :key="project.id" :value="project.id" :label="project.name"> |
| 102 | + <span> |
| 103 | + <resource-icon v-if="project && project.icon" :image="project.icon.base64image" size="1x" style="margin-right: 5px"/> |
| 104 | + <a-icon v-else type="project" style="margin-right: 5px" /> |
| 105 | + {{ project.name }} |
| 106 | + </span> |
101 | 107 | </a-select-option> |
102 | 108 | </a-select> |
103 | 109 | <span v-if="projectError" class="required">{{ $t('label.required') }}</span> |
|
111 | 117 | showSearch |
112 | 118 | optionFilterProp="children" |
113 | 119 | :filterOption="(input, option) => { |
114 | | - return option.componentOptions.children[0].text.toLowerCase().indexOf(input.toLowerCase()) >= 0 |
| 120 | + return option.componentOptions.propsData.label.toLowerCase().indexOf(input.toLowerCase()) >= 0 |
115 | 121 | }" > |
116 | | - <a-select-option v-for="network in networks" :key="network.id" :value="network.id"> |
117 | | - <resource-icon v-if="network && network.icon" :image="network.icon.base64image" size="1x" style="margin-right: 5px"/> |
118 | | - <a-icon v-else type="apartment" style="margin-right: 5px" /> |
119 | | - {{ network.name ? network.name : '-' }} |
| 122 | + <a-select-option v-for="network in networks" :key="network.id" :value="network.id" :label="network.name ? network.name : '-'"> |
| 123 | + <span> |
| 124 | + <resource-icon v-if="network && network.icon" :image="network.icon.base64image" size="1x" style="margin-right: 5px"/> |
| 125 | + <a-icon v-else type="apartment" style="margin-right: 5px" /> |
| 126 | + {{ network.name ? network.name : '-' }} |
| 127 | + </span> |
120 | 128 | </a-select-option> |
121 | 129 | </a-select> |
122 | 130 | </div> |
|
0 commit comments