fix: xTable isList

pull/2/head
xingyu 2023-01-16 16:46:49 +08:00
parent 50e9d8274f
commit 5311f57977
1 changed files with 3 additions and 2 deletions

View File

@ -120,7 +120,7 @@ const getColumnsConfig = (options: XTableProps) => {
const getProxyConfig = (options: XTableProps) => {
const { getListApi, proxyConfig, data, isList } = options
if (proxyConfig || data) return
if (getListApi && isFunction(getListApi) && !isList) {
if (getListApi && isFunction(getListApi)) {
if (!isList) {
options.proxyConfig = {
seq: true, //
@ -194,7 +194,8 @@ const getProxyConfig = (options: XTableProps) => {
//
const getPageConfig = (options: XTableProps) => {
const { pagination, pagerConfig, treeConfig } = options
const { pagination, pagerConfig, treeConfig, isList } = options
if (isList) return
if (treeConfig) {
options.treeConfig = options.treeConfig
return