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
004d214a
authored
Mar 07, 2023
by
xingyuv
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: bugs
parent
65e36525
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
3 deletions
+12
-3
src/components/Descriptions/src/Descriptions.vue
+7
-1
src/hooks/web/useCrudSchemas.ts
+1
-1
src/layout/components/TagsView/src/TagsView.vue
+4
-1
No files found.
src/components/Descriptions/src/Descriptions.vue
View file @
004d214a
...
@@ -109,7 +109,13 @@ const toggleClick = () => {
...
@@ -109,7 +109,13 @@ const toggleClick = () => {
v-bind=
"getBindItemValue(item)"
v-bind=
"getBindItemValue(item)"
>
>
<
template
#
label
>
<
template
#
label
>
<slot
:name=
"`$
{item.field}-label`" :label="item.label">
{{
item
.
label
}}
</slot>
<slot
:name=
"`$
{item.field}-label`"
:row="{
label: item.label
}"
>
{{
item
.
label
}}
</slot
>
</
template
>
</
template
>
<
template
#
default
>
<
template
#
default
>
...
...
src/hooks/web/useCrudSchemas.ts
View file @
004d214a
...
@@ -282,7 +282,7 @@ const filterDescriptionsSchema = (crudSchema: CrudSchema[]): DescriptionsSchema[
...
@@ -282,7 +282,7 @@ const filterDescriptionsSchema = (crudSchema: CrudSchema[]): DescriptionsSchema[
// 给options添加国际化
// 给options添加国际化
const
filterOptions
=
(
options
:
Recordable
,
labelField
?:
string
)
=>
{
const
filterOptions
=
(
options
:
Recordable
,
labelField
?:
string
)
=>
{
return
options
.
map
((
v
:
Recordable
)
=>
{
return
options
?
.
map
((
v
:
Recordable
)
=>
{
if
(
labelField
)
{
if
(
labelField
)
{
v
[
'labelField'
]
=
t
(
v
.
labelField
)
v
[
'labelField'
]
=
t
(
v
.
labelField
)
}
else
{
}
else
{
...
...
src/layout/components/TagsView/src/TagsView.vue
View file @
004d214a
...
@@ -409,7 +409,10 @@ watch(
...
@@ -409,7 +409,10 @@ watch(
{
{
icon: 'ep:close',
icon: 'ep:close',
label: t('common.closeTab'),
label: t('common.closeTab'),
disabled: !!visitedViews?.length
&&
selectedTag?.meta.affix
disabled: !!visitedViews?.length
&&
selectedTag?.meta.affix,
command: () => {
closeSelectedTag(selectedTag!)
}
},
},
{
{
divided: true,
divided: true,
...
...
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