row[rowKey]}
@@ -480,9 +530,9 @@ export const MangoProTable = forwardRef<
>
{tableData?.already ? (
<>
- {tableData?.rows?.length > 0 ? (
+ {tableData?.list?.length > 0 ? (
- {tableData?.rows?.map((i) => {
+ {tableData?.list?.map((i) => {
return renderTableItem && renderTableItem(i)
})}
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 2deb7d5..0eef4fe 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -9,6 +9,7 @@ importers:
'@mango-scripts/dev-scripts': ^2.0.5
'@mango-scripts/esp-config': ^2.0.3
'@types/lodash-es': ^4.17.11
+ '@types/mockjs': ^1.0.10
'@types/node': ^18.15.5
'@types/react': ^18.2.31
'@types/react-dom': ^18.2.14
@@ -20,6 +21,7 @@ importers:
father: ^4.3.7
husky: ^8.0.3
lint-staged: ^14.0.1
+ mockjs: ^1.1.0
prettier: ^3.0.3
react: ^18.2.0
react-dom: ^18.2.0
@@ -28,12 +30,15 @@ importers:
tsx: ^3.14.0
typescript: ^5.2.2
vitest: ^0.34.6
+ dependencies:
+ mockjs: 1.1.0
devDependencies:
'@commitlint/cli': 17.8.1
'@commitlint/config-conventional': 17.8.1
'@mango-scripts/dev-scripts': 2.0.5
'@mango-scripts/esp-config': 2.0.3_hylujpixtsfmb27j3wn3k2bena
'@types/lodash-es': 4.17.11
+ '@types/mockjs': 1.0.10
'@types/node': 18.18.6
'@types/react': 18.2.31
'@types/react-dom': 18.2.14
@@ -5118,6 +5123,10 @@ packages:
resolution: {integrity: sha512-Kfe/D3hxHTusnPNRbycJE1N77WHDsdS4AjUYIzlDzhDrS47NrwuL3YW4VITxwR7KCVpzwgy4Rbj829KSSQmwXQ==}
dev: true
+ /@types/mockjs/1.0.10:
+ resolution: {integrity: sha512-SXgrhajHG7boLv6oU93CcmdDm0HYRiceuz6b+7z+/2lCJPTWDv0V5YiwFHT2ejE4bQqgSXQiVPQYPWv7LGsK1g==}
+ dev: true
+
/@types/ms/0.7.33:
resolution: {integrity: sha512-AuHIyzR5Hea7ij0P9q7vx7xu4z0C28ucwjAZC0ja7JhINyCnOw8/DnvAPQQ9TfOlCtZAmCERKQX9+o1mgQhuOQ==}
dev: true
@@ -8312,7 +8321,6 @@ packages:
/commander/11.1.0:
resolution: {integrity: sha512-yPVavfyCcRhmorC7rWlkHn15b4wDVgVmBA7kV4QVBsF7kv/9TKJAbAXVTxvTnwP8HHKjRCJDClKbciiYS7p0DQ==}
engines: {node: '>=16'}
- dev: true
/commander/2.20.3:
resolution: {integrity: sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==}
@@ -15973,6 +15981,13 @@ packages:
ufo: 1.3.1
dev: true
+ /mockjs/1.1.0:
+ resolution: {integrity: sha512-eQsKcWzIaZzEZ07NuEyO4Nw65g0hdWAyurVol1IPl1gahRwY+svqzfgfey8U8dahLwG44d6/RwEzuK52rSa/JQ==}
+ hasBin: true
+ dependencies:
+ commander: 11.1.0
+ dev: false
+
/move-concurrently/1.0.1:
resolution: {integrity: sha512-hdrFxZOycD/g6A6SoI2bB5NA/5NEqD0569+S47WZhPvm46sD50ZHdYaFmnua5lndde9rCHGjmfK7Z8BuCt/PcQ==}
dependencies: