Open yaomk opened 1 year ago
uni-swipe-action-item
class
swipe-item-f
uni-swipe-action
"vue": "^3.2.45", "vite": "4.1.4"
npx degit dcloudio/uni-preset-vue#vite my-vue3-project
<template> <view class="content"> <view class="text-area"> <text class="title">{{ title }}</text> </view> <uni-swipe-action class="swipe-action-content"> <!-- 使用插槽 (请自行给定插槽内容宽度)--> <uni-swipe-action-item class="swipe-item-f"> <view> <text>使用插槽</text> </view> <template #right> <view style="margin-left: 10rpx;"><text style="color: red;">删除</text></view> </template> </uni-swipe-action-item> </uni-swipe-action> </view> </template>
* 开发环境,类名生效 ![开发环境](https://user-images.githubusercontent.com/52515107/229700169-dfeb4a9d-9ae5-4720-a1c7-fb7edeec1df2.png) * 打包后查看,类名丢失,静态资源里有返回 ![生产环境](https://user-images.githubusercontent.com/52515107/229700592-5d4c7f08-e9fe-4e55-a032-0761aebdfd18.png) ![打包后静态资源](https://user-images.githubusercontent.com/52515107/229700790-27641d67-ca0a-419e-92ca-9dd72b3edd08.png)
感谢反馈,已复现该问题,正在排查
uni-swipe-action-item
设置class
类名swipe-item-f
,开发环境样式正常,打包后类名丢失。uni-swipe-action
版本:1.3.7"vue": "^3.2.45", "vite": "4.1.4"
npx degit dcloudio/uni-preset-vue#vite my-vue3-project