mirror of
https://github.com/algerkong/AlgerMusicPlayer.git
synced 2026-04-24 16:27:23 +08:00
🐞 fix: 修复类型校验问题
This commit is contained in:
Vendored
+24
@@ -7,9 +7,33 @@ export {}
|
|||||||
/* prettier-ignore */
|
/* prettier-ignore */
|
||||||
declare module 'vue' {
|
declare module 'vue' {
|
||||||
export interface GlobalComponents {
|
export interface GlobalComponents {
|
||||||
|
NAvatar: typeof import('naive-ui')['NAvatar']
|
||||||
|
NButton: typeof import('naive-ui')['NButton']
|
||||||
|
NButtonGroup: typeof import('naive-ui')['NButtonGroup']
|
||||||
|
NCheckbox: typeof import('naive-ui')['NCheckbox']
|
||||||
NConfigProvider: typeof import('naive-ui')['NConfigProvider']
|
NConfigProvider: typeof import('naive-ui')['NConfigProvider']
|
||||||
NDialogProvider: typeof import('naive-ui')['NDialogProvider']
|
NDialogProvider: typeof import('naive-ui')['NDialogProvider']
|
||||||
|
NDrawer: typeof import('naive-ui')['NDrawer']
|
||||||
|
NDropdown: typeof import('naive-ui')['NDropdown']
|
||||||
|
NEllipsis: typeof import('naive-ui')['NEllipsis']
|
||||||
|
NEmpty: typeof import('naive-ui')['NEmpty']
|
||||||
|
NForm: typeof import('naive-ui')['NForm']
|
||||||
|
NFormItem: typeof import('naive-ui')['NFormItem']
|
||||||
|
NImage: typeof import('naive-ui')['NImage']
|
||||||
|
NInput: typeof import('naive-ui')['NInput']
|
||||||
|
NInputNumber: typeof import('naive-ui')['NInputNumber']
|
||||||
|
NLayout: typeof import('naive-ui')['NLayout']
|
||||||
NMessageProvider: typeof import('naive-ui')['NMessageProvider']
|
NMessageProvider: typeof import('naive-ui')['NMessageProvider']
|
||||||
|
NModal: typeof import('naive-ui')['NModal']
|
||||||
|
NPopover: typeof import('naive-ui')['NPopover']
|
||||||
|
NScrollbar: typeof import('naive-ui')['NScrollbar']
|
||||||
|
NSelect: typeof import('naive-ui')['NSelect']
|
||||||
|
NSlider: typeof import('naive-ui')['NSlider']
|
||||||
|
NSpin: typeof import('naive-ui')['NSpin']
|
||||||
|
NSwitch: typeof import('naive-ui')['NSwitch']
|
||||||
|
NTag: typeof import('naive-ui')['NTag']
|
||||||
|
NTooltip: typeof import('naive-ui')['NTooltip']
|
||||||
|
NVirtualList: typeof import('naive-ui')['NVirtualList']
|
||||||
RouterLink: typeof import('vue-router')['RouterLink']
|
RouterLink: typeof import('vue-router')['RouterLink']
|
||||||
RouterView: typeof import('vue-router')['RouterView']
|
RouterView: typeof import('vue-router')['RouterView']
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -38,11 +38,6 @@
|
|||||||
:step="0.1"
|
:step="0.1"
|
||||||
@update:value="handleProgressChange"
|
@update:value="handleProgressChange"
|
||||||
>
|
>
|
||||||
<template #rail>
|
|
||||||
<div class="progress-rail">
|
|
||||||
<div class="progress-buffer" :style="{ width: `${bufferedProgress}%` }"></div>
|
|
||||||
</div>
|
|
||||||
</template>
|
|
||||||
</n-slider>
|
</n-slider>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -643,10 +638,44 @@ const isMobile = computed(() => store.state.isMobile);
|
|||||||
.custom-slider {
|
.custom-slider {
|
||||||
:deep(.n-slider) {
|
:deep(.n-slider) {
|
||||||
--n-rail-height: 4px;
|
--n-rail-height: 4px;
|
||||||
--n-rail-color: rgba(255, 255, 255, 0.2);
|
--n-rail-color: theme('colors.gray.200');
|
||||||
--n-fill-color: #10b981;
|
--n-rail-color-dark: theme('colors.gray.700');
|
||||||
|
--n-fill-color: theme('colors.green.500');
|
||||||
--n-handle-size: 12px;
|
--n-handle-size: 12px;
|
||||||
--n-handle-color: #10b981;
|
--n-handle-color: theme('colors.green.500');
|
||||||
|
|
||||||
|
&.n-slider--vertical {
|
||||||
|
height: 100%;
|
||||||
|
|
||||||
|
.n-slider-rail {
|
||||||
|
width: 4px;
|
||||||
|
}
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
.n-slider-rail {
|
||||||
|
width: 6px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.n-slider-handle {
|
||||||
|
width: 14px;
|
||||||
|
height: 14px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.n-slider-rail {
|
||||||
|
@apply overflow-hidden transition-all duration-200;
|
||||||
|
@apply bg-gray-500 dark:bg-dark-300 bg-opacity-10 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.n-slider-handle {
|
||||||
|
@apply transition-all duration-200;
|
||||||
|
opacity: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
&:hover .n-slider-handle {
|
||||||
|
opacity: 1;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user