@nocobase/plugin-map 0.10.0-alpha.2 → 0.10.0-alpha.3
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
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
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.
|
|
5
|
+
"version": "0.10.0-alpha.3",
|
|
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.
|
|
13
|
-
"@nocobase/test": "0.10.0-alpha.
|
|
12
|
+
"@nocobase/server": "0.10.0-alpha.3",
|
|
13
|
+
"@nocobase/test": "0.10.0-alpha.3"
|
|
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": "
|
|
19
|
+
"gitHead": "1f0b27fc9ab2398cd41c308a6b01a986e025cd20"
|
|
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,
|
|
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
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
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
|
-
|
|
88
|
+
/>
|
|
88
89
|
</Card>
|
|
89
90
|
);
|
|
90
91
|
};
|