File tree 3 files changed +12
-6
lines changed
3 files changed +12
-6
lines changed Original file line number Diff line number Diff line change @@ -78,7 +78,7 @@ const onBack = () => {
78
78
:on-after-leave =" onAfterLeave"
79
79
auto-focus
80
80
>
81
- <NDrawerContent >
81
+ <NDrawerContent :native-scrollbar = " false " >
82
82
<!-- Header -->
83
83
<NFlex justify =" space-between" class =" panel-header" >
84
84
<NButton circle quaternary @click =" onBack" >
@@ -150,7 +150,7 @@ main {
150
150
151
151
& -header {
152
152
position : sticky ;
153
- top : 0 ;
153
+ top : 1 rem ;
154
154
}
155
155
156
156
& -content {
Original file line number Diff line number Diff line change @@ -43,6 +43,10 @@ const props = defineProps({
43
43
type: Boolean ,
44
44
required: false ,
45
45
},
46
+ loading: {
47
+ type: Boolean ,
48
+ required: false ,
49
+ },
46
50
47
51
icon: {
48
52
type: Object as PropType <Component >,
@@ -134,7 +138,7 @@ const renderLabel = (option: SelectOption & { icon: Component }) => [
134
138
:to =" root"
135
139
:render-label =" renderLabel"
136
140
trigger =" focus"
137
- :disabled =" disabled"
141
+ :disabled =" disabled || loading "
138
142
v-bind =" select"
139
143
:on-update:show =" _show => !_show && trigger?.$el?.blur()"
140
144
:on-update-value =" onSelect"
@@ -146,6 +150,7 @@ const renderLabel = (option: SelectOption & { icon: Component }) => [
146
150
round
147
151
:secondary =" !filled"
148
152
:disabled =" disabled"
153
+ :loading =" loading"
149
154
:type =" type"
150
155
>
151
156
<template #icon >
@@ -157,6 +162,7 @@ const renderLabel = (option: SelectOption & { icon: Component }) => [
157
162
</ProgressTooltip >
158
163
159
164
<NModal
165
+ v-if =" false"
160
166
v-model:show =" showPicker"
161
167
:to =" root"
162
168
:style =" {
Original file line number Diff line number Diff line change @@ -169,7 +169,7 @@ onMounted(() => {
169
169
}"
170
170
:icon =" activeLists?.length ? IconCheckedList : IconListEmpty"
171
171
:filled =" !!activeLists?.length"
172
- :disabled =" listsLoading"
172
+ :loading =" listsLoading"
173
173
type =" warning"
174
174
@on-select =" onListUpdate"
175
175
>
@@ -197,7 +197,7 @@ onMounted(() => {
197
197
:progress =" collectionProgress"
198
198
:percentage =" collectionPercentage"
199
199
:filled =" collected"
200
- :disabled =" collectionLoading"
200
+ :loading =" collectionLoading"
201
201
type =" info"
202
202
@on-select =" onCollectionUpdate"
203
203
>
@@ -218,7 +218,7 @@ onMounted(() => {
218
218
:progress =" watchedProgress"
219
219
:percentage =" watchedPercentage"
220
220
:filled =" watched"
221
- :disabled =" watchedLoading"
221
+ :loading =" watchedLoading"
222
222
@on-select =" onWatchedUpdate"
223
223
>
224
224
{{ i18n(`label__history__${ watched ? 'remove' : 'add' }`) }}
You can’t perform that action at this time.
0 commit comments