feat 添加uni-ui
This commit is contained in:
@@ -6,6 +6,7 @@ export default defineUniPages({
|
||||
autoscan: true,
|
||||
custom: {
|
||||
'^wd-(.*)': '@wot-ui/ui/components/wd-$1/wd-$1.vue',
|
||||
'^uni-(.*)': '@dcloudio/uni-ui/lib/uni-$1/uni-$1.vue',
|
||||
},
|
||||
},
|
||||
globalStyle: {
|
||||
|
||||
@@ -14,7 +14,7 @@ function handleSave() {
|
||||
<text class="form-label">
|
||||
项目名称
|
||||
</text>
|
||||
<wd-input v-model="projectName" placeholder="请输入项目名称,保存后将显示首页顶部" />
|
||||
<uni-easyinput v-model="projectName" placeholder="请输入项目名称,保存后将显示首页顶部" />
|
||||
</view>
|
||||
|
||||
<view class="form-item">
|
||||
@@ -22,7 +22,7 @@ function handleSave() {
|
||||
起止桩号
|
||||
</text>
|
||||
<view class="input-with-button">
|
||||
<wd-input v-model="startEndStation" placeholder="请输入起止桩号" />
|
||||
<uni-easyinput v-model="startEndStation" placeholder="请输入起止桩号" />
|
||||
<wd-button size="small" type="primary" class="map-btn">
|
||||
地图框选
|
||||
</wd-button>
|
||||
@@ -33,7 +33,7 @@ function handleSave() {
|
||||
<text class="form-label">
|
||||
项目设计总面积 (m²)
|
||||
</text>
|
||||
<wd-input v-model="totalArea" placeholder="请输入项目设计总面积" />
|
||||
<uni-easyinput v-model="totalArea" placeholder="请输入项目设计总面积" />
|
||||
</view>
|
||||
|
||||
<wd-button type="primary" block class="save-btn" @tap="handleSave">
|
||||
|
||||
@@ -25,19 +25,19 @@ const dataTransType = ref('TCP')
|
||||
<text class="form-label">
|
||||
GAA:
|
||||
</text>
|
||||
<wd-input v-model="gaa" placeholder="1Hz" />
|
||||
<uni-easyinput v-model="gaa" placeholder="1Hz" />
|
||||
</view>
|
||||
<view class="form-item">
|
||||
<text class="form-label">
|
||||
HPD:
|
||||
</text>
|
||||
<wd-input v-model="hpd" placeholder="1Hz" />
|
||||
<uni-easyinput v-model="hpd" placeholder="1Hz" />
|
||||
</view>
|
||||
<view class="form-item">
|
||||
<text class="form-label">
|
||||
VTG:
|
||||
</text>
|
||||
<wd-input v-model="vtg" placeholder="1Hz" />
|
||||
<uni-easyinput v-model="vtg" placeholder="1Hz" />
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
@@ -53,7 +53,7 @@ const dataTransType = ref('TCP')
|
||||
高程:
|
||||
</text>
|
||||
<view class="input-with-unit">
|
||||
<wd-input v-model="elevationRms" placeholder="1.00000" />
|
||||
<uni-easyinput v-model="elevationRms" placeholder="1.00000" />
|
||||
<text class="unit">
|
||||
m RMS
|
||||
</text>
|
||||
@@ -64,7 +64,7 @@ const dataTransType = ref('TCP')
|
||||
水平:
|
||||
</text>
|
||||
<view class="input-with-unit">
|
||||
<wd-input v-model="horizontalRms" placeholder="1.00000" />
|
||||
<uni-easyinput v-model="horizontalRms" placeholder="1.00000" />
|
||||
<text class="unit">
|
||||
m RMS
|
||||
</text>
|
||||
@@ -87,7 +87,7 @@ const dataTransType = ref('TCP')
|
||||
数据
|
||||
</wd-checkbox>
|
||||
</view>
|
||||
<wd-input v-model="dataChannel" placeholder="qxwz5dk" />
|
||||
<uni-easyinput v-model="dataChannel" placeholder="qxwz5dk" />
|
||||
</view>
|
||||
</view>
|
||||
|
||||
@@ -100,7 +100,7 @@ const dataTransType = ref('TCP')
|
||||
<wd-checkbox v-model="dataEnabled" shape="square">
|
||||
数据
|
||||
</wd-checkbox>
|
||||
<wd-input v-model="dataTransType" placeholder="TCP" />
|
||||
<uni-easyinput v-model="dataTransType" placeholder="TCP" />
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
@@ -39,13 +39,13 @@ function handleDelete(index: number) {
|
||||
<!-- 表格内容 -->
|
||||
<view v-for="(sensor, index) in sensorList" :key="index" class="table-row">
|
||||
<view class="col-name">
|
||||
<wd-input v-model="sensor.name" placeholder="请输入名称" />
|
||||
<uni-easyinput v-model="sensor.name" placeholder="请输入名称" />
|
||||
</view>
|
||||
<text class="col-id">
|
||||
{{ sensor.id }}
|
||||
</text>
|
||||
<view class="col-position">
|
||||
<wd-input v-model="sensor.position" placeholder="请输入安装位置" />
|
||||
<uni-easyinput v-model="sensor.position" placeholder="请输入安装位置" />
|
||||
</view>
|
||||
<view class="col-action">
|
||||
<view v-if="index === sensorList.length - 1" class="action-btn add" @tap="handleAdd">
|
||||
|
||||
Reference in New Issue
Block a user