<!--
|
* @Description: 右侧属性配置面板
|
-->
|
<template>
|
<div>
|
<Tabs v-model:activeKey="routeConfig.activeKey" :tabBarStyle="{ margin: 0 }">
|
<TabPane :key="1" tab="工艺路线">
|
<FormProps />
|
</TabPane>
|
<TabPane :key="2" tab="工序">
|
<FormItemProps />
|
</TabPane>
|
<TabPane :key="3" tab="行为">
|
<ActionItemProps />
|
</TabPane>
|
<!-- <TabPane :key="4" tab="组件">
|
<slot v-if="slotProps" :name="slotProps.component + 'Props'"></slot>
|
<ComponentProps v-else />
|
</TabPane> -->
|
</Tabs>
|
</div>
|
</template>
|
<script lang="ts" setup>
|
import FormProps from './FormProps.vue';
|
import FormItemProps from './FormItemProps.vue';
|
import ActionItemProps from './ActionItemProps.vue';
|
import { useRouteDesignState } from '../hooks/useRouteDesignState';
|
import { TabPane, Tabs } from 'ant-design-vue';
|
|
type ChangeTabKey = 1 | 2;
|
export interface IPropsPanel {
|
changeTab: (key: ChangeTabKey) => void;
|
}
|
const { routeConfig } = useRouteDesignState();
|
</script>
|
|
<style lang="less" scoped>
|
@import url('../styles/variable.less');
|
|
:deep(.ant-tabs) {
|
box-sizing: border-box;
|
|
form {
|
position: absolute;
|
width: 100%;
|
height: calc(100% - 50px);
|
margin-right: 10px;
|
overflow-x: hidden;
|
overflow-y: auto;
|
}
|
|
.hint-box {
|
margin-top: 200px;
|
}
|
|
.ant-form-item,
|
.ant-slider-with-marks {
|
margin-right: 20px;
|
margin-bottom: 0;
|
margin-left: 10px;
|
}
|
|
.ant-form-item {
|
// width: 100%;
|
margin-bottom: 0;
|
|
.ant-form-item-label {
|
line-height: 2;
|
vertical-align: text-top;
|
}
|
}
|
|
.ant-input-number {
|
width: 100%;
|
}
|
}
|
</style>
|