本人在使用vite3.1.0+vue 3.2.0过程中,在对element ui的el-table使用插槽的过程中发现:
这种写法无效
<template slot-scope="scope">{{scope.row}}</template>
必须使用最新版
<template #default="scope">{{scope.row}}</template>
TypeError: _ctx.scope is undefined
最新推荐文章于 2023-03-10 15:30:34 发布