Skip to content

Commit 05948fc

Browse files
committed
1 Form 组件 types 补充
2 Button 组件 文档优化 3 Radio 组件 样式优化
1 parent 3a3eec6 commit 05948fc

File tree

3 files changed

+27
-14
lines changed

3 files changed

+27
-14
lines changed

components/button/demo/basic.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
<cn>
22
#### 按钮类型
3-
按钮有四种类型:主按钮、次按钮、虚线按钮、危险按钮和链接按钮。主按钮在同一个操作区域最多出现一次。
3+
按钮有五种类型:主按钮、次按钮、虚线按钮、危险按钮和链接按钮。主按钮在同一个操作区域最多出现一次。
44
</cn>
55

66
<us>
77
#### Type
8-
There are `primary` button, `default` button, `dashed` button and `danger` button and `link` button in antd.
8+
There are `primary` button, `default` button, `dashed` button , `danger` button and `link` button in antd.
99
</us>
1010

1111
```tpl

components/radio/style/index.less

+12-12
Original file line numberDiff line numberDiff line change
@@ -184,18 +184,18 @@ span.@{radio-prefix-cls} + * {
184184
line-height: @input-height-sm - 2px;
185185
}
186186

187-
&:not(:first-child) {
188-
&::before {
189-
position: absolute;
190-
top: 0;
191-
left: -1px;
192-
display: block;
193-
width: 1px;
194-
height: 100%;
195-
background-color: @border-color-base;
196-
content: '';
197-
}
198-
}
187+
// &:not(:first-child) {
188+
// &::before {
189+
// position: absolute;
190+
// top: 0;
191+
// left: -1px;
192+
// display: block;
193+
// width: 1px;
194+
// height: 100%;
195+
// background-color: @border-color-base;
196+
// content: '';
197+
// }
198+
// }
199199
&:first-child {
200200
border-left: @border-width-base @border-style-base @border-color-base;
201201
border-radius: @border-radius-base 0 0 @border-radius-base;

types/form/form.d.ts

+13
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
// Definitions: https://github.com/vueComponent/ant-design-vue/types
44

55
import { AntdComponent } from '../component';
6+
import { Col } from '../grid/col';
67
import Vue from 'vue';
78
import { FormItem } from './form-item';
89

@@ -348,13 +349,25 @@ export declare class Form extends AntdComponent {
348349
*/
349350
hideRequiredMark: boolean;
350351

352+
/**
353+
* The layout of label. You can set span offset to something like {span: 3, offset: 12} or sm: {span: 3, offset: 12} same as with <Col>
354+
* @type Col
355+
*/
356+
labelCol: Col;
357+
351358
/**
352359
* Define form layout
353360
* @default 'horizontal'
354361
* @type string
355362
*/
356363
layout: 'horizontal' | 'inline' | 'vertical';
357364

365+
/**
366+
* The layout for input controls, same as labelCol
367+
* @type Col
368+
*/
369+
wrapperCol: Col;
370+
358371
/**
359372
* Automate Form.create, Recommended for use under the template component, and cannot be used with Form.create().
360373
* You should use $form.createForm to instead it after 1.1.9.

0 commit comments

Comments
 (0)