!578 【优化】添加自定义指令消除IDE警告

Merge pull request !578 from jinmh/master
This commit is contained in:
芋道源码 2024-11-09 11:02:53 +00:00 committed by Gitee
commit 1c23298d19
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 20 additions and 0 deletions

View File

@ -143,6 +143,7 @@
"url": "https://gitee.com/yudaocode/yudao-ui-admin-vue3/issues"
},
"homepage": "https://gitee.com/yudaocode/yudao-ui-admin-vue3",
"web-types": "./web-types.json",
"engines": {
"node": ">= 16.0.0",
"pnpm": ">=8.6.0"

19
web-types.json Normal file
View File

@ -0,0 +1,19 @@
{
"$schema": "https://json.schemastore.org/web-types",
"framework": "vue",
"name": "name written in package.json",
"version": "version written in package.json",
"contributions": {
"html": {
"types-syntax": "typescript",
"attributes": [
{
"name": "v-hasPermi"
},
{
"name": "v-hasRole"
}
]
}
}
}