refactor: migrate to tailwind arbitrary width classes
remove the unused src/static/scss/width.scss file and its import from index.scss, replace all existing custom width utility class usages with the equivalent Tailwind arbitrary width syntax
This commit is contained in:
@@ -19,7 +19,7 @@
|
||||
</text>
|
||||
</view>
|
||||
|
||||
<view class="w-24 h-24"></view>
|
||||
<view class="w-[24px] h-24"></view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<view class="w-full bg-white border-ff overflow-hidden rounded-[20px] flex flex-col">
|
||||
<!-- 占位撑开 -->
|
||||
<view class="w-vw"></view>
|
||||
<view class="w-screen"></view>
|
||||
|
||||
<view class="aigc-photo-card relative rounded-[24px] overflow-hidden w-full"
|
||||
:class="{ 'is-disabled': disabled, 'is-empty': !videoUrl }" @click="handleAction">
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<view v-if="shouldRenderCard" class="w-full bg-white border-ff overflow-hidden rounded-[20px] flex flex-col">
|
||||
<!-- 占位撑开 -->
|
||||
<view class="w-vw"></view>
|
||||
<view class="w-screen"></view>
|
||||
<view class="flex flex-col px-[16px] pt-[16px] pb-[12px] border-box" @click="lookDetailAction">
|
||||
<view v-if="tag" class="long-answer-tag" :style="longAnswerTagStyle">{{ tag }}</view>
|
||||
<view v-if="title" class="flex flex-row flex-items-start flex-justify-start mb-[4px]">
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<template>
|
||||
<view class="w-full pb-[12px]">
|
||||
<view class="w-vw"></view>
|
||||
<view class="w-screen"></view>
|
||||
<template v-if="toolCall.picture && toolCall.picture.length > 0">
|
||||
<ModuleTitle :title="图片详情" />
|
||||
<ImageSwiper :images="toolCall.picture" thumbnailBottom="12px" />
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<view class="container w-full border-ff overflow-hidden rounded-[24px] flex flex-col">
|
||||
<!-- 占位撑开 -->
|
||||
<view class="w-vw"></view>
|
||||
<view class="w-screen"></view>
|
||||
<view class="content flex flex-col m-[4px] rounded-[24px]">
|
||||
<view class="flex flex-col p-[6px] flex-items-center justify-center">
|
||||
<image class="w-full rounded-[20px]" :src="componentDataMap.background" mode="widthFix" />
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<view class="w-full bg-white border-ff overflow-hidden rounded-[20px] flex flex-col">
|
||||
<!-- 占位撑开 -->
|
||||
<view class="w-vw"></view>
|
||||
<view class="w-screen"></view>
|
||||
<view class="flex flex-col px-[16px] pt-[16px] pb-[12px] border-box" @click="openDetail(item)">
|
||||
|
||||
<view class="long-text-guide-card__badge text-[12px] font-bold" :class="`is-${item.badgeTone}`">
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
<template>
|
||||
<view class="w-full bg-white border-ff overflow-hidden rounded-[20px] flex flex-col">
|
||||
<!-- 占位撑开 -->
|
||||
<view class="w-vw"></view>
|
||||
<view class="w-screen"></view>
|
||||
<view class="flex flex-items-center flex-justify-between p-[12px] border-box" @click="openMap">
|
||||
<view class="rounded-[16px] p-[16px] bg-[#F0F8F3]">
|
||||
<view class="w-32 h-32 rounded-full bg-white flex flex-items-center flex-justify-center">
|
||||
<view class="w-[32px] h-32 rounded-full bg-white flex flex-items-center flex-justify-center">
|
||||
<uni-icons type="location" size="16" color="#171717" />
|
||||
</view>
|
||||
</view>
|
||||
@@ -12,7 +12,7 @@
|
||||
<view class="font-color-900 text-[14px]">打开导览地图</view>
|
||||
<view class="font-color-500 text-[12px] mt-[6px]">距你 {{ distance }} · 步行 {{ walk }}</view>
|
||||
</view>
|
||||
<view class="ml-[12px] flex flex-items-center flex-justify-center w-32 h-32 rounded-full bg-[#f2f5f8]">
|
||||
<view class="ml-[12px] flex flex-items-center flex-justify-center w-[32px] h-32 rounded-full bg-[#f2f5f8]">
|
||||
<uni-icons class="mb-[2px]" type="right" size="12" color="#99A0AE" />
|
||||
</view>
|
||||
</view>
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
<view class="visual-action-row flex flex-items-center gap-[12px] p-[12px] bg-white rounded-[18px] border-box"
|
||||
:class="{ 'is-disabled': disabled }" @click="handleClick">
|
||||
<view
|
||||
class="visual-action-row__icon flex flex-items-center flex-justify-center w-42 h-42 rounded-[14px] text-[18px] font-bold"
|
||||
class="visual-action-row__icon flex flex-items-center flex-justify-center w-[42px] h-42 rounded-[14px] text-[18px] font-bold"
|
||||
:class="toneClass">
|
||||
<slot name="icon">{{ icon }}</slot>
|
||||
</view>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<view class="container w-full border-ff overflow-hidden rounded-[24px] flex flex-col">
|
||||
<!-- 占位撑开 -->
|
||||
<view class="w-vw"></view>
|
||||
<view class="w-screen"></view>
|
||||
<view class="flex flex-col m-[4px] rounded-[24px]">
|
||||
<slot name="content"></slot>
|
||||
</view>
|
||||
|
||||
Reference in New Issue
Block a user