first commit
This commit is contained in:
38
frontend/node_modules/antd/es/date-picker/style/variants.js
generated
vendored
Normal file
38
frontend/node_modules/antd/es/date-picker/style/variants.js
generated
vendored
Normal file
@@ -0,0 +1,38 @@
|
||||
import { unit } from '@ant-design/cssinjs';
|
||||
import { genBorderlessStyle, genFilledStyle, genOutlinedStyle, genUnderlinedStyle } from '../../input/style/variants';
|
||||
const genVariantsStyle = token => {
|
||||
const {
|
||||
componentCls
|
||||
} = token;
|
||||
return {
|
||||
[componentCls]: [Object.assign(Object.assign(Object.assign(Object.assign({}, genOutlinedStyle(token)), genUnderlinedStyle(token)), genFilledStyle(token)), genBorderlessStyle(token)),
|
||||
// ========================= Multiple =========================
|
||||
{
|
||||
'&-outlined': {
|
||||
[`&${componentCls}-multiple ${componentCls}-selection-item`]: {
|
||||
background: token.multipleItemBg,
|
||||
border: `${unit(token.lineWidth)} ${token.lineType} ${token.multipleItemBorderColor}`
|
||||
}
|
||||
},
|
||||
'&-filled': {
|
||||
[`&${componentCls}-multiple ${componentCls}-selection-item`]: {
|
||||
background: token.colorBgContainer,
|
||||
border: `${unit(token.lineWidth)} ${token.lineType} ${token.colorSplit}`
|
||||
}
|
||||
},
|
||||
'&-borderless': {
|
||||
[`&${componentCls}-multiple ${componentCls}-selection-item`]: {
|
||||
background: token.multipleItemBg,
|
||||
border: `${unit(token.lineWidth)} ${token.lineType} ${token.multipleItemBorderColor}`
|
||||
}
|
||||
},
|
||||
'&-underlined': {
|
||||
[`&${componentCls}-multiple ${componentCls}-selection-item`]: {
|
||||
background: token.multipleItemBg,
|
||||
border: `${unit(token.lineWidth)} ${token.lineType} ${token.multipleItemBorderColor}`
|
||||
}
|
||||
}
|
||||
}]
|
||||
};
|
||||
};
|
||||
export default genVariantsStyle;
|
||||
Reference in New Issue
Block a user