Refactor #7090 - For Tab
parent
8a50610fd6
commit
7a3b228ae3
|
@ -6,7 +6,7 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { getAttribute, focus, findSingle } from '@primeuix/utils/dom';
|
import { findSingle, focus, getAttribute } from '@primeuix/utils/dom';
|
||||||
import { equals } from '@primeuix/utils/object';
|
import { equals } from '@primeuix/utils/object';
|
||||||
import Ripple from 'primevue/ripple';
|
import Ripple from 'primevue/ripple';
|
||||||
import { mergeProps } from 'vue';
|
import { mergeProps } from 'vue';
|
||||||
|
@ -128,10 +128,10 @@ export default {
|
||||||
return equals(this.$pcTabs?.d_value, this.value);
|
return equals(this.$pcTabs?.d_value, this.value);
|
||||||
},
|
},
|
||||||
id() {
|
id() {
|
||||||
return `${this.$pcTabs?.id}_tab_${this.value}`;
|
return `${this.$pcTabs?.$id}_tab_${this.value}`;
|
||||||
},
|
},
|
||||||
ariaControls() {
|
ariaControls() {
|
||||||
return `${this.$pcTabs?.id}_tabpanel_${this.value}`;
|
return `${this.$pcTabs?.$id}_tabpanel_${this.value}`;
|
||||||
},
|
},
|
||||||
attrs() {
|
attrs() {
|
||||||
return mergeProps(this.asAttrs, this.a11yAttrs, this.ptmi('root', this.ptParams));
|
return mergeProps(this.asAttrs, this.a11yAttrs, this.ptmi('root', this.ptParams));
|
||||||
|
|
Loading…
Reference in New Issue