This slot actually refers to webcomponent slots;
https://github.com/ionic-team/ionic-framework/issues/22236
Ionic Framework使用的插槽与Vue 2插槽不同.我们使用的插槽是Web组件插槽,有效使用:https://developer.mozilla.org/en-US/docs/Web/Web_Components/Using_templates_and_slots.
开发人员应该按照我们的文档:https://ionicframework.com/docs/api/range#usage使用Web组件槽来定位元素
判断以确保您的eslint.js有以下规则:
rules: {
'vue/no-deprecated-slot-attribute': 'off',
}
下一个开放.vscode/设置.json并添加以下内容:
"vetur.validation.template": false,