uni-swipe-action-item生产环境类名丢失
- Dominant language
- JavaScript
- Stars
- 2.1k
- Forks
- 661
- PR merge metrics
- No merged PRs in 30d
Description
* 问题描述:`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`
* 运行环境:h5
* 代码示例:
```vue
{{ title }}
使用插槽
删除
export default {
data() {
return {
title: 'Hello',
}
},
onLoad() { },
methods: { },
}
.content {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
.text-area {
display: flex;
justify-content: center;
}
.title {
font-size: 36rpx;
color: #8f8f94;
}
.swipe-action-content {
width: 100%;
height: 50rpx;
background-color: #f3f3f3;
.swipe-item-f {
color: aqua;
}
}
```
* 开发环境,类名生效

* 打包后查看,类名丢失,静态资源里有返回


Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.