|
@@ -29,7 +29,16 @@
|
|
<span>基本线宽 b</span>
|
|
<span>基本线宽 b</span>
|
|
<span>单位: mm</span>
|
|
<span>单位: mm</span>
|
|
</p>
|
|
</p>
|
|
- <ui-input type="select" :options="lineWidthOption" v-model="data.lineWidth" width="100%" />
|
|
|
|
|
|
+ <div class="select-boxs">
|
|
|
|
+ <span
|
|
|
|
+ v-for="option in lineWidthOption"
|
|
|
|
+ :key="option.value"
|
|
|
|
+ :class="{active: option.value === data.lineWidth}"
|
|
|
|
+ @click="data.lineWidth = option.value"
|
|
|
|
+ >
|
|
|
|
+ {{option.label}}
|
|
|
|
+ </span>
|
|
|
|
+ </div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
@@ -42,6 +51,7 @@ import {ref} from "vue";
|
|
import UiIcon from "@/components/base/components/icon/index.vue";
|
|
import UiIcon from "@/components/base/components/icon/index.vue";
|
|
import {trackMeasureWidth, trackMode} from "@/views/scene/trackMeasureWidth";
|
|
import {trackMeasureWidth, trackMode} from "@/views/scene/trackMeasureWidth";
|
|
import { drawRef } from '@/hook/useGraphic'
|
|
import { drawRef } from '@/hook/useGraphic'
|
|
|
|
+import UiButton from "@/components/base/components/button/index.vue";
|
|
|
|
|
|
const props = defineProps<{ close?: () => void }>()
|
|
const props = defineProps<{ close?: () => void }>()
|
|
|
|
|
|
@@ -55,6 +65,8 @@ const lineWidthOption = [
|
|
{label: 0.35, value: 0.35},
|
|
{label: 0.35, value: 0.35},
|
|
]
|
|
]
|
|
|
|
|
|
|
|
+console.log(data)
|
|
|
|
+
|
|
const setSceneSingleRoadWidth = async () => {
|
|
const setSceneSingleRoadWidth = async () => {
|
|
data.value.singleRoadWidth = await trackMeasureWidth()
|
|
data.value.singleRoadWidth = await trackMeasureWidth()
|
|
}
|
|
}
|
|
@@ -76,13 +88,31 @@ const handler = (label) => {
|
|
width: 440px;
|
|
width: 440px;
|
|
|
|
|
|
> div {
|
|
> div {
|
|
- margin-bottom: 20px;
|
|
|
|
|
|
+ margin-bottom: 24px;
|
|
|
|
|
|
p {
|
|
p {
|
|
- margin-bottom: 6px;
|
|
|
|
|
|
+ margin-bottom: 14px;
|
|
display: flex;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
justify-content: space-between;
|
|
- font-size: 12px;
|
|
|
|
|
|
+ font-size: 14px;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+.select-boxs {
|
|
|
|
+ display: flex;
|
|
|
|
+ gap: 8px;
|
|
|
|
+ span {
|
|
|
|
+ flex: 1;
|
|
|
|
+ text-align: center;
|
|
|
|
+ height: 32px;
|
|
|
|
+ line-height: 32px;
|
|
|
|
+ color: #fff;
|
|
|
|
+ font-size: 14px;
|
|
|
|
+ background: rgba(255,255,255,0.1);
|
|
|
|
+ border-radius: 4px;
|
|
|
|
+ &.active {
|
|
|
|
+ background: rgba(47,143,255,0.5);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|