refactor: remove margin utils, use inline pixel spacing
Delete the src/static/scss/margin.scss utility file, update all component templates to replace pre-defined margin classes with inline arbitrary pixel values (e.g. mb-[4px] instead of mb-4), and clean up long template lines for better readability.
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<view class="bg-white rounded-[12px] overflow-hidden mb-12">
|
||||
<view class="bg-white rounded-[12px] overflow-hidden mb-[12px]">
|
||||
<view class="flex flex-items-center p-[12px] border-bottom">
|
||||
<view class="font-size-16 font-500 text-[#000000] leading-[24px] flex-full">入住信息</view>
|
||||
<view class="right">
|
||||
@@ -10,7 +10,7 @@
|
||||
<view class="border-box pl-[12px] pr-[12px]">
|
||||
<view class="border-box border-bottom pt-[12px] pb-[12px] flex flex-items-center"
|
||||
v-for="(item, index) in userFormList" :key="index">
|
||||
<view class="font-size-14 font-500 text-[#525866] mr-12"> 住客姓名 </view>
|
||||
<view class="font-size-14 font-500 text-[#525866] mr-[12px]"> 住客姓名 </view>
|
||||
<view class="right">
|
||||
<input class="border-box px-[4px] py-[2px] font-size-15 text-[#000000] leading-[20px]"
|
||||
v-model.trim="item.visitorName" placeholder="请输入姓名" maxlength="11" />
|
||||
@@ -18,7 +18,7 @@
|
||||
</view>
|
||||
|
||||
<view class="flex flex-items-center pt-[12px] pb-[12px]">
|
||||
<view class="font-size-14 font-500 text-[#525866] mr-12"> 联系手机 </view>
|
||||
<view class="font-size-14 font-500 text-[#525866] mr-[12px]"> 联系手机 </view>
|
||||
<view class="right">
|
||||
<input class="border-box px-[4px] py-[2px] font-size-15 text-[#000000] leading-[20px]"
|
||||
v-model.trim="userFormList[0].contactPhone" placeholder="请输入联系手机" maxlength="11" />
|
||||
|
||||
Reference in New Issue
Block a user