diff --git a/.eslintrc.js b/.eslintrc.js index d1be1e9942..b3f9188bad 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -51,6 +51,7 @@ module.exports = { '@typescript-eslint/restrict-template-expressions': 'off', '@typescript-eslint/no-invalid-this': 'off', 'vue/no-deprecated-dollar-scopedslots-api': 'off', - '@typescript-eslint/lines-between-class-members': 'off' + '@typescript-eslint/lines-between-class-members': 'off', + '@typescript-eslint/no-this-alias': 'off' } } diff --git a/examples/sites/vite.config.ts b/examples/sites/vite.config.ts index c82fe871f4..68db61ae8f 100644 --- a/examples/sites/vite.config.ts +++ b/examples/sites/vite.config.ts @@ -135,6 +135,7 @@ export default defineConfig((config) => { resolve: { extensions: ['.js', '.ts', '.tsx', '.vue'], alias: { + '@mobile-root': pathFromWorkspaceRoot('packages/mobile'), '@': path.resolve('src'), '@demos': path.resolve(`${demosPath}`), '@menu': menuPath, diff --git a/examples/vue3/vite.config.ts b/examples/vue3/vite.config.ts index 1c208dd563..0b70e685bd 100644 --- a/examples/vue3/vite.config.ts +++ b/examples/vue3/vite.config.ts @@ -92,6 +92,7 @@ export default defineConfig((config) => { resolve: { extensions: ['.js', '.ts', '.tsx', '.vue'], alias: { + '@mobile-root': pathFromWorkspaceRoot('packages/mobile'), 'vue': path.resolve('node_modules/vue/dist/vue.esm-bundler.js'), 'vue-i18n': 'vue-i18n/dist/vue-i18n.cjs.js', '@': pathFromWorkspaceRoot('examples/docs/newsrc'), diff --git a/packages/mobile/components/action-sheet/src/mobile.vue b/packages/mobile/components/action-sheet/src/mobile.vue index 26416676e6..c59687931d 100644 --- a/packages/mobile/components/action-sheet/src/mobile.vue +++ b/packages/mobile/components/action-sheet/src/mobile.vue @@ -52,7 +52,7 @@