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 5b079471
authored
Nov 13, 2024
by
Vben
Committed by
vben
Nov 13, 2024
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix: resolve issue with grid reload parameter not working (#4888)
1 parent
8cc73cf5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
27 additions
and
15 deletions
package.json
packages/effects/plugins/src/vxe-table/extends.ts
pnpm-lock.yaml
pnpm-workspace.yaml
package.json
View file @
5b07947
...
...
@@ -99,7 +99,7 @@
"node"
:
">=20.10.0"
,
"pnpm"
:
">=9.12.0"
},
"packageManager"
:
"pnpm@9.1
2.3
"
,
"packageManager"
:
"pnpm@9.1
3.0
"
,
"pnpm"
:
{
"peerDependencyRules"
:
{
"allowedVersions"
:
{
...
...
packages/effects/plugins/src/vxe-table/extends.ts
View file @
5b07947
import
type
{
Recordable
}
from
'@vben/types'
;
import
type
{
VxeGridProps
,
VxeUIExport
}
from
'vxe-table'
;
import
type
{
VxeGridApi
}
from
'./api'
;
...
...
@@ -7,7 +8,7 @@ import { formatDate, formatDateTime, isFunction } from '@vben/utils';
export
function
extendProxyOptions
(
api
:
VxeGridApi
,
options
:
VxeGridProps
,
getFormValues
:
()
=>
Record
<
string
,
any
>
,
getFormValues
:
()
=>
Record
able
<
any
>
,
)
{
[
'query'
,
...
...
@@ -25,17 +26,28 @@ function extendProxyOption(
key
:
string
,
api
:
VxeGridApi
,
options
:
VxeGridProps
,
getFormValues
:
()
=>
Record
<
string
,
any
>
,
getFormValues
:
()
=>
Record
able
<
any
>
,
)
{
const
{
proxyConfig
}
=
options
;
const
configFn
=
(
proxyConfig
?.
ajax
as
any
)?.[
key
];
const
configFn
=
(
proxyConfig
?.
ajax
as
Recordable
<
any
>
)?.[
key
];
if
(
!
isFunction
(
configFn
))
{
return
options
;
}
const
wrapperFn
=
async
(
params
:
any
,
_formValues
:
any
,
...
args
:
any
[])
=>
{
const
wrapperFn
=
async
(
params
:
Recordable
<
any
>
,
customValues
:
Recordable
<
any
>
,
...
args
:
Recordable
<
any
>
[]
)
=>
{
const
formValues
=
getFormValues
();
const
data
=
await
configFn
(
params
,
formValues
,
...
args
);
const
data
=
await
configFn
(
params
,
{
...
customValues
,
...
formValues
,
},
...
args
,
);
return
data
;
};
api
.
setState
({
...
...
pnpm-lock.yaml
View file @
5b07947
This diff is collapsed.
Click to expand it.
pnpm-workspace.yaml
View file @
5b07947
...
...
@@ -23,7 +23,7 @@ catalog:
'
@ctrl/tinycolor'
:
^4.1.0
'
@eslint/js'
:
^9.14.0
'
@faker-js/faker'
:
^9.2.0
'
@iconify/json'
:
^2.2.27
0
'
@iconify/json'
:
^2.2.27
1
'
@iconify/tailwind'
:
^1.1.3
'
@iconify/vue'
:
^4.1.2
'
@intlify/core-base'
:
^10.0.4
...
...
@@ -37,7 +37,7 @@ catalog:
'
@tailwindcss/nesting'
:
0.0.0-insiders.565cd3e
'
@tailwindcss/typography'
:
^0.5.15
'
@tanstack/vue-query'
:
^5.59.20
'
@tanstack/vue-store'
:
^0.5.
6
'
@tanstack/vue-store'
:
^0.5.
7
'
@types/archiver'
:
^6.0.3
'
@types/eslint'
:
^9.6.1
'
@types/html-minifier-terser'
:
^7.0.2
...
...
@@ -53,7 +53,7 @@ catalog:
'
@typescript-eslint/parser'
:
^8.14.0
'
@vee-validate/zod'
:
^4.14.7
'
@vite-pwa/vitepress'
:
^0.5.3
'
@vitejs/plugin-vue'
:
^5.
1.5
'
@vitejs/plugin-vue'
:
^5.
2.0
'
@vitejs/plugin-vue-jsx'
:
^4.1.0
'
@vue/reactivity'
:
^3.5.12
'
@vue/shared'
:
^3.5.12
...
...
@@ -89,7 +89,7 @@ catalog:
eslint-plugin-command
:
^0.2.6
eslint-plugin-eslint-comments
:
^3.2.0
eslint-plugin-import-x
:
^4.4.2
eslint-plugin-jsdoc
:
^50.
4.3
eslint-plugin-jsdoc
:
^50.
5.0
eslint-plugin-jsonc
:
^2.18.1
eslint-plugin-n
:
^17.13.1
eslint-plugin-no-only-tests
:
^3.3.0
...
...
@@ -105,7 +105,7 @@ catalog:
get-port
:
^7.1.0
globals
:
^15.12.0
h3
:
^1.13.0
happy-dom
:
^15.11.
2
happy-dom
:
^15.11.
4
html-minifier-terser
:
^7.2.0
husky
:
^9.1.6
is-ci
:
^3.0.1
...
...
@@ -137,7 +137,7 @@ catalog:
radix-vue
:
^1.9.9
resolve.exports
:
^2.0.2
rimraf
:
^6.0.1
rollup
:
^4.2
5
.0
rollup
:
^4.2
6
.0
rollup-plugin-visualizer
:
^5.12.0
sass
:
1.80.6
sortablejs
:
^1.15.3
...
...
@@ -164,7 +164,7 @@ catalog:
vite-plugin-dts
:
4.2.1
vite-plugin-html
:
^3.2.2
vite-plugin-lazy-import
:
^1.0.7
vite-plugin-pwa
:
^0.2
0.5
vite-plugin-pwa
:
^0.2
1.0
vite-plugin-vue-devtools
:
^7.6.4
vitepress
:
^1.5.0
vitepress-plugin-group-icons
:
^1.3.0
...
...
@@ -174,8 +174,8 @@ catalog:
vue-i18n
:
^10.0.4
vue-router
:
^4.4.5
vue-tsc
:
^2.1.10
vxe-pc-ui
:
^4.2.5
1
vxe-table
:
^4.8.1
0
vxe-pc-ui
:
^4.2.5
3
vxe-table
:
^4.8.1
4
watermark-js-plus
:
^1.5.7
zod
:
^3.23.8
zod-defaults
:
^0.1.3
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