diff --git a/api-generator/components/speeddial.js b/api-generator/components/speeddial.js index 21b21112f..db135fca0 100644 --- a/api-generator/components/speeddial.js +++ b/api-generator/components/speeddial.js @@ -54,13 +54,13 @@ const SpeedDialProps = [ description: "Whether the actions close when clicked outside." }, { - name: "buttonClassName", + name: "buttonClass", type: "string", default: "null", description: "Style class of the button element." }, { - name: "maskClassName", + name: "maskClass", type: "string", default: "null", description: "Style class of the mask element." diff --git a/src/components/speeddial/SpeedDial.d.ts b/src/components/speeddial/SpeedDial.d.ts index 1ef430b85..776540d89 100644 --- a/src/components/speeddial/SpeedDial.d.ts +++ b/src/components/speeddial/SpeedDial.d.ts @@ -10,9 +10,9 @@ interface SpeedDialProps { mask?: boolean; disabled?: boolean; hideOnClickOutside?: boolean; - buttonClassName?: string; + buttonClass?: string; maskStyle?: string; - maskClassName?: string; + maskClass?: string; showIcon?: string; hideIcon?: string; rotateAnimation?: boolean; diff --git a/src/components/speeddial/SpeedDial.vue b/src/components/speeddial/SpeedDial.vue index 183689cd2..92362272d 100644 --- a/src/components/speeddial/SpeedDial.vue +++ b/src/components/speeddial/SpeedDial.vue @@ -1,7 +1,7 @@ @@ -61,9 +61,9 @@ export default { type: Boolean, default: true }, - buttonClassName: null, + buttonClass: null, maskStyle: null, - maskClassName: null, + maskClass: null, showIcon: { type: String, default: 'pi pi-plus' @@ -243,18 +243,18 @@ export default { 'p-disabled': this.disabled }, this.class]; }, - buttonClass() { + buttonClassName() { return ['p-speeddial-button p-button-rounded', { 'p-speeddial-rotate': this.rotateAnimation && !this.hideIcon - }, this.buttonClassName]; + }, this.buttonClass]; }, iconClassName() { return this.d_visible && !!this.hideIcon ? this.hideIcon : this.showIcon; }, - maskClass() { + maskClassName() { return ['p-speeddial-mask', { 'p-speeddial-mask-visible': this.d_visible - }, this.maskClassName]; + }, this.maskClass]; } }, components: { diff --git a/src/views/speeddial/SpeedDialDoc.vue b/src/views/speeddial/SpeedDialDoc.vue index b1cd40920..6fdb59031 100644 --- a/src/views/speeddial/SpeedDialDoc.vue +++ b/src/views/speeddial/SpeedDialDoc.vue @@ -132,13 +132,13 @@ items: [ Whether the actions close when clicked outside. - buttonClassName + buttonClass string null Style class of the button element. - maskClassName + maskClass string null Style class of the mask element.