File tree Expand file tree Collapse file tree 3 files changed +12
-3
lines changed
components/Descriptions/src
layout/components/TagsView/src Expand file tree Collapse file tree 3 files changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -109,7 +109,13 @@ const toggleClick = () => {
109
109
v-bind =" getBindItemValue(item)"
110
110
>
111
111
<template #label >
112
- <slot :name =" `${item.field}-label`" :label =" item.label" >{{ item.label }}</slot >
112
+ <slot
113
+ :name =" `${item.field}-label`"
114
+ :row =" {
115
+ label: item.label
116
+ }"
117
+ >{{ item.label }}</slot
118
+ >
113
119
</template >
114
120
115
121
<template #default >
Original file line number Diff line number Diff line change @@ -282,7 +282,7 @@ const filterDescriptionsSchema = (crudSchema: CrudSchema[]): DescriptionsSchema[
282
282
283
283
// 给options添加国际化
284
284
const filterOptions = ( options : Recordable , labelField ?: string ) => {
285
- return options . map ( ( v : Recordable ) => {
285
+ return options ? .map ( ( v : Recordable ) => {
286
286
if ( labelField ) {
287
287
v [ 'labelField' ] = t ( v . labelField )
288
288
} else {
Original file line number Diff line number Diff line change @@ -409,7 +409,10 @@ watch(
409
409
{
410
410
icon: 'ep:close',
411
411
label: t('common.closeTab'),
412
- disabled: !!visitedViews?.length && selectedTag?.meta.affix
412
+ disabled: !!visitedViews?.length && selectedTag?.meta.affix,
413
+ command: () => {
414
+ closeSelectedTag(selectedTag!)
415
+ }
413
416
},
414
417
{
415
418
divided: true,
You can’t perform that action at this time.
0 commit comments