FooterToolBar.vue 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. <template>
  2. <div class="ant-pro-footer-toolbar">
  3. <div style="float: left">
  4. <slot name="extra">{{ extra }}</slot>
  5. </div>
  6. <div style="float: right">
  7. <slot></slot>
  8. </div>
  9. </div>
  10. </template>
  11. <script>
  12. export default {
  13. name: 'FooterToolBar',
  14. props: {
  15. prefixCls: {
  16. type: String,
  17. default: 'ant-pro-footer-toolbar'
  18. },
  19. extra: {
  20. type: [String, Object],
  21. default: ''
  22. }
  23. }
  24. }
  25. </script>
  26. <style lang="less" scoped>
  27. .dark {
  28. .ant-pro-footer-toolbar {
  29. background: rgba(24, 24, 24, 1);
  30. border-top: unset;
  31. }
  32. }
  33. .ant-pro-footer-toolbar {
  34. position: fixed;
  35. width: 100%;
  36. bottom: 0;
  37. right: 0;
  38. height: 56px;
  39. line-height: 56px;
  40. box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.03);
  41. background: #ffffff8c;
  42. border-top: 1px solid #e8e8e8;
  43. padding: 0 24px;
  44. z-index: 9;
  45. &:after {
  46. content: "";
  47. display: block;
  48. clear: both;
  49. }
  50. }
  51. </style>