Browserslist: caniuse-lite is outdated. Please run next command npm update caniuse-lite browserslist
10:29:55.103 Module Error (from ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js):
10:29:55.104 (Emitted value instead of an instance of Error)
10:29:55.106 Errors compiling template:
10:29:55.107 Component template should contain exactly one root element. If you are using v-if on multiple elements, use v-else-if to chain them instead.
10:29:55.109 4 | <view slot="content">主页</view>
10:29:55.109 5 | </cu-custom>
10:29:55.111 6 |
10:29:55.111 |
10:29:55.114 7 | <view class="content">
10:29:55.114 | ^^^^^^^^^^^^^^^^^^^^^^
10:29:55.116 8 | <image class="logo" src="/static/logo.png"></image>
10:29:55.116 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
10:29:55.118 9 | <view class="text-area">
10:29:55.118 | ^^^^^^^^^^^^^^^^^^^^^^^^^
10:29:55.120 10 | <text class="title">{{title}}</text>
10:29:55.120 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
10:29:55.121 11 | </view>
10:29:55.122 | ^^^^^^^^
10:29:55.123 12 | </view>
10:29:55.124 | ^^^^^^^

m***@163.com
- 发布:2021-09-24 10:38
- 更新:2021-09-24 10:38
- 阅读:1215
uniapp中使用colorui 的cu-custom出错
分类:uni-app
0 个回复