ant-modal 修改 ant-modal-body 滚动条样式
ant-modal 修改 ant-modal-body 滚动条样式,代码如下:
::v-deep .ant-modal-body { display: flex; justify-content: space-around; height: calc(100vh - 150px); overflow-y: auto; &::-webkit-scrollbar { width: 8px; height: 2px; background: #dee4e9; border-radius: 6px; /*外层轨道*/ } &::-webkit-scrollbar-thumb { display: block; width: 8px; margin: 0 auto; border-radius: 6px; background: rgba(16, 122, 250, 0.5); /*内层轨道*/ } }
生活是痛苦的白天,死亡是凉爽的夜晚。