Browse Source
Merge pull request #1752 from chenli1989/main
pref: Optimize tabs dropdown-menu style
pull/1758/head
jinmao88
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
34 additions and
0 deletions
-
src/layouts/default/tabs/index.less
-
src/views/demo/page/form/step/data.tsx
|
|
@ -181,6 +181,25 @@ html[data-theme='light'] { |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.ant-tabs-dropdown-menu { |
|
|
|
|
|
&-title-content { |
|
|
|
|
|
display: flex; |
|
|
|
|
|
align-items: center; |
|
|
|
|
|
|
|
|
|
|
|
.@{prefix-cls} { |
|
|
|
|
|
&-content__info { |
|
|
|
|
|
width: auto; |
|
|
|
|
|
margin-left: 0; |
|
|
|
|
|
line-height: 28px; |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
&-item-remove { |
|
|
|
|
|
margin-left: auto; |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
.multiple-tabs__dropdown { |
|
|
.multiple-tabs__dropdown { |
|
|
.ant-dropdown-content { |
|
|
.ant-dropdown-content { |
|
|
width: 172px; |
|
|
width: 172px; |
|
|
|
|
|
@ -15,6 +15,9 @@ export const step1Schemas: FormSchema[] = [ |
|
|
}, |
|
|
}, |
|
|
], |
|
|
], |
|
|
}, |
|
|
}, |
|
|
|
|
|
colProps: { |
|
|
|
|
|
span: 24, |
|
|
|
|
|
}, |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
field: 'fac', |
|
|
field: 'fac', |
|
|
@ -23,6 +26,9 @@ export const step1Schemas: FormSchema[] = [ |
|
|
required: true, |
|
|
required: true, |
|
|
defaultValue: 'test@example.com', |
|
|
defaultValue: 'test@example.com', |
|
|
slot: 'fac', |
|
|
slot: 'fac', |
|
|
|
|
|
colProps: { |
|
|
|
|
|
span: 24, |
|
|
|
|
|
}, |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
field: 'pay', |
|
|
field: 'pay', |
|
|
@ -37,6 +43,9 @@ export const step1Schemas: FormSchema[] = [ |
|
|
label: '收款人姓名', |
|
|
label: '收款人姓名', |
|
|
defaultValue: 'Vben', |
|
|
defaultValue: 'Vben', |
|
|
required: true, |
|
|
required: true, |
|
|
|
|
|
colProps: { |
|
|
|
|
|
span: 24, |
|
|
|
|
|
}, |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
field: 'money', |
|
|
field: 'money', |
|
|
@ -49,6 +58,9 @@ export const step1Schemas: FormSchema[] = [ |
|
|
prefix: () => '¥', |
|
|
prefix: () => '¥', |
|
|
}; |
|
|
}; |
|
|
}, |
|
|
}, |
|
|
|
|
|
colProps: { |
|
|
|
|
|
span: 24, |
|
|
|
|
|
}, |
|
|
}, |
|
|
}, |
|
|
]; |
|
|
]; |
|
|
|
|
|
|
|
|
@ -59,5 +71,8 @@ export const step2Schemas: FormSchema[] = [ |
|
|
label: '支付密码', |
|
|
label: '支付密码', |
|
|
required: true, |
|
|
required: true, |
|
|
defaultValue: '123456', |
|
|
defaultValue: '123456', |
|
|
|
|
|
colProps: { |
|
|
|
|
|
span: 24, |
|
|
|
|
|
}, |
|
|
}, |
|
|
}, |
|
|
]; |
|
|
]; |
|
|
|