mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-10 01:12:37 +00:00
Components update v.3.21.0
This commit is contained in:
parent
18497d55b1
commit
defd6ff6e2
242 changed files with 28022 additions and 17523 deletions
|
@ -4,7 +4,19 @@
|
|||
<slot v-if="!toggleable" name="legend">
|
||||
<span :id="ariaId + '_header'" class="p-fieldset-legend-text">{{ legend }}</span>
|
||||
</slot>
|
||||
<a v-if="toggleable" :id="ariaId + '_header'" v-ripple tabindex="0" role="button" :aria-controls="ariaId + '_content'" :aria-expanded="!d_collapsed" :aria-label="toggleButtonProps || legend" @click="toggle" @keydown="onKeyDown">
|
||||
<a
|
||||
v-if="toggleable"
|
||||
:id="ariaId + '_header'"
|
||||
v-ripple
|
||||
tabindex="0"
|
||||
role="button"
|
||||
:aria-controls="ariaId + '_content'"
|
||||
:aria-expanded="!d_collapsed"
|
||||
:aria-label="buttonAriaLabel"
|
||||
@click="toggle"
|
||||
@keydown="onKeyDown"
|
||||
v-bind="toggleButtonProps"
|
||||
>
|
||||
<span :class="iconClass"></span>
|
||||
<slot name="legend">
|
||||
<span class="p-fieldset-legend-text">{{ legend }}</span>
|
||||
|
@ -22,8 +34,8 @@
|
|||
</template>
|
||||
|
||||
<script>
|
||||
import { UniqueComponentId } from 'primevue/utils';
|
||||
import Ripple from 'primevue/ripple';
|
||||
import { UniqueComponentId } from 'primevue/utils';
|
||||
|
||||
export default {
|
||||
name: 'Fieldset',
|
||||
|
@ -32,7 +44,10 @@ export default {
|
|||
legend: String,
|
||||
toggleable: Boolean,
|
||||
collapsed: Boolean,
|
||||
toggleButtonProps: String
|
||||
toggleButtonProps: {
|
||||
type: null,
|
||||
default: null
|
||||
}
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
|
@ -72,6 +87,9 @@ export default {
|
|||
},
|
||||
ariaId() {
|
||||
return UniqueComponentId();
|
||||
},
|
||||
buttonAriaLabel() {
|
||||
return this.toggleButtonProps && this.toggleButtonProps['aria-label'] ? this.toggleButtonProps['aria-label'] : this.legend;
|
||||
}
|
||||
},
|
||||
directives: {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue