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