Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

表单组件props属性完善 Picker组件属性完善 #1508

Merged
merged 1 commit into from
Dec 14, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 2 additions & 6 deletions packages/taro-components/types/Checkbox.d.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
import { ComponentType } from 'react'
import { StandardProps, BaseEventFunction } from './common'
import { StandardProps, BaseEventFunction, FormItemProps } from './common'

interface CheckboxGroupProps extends StandardProps {
/**
* 表单组件中加上 name 来作为 key
*/
name: string;
interface CheckboxGroupProps extends StandardProps, FormItemProps {
/**
* <checkbox-group/>中选中项发生改变是触发 change 事件
*
Expand Down
2 changes: 0 additions & 2 deletions packages/taro-components/types/Input.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,6 @@ interface InputProps extends StandardProps, FormItemProps {
* event.detail = {value: value}
*/
onConfirm?: BaseEventFunction

name?: string
}

declare const Input: ComponentType<InputProps>
Expand Down
2 changes: 1 addition & 1 deletion packages/taro-components/types/Picker.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ interface PickerRegionProps extends PickerStandardProps {
/**
* 仅当 mode = region 时有效,可为每一列的顶部添加一个自定义的项
*/
customItem: string
customItem?: string
}

declare const Picker: ComponentType<
Expand Down
8 changes: 2 additions & 6 deletions packages/taro-components/types/Radio.d.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
import { ComponentType } from 'react'
import { StandardProps, BaseEventFunction } from './common'
import { StandardProps, BaseEventFunction, FormItemProps } from './common'

interface RadioGroupProps extends StandardProps {
/**
* 表单组件中加上 name 来作为 key
*/
name: string;
interface RadioGroupProps extends StandardProps, FormItemProps {
onChange?: BaseEventFunction
}

Expand Down