<script setup lang="ts">
import { onLaunch, onShow, onHide } from "@dcloudio/uni-app";
onLaunch(() => {
console.log("App Launch");
});
onShow(() => {
console.log("App Show");
});
onHide(() => {
console.log("App Hide");
});
</script>
<style>
@import "tailwindcss/base";
@import "tailwindcss/components";
@import "tailwindcss/utilities";
body,
html {
width: 100%;
height: 100%;
font-family: "Source Han Sans SC";
background: #f9fafb !important;
}
page {
width: 100%;
height: 100%;
background: #f9fafb !important;
}
/* uni-app中的条件判断语句 */
/* #ifdef APP-PLUS || H5 */
uni-swiper .uni-swiper-dot {
width: 12rpx;
height: 12rpx;
}
uni-swiper .uni-swiper-dot-active {
width: 16rpx;
border-radius: 16rpx;
}
/* #endif */
/* #ifdef MP-WEIXIN */
wx-swiper .wx-swiper-dot {
width: 12rpx;
height: 12rpx;
}
wx-swiper .wx-swiper-dot-active {
width: 16rpx;
height: 16rpx;
}
/* #endif */
</style>

- 发布:2024-11-13 16:34
- 更新:2024-11-13 16:34
- 阅读:77
产品分类: uniapp/小程序/微信
PC开发环境操作系统: Mac
PC开发环境操作系统版本号: Apple M1 Pro
HBuilderX类型: 正式
HBuilderX版本号: 4.29
第三方开发者工具版本号: RC 1.06.2402021
基础库版本号: 2.29.2
项目创建方式: HBuilderX
示例代码:
操作步骤:
运行正常,发行报错
运行正常,发行报错
预期结果:
可以发行成功
可以发行成功
实际结果:
发行失败
发行失败
bug描述:
[ WXSS 文件编译错误] ./app.wxss
unexpected token "}"
1 | page,cover-image,cover-view,match-media,movable-area,movable-view,scroll-view,swiper,swiper-item,view,icon,progress,rich-text,text,button,checkbox,checkbox-group,editor,form,input,label,picker,picker-view,picker-view-column,radio,radio-group,slider,switch,textarea,functional-page-navigator,navigator,audio,camera,image,live-player,live-pusher,video,voip-room,map,canvas,ad,ad-custom,official-account,open-data,web-view,navigation-bar,page-meta,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}page,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-
