fix: bugs
This commit is contained in:
parent
65e3652534
commit
004d214a11
@ -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>
|
||||||
|
@ -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 {
|
||||||
|
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user