@nocobase/plugin-map 0.10.0-alpha.2 → 0.10.0-alpha.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -119,15 +119,17 @@ const Configuration = () => {
119
119
  return _react().default.createElement(_antd().Card, {
120
120
  bordered: true
121
121
  }, _react().default.createElement(_antd().Tabs, {
122
- type: "card"
123
- }, tabList.map(tab => {
124
- return _react().default.createElement(_antd().Tabs.TabPane, {
125
- key: tab.value,
126
- tab: compile(tab.label)
127
- }, _react().default.createElement(tab.component, {
128
- type: tab.value
129
- }));
130
- })));
122
+ type: "card",
123
+ items: tabList.map(tab => {
124
+ return {
125
+ key: tab.value,
126
+ label: compile(tab.label),
127
+ children: _react().default.createElement(tab.component, {
128
+ type: tab.value
129
+ })
130
+ };
131
+ })
132
+ }));
131
133
  };
132
134
  var _default = Configuration;
133
135
  exports.default = _default;
package/package.json CHANGED
@@ -2,19 +2,19 @@
2
2
  "name": "@nocobase/plugin-map",
3
3
  "displayName": "Map",
4
4
  "displayName.zh-CN": "地图",
5
- "version": "0.10.0-alpha.2",
5
+ "version": "0.10.0-alpha.4",
6
6
  "description": "Provide map fields and blocks",
7
7
  "description.zh-CN": "提供地图字段和区块",
8
8
  "license": "AGPL-3.0",
9
9
  "main": "./lib/index.js",
10
10
  "types": "./lib/index.d.ts",
11
11
  "devDependencies": {
12
- "@nocobase/server": "0.10.0-alpha.2",
13
- "@nocobase/test": "0.10.0-alpha.2"
12
+ "@nocobase/server": "0.10.0-alpha.4",
13
+ "@nocobase/test": "0.10.0-alpha.4"
14
14
  },
15
15
  "dependencies": {
16
16
  "@amap/amap-jsapi-loader": "^1.0.1",
17
17
  "@amap/amap-jsapi-types": "^0.0.10"
18
18
  },
19
- "gitHead": "85028ae1733fcbd46ecd5d291dacbdc175f7f073"
19
+ "gitHead": "62dacadb2a83d30cb36dda9074f2f3a072a37484"
20
20
  }
@@ -1,6 +1,6 @@
1
1
  import { useAPIClient, useCompile } from '@nocobase/client';
2
2
  import { useBoolean } from 'ahooks';
3
- import { Button, Card, Form, Input, message, Tabs } from 'antd';
3
+ import { Button, Card, Form, Input, Tabs, message } from 'antd';
4
4
  import React, { useEffect, useMemo } from 'react';
5
5
  import { MapTypes } from '../constants';
6
6
  import { MapConfigurationResourceKey, getSSKey, useMapConfiguration } from '../hooks';
@@ -76,15 +76,16 @@ const Configuration = () => {
76
76
  const compile = useCompile();
77
77
  return (
78
78
  <Card bordered>
79
- <Tabs type="card">
80
- {tabList.map((tab) => {
81
- return (
82
- <Tabs.TabPane key={tab.value} tab={compile(tab.label)}>
83
- <tab.component type={tab.value} />
84
- </Tabs.TabPane>
85
- );
79
+ <Tabs
80
+ type="card"
81
+ items={tabList.map((tab) => {
82
+ return {
83
+ key: tab.value,
84
+ label: compile(tab.label),
85
+ children: <tab.component type={tab.value} />,
86
+ };
86
87
  })}
87
- </Tabs>
88
+ />
88
89
  </Card>
89
90
  );
90
91
  };