mirror of
https://github.com/acepanel/panel.git
synced 2026-02-04 06:47:20 +08:00
feat(project): 运行用户支持自定义输入 (#1323)
* Initial plan * feat(project): 运行用户选择器支持自定义输入 为创建项目和编辑项目的"运行用户"选择器添加 filterable 和 tag 属性, 使用户可以在选择预设用户(www/root/nobody)的同时也能输入自定义用户名。 Co-authored-by: devhaozi <115467771+devhaozi@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: devhaozi <115467771+devhaozi@users.noreply.github.com>
This commit is contained in:
@@ -551,7 +551,9 @@ const modalTitle = computed(() => {
|
||||
{ label: 'root', value: 'root' },
|
||||
{ label: 'nobody', value: 'nobody' }
|
||||
]"
|
||||
:placeholder="$gettext('Select User')"
|
||||
:placeholder="$gettext('Select or enter user')"
|
||||
filterable
|
||||
tag
|
||||
@keydown.enter.prevent
|
||||
/>
|
||||
<template #feedback>
|
||||
|
||||
@@ -237,7 +237,9 @@ const handleSave = async () => {
|
||||
{ label: 'root', value: 'root' },
|
||||
{ label: 'nobody', value: 'nobody' }
|
||||
]"
|
||||
:placeholder="$gettext('Select User')"
|
||||
:placeholder="$gettext('Select or enter user')"
|
||||
filterable
|
||||
tag
|
||||
@keydown.enter.prevent
|
||||
/>
|
||||
</n-form-item>
|
||||
|
||||
Reference in New Issue
Block a user