Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
phsl
/
admin
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
24f2c49e
authored
May 09, 2024
by
puhui999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
form-create: 完善 select 远程搜索
parent
9cde4885
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
16 deletions
+17
-16
src/components/FormCreate/src/config/selectRule.ts
+17
-16
No files found.
src/components/FormCreate/src/config/selectRule.ts
View file @
24f2c49e
...
@@ -32,6 +32,11 @@ const selectRule = [
...
@@ -32,6 +32,11 @@ const selectRule = [
}
}
]
]
},
},
{
type
:
'switch'
,
field
:
'filterable'
,
title
:
'是否可搜索'
},
{
type
:
'switch'
,
field
:
'multiple'
,
title
:
'是否多选'
},
{
type
:
'switch'
,
field
:
'multiple'
,
title
:
'是否多选'
},
{
{
type
:
'switch'
,
type
:
'switch'
,
...
@@ -56,28 +61,12 @@ const selectRule = [
...
@@ -56,28 +61,12 @@ const selectRule = [
title
:
'autocomplete 属性'
title
:
'autocomplete 属性'
},
},
{
type
:
'input'
,
field
:
'placeholder'
,
title
:
'占位符'
},
{
type
:
'input'
,
field
:
'placeholder'
,
title
:
'占位符'
},
{
type
:
'switch'
,
field
:
'filterable'
,
title
:
'是否可搜索'
},
{
type
:
'switch'
,
field
:
'allowCreate'
,
title
:
'是否允许用户创建新条目'
},
{
type
:
'switch'
,
field
:
'allowCreate'
,
title
:
'是否允许用户创建新条目'
},
{
{
type
:
'input'
,
type
:
'input'
,
field
:
'noMatchText'
,
field
:
'noMatchText'
,
title
:
'搜索条件无匹配时显示的文字'
title
:
'搜索条件无匹配时显示的文字'
},
},
{
type
:
'switch'
,
field
:
'remote'
,
title
:
'其中的选项是否从服务器远程加载'
},
{
type
:
'input'
,
field
:
'remoteField'
,
title
:
'请求参数'
,
info
:
'远程请求时请求携带的参数名称,如:name'
},
{
type
:
'input'
,
field
:
'noDataText'
,
title
:
'选项为空时显示的文字'
},
{
type
:
'input'
,
field
:
'noDataText'
,
title
:
'选项为空时显示的文字'
},
{
{
type
:
'switch'
,
type
:
'switch'
,
...
@@ -174,6 +163,18 @@ const apiSelectRule = [
...
@@ -174,6 +163,18 @@ const apiSelectRule = [
return data.list.map(item=> ({label: item.nickname,value: item.id}))
return data.list.map(item=> ({label: item.nickname,value: item.id}))
}`
}`
}
}
},
{
type
:
'switch'
,
field
:
'remote'
,
info
:
'是否可搜索'
,
title
:
'其中的选项是否从服务器远程加载'
},
{
type
:
'input'
,
field
:
'remoteField'
,
title
:
'请求参数'
,
info
:
'远程请求时请求携带的参数名称,如:name'
}
}
]
]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment