diff --git a/examples/sites/demos/apis/modal.js b/examples/sites/demos/apis/modal.js index 22b4567d48..322c38c687 100644 --- a/examples/sites/demos/apis/modal.js +++ b/examples/sites/demos/apis/modal.js @@ -115,7 +115,7 @@ export default { { name: 'footer-dragable', type: 'boolean', - defaultValue: 'true', + defaultValue: 'false', desc: { 'zh-CN': '控制底部可拖拽', 'en-US': 'Control bottom dragable' @@ -123,6 +123,20 @@ export default { mode: ['pc'], pcDemo: 'modal-footer' }, + { + name: 'header-dragable', + type: 'boolean', + defaultValue: 'true', + desc: { + 'zh-CN': '控制标题可拖拽', + 'en-US': 'Control header dragable' + }, + mode: ['pc'], + pcDemo: 'modal-header', + meta: { + stable: '3.28.0' + } + }, { name: 'fullscreen', type: 'boolean', diff --git a/examples/sites/demos/pc/app/modal/modal-header.vue b/examples/sites/demos/pc/app/modal/modal-header.vue index 0820c67393..bef3779f36 100644 --- a/examples/sites/demos/pc/app/modal/modal-header.vue +++ b/examples/sites/demos/pc/app/modal/modal-header.vue @@ -7,7 +7,15 @@
show-header属性,设置是否显示头部。默认值为:trueshow-header属性,设置是否显示头部。默认值为:true。header-dragable属性,设置是否可以通过标题拖动弹窗。默认值为:true。title属性,设置窗口的标题。show-footer属性设置是否显示底部。默认值为:false confirm-content属性,修改确认按钮文字;cancel-content属性,修改取消按钮文字。confirm-btn-props属性,修改确认按钮的属性;cancel-btn-props属性,修改取消按钮的属性。footerDragable属性,让底部也支持拖动(默认只有标题栏可拖动)。默认值为:falseshow-footer属性,设置是否显示底部。默认值为:false。footer-dragable属性,让底部也支持拖动(默认只有标题栏可拖动)。默认值为:false。confirm-content属性,修改确认按钮文字;通过cancel-content属性,修改取消按钮文字。confirm-btn-props属性,修改确认按钮的属性;通过cancel-btn-props属性,修改取消按钮的属性。#footer插槽,完全自定义底部内容。show-footer property to set whether the bottom is displayed. The default value is false confirm-content property; The cancer-content property modifies the cancel button text. confirm-btn-props property is used to modify the properties of the confirm button. cancer-btn-props property to modify the properties of the cancel button. footerDragable property to make the bottom also dragable (by default, only the title bar can be dragged). The default value is falsefooter-dragable property to make the bottom also dragable (by default, only the title bar can be dragged). The default value is false#footer slot.