雨夜敬清秋
雨夜敬清秋
  • 发布:2020-03-05 21:31
  • 更新:2020-03-30 15:35
  • 阅读:2326

【报Bug】V3模式,2.6.3alpha 条件编译有问题

分类:uni-app

在uni.scss中写 @mixin 里面试用到了条件编译,运行项目时仍旧提示

nvue中不支持如下css。如全局或公共样式受影响,建议将告警样式写在ifndef APP-PLUS-NVUE的条件编译中,详情如下:

@mixin ellipsis {  
  /* #ifndef APP-NVUE */  
  white-space: nowrap;  
  /* #endif */  
}  

@mixin ellipsisTwo ($num) {  
  /* #ifndef APP-NVUE */  
  display: -webkit-box;  
  -webkit-line-clamp: $num;  
  -webkit-box-orient: vertical;  
  /* #endif */  
}
2020-03-05 21:31 负责人:无 分享
已邀请:
丢了蜡笔的小新

丢了蜡笔的小新

我也遇到了

3***@qq.com

3***@qq.com

请问下大佬nvue下面的CSS支持@media的写法吗

DCloud_uniCloud_WYQ

DCloud_uniCloud_WYQ

测试未复现,可以提供这个页面的代码吗

丢了蜡笔的小新

丢了蜡笔的小新

我的报的是这种错,为什么报错的都是uni自身的组件

17:05:23.066 nvue中不支持如下css。如全局或公共样式受影响,建议将告警样式写在ifndef APP-PLUS-NVUE的条件编译中,详情如下:
17:05:23.066 ERROR: Selector body is not supported. Weex only support single-classname selector at App.vue:1
17:05:23.070 ERROR: Selector uni-view is not supported. Weex only support single-classname selector at App.vue:1
17:05:23.071 ERROR: Selector uni-scroll-view is not supported. Weex only support single-classname selector at App.vue:1
17:05:23.076 ERROR: Selector uni-swiper is not supported. Weex only support single-classname selector at App.vue:1
17:05:23.076 ERROR: Selector uni-button is not supported. Weex only support single-classname selector at App.vue:1
17:05:23.081 ERROR: Selector uni-input is not supported. Weex only support single-classname selector at App.vue:1
17:05:23.081 ERROR: Selector uni-textarea is not supported. Weex only support single-classname selector at App.vue:1
17:05:23.085 ERROR: Selector uni-label is not supported. Weex only support single-classname selector at App.vue:1
17:05:23.090 ERROR: Selector uni-navigator is not supported. Weex only support single-classname selector at App.vue:1
17:05:23.091 ERROR: Selector uni-image is not supported. Weex only support single-classname selector at App.vue:1
17:05:23.096 WARNING: box-sizing is not a standard property name (may not be supported) at App.vue:1
17:05:23.101 ERROR: Selector uni-image is not supported. Weex only support single-classname selector at App.vue:1
17:05:23.105 WARNING: vertical-align is not a standard property name (may not be supported) at App.vue:1

  • DCloud_uniCloud_WYQ

    开个新帖子传一下你的项目,邀请一下我

    2020-03-06 17:55

  • chenli

    回复 DCloud_uniCloud_WYQ: 有个ios端热更新重启问题,邀请您了,麻烦您排查重现看看。帖子链接:https://ask.dcloud.net.cn/question/89966

    2020-03-06 18:00

  • kevin98

    我也报了你的这种问题,请问怎么解决,谢谢

    2020-03-30 15:58

kevin98

kevin98

请问解决了吗,我也遇到这个问题了

  • 雨夜敬清秋 (作者)

    新版解决了

    2020-03-30 15:41

  • kevin98

    回复 雨夜敬清秋: 请问一下这种怎么解决nvue中不支持如下css。如全局或公共样式受影响,建议将告警样式写在ifndef APP-PLUS-NVUE的条件编译中,详情如下:

    15:49:54.029 ERROR: Selector body is not supported. Weex only support single-classname selector at App.vue:14

    15:49:54.030 ERROR: Selector uni-view is not supported. Weex only support single-classname selector at App.vue:21

    15:49:54.033 ERROR: Selector uni-scroll-view is not supported. Weex only support single-classname selector at App.vue:21

    15:49:54.033 ERROR: Selector uni-swiper is not supported. Weex only support single-classname selector at App.vue:21

    15:49:54.036 ERROR: Selector uni-button is not supported. Weex only support single-classname selector at App.vue:21

    15:49:54.037 ERROR: Selector uni-input is not supported. Weex only support single-classname selector at App.vue:21

    15:49:54.040 ERROR: Selector uni-textarea is not supported. Weex only support single-classname selector at App.vue:21

    15:49:54.044 ERROR: Selector uni-label is not supported. Weex only support single-classname selector at App.vue:21

    15:49:54.044 ERROR: Selector uni-navigator is not supported. Weex only support single-classname selector at App.vue:21

    15:49:54.048 ERROR: Selector uni-image is not supported. Weex only support single-classname selector at App.vue:21

    15:49:54.049 WARNING: box-sizing is not a standard property name (may not be supported) at App.vue:30

    15:49:54.053 ERROR: Selector uni-image is not supported. Weex only support single-classname selector at App.vue:45

    15:49:54.053 WARNING: max-width is not a standard property name (may not be supported) at App.vue:46

    15:49:54.057 WARNING: display is not a standard property name (may not be supported) at App.vue:47

    2020-03-30 15:58

  • 雨夜敬清秋 (作者)

    回复 kevin98: 都说了不支持啊,就不能这么写呗,nvue都样式有很多需要注意都,看文档吧

    2020-03-30 16:08

该问题目前已经被锁定, 无法添加新回复