const actions = ref<TItem[]>([
{
label: '扫一扫',
path: '',
icon: '\ue62e'
}, {
label: '分享二维码',
path: '',
icon: '\ue739'
}, {
label: '付款码',
path: '',
icon: '\ue7df'
},
])
编译结果
.240 at pages/index/index.uvue:145:12
20:52:24.240 143|
20:52:24.240 144| const actions = ref<TItem[]>([
20:52:24.240 145| new Item('扫一扫', '', '\ue62e'),
20:52:24.240 | ^
20:52:24.240 146| new Item('分享二维码', '', '\ue739'),
20:52:24.240 147| new Item('付款码', '', '\ue7df'),
20:52:24.240 error: Unresolved reference: Item
20:52:24.241 at pages/index/index.uvue:146:12
20:52:24.241 144| const actions = ref<TItem[]>([
20:52:24.241 145| new Item('扫一扫', '', '\ue62e'),
20:52:24.241 146| new Item('分享二维码', '', '\ue739'),
20:52:24.241 | ^
20:52:24.241 147| new Item('付款码', '', '\ue7df'),
20:52:24.241 148| ])
20:52:24.241 error: Unresolved reference: Item
20:52:24.241 at pages/index/index.uvue:147:12
20:52:24.241 145| new Item('扫一扫', '', '\ue62e'),
20:52:24.241 146| new Item('分享二维码', '', '\ue739'),
20:52:24.241 147| new Item('付款码', '', '\ue7df'),
20:52:24.241 | ^
20:52:24.241 148| ])
0 个回复