File tree 2 files changed +14
-16
lines changed
effects/common-ui/src/components/api-component
2 files changed +14
-16
lines changed Original file line number Diff line number Diff line change @@ -252,7 +252,7 @@ const getAppendTo = computed(() => {
252
252
ref =" wrapperRef"
253
253
:class ="
254
254
cn('relative min-h-40 flex-1 overflow-y-auto p-3', contentClass, {
255
- 'pointer-events-none overflow-hidden': showLoading || submitting,
255
+ 'overflow-hidden': showLoading || submitting,
256
256
})
257
257
"
258
258
>
Original file line number Diff line number Diff line change @@ -121,7 +121,7 @@ const bindProps = computed(() => {
121
121
[` onUpdate:${props .modelPropName } ` ]: (val : string ) => {
122
122
modelValue .value = val ;
123
123
},
124
- ... objectOmit (attrs , [' onUpdate:value ' ]),
124
+ ... objectOmit (attrs , [` onUpdate:${ props . modelPropName } ` ]),
125
125
... (props .visibleEvent
126
126
? {
127
127
[props .visibleEvent ]: handleFetchForVisible ,
@@ -191,18 +191,16 @@ function emitChange() {
191
191
}
192
192
</script >
193
193
<template >
194
- <div v-bind =" { ...$attrs }" >
195
- <component
196
- :is =" component"
197
- v-bind =" bindProps"
198
- :placeholder =" $attrs.placeholder"
199
- >
200
- <template v-for =" item in Object .keys ($slots )" #[item ]=" data " >
201
- <slot :name =" item" v-bind =" data || {}" ></slot >
202
- </template >
203
- <template v-if =" loadingSlot && loading " #[loadingSlot ]>
204
- <LoaderCircle class =" animate-spin" />
205
- </template >
206
- </component >
207
- </div >
194
+ <component
195
+ :is =" component"
196
+ v-bind =" bindProps"
197
+ :placeholder =" $attrs.placeholder"
198
+ >
199
+ <template v-for =" item in Object .keys ($slots )" #[item ]=" data " >
200
+ <slot :name =" item" v-bind =" data || {}" ></slot >
201
+ </template >
202
+ <template v-if =" loadingSlot && loading " #[loadingSlot ]>
203
+ <LoaderCircle class =" animate-spin" />
204
+ </template >
205
+ </component >
208
206
</template >
You can’t perform that action at this time.
0 commit comments