Skip to content

Commit

Permalink
feat: 增加 style props
Browse files Browse the repository at this point in the history
  • Loading branch information
jimczj committed Sep 7, 2018
1 parent 00bdb14 commit ac36240
Show file tree
Hide file tree
Showing 11 changed files with 28 additions and 4 deletions.
10 changes: 7 additions & 3 deletions @types/form.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,14 @@ import { MouseEvent, ComponentClass } from 'react'
import { BaseEvent } from '@tarojs/components/types/common'

declare type FormFunction = (event: BaseEvent) => void

export interface AtFormProps {
style?: string | object,
reportSubmit?: boolean,
onSubmit?: FormFunction,
style?: string

reportSubmit?: boolean

onSubmit?: FormFunction

onReset?: FormFunction
}

Expand Down
2 changes: 2 additions & 0 deletions @types/input-number.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import { MouseEvent, ComponentClass } from 'react'

export interface AtInputNumberProps {
style?: string

min?: number

max?: number
Expand Down
2 changes: 2 additions & 0 deletions @types/input.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ declare type InputValue = string | number
declare type InputFunction = (value: string | number, event: BaseEvent) => void

export interface AtInputProps {
style?: string

name: string

title?: string
Expand Down
2 changes: 2 additions & 0 deletions @types/nav-bar.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ import { MouseEvent, ComponentClass } from 'react'
import { BaseEventFunction } from '@tarojs/components/types/common'

export interface AtNavBarProps {
style?: string

title?: string

fixed?: boolean
Expand Down
2 changes: 2 additions & 0 deletions @types/radio.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ export interface Option<T> {
}

export interface AtRadioProps<T> {
style?: string

value?: T

options: Array<Option<T>>
Expand Down
4 changes: 3 additions & 1 deletion @types/rate.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,16 @@ import { MouseEvent, ComponentClass } from 'react'
import { BaseEventFunction, BaseEvent } from '@tarojs/components/types/common'

export interface AtRateProps {
style?: string

size?: number

value?: number

max?: number

margin?: number

onChange?: BaseEventFunction
}

Expand Down
2 changes: 2 additions & 0 deletions @types/segmented-control.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ import { MouseEvent, ComponentClass } from 'react'
import { BaseEventFunction, BaseEvent } from '@tarojs/components/types/common'

export interface AtSegmentedControlProps {
style?: string

current?: number

color?: string
Expand Down
2 changes: 2 additions & 0 deletions @types/switch.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ import { MouseEvent, ComponentClass } from 'react'
import { BaseEventFunction, BaseEvent } from '@tarojs/components/types/common'

export interface AtSwitchProps {
style?: string

title?: string

color?: string
Expand Down
2 changes: 2 additions & 0 deletions @types/tab-bar.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ export interface TabItem {
}

export interface AtTabBarProps {
style?: string

fixed?: boolean

backgroundColor?: string
Expand Down
2 changes: 2 additions & 0 deletions @types/tabs.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ import { MouseEvent, ComponentClass } from 'react'
import { BaseEventFunction, BaseEvent } from '@tarojs/components/types/common'

export interface AtTabsProps {
style?: string

current?: number

scroll?: boolean
Expand Down
2 changes: 2 additions & 0 deletions @types/textarea.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ import { MouseEvent, ComponentClass } from 'react'
import { BaseEventFunction, BaseEvent } from '@tarojs/components/types/common'

export interface AtTextareaProps {
style?: string

value?: string

maxlength?: string
Expand Down

0 comments on commit ac36240

Please sign in to comment.