pull/5262/head
mertsincan 2024-02-11 23:48:31 +00:00
parent d77e66415b
commit 23a21c2407
7 changed files with 13 additions and 7 deletions

View File

@ -1,5 +1,5 @@
<template>
<div ref="container" :class="cx('root')" role="group" :aria-labelledby="ariaLabelledby" v-bind="ptm('root')">
<div ref="container" :class="cx('root')" role="group" :aria-labelledby="ariaLabelledby" v-bind="ptmi('root')">
<div
v-for="(option, i) of options"
:key="getOptionRenderKey(option)"
@ -33,6 +33,7 @@ import BaseSelectButton from './BaseSelectButton.vue';
export default {
name: 'SelectButton',
extends: BaseSelectButton,
inheritAttrs: false,
emits: ['update:modelValue', 'focus', 'blur', 'change'],
data() {
return {

View File

@ -2,7 +2,7 @@
<Portal>
<div v-if="containerVisible" :ref="maskRef" @mousedown="onMaskClick" :class="cx('mask')" :style="sx('mask', true, { position })" v-bind="ptm('mask')">
<transition name="p-sidebar" @enter="onEnter" @after-enter="onAfterEnter" @before-leave="onBeforeLeave" @leave="onLeave" @after-leave="onAfterLeave" appear v-bind="ptm('transition')">
<div v-if="visible" :ref="containerRef" v-focustrap :class="cx('root')" role="complementary" :aria-modal="modal" v-bind="{ ...$attrs, ...ptm('root') }">
<div v-if="visible" :ref="containerRef" v-focustrap :class="cx('root')" role="complementary" :aria-modal="modal" v-bind="ptmi('root')">
<slot v-if="$slots.container" name="container" :onClose="hide" :closeCallback="hide"></slot>
<template v-else>
<div :ref="headerContainerRef" :class="cx('header')" v-bind="ptm('header')">

View File

@ -1,5 +1,5 @@
<template>
<div :class="cx('root')" :style="[sx('root'), containerStyle]" aria-hidden="true" v-bind="ptm('root')"></div>
<div :class="cx('root')" :style="[sx('root'), containerStyle]" aria-hidden="true" v-bind="ptmi('root')"></div>
</template>
<script>
@ -8,6 +8,7 @@ import BaseSkeleton from './BaseSkeleton.vue';
export default {
name: 'Skeleton',
extends: BaseSkeleton,
inheritAttrs: false,
computed: {
containerStyle() {
if (this.size) return { width: this.size, height: this.size, borderRadius: this.borderRadius };

View File

@ -1,5 +1,5 @@
<template>
<div :class="cx('root')" @click="onBarClick" v-bind="ptm('root')" :data-p-sliding="false">
<div :class="cx('root')" @click="onBarClick" v-bind="ptmi('root')" :data-p-sliding="false">
<span :class="cx('range')" :style="[sx('range'), rangeStyle]" v-bind="ptm('range')"></span>
<span
v-if="!range"
@ -68,6 +68,7 @@ import BaseSlider from './BaseSlider.vue';
export default {
name: 'Slider',
extends: BaseSlider,
inheritAttrs: false,
emits: ['update:modelValue', 'change', 'slideend'],
dragging: false,
handleIndex: null,

View File

@ -1,5 +1,5 @@
<template>
<div :ref="containerRef" :class="containerClass" :style="[style, sx('root')]" v-bind="ptm('root')">
<div :ref="containerRef" :class="containerClass" :style="[style, sx('root')]" v-bind="ptmi('root')">
<slot name="button" :onClick="onClick" :toggleCallback="onClick">
<SDButton
type="button"
@ -63,6 +63,7 @@ import BaseSpeedDial from './BaseSpeedDial.vue';
export default {
name: 'SpeedDial',
extends: BaseSpeedDial,
inheritAttrs: false,
emits: ['click', 'show', 'hide', 'focus', 'blur'],
documentClickListener: null,
container: null,

View File

@ -1,5 +1,5 @@
<template>
<div :class="cx('root')" :style="sx('root')" :data-p-resizing="false" v-bind="ptm('root', getPTOptions())">
<div :class="cx('root')" :style="sx('root')" :data-p-resizing="false" v-bind="ptmi('root', getPTOptions())">
<template v-for="(panel, i) of panels" :key="i">
<component :is="panel" tabindex="-1"></component>
<div
@ -28,6 +28,7 @@ import BaseSplitter from './BaseSplitter.vue';
export default {
name: 'Splitter',
extends: BaseSplitter,
inheritAttrs: false,
emits: ['resizestart', 'resizeend', 'resize'],
dragging: false,
mouseMoveListener: null,

View File

@ -1,5 +1,5 @@
<template>
<div ref="container" :class="cx('root')" v-bind="ptm('root', getPTOptions)">
<div ref="container" :class="cx('root')" v-bind="ptmi('root', getPTOptions)">
<slot></slot>
</div>
</template>
@ -10,6 +10,7 @@ import BaseSplitterPanel from './BaseSplitterPanel.vue';
export default {
name: 'SplitterPanel',
extends: BaseSplitterPanel,
inheritAttrs: false,
computed: {
isNested() {
return this.$slots.default().some((child) => {