Commit 2d17a9c7 by liangjianmin

feat(app): update form label width and configure unit for uView

- Adjust label width in the application form from 180 to 210 for better alignment
- Set the unit configuration for uView to 'rpx' to standardize measurements across the app
parent fb3d0812
Showing with 4 additions and 1 deletions
...@@ -5,6 +5,9 @@ import uView from '@/uni_modules/uview-ui' ...@@ -5,6 +5,9 @@ import uView from '@/uni_modules/uview-ui'
// #ifndef VUE3 // #ifndef VUE3
import Vue from 'vue' import Vue from 'vue'
Vue.use(uView) Vue.use(uView)
uni.$u.config.unit = 'rpx'
Vue.config.productionTip = false; Vue.config.productionTip = false;
Vue.prototype.request = request; Vue.prototype.request = request;
App.mpType = 'app' App.mpType = 'app'
......
<template> <template>
<view class="apply-page"> <view class="apply-page">
<u-form :model="form" ref="formRef" labelWidth="180" labelPosition="left"> <u-form :model="form" ref="formRef" labelWidth="210" labelPosition="left">
<view class="form-section"> <view class="form-section">
<u-form-item label="申请类型" prop="applyType" required borderBottom @click="showTypePicker = true"> <u-form-item label="申请类型" prop="applyType" required borderBottom @click="showTypePicker = true">
<u--input v-model="form.applyTypeName" disabled disabledColor="#ffffff" placeholder="请选择" border="none" inputAlign="right"></u--input> <u--input v-model="form.applyTypeName" disabled disabledColor="#ffffff" placeholder="请选择" border="none" inputAlign="right"></u--input>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment