@@ -189,18 +189,22 @@ export const props = {
189189 type : [ String , Array , Object ] ,
190190 default : null
191191 } ,
192+ // TODO: Rename to `noHeader` and deprecate `hideHeader`
192193 hideHeader : {
193194 type : Boolean ,
194195 default : false
195196 } ,
197+ // TODO: Rename to `noFooter` and deprecate `hideFooter`
196198 hideFooter : {
197199 type : Boolean ,
198200 default : false
199201 } ,
202+ // TODO: Rename to `noHeaderClose` and deprecate `hideHeaderClose`
200203 hideHeaderClose : {
201204 type : Boolean ,
202205 default : false
203206 } ,
207+ // TODO: Rename to `noBackdrop` and deprecate `hideBackdrop`
204208 hideBackdrop : {
205209 type : Boolean ,
206210 default : false
@@ -835,6 +839,7 @@ export const BModal = /*#__PURE__*/ Vue.extend({
835839 // Modal header
836840 let header = h ( )
837841 if ( ! this . hideHeader ) {
842+ // TODO: Rename slot to `header` and deprecate `modal-header`
838843 let modalHeader = this . normalizeSlot ( 'modal-header' , this . slotScope )
839844 if ( ! modalHeader ) {
840845 let closeButton = h ( )
@@ -851,10 +856,12 @@ export const BModal = /*#__PURE__*/ Vue.extend({
851856 } ,
852857 on : { click : this . onClose }
853858 } ,
859+ // TODO: Rename slot to `header-close` and deprecate `modal-header-close`
854860 [ this . normalizeSlot ( 'modal-header-close' ) ]
855861 )
856862 }
857863 const domProps =
864+ // TODO: Rename slot to `title` and deprecate `modal-title`
858865 ! this . hasNormalizedSlot ( 'modal-title' ) && this . titleHtml
859866 ? { innerHTML : this . titleHtml }
860867 : { }
@@ -867,6 +874,7 @@ export const BModal = /*#__PURE__*/ Vue.extend({
867874 attrs : { id : this . safeId ( '__BV_modal_title_' ) } ,
868875 domProps
869876 } ,
877+ // TODO: Rename slot to `title` and deprecate `modal-title`
870878 [ this . normalizeSlot ( 'modal-title' , this . slotScope ) || stripTags ( this . title ) ]
871879 ) ,
872880 closeButton
@@ -899,6 +907,7 @@ export const BModal = /*#__PURE__*/ Vue.extend({
899907 // Modal footer
900908 let footer = h ( )
901909 if ( ! this . hideFooter ) {
910+ // TODO: Rename slot to `footer` and deprecate `modal-footer`
902911 let modalFooter = this . normalizeSlot ( 'modal-footer' , this . slotScope )
903912 if ( ! modalFooter ) {
904913 let cancelButton = h ( )
@@ -916,6 +925,7 @@ export const BModal = /*#__PURE__*/ Vue.extend({
916925 on : { click : this . onCancel }
917926 } ,
918927 [
928+ // TODO: Rename slot to `cancel-button` and deprecate `modal-cancel`
919929 this . normalizeSlot ( 'modal-cancel' ) ||
920930 ( cancelHtml ? h ( 'span' , { domProps : cancelHtml } ) : stripTags ( this . cancelTitle ) )
921931 ]
@@ -934,6 +944,7 @@ export const BModal = /*#__PURE__*/ Vue.extend({
934944 on : { click : this . onOk }
935945 } ,
936946 [
947+ // TODO: Rename slot to `ok-button` and deprecate `modal-ok`
937948 this . normalizeSlot ( 'modal-ok' ) ||
938949 ( okHtml ? h ( 'span' , { domProps : okHtml } ) : stripTags ( this . okTitle ) )
939950 ]
@@ -1009,6 +1020,7 @@ export const BModal = /*#__PURE__*/ Vue.extend({
10091020 'aria-labelledby' :
10101021 this . hideHeader ||
10111022 this . ariaLabel ||
1023+ // TODO: Rename slot to `title` and deprecate `modal-title`
10121024 ! ( this . hasNormalizedSlot ( 'modal-title' ) || this . titleHtml || this . title )
10131025 ? null
10141026 : this . safeId ( '__BV_modal_title_' ) ,
@@ -1052,6 +1064,7 @@ export const BModal = /*#__PURE__*/ Vue.extend({
10521064 backdrop = h (
10531065 'div' ,
10541066 { staticClass : 'modal-backdrop' , attrs : { id : this . safeId ( '__BV_modal_backdrop_' ) } } ,
1067+ // TODO: Rename slot to `backdrop` and deprecate `modal-backdrop`
10551068 [ this . normalizeSlot ( 'modal-backdrop' ) ]
10561069 )
10571070 }
0 commit comments