Commit 7c21eb9b3ac52f72ef5978cd4005622861291ac6

Authored by jinmao88
Committed by GitHub
2 parents 770574c9 de266e53

Merge pull request #1752 from chenli1989/main

pref: Optimize tabs dropdown-menu style
src/layouts/default/tabs/index.less
... ... @@ -181,6 +181,25 @@ html[data-theme='light'] {
181 181 }
182 182 }
183 183  
  184 +.ant-tabs-dropdown-menu {
  185 + &-title-content {
  186 + display: flex;
  187 + align-items: center;
  188 +
  189 + .@{prefix-cls} {
  190 + &-content__info {
  191 + width: auto;
  192 + margin-left: 0;
  193 + line-height: 28px;
  194 + }
  195 + }
  196 + }
  197 +
  198 + &-item-remove {
  199 + margin-left: auto;
  200 + }
  201 +}
  202 +
184 203 .multiple-tabs__dropdown {
185 204 .ant-dropdown-content {
186 205 width: 172px;
... ...
src/views/demo/page/form/step/data.tsx
... ... @@ -15,6 +15,9 @@ export const step1Schemas: FormSchema[] = [
15 15 },
16 16 ],
17 17 },
  18 + colProps: {
  19 + span: 24,
  20 + },
18 21 },
19 22 {
20 23 field: 'fac',
... ... @@ -23,6 +26,9 @@ export const step1Schemas: FormSchema[] = [
23 26 required: true,
24 27 defaultValue: 'test@example.com',
25 28 slot: 'fac',
  29 + colProps: {
  30 + span: 24,
  31 + },
26 32 },
27 33 {
28 34 field: 'pay',
... ... @@ -37,6 +43,9 @@ export const step1Schemas: FormSchema[] = [
37 43 label: '收款人姓名',
38 44 defaultValue: 'Vben',
39 45 required: true,
  46 + colProps: {
  47 + span: 24,
  48 + },
40 49 },
41 50 {
42 51 field: 'money',
... ... @@ -49,6 +58,9 @@ export const step1Schemas: FormSchema[] = [
49 58 prefix: () => '¥',
50 59 };
51 60 },
  61 + colProps: {
  62 + span: 24,
  63 + },
52 64 },
53 65 ];
54 66  
... ... @@ -59,5 +71,8 @@ export const step2Schemas: FormSchema[] = [
59 71 label: '支付密码',
60 72 required: true,
61 73 defaultValue: '123456',
  74 + colProps: {
  75 + span: 24,
  76 + },
62 77 },
63 78 ];
... ...