Overwrite QuickAction in Lightning Component
-
添加implements
implements="force:lightningQuickActionWithoutHeader"
-
添加tag style
<aura:html tag="style"> .cuf-content { padding: 0 0rem !important; } .slds-p-around--medium { padding: 0rem !important; } .slds-modal__content{ overflow-y:hidden !important; height:unset !important; max-height:unset !important; } </aura:html>
-
自定义page layout
<header class="slds-modal__header"> <h2 class="slds-text-heading_medium slds-hyphenate">Quick Action</h2> </header> <div id="body"> Content </div> <footer class="slds-modal__footer slds-modal__footer_directional modal__footer"> <button class="slds-button slds-button_brand btn-position_right" onclick="{! c.hideModal }" style="float:right; margin-left: 10px;">Close</button> </footer>