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 9ad4f96e
authored
Oct 05, 2024
by
Vben
Committed by
GitHub
Oct 05, 2024
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix: the vxeUI global configuration does not take effect (#4574)
1 parent
47d162e6
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 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 @
9ad4f96
...
@@ -63,6 +63,8 @@ const options = computed(() => {
...
@@ -63,6 +63,8 @@ const options = computed(() => {
const
slotActions
=
slots
[
'toolbar-actions'
]?.();
const
slotActions
=
slots
[
'toolbar-actions'
]?.();
const
slotTools
=
slots
[
'toolbar-tools'
]?.();
const
slotTools
=
slots
[
'toolbar-tools'
]?.();
const
globalGridConfig
=
VxeUI
?.
getConfig
()?.
grid
??
{};
const
forceUseToolbarOptions
=
showToolbar
.
value
const
forceUseToolbarOptions
=
showToolbar
.
value
?
{
?
{
toolbarConfig
:
{
toolbarConfig
:
{
...
@@ -79,6 +81,7 @@ const options = computed(() => {
...
@@ -79,6 +81,7 @@ const options = computed(() => {
{},
{},
forceUseToolbarOptions
,
forceUseToolbarOptions
,
toRaw
(
gridOptions
.
value
),
toRaw
(
gridOptions
.
value
),
globalGridConfig
,
),
),
);
);
...
@@ -205,7 +208,7 @@ async function init() {
...
@@ -205,7 +208,7 @@ async function init() {
}
}
// form 由 vben-form代替,所以不适配formConfig,这里给出警告
// form 由 vben-form代替,所以不适配formConfig,这里给出警告
const
formConfig
=
options
.
value
.
formConfig
;
const
formConfig
=
gridOptions
.
value
?
.
formConfig
;
if
(
formConfig
)
{
if
(
formConfig
)
{
console
.
warn
(
console
.
warn
(
'[Vben Vxe Table]: The formConfig in the grid is not supported, please use the `formOptions` props'
,
'[Vben Vxe Table]: The formConfig in the grid is not supported, please use the `formOptions` props'
,
...
...
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