Skip to content

Commit

Permalink
optimize add select filter (apache#15378) (apache#15379)
Browse files Browse the repository at this point in the history
  • Loading branch information
ly109974 authored Dec 29, 2023
1 parent 1c1d4bd commit c3ffb13
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,7 @@ export default defineComponent({
options={this.workerGroups}
onUpdateValue={this.updateWorkerGroup}
v-model:value={this.startForm.workerGroup}
filterable
/>
</NFormItem>
<NFormItem
Expand All @@ -320,6 +321,7 @@ export default defineComponent({
<NSelect
options={this.tenantList}
v-model:value={this.startForm.tenantCode}
filterable
/>
</NFormItem>

Expand All @@ -333,6 +335,7 @@ export default defineComponent({
)}
v-model:value={this.startForm.environmentCode}
clearable
filterable
/>
</NFormItem>
{this.startForm.warningType !== 'NONE' && (
Expand All @@ -345,6 +348,7 @@ export default defineComponent({
placeholder={t('project.workflow.please_choose')}
v-model:value={this.startForm.warningGroupId}
clearable
filterable
/>
</NFormItem>
)}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -458,6 +458,7 @@ export default defineComponent({
options={this.workerGroups}
onUpdateValue={this.updateWorkerGroup}
v-model:value={this.timingForm.workerGroup}
filterable
/>
</NFormItem>
<NFormItem
Expand All @@ -467,6 +468,7 @@ export default defineComponent({
<NSelect
options={this.tenantList}
v-model:value={this.timingForm.tenantCode}
filterable
/>
</NFormItem>
<NFormItem
Expand All @@ -477,6 +479,7 @@ export default defineComponent({
options={this.environmentOptions}
v-model:value={this.timingForm.environmentCode}
clearable
filterable
/>
</NFormItem>
{this.timingForm.warningType !== 'NONE' && (
Expand All @@ -489,6 +492,7 @@ export default defineComponent({
placeholder={t('project.workflow.please_choose')}
v-model:value={this.timingForm.warningGroupId}
clearable
filterable
/>
</NFormItem>
)}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ const WorkerGroupModal = defineComponent({
<NSelect
class='select-worker-address'
multiple
filterable
placeholder={t(
'security.worker_group.worker_addresses_tips'
)}
Expand Down

0 comments on commit c3ffb13

Please sign in to comment.