diff --git a/.eslintrc-auto-import.json b/.eslintrc-auto-import.json new file mode 100644 index 0000000..ebdbb1c --- /dev/null +++ b/.eslintrc-auto-import.json @@ -0,0 +1,56 @@ +{ + "globals": { + "EffectScope": "readonly", + "computed": "readonly", + "createApp": "readonly", + "customRef": "readonly", + "defineAsyncComponent": "readonly", + "defineComponent": "readonly", + "effectScope": "readonly", + "getCurrentInstance": "readonly", + "getCurrentScope": "readonly", + "h": "readonly", + "inject": "readonly", + "isProxy": "readonly", + "isReactive": "readonly", + "isReadonly": "readonly", + "isRef": "readonly", + "markRaw": "readonly", + "nextTick": "readonly", + "onActivated": "readonly", + "onBeforeMount": "readonly", + "onBeforeUnmount": "readonly", + "onBeforeUpdate": "readonly", + "onDeactivated": "readonly", + "onErrorCaptured": "readonly", + "onMounted": "readonly", + "onRenderTracked": "readonly", + "onRenderTriggered": "readonly", + "onScopeDispose": "readonly", + "onServerPrefetch": "readonly", + "onUnmounted": "readonly", + "onUpdated": "readonly", + "provide": "readonly", + "reactive": "readonly", + "readonly": "readonly", + "ref": "readonly", + "resolveComponent": "readonly", + "resolveDirective": "readonly", + "shallowReactive": "readonly", + "shallowReadonly": "readonly", + "shallowRef": "readonly", + "toRaw": "readonly", + "toRef": "readonly", + "toRefs": "readonly", + "triggerRef": "readonly", + "unref": "readonly", + "useAttrs": "readonly", + "useCssModule": "readonly", + "useCssVars": "readonly", + "useSlots": "readonly", + "watch": "readonly", + "watchEffect": "readonly", + "watchPostEffect": "readonly", + "watchSyncEffect": "readonly" + } +} \ No newline at end of file diff --git a/.eslintrc.cjs b/.eslintrc.cjs index ec4f920..f17fd47 100644 --- a/.eslintrc.cjs +++ b/.eslintrc.cjs @@ -8,7 +8,8 @@ module.exports = { 'eslint:recommended', '@vue/eslint-config-typescript', 'plugin:vue/vue3-recommended', - 'plugin:@typescript-eslint/recommended' + 'plugin:@typescript-eslint/recommended', + "./.eslintrc-auto-import.json", // 导入自动导入api的配置文件 ], parser: 'vue-eslint-parser', parserOptions: { diff --git a/src/components/TrackList.vue b/src/components/TrackList.vue index 3905cf9..3f02ada 100644 --- a/src/components/TrackList.vue +++ b/src/components/TrackList.vue @@ -32,6 +32,7 @@ v-else class="z-10 pt-5 pb-5 min-w-full flex shrink-0 grow flex-col justify-center min-h-full" :style="{ width: `${trackStyle.width}px` }" + id="track-container" >