小程序中不支持指令

This commit is contained in:
dftre 2024-11-08 09:00:58 +08:00
parent 4be484d27a
commit c5495da6fd
4 changed files with 5259 additions and 6706 deletions

View File

@ -58,7 +58,7 @@
"@dcloudio/uni-quickapp-webview": "3.0.0-4020420240722002",
"@jridgewell/sourcemap-codec": "^1.5.0",
"@qiun/wx-ucharts": "2.5.0-20230101",
"@ttou/uview-typings": "^2.0.5",
"@uview-plus/types": "^3.2.5",
"clipboard": "^2.0.11",
"dayjs": "^1.11.13",
"mqtt": "4.1.0",
@ -69,7 +69,7 @@
"vue-i18n": "^10.0.1"
},
"devDependencies": {
"@dcloudio/types": "^3.4.12",
"@dcloudio/types": "^3.4.14",
"@dcloudio/uni-automator": "3.0.0-4020420240722002",
"@dcloudio/uni-cli-shared": "3.0.0-4020420240722002",
"@dcloudio/uni-stacktracey": "3.0.0-4020420240722002",

File diff suppressed because it is too large Load Diff

View File

@ -17,7 +17,11 @@ export function createApp() {
app.use(store)
app.use(uviewPlus)
app.use(plugins)
// #ifndef MP-WEIXIN
// 微信小程序中不支持自定义指令
directive(app)
// #endif
// 全局方法挂载
app.config.globalProperties.useDict = useDict

View File

@ -14,8 +14,15 @@ export default defineConfig(() => {
plugins: [
uni()
],
exclude:[
exclude: [
/\/README\.md$/,
]
],
css: {
preprocessorOptions: {
scss: {
api: 'modern-compiler'
}
}
}
}
})