1
1
<script lang="ts" setup>
2
2
import { objectOmit } from ' @vueuse/shared' ;
3
3
import { logicAnd , logicNot } from ' @vueuse/math' ;
4
+ import { getNonRootAttrs , getRootAttrs } from ' @/utils/helpers' ;
4
5
import { type ContextColorsType } from ' @/consts/colors' ;
5
6
import Icon , { default as RuiIcon } from ' @/components/icons/Icon.vue' ;
6
7
import { default as RuiButton } from ' @/components/buttons/button/Button.vue' ;
@@ -21,7 +22,6 @@ export interface Props {
21
22
successMessages? : string | string [];
22
23
hideDetails? : boolean ;
23
24
prependIcon? : RuiIcons ;
24
- prependOuterIcon? : RuiIcons ;
25
25
appendIcon? : RuiIcons ;
26
26
readonly? : boolean ;
27
27
clearable? : boolean ;
@@ -51,7 +51,6 @@ const props = withDefaults(defineProps<Props>(), {
51
51
successMessages : () => [],
52
52
hideDetails: false ,
53
53
prependIcon: undefined ,
54
- prependOuterIcon: undefined ,
55
54
appendIcon: undefined ,
56
55
readonly: false ,
57
56
clearable: false ,
@@ -194,7 +193,7 @@ onMounted(computeFieldHeight);
194
193
</script >
195
194
196
195
<template >
197
- <div >
196
+ <div v-bind = " getRootAttrs(attrs) " >
198
197
<div
199
198
:class =" [
200
199
css.wrapper,
@@ -242,7 +241,7 @@ onMounted(computeFieldHeight);
242
241
:style =" fieldStyles"
243
242
:disabled =" disabled"
244
243
:readonly =" readonly"
245
- v-bind =" objectOmit (attrs, ['class'] )"
244
+ v-bind =" getNonRootAttrs (attrs)"
246
245
v-on ="
247
246
// eslint-disable-next-line vue/no-deprecated-dollar-listeners-api
248
247
objectOmit($listeners, ['input'])
0 commit comments