Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
monorepo
/
venus
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
1
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 4eb16d6d
authored
May 28, 2025
by
wyc001122
Committed by
GitHub
May 28, 2025
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix: fix table-title slot not work (#6295)
1 parent
53304514
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletions
packages/effects/plugins/src/vxe-table/use-vxe-grid.vue
packages/effects/plugins/src/vxe-table/use-vxe-grid.vue
View file @
4eb16d6
...
@@ -59,6 +59,7 @@ const FORM_SLOT_PREFIX = 'form-';
...
@@ -59,6 +59,7 @@ const FORM_SLOT_PREFIX = 'form-';
const
TOOLBAR_ACTIONS
=
'toolbar-actions'
;
const
TOOLBAR_ACTIONS
=
'toolbar-actions'
;
const
TOOLBAR_TOOLS
=
'toolbar-tools'
;
const
TOOLBAR_TOOLS
=
'toolbar-tools'
;
const
TABLE_TITLE
=
'table-title'
;
const
gridRef
=
useTemplateRef
<
VxeGridInstance
>
(
'gridRef'
);
const
gridRef
=
useTemplateRef
<
VxeGridInstance
>
(
'gridRef'
);
...
@@ -129,7 +130,7 @@ const [Form, formApi] = useTableForm({
...
@@ -129,7 +130,7 @@ const [Form, formApi] = useTableForm({
});
});
const
showTableTitle
=
computed
(()
=>
{
const
showTableTitle
=
computed
(()
=>
{
return
!!
slots
.
tableTitle
?.()
||
tableTitle
.
value
;
return
!!
slots
[
TABLE_TITLE
]
?.()
||
tableTitle
.
value
;
});
});
const
showToolbar
=
computed
(()
=>
{
const
showToolbar
=
computed
(()
=>
{
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment