fastlion-amis
Version:
一种MIS页面生成工具
268 lines (250 loc) • 5.84 kB
text/typescript
import styled from 'styled-components';
import Modal from 'antd/lib/Modal';
import Spin from 'antd/lib/Spin';
export const WrapperBtn = styled.button.attrs({
className: 'lion-export-btn'
})`
font-size: 13px;
background-color: #3574ee;
box-shadow: none;
margin-bottom: 0px !important;
border-color: #2a87eb;
text-shadow: none;
color: #fff !important;
font-weight: 400;
white-space: nowrap;
text-align: center;
border: 1px solid #d9d9d9;
border-radius: 4px;
line-height: 1.499 !important;
cursor: pointer;
font-family: Arial, Helvetica, sans-serif !important;
padding: 4px 12px;
height: 31px;
&:hover {
background-color: #007df1;
border-color: #0076e4;
color: #fff;
}
`;
export const WrapperModal = styled(Modal).attrs({
className: 'lion-cell-export', width: '100%'
})`
.lion-popover-0 {
padding-top: 0;
.ant-popover-inner-content {
padding: 0;
}
}
.lion-popover-1 {
padding-top: 0;
.ant-popover-inner-content {
padding: 0;
}
}
.lion-popover-2 {
padding-top: 0;
.ant-popover-inner-content {
padding: 0;
}
}
.ant-modal-content {
width: 800px;
margin: 0 auto;
.ant-modal-close {
.ant-modal-close-x {
width: 28px;
height: 28px;
line-height: 40px;
}
}
.ant-modal-header {
border-bottom: 1px solid #e8e8e8;
padding: 0 20px;
height: 40px;
min-height: 40px;
max-height: 40px;
color: #444;
font-size: 14px;
font-weight: 700;
box-sizing: border-box;
display: flex;
align-items: center;
justify-content: space-between;
.ant-modal-title {
font-weight: 700;
}
}
.ant-modal-body {
padding: 0px 16px;
color: #606266;
font-size: 14px;
word-break: break-all;
.my-select {
.ant-select-selector {
border: 0 !important;
}
}
.my-field-select {
width: 100% !important;
.ant-select-selector {
border: 1px solid #d9d9d9 !important;
.ant-select-selection-search {
input {
display: none;
}
}
}
}
.ant-select {
width: 100%;
margin-right: 0px;
.ant-select-selector {
font-size: 12px;
width: 100%;
border: 0;
.ant-select-selection-search {
width: 100%;
left: 0;
input {
-webkit-appearance: none;
background-color: #fff;
background-image: none;
border-radius: 4px;
border: 1px solid #dcdfe6 ;
box-sizing: border-box;
color: #606266;
font-size: inherit;
line-height: 40px;
outline: none;
padding: 0 15px;
transition: border-color 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);
width: 100%;
opacity: 1 !important;
}
}
}
}
}
}
@media screen and (max-width:767px) {
.ant-modal-content{
border-radius:8px;
.ant-modal-header{
border-radius:8px 8px 0 0;
}
.ant-modal-body{
.lion-export-loading{
border-radius:8px;
}
}
.ant-modal-footer{
padding:0;
border-radius:0px 0px 8px 8px;
.lion-export-btns{
border-radius:0 !important;
}
.lion-export-btn{
height: 41px;
margin-left:0px !important;
width:83px;
border: 0;
border-radius:0;
:first-child{
border-radius:0px 0px 0px 8px;
}
:last-child{
width:85px;
border-radius:0px 0px 8px 0px;
}
}
}
}
}
`;
export const WrapperPopover = styled.div`
min-width: 105px;
transform-origin: center top;
z-index: 10039;
border: 1px solid #e4e7ed;
border-radius: 4px;
background-color: #fff;
box-shadow: 0 2px 12px 0 rgb(0 0 0 / 10%);
box-sizing: border-box;
margin: 5px 0;
.lion-export-popover-container {
overflow: hidden;
position: relative;
.lion-export-popover-hide {
margin-bottom: 0px;
margin-right: -8px;
overflow: hidden;
height: 100%;
ul {
list-style: none;
padding: 6px 0;
margin: 0;
box-sizing: border-box;
.list-active {
color: #3582fb;
font-weight: 700;
}
div {
font-size: 12px;
padding: 0 20px;
position: relative;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
color: #606266;
height: 34px;
line-height: 34px;
box-sizing: border-box;
cursor: pointer;
:hover {
background-color: #f5f7fa;
}
:active {
color: #3582fb;
font-weight: 700;
}
}
}
}
}
`;
export const WrapperModalBody = styled.div`
.lion-popover {
top: 39px !important;
padding-top: 0;
.ant-popover-inner-content {
padding: 0;
}
}
`;
export const WrapperSpin = styled.div.attrs({
className: "lion-export-loading"
})`
position: absolute;
z-index: 2000;
background-color: hsla(0, 0%, 100%, 0.9);
margin: 0;
top: 0;
right: 0;
bottom: 0;
left: 0;
transition: opacity 0.3s;
.lion-table-loading-wrapper {
top: 50%;
margin-top: -21px;
width: 100%;
text-align: center;
position: absolute;
.ant-spin {
span {
font-size: 36px;
font-weight: 600;
}
}
}
`;