Fixed #6891 - $attrs binding defects
parent
786f9c65e6
commit
31bee76017
|
@ -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>
|
||||
|
|
|
@ -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, getAttribute, focus } from '@primeuix/utils/dom';
|
||||
import { findSingle, focus, getAttribute } from '@primeuix/utils/dom';
|
||||
import ChevronDownIcon from '@primevue/icons/chevrondown';
|
||||
import ChevronUpIcon from '@primevue/icons/chevronup';
|
||||
import Ripple from 'primevue/ripple';
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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')" />
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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 { getAttribute, focus, findSingle } from '@primeuix/utils/dom';
|
||||
import { findSingle, focus, getAttribute } from '@primeuix/utils/dom';
|
||||
import { equals } from '@primeuix/utils/object';
|
||||
import Ripple from 'primevue/ripple';
|
||||
import { mergeProps } from 'vue';
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue