|
@@ -1,9 +1,10 @@
|
|
|
import { observer } from '@formily/react';
|
|
import { observer } from '@formily/react';
|
|
|
import { Button, Space, Tabs } from 'antd';
|
|
import { Button, Space, Tabs } from 'antd';
|
|
|
-import Property from '@/pages/device/Product/Detail/Metadata/Property';
|
|
|
|
|
-import Function from '@/pages/device/Product/Detail/Metadata/Function';
|
|
|
|
|
-import Event from '@/pages/device/Product/Detail/Metadata/Event';
|
|
|
|
|
-import Tag from '@/pages/device/Product/Detail/Metadata/Tag';
|
|
|
|
|
|
|
+// import Property from '@/pages/device/Product/Detail/Metadata/Property';
|
|
|
|
|
+// import Function from '@/pages/device/Product/Detail/Metadata/Function';
|
|
|
|
|
+// import Event from '@/pages/device/Product/Detail/Metadata/Event';
|
|
|
|
|
+// import Tag from '@/pages/device/Product/Detail/Metadata/Tag';
|
|
|
|
|
+import BaseMetadata from '@/pages/device/Product/Detail/Metadata/Base';
|
|
|
|
|
|
|
|
const Metadata = observer(() => {
|
|
const Metadata = observer(() => {
|
|
|
return (
|
|
return (
|
|
@@ -16,16 +17,16 @@ const Metadata = observer(() => {
|
|
|
}
|
|
}
|
|
|
>
|
|
>
|
|
|
<Tabs.TabPane tab="属性定义" key="property">
|
|
<Tabs.TabPane tab="属性定义" key="property">
|
|
|
- <Property />
|
|
|
|
|
|
|
+ <BaseMetadata type={'property'} />
|
|
|
</Tabs.TabPane>
|
|
</Tabs.TabPane>
|
|
|
- <Tabs.TabPane tab="功能定义" key="func">
|
|
|
|
|
- <Function />
|
|
|
|
|
|
|
+ <Tabs.TabPane tab="功能定义" key="functions">
|
|
|
|
|
+ <BaseMetadata type={'function'} />
|
|
|
</Tabs.TabPane>
|
|
</Tabs.TabPane>
|
|
|
- <Tabs.TabPane tab="事件定义" key="event">
|
|
|
|
|
- <Event />
|
|
|
|
|
|
|
+ <Tabs.TabPane tab="事件定义" key="events">
|
|
|
|
|
+ <BaseMetadata type={'events'} />
|
|
|
</Tabs.TabPane>
|
|
</Tabs.TabPane>
|
|
|
<Tabs.TabPane tab="标签定义" key="tag">
|
|
<Tabs.TabPane tab="标签定义" key="tag">
|
|
|
- <Tag />
|
|
|
|
|
|
|
+ <BaseMetadata type={'tag'} />
|
|
|
</Tabs.TabPane>
|
|
</Tabs.TabPane>
|
|
|
</Tabs>
|
|
</Tabs>
|
|
|
);
|
|
);
|