Revert "Fixed #6891 - $attrs binding defects"

This reverts commit 31bee76017.
pull/6893/head
tugcekucukoglu 2024-11-29 17:54:49 +03:00
parent 388ebe75d6
commit 07fae3b6de
8 changed files with 10 additions and 10 deletions

View File

@ -1,7 +1,7 @@
<template>
<template v-if="!asChild">
<transition name="p-toggleable-content" v-bind="ptm('transition', ptParams)">
<component v-if="$pcAccordion.lazy ? $pcAccordionPanel.active : true" v-show="$pcAccordion.lazy ? true : $pcAccordionPanel.active" :is="as" :class="cx('root')" v-bind="$attrs">
<component v-if="$pcAccordion.lazy ? $pcAccordionPanel.active : true" v-show="$pcAccordion.lazy ? true : $pcAccordionPanel.active" :is="as" :class="cx('root')" v-bind="attrs">
<div :class="cx('content')" v-bind="ptm('content', ptParams)">
<slot></slot>
</div>

View File

@ -1,5 +1,5 @@
<template>
<component v-if="!asChild" :is="as" v-ripple :class="cx('root')" @click="onClick" v-bind="$attrs">
<component v-if="!asChild" :is="as" v-ripple :class="cx('root')" @click="onClick" v-bind="attrs">
<slot :active="$pcAccordionPanel.active"></slot>
<slot name="toggleicon" :active="$pcAccordionPanel.active" :class="cx('toggleicon')">
<component
@ -22,7 +22,7 @@
</template>
<script>
import { findSingle, focus, getAttribute } from '@primeuix/utils/dom';
import { findSingle, getAttribute, focus } from '@primeuix/utils/dom';
import ChevronDownIcon from '@primevue/icons/chevrondown';
import ChevronUpIcon from '@primevue/icons/chevronup';
import Ripple from 'primevue/ripple';

View File

@ -1,5 +1,5 @@
<template>
<component v-if="!asChild" :is="as" :class="cx('root')" v-bind="$attrs">
<component v-if="!asChild" :is="as" :class="cx('root')" v-bind="attrs">
<slot></slot>
</component>
<slot v-else :class="cx('root')" :active="active" :a11yAttrs="a11yAttrs"></slot>

View File

@ -1,5 +1,5 @@
<template>
<component v-if="!asChild" :is="as" v-ripple :class="cx('root')" v-bind="$attrs">
<component v-if="!asChild" :is="as" v-ripple :class="cx('root')" v-bind="attrs">
<slot>
<slot v-if="loading" name="loadingicon" :class="[cx('loadingIcon'), cx('icon')]" v-bind="ptm('loadingIcon')">
<span v-if="loadingIcon" :class="[cx('loadingIcon'), cx('icon'), loadingIcon]" v-bind="ptm('loadingIcon')" />

View File

@ -1,5 +1,5 @@
<template>
<input type="text" :class="cx('root')" :value="d_value" :disabled="disabled" :aria-invalid="$invalid || undefined" @input="onInput" v-bind="$attrs" />
<input type="text" :class="cx('root')" :value="d_value" :disabled="disabled" :aria-invalid="$invalid || undefined" @input="onInput" v-bind="attrs" />
</template>
<script>

View File

@ -1,12 +1,12 @@
<template>
<component v-if="!asChild" :is="as" v-ripple :class="cx('root')" @click="onClick" v-bind="$attrs">
<component v-if="!asChild" :is="as" v-ripple :class="cx('root')" @click="onClick" v-bind="attrs">
<slot></slot>
</component>
<slot v-else :class="cx('root')" :active="active" :a11yAttrs="a11yAttrs" :onClick="onClick"></slot>
</template>
<script>
import { findSingle, focus, getAttribute } from '@primeuix/utils/dom';
import { getAttribute, focus, findSingle } from '@primeuix/utils/dom';
import { equals } from '@primeuix/utils/object';
import Ripple from 'primevue/ripple';
import { mergeProps } from 'vue';

View File

@ -2,7 +2,7 @@
<slot v-if="!$pcTabs"></slot>
<template v-else>
<template v-if="!asChild">
<component v-if="$pcTabs?.lazy ? active : true" v-show="$pcTabs?.lazy ? true : active" :is="as" :class="cx('root')" v-bind="$attrs">
<component v-if="$pcTabs?.lazy ? active : true" v-show="$pcTabs?.lazy ? true : active" :is="as" :class="cx('root')" v-bind="attrs">
<slot></slot>
</component>
</template>

View File

@ -1,5 +1,5 @@
<template>
<textarea :class="cx('root')" :value="d_value" :disabled="disabled" :aria-invalid="invalid || undefined" @input="onInput" v-bind="$attrs"></textarea>
<textarea :class="cx('root')" :value="d_value" :disabled="disabled" :aria-invalid="invalid || undefined" @input="onInput" v-bind="attrs"></textarea>
</template>
<script>