Options
All
  • Public
  • Public/Protected
  • All
Menu

zent

Index

Modules

Enumerations

Classes

Interfaces

Type aliases

Variables

Functions

Object literals

Type aliases

$MergeParams

$MergeParams<T>: $MergeParams<T>

Type parameters

  • T

ActionButtonClickHandler

ActionButtonClickHandler: function

Type declaration

    • (e?: function): Promise<any> | boolean | void
    • Parameters

      • Optional e: function
          • (): void
          • Returns void

      Returns Promise<any> | boolean | void

AlertTypes

AlertTypes: "info" | "success" | "warning" | "error"

ArgumentTypes

ArgumentTypes<F>: ArgumentTypes<F>

Type parameters

  • F: Function

CascaderHandler

CascaderHandler: function

Type declaration

    • Parameters

      Returns void

CascaderValue

CascaderValue: string | number

ColorFormats

ColorFormats: "rgb" | "prgb" | "hex" | "hex3" | "hex4" | "hex6" | "hex8" | "name" | "hsl" | "hsv"

ColorInput

ColorInput: string | IRGB | IRGBA | IHSL | IHSLA | IHSV | IHSVA | TinyColor

ColorPickerType

ColorPickerType: "default" | "simple"

CompareOperation

ContainerChild

ContainerChild: ReactElement<INoticeWrapProps, NoticeWrap>

DateRangeQuickPickerChangeCallback

DateRangeQuickPickerChangeCallback: function

Type declaration

    • (value: RangeValue, choosePresetValue?: number): void
    • Parameters

      • value: RangeValue
      • Optional choosePresetValue: number

      Returns void

DateRangeQuickPickerPresetValue

DateRangeQuickPickerPresetValue: number | RangeType

EqualityFn

EqualityFn: function

Type declaration

    • (newArgs: unknown[], lastArgs: unknown[]): boolean
    • Parameters

      • newArgs: unknown[]
      • lastArgs: unknown[]

      Returns boolean

FechaDays

FechaDays: [string, string, string, string, string, string, string]

Parse or format dates

FechaFormatFlagHandler

FechaFormatFlagHandler: function

Type declaration

FechaFormatToken

FechaFormatToken: "D" | "DD" | "Do" | "d" | "dd" | "ddd" | "dddd" | "M" | "MM" | "MMM" | "MMMM" | "YY" | "YYYY" | "h" | "hh" | "H" | "HH" | "m" | "mm" | "s" | "ss" | "S" | "SS" | "SSS" | "a" | "A" | "ZZ"

FechaMonths

FechaMonths: [string, string, string, string, string, string, string, string, string, string, string, string]

FechaParseFlagHandler

FechaParseFlagHandler: [string, function]

FindMentionAtCaretPositionReturn

FindMentionAtCaretPositionReturn: object | object

GridFixedType

GridFixedType: "left" | "right" | true

GridPaginationType

GridPaginationType: "default" | "lite" | "mini"

GridRowClassNameType

GridRowClassNameType<Data>: string | function

Type parameters

  • Data

GridScrollPosition

GridScrollPosition: "both" | "left" | "right" | "middle"

GridSortType

GridSortType: "desc" | "asc" | ""

GridTextAlign

GridTextAlign: "left" | "right" | "center"

I18nLocaleTimePicker

I18nLocaleTimePicker: function

Type declaration

IAlertInnerProps

IAlertInnerProps: ParticalRequired<IAlertProps, "type" | "loading" | "outline" | "closable">

IAutoCompleteMenuItem

IAutoCompleteMenuItem: string | number | IAutoCompleteMenuObjectItem

IButtonHtmlType

IButtonHtmlType: "button" | "submit" | "reset"

IButtonSize

IButtonSize: "medium" | "large" | "small"

IButtonType

IButtonType: "default" | "primary" | "secondary" | "danger" | "warning" | "error" | "success"

IComputedProps

IComputedProps: object | object

IFormCheckboxFieldProps

IFormCheckboxFieldProps<Value>: IFormComponentProps<boolean, Omit<ICheckboxProps<Value>, "checked">>

Type parameters

  • Value

IFormCheckboxGroupFieldProps

IFormCheckboxGroupFieldProps<T>: IFormComponentProps<T[], Omit<ICheckboxGroupProps<T>, "value">> & object

Type parameters

  • T

IFormColorPickerFieldProps

IFormColorPickerFieldProps: IFormComponentProps<string, Omit<IColorPickerProps, "color">>

IFormComponentProps

IFormComponentProps<Value, Props, OmitKeys>: object & object & object & object | IFormFieldModelDrivenProps<Value>

Type parameters

  • Value

  • Props

  • OmitKeys: keyof IFormFieldPropsBase<Value>

IFormDatePickerField

IFormDatePickerField: IFormComponentProps<Value, Omit<IDatePickerProps, "value">>

IFormDateRangePickerFieldProps

IFormDateRangePickerFieldProps: IFormComponentProps<RangeValue, Omit<IDateRangePickerProps, "value">>

IFormDateRangeQuickPickerFieldProps

IFormDateRangeQuickPickerFieldProps: IFormComponentProps<RangeValue, Omit<IDateRangeQuickPickerProps, "value">>

IFormFieldModelProps

IFormFieldModelProps<T>: IFormFieldViewDrivenProps<T> | IFormFieldModelDrivenProps<T>

Type parameters

  • T

IFormFieldProps

IFormFieldProps<Value>: IFormFieldPropsBase<Value> & IFormFieldModelProps<Value> & object

Type parameters

  • Value

IFormInputFieldProps

IFormInputFieldProps: IFormComponentProps<string, Omit<IInputProps, "value" | "name" | "defaultValue">>

IFormMonthPickerFieldProps

IFormMonthPickerFieldProps: IFormComponentProps<Value, Omit<IMonthPickerProps, "value">>

IFormNumberInputFieldProps

IFormNumberInputFieldProps: IFormComponentProps<number | string | null, Omit<INumberInputProps, "value">>

IFormQuarterPickerFieldProps

IFormQuarterPickerFieldProps: IFormComponentProps<RangeValue, Omit<IQuarterPickerProps, "value">>

IFormRadioGroupFieldProps

IFormRadioGroupFieldProps<T>: IFormComponentProps<T | null, Omit<IRadioGroupProps<T>, "value">> & object

Type parameters

  • T

IFormSelectFieldProps

IFormSelectFieldProps<T>: IFormComponentProps<T | T[], Omit<ISelectProps, "value" | "onChange">>

Type parameters

  • T

IFormSwitchFieldProps

IFormSwitchFieldProps: IFormComponentProps<boolean, Omit<ISwitchProps, "checked">>

IFormTimePickerField

IFormTimePickerField: IFormComponentProps<Value, Omit<ITimePickerProps, "value">>

IFormTimeRangePickerFieldProps

IFormTimeRangePickerFieldProps: IFormComponentProps<RangeValue, Omit<ITimeRangePickerProps, "value">>

IFormWeekPickerFieldProps

IFormWeekPickerFieldProps: IFormComponentProps<RangeValue, Omit<IWeekPickerProps, "value">>

IFormYearPickerFieldProps

IFormYearPickerFieldProps: IFormComponentProps<Value, Omit<IYearPickerProps, "value">>

IGridBatchRender

IGridBatchRender: function

Type declaration

    • (data: any): React.ReactNode
    • Parameters

      • data: any

      Returns React.ReactNode

IGridColumnBodyRenderFunc

IGridColumnBodyRenderFunc<Data>: function

Type parameters

  • Data

Type declaration

    • (data: Data, pos: IGridCellPos, name?: string): React.ReactNode
    • Parameters

      Returns React.ReactNode

IGridInnerFixedType

IGridInnerFixedType: Exclude<GridFixedType, true>

IGridOnExpandHandler

IGridOnExpandHandler<Data>: function

Type parameters

  • Data

Type declaration

    • (data: object): any
    • Parameters

      • data: object
        • data: Data
        • event: MouseEvent<HTMLSpanElement>
        • expanded: boolean
        • index: number

      Returns any

IGridRowClickHandler

IGridRowClickHandler<Data>: function

Type parameters

  • Data

Type declaration

    • (data: Data, index: number, event: MouseEvent<HTMLTableRowElement>): any
    • Parameters

      • data: Data
      • index: number
      • event: MouseEvent<HTMLTableRowElement>

      Returns any

IInputChangeEvent

IInputChangeEvent: IInputClearEvent | ChangeEvent<HTMLInputElement>

IInputProps

INumberInputProps

INumberInputState

IProgressFormatFn

IProgressFormatFn: function

Type declaration

    • (precent: number): React.ReactNode
    • Parameters

      • precent: number

      Returns React.ReactNode

IProgressStatus

IProgressStatus: "normal" | "success" | "exception"

IProgressType

IProgressType: "line" | "circle"

ISliderProps

ITabPanelElement

ITabPanelElement<TabPanelProps>: ReactElement<PropsWithChildren<TabPanelProps>>

Type parameters

  • TabPanelProps

ITabsInnerProps

ITabsInnerProps<Id>: Required<ITabsProps<Id>>

Type parameters

  • Id: string | number

ITooltipProps

IVerticalInnerTab

IVerticalInnerTab<Id>: IInnerTab<Id> | IVerticalDivide

Type parameters

  • Id

IVerticalTab

IVerticalTab<Id>: ITab<Id> | IVerticalDivide

Type parameters

  • Id

IVerticalTabPanelProps

IVerticalTabPanelProps<Id>: ITabPanelProps<Id> | IVerticalDivide

Type parameters

  • Id

IconType

IconType: "add-page" | "approval" | "approval-o" | "arrow-down" | "arrow-up" | "assess" | "assess-o" | "back" | "bell" | "bell-o" | "business" | "business-o" | "calendar" | "calendar-o" | "capital" | "capital-o" | "caret-down" | "caret-up" | "casher" | "cashier" | "cashier-desk-o" | "channel-o" | "chart" | "chart-o" | "check" | "check-circle" | "check-circle-o" | "checkin" | "checkin-o" | "clock" | "clock-o" | "close" | "close-circle" | "close-circle-o" | "contract-o" | "countdown" | "coupon" | "coupon-o" | "customer" | "customer-o" | "customer-service" | "development-doc" | "distribution-o" | "doc" | "down" | "down-circle" | "down-circle-o" | "download" | "edit-o" | "error-circle" | "error-circle-o" | "expand-customer" | "expand-customer-o" | "export" | "feedback" | "flow-o" | "forbidden-circle" | "gift" | "goods" | "goods-o" | "hc-manage" | "hc-manage-o" | "help-circle" | "help-circle-o" | "hotline-o" | "hr" | "hr-o" | "im-o" | "info-circle" | "info-circle-o" | "inventory" | "inventory-o" | "knowledge-o" | "left" | "left-circle" | "left-circle-o" | "link" | "lock" | "marketing" | "member-o" | "message" | "message-o" | "mini-apps" | "mini-apps-o" | "more" | "nav-grid" | "nav-line" | "order" | "order-o" | "pending-circle" | "pending-payment-o" | "photo" | "plus" | "plus-circle" | "plus-circle-o" | "procurement" | "procurement-o" | "qa-o" | "qrcode" | "remove-o" | "report" | "report-forms" | "report-forms-o" | "report-o" | "right" | "right-circle" | "right-circle-o" | "rights-list-o" | "salesman-o" | "search" | "settings" | "settings-o" | "share" | "shop" | "shop-analyze-o" | "shop-decorate" | "shop-o" | "shop-template" | "smile" | "star" | "star-o" | "strategy-o" | "subtract-circle" | "subtract-circle-o" | "suggestions" | "summary" | "summary-o" | "tendency-o" | "text-guide" | "ticket" | "ticket-o" | "tools-o" | "unlock" | "up" | "up-circle" | "up-circle-o" | "upload" | "video" | "video-guide" | "visit-o" | "voice" | "warning" | "warning-o" | "wechat" | "withdraw-cash-o" | "youzan" | "youzan-o"

InputType

InputType: "text" | "number" | "password" | "textarea"

LayoutBreakPointMap

LayoutBreakPointMap: Record<LayoutBreakPoint, LayoutBreakPointName>

LayoutBreakPointName

LayoutBreakPointName: keyof LayoutBreakPoint

ListIterator

ListIterator<T, TResult>: function

Type parameters

  • T

  • TResult

Type declaration

    • (value: T, index: number, collection: ArrayLike<T>): TResult
    • Parameters

      • value: T
      • index: number
      • collection: ArrayLike<T>

      Returns TResult

LoadingTextPosition

LoadingTextPosition: "top" | "bottom" | "left" | "right"

NoticePositions

NoticePositions: "right-top" | "right-bottom" | "left-top" | "left-bottom"

ObjectKey

ObjectKey: string | number

This is a modified version from underscore. https://github.com/jashkenas/underscore/blob/master/underscore.js

With some difference:

  • It's iterative
  • Bug fixes regarding NaN, 0 and -0 values
  • Throws on non supported value types, such as Map/Set/WeakMap/WeakSet

PaginationChangeHandler

PaginationChangeHandler: function

Type declaration

    • (detail: object): any
    • Parameters

      • detail: object
        • current: number
        • pageSize: number

      Returns any

PaginationLayout

PaginationLayout: object | object | object | object | object | object

PaginationLayoutFunction

PaginationLayoutFunction: function

Type declaration

PaginationPageSizeOption

PaginationPageSizeOption: number | IPaginationPageSizeCompoundOption

ParticalRequired

ParticalRequired<T, K>: Omit<T, K> & Required<Pick<T, K>>

Type parameters

  • T

  • K: keyof T

PointId

PointId: "point-left" | "point-right" | "point-single"

PopActionCallback

PopActionCallback: function | function

PopHookCallback

PopHookCallback: function

Type declaration

    • (callback?: function, escape?: function): void
    • Parameters

      • Optional callback: function
          • (): void
          • Returns void

      • Optional escape: function
          • (): void
          • Returns void

      Returns void

PopPositions

PopPositions: "left-top" | "left-center" | "left-bottom" | "right-top" | "right-center" | "right-bottom" | "top-left" | "top-center" | "top-right" | "bottom-left" | "bottom-center" | "bottom-right" | "auto-bottom-center" | "auto-bottom-left" | "auto-bottom-right" | "auto-top-center" | "auto-top-left" | "auto-top-right"

PositionFunction

PositionFunction: function

Type declaration

PositionFunctionImpl

PositionFunctionImpl: function

Type declaration

    • (anchorBoundingBox: ClientRect, containerBoundingBox: ClientRect, contentDimension: object, options: object): IPopoverPosition
    • Parameters

      • anchorBoundingBox: ClientRect
      • containerBoundingBox: ClientRect
      • contentDimension: object
        • height: number
        • width: number
      • options: object
        • anchor: Element
        • anchorBoundingBoxViewport: any
        • container: Element
        • containerBoundingBoxViewport: any
        • cushion: number

      Returns IPopoverPosition

PresetColors

PresetColors: string[]

SketchPresetColorValue

SketchPresetColorValue: string | object

TArray

TArray<T>: T[]

Type parameters

  • T

TabType

TabType: "normal" | "card" | "button"

TablePaginationType

TablePaginationType: "default" | "lite" | "mini"

TableSortType

TableSortType: "desc" | "asc"

TextMarkFindChunksFunction

TextMarkFindChunksFunction: function

Type declaration

TextMarkSanitizeFunction

TextMarkSanitizeFunction: function

Type declaration

    • (str: string): string
    • Parameters

      • str: string

      Returns string

TextMarkSearchWords

TextMarkSearchWords: string | RegExp

TimerId

TimerId: ReturnType<setTimeout> | undefined | null

TreeRootIdArray

TreeRootIdArray: TArray<string | number>

Variables

Const ANIMATION_DELAY

ANIMATION_DELAY: 1000 = 1000

Const ANIMATION_DURATION

ANIMATION_DURATION: 400 = 400

Arrow

  • Arrow(__namedParameters: object): Element

Const ArrowBottomLeftPosition

ArrowBottomLeftPosition: function = createPlacement(locate)

Type declaration

Const ArrowBottomRightPosition

ArrowBottomRightPosition: function = createPlacement(locate)

Type declaration

Const ArrowLeftBottomPosition

ArrowLeftBottomPosition: function = createPlacement(locate)

Type declaration

Const ArrowLeftTopPosition

ArrowLeftTopPosition: function = createPlacement(locate)

Type declaration

Const ArrowRightBottomPosition

ArrowRightBottomPosition: function = createPlacement(locate)

Type declaration

Const ArrowRightTopPosition

ArrowRightTopPosition: function = createPlacement(locate)

Type declaration

Const ArrowTopLeftPosition

ArrowTopLeftPosition: function = createPlacement(locate)

Type declaration

Const ArrowTopRightPosition

ArrowTopRightPosition: function = createPlacement(locate)

Type declaration

Const AutoBottomCenter

AutoBottomCenter: function = createPlacement(locate)

Type declaration

Const AutoBottomLeft

AutoBottomLeft: function = createPlacement(locate)

Type declaration

Const AutoBottomRight

AutoBottomRight: function = createPlacement(locate)

Type declaration

Const AutoTopLeft

AutoTopLeft: function = createPlacement(locate)

Type declaration

Const AutoTopRight

AutoTopRight: function = createPlacement(locate)

Type declaration

Const BREAKPOINTS

BREAKPOINTS: LayoutBreakPoint[] = Object.keys(BREAKPOINT_MAP) as LayoutBreakPoint[]

Const BREAKPOINT_MAP

BREAKPOINT_MAP: object = (Object.keys(LayoutBreakPoint) as LayoutBreakPointName[]).reduce((m, k) => {m[LayoutBreakPoint[k]] = k;return m;}, {} as LayoutBreakPointMap)

Type declaration

Const BottomCenter

BottomCenter: function = createPlacement(locate)

Type declaration

Const BottomLeft

BottomLeft: function = createPlacement(locate)

Type declaration

Const BottomRight

BottomRight: function = createPlacement(locate)

Type declaration

Const BoundPopAction

BoundPopAction: ComponentClass<object, any> | FunctionComponent<object> = withPopover(PopAction)

Const COL

COL: 2 = 2

Const CSS_INTEGER

CSS_INTEGER: "[-\+]?\d+%?" = "[-\+]?\d+%?"

Const CSS_NUMBER

CSS_NUMBER: "[-\+]?\d*\.\d+%?" = "[-\+]?\d*\.\d+%?"

Const CSS_UNIT

CSS_UNIT: string = `(?:${CSS_NUMBER})|(?:${CSS_INTEGER})`

Const CURRENT

CURRENT: Date = new Date()

Const CURRENT_DATE

CURRENT_DATE: number = CURRENT.getDate()

Const CURRENT_DAY

CURRENT_DAY: Date = new Date(CURRENT.getFullYear(),CURRENT.getMonth(),CURRENT.getDate())

Const CURRENT_MONTH

CURRENT_MONTH: number = CURRENT.getMonth()

Const CURRENT_YEAR

CURRENT_YEAR: number = CURRENT.getFullYear()

Const ColorBoard

ColorBoard: ComponentClass<any, any> = ColorWrap(Sketch)

Content

Const DEFAULT_FORMAT

DEFAULT_FORMAT: "HH:mm:ss" = "HH:mm:ss"

Const DEFAULT_FORMAT_WITHOUT_SECOND

DEFAULT_FORMAT_WITHOUT_SECOND: "HH:mm" = "HH:mm"

Const DEFAULT_HEIGHT

DEFAULT_HEIGHT: 23 = 23

Const DEFAULT_SEGMENTS

DEFAULT_SEGMENTS: number[][] = [[61.8, 38],[30, 25, 44],[20, 75],[33, 16, 20, 27],[12, 32, 53],[45, 12, 42],[20, 10, 47, 18],[14, 47, 37],]

Const DEFAULT_SIZE

DEFAULT_SIZE: 24 = 24

Const DEFAULT_TRANSITION

DEFAULT_TRANSITION: object

Type declaration

Const DEFAULT_VALUE

DEFAULT_VALUE: any[] = [] as any[]

Const DisabledContext

DisabledContext: Context<IDisabledContext> = React.createContext<IDisabledContext>({value: false,})

Const EASE_IN

EASE_IN: "cubic-bezier(0.17, 0.84, 0.44, 0.1)" = "cubic-bezier(0.17, 0.84, 0.44, 0.1)"

Const EASE_IN_OUT

EASE_IN_OUT: "cubic-bezier(0.5, 0, 0.5, 0.1)" = "cubic-bezier(0.5, 0, 0.5, 0.1)"

Const EASE_OUT

EASE_OUT: "cubic-bezier(0.18, 0.66, 0.6, 0.82)" = "cubic-bezier(0.18, 0.66, 0.6, 0.82)"

Const EMIT_CHANGE_AFTER_COMPOSITION_END

EMIT_CHANGE_AFTER_COMPOSITION_END: boolean = isChrome

Const EMPTY_DECIMAL

EMPTY_DECIMAL: Big = new Decimal(0)

Const END

END: "end" = "end"

Const FormContext

FormContext: Context<IZentFormContext> = createContext<IZentFormContext | null>(null)

Const FormControl

FormControl: ForwardRefExoticComponent<IFormControlProps & RefAttributes<HTMLDivElement>> = React.forwardRef<HTMLDivElement, IFormControlProps>(({ className, style, label, children, required, invalid, withoutLabel },ref) => {return (<divref={ref}className={cx('zent-form-control',{'has-error': invalid,},className)}style={style}>{withoutLabel ? null : <Label required={required}>{label}</Label>}<div className="zent-form-control-content">{children}</div></div>);})

Const FormError

FormError: ForwardRefExoticComponent<IFormErrorProps & RefAttributes<HTMLDivElement>> = React.forwardRef<HTMLDivElement, IFormErrorProps>(({ className, style, children }, ref) => (<divref={ref}className={cx('zent-form-error', 'zent-font-small', className)}style={style}>{children}</div>))

Const GRADIENT_ID

GRADIENT_ID: string = uniqueId('zentAnimatedArcStrokeGradient')

Const GroupContextProvider

GroupContextProvider: ProviderExoticComponent<ProviderProps<ICheckboxContext<any>>> = GroupContext.Provider

Const IMECompositionContext

IMECompositionContext: Context<IIMECompositionContext> = React.createContext<IIMECompositionContext>({enable: false,})

Const INPUT_WIDTH

INPUT_WIDTH: 56 = 56

Const Icon

  • Icon(__namedParameters: object): Element

Const InputContext

InputContext: Context<IInputContext> = createContext<IInputContext>({renderInner: null,})

Const InputCore

InputCore: ForwardRefExoticComponent<IInputCoreProps & object & RefAttributes<HTMLInputElement>> = React.forwardRef<HTMLInputElement,IInputCoreProps & { onClear: React.MouseEventHandler<HTMLElement> }>((props, ref) => {const {addonBefore,addonAfter,showClear,value: valueProp,onChange: onChangeProp,onCompositionStart: onCompositionStartProp,onCompositionEnd: onCompositionEndProp,onClear,width,size,onPressEnter,autoFocus,autoSelect,initSelectionStart,initSelectionEnd,icon,inline,onIconClick,...otherProps} = props;const {value,onChange,onCompositionStart,onCompositionEnd,} = useIMEComposition(valueProp,onChangeProp,onCompositionStartProp,onCompositionEndProp);return (<>{addonBefore && (<div className="zent-input-addon-before">{addonBefore}</div>)}<input{...otherProps}ref={ref}className="zent-input"value={value}onChange={onChange}onCompositionStart={onCompositionStart}onCompositionEnd={onCompositionEnd}/>{showClear && valueProp && (<IconclassName="zent-input-close"type="close-circle"onClick={onClear}onMouseDown={preventDefault}/>)}{icon ? (<Icon className="zent-input-icon" type={icon} onClick={onIconClick} />) : null}{addonAfter && <div className="zent-input-addon-after">{addonAfter}</div>}</>);})

InstallTrigger

InstallTrigger: unknown

Const Invisible

Invisible: function = createPlacement(locate)

Type declaration

Const LINEAR

LINEAR: "cubic-bezier(0, 0, 0.1, 0.1)" = "cubic-bezier(0, 0, 0.1, 0.1)"

Const LayoutBreakpointContext

LayoutBreakpointContext: Context<object> = createContext<Partial<Record<LayoutBreakPoint, boolean>>>({} as Record<LayoutBreakPoint, boolean>)

Const LayoutConfigContext

LayoutConfigContext: Context<ILayoutConfig> = createContext<ILayoutConfig>({rowGutter: 0,colGutter: 0,})

Const LayoutConfigProvider

LayoutConfigProvider: ProviderExoticComponent<ProviderProps<ILayoutConfig>> = LayoutConfigContext.Provider

Const LeftBottom

LeftBottom: function = createPlacement(locate)

Type declaration

Const LeftCenter

LeftCenter: function = createPlacement(locate)

Type declaration

Const LeftTop

LeftTop: function = createPlacement(locate)

Type declaration

Const Link

Link: ForwardRefExoticComponent<ILinkProps & RefAttributes<HTMLAnchorElement>> = React.forwardRef<HTMLAnchorElement, ILinkProps>((props, ref) => {const disabledContext = React.useContext(DisabledContext);const {className,disabled = disabledContext.value,onClick,...rest} = props;return (<a{...rest}className={cx(className, 'zent-link', {'zent-link__disabled': disabled,})}ref={ref}onClick={disabled ? preventOpenLink : onClick}/>);})

Const MAX_PAGES_TO_EXPAND

MAX_PAGES_TO_EXPAND: 5 = 5

Const MENTION_FOUND

MENTION_FOUND: 2 = 2

Const MENTION_NOT_FOUND

MENTION_NOT_FOUND: 1 = 1

Const MIRROR_DIV_ID

MIRROR_DIV_ID: "zent-input-textarea-caret-coordinates-mirror-div" = "zent-input-textarea-caret-coordinates-mirror-div"

Const MOUSE_EVENT_WHITE_LIST

MOUSE_EVENT_WHITE_LIST: string[] = ['down','up','move','over','out','enter','leave',]

Const NAV_KEYS

NAV_KEYS: string[] = ['ArrowUp', 'ArrowDown', 'ArrowLeft', 'ArrowRight']

Const NO_STYLE

NO_STYLE: CSSProperties

Const NoticeContext

NoticeContext: Context<INoticeContext> = React.createContext<INoticeContext | null>(null)

Const ONEDAY

ONEDAY: number = 24 * 60 * 60 * 1000

Const ONE_DAY

ONE_DAY: number = 1000 * 60 * 60 * 24

Const PERMISSIVE_MATCH3

PERMISSIVE_MATCH3: string = `[\\s|\\(]+(${CSS_UNIT})[,|\\s]+(${CSS_UNIT})[,|\\s]+(${CSS_UNIT})\\s*\\)?`

Const PERMISSIVE_MATCH4

PERMISSIVE_MATCH4: string = `[\\s|\\(]+(${CSS_UNIT})[,|\\s]+(${CSS_UNIT})[,|\\s]+(${CSS_UNIT})[,|\\s]+(${CSS_UNIT})\\s*\\)?`

Const PREFIX

PREFIX: string = 'v' +__ZENT_VERSION__.replace(/[^0-9a-z]/gi, 'x') +Math.ceil(Math.random() * 8999 + 1000).toString()

Const Portal

Portal: ForwardRefExoticComponent<IPortalProps & RefAttributes<IPortalImperativeHandlers>> = forwardRef<IPortalImperativeHandlers, IPortalProps>((props, ref) => {const {visible = true,layer = 'div',selector = 'body',useLayerForClickAway = false,className,style,blockPageScroll = false,closeOnESC = false,closeOnClickOutside = false,children,append,} = props;const node = useMemo(() => createElement(layer), [layer]);const getParent = useMemo(() => memorize(getNodeFromSelector), []);const propsRef = useRef<IPortalProps>(props);propsRef.current = props;const prevStyleRef = useRef<React.CSSProperties | undefined>(style);const purePortalRef = useRef<PurePortal>(null);useImperativeHandle<IPortalImperativeHandlers, IPortalImperativeHandlers>(ref,() => ({contains(node: Node) {const purePortal = purePortalRef.current;if (!purePortal) {return false;}return purePortal.contains(node);},purePortalRef,container: node,}),[node]);useLayoutEffect(() => {className && (node.className = className);}, [node, className]);useLayoutEffect(() => {const result = diffStyle(prevStyleRef.current || {}, style || {});setValueForStyles(node, result);prevStyleRef.current = style;}, [node, style]);useLayoutEffect(() => {if (!visible || !useLayerForClickAway) {return noop;}const { position, top, bottom, left, right } = node.style;const parent = getParent(selector);node.style.position = parent === document.body ? 'fixed' : 'absolute';node.style.top = '0';node.style.bottom = '0';node.style.left = '0';node.style.right = '0';return () => {node.style.position = position;node.style.top = top;node.style.bottom = bottom;node.style.left = left;node.style.right = right;};}, [node, useLayerForClickAway, visible, selector]);useLayoutEffect(() => {const parent = getParent(selector);if (!visible ||!blockPageScroll ||!(parent instanceof HTMLElement) ||!hasScrollbarY(parent)) {return noop;}patchElement(parent);return () => restoreElement(parent);}, [selector, visible, blockPageScroll]);useLayoutEffect(() => {function handler(event: TouchEvent | MouseEvent) {const { closeOnClickOutside, onClose, visible } = propsRef.current;const purePortal = purePortalRef.current;if (event.defaultPrevented ||!closeOnClickOutside ||!visible ||!purePortal) {return;}const { target } = event;if (!(target instanceof Node) ||target === node ||!purePortal.contains(target)) {onClose && onClose(event);}}let dispose = noop;if (closeOnClickOutside) {if (useLayerForClickAway) {node.addEventListener('touchstart', handler);node.addEventListener('click', handler);dispose = () => {node.removeEventListener('touchstart', handler);node.removeEventListener('click', handler);};} else {window.addEventListener('touchstart', handler);window.addEventListener('click', handler);dispose = () => {window.removeEventListener('touchstart', handler);window.removeEventListener('click', handler);};}}const { onLayerReady } = propsRef.current;onLayerReady && onLayerReady(node);return dispose;}, [!!useLayerForClickAway, !!closeOnClickOutside, node]);useEffect(() => {if (!visible || !closeOnESC) {return noop;}function onKeyUp(e: KeyboardEvent) {const { onClose } = propsRef.current;if (!onClose) {return;}// tslint:disable-next-line deprecationif (e.key === 'Escape' || e.key === 'Esc' || e.keyCode === 27) {onClose(e);}}document.body.addEventListener('keyup', onKeyUp);return () => {document.body.removeEventListener('keyup', onKeyUp);};}, [closeOnESC, visible]);/*** @HACK* @TODO 当React提供了合适的API后替换掉** 这是为了确保在children的componentDidMount(useEffect, useLayoutEffect)在被调用之前把元素挂载到容器里* 这里利用了React的内部实现,MountElement的componentDidMount(useEffect, useLayoutEffect)* 会在children的之前被调用*/return visible ? (<PurePortal ref={purePortalRef} append={append} selector={node}><MountElement node={node} getParent={getParent} selector={selector} />{children}</PurePortal>) : null;})

Const PortalContext

PortalContext: Context<IPortalContext> = createContext<IPortalContext>({children: [],})

Position

Position: object

Type declaration

Const QUARTER_NAMES

QUARTER_NAMES: string[] = ['1st Quarter','2nd Quarter','3rd Quarter','4th Quarter',]

Const ROW

ROW: 2 = 2

Const RightBottom

RightBottom: function = createPlacement(locate)

Type declaration

Const RightCenter

RightCenter: function = createPlacement(locate)

Type declaration

Const RightTop

RightTop: function = createPlacement(locate)

Type declaration

Const SCROLLBAR_WIDTH

SCROLLBAR_WIDTH: number = getScrollbarWidth()

Const SCROLL_TIME

SCROLL_TIME: 250 = 250

Const START

START: "start" = "start"

Const START_ROTATE

START_ROTATE: 0 = 0

Const STROKE_OFFSET_RATIO

STROKE_OFFSET_RATIO: 0.2 = 0.2

Const STROKE_OPACITY

STROKE_OPACITY: 0.2 = 0.2

Const SliderMarks

SliderMarks: MemoExoticComponent<(Anonymous function)> = React.memo(({ marks, min, max, potentialValues }: ISliderMarksProps) => (<>{potentialValues.map(value => {return (<divkey={value}style={{left: `${getLeft(value, min, max)}%`,}}className="zent-slider-mark">{marks[value]}</div>);})}</>))

Const TIMEOUT

TIMEOUT: 300 = 300

Const TIME_BEGIN

TIME_BEGIN: "00:00:00" = "00:00:00"

Const TIME_END

TIME_END: "23:59:59" = "23:59:59"

Const TIME_FORMAT

TIME_FORMAT: "HH:mm:ss" = "HH:mm:ss"

Const TextArea

TextArea: ForwardRefExoticComponent<ITextAreaProps & RefAttributes<HTMLTextAreaElement>> = React.forwardRef<HTMLTextAreaElement, ITextAreaProps>((props, ref) => {const {value: valueProp,onChange: onChangeProp,onCompositionStart: onCompositionStartProp,onCompositionEnd: onCompositionEndProp,autoSize,showCount,maxLength,width,size,onPressEnter,autoFocus,autoSelect,initSelectionStart,initSelectionEnd,inline,...otherProps} = props;const {value,onChange,onCompositionStart,onCompositionEnd,} = useIMEComposition(valueProp,onChangeProp,onCompositionStartProp,onCompositionEndProp);React.useLayoutEffect(() => {if (!autoSize) {return noop;}const el = (ref as React.RefObject<HTMLTextAreaElement>).current;if (!el) {return noop;}autosize(el);return () => {autosize.destroy(el);};}, [autoSize, ref]);return (<><textarea{...otherProps}ref={ref}className={cx('zent-textarea', {'zent-textarea-with-count': showCount,})}value={value}maxLength={maxLength}onChange={onChange}onCompositionStart={onCompositionStart}onCompositionEnd={onCompositionEnd}/>{showCount && (<span className="zent-textarea-count">{(value || '').length}/{maxLength}</span>)}</>);})

Const TitleIconMap

TitleIconMap: object = {info: 'info-circle-o',success: 'check-circle-o',error: 'close-circle-o',warning: 'error-circle-o',} as const

Type declaration

  • error: "close-circle-o"
  • info: "info-circle-o"
  • success: "check-circle-o"
  • warning: "error-circle-o"

Const TopCenter

TopCenter: function = createPlacement(locate)

Type declaration

Const TopLeft

TopLeft: function = createPlacement(locate)

Type declaration

Const TopRight

TopRight: function = createPlacement(locate)

Type declaration

Trigger

Trigger: object

Type declaration

Const UID_KEY

UID_KEY: "__uid" = "__uid"

Const UNSORTABLE

UNSORTABLE: "unsortable" = "unsortable"

Const XML_NS

XML_NS: "http://www.w3.org/2000/svg" = "http://www.w3.org/2000/svg"

Const autosize

autosize: any = require('autosize')

Const avaliableStatus

avaliableStatus: IProgressStatus[] = ['normal','success','exception',]

Const buildInDotsColors

buildInDotsColors: string[] = ['black', 'blue', 'red', 'green']

Const checkboardCache

checkboardCache: object

Type declaration

chrome

chrome: unknown

Const containerList

containerList: object

Type declaration

Const context

context: Context<IRadioContext<any>> = createContext<IRadioContext<any> | null>(null)

Const d

d: Document = isBrowser ? document : ({} as Document)

Const dayNames

dayNames: FechaDays = ['Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday',]

Const dayNamesShort

dayNamesShort: [string, string, string, string, string, string, string] = shorten(dayNames, 3) as FechaDays

Const dialogInstanceMap

dialogInstanceMap: Map<string, RefObject<StandaloneDialog>> = new Map<string, React.RefObject<StandaloneDialog>>()

Let documentClientHeight

documentClientHeight: number | null = null

getDocumentClientSize

author

hyczzhu

Let documentClientWidth

documentClientWidth: number | null = null

Let durationDefault

durationDefault: number = 3500

Const enquire

enquire: MediaQueryDispatch = supportMediaQuery ? createMediaQueryDispatcher() : null

Const fixRowClass

fixRowClass: "fixrow" = "fixrow"

Const fourDigits

fourDigits: "\d{4}" = "\d{4}"

Const gEventRegistered

gEventRegistered: false = false

Const has

has: hasOwnProperty = Object.prototype.hasOwnProperty

Const hasOwnProperty

hasOwnProperty: hasOwnProperty = Object.prototype.hasOwnProperty

Let id

id: number = 0

Let index

index: number = 0

Const instanceMap

instanceMap: Map<number, RefObject<NoticeWrap>> = new Map<number, React.RefObject<Wrap>>()

Const is

  • is(x: any, y: any): boolean

Const isChrome

isChrome: boolean = isIOSChrome || isDesktopChrome

Const isChromium

isChromium: boolean = isBrowser && typeof chrome !== 'undefined'

Const isDesktopChrome

isDesktopChrome: boolean = isChromium && vendorName === 'Google Inc.' && !isOpera && !isIEedge

Const isFirefox

isFirefox: boolean = typeof InstallTrigger !== 'undefined'

Const isIEedge

isIEedge: boolean = userAgent && userAgent.indexOf('Edge') > -1

Const isIOSChrome

isIOSChrome: boolean = !!(userAgent && userAgent.match('CriOS'))

Const isOpera

isOpera: boolean = isBrowser && typeof opr !== 'undefined'

Const literal

literal: RegExp = /\[([^]*?)\]/gm

Let locale

Const mark

mark: "en-US" = "en-US"

Const memoizedLowercaseProps

memoizedLowercaseProps: lowercaseProps = memoizeOne(lowercaseProps)

Const memoizedNormalizeSelectOptions

memoizedNormalizeSelectOptions: normalizeSelectOptions = memoize(function normalizeSelectOptions(pageSizeOptions: PaginationPageSizeOption[],i18n: II18nLocalePagination) {return (pageSizeOptions || []).map(opt => {if (typeof opt === 'number') {return { value: opt, text: `${opt} ${i18n.items}` };}return opt;});})

Const menuListPaddingTop

menuListPaddingTop: 0 = 0

Const monthNames

monthNames: FechaMonths = ['January','February','March','April','May','June','July','August','September','October','November','December',]

Const monthNamesShort

monthNamesShort: [string, string, string, string, string, string, string, string, string, string, string, string] = shorten(monthNames, 3) as FechaMonths

Let mousePosition

mousePosition: IMousePosition | null = null

Const msPattern

msPattern: RegExp = /^ms-/

Const notifyContainerClass

notifyContainerClass: "zent-notify-container" = "zent-notify-container"

Const now

now: any = w.performance && w.performance.now? w.performance.now.bind(w.performance): Date.now

Const objIs

objIs: is = Object.is

Const objKeys

objKeys: keys = Object.keys

Const oneGB

oneGB: number = 1024 * oneMB

Const oneMB

oneMB: number = 1024 * 1024

opr

opr: unknown

Const originalScroll

originalScroll: scroll = w.scroll || w.scrollTo

Const oxmlContentTypes

oxmlContentTypes: number[] = toBytes('[Content_Types].xml')

Const oxmlRels

oxmlRels: number[] = toBytes('_rels/.rels')

Const patched

patched: Map<HTMLElement, IPatchMeta> = new Map<HTMLElement, IPatchMeta>()

Const prefix

prefix: "zent" = "zent"

Const prefixes

prefixes: string[] = ['Webkit', 'ms', 'Moz', 'O']

Support style names that may come passed in prefixed by adding permutations of vendor prefixes.

Const properties

properties: string[] = ['direction', // RTL support'boxSizing','width', // on Chrome and IE, exclude the scrollbar, so the mirror div wraps exactly as the textarea does'height','overflowX','overflowY', // copy the scrollbar for IE'borderTopWidth','borderRightWidth','borderBottomWidth','borderLeftWidth','borderStyle','paddingTop','paddingRight','paddingBottom','paddingLeft',// https://developer.mozilla.org/en-US/docs/Web/CSS/font'fontStyle','fontVariant','fontWeight','fontStretch','fontSize','fontSizeAdjust','lineHeight','fontFamily','textAlign','textTransform','textIndent','textDecoration', // might not make a difference, but better be safe'letterSpacing','wordSpacing','tabSize','MozTabSize',]

Const renderOmitProps

renderOmitProps: ["title", "description", "loading", "closable", "closed", "onClose", "closeContent"] = ['title','description','loading','closable','closed','onClose','closeContent',] as const

Let scrollbarWidth

scrollbarWidth: number = 0

Const stickRowClass

stickRowClass: "stickrow" = "stickrow"

Const subscriberList

subscriberList: any[] = []

Const supportMediaQuery

supportMediaQuery: matchMedia & matchMedia = isBrowser && window.matchMedia

Const threeDigits

threeDigits: "\d{3}" = "\d{3}"

Const toString

toString: toString = Object.prototype.toString

Const token

token: RegExp = /d{1,4}|M{1,4}|YY(?:YY)?|S{1,3}|Do|ZZ|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g

Const twoDigits

twoDigits: "\d\d?" = "\d\d?"

Const uppercasePattern

uppercasePattern: RegExp = /([A-Z])/g

Copyright (c) Facebook, Inc. and its affiliates.

This source code is licensed under the MIT license found in the LICENSE file in the root directory of this source tree.

flow

Const useIMEComposition

useIMEComposition: useIMEComposition = createUseIMEComposition()

Const userAgent

userAgent: string = winNav && winNav.userAgent

Const valueOfSymbol

valueOfSymbol: valueOf = Symbol.prototype.valueOf

Const vendorName

vendorName: string = winNav && winNav.vendor

Const w

w: Window = isBrowser ? window : ({} as Window)

Const warning

warning: any = require('warning')

Copyright (c) Facebook, Inc. and its affiliates.

This source code is licensed under the MIT license found in the LICENSE file in the root directory of this source tree.

Const winNav

winNav: Navigator = isBrowser && window.navigator

Const withPopover

withPopover: function = Popover.withPopover

Type declaration

    • <T>(Comp: React.ComponentType<T>): React.ComponentType<Omit<T, "popover">>
    • Type parameters

      • T: object

      Parameters

      • Comp: React.ComponentType<T>

      Returns React.ComponentType<Omit<T, "popover">>

Const word

word: "[^\s]+" = "[^\s]+"

Const xpiZipFilename

xpiZipFilename: number[] = toBytes('META-INF/mozilla.rsa')

Functions

BlockLoading

ButtonDirective

  • ButtonDirective<ChildProps>(props: IButtonDirectiveProps<ChildProps>): ReactElement<ChildProps, string | function | object>

Const ButtonGroup

  • ButtonGroup(__namedParameters: object): Element

Const Checkboard

  • Checkboard(__namedParameters: object): Element

Checkbox

CircleIcon

  • CircleIcon(__namedParameters: object): Element
  • Parameters

    • __namedParameters: object
      • size: number
      • text: string | number | false | true | __type | ReactElement<any, string | function | object> | ReactNodeArray | ReactPortal
      • textPosition: "left" | "right" | "top" | "bottom"

    Returns Element

Const CircleProgress

Const ColorWrap

  • ColorWrap(Picker: any): ComponentClass<any, any>

Const Disabled

  • Disabled(__namedParameters: object): Element
  • Parameters

    • __namedParameters: object
      • children: string | number | false | true | __type | ReactElement<any, string | function | object> | ReactNodeArray | ReactPortal
      • value: boolean

    Returns Element

Dots

  • Dots(__namedParameters: object): Element
  • Parameters

    • __namedParameters: object
      • activeLeft: number
      • activeRight: number
      • disabled: boolean
      • max: number
      • min: number
      • potentialValues: number[]

    Returns Element

ErrorBoundaryFallbackComponent

  • ErrorBoundaryFallbackComponent(__namedParameters: object): Element

FieldSet

FormCheckboxField

FormCheckboxGroupField

Const FormColorPickerField

  • FormColorPickerField(props: object & object & object & object & object | object & object & IFormFieldModelDrivenProps<string> & object): Element

Const FormDatePickerField

  • FormDatePickerField(props: object & object & object & object & object | object & object & IFormFieldModelDrivenProps<string | number | Date> & object): Element

Const FormDateRangePickerField

  • FormDateRangePickerField(props: object & object & object & object & object | object & object & IFormFieldModelDrivenProps<[string | number | Date, string | number | Date]> & object): Element

Const FormDateRangeQuickPickerField

  • FormDateRangeQuickPickerField(props: object & object & object & object & object | object & object & IFormFieldModelDrivenProps<[string | number | Date, string | number | Date]> & object): Element

Const FormDescription

  • FormDescription(__namedParameters: object): Element
  • Parameters

    • __namedParameters: object
      • children: string | number | false | true | __type | ReactElement<any, string | function | object> | ReactNodeArray | ReactPortal
      • className: string
      • style: CSSProperties

    Returns Element

FormField

Const FormInputField

  • FormInputField(props: object & object & object & object & object | object & object & IFormFieldModelDrivenProps<string> & object): Element

Const FormMonthPickerField

  • FormMonthPickerField(props: object & object & object & object & object | object & object & IFormFieldModelDrivenProps<string | number | Date> & object): Element

Const FormNotice

  • FormNotice(__namedParameters: object): Element
  • Parameters

    • __namedParameters: object
      • children: string | number | false | true | __type | ReactElement<any, string | function | object> | ReactNodeArray | ReactPortal
      • className: string
      • style: CSSProperties

    Returns Element

Const FormNumberInputField

  • FormNumberInputField(props: object & object & object & object & object | object & object & IFormFieldModelDrivenProps<string | number> & object): Element

Const FormQuarterPickerField

  • FormQuarterPickerField(props: object & object & object & object & object | object & object & IFormFieldModelDrivenProps<[string | number | Date, string | number | Date]> & object): Element

FormRadioGroupField

Const FormSelectField

  • FormSelectField(props: object & object & object & object & object | object & object & IFormFieldModelDrivenProps<any> & object): Element

Const FormSwitchField

  • FormSwitchField(props: object & object & object & object & object | object & object & IFormFieldModelDrivenProps<boolean> & object): Element

Const FormTimePickerField

  • FormTimePickerField(props: object & object & object & object & object | object & object & IFormFieldModelDrivenProps<string | number | Date> & object): Element

Const FormTimeRangePickerField

  • FormTimeRangePickerField(props: object & object & object & object & object | object & object & IFormFieldModelDrivenProps<[string | number | Date, string | number | Date]> & object): Element

Const FormWeekPickerField

  • FormWeekPickerField(props: object & object & object & object & object | object & object & IFormFieldModelDrivenProps<[string | number | Date, string | number | Date]> & object): Element

Const FormYearPickerField

  • FormYearPickerField(props: object & object & object & object & object | object & object & IFormFieldModelDrivenProps<string | number | Date> & object): Element

FullScreenLoading

Const IMEComposition

  • IMEComposition(__namedParameters: object): Element

ITooltipTriggerHoverProps

  • ITooltipTriggerHoverProps(props: ITooltipProps): props is ITooltipTriggerHoverProps

InlineLoading

Const Label

  • Label(__namedParameters: object): Element
  • Parameters

    • __namedParameters: object
      • children: string | number | false | true | __type | ReactElement<any, string | function | object> | ReactNodeArray | ReactPortal
      • required: boolean

    Returns Element

LeftArrow

  • LeftArrow(): Element

LeftDoubleArrow

  • LeftDoubleArrow(): Element

Const LineProgress

Loading

  • Loading(): Element

LoadingMask

Const MountElement

  • MountElement(__namedParameters: object): any

Const NOT_FOUND

  • NOT_FOUND(): void

code

code: 1 = MENTION_NOT_FOUND

Notice

  • Notice(__namedParameters: object): Element
  • Parameters

    • __namedParameters: object
      • children: string | number | false | true | __type | ReactElement<any, string | function | object> | ReactNodeArray | ReactPortal
      • className: string
      • closable: boolean
      • onClose: function
          • (): void
          • Returns void

      • style: CSSProperties
      • title: string
      • type: "error" | "info" | "success" | "warning"

    Returns Element

Const NotifyTransition

  • NotifyTransition(__namedParameters: object): Element

Const PanelFooter

  • PanelFooter(props: any): Element

Const PanelHeader

  • PanelHeader(props: any): Element

Const Progress

Const ProgressInfo

Radio

  • Radio<Value>(props: IRadioProps<Value> & object): Element

RadioButton

  • RadioButton<Value>(props: IRadioProps<Value>): Element

RadioGroup

Const ReactCSS

  • ReactCSS<T>(classes: T, ...activations: any[]): object

RightArrow

  • RightArrow(): Element

RightDoubleArrow

  • RightDoubleArrow(): Element

Const SKIPPED

  • SKIPPED(): void

Const Sketch

  • Sketch(__namedParameters: object): Element
  • Parameters

    • __namedParameters: object
      • className: any
      • hex: any
      • hsl: any
      • hsv: any
      • onChange: any
      • prefix: any
      • presetColors: any
      • renderers: any
      • rgb: any
      • showAlpha: any
      • type: any
      • width: any

    Returns Element

Const SketchPresetColors

  • SketchPresetColors(__namedParameters: object): Element

SliderPoint

Const Swatch

  • Swatch(__namedParameters: object): Element

TabDivide

Const TabPanel

  • TabPanel<Id>(props: React.PropsWithChildren<ITabPanelProps<Id>>): Element

Const Text

  • Text(props: object & object): Element

TextMark

  • TextMark(__namedParameters: object): Element
  • Highlights all occurrences of search terms (searchText) within a string (textToHighlight). This function returns an array of strings and s (wrapping highlighted words).

    Parameters

    • __namedParameters: object
      • activeClassName: string
      • activeIndex: number
      • activeStyle: CSSProperties
      • autoEscape: boolean
      • caseSensitive: boolean
      • className: string
      • findChunks: function
      • highlightClassName: string | object
      • highlightStyle: CSSProperties
      • highlightTag: "symbol" | "object" | "input" | "progress" | "select" | "hr" | "link" | "summary" | "video" | "time" | "menu" | "dialog" | "text" | "style" | "title" | "circle" | "button" | "small" | "form" | "pattern" | "textarea" | "a" | "abbr" | "address" | "area" | "article" | "aside" | "audio" | "b" | "base" | "bdi" | "bdo" | "blockquote" | "body" | "br" | "canvas" | "caption" | "cite" | "code" | "col" | "colgroup" | "data" | "datalist" | "dd" | "del" | "details" | "dfn" | "div" | "dl" | "dt" | "em" | "embed" | "fieldset" | "figcaption" | "figure" | "footer" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "head" | "header" | "hgroup" | "html" | "i" | "iframe" | "img" | "ins" | "kbd" | "label" | "legend" | "li" | "main" | "map" | "mark" | "meta" | "meter" | "nav" | "noscript" | "ol" | "optgroup" | "option" | "output" | "p" | "param" | "picture" | "pre" | "q" | "rp" | "rt" | "ruby" | "s" | "samp" | "script" | "section" | "source" | "span" | "strong" | "sub" | "sup" | "table" | "tbody" | "td" | "tfoot" | "th" | "thead" | "tr" | "track" | "u" | "ul" | "var" | "wbr" | "clipPath" | "defs" | "desc" | "ellipse" | "feBlend" | "feColorMatrix" | "feComponentTransfer" | "feComposite" | "feConvolveMatrix" | "feDiffuseLighting" | "feDisplacementMap" | "feDistantLight" | "feFlood" | "feFuncA" | "feFuncB" | "feFuncG" | "feFuncR" | "feGaussianBlur" | "feImage" | "feMerge" | "feMergeNode" | "feMorphology" | "feOffset" | "fePointLight" | "feSpecularLighting" | "feSpotLight" | "feTile" | "feTurbulence" | "filter" | "foreignObject" | "g" | "image" | "line" | "linearGradient" | "marker" | "mask" | "metadata" | "path" | "polygon" | "polyline" | "radialGradient" | "rect" | "stop" | "svg" | "switch" | "textPath" | "tspan" | "use" | "view" | "animate" | "big" | "keygen" | "menuitem" | "noindex" | "webview" | "animateMotion" | "animateTransform" | "feDropShadow" | "mpath" | ComponentClass<any, any> | FunctionComponent<any>
      • rest: rest
      • sanitize: function
          • (str: string): string
          • Parameters

            • str: string

            Returns string

      • searchWords: (string | RegExp)[]
      • textToHighlight: string
      • unhighlightClassName: string
      • unhighlightStyle: CSSProperties

    Returns Element

Const TimePicker

  • TimePicker(): object
  • TimePicker(): object
  • Returns object

    • date: string
    • end: string
    • endTime: string
    • month: string
    • quarter: string
    • range: string
    • rangeError: string
    • start: string
    • startTime: string
    • time: string
    • to: string
    • week: string
    • year: string
    • current: object
      • date: string
      • month: string
      • time: string
      • week: string
      • year: string
    • panel: object
      • dayNames: string[]
      • hour: string
      • hourSelect: string
      • minute: string
      • minuteSelect: string
      • monthNames: string[]
      • quarterNames: string[]
      • second: string
      • secondSelect: string
      • titleFormat: string
      • yearQuarterName: function
        • yearQuarterName(__namedParameters: object): string
  • Returns object

    • date: string
    • end: string
    • endTime: string
    • month: string
    • quarter: string
    • range: string
    • rangeError: string
    • start: string
    • startTime: string
    • time: string
    • to: string
    • week: string
    • year: string
    • current: object
      • date: string
      • month: string
      • time: string
      • week: string
      • year: string
    • panel: object
      • dayNames: string[]
      • hour: string
      • hourSelect: string
      • minute: string
      • minuteSelect: string
      • monthNames: string[]
      • quarterNames: string[]
      • second: string
      • secondSelect: string
      • titleFormat: string
      • yearQuarterName: function
        • yearQuarterName(__namedParameters: object): string

constructor

disabledTime

disabledTime: Partial<IDisabledTime>

retType

retType: string = "string"

Optional UNSAFE_componentWillMount

  • UNSAFE_componentWillMount(): void

Optional UNSAFE_componentWillReceiveProps

  • UNSAFE_componentWillReceiveProps(nextProps: Readonly<ITimePickerProps>, nextContext: any): void

Optional UNSAFE_componentWillUpdate

Optional componentDidCatch

  • componentDidCatch(error: Error, errorInfo: ErrorInfo): void
  • Catches exceptions generated in descendant components. Unhandled exceptions will cause the entire component tree to unmount.

    Parameters

    • error: Error
    • errorInfo: ErrorInfo

    Returns void

Optional componentDidMount

  • componentDidMount(): void
  • Called immediately after a component is mounted. Setting state here will trigger re-rendering.

    Returns void

Optional componentDidUpdate

  • Called immediately after updating occurs. Not called for the initial render.

    The snapshot is only present if getSnapshotBeforeUpdate is present and returns non-null.

    Parameters

    Returns void

Optional componentWillMount

  • componentWillMount(): void

Optional componentWillReceiveProps

  • componentWillReceiveProps(nextProps: Readonly<ITimePickerProps>, nextContext: any): void

Optional componentWillUnmount

  • componentWillUnmount(): void
  • Called immediately before a component is destroyed. Perform any necessary cleanup in this method, such as cancelled network requests, or cleaning up any DOM elements created in componentDidMount.

    Returns void

Optional componentWillUpdate

getReturnValue

  • getReturnValue(date: any): any

Optional getSnapshotBeforeUpdate

  • Runs before React applies the result of render to the document, and returns an object to be given to componentDidUpdate. Useful for saving things such as scroll position before render causes changes to it.

    Note: the presence of getSnapshotBeforeUpdate prevents any of the deprecated lifecycle events from running.

    Parameters

    Returns SS | null

isCellDisabled

  • isCellDisabled(type: any): any

onChangeTime

  • onChangeTime(val: any, type: any): void

onClearInput

  • onClearInput(evt: any): void

onConfirm

  • onConfirm(): void

render

  • render(): Element

renderPanelContent

  • renderPanelContent(i18n: any): Element

renderPicker

  • renderPicker(i18n: any): Element

resetTime

  • resetTime(): void

Optional shouldComponentUpdate

  • Called to determine whether the change in props and state should trigger a re-render.

    Component always returns true. PureComponent implements a shallow comparison on props and state and returns true if any props or states have changed.

    If false is returned, Component#render, componentWillUpdate and componentDidUpdate will not be called.

    Parameters

    Returns boolean

switchTab

  • switchTab(tabKey: any): void

togglePicker

  • togglePicker(): void

Static getDerivedStateFromProps

Static defaultProps

defaultProps: object

format

format: string = "HH:mm:ss"

hourStep

hourStep: number = 1

isFooterVisible

isFooterVisible: boolean = true

minuteStep

minuteStep: number = 1

placeholder

placeholder: string = ""

secondStep

secondStep: number = 1

disabledTime

  • disabledTime(): void

Const TimelineDot

  • TimelineDot(__namedParameters: object): Element

Const TimelineItemOptionalPop

  • TimelineItemOptionalPop(__namedParameters: object): any

WindowEventHandler

  • WindowEventHandler<K>(__namedParameters: object): any

YouzanIcon

  • YouzanIcon(__namedParameters: object): Element
  • Parameters

    • __namedParameters: object
      • size: number
      • text: string | number | false | true | __type | ReactElement<any, string | function | object> | ReactNodeArray | ReactPortal
      • textPosition: "left" | "right" | "top" | "bottom"

    Returns Element

YouzanSvg

  • YouzanSvg(__namedParameters: object): Element

addDialogInstance

alert

applyHeight

  • applyHeight(el: HTMLDivElement, height: number | string): void

asFormChild

  • asFormChild<Value>(model: BasicModel<Value>, scrollAnchorRef?: RefObject<Element | null | undefined>): void
  • Type parameters

    • Value

    Parameters

    • model: BasicModel<Value>
    • Optional scrollAnchorRef: RefObject<Element | null | undefined>

    Returns void

Const autoprefix

  • autoprefix(elements: any): object

base64ToArrayBuffer

  • base64ToArrayBuffer(base64: any): ArrayBuffer | SharedArrayBuffer

calculateChange

  • calculateChange(e: any, skip: any, props: any, container: HTMLElement): object

calculateLimit

  • calculateLimit(value: number | null, min: number, max: number): object

calculateTime

  • calculateTime(format: string, choosedItem: any, valueType: any): RangeValue

callHook

  • callHook(recognizer: any, namespace: any, hookName: any, ...args: any[]): void

capitalize

  • capitalize(val: string): string

caselessMatchFilterOption

  • caselessMatchFilterOption(searchText: string, item: ISelectMenuItem): boolean

Const catchError

  • catchError(__namedParameters?: object): (Anonymous function)

checkProps

clear

  • clear(containerId: any): void

Const closeAllNotify

  • closeAllNotify(): void

closeDialog

Const closeNotify

  • closeNotify(containerId: any): void

Const closeNotifyCallback

  • closeNotifyCallback(callback: any): void

cmp

  • cmp(a: number, b: number): number

combineChunks

commonTransformTabData

  • commonTransformTabData<Id>(tabItem: IInnerTab<Id>, candel: boolean): object
  • Type parameters

    • Id

    Parameters

    Returns object

    • actived: boolean
    • candel: boolean
    • className: string
    • disabled: boolean
    • key: Id
    • title: string | number | false | true | __type | ReactElement<any, string | function | object> | ReactNodeArray | ReactPortal

compatibleInterface

  • compatibleInterface(prop: any): any

config

  • config(options: any): void

confirm

convertHexToDecimal

  • convertHexToDecimal(h: string): number

copy

  • copy(text: any): boolean

correctMark

createArrowPosition

  • createArrowPosition(x: any, y: any, side: any): object

createContainer

Const createContainerId

  • createContainerId(): number

createContainerNode

  • createContainerNode(parent: Node, tag?: string): HTMLElement

createElement

  • createElement<K>(tagName: K, options?: ElementCreationOptions): HTMLElementTagNameMap[K]
  • createElement<K>(tagName: K, options?: ElementCreationOptions): HTMLElementDeprecatedTagNameMap[K]
  • createElement(tagName: string, options?: ElementCreationOptions): HTMLElement

createMediaQueryDispatcher

Const createNotifyContainerNode

  • createNotifyContainerNode(): HTMLElement

createObjectURL

  • createObjectURL<T>(object: T): any

createPlacement

createStateByProps

createUseIMEComposition

dangerousStyleValue

  • dangerousStyleValue(name: string, value: unknown, isCustomProperty?: boolean): string
  • Convert a value into the proper css writable value. The style name name should be logical (no hyphens), as specified in CSSProperty.isUnitlessNumber.

    Parameters

    • name: string

      CSS property name such as topMargin.

    • value: unknown

      CSS property value such as 10px.

    • Optional isCustomProperty: boolean

    Returns string

    Normalized style value with dimensions applied.

dateDefaultValueFactory

  • dateDefaultValueFactory(): Value

dateRangeDefaultValueFactory

dayEnd

  • dayEnd(date?: Date): Date

dayStart

  • dayStart(date?: Date): Date

debounce

  • Returns a function, that, as long as it continues to be invoked, will not be triggered. The function will be called after it stops being called for wait milliseconds

    Type parameters

    • T: function

    Parameters

    • func: T
    • Default value wait: number = 0
    • Default value options: IDebounceOptions = {}

    Returns T & ICancelable

decideTrigger

  • decideTrigger(__namedParameters: object): any
  • description

    Return string tag used to determine which trigger will be used

    export

    Parameters

    • __namedParameters: object
      • search: any
      • simple: any
      • tags: any
      • trigger: any

    Returns any

default

  • default<F>(resultFn: F, isEqual?: EqualityFn): F

Const defaultFindChunks

  • defaultFindChunks(__namedParameters: object): any[]
  • Examine text for any matches. If we find matches, add them to the returned array as a "chunk" object.

    Parameters

    • __namedParameters: object
      • autoEscape: boolean
      • caseSensitive: boolean
      • sanitize: function
          • (str: string): string
          • Parameters

            • str: string

            Returns string

      • searchWords: (string | RegExp)[]
      • textToHighlight: string

    Returns any[]

Const defaultFormat

  • defaultFormat(percent: number): string

defaultGetValidateOption

  • defaultGetValidateOption(): ValidateOption

defaultRenderError

  • defaultRenderError<T>(error: IMaybeError<T>): Element

Const defaultSanitize

  • defaultSanitize(str: string): string

defer

  • defer(callback: function, ...cbArgs: any[]): ICancelable

destroyRecognizer

  • destroyRecognizer(recognizer: any): void

diffStyle

  • diffStyle(prev: CSSProperties, next: CSSProperties): CSSProperties

ease

  • ease(k: number): number

ensureUniqDialogInstance

  • ensureUniqDialogInstance(dialogId: string): void

equal

  • equal<T>(a: T[], b: T[]): boolean

error

  • error(text: any, duration?: number, callback?: function): number

escapeRegExpFn

  • escapeRegExpFn(str: string): string

exposePopover

  • exposePopover<N>(propName: N): expose

extractStateFromProps

fillInChunks

filterExpandNode

findAll

findIndex

  • findIndex<T>(array: ArrayLike<T> | null | undefined, predicate: ListIterator<T, boolean>, fromIndex?: number): number

findLastIndex

  • findLastIndex<T>(array: ArrayLike<T> | null | undefined, predicate: ListIterator<T, boolean>, fromIndex?: number): number

findMentionAtCaretPosition

findPositionedParent

  • findPositionedParent(elem: Element, inclusive?: boolean): Element | null
  • Find the first positioned ancestor up in the DOM tree.

    Parameters

    • elem: Element

      dom element to search from

    • Default value inclusive: boolean = false

      true if elem is considered an ancestor of itself

    Returns Element | null

    the first positioned ancestor node

findSubscriberIndex

  • findSubscriberIndex(config: any): number

fitText

  • fitText(containerNode: HTMLSpanElement | null, textNode: HTMLSpanElement | null): number

fixLeftEdgeCase

  • fixLeftEdgeCase(layout: PaginationLayout[], current: number): (object | object | object | object | object | object)[]

fixRightEdgeCase

  • fixRightEdgeCase(layout: PaginationLayout[], current: number): (object | object | object | object | object | object)[]

Const flattenNames

  • flattenNames(things?: any[]): any[]

focusWithoutScroll

  • focusWithoutScroll(node: HTMLElement): void

forEachHook

  • forEachHook(hooks: any, action: any): void

formReducer

format

formatDate

  • formatDate(date: string | Date | number, mask?: string, locale?: IFechaI18nSettings): string
  • 格式化一个 date 对象

    memberof

    module:date

    example

    formatDate('2017-06-06T09:37:16.437Z'); // '周二 6月 06 2017 17:37:16' formatDate('2017-06-06T09:37:16.437Z', 'YYYY-MM-DD'); // '2017-06-06' formatDate(new Date(), 'YYYY-MM-DD'); // '2017-06-06' formatDate(1496800160058, 'YYYY-MM-DD'); // '2017-06-07'

    Parameters

    • date: string | Date | number

      The date to format

    • Default value mask: string = "default"

      解析的格式,默认为 'default'

    • Default value locale: IFechaI18nSettings = zhCN

      the i18n setting for fecha

    Returns string

    date 对象

formatErrorMessages

  • formatErrorMessages(type: any, data: any, defaults: any): any

formatFileSize

  • formatFileSize(size: any, toFixed?: number): string
  • 将文件的Byte转换为可读性更好的GB\MB\KB\B

    example

    formatFileSize(1024) => '1 MB'

    Parameters

    • size: any

      大小,单位Byte

    • Optional toFixed: number

      保留几位小数,默认值为1

    Returns string

    格式化后的字符串

fromPotential

  • fromPotential(v: number | string | undefined): Decimal | null

get

  • get(c1: any, c2: any, size: any, serverCanvas: any): any

getCaretCoordinates

  • getCaretCoordinates(element: HTMLInputElement | HTMLTextAreaElement, position: number, __namedParameters: object): object

getComponentStack

  • getComponentStack(info: any): any

getContainer

Const getDateStr

  • getDateStr(val: any): string

Const getDecimal

  • getDecimal(step: number | string): number

getDelta

  • getDelta(decimal: number): Decimal

getDisabled

getDocumentClientHeight

  • getDocumentClientHeight(): number

getDocumentClientSize

  • getDocumentClientSize(): object

getDocumentClientWidth

  • getDocumentClientWidth(): number

getExtraStyle

  • getExtraStyle(__namedParameters: object): CSSProperties

Const getFileType

  • getFileType(input: any): object

getFormat

  • getFormat(props: any): any

getFromPath

  • getFromPath(obj: Record<string | number, any>, path?: string | string[], defaultValue?: unknown): unknown
  • Like _.get, but only supports objects! You don't need this function 99% of the time.

    Parameters

    • obj: Record<string | number, any>
    • Optional path: string | string[]
    • Optional defaultValue: unknown

    Returns unknown

getHeight

getInputNodeForTrigger

  • getInputNodeForTrigger(node: any): any

getJudgeInfo

getKeyFromChildrenIndex

  • getKeyFromChildrenIndex(child: any, index: any, subPrefix?: string): any

getLeafColumns

Const getLeft

  • getLeft(value: number, min: number, max: number): number

getLocale

getMax

  • getMax(max: number | undefined): number

getMenuListItems

  • getMenuListItems(suggestions: any, notFoundContent: any): any

getMin

  • getMin(min: number | undefined): number

Const getMonthStr

  • getMonthStr(val: any): string

getNodeFromSelector

  • getNodeFromSelector(selector: string | Element): Element

getPageRange

Const getPopoverBottomPosition

  • getPopoverBottomPosition(instance: any): function

Const getPopoverTopPosition

  • getPopoverTopPosition(instance: any): function

Const getPosition

  • getPosition(position: any, centerArrow: any): any
  • getPosition(value: number, min: number, max: number): string

getPotentialValues

  • getPotentialValues(marks: Record<string | number, React.ReactNode> | undefined): number[]

getQuarterLastDay

  • getQuarterLastDay(quarter: keyof object, year: number): any

getRadioState

getReadOnly

getScrollPosition

  • getScrollPosition(): object

getScrollbarWidth

  • getScrollbarWidth(): number

getSelectedWeek

  • getSelectedWeek(val: any, start: 0 | 1 | 2 | 3 | 4 | 5 | 6, isDisabled: function, props: IWeekPickerProps): [Date, Date]

getStateFromProps

getTabDataFromChild

  • getTabDataFromChild<Id>(child: ReactElement<React.PropsWithChildren<ITabPanelProps<Id>>>, activeId: Id): IInnerTab<Id>

getTextPosition

getToday

  • getToday(): number

getValidDate

  • getValidDate(date: unknown): Date
  • 将一个字符串、数字转化为 Date 的实例

    example

    let date = getValidDate(new Date()); date instanceof Date;// true date = getValidDate(1496800160058); date instanceof Date;// true

    Parameters

    • date: unknown

      需要转换的值

    Returns Date

    Date 的实例

Const getValue

  • getValue(value: number, min: number, max: number): number

getValueForBreakpoint

getViewportSize

  • getViewportSize(): object

getWidth

  • getWidth(width: unknown): object | object

getYear

  • getYear(val: any): any

Const goDays

  • goDays(val: any, diff: any): Date

Const goMonths

  • goMonths(val: any, diff: any): Date

Const goYears

  • goYears(val: any, diff: any): Date

groupedColumns

handleBeforeHook

  • handleBeforeHook(beforeFn: any, arity: any, continuation: any, escape: any): any

handleItemClick

  • handleItemClick(__namedParameters: object): void

hasScrollbarY

  • hasScrollbarY(element: Element): boolean

hslToRgb

  • hslToRgb(h: number, s: number, l: number): object
  • Converts an HSL color value to RGB.

    Assumes: h is contained in [0, 1] or [0, 360] and s and l are contained [0, 1] or [0, 100] Returns: { r, g, b } in the set [0, 255]

    Parameters

    • h: number
    • s: number
    • l: number

    Returns object

    • b: number
    • g: number
    • r: number

hsvToRgb

  • hsvToRgb(h: number, s: number, v: number): object
  • Converts an HSV color value to RGB.

    Assumes: h is contained in [0, 1] or [0, 360] and s and v are contained in [0, 1] or [0, 100] Returns: { r, g, b } in the set [0, 255]

    Parameters

    • h: number
    • s: number
    • v: number

    Returns object

    • b: number
    • g: number
    • r: number

hyphenateStyleName

  • hyphenateStyleName(name: string): string

identity

  • identity<T>(value: T): T
  • identity(): undefined

Const info

  • info(text: any, duration?: number, callback?: function): number

initSortable

  • initSortable(el: any, onMove: any): Sortable

inputToRGB

  • Given a string or object, convert that input to RGB

    Possible string inputs:

    "red"
    "#f00" or "f00"
    "#ff0000" or "ff0000"
    "#ff000000" or "ff000000"
    "rgb 255 0 0" or "rgb (255, 0, 0)"
    "rgb 1.0 0 0" or "rgb (1, 0, 0)"
    "rgba (255, 0, 0, 1)" or "rgba 255, 0, 0, 1"
    "rgba (1.0, 0, 0, 1)" or "rgba 1.0, 0, 0, 1"
    "hsl(0, 100%, 50%)" or "hsl 0 100% 50%"
    "hsla(0, 100%, 50%, 1)" or "hsla 0 100% 50%, 1"
    "hsv(0, 100%, 100%)" or "hsv 0 100% 100%"

    Parameters

    Returns object

    • a: number
    • b: number
    • format: any
    • g: number
    • ok: boolean
    • r: number

install

  • install(config: any): void

isActive

  • isActive(value: number, left: number, right: number): boolean

Const isAfterMonth

  • isAfterMonth(val: any, cpr: any): boolean

Const isBeforeMonth

  • isBeforeMonth(val: any, cpr: any): boolean

Const isCurrentMonth

  • isCurrentMonth(val: any): boolean

isDate

  • isDate(value?: any): value is Date

isDecimal

  • isDecimal(value: string): boolean

isDisabled

isElementInView

  • isElementInView(el: Element): boolean

isEqual

  • isEqual(value: any, other: any): boolean
  • This function is non-recursive, and handles cyclic values. It ignores symbol key properties in objects.

    Parameters

    • value: any
    • other: any

    Returns boolean

isEqualPlacement

isITooltipTriggerClickProps

  • isITooltipTriggerClickProps(props: ITooltipProps): props is ITooltipTriggerClickProps

isInteger

  • isInteger(value: string): boolean

isLeftValue

  • isLeftValue(nextValue: number, value: [number, number]): boolean

isMouseEventSuffix

  • isMouseEventSuffix(suffix: any): boolean

isNil

  • isNil(value: any): value is null | undefined

isObject

  • isObject(value?: any): boolean

isPanelActive

  • isPanelActive(activeKey: any, key: any): boolean

isPositionVisible

  • isPositionVisible(rect: any): boolean

isPotentialValue

  • isPotentialValue(value: string): boolean

isPromise

  • isPromise(obj: any): obj is Promise<unknown>

Const isSameDate

  • isSameDate(val: any, cmp: any): boolean

Const isStringOrNumber

  • isStringOrNumber(x: any): boolean

isValidCSSUnit

  • isValidCSSUnit(color: string | number): boolean

isValidDate

  • isValidDate(value: number | string): boolean

isViewDrivenProps

isWhiteSpace

  • isWhiteSpace(c: any): boolean

kindOf

  • kindOf(MaybeDerive: Function | string, Base: Function): boolean

liteLayout

Const locate

  • locate(): object
  • locate(anchorBoundingBox: ClientRect, containerBoundingBox: ClientRect, contentDimension: object, options: object): object
  • locate(anchorBoundingBox: ClientRect, containerBoundingBox: ClientRect, contentDimension: object, options: object): object
  • locate(anchorBoundingBox: ClientRect, containerBoundingBox: ClientRect, contentDimension: object, options: object): object
  • locate(anchorBoundingBox: ClientRect, containerBoundingBox: ClientRect, contentDimension: object, options: object): object
  • locate(anchorBoundingBox: ClientRect, containerBoundingBox: ClientRect, contentDimension: object, options: object): object
  • locate(anchorBoundingBox: ClientRect, containerBoundingBox: ClientRect, contentDimension: object, options: object): object
  • locate(anchorBoundingBox: ClientRect, containerBoundingBox: ClientRect, contentDimension: object, options: object): object
  • locate(anchorBoundingBox: ClientRect, containerBoundingBox: ClientRect, contentDimension: object, options: object): object
  • locate(anchorBoundingBox: ClientRect, containerBoundingBox: ClientRect, contentDimension: object, options: object): object
  • locate(anchorBoundingBox: ClientRect, containerBoundingBox: ClientRect, contentDimension: object, options: object): object
  • locate(anchorBoundingBox: ClientRect, containerBoundingBox: ClientRect, contentDimension: object, options: object): object
  • locate(anchorBoundingBox: ClientRect, containerBoundingBox: ClientRect, contentDimension: object, options: object): object
  • locate(anchorBoundingBox: ClientRect, containerBoundingBox: ClientRect, contentDimension: object, options: object): any
  • locate(anchorBoundingBox: ClientRect, containerBoundingBox: ClientRect, contentDimension: object, options: object): any
  • locate(anchorBoundingBox: ClientRect, containerBoundingBox: ClientRect, contentDimension: object, options: object): any
  • locate(anchorBoundingBox: ClientRect, containerBoundingBox: ClientRect, contentDimension: object, options: object): any
  • locate(anchorBoundingBox: ClientRect, containerBoundingBox: ClientRect, contentDimension: object, options: object): any
  • locate(anchorBoundingBox: ClientRect, containerBoundingBox: ClientRect, contentDimension: object, options: object): any
  • locate(anchorBoundingBox: ClientRect, containerBoundingBox: ClientRect, contentDimension: object, options: object): object
  • locate(anchorBoundingBox: ClientRect, containerBoundingBox: ClientRect, contentDimension: object, options: object): object
  • locate(anchorBoundingBox: ClientRect, containerBoundingBox: ClientRect, contentDimension: object, options: object): object
  • locate(anchorBoundingBox: ClientRect, containerBoundingBox: ClientRect, contentDimension: object, options: object): object
  • locate(anchorBoundingBox: ClientRect, containerBoundingBox: ClientRect, contentDimension: object, options: object): object
  • locate(anchorBoundingBox: ClientRect, containerBoundingBox: ClientRect, contentDimension: object, options: object): object
  • locate(anchorBoundingBox: ClientRect, containerBoundingBox: ClientRect, contentDimension: object, options: object): object
  • locate(anchorBoundingBox: ClientRect, containerBoundingBox: ClientRect, contentDimension: object, options: object): object
  • 不可见定位

    | anchor | | |


    popover
    ---------------
    anchor
    ---------------
    popover
    ---------
    ---------------
    anchor
    ---------------
    popover
    ---------
    -------------------------------
    popover
    ---------
    ---------------------
    --------------------
    ----------
    popover
    ---------
    --------------------
    --------------------
    ----------
    popover
    ---------
    -------------------------------
    anchor
    ----------------------
    ----------------------
    anchor
    --------------------
    ----------------------
    anchor
    --------------------
    ---------
    popover
    ----------------
    anchor
    ----------------
    ---------
    popover
    ----------------
    anchor
    ----------------
    ---------
    popover
    ----------------
    anchor
    ----------------

    Returns object

  • 不可见定位

    | anchor | | |


    popover
    ---------------
    anchor
    ---------------
    popover
    ---------
    ---------------
    anchor
    ---------------
    popover
    ---------
    -------------------------------
    popover
    ---------
    ---------------------
    --------------------
    ----------
    popover
    ---------
    --------------------
    --------------------
    ----------
    popover
    ---------
    -------------------------------
    anchor
    ----------------------
    ----------------------
    anchor
    --------------------
    ----------------------
    anchor
    --------------------
    ---------
    popover
    ----------------
    anchor
    ----------------
    ---------
    popover
    ----------------
    anchor
    ----------------
    ---------
    popover
    ----------------
    anchor
    ----------------

    Parameters

    • anchorBoundingBox: ClientRect
    • containerBoundingBox: ClientRect
    • contentDimension: object
      • height: number
      • width: number
    • options: object
      • anchor: Element
      • anchorBoundingBoxViewport: any
      • container: Element
      • containerBoundingBoxViewport: any
      • cushion: number

    Returns object

  • 不可见定位

    | anchor | | |


    popover
    ---------------
    anchor
    ---------------
    popover
    ---------
    ---------------
    anchor
    ---------------
    popover
    ---------
    -------------------------------
    popover
    ---------
    ---------------------
    --------------------
    ----------
    popover
    ---------
    --------------------
    --------------------
    ----------
    popover
    ---------
    -------------------------------
    anchor
    ----------------------
    ----------------------
    anchor
    --------------------
    ----------------------
    anchor
    --------------------
    ---------
    popover
    ----------------
    anchor
    ----------------
    ---------
    popover
    ----------------
    anchor
    ----------------
    ---------
    popover
    ----------------
    anchor
    ----------------

    Parameters

    • anchorBoundingBox: ClientRect
    • containerBoundingBox: ClientRect
    • contentDimension: object
      • height: number
      • width: number
    • options: object
      • anchor: Element
      • anchorBoundingBoxViewport: any
      • container: Element
      • containerBoundingBoxViewport: any
      • cushion: number

    Returns object

  • 不可见定位

    | anchor | | |


    popover
    ---------------
    anchor
    ---------------
    popover
    ---------
    ---------------
    anchor
    ---------------
    popover
    ---------
    -------------------------------
    popover
    ---------
    ---------------------
    --------------------
    ----------
    popover
    ---------
    --------------------
    --------------------
    ----------
    popover
    ---------
    -------------------------------
    anchor
    ----------------------
    ----------------------
    anchor
    --------------------
    ----------------------
    anchor
    --------------------
    ---------
    popover
    ----------------
    anchor
    ----------------
    ---------
    popover
    ----------------
    anchor
    ----------------
    ---------
    popover
    ----------------
    anchor
    ----------------

    Parameters

    • anchorBoundingBox: ClientRect
    • containerBoundingBox: ClientRect
    • contentDimension: object
      • height: number
      • width: number
    • options: object
      • anchor: Element
      • anchorBoundingBoxViewport: any
      • container: Element
      • containerBoundingBoxViewport: any
      • cushion: number

    Returns object

  • 不可见定位

    | anchor | | |


    popover
    ---------------
    anchor
    ---------------
    popover
    ---------
    ---------------
    anchor
    ---------------
    popover
    ---------
    -------------------------------
    popover
    ---------
    ---------------------
    --------------------
    ----------
    popover
    ---------
    --------------------
    --------------------
    ----------
    popover
    ---------
    -------------------------------
    anchor
    ----------------------
    ----------------------
    anchor
    --------------------
    ----------------------
    anchor
    --------------------
    ---------
    popover
    ----------------
    anchor
    ----------------
    ---------
    popover
    ----------------
    anchor
    ----------------
    ---------
    popover
    ----------------
    anchor
    ----------------

    Parameters

    • anchorBoundingBox: ClientRect
    • containerBoundingBox: ClientRect
    • contentDimension: object
      • height: number
      • width: number
    • options: object
      • anchor: Element
      • anchorBoundingBoxViewport: any
      • container: Element
      • containerBoundingBoxViewport: any
      • cushion: number

    Returns object

  • 不可见定位

    | anchor | | |


    popover
    ---------------
    anchor
    ---------------
    popover
    ---------
    ---------------
    anchor
    ---------------
    popover
    ---------
    -------------------------------
    popover
    ---------
    ---------------------
    --------------------
    ----------
    popover
    ---------
    --------------------
    --------------------
    ----------
    popover
    ---------
    -------------------------------
    anchor
    ----------------------
    ----------------------
    anchor
    --------------------
    ----------------------
    anchor
    --------------------
    ---------
    popover
    ----------------
    anchor
    ----------------
    ---------
    popover
    ----------------
    anchor
    ----------------
    ---------
    popover
    ----------------
    anchor
    ----------------

    Parameters

    • anchorBoundingBox: ClientRect
    • containerBoundingBox: ClientRect
    • contentDimension: object
      • height: number
      • width: number
    • options: object
      • anchor: Element
      • anchorBoundingBoxViewport: any
      • container: Element
      • containerBoundingBoxViewport: any
      • cushion: number

    Returns object

  • 不可见定位

    | anchor | | |


    popover
    ---------------
    anchor
    ---------------
    popover
    ---------
    ---------------
    anchor
    ---------------
    popover
    ---------
    -------------------------------
    popover
    ---------
    ---------------------
    --------------------
    ----------
    popover
    ---------
    --------------------
    --------------------
    ----------
    popover
    ---------
    -------------------------------
    anchor
    ----------------------
    ----------------------
    anchor
    --------------------
    ----------------------
    anchor
    --------------------
    ---------
    popover
    ----------------
    anchor
    ----------------
    ---------
    popover
    ----------------
    anchor
    ----------------
    ---------
    popover
    ----------------
    anchor
    ----------------

    Parameters

    • anchorBoundingBox: ClientRect
    • containerBoundingBox: ClientRect
    • contentDimension: object
      • height: number
      • width: number
    • options: object
      • anchor: Element
      • anchorBoundingBoxViewport: any
      • container: Element
      • containerBoundingBoxViewport: any
      • cushion: number

    Returns object

  • 不可见定位

    | anchor | | |


    popover
    ---------------
    anchor
    ---------------
    popover
    ---------
    ---------------
    anchor
    ---------------
    popover
    ---------
    -------------------------------
    popover
    ---------
    ---------------------
    --------------------
    ----------
    popover
    ---------
    --------------------
    --------------------
    ----------
    popover
    ---------
    -------------------------------
    anchor
    ----------------------
    ----------------------
    anchor
    --------------------
    ----------------------
    anchor
    --------------------
    ---------
    popover
    ----------------
    anchor
    ----------------
    ---------
    popover
    ----------------
    anchor
    ----------------
    ---------
    popover
    ----------------
    anchor
    ----------------

    Parameters

    • anchorBoundingBox: ClientRect
    • containerBoundingBox: ClientRect
    • contentDimension: object
      • height: number
      • width: number
    • options: object
      • anchor: Element
      • anchorBoundingBoxViewport: any
      • container: Element
      • containerBoundingBoxViewport: any
      • cushion: number

    Returns object

  • 不可见定位

    | anchor | | |


    popover
    ---------------
    anchor
    ---------------
    popover
    ---------
    ---------------
    anchor
    ---------------
    popover
    ---------
    -------------------------------
    popover
    ---------
    ---------------------
    --------------------
    ----------
    popover
    ---------
    --------------------
    --------------------
    ----------
    popover
    ---------
    -------------------------------
    anchor
    ----------------------
    ----------------------
    anchor
    --------------------
    ----------------------
    anchor
    --------------------
    ---------
    popover
    ----------------
    anchor
    ----------------
    ---------
    popover
    ----------------
    anchor
    ----------------
    ---------
    popover
    ----------------
    anchor
    ----------------

    Parameters

    • anchorBoundingBox: ClientRect
    • containerBoundingBox: ClientRect
    • contentDimension: object
      • height: number
      • width: number
    • options: object
      • anchor: Element
      • anchorBoundingBoxViewport: any
      • container: Element
      • containerBoundingBoxViewport: any
      • cushion: number

    Returns object

  • 不可见定位

    | anchor | | |


    popover
    ---------------
    anchor
    ---------------
    popover
    ---------
    ---------------
    anchor
    ---------------
    popover
    ---------
    -------------------------------
    popover
    ---------
    ---------------------
    --------------------
    ----------
    popover
    ---------
    --------------------
    --------------------
    ----------
    popover
    ---------
    -------------------------------
    anchor
    ----------------------
    ----------------------
    anchor
    --------------------
    ----------------------
    anchor
    --------------------
    ---------
    popover
    ----------------
    anchor
    ----------------
    ---------
    popover
    ----------------
    anchor
    ----------------
    ---------
    popover
    ----------------
    anchor
    ----------------

    Parameters

    • anchorBoundingBox: ClientRect
    • containerBoundingBox: ClientRect
    • contentDimension: object
      • height: number
      • width: number
    • options: object
      • anchor: Element
      • anchorBoundingBoxViewport: any
      • container: Element
      • containerBoundingBoxViewport: any
      • cushion: number

    Returns object

  • 不可见定位

    | anchor | | |


    popover
    ---------------
    anchor
    ---------------
    popover
    ---------
    ---------------
    anchor
    ---------------
    popover
    ---------
    -------------------------------
    popover
    ---------
    ---------------------
    --------------------
    ----------
    popover
    ---------
    --------------------
    --------------------
    ----------
    popover
    ---------
    -------------------------------
    anchor
    ----------------------
    ----------------------
    anchor
    --------------------
    ----------------------
    anchor
    --------------------
    ---------
    popover
    ----------------
    anchor
    ----------------
    ---------
    popover
    ----------------
    anchor
    ----------------
    ---------
    popover
    ----------------
    anchor
    ----------------

    Parameters

    • anchorBoundingBox: ClientRect
    • containerBoundingBox: ClientRect
    • contentDimension: object
      • height: number
      • width: number
    • options: object
      • anchor: Element
      • anchorBoundingBoxViewport: any
      • container: Element
      • containerBoundingBoxViewport: any
      • cushion: number

    Returns object

  • 不可见定位

    | anchor | | |


    popover
    ---------------
    anchor
    ---------------
    popover
    ---------
    ---------------
    anchor
    ---------------
    popover
    ---------
    -------------------------------
    popover
    ---------
    ---------------------
    --------------------
    ----------
    popover
    ---------
    --------------------
    --------------------
    ----------
    popover
    ---------
    -------------------------------
    anchor
    ----------------------
    ----------------------
    anchor
    --------------------
    ----------------------
    anchor
    --------------------
    ---------
    popover
    ----------------
    anchor
    ----------------
    ---------
    popover
    ----------------
    anchor
    ----------------
    ---------
    popover
    ----------------
    anchor
    ----------------

    Parameters

    • anchorBoundingBox: ClientRect
    • containerBoundingBox: ClientRect
    • contentDimension: object
      • height: number
      • width: number
    • options: object
      • anchor: Element
      • anchorBoundingBoxViewport: any
      • container: Element
      • containerBoundingBoxViewport: any
      • cushion: number

    Returns object

  • 不可见定位

    | anchor | | |


    popover
    ---------------
    anchor
    ---------------
    popover
    ---------
    ---------------
    anchor
    ---------------
    popover
    ---------
    -------------------------------
    popover
    ---------
    ---------------------
    --------------------
    ----------
    popover
    ---------
    --------------------
    --------------------
    ----------
    popover
    ---------
    -------------------------------
    anchor
    ----------------------
    ----------------------
    anchor
    --------------------
    ----------------------
    anchor
    --------------------
    ---------
    popover
    ----------------
    anchor
    ----------------
    ---------
    popover
    ----------------
    anchor
    ----------------
    ---------
    popover
    ----------------
    anchor
    ----------------

    Parameters

    • anchorBoundingBox: ClientRect
    • containerBoundingBox: ClientRect
    • contentDimension: object
      • height: number
      • width: number
    • options: object
      • anchor: Element
      • anchorBoundingBoxViewport: any
      • container: Element
      • containerBoundingBoxViewport: any
      • cushion: number

    Returns object

  • 不可见定位

    | anchor | | |


    popover
    ---------------
    anchor
    ---------------
    popover
    ---------
    ---------------
    anchor
    ---------------
    popover
    ---------
    -------------------------------
    popover
    ---------
    ---------------------
    --------------------
    ----------
    popover
    ---------
    --------------------
    --------------------
    ----------
    popover
    ---------
    -------------------------------
    anchor
    ----------------------
    ----------------------
    anchor
    --------------------
    ----------------------
    anchor
    --------------------
    ---------
    popover
    ----------------
    anchor
    ----------------
    ---------
    popover
    ----------------
    anchor
    ----------------
    ---------
    popover
    ----------------
    anchor
    ----------------

    Parameters

    • anchorBoundingBox: ClientRect
    • containerBoundingBox: ClientRect
    • contentDimension: object
      • height: number
      • width: number
    • options: object
      • anchor: Element
      • anchorBoundingBoxViewport: any
      • container: Element
      • containerBoundingBoxViewport: any
      • cushion: number

    Returns any

  • 不可见定位

    | anchor | | |


    popover
    ---------------
    anchor
    ---------------
    popover
    ---------
    ---------------
    anchor
    ---------------
    popover
    ---------
    -------------------------------
    popover
    ---------
    ---------------------
    --------------------
    ----------
    popover
    ---------
    --------------------
    --------------------
    ----------
    popover
    ---------
    -------------------------------
    anchor
    ----------------------
    ----------------------
    anchor
    --------------------
    ----------------------
    anchor
    --------------------
    ---------
    popover
    ----------------
    anchor
    ----------------
    ---------
    popover
    ----------------
    anchor
    ----------------
    ---------
    popover
    ----------------
    anchor
    ----------------

    Parameters

    • anchorBoundingBox: ClientRect
    • containerBoundingBox: ClientRect
    • contentDimension: object
      • height: number
      • width: number
    • options: object
      • anchor: Element
      • anchorBoundingBoxViewport: any
      • container: Element
      • containerBoundingBoxViewport: any
      • cushion: number

    Returns any

  • 不可见定位

    | anchor | | |


    popover
    ---------------
    anchor
    ---------------
    popover
    ---------
    ---------------
    anchor
    ---------------
    popover
    ---------
    -------------------------------
    popover
    ---------
    ---------------------
    --------------------
    ----------
    popover
    ---------
    --------------------
    --------------------
    ----------
    popover
    ---------
    -------------------------------
    anchor
    ----------------------
    ----------------------
    anchor
    --------------------
    ----------------------
    anchor
    --------------------
    ---------
    popover
    ----------------
    anchor
    ----------------
    ---------
    popover
    ----------------
    anchor
    ----------------
    ---------
    popover
    ----------------
    anchor
    ----------------

    Parameters

    • anchorBoundingBox: ClientRect
    • containerBoundingBox: ClientRect
    • contentDimension: object
      • height: number
      • width: number
    • options: object
      • anchor: Element
      • anchorBoundingBoxViewport: any
      • container: Element
      • containerBoundingBoxViewport: any
      • cushion: number

    Returns any

  • 不可见定位

    | anchor | | |


    popover
    ---------------
    anchor
    ---------------
    popover
    ---------
    ---------------
    anchor
    ---------------
    popover
    ---------
    -------------------------------
    popover
    ---------
    ---------------------
    --------------------
    ----------
    popover
    ---------
    --------------------
    --------------------
    ----------
    popover
    ---------
    -------------------------------
    anchor
    ----------------------
    ----------------------
    anchor
    --------------------
    ----------------------
    anchor
    --------------------
    ---------
    popover
    ----------------
    anchor
    ----------------
    ---------
    popover
    ----------------
    anchor
    ----------------
    ---------
    popover
    ----------------
    anchor
    ----------------

    Parameters

    • anchorBoundingBox: ClientRect
    • containerBoundingBox: ClientRect
    • contentDimension: object
      • height: number
      • width: number
    • options: object
      • anchor: Element
      • anchorBoundingBoxViewport: any
      • container: Element
      • containerBoundingBoxViewport: any
      • cushion: number

    Returns any

  • 不可见定位

    | anchor | | |


    popover
    ---------------
    anchor
    ---------------
    popover
    ---------
    ---------------
    anchor
    ---------------
    popover
    ---------
    -------------------------------
    popover
    ---------
    ---------------------
    --------------------
    ----------
    popover
    ---------
    --------------------
    --------------------
    ----------
    popover
    ---------
    -------------------------------
    anchor
    ----------------------
    ----------------------
    anchor
    --------------------
    ----------------------
    anchor
    --------------------
    ---------
    popover
    ----------------
    anchor
    ----------------
    ---------
    popover
    ----------------
    anchor
    ----------------
    ---------
    popover
    ----------------
    anchor
    ----------------

    Parameters

    • anchorBoundingBox: ClientRect
    • containerBoundingBox: ClientRect
    • contentDimension: object
      • height: number
      • width: number
    • options: object
      • anchor: Element
      • anchorBoundingBoxViewport: any
      • container: Element
      • containerBoundingBoxViewport: any
      • cushion: number

    Returns any

  • 不可见定位

    | anchor | | |


    popover
    ---------------
    anchor
    ---------------
    popover
    ---------
    ---------------
    anchor
    ---------------
    popover
    ---------
    -------------------------------
    popover
    ---------
    ---------------------
    --------------------
    ----------
    popover
    ---------
    --------------------
    --------------------
    ----------
    popover
    ---------
    -------------------------------
    anchor
    ----------------------
    ----------------------
    anchor
    --------------------
    ----------------------
    anchor
    --------------------
    ---------
    popover
    ----------------
    anchor
    ----------------
    ---------
    popover
    ----------------
    anchor
    ----------------
    ---------
    popover
    ----------------
    anchor
    ----------------

    Parameters

    • anchorBoundingBox: ClientRect
    • containerBoundingBox: ClientRect
    • contentDimension: object
      • height: number
      • width: number
    • options: object
      • anchor: Element
      • anchorBoundingBoxViewport: any
      • container: Element
      • containerBoundingBoxViewport: any
      • cushion: number

    Returns any

  • 不可见定位

    | anchor | | |


    popover
    ---------------
    anchor
    ---------------
    popover
    ---------
    ---------------
    anchor
    ---------------
    popover
    ---------
    -------------------------------
    popover
    ---------
    ---------------------
    --------------------
    ----------
    popover
    ---------
    --------------------
    --------------------
    ----------
    popover
    ---------
    -------------------------------
    anchor
    ----------------------
    ----------------------
    anchor
    --------------------
    ----------------------
    anchor
    --------------------
    ---------
    popover
    ----------------
    anchor
    ----------------
    ---------
    popover
    ----------------
    anchor
    ----------------
    ---------
    popover
    ----------------
    anchor
    ----------------

    Parameters

    • anchorBoundingBox: ClientRect
    • containerBoundingBox: ClientRect
    • contentDimension: object
      • height: number
      • width: number
    • options: object
      • anchor: Element
      • anchorBoundingBoxViewport: any
      • container: Element
      • containerBoundingBoxViewport: any
      • cushion: number

    Returns object

  • 不可见定位

    | anchor | | |


    popover
    ---------------
    anchor
    ---------------
    popover
    ---------
    ---------------
    anchor
    ---------------
    popover
    ---------
    -------------------------------
    popover
    ---------
    ---------------------
    --------------------
    ----------
    popover
    ---------
    --------------------
    --------------------
    ----------
    popover
    ---------
    -------------------------------
    anchor
    ----------------------
    ----------------------
    anchor
    --------------------
    ----------------------
    anchor
    --------------------
    ---------
    popover
    ----------------
    anchor
    ----------------
    ---------
    popover
    ----------------
    anchor
    ----------------
    ---------
    popover
    ----------------
    anchor
    ----------------

    Parameters

    • anchorBoundingBox: ClientRect
    • containerBoundingBox: ClientRect
    • contentDimension: object
      • height: number
      • width: number
    • options: object
      • anchor: Element
      • anchorBoundingBoxViewport: any
      • container: Element
      • containerBoundingBoxViewport: any
      • cushion: number

    Returns object

  • 不可见定位

    | anchor | | |


    popover
    ---------------
    anchor
    ---------------
    popover
    ---------
    ---------------
    anchor
    ---------------
    popover
    ---------
    -------------------------------
    popover
    ---------
    ---------------------
    --------------------
    ----------
    popover
    ---------
    --------------------
    --------------------
    ----------
    popover
    ---------
    -------------------------------
    anchor
    ----------------------
    ----------------------
    anchor
    --------------------
    ----------------------
    anchor
    --------------------
    ---------
    popover
    ----------------
    anchor
    ----------------
    ---------
    popover
    ----------------
    anchor
    ----------------
    ---------
    popover
    ----------------
    anchor
    ----------------

    Parameters

    • anchorBoundingBox: ClientRect
    • containerBoundingBox: ClientRect
    • contentDimension: object
      • height: number
      • width: number
    • options: object
      • anchor: Element
      • anchorBoundingBoxViewport: any
      • container: Element
      • containerBoundingBoxViewport: any
      • cushion: number

    Returns object

  • 不可见定位

    | anchor | | |


    popover
    ---------------
    anchor
    ---------------
    popover
    ---------
    ---------------
    anchor
    ---------------
    popover
    ---------
    -------------------------------
    popover
    ---------
    ---------------------
    --------------------
    ----------
    popover
    ---------
    --------------------
    --------------------
    ----------
    popover
    ---------
    -------------------------------
    anchor
    ----------------------
    ----------------------
    anchor
    --------------------
    ----------------------
    anchor
    --------------------
    ---------
    popover
    ----------------
    anchor
    ----------------
    ---------
    popover
    ----------------
    anchor
    ----------------
    ---------
    popover
    ----------------
    anchor
    ----------------

    Parameters

    • anchorBoundingBox: ClientRect
    • containerBoundingBox: ClientRect
    • contentDimension: object
      • height: number
      • width: number
    • options: object
      • anchor: Element
      • anchorBoundingBoxViewport: any
      • container: Element
      • containerBoundingBoxViewport: any
      • cushion: number

    Returns object

  • 不可见定位

    | anchor | | |


    popover
    ---------------
    anchor
    ---------------
    popover
    ---------
    ---------------
    anchor
    ---------------
    popover
    ---------
    -------------------------------
    popover
    ---------
    ---------------------
    --------------------
    ----------
    popover
    ---------
    --------------------
    --------------------
    ----------
    popover
    ---------
    -------------------------------
    anchor
    ----------------------
    ----------------------
    anchor
    --------------------
    ----------------------
    anchor
    --------------------
    ---------
    popover
    ----------------
    anchor
    ----------------
    ---------
    popover
    ----------------
    anchor
    ----------------
    ---------
    popover
    ----------------
    anchor
    ----------------

    Parameters

    • anchorBoundingBox: ClientRect
    • containerBoundingBox: ClientRect
    • contentDimension: object
      • height: number
      • width: number
    • options: object
      • anchor: Element
      • anchorBoundingBoxViewport: any
      • container: Element
      • containerBoundingBoxViewport: any
      • cushion: number

    Returns object

  • 不可见定位

    | anchor | | |


    popover
    ---------------
    anchor
    ---------------
    popover
    ---------
    ---------------
    anchor
    ---------------
    popover
    ---------
    -------------------------------
    popover
    ---------
    ---------------------
    --------------------
    ----------
    popover
    ---------
    --------------------
    --------------------
    ----------
    popover
    ---------
    -------------------------------
    anchor
    ----------------------
    ----------------------
    anchor
    --------------------
    ----------------------
    anchor
    --------------------
    ---------
    popover
    ----------------
    anchor
    ----------------
    ---------
    popover
    ----------------
    anchor
    ----------------
    ---------
    popover
    ----------------
    anchor
    ----------------

    Parameters

    • anchorBoundingBox: ClientRect
    • containerBoundingBox: ClientRect
    • contentDimension: object
      • height: number
      • width: number
    • options: object
      • anchor: Element
      • anchorBoundingBoxViewport: any
      • container: Element
      • containerBoundingBoxViewport: any
      • cushion: number

    Returns object

  • 不可见定位

    | anchor | | |


    popover
    ---------------
    anchor
    ---------------
    popover
    ---------
    ---------------
    anchor
    ---------------
    popover
    ---------
    -------------------------------
    popover
    ---------
    ---------------------
    --------------------
    ----------
    popover
    ---------
    --------------------
    --------------------
    ----------
    popover
    ---------
    -------------------------------
    anchor
    ----------------------
    ----------------------
    anchor
    --------------------
    ----------------------
    anchor
    --------------------
    ---------
    popover
    ----------------
    anchor
    ----------------
    ---------
    popover
    ----------------
    anchor
    ----------------
    ---------
    popover
    ----------------
    anchor
    ----------------

    Parameters

    • anchorBoundingBox: ClientRect
    • containerBoundingBox: ClientRect
    • contentDimension: object
      • height: number
      • width: number
    • options: object
      • anchor: Element
      • anchorBoundingBoxViewport: any
      • container: Element
      • containerBoundingBoxViewport: any
      • cushion: number

    Returns object

  • 不可见定位

    | anchor | | |


    popover
    ---------------
    anchor
    ---------------
    popover
    ---------
    ---------------
    anchor
    ---------------
    popover
    ---------
    -------------------------------
    popover
    ---------
    ---------------------
    --------------------
    ----------
    popover
    ---------
    --------------------
    --------------------
    ----------
    popover
    ---------
    -------------------------------
    anchor
    ----------------------
    ----------------------
    anchor
    --------------------
    ----------------------
    anchor
    --------------------
    ---------
    popover
    ----------------
    anchor
    ----------------
    ---------
    popover
    ----------------
    anchor
    ----------------
    ---------
    popover
    ----------------
    anchor
    ----------------

    Parameters

    • anchorBoundingBox: ClientRect
    • containerBoundingBox: ClientRect
    • contentDimension: object
      • height: number
      • width: number
    • options: object
      • anchor: Element
      • anchorBoundingBoxViewport: any
      • container: Element
      • containerBoundingBoxViewport: any
      • cushion: number

    Returns object

lowercaseProps

  • lowercaseProps(object: object): object

makeContext

makeDateStr

  • makeDateStr(date: string | Date | number, mask?: string): string
  • 获得 YYYY-MM-DD 格式的日期字符串的快捷方法

    memberof

    module:date

    example

    makeDateStr(new Date()); // '2017-06-06'

    Parameters

    • date: string | Date | number

      需要格式化的字符串,兼容字符串、数字和 Date 实例

    • Default value mask: string = "YYYY-MM-DD"

      解析的格式,默认为 'YYYY-MM-DD',方便日常开发

    Returns string

    格式化后的日期字符串

makeDateTimeStr

  • makeDateTimeStr(date: string | Date | number, mask?: string): string
  • 获得 YYYY-MM-DD HH:mm:ss 格式的日期字符串的快捷方法

    memberof

    module:date

    example

    makeDateTimeStr(new Date()); // '2017-06-06 17:37:16'

    Parameters

    • date: string | Date | number

      需要格式化的字符串,兼容字符串、数字和 Date 实例

    • Default value mask: string = "YYYY-MM-DD HH:mm:ss"

      解析的格式,默认为 'YYYY-MM-DD HH:mm:ss',方便日常开发

    Returns string

    格式化后的日期字符串

makeEvent

makeHoverEnterRecognizer

  • makeHoverEnterRecognizer(__namedParameters: object): any

makeHoverLeaveRecognizer

  • makeHoverLeaveRecognizer(__namedParameters: object): any

makeRecognizer

  • makeRecognizer(state: any, options: any): any

Const makeState

  • makeState(name: any, onFinish: any, initState?: number): object

mapDOMNodes

  • mapDOMNodes<T, V>(nodes: NodeListOf<T>, callback: function): V[]
  • Type parameters

    • T: Node

    • V

    Parameters

    • nodes: NodeListOf<T>
    • callback: function
        • (val: T, idx: number): V
        • Parameters

          • val: T
          • idx: number

          Returns V

    Returns V[]

measureScrollbar

  • measureScrollbar(): number

Const mergeClasses

  • mergeClasses(classes: any, activeNames?: any[]): any

miniLayout

monthStart

  • monthStart(date?: Date): Date

monthUpdate

  • monthUpdate(arrName: string): (Anonymous function)

needFixBatchComps

  • needFixBatchComps(isTableInView: boolean, isHeaderInView: boolean, isFootInView: boolean): boolean

nextFrame

  • nextFrame(callback: function): void

Const noop

  • noop(): void
  • noop(): void
  • noop(res: any): any

normalLayout

normalize

  • normalize(timeline: any, size: any): any

normalizeMinMax

normalizeToPotentialValue

  • normalizeToPotentialValue(potentialValues: number[], value: number): number

normalizeValue

  • normalizeValue(potential: number | undefined | null, min: number, max: number): object

omit

  • omit<T, K>(obj: T | null | undefined, paths: ReadonlyArray<K>): Omit<T, K>

onDocumentSelectionChange

  • onDocumentSelectionChange(evt: any): void

openDialog

pad

  • pad(val: string | number, len?: number): string

Const padLeft

  • padLeft(val: any): any

parse

parseDate

  • parseDate(date: string | number | Date, mask?: string, locale?: IFechaI18nSettings): Date
  • 解析日期,字符串转化为日期

    memberof

    module:date

    see

    parse文档

    example

    parseDate('February 3rd, 2014', 'MMMM Do, YYYY'); // new Date(2014, 1, 3) parseDate('10-12-10 14:11:12', 'YY-MM-DD HH:mm:ss'); // new Date(2010, 11, 10, 14, 11, 12) parseDate('5/3/98', 'shortDate'); // new Date(1998, 4, 3) parseDate('November 4, 2005', 'longDate'); // new Date(2005, 10, 4)

    Parameters

    • date: string | number | Date

      需要解析的 date,默认应该传入字符串,但对下面两个情况也做了兼容:

      • 如果传入Date的实例则直接返回这个实例;
      • 如果传入时间戳数字,则返回 new Date(date) 函数调用后的值;
    • Default value mask: string = "default"

      解析的格式

    • Default value locale: IFechaI18nSettings = zhCN

      the i18n setting for fecha

    Returns Date

    转化后的日期

parseIntFromHex

  • parseIntFromHex(val: string): number

patchElement

  • patchElement(parent: HTMLElement): void

pickError

  • pickError(errors: Array<IMaybeError<unknown>>): IMaybeError<unknown>

prefixKey

  • prefixKey(prefix: string, key: string): string
  • Parameters

    • prefix: string

      vendor-specific prefix, eg: Webkit

    • key: string

      style name, eg: transitionDuration

    Returns string

    style name prefixed with prefix, properly camelCased, eg: WebkitTransitionDuration

preventDefault

  • preventDefault(e: MouseEvent<HTMLElement>): void

preventOpenLink

  • preventOpenLink(event: MouseEvent<HTMLAnchorElement, MouseEvent>): void

previewImage

Const promiseNoop

  • promiseNoop(): Promise<unknown>

read

  • read(namespace: string, key: string): any

readNamespace

  • readNamespace(namespace: string): any

refArray

  • refArray(length: number): Array<RefObject<Star>>

regexEscape

  • regexEscape(str: string): string

remove

  • remove(id: number): void

removeAllChildren

  • removeAllChildren(node: Node): void

render

  • render(c1: any, c2: any, size: any, ServerCanvas: any): any

renderCheckbox

renderCheckboxGroup

renderColorPicker

renderIcon

  • renderIcon(type: "info" | "success" | "warning" | "error" | undefined): Element

renderInput

renderRadioGroup

renderSwitch

reorder

  • reorder<T>(array: T[], fromIndex: number, toIndex: number): any[]

replaceSubstring

  • replaceSubstring(str: any, start: any, end: any, replacer: any): object

resetCascaderValue

  • resetCascaderValue(value: unknown[], options?: ICascaderItem[], chooseNext?: boolean): object

restoreElement

  • restoreElement(parent: HTMLElement): void

rgbToHex

  • rgbToHex(r: number, g: number, b: number, allow3Char: boolean): string

rgbToHsl

  • rgbToHsl(r: number, g: number, b: number): object
  • Converts an RGB color value to HSL. Assumes: r, g, and b are contained in [0, 255] or [0, 1] Returns: { h, s, l } in [0,1]

    Parameters

    • r: number
    • g: number
    • b: number

    Returns object

    • h: number
    • l: number
    • s: number

rgbToHsv

  • rgbToHsv(r: number, g: number, b: number): object
  • Converts an RGB color value to HSV

    Assumes: r, g, and b are contained in the set [0, 255] or [0, 1] Returns: { h, s, v } in [0,1]

    Parameters

    • r: number
    • g: number
    • b: number

    Returns object

    • h: number
    • s: number
    • v: number

rgbToRgb

  • rgbToRgb(r: number, g: number, b: number): object

sample

  • sample<T>(arr: ReadonlyArray<T>): T

scaleSvgSize

  • scaleSvgSize(size: number, value: number): number

scrollElement

  • scrollElement(x: number, y: number): void

setDay

setHour

setLocale

setMinute

setMonth

setPm

setRowSpan

Const setSameDate

  • setSameDate(val: any, target: any): any

setSecond

setStyle

  • setStyle(target: any, styles: any): void

setTime

  • setTime(date: Date, time?: Date | string): Date

setValueForStyles

  • setValueForStyles(node: HTMLElement, styles: CSSProperties): void

Const shallowEqual

  • shallowEqual(newValue: unknown, oldValue: unknown): boolean
  • Performs equality by iterating through keys on an object and returning false when any key has values which are not strictly equal between the arguments. Returns true when the values of all keys are strictly equal.

    Parameters

    • newValue: unknown
    • oldValue: unknown

    Returns boolean

shorten

  • shorten(arr: string[], sLen: number): string[]

Const show

  • show(text: any, duration: any, status: any, callback: any): number
  • notify显示

    Parameters

    • text: any

      显示文案

    • duration: any

      显示时长

    • status: any

      notify状态

    • callback: any

      notify消失时回调

    Returns number

Const simpleIsEqual

  • simpleIsEqual(newArgs: unknown[], lastArgs: unknown[]): boolean

smoothScroll

  • smoothScroll(el: HTMLElement | Window, x: number, y: number, duration?: number): void
  • scrolls element with a smooth behavior

    method

    smoothScroll

    Parameters

    • el: HTMLElement | Window

      element to scroll

    • x: number

      target position x

    • y: number

      target position y

    • Default value duration: number = SCROLL_TIME

      animation duration

    Returns void

step

stopPropagation

  • stopPropagation(e: MouseEvent): void

stringInputToObject

  • stringInputToObject(color: string): any

substring

  • substring(str: any, start: any, end: any): any

success

  • success(text: any, duration?: number, callback?: function): number

swapArray

  • swapArray(list: any, fromIndex: any, toIndex: any): any[]

sweet

throttle

tinycolor

Const toBytes

  • toBytes(s: any): number[]

Const toFixed

  • toFixed(value: number, fractionDigits: number): number

toggleSelection

  • toggleSelection(): noop

translateToContainerCoordinates

  • translateToContainerCoordinates(containerBB: any, bb: any): object

trimLeadingPlus

  • trimLeadingPlus(value: string): string

uninstall

  • uninstall(config: any): void

union

  • union<T>(...arrays: Array<ArrayLike<T> | null | undefined>): T[]

uniq

  • uniq<T>(array: ArrayLike<T> | null | undefined, iteratee?: function | string | number | symbol): T[]
  • Type parameters

    • T

    Parameters

    • array: ArrayLike<T> | null | undefined
    • Optional iteratee: function | string | number | symbol

    Returns T[]

Let uniqueId

  • uniqueId(prefix?: string): string

uploadLocalImage

  • uploadLocalImage(options: any, uploadConfig: any): Promise<unknown>

useDelayed

  • useDelayed(__namedParameters: object): boolean

useForm

  • useForm<T, Builder, Model>(arg: View | FormBuilder<T, Builder, Model>): ZentForm<object>
  • Type parameters

    • T: Record<string, Builder>

    • Builder: BasicBuilder<unknown, Model>

    • Model: BasicModel<unknown>

    Parameters

    • arg: View | FormBuilder<T, Builder, Model>

    Returns ZentForm<object>

useFormContext

useRadioHandler

useWindowEvent

  • useWindowEvent<K>(eventName: K, callback: function, useCapture?: boolean): void

warn

  • warn(text: any, duration?: number, callback?: function): number

Let warnValidStyle

  • warnValidStyle(): void

withDefaultOption

  • withDefaultOption(option: ValidateOption | null | undefined): Empty | Empty | IncludeAsync | IncludeUntouched | IncludeChildrenRecursively | ExcludePristine
  • Parameters

    • option: ValidateOption | null | undefined

    Returns Empty | Empty | IncludeAsync | IncludeUntouched | IncludeChildrenRecursively | ExcludePristine

withErrorBoundary

  • withErrorBoundary<P>(__namedParameters?: object): (Anonymous function)

withinRange

  • withinRange(min: number, max: number, num: number): number

write

  • write(namespace: string, key: string, value?: unknown): boolean
  • 将 key 对应的 value 写入 namespace 下 比较暴力,如果无法写入会把所有 Design 相关的缓存清除

    Parameters

    • namespace: string
    • key: string
    • Optional value: unknown

    Returns boolean

    true 表示成功,false 写入失败

writeNamespace

  • writeNamespace<T>(namespace: string, value: T): boolean

Object literals

Const Cascader

Cascader<SS>: object

Type parameters

  • SS

constructor

placeholder

placeholder: string = "Please choose"

title

title: string = "Title"

Optional UNSAFE_componentWillMount

  • UNSAFE_componentWillMount(): void

Optional UNSAFE_componentWillReceiveProps

  • UNSAFE_componentWillReceiveProps(nextProps: Readonly<ICascaderProps>, nextContext: any): void

Optional UNSAFE_componentWillUpdate

clickHandler

  • clickHandler(item: ICascaderItem, stage: number, popover: Popover, triggerType?: "click" | "hover"): void

Optional componentDidCatch

  • componentDidCatch(error: Error, errorInfo: ErrorInfo): void
  • Catches exceptions generated in descendant components. Unhandled exceptions will cause the entire component tree to unmount.

    Parameters

    • error: Error
    • errorInfo: ErrorInfo

    Returns void

componentDidMount

  • componentDidMount(): void

Optional componentDidUpdate

  • Called immediately after updating occurs. Not called for the initial render.

    The snapshot is only present if getSnapshotBeforeUpdate is present and returns non-null.

    Parameters

    Returns void

Optional componentWillMount

  • componentWillMount(): void

Optional componentWillReceiveProps

  • componentWillReceiveProps(nextProps: Readonly<ICascaderProps>, nextContext: any): void

Optional componentWillUnmount

  • componentWillUnmount(): void
  • Called immediately before a component is destroyed. Perform any necessary cleanup in this method, such as cancelled network requests, or cleaning up any DOM elements created in componentDidMount.

    Returns void

Optional componentWillUpdate

expandHandler

  • expandHandler(item: ICascaderItem, stage: number, popover: Popover, willLoading: boolean, triggerType?: "click" | "hover"): void

getPopoverContent

Optional getSnapshotBeforeUpdate

  • Runs before React applies the result of render to the document, and returns an object to be given to componentDidUpdate. Useful for saving things such as scroll position before render causes changes to it.

    Note: the presence of getSnapshotBeforeUpdate prevents any of the deprecated lifecycle events from running.

    Parameters

    Returns SS | null

onClose

  • onClose(): void

onShow

  • onShow(): void

onTabChange

  • onTabChange(id: any): void

recursiveNextOptions

render

  • render(): Element

Optional shouldComponentUpdate

  • Called to determine whether the change in props and state should trigger a re-render.

    Component always returns true. PureComponent implements a shallow comparison on props and state and returns true if any props or states have changed.

    If false is returned, Component#render, componentWillUpdate and componentDidUpdate will not be called.

    Parameters

    Returns boolean

Static getDerivedStateFromProps

  • getDerivedStateFromProps(nextProps: ICascaderProps, __namedParameters: object): object

Static defaultProps

defaultProps: object

changeOnSelect

changeOnSelect: boolean = false

className

className: string = ""

expandTrigger

expandTrigger: string = "click"

onChange

onChange: noop = noop

options

options: undefined[] = []

placeholder

placeholder: string = ""

popClassName

popClassName: string = "zent-cascader__popup"

prefix

prefix: string = "zent"

title

title: undefined[] = []

type

type: string = "tabs"

value

value: undefined[] = []

Const CopyButton

CopyButton<S, SS, S>: object

Type parameters

  • S

  • SS

  • S

constructor

context

context: any

If using the new style context, re-declare this in your class to be the React.ContextType of your static contextType.

static contextType = MyContext
context!: React.ContextType<typeof MyContext>
deprecated

if used without a type annotation, or without static contextType

see

https://reactjs.org/docs/legacy-context.html

props

props: Readonly<ICopyButtonProps> & Readonly<object>

refs

refs: object

Type declaration

  • [key: string]: ReactInstance

state

state: Readonly<S>

Static Optional contextType

contextType: Context<any>

If set, this.context will be set at runtime to the current value of the given Context.

Usage:

type MyContext = number
const Ctx = React.createContext<MyContext>(0)

class Foo extends React.Component {
  static contextType = Ctx
  context!: React.ContextType<typeof Ctx>
  render () {
    return <>My context's value: {this.context}</>;
  }
}
see

https://reactjs.org/docs/context.html#classcontexttype

copy

copy: string = "Copy"

error

error: string = "Copy failed"

success

success: string = "Copied"

Optional UNSAFE_componentWillMount

  • UNSAFE_componentWillMount(): void

Optional UNSAFE_componentWillReceiveProps

  • UNSAFE_componentWillReceiveProps(nextProps: Readonly<ICopyButtonProps>, nextContext: any): void

Optional UNSAFE_componentWillUpdate

  • UNSAFE_componentWillUpdate(nextProps: Readonly<ICopyButtonProps>, nextState: Readonly<S>, nextContext: any): void

Optional componentDidCatch

  • componentDidCatch(error: Error, errorInfo: ErrorInfo): void
  • Catches exceptions generated in descendant components. Unhandled exceptions will cause the entire component tree to unmount.

    Parameters

    • error: Error
    • errorInfo: ErrorInfo

    Returns void

Optional componentDidMount

  • componentDidMount(): void
  • Called immediately after a component is mounted. Setting state here will trigger re-rendering.

    Returns void

Optional componentDidUpdate

  • componentDidUpdate(prevProps: Readonly<ICopyButtonProps>, prevState: Readonly<S>, snapshot?: SS): void
  • Called immediately after updating occurs. Not called for the initial render.

    The snapshot is only present if getSnapshotBeforeUpdate is present and returns non-null.

    Parameters

    • prevProps: Readonly<ICopyButtonProps>
    • prevState: Readonly<S>
    • Optional snapshot: SS

    Returns void

Optional componentWillMount

  • componentWillMount(): void

Optional componentWillReceiveProps

  • componentWillReceiveProps(nextProps: Readonly<ICopyButtonProps>, nextContext: any): void

Optional componentWillUnmount

  • componentWillUnmount(): void
  • Called immediately before a component is destroyed. Perform any necessary cleanup in this method, such as cancelled network requests, or cleaning up any DOM elements created in componentDidMount.

    Returns void

Optional componentWillUpdate

  • componentWillUpdate(nextProps: Readonly<ICopyButtonProps>, nextState: Readonly<S>, nextContext: any): void

forceUpdate

  • forceUpdate(callBack?: function): void
  • Parameters

    • Optional callBack: function
        • (): void
        • Returns void

    Returns void

Optional getSnapshotBeforeUpdate

  • getSnapshotBeforeUpdate(prevProps: Readonly<ICopyButtonProps>, prevState: Readonly<S>): SS | null
  • Runs before React applies the result of render to the document, and returns an object to be given to componentDidUpdate. Useful for saving things such as scroll position before render causes changes to it.

    Note: the presence of getSnapshotBeforeUpdate prevents any of the deprecated lifecycle events from running.

    Parameters

    Returns SS | null

onCopy

onCopyCallback

  • onCopyCallback(type: keyof object, callback: string | function): void

render

  • render(): Element

setState

  • setState<K>(state: function | S | object, callback?: function): void
  • Type parameters

    • K: keyof S

    Parameters

    • state: function | S | object
    • Optional callback: function
        • (): void
        • Returns void

    Returns void

Optional shouldComponentUpdate

  • shouldComponentUpdate(nextProps: Readonly<ICopyButtonProps>, nextState: Readonly<S>, nextContext: any): boolean
  • Called to determine whether the change in props and state should trigger a re-render.

    Component always returns true. PureComponent implements a shallow comparison on props and state and returns true if any props or states have changed.

    If false is returned, Component#render, componentWillUpdate and componentDidUpdate will not be called.

    Parameters

    Returns boolean

Static defaultProps

defaultProps: object

onCopyError

onCopyError: string = ""

onCopySuccess

onCopySuccess: string = ""

Const DEFAULT_ACCEPT

DEFAULT_ACCEPT: object

image

image: string = "image/gif, image/jpeg, image/png, image/bmp"

voice

voice: string = "audio/mpeg, audio/amr"

Const DEFAULT_DISABLED_POP_PROPS

DEFAULT_DISABLED_POP_PROPS: object

centerArrow

centerArrow: true = true

position

position: "top-right" = "top-right"

trigger

trigger: "hover" = "hover"

Const DEFAULT_RENDER_KEY

DEFAULT_RENDER_KEY: object

children

children: string = "children"

id

id: string = "id"

parentId

parentId: string = "parentId"

title

title: string = "title"

Const DEFAULT_STATE

DEFAULT_STATE: object

search

search: null = null

suggestionVisible

suggestionVisible: boolean = false

Const DEFAULT_WIDTH

DEFAULT_WIDTH: object = 19

CIRCLE

CIRCLE: number = 132

LINE

LINE: string = "100%"

Const Grid

Grid<Data, SS>: object

Type parameters

  • Data

  • SS

constructor

bodyTable

bodyTable: HTMLDivElement | null = null

checkboxPropsCache

checkboxPropsCache: object

Type declaration

  • [key: string]: object
    • Optional disabled?: boolean

footEl

footEl: Element

footNode

footNode: RefObject<Footer> = React.createRef<Footer>()

gridNode

gridNode: RefObject<HTMLDivElement> = React.createRef<HTMLDivElement>()

headerEl

headerEl: Element

headerNode

headerNode: RefObject<Header<Data>> = React.createRef<Header<Data>>()

lastScrollLeft

lastScrollLeft: number

lastScrollTop

lastScrollTop: number

leftBody

leftBody: HTMLDivElement | null = null

mounted

mounted: boolean = false

onResize

onResize: (Anonymous function) & ICancelable = debounce(() => {this.syncFixedTableRowHeight();this.toggleBatchComponents();}, 500)

onScroll

onScroll: toggleBatchComponents & ICancelable = throttle(this.toggleBatchComponents, 200)

rightBody

rightBody: HTMLDivElement | null = null

scrollBody

scrollBody: HTMLDivElement | null = null

scrollHeader

scrollHeader: HTMLDivElement | null = null

scrollPosition

scrollPosition: GridScrollPosition

store

store: Store = new Store()

emptyLabel

emptyLabel: string = "No data"

Optional UNSAFE_componentWillMount

  • UNSAFE_componentWillMount(): void

Optional UNSAFE_componentWillReceiveProps

  • UNSAFE_componentWillReceiveProps(nextProps: Readonly<IGridProps<Data>>, nextContext: any): void

Optional UNSAFE_componentWillUpdate

  • UNSAFE_componentWillUpdate(nextProps: Readonly<IGridProps<Data>>, nextState: Readonly<IGridState>, nextContext: any): void

Optional componentDidCatch

  • componentDidCatch(error: Error, errorInfo: ErrorInfo): void
  • Catches exceptions generated in descendant components. Unhandled exceptions will cause the entire component tree to unmount.

    Parameters

    • error: Error
    • errorInfo: ErrorInfo

    Returns void

componentDidMount

  • componentDidMount(): void

componentDidUpdate

  • componentDidUpdate(): void

Optional componentWillMount

  • componentWillMount(): void

componentWillReceiveProps

  • componentWillReceiveProps(nextProps: IGridProps<Data>): void

componentWillUnmount

  • componentWillUnmount(): void

Optional componentWillUpdate

  • componentWillUpdate(nextProps: Readonly<IGridProps<Data>>, nextState: Readonly<IGridState>, nextContext: any): void

getBatchComponents

  • getBatchComponents(position: "header" | "foot"): Element

getBatchFixedStyle

  • getBatchFixedStyle(): object | object

getCheckboxPropsByItem

  • getCheckboxPropsByItem(data: Data, rowIndex: number): object

getColumns

getDataKey

  • getDataKey(data: Data, rowIndex: number | string): any

getEmpty

getExpandBodyRender

  • getExpandBodyRender(expandRowKeys: boolean[]): (Anonymous function)

getExpandRowKeys

  • getExpandRowKeys(props: IGridProps<Data>): boolean[]

getLeftColumns

  • getLeftColumns(): any

getLeftFixedTable

  • getLeftFixedTable(): Element[]

getRightColumns

  • getRightColumns(): any

getRightFixedTable

  • getRightFixedTable(): Element[]

Optional getSnapshotBeforeUpdate

  • getSnapshotBeforeUpdate(prevProps: Readonly<IGridProps<Data>>, prevState: Readonly<IGridState>): SS | null
  • Runs before React applies the result of render to the document, and returns an object to be given to componentDidUpdate. Useful for saving things such as scroll position before render causes changes to it.

    Note: the presence of getSnapshotBeforeUpdate prevents any of the deprecated lifecycle events from running.

    Parameters

    Returns SS | null

getTable

  • getTable(options?: object): Element[]

handleBatchSelect

  • handleBatchSelect(type: "selectAll" | "removeAll", data: Data[]): void

handleBodyScroll

  • handleBodyScroll(e: UIEvent<HTMLDivElement>): void

handleExpandRow

  • handleExpandRow(clickRow: number, rowData: Data): (Anonymous function)

handleSelect

  • handleSelect(data: Data, rowIndex: string, e: ICheckboxEvent<unknown>): void

isAnyColumnsFixed

  • isAnyColumnsFixed(): any

isAnyColumnsLeftFixed

  • isAnyColumnsLeftFixed(): any

isAnyColumnsRightFixed

  • isAnyColumnsRightFixed(): any

onChange

onPaginationChange

  • onPaginationChange(pageSize: number, current: number): void

onRowMouseEnter

  • onRowMouseEnter(mouseOverRowIndex: number): void

onSelectChange

  • onSelectChange(selectedRowKeys: string[], data: Data | Data[]): void

render

  • render(): Element

renderSelectionCheckbox

  • renderSelectionCheckbox(): (Anonymous function)

setScrollPosition

setScrollPositionClassName

  • setScrollPositionClassName(): void

Optional shouldComponentUpdate

  • shouldComponentUpdate(nextProps: Readonly<IGridProps<Data>>, nextState: Readonly<IGridState>, nextContext: any): boolean
  • Called to determine whether the change in props and state should trigger a re-render.

    Component always returns true. PureComponent implements a shallow comparison on props and state and returns true if any props or states have changed.

    If false is returned, Component#render, componentWillUpdate and componentDidUpdate will not be called.

    Parameters

    Returns boolean

syncFixedTableRowHeight

  • syncFixedTableRowHeight(): void

toggleBatchComponents

  • toggleBatchComponents(): void

Static defaultProps

defaultProps: object

bordered

bordered: false = false

className

className: string = ""

columns

columns: undefined[] = []

datasets

datasets: undefined[] = []

ellipsis

ellipsis: false = false

emptyLabel

emptyLabel: string = ""

loading

loading: false = false

onChange

onChange: noop = noop

onExpand

onExpand: noop = noop

onRowClick

onRowClick: noop = noop

paginationType

paginationType: "default" = "default"

rowKey

rowKey: string = "id"

scroll

scroll: object

Type declaration

stickyBatch

stickyBatch: false = false

Const HIDDEN_STYLE

HIDDEN_STYLE: object

opacity

opacity: number = 0

Const HoverState

HoverState: object

Finish

Finish: number = 255

Init

Init: number = 1

Pending

Pending: number = 3

Started

Started: number = 2

Const ICON_TYPE

ICON_TYPE: object

error

error: string = "close-circle"

info

info: string = "info-circle"

success

success: string = "check-circle"

warn

warn: string = "warning"

Const MEASURE_STYLE

MEASURE_STYLE: object

height

height: string = "50px"

overflow

overflow: string = "scroll"

position

position: string = "absolute"

top

top: string = "-9999px"

width

width: string = "50px"

Const Mention

Mention<S, SS, S>: object

Type parameters

  • S

  • SS

  • S

constructor

BottomPosition

BottomPosition: function = getPopoverBottomPosition(this)

Type declaration

TopPosition

TopPosition: function = getPopoverTopPosition(this)

Type declaration

_compositing

_compositing: boolean

context

context: any

If using the new style context, re-declare this in your class to be the React.ContextType of your static contextType.

static contextType = MyContext
context!: React.ContextType<typeof MyContext>
deprecated

if used without a type annotation, or without static contextType

see

https://reactjs.org/docs/legacy-context.html

input

input: HTMLInputElement | null = null

onInputScroll

onInputScroll: (Anonymous function) & ICancelable = throttle(() => {if (this.state.suggestionVisible) {this.setSuggestionVisible();}}, 16)

props

props: Readonly<IMentionProps> & Readonly<object>

refs

refs: object

Type declaration

  • [key: string]: ReactInstance

suggestionList

suggestionList: SelectMenu | null = null

Static Optional contextType

contextType: Context<any>

If set, this.context will be set at runtime to the current value of the given Context.

Usage:

type MyContext = number
const Ctx = React.createContext<MyContext>(0)

class Foo extends React.Component {
  static contextType = Ctx
  context!: React.ContextType<typeof Ctx>
  render () {
    return <>My context's value: {this.context}</>;
  }
}
see

https://reactjs.org/docs/context.html#classcontexttype

noContent

noContent: string = "No result found, press SPACE to finish typing"

Optional UNSAFE_componentWillMount

  • UNSAFE_componentWillMount(): void

Optional UNSAFE_componentWillReceiveProps

  • UNSAFE_componentWillReceiveProps(nextProps: Readonly<IMentionProps>, nextContext: any): void

Optional UNSAFE_componentWillUpdate

  • UNSAFE_componentWillUpdate(nextProps: Readonly<IMentionProps>, nextState: Readonly<S>, nextContext: any): void

Optional componentDidCatch

  • componentDidCatch(error: Error, errorInfo: ErrorInfo): void
  • Catches exceptions generated in descendant components. Unhandled exceptions will cause the entire component tree to unmount.

    Parameters

    • error: Error
    • errorInfo: ErrorInfo

    Returns void

componentDidMount

  • componentDidMount(): void

componentDidUpdate

  • componentDidUpdate(prevProps: any): void

Optional componentWillMount

  • componentWillMount(): void

Optional componentWillReceiveProps

  • componentWillReceiveProps(nextProps: Readonly<IMentionProps>, nextContext: any): void

Optional componentWillUnmount

  • componentWillUnmount(): void
  • Called immediately before a component is destroyed. Perform any necessary cleanup in this method, such as cancelled network requests, or cleaning up any DOM elements created in componentDidMount.

    Returns void

Optional componentWillUpdate

  • componentWillUpdate(nextProps: Readonly<IMentionProps>, nextState: Readonly<S>, nextContext: any): void

forceUpdate

  • forceUpdate(callBack?: function): void
  • Parameters

    • Optional callBack: function
        • (): void
        • Returns void

    Returns void

getCaretCoordinates

  • getCaretCoordinates(start: any): object

getDefaultState

  • getDefaultState(): object

Optional getSnapshotBeforeUpdate

  • getSnapshotBeforeUpdate(prevProps: Readonly<IMentionProps>, prevState: Readonly<S>): SS | null
  • Runs before React applies the result of render to the document, and returns an object to be given to componentDidUpdate. Useful for saving things such as scroll position before render causes changes to it.

    Note: the presence of getSnapshotBeforeUpdate prevents any of the deprecated lifecycle events from running.

    Parameters

    Returns SS | null

onCloseMenuList

  • onCloseMenuList(): void

onInputBlur

  • onInputBlur(evt: any): void

onInputChange

onInputCompositionEnd

  • onInputCompositionEnd(): void

onInputCompositionStart

  • onInputCompositionStart(): void

onInputKeyDown

  • onInputKeyDown(evt: any): void

onInputKeyUp

  • onInputKeyUp(evt: any): void

onSelectSuggestion

  • onSelectSuggestion(val: any): void

onSelectionChange

  • onSelectionChange(): void

onSuggestionListRefChange

  • onSuggestionListRefChange(instance: any): void

onSuggestionVisibleChange

  • onSuggestionVisibleChange(visible: any): void

render

  • render(): Element

saveInputRef

  • saveInputRef(instance: any): void

setState

  • setState<K>(state: function | S | object, callback?: function): void
  • Type parameters

    • K: keyof S

    Parameters

    • state: function | S | object
    • Optional callback: function
        • (): void
        • Returns void

    Returns void

setStateIfChange

  • setStateIfChange(state: any): void

setSuggestionVisible

  • setSuggestionVisible(value?: unknown): void

Optional shouldComponentUpdate

  • shouldComponentUpdate(nextProps: Readonly<IMentionProps>, nextState: Readonly<S>, nextContext: any): boolean
  • Called to determine whether the change in props and state should trigger a re-render.

    Component always returns true. PureComponent implements a shallow comparison on props and state and returns true if any props or states have changed.

    If false is returned, Component#render, componentWillUpdate and componentDidUpdate will not be called.

    Parameters

    • nextProps: Readonly<IMentionProps>
    • nextState: Readonly<S>
    • nextContext: any

    Returns boolean

triggerEventCallback

  • triggerEventCallback(eventName: any, evt: any): void

state

state: object

placeholder

placeholder: null = null

position

position: undefined = undefined

Static defaultProps

defaultProps: object

multiLine

multiLine: boolean = false

position

position: string = "bottom"

prefix

prefix: string = "zent"

suggestionNotFoundContent

suggestionNotFoundContent: string = ""

suggestions

suggestions: undefined[] = []

triggerText

triggerText: string = "@"

Const NO_BOTTOM_BORDER

NO_BOTTOM_BORDER: object

borderBottomColor

borderBottomColor: string = "rgba(255, 255, 255, 0)"

borderBottomWidth

borderBottomWidth: number = 0

transition

transition: string = `border-bottom-width 160ms ${EASE_IN_OUT}, border-bottom-color 160ms ${EASE_IN_OUT}`

Const NO_TRANSITION

NO_TRANSITION: object

MozTransition

MozTransition: string = "none"

OTransition

OTransition: string = "none"

WebkitTransition

WebkitTransition: string = "none"

msTransition

msTransition: string = "none"

transition

transition: string = "none"

Const Notify

Notify: object

clear

clear: clear

config

config: config

error

error: error

info

info: info

success

success: success

warn

warn: warn

Const PRESET_COLOR

PRESET_COLOR: object

blue

blue: boolean = true

green

green: boolean = true

grey

grey: boolean = true

red

red: boolean = true

yellow

yellow: boolean = true

Const Pagination

Pagination<S, SS>: object

Type parameters

  • S

  • SS

getLayout

getLayout: (Anonymous function) = memoize((props: IProps) => {return this.layoutFn(this.getLayoutOptions(props));})

items

items: string = " items"

selectWidth

selectWidth: number = 100

jumpTo

  • jumpTo(__namedParameters: object): Element
  • Parameters

    • __namedParameters: object
      • input: string | number | false | true | __type | ReactElement<any, string | function | object> | ReactNodeArray | ReactPortal

    Returns Element

pageStats

  • pageStats(__namedParameters: object): Element
  • Parameters

    • __namedParameters: object
      • Text: ComponentClass<object, any> | FunctionComponent<object>
      • select: string | number | false | true | __type | ReactElement<any, string | function | object> | ReactNodeArray | ReactPortal
      • total: string | number | false | true | __type | ReactElement<any, string | function | object> | ReactNodeArray | ReactPortal

    Returns Element

pageStatsStatic

  • pageStatsStatic(__namedParameters: object): Element
  • Parameters

    • __namedParameters: object
      • Text: ComponentClass<object, any> | FunctionComponent<object>
      • pageSize: string | number | false | true | __type | ReactElement<any, string | function | object> | ReactNodeArray | ReactPortal
      • total: string | number | false | true | __type | ReactElement<any, string | function | object> | ReactNodeArray | ReactPortal

    Returns Element

layoutFn

name

  • get name(): string

Optional UNSAFE_componentWillMount

  • UNSAFE_componentWillMount(): void

Optional UNSAFE_componentWillReceiveProps

Optional UNSAFE_componentWillUpdate

  • UNSAFE_componentWillUpdate(nextProps: Readonly<IAbstractPaginationProps>, nextState: Readonly<S>, nextContext: any): void

Optional componentDidCatch

  • componentDidCatch(error: Error, errorInfo: ErrorInfo): void
  • Catches exceptions generated in descendant components. Unhandled exceptions will cause the entire component tree to unmount.

    Parameters

    • error: Error
    • errorInfo: ErrorInfo

    Returns void

Optional componentDidMount

  • componentDidMount(): void
  • Called immediately after a component is mounted. Setting state here will trigger re-rendering.

    Returns void

Optional componentDidUpdate

  • Called immediately after updating occurs. Not called for the initial render.

    The snapshot is only present if getSnapshotBeforeUpdate is present and returns non-null.

    Parameters

    Returns void

Optional componentWillMount

  • componentWillMount(): void

Optional componentWillReceiveProps

Optional componentWillUnmount

  • componentWillUnmount(): void
  • Called immediately before a component is destroyed. Perform any necessary cleanup in this method, such as cancelled network requests, or cleaning up any DOM elements created in componentDidMount.

    Returns void

Optional componentWillUpdate

getLayoutOptions

Optional getSnapshotBeforeUpdate

  • Runs before React applies the result of render to the document, and returns an object to be given to componentDidUpdate. Useful for saving things such as scroll position before render causes changes to it.

    Note: the presence of getSnapshotBeforeUpdate prevents any of the deprecated lifecycle events from running.

    Parameters

    Returns SS | null

getTotal

getTotalPages

  • getTotalPages(total: number, pageSize: number): number

onPageChange

  • onPageChange(page: number): void

onPageSizeChange

  • onPageSizeChange(pageSize: number): void

render

  • render(): Element

Optional shouldComponentUpdate

  • shouldComponentUpdate(nextProps: Readonly<IAbstractPaginationProps>, nextState: Readonly<S>, nextContext: any): boolean
  • Called to determine whether the change in props and state should trigger a re-render.

    Component always returns true. PureComponent implements a shallow comparison on props and state and returns true if any props or states have changed.

    If false is returned, Component#render, componentWillUpdate and componentDidUpdate will not be called.

    Parameters

    Returns boolean

shouldUpdateLayout

Static defaultProps

defaultProps: object

buttonBordered

buttonBordered: boolean = true

current

current: number = 1

pageSize

pageSize: number = 10

showQuickJumper

showQuickJumper: boolean = true

showSizeChanger

showSizeChanger: boolean = true

Const Placeholder

Placeholder: object

Circle

Circle: Circle

Rectangle

Rectangle: Rectangle

RichTextBlock

RichTextBlock: RichTextBlock

TextBlock

TextBlock: TextBlock

TextRow

TextRow: TextRow

TextRowDashed

TextRowDashed: TextRowDashed

Const Pop

Pop<S, SS, S>: object

Type parameters

  • S

  • SS

  • S

constructor

  • Parameters

    Returns Pop

  • Parameters

    Returns Pop

context

context: any

If using the new style context, re-declare this in your class to be the React.ContextType of your static contextType.

static contextType = MyContext
context!: React.ContextType<typeof MyContext>
deprecated

if used without a type annotation, or without static contextType

see

https://reactjs.org/docs/legacy-context.html

isUnmounted

isUnmounted: boolean = false

popover

popover: Popover

props

props: Readonly<IPopProps> & Readonly<object>

refs

refs: object

Type declaration

  • [key: string]: ReactInstance

Static Optional contextType

contextType: Context<any>

If set, this.context will be set at runtime to the current value of the given Context.

Usage:

type MyContext = number
const Ctx = React.createContext<MyContext>(0)

class Foo extends React.Component {
  static contextType = Ctx
  context!: React.ContextType<typeof Ctx>
  render () {
    return <>My context's value: {this.context}</>;
  }
}
see

https://reactjs.org/docs/context.html#classcontexttype

Static withPop

withPop: expose = exposePopover('pop')

Optional UNSAFE_componentWillMount

  • UNSAFE_componentWillMount(): void

Optional UNSAFE_componentWillReceiveProps

  • UNSAFE_componentWillReceiveProps(nextProps: Readonly<IPopProps>, nextContext: any): void

Optional UNSAFE_componentWillUpdate

  • UNSAFE_componentWillUpdate(nextProps: Readonly<IPopProps>, nextState: Readonly<S>, nextContext: any): void

adjustPosition

  • adjustPosition(): void

changePending

  • changePending(key: any, pending: any, callback: any): void

Optional componentDidCatch

  • componentDidCatch(error: Error, errorInfo: ErrorInfo): void
  • Catches exceptions generated in descendant components. Unhandled exceptions will cause the entire component tree to unmount.

    Parameters

    • error: Error
    • errorInfo: ErrorInfo

    Returns void

Optional componentDidMount

  • componentDidMount(): void
  • Called immediately after a component is mounted. Setting state here will trigger re-rendering.

    Returns void

Optional componentDidUpdate

  • componentDidUpdate(prevProps: Readonly<IPopProps>, prevState: Readonly<S>, snapshot?: SS): void
  • Called immediately after updating occurs. Not called for the initial render.

    The snapshot is only present if getSnapshotBeforeUpdate is present and returns non-null.

    Parameters

    • prevProps: Readonly<IPopProps>
    • prevState: Readonly<S>
    • Optional snapshot: SS

    Returns void

Optional componentWillMount

  • componentWillMount(): void

Optional componentWillReceiveProps

  • componentWillReceiveProps(nextProps: Readonly<IPopProps>, nextContext: any): void

componentWillUnmount

  • componentWillUnmount(): void

Optional componentWillUpdate

  • componentWillUpdate(nextProps: Readonly<IPopProps>, nextState: Readonly<S>, nextContext: any): void

forceUpdate

  • forceUpdate(callBack?: function): void
  • Parameters

    • Optional callBack: function
        • (): void
        • Returns void

    Returns void

Optional getSnapshotBeforeUpdate

  • getSnapshotBeforeUpdate(prevProps: Readonly<IPopProps>, prevState: Readonly<S>): SS | null
  • Runs before React applies the result of render to the document, and returns an object to be given to componentDidUpdate. Useful for saving things such as scroll position before render causes changes to it.

    Note: the presence of getSnapshotBeforeUpdate prevents any of the deprecated lifecycle events from running.

    Parameters

    • prevProps: Readonly<IPopProps>
    • prevState: Readonly<S>

    Returns SS | null

getWrappedPopover

onPopoverRefChange

  • onPopoverRefChange(popoverInstance: any): void

render

  • render(): Element

renderContent

  • renderContent(): Element

renderTrigger

  • renderTrigger(): Element

setState

  • setState<K>(state: function | S | object, callback?: function): void
  • Type parameters

    • K: keyof S

    Parameters

    • state: function | S | object
    • Optional callback: function
        • (): void
        • Returns void

    Returns void

Optional shouldComponentUpdate

  • shouldComponentUpdate(nextProps: Readonly<IPopProps>, nextState: Readonly<S>, nextContext: any): boolean
  • Called to determine whether the change in props and state should trigger a re-render.

    Component always returns true. PureComponent implements a shallow comparison on props and state and returns true if any props or states have changed.

    If false is returned, Component#render, componentWillUpdate and componentDidUpdate will not be called.

    Parameters

    • nextProps: Readonly<IPopProps>
    • nextState: Readonly<S>
    • nextContext: any

    Returns boolean

state

state: object

cancelPending

cancelPending: boolean = false

confirmPending

confirmPending: boolean = false

Static defaultProps

defaultProps: object

block

block: boolean = false

cancelText

cancelText: string = ""

centerArrow

centerArrow: boolean = false

className

className: string = ""

closeOnClickOutside

closeOnClickOutside: boolean = true

confirmText

confirmText: string = ""

containerSelector

containerSelector: string = "body"

cushion

cushion: number = 10

mouseEnterDelay

mouseEnterDelay: number = 200

mouseLeaveDelay

mouseLeaveDelay: number = 200

onPositionReady

onPositionReady: noop = noop

onPositionUpdated

onPositionUpdated: noop = noop

position

position: string = "top-center"

prefix

prefix: string = "zent"

quirk

quirk: boolean = true

trigger

trigger: string = "none"

type

type: string = "primary"

wrapperClassName

wrapperClassName: string = ""

Const PreviewImage

PreviewImage: object

alt

alt: string = "Image download failed"

next

next: string = "Next"

prev

prev: string = "Previous"

rotate

rotate: string = "Rotate"

Const QUARTER_LAST_YEAR_MAP

QUARTER_LAST_YEAR_MAP: object

0

0: number[] = [3, 0]

1

1: number[] = [6, 0]

2

2: number[] = [9, 0]

3

3: number[] = [12, 0]

Const RangePicker

RangePicker: object

30

30: string = "30 days"

7

7: string = "7 days"

Const Select

Select<SS>: object

Type parameters

  • SS

constructor

context

popover

popover: Popover | null = null

popup

popup: React.ComponentType<any> | null = null

props

props: Readonly<ISelectProps> & Readonly<object>

refs

refs: object

Type declaration

  • [key: string]: ReactInstance

state

state: Readonly<any>

uniformedData

uniformedData: any

Static InputTrigger

InputTrigger: InputTrigger = InputTrigger

Static Option

Option: Option = Option

Static SelectTrigger

SelectTrigger: SelectTrigger = SelectTrigger

Static TagsTrigger

TagsTrigger: TagsTrigger = TagsTrigger

Static contextType

contextType: Context<IDisabledContext> = DisabledContext

empty

empty: string = "No matches found"

input

input: string = "Please choose..."

Optional UNSAFE_componentWillMount

  • UNSAFE_componentWillMount(): void

Optional UNSAFE_componentWillReceiveProps

  • UNSAFE_componentWillReceiveProps(nextProps: Readonly<ISelectProps>, nextContext: any): void

Optional UNSAFE_componentWillUpdate

  • UNSAFE_componentWillUpdate(nextProps: Readonly<ISelectProps>, nextState: Readonly<any>, nextContext: any): void

Optional componentDidCatch

  • componentDidCatch(error: Error, errorInfo: ErrorInfo): void
  • Catches exceptions generated in descendant components. Unhandled exceptions will cause the entire component tree to unmount.

    Parameters

    • error: Error
    • errorInfo: ErrorInfo

    Returns void

Optional componentDidMount

  • componentDidMount(): void
  • Called immediately after a component is mounted. Setting state here will trigger re-rendering.

    Returns void

Optional componentDidUpdate

  • componentDidUpdate(prevProps: Readonly<ISelectProps>, prevState: Readonly<any>, snapshot?: SS): void
  • Called immediately after updating occurs. Not called for the initial render.

    The snapshot is only present if getSnapshotBeforeUpdate is present and returns non-null.

    Parameters

    • prevProps: Readonly<ISelectProps>
    • prevState: Readonly<any>
    • Optional snapshot: SS

    Returns void

componentWillMount

  • componentWillMount(): void

componentWillReceiveProps

  • componentWillReceiveProps(nextProps: any): void

Optional componentWillUnmount

  • componentWillUnmount(): void
  • Called immediately before a component is destroyed. Perform any necessary cleanup in this method, such as cancelled network requests, or cleaning up any DOM elements created in componentDidMount.

    Returns void

Optional componentWillUpdate

  • componentWillUpdate(nextProps: Readonly<ISelectProps>, nextState: Readonly<any>, nextContext: any): void

forceUpdate

  • forceUpdate(callBack?: function): void
  • Parameters

    • Optional callBack: function
        • (): void
        • Returns void

    Returns void

Optional getSnapshotBeforeUpdate

  • getSnapshotBeforeUpdate(prevProps: Readonly<ISelectProps>, prevState: Readonly<any>): SS | null
  • Runs before React applies the result of render to the document, and returns an object to be given to componentDidUpdate. Useful for saving things such as scroll position before render causes changes to it.

    Note: the presence of getSnapshotBeforeUpdate prevents any of the deprecated lifecycle events from running.

    Parameters

    • prevProps: Readonly<ISelectProps>
    • prevState: Readonly<any>

    Returns SS | null

handlePopoverVisibleChange

  • handlePopoverVisibleChange(visible: any): void

locateSelected

  • locateSelected(state: any, coord: any, item: any, i: any): void
  • judge if param 'item' selected

    memberof

    Select

    Parameters

    • state: any

      next state marked selected item or items

    • coord: any

      coordinate for seleted judging

    • item: any

      option object after uniformed

    • i: any

      index of option in options list

    Returns void

optionChangedHandler

  • optionChangedHandler(ev: any, selectedItem: any): void

render

  • render(): Element

setState

  • setState<K>(state: function | S | object, callback?: function): void
  • Type parameters

    • K: keyof any

    Parameters

    • state: function | S | object
    • Optional callback: function
        • (): void
        • Returns void

    Returns void

Optional shouldComponentUpdate

  • shouldComponentUpdate(nextProps: Readonly<ISelectProps>, nextState: Readonly<any>, nextContext: any): boolean
  • Called to determine whether the change in props and state should trigger a re-render.

    Component always returns true. PureComponent implements a shallow comparison on props and state and returns true if any props or states have changed.

    If false is returned, Component#render, componentWillUpdate and componentDidUpdate will not be called.

    Parameters

    • nextProps: Readonly<ISelectProps>
    • nextState: Readonly<any>
    • nextContext: any

    Returns boolean

traverseData

  • traverseData(props: any, data?: any): void
  • accept uniformed data to traverse then inject selected option or options to next state

    memberof

    Select

    Parameters

    • props: any

      props of Select

    • Default value data: any = this.uniformedData

      uniformed data

    Returns void

triggerChangeHandler

  • triggerChangeHandler(data: any): void

triggerDeleteHandler

  • triggerDeleteHandler(data: any): void

uniformData

  • uniformData(props: any): object[]
  • 将使用 child-element 传入的 Options 格式化为对象数组(未严格约束) data-prop 的优先级高于 child-element

    memberof

    Select

    Parameters

    • props: any

      props of Select

    Returns object[]

    uniformedData - 格式化后对象数组

Static defaultProps

defaultProps: object

autoWidth

autoWidth: boolean = false

index

index: null = null

initialIndex

initialIndex: null = null

initialValue

initialValue: null = null

onChange

onChange: noop = noop

onDelete

onDelete: noop = noop

onEmptySelected

onEmptySelected: noop = noop

onOpen

onOpen: noop = noop

open

open: boolean = false

optionText

optionText: string = "text"

optionValue

optionValue: string = "value"

prefix

prefix: string = "zent"

resetOption

resetOption: boolean = false

resetText

resetText: string = "..."

retainNullOption

retainNullOption: boolean = false

value

value: null = null

Const Sweetalert

Sweetalert: object

IAlertOption

IAlertOption:

Optional className

className: string

Optional closeBtn

closeBtn: boolean

Optional confirmText

confirmText: string

Optional confirmType

confirmType: "default" | "primary" | "danger" | "success"

Optional content

content: React.ReactNode

Optional maskClosable

maskClosable: boolean

Optional onCancel

Optional onClose

onClose: function

Type declaration

    • (): void
    • Returns void

Optional onConfirm

Optional parentComponent

parentComponent: any

Optional prefix

prefix: string

Optional title

title: React.ReactNode

Optional type

type: "info" | "success" | "error" | "warning"

IConfirmOption

IConfirmOption:

Optional cancelText

cancelText: React.ReactNode

Optional className

className: string

Optional closeBtn

closeBtn: boolean

Optional confirmText

confirmText: string

Optional confirmType

confirmType: "default" | "primary" | "danger" | "success"

Optional content

content: React.ReactNode

Optional maskClosable

maskClosable: boolean

Optional onCancel

Optional onClose

onClose: function

Type declaration

    • (): void
    • Returns void

Optional onConfirm

Optional parentComponent

parentComponent: any

Optional prefix

prefix: string

Optional title

title: React.ReactNode

Optional type

type: "info" | "success" | "error" | "warning"

alert

alert: alert

confirm

confirm: confirm

info

info: alert

title

title: string = "Alert"

Const Switch

Switch<S, SS, S>: object

Type parameters

  • S

  • SS

  • S

constructor

context

props

props: Readonly<ISwitchProps> & Readonly<object>

refs

refs: object

Type declaration

  • [key: string]: ReactInstance

state

state: Readonly<S>

Static contextType

contextType: Context<IDisabledContext> = DisabledContext

checked

checked: string = "On"

unchecked

unchecked: string = "Off"

Optional UNSAFE_componentWillMount

  • UNSAFE_componentWillMount(): void

Optional UNSAFE_componentWillReceiveProps

  • UNSAFE_componentWillReceiveProps(nextProps: Readonly<ISwitchProps>, nextContext: any): void

Optional UNSAFE_componentWillUpdate

  • UNSAFE_componentWillUpdate(nextProps: Readonly<ISwitchProps>, nextState: Readonly<S>, nextContext: any): void

Optional componentDidCatch

  • componentDidCatch(error: Error, errorInfo: ErrorInfo): void
  • Catches exceptions generated in descendant components. Unhandled exceptions will cause the entire component tree to unmount.

    Parameters

    • error: Error
    • errorInfo: ErrorInfo

    Returns void

Optional componentDidMount

  • componentDidMount(): void
  • Called immediately after a component is mounted. Setting state here will trigger re-rendering.

    Returns void

Optional componentDidUpdate

  • componentDidUpdate(prevProps: Readonly<ISwitchProps>, prevState: Readonly<S>, snapshot?: SS): void
  • Called immediately after updating occurs. Not called for the initial render.

    The snapshot is only present if getSnapshotBeforeUpdate is present and returns non-null.

    Parameters

    • prevProps: Readonly<ISwitchProps>
    • prevState: Readonly<S>
    • Optional snapshot: SS

    Returns void

Optional componentWillMount

  • componentWillMount(): void

Optional componentWillReceiveProps

  • componentWillReceiveProps(nextProps: Readonly<ISwitchProps>, nextContext: any): void

Optional componentWillUnmount

  • componentWillUnmount(): void
  • Called immediately before a component is destroyed. Perform any necessary cleanup in this method, such as cancelled network requests, or cleaning up any DOM elements created in componentDidMount.

    Returns void

Optional componentWillUpdate

  • componentWillUpdate(nextProps: Readonly<ISwitchProps>, nextState: Readonly<S>, nextContext: any): void

forceUpdate

  • forceUpdate(callBack?: function): void
  • Parameters

    • Optional callBack: function
        • (): void
        • Returns void

    Returns void

Optional getSnapshotBeforeUpdate

  • getSnapshotBeforeUpdate(prevProps: Readonly<ISwitchProps>, prevState: Readonly<S>): SS | null
  • Runs before React applies the result of render to the document, and returns an object to be given to componentDidUpdate. Useful for saving things such as scroll position before render causes changes to it.

    Note: the presence of getSnapshotBeforeUpdate prevents any of the deprecated lifecycle events from running.

    Parameters

    Returns SS | null

render

  • render(): Element

setState

  • setState<K>(state: function | S | object, callback?: function): void
  • Type parameters

    • K: keyof S

    Parameters

    • state: function | S | object
    • Optional callback: function
        • (): void
        • Returns void

    Returns void

Optional shouldComponentUpdate

  • shouldComponentUpdate(nextProps: Readonly<ISwitchProps>, nextState: Readonly<S>, nextContext: any): boolean
  • Called to determine whether the change in props and state should trigger a re-render.

    Component always returns true. PureComponent implements a shallow comparison on props and state and returns true if any props or states have changed.

    If false is returned, Component#render, componentWillUpdate and componentDidUpdate will not be called.

    Parameters

    • nextProps: Readonly<ISwitchProps>
    • nextState: Readonly<S>
    • nextContext: any

    Returns boolean

toggle

  • toggle(): void

Static defaultProps

defaultProps: object

prefix

prefix: string = "zent"

size

size: string = "default"

Const Table

Table<SS>: object

Type parameters

  • SS

constructor

  • new Table(props: any): Table

foot

foot: Foot | null = null

head

head: Head | null = null

mounted

mounted: boolean

relativeTop

relativeTop: number

selectedRowKeys

selectedRowKeys: string[] = []

selectedRows

selectedRows: any[] = []

tableRect

tableRect: any

tableRectHeight

tableRectHeight: number

tableRectTop

tableRectTop: number

throttleSetBatchComponents

throttleSetBatchComponents: any

emptyLabel

emptyLabel: string = "No data"

Optional UNSAFE_componentWillMount

  • UNSAFE_componentWillMount(): void

Optional UNSAFE_componentWillReceiveProps

  • UNSAFE_componentWillReceiveProps(nextProps: Readonly<ITableProps>, nextContext: any): void

Optional UNSAFE_componentWillUpdate

  • UNSAFE_componentWillUpdate(nextProps: Readonly<ITableProps>, nextState: Readonly<any>, nextContext: any): void

addEventListener

  • addEventListener(props: any): void

Optional componentDidCatch

  • componentDidCatch(error: Error, errorInfo: ErrorInfo): void
  • Catches exceptions generated in descendant components. Unhandled exceptions will cause the entire component tree to unmount.

    Parameters

    • error: Error
    • errorInfo: ErrorInfo

    Returns void

componentDidMount

  • componentDidMount(): void

Optional componentDidUpdate

  • componentDidUpdate(prevProps: Readonly<ITableProps>, prevState: Readonly<any>, snapshot?: SS): void
  • Called immediately after updating occurs. Not called for the initial render.

    The snapshot is only present if getSnapshotBeforeUpdate is present and returns non-null.

    Parameters

    • prevProps: Readonly<ITableProps>
    • prevState: Readonly<any>
    • Optional snapshot: SS

    Returns void

Optional componentWillMount

  • componentWillMount(): void

componentWillReceiveProps

  • componentWillReceiveProps(nextProps: any): void

componentWillUnmount

  • componentWillUnmount(): void

Optional componentWillUpdate

  • componentWillUpdate(nextProps: Readonly<ITableProps>, nextState: Readonly<any>, nextContext: any): void

getCurrentRow

  • getCurrentRow(key: any): any

getSelectedRowsByKeys

  • getSelectedRowsByKeys(rowKeys: any): any[]
  • 根据选择的keys拼装一个选好的列

    Parameters

    • rowKeys: any

      Array 一个keys的数组

    Returns any[]

    rows Array 一个每行的数据的数组

Optional getSnapshotBeforeUpdate

  • getSnapshotBeforeUpdate(prevProps: Readonly<ITableProps>, prevState: Readonly<any>): SS | null
  • Runs before React applies the result of render to the document, and returns an object to be given to componentDidUpdate. Useful for saving things such as scroll position before render causes changes to it.

    Note: the presence of getSnapshotBeforeUpdate prevents any of the deprecated lifecycle events from running.

    Parameters

    • prevProps: Readonly<ITableProps>
    • prevState: Readonly<any>

    Returns SS | null

isFootInView

  • isFootInView(): boolean

isTableInView

  • isTableInView(): boolean

onChange

  • onChange(conf: any): void

onPageChange

  • onPageChange(data: any): void

onSelectAllRows

  • onSelectAllRows(isSelect: any): void

onSelectOneRow

  • onSelectOneRow(rowKey: any, isSelect: any): void

onSort

  • onSort(conf: any): void

removeEventListener

  • removeEventListener(props: any): void

render

  • render(): Element

scrollToTop

  • scrollToTop(scrollDuration: any): void

setRectParam

  • setRectParam(): void

setSelection

  • setSelection(): void

Optional shouldComponentUpdate

  • shouldComponentUpdate(nextProps: Readonly<ITableProps>, nextState: Readonly<any>, nextContext: any): boolean
  • Called to determine whether the change in props and state should trigger a re-render.

    Component always returns true. PureComponent implements a shallow comparison on props and state and returns true if any props or states have changed.

    If false is returned, Component#render, componentWillUpdate and componentDidUpdate will not be called.

    Parameters

    • nextProps: Readonly<ITableProps>
    • nextState: Readonly<any>
    • nextContext: any

    Returns boolean

toggleBatchComponents

  • toggleBatchComponents(): void

wrapPropsOnChange

  • wrapPropsOnChange(conf: any): void

Static defaultProps

defaultProps: object

autoScroll

autoScroll: boolean = false

autoStick

autoStick: boolean = false

batchComponents

batchComponents: null = null

batchComponentsAutoFixed

batchComponentsAutoFixed: boolean = true

className

className: string = ""

columns

columns: undefined[] = []

datasets

datasets: undefined[] = []

emptyLabel

emptyLabel: string = ""

loading

loading: boolean = false

paginationType

paginationType: string = "default"

prefix

prefix: string = "zent"

rowKey

rowKey: string = "id"

selection

selection: null = null

Const TabsNavComponents

TabsNavComponents: object

button

button: ButtonTabsNav = ButtonTabsNav

card

card: CardTabsNav = CardTabsNav

normal

normal: NormalTabsNav = NormalTabsNav

Const TypeMap

TypeMap: object

image

image: string = "Image"

voice

voice: string = "Audio"

Const TypeUnitMap

TypeUnitMap: object

image

image: string = "张"

voice

voice: string = "个"

Const Upload

Upload<SS>: object

Type parameters

  • SS

constructor

  • new Upload(props: any): Upload

context

context: any

If using the new style context, re-declare this in your class to be the React.ContextType of your static contextType.

static contextType = MyContext
context!: React.ContextType<typeof MyContext>
deprecated

if used without a type annotation, or without static contextType

see

https://reactjs.org/docs/legacy-context.html

isUnmount

isUnmount: boolean

props

props: Readonly<IUploadProps> & Readonly<object>

refs

refs: object

Type declaration

  • [key: string]: ReactInstance

state

state: Readonly<any>

Static FileInput

FileInput: FileInput = FileInput

Static Optional contextType

contextType: Context<any>

If set, this.context will be set at runtime to the current value of the given Context.

Usage:

type MyContext = number
const Ctx = React.createContext<MyContext>(0)

class Foo extends React.Component {
  static contextType = Ctx
  context!: React.ContextType<typeof Ctx>
  render () {
    return <>My context's value: {this.context}</>;
  }
}
see

https://reactjs.org/docs/context.html#classcontexttype

title_image

title_image: string = "Choose image"

title_voice

title_voice: string = "Choose voice"

Optional UNSAFE_componentWillMount

  • UNSAFE_componentWillMount(): void

Optional UNSAFE_componentWillReceiveProps

  • UNSAFE_componentWillReceiveProps(nextProps: Readonly<IUploadProps>, nextContext: any): void

Optional UNSAFE_componentWillUpdate

  • UNSAFE_componentWillUpdate(nextProps: Readonly<IUploadProps>, nextState: Readonly<any>, nextContext: any): void

closePopup

  • closePopup(): void

Optional componentDidCatch

  • componentDidCatch(error: Error, errorInfo: ErrorInfo): void
  • Catches exceptions generated in descendant components. Unhandled exceptions will cause the entire component tree to unmount.

    Parameters

    • error: Error
    • errorInfo: ErrorInfo

    Returns void

componentDidMount

  • componentDidMount(): void

Optional componentDidUpdate

  • componentDidUpdate(prevProps: Readonly<IUploadProps>, prevState: Readonly<any>, snapshot?: SS): void
  • Called immediately after updating occurs. Not called for the initial render.

    The snapshot is only present if getSnapshotBeforeUpdate is present and returns non-null.

    Parameters

    • prevProps: Readonly<IUploadProps>
    • prevState: Readonly<any>
    • Optional snapshot: SS

    Returns void

Optional componentWillMount

  • componentWillMount(): void

Optional componentWillReceiveProps

  • componentWillReceiveProps(nextProps: Readonly<IUploadProps>, nextContext: any): void

componentWillUnmount

  • componentWillUnmount(): void

Optional componentWillUpdate

  • componentWillUpdate(nextProps: Readonly<IUploadProps>, nextState: Readonly<any>, nextContext: any): void

forceUpdate

  • forceUpdate(callBack?: function): void
  • Parameters

    • Optional callBack: function
        • (): void
        • Returns void

    Returns void

Optional getSnapshotBeforeUpdate

  • getSnapshotBeforeUpdate(prevProps: Readonly<IUploadProps>, prevState: Readonly<any>): SS | null
  • Runs before React applies the result of render to the document, and returns an object to be given to componentDidUpdate. Useful for saving things such as scroll position before render causes changes to it.

    Note: the presence of getSnapshotBeforeUpdate prevents any of the deprecated lifecycle events from running.

    Parameters

    • prevProps: Readonly<IUploadProps>
    • prevState: Readonly<any>

    Returns SS | null

render

  • render(): Element

setState

  • setState<K>(state: function | S | object, callback?: function): void
  • Type parameters

    • K: keyof any

    Parameters

    • state: function | S | object
    • Optional callback: function
        • (): void
        • Returns void

    Returns void

Optional shouldComponentUpdate

  • shouldComponentUpdate(nextProps: Readonly<IUploadProps>, nextState: Readonly<any>, nextContext: any): boolean
  • Called to determine whether the change in props and state should trigger a re-render.

    Component always returns true. PureComponent implements a shallow comparison on props and state and returns true if any props or states have changed.

    If false is returned, Component#render, componentWillUpdate and componentDidUpdate will not be called.

    Parameters

    • nextProps: Readonly<IUploadProps>
    • nextState: Readonly<any>
    • nextContext: any

    Returns boolean

showUpload

  • showUpload(visible?: boolean): void

input

input: object

holder

holder: string = "Add"

maxAmount

  • maxAmount(__namedParameters: object): string

maxSize

  • maxSize(__namedParameters: object): string

type

  • type(__namedParameters: object): string

popup

popup: object

extract

extract: string = "Extract"

extracting

extracting: string = "Extracting..."

group

group: string = "Group"

holder

holder: string = "Image url"

title_image

title_image: string = "Local image"

title_voice

title_voice: string = "Local audio"

web

web: string = "Web image"

type

  • type(__namedParameters: object): string

Static defaultProps

defaultProps: object

auto

auto: boolean = false

categoryId

categoryId: string = ""

categoryList

categoryList: undefined[] = []

className

className: string = "zent-upload"

errorMessages

errorMessages: object

Type declaration

filterFiles

filterFiles: identity = identity

localOnly

localOnly: boolean = false

maxAmount

maxAmount: number = 0

maxSize

maxSize: number = 1 * 1024 * 1024

onFetch

onFetch: promiseNoop = promiseNoop

onUpload

onUpload: promiseNoop = promiseNoop

prefix

prefix: string = "zent"

silent

silent: boolean = false

tips

tips: string = ""

triggerClassName

triggerClassName: string = "zent-upload-trigger"

triggerInline

triggerInline: boolean = false

type

type: string = "image"

withoutPopup

withoutPopup: boolean = false

Const classNames

classNames: object

appear

appear: string = "zent-notice-animation-enter"

appearActive

appearActive: string = "zent-notice-animation-enter-active"

appearDone

appearDone: string = "zent-notice-animation-enter-done"

enter

enter: string = "zent-notice-animation-enter"

enterActive

enterActive: string = "zent-notice-animation-enter-active"

enterDone

enterDone: string = "zent-notice-animation-enter-done"

exit

exit: string = "zent-notice-animation-exit"

exitActive

exitActive: string = "zent-notice-animation-exit-active"

exitDone

exitDone: string = "zent-notice-animation-exit-done"

Const common

common: object

cancel

cancel: string = "Cancel"

comma

comma: string = ", "

confirm

confirm: string = "Confirm"

ok

ok: string = "OK"

reset

reset: string = "Reset"

Const commonFns

commonFns: object

dayEnd

dayEnd: dayEnd

dayStart

dayStart: dayStart

formatDate

formatDate: formatDate

goDays

goDays: goDays

goMonths

goMonths: goMonths

goYears

goYears: goYears

parseDate

parseDate: parseDate

setTime

setTime: setTime

Const commonProps

commonProps: object

autoComplete

autoComplete: string = "off"

canClear

canClear: boolean = true

confirmText

confirmText: string = ""

format

format: string = "YYYY-MM-DD"

isFooterVisible

isFooterVisible: boolean = false

onChange

onChange: noop = noop

openPanel

openPanel: boolean = false

popPosition

popPosition: string = "left"

prefix

prefix: string = "zent"

Const containers

containers: object

left-bottom

left-bottom: null = null

left-top

left-top: null = null

right-bottom

right-bottom: null = null

right-top

right-top: null = null

Const defaultOption

defaultOption: object

getEventValue

  • getEventValue(e: any): any

Const defaultPageInfo

defaultPageInfo: object

current

current: number = 1

pageSize

pageSize: number = 10

Const disabledMap

disabledMap: object

hour

hour: string = "disabledHour"

minute

minute: string = "disabledMinute"

second

second: string = "disabledSecond"

Const enUS

enUS: object

amPm

amPm: [string, string] = ['am', 'pm']

dayNames

dayNames: [string, string, string, string, string, string, string] = ['Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday',]

dayNamesShort

dayNamesShort: [string, string, string, string, string, string, string] = ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat']

monthNames

monthNames: [string, string, string, string, string, string, string, string, string, string, string, string] = ['January','February','March','April','May','June','July','August','September','October','November','December',]

monthNamesShort

monthNamesShort: [string, string, string, string, string, string, string, string, string, string, string, string] = ['Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec',]

DoFn

  • DoFn(D: number): string

Const formatFlags

formatFlags: object

A

D

  • D(dateObj: Date): string

DD

  • DD(dateObj: Date): string

Do

H

  • H(dateObj: Date): string

HH

  • HH(dateObj: Date): string

M

  • M(dateObj: Date): string

MM

  • MM(dateObj: Date): string

MMM

MMMM

S

  • S(dateObj: Date): string

SS

  • SS(dateObj: Date): string

SSS

  • SSS(dateObj: Date): string

YY

  • YY(dateObj: Date): string

YYYY

  • YYYY(dateObj: Date): string

ZZ

  • ZZ(dateObj: Date): string

a

d

  • d(dateObj: Date): string

dd

  • dd(dateObj: Date): string

ddd

dddd

h

  • h(dateObj: Date): string

hh

  • hh(dateObj: Date): string

m

  • m(dateObj: Date): string

mm

  • mm(dateObj: Date): string

s

  • s(dateObj: Date): string

ss

  • ss(dateObj: Date): string

Const helper

helper: object

getAlignClass

  • getAlignClass(textAlign: any): string

getCalculatedWidth

  • getCalculatedWidth(width: any): any

isReactComponent

  • isReactComponent(render: any): boolean

isSelectAll

  • isSelectAll(rowKeys: any, subRowKeys: any): boolean

isSelectPart

  • isSelectPart(rowKeys: any, subRowKeys: any): boolean

needFixBatchComps

  • needFixBatchComps(isTableInView: any, isFootInView: any, isSelectRows: any, isFixed: any): any

toggleEventListener

  • toggleEventListener(currentProps: any, nextProps: any): any

Const i18n

i18n: object

amPm

amPm: [string, string] = ['am', 'pm']

dayNames

dayNames: [string, string, string, string, string, string, string]

dayNamesShort

dayNamesShort: [string, string, string, string, string, string, string]

monthNames

monthNames: [string, string, string, string, string, string, string, string, string, string, string, string]

monthNamesShort

monthNamesShort: [string, string, string, string, string, string, string, string, string, string, string, string]

DoFn

  • DoFn(D: number): string

Const iconTypeMap

iconTypeMap: object

error

error: "error-circle" = "error-circle"

info

info: "info-circle" = "info-circle"

success

success: "check-circle" = "check-circle"

warning

warning: "warning" = "warning"

Const initialState

initialState: object

submitting

submitting: false = false

Const isUnitlessNumber

isUnitlessNumber: object

CSS properties which accept numbers but are not in units of "px".

animationIterationCount

animationIterationCount: true = true

borderImageOutset

borderImageOutset: true = true

borderImageSlice

borderImageSlice: true = true

borderImageWidth

borderImageWidth: true = true

boxFlex

boxFlex: true = true

boxFlexGroup

boxFlexGroup: true = true

boxOrdinalGroup

boxOrdinalGroup: true = true

columnCount

columnCount: true = true

columns

columns: true = true

fillOpacity

fillOpacity: true = true

flex

flex: true = true

flexGrow

flexGrow: true = true

flexNegative

flexNegative: true = true

flexOrder

flexOrder: true = true

flexPositive

flexPositive: true = true

flexShrink

flexShrink: true = true

floodOpacity

floodOpacity: true = true

fontWeight

fontWeight: true = true

gridArea

gridArea: true = true

gridColumn

gridColumn: true = true

gridColumnEnd

gridColumnEnd: true = true

gridColumnSpan

gridColumnSpan: true = true

gridColumnStart

gridColumnStart: true = true

gridRow

gridRow: true = true

gridRowEnd

gridRowEnd: true = true

gridRowSpan

gridRowSpan: true = true

gridRowStart

gridRowStart: true = true

lineClamp

lineClamp: true = true

lineHeight

lineHeight: true = true

opacity

opacity: true = true

order

order: true = true

orphans

orphans: true = true

stopOpacity

stopOpacity: true = true

strokeDasharray

strokeDasharray: true = true

strokeDashoffset

strokeDashoffset: true = true

strokeMiterlimit

strokeMiterlimit: true = true

strokeOpacity

strokeOpacity: true = true

strokeWidth

strokeWidth: true = true

tabSize

tabSize: true = true

widows

widows: true = true

zIndex

zIndex: true = true

zoom

zoom: true = true

Const masks

masks: object

default

default: string = "ddd MMM DD YYYY HH:mm:ss"

fullDate

fullDate: string = "dddd, MMMM D, YYYY"

longDate

longDate: string = "MMMM D, YYYY"

longTime

longTime: string = "HH:mm:ss.SSS"

mediumDate

mediumDate: string = "MMM D, YYYY"

mediumTime

mediumTime: string = "HH:mm:ss"

shortDate

shortDate: string = "M/D/YY"

shortTime

shortTime: string = "HH:mm"

Const matchers

matchers: object

CSS_UNIT

CSS_UNIT: RegExp = new RegExp(CSS_UNIT)

hex3

hex3: RegExp = /^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/

hex4

hex4: RegExp = /^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/

hex6

hex6: RegExp = /^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/

hex8

hex8: RegExp = /^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/

hsl

hsl: RegExp = new RegExp('hsl' + PERMISSIVE_MATCH3)

hsla

hsla: RegExp = new RegExp('hsla' + PERMISSIVE_MATCH4)

hsv

hsv: RegExp = new RegExp('hsv' + PERMISSIVE_MATCH3)

hsva

hsva: RegExp = new RegExp('hsva' + PERMISSIVE_MATCH4)

rgb

rgb: RegExp = new RegExp('rgb' + PERMISSIVE_MATCH3)

rgba

rgba: RegExp = new RegExp('rgba' + PERMISSIVE_MATCH4)

Const parseFlags

parseFlags: object

A

A: [string, setPm] = [word, setPm]

D

D: [string, setDay] = [twoDigits, setDay]

DD

DD: [string, setDay] = [twoDigits, setDay]

Do

Do: [string, setDay] = [twoDigits + word, setDay]

H

H: [string, setHour] = [twoDigits, setHour]

HH

HH: [string, setHour] = [twoDigits, setHour]

M

M: [string, setMonth] = [twoDigits, setMonth]

MM

MM: [string, setMonth] = [twoDigits, setMonth]

MMM

MMM: [string, (Anonymous function)] = [word, monthUpdate('monthNamesShort')]

MMMM

MMMM: [string, (Anonymous function)] = [word, monthUpdate('monthNames')]

S

S: [string, (Anonymous function)] = ['\\d',(d, v) => {d.millisecond = parseInt(v, 10) * 100;},]

SS

SS: [string, (Anonymous function)] = ['\\d{2}',(d, v) => {d.millisecond = parseInt(v, 10) * 10;},]

SSS

SSS: [string, (Anonymous function)] = [threeDigits,(d, v) => {d.millisecond = parseInt(v, 10);},]

YY

YY: [string, (Anonymous function)] = [twoDigits,(d, v: string) => {const y = parseInt(v, 10);const da = new Date();const cent = parseInt(String(da.getFullYear()).substr(0, 2), 10);const year = String(y > 68 ? cent - 1 : cent) + v;d.year = parseInt(year, 10);},]

YYYY

YYYY: [string, (Anonymous function)] = [fourDigits,(d, v) => {d.year = parseInt(v, 10);},]

ZZ

ZZ: [string, (Anonymous function)] = ['[^\\s]*?[\\+\\-]\\d\\d:?\\d\\d|[^\\s]*?Z',(d, v) => {const parts = (v + '').match(/([+-]|\d\d)/gi);let minutes: number;if (parts) {minutes = parseInt(parts[1], 10) * 60 + parseInt(parts[2], 10);d.timezoneOffset = parts[0] === '+' ? minutes : -minutes;}},]

a

a: [string, setPm] = [word, setPm]

d

d: [string, noop] = [twoDigits, noop]

dd

dd: [string, noop] = [twoDigits, noop]

ddd

ddd: [string, noop] = [word, noop]

dddd

dddd: [string, noop] = [word, noop]

h

h: [string, setHour] = [twoDigits, setHour]

hh

hh: [string, setHour] = [twoDigits, setHour]

m

m: [string, setMinute] = [twoDigits, setMinute]

mm

mm: [string, setMinute] = [twoDigits, setMinute]

s

s: [string, setSecond] = [twoDigits, setSecond]

ss

ss: [string, setSecond] = [twoDigits, setSecond]

Const popPositionMap

popPositionMap: object

left

left: function = Popover.Position.AutoBottomLeft

Type declaration

right

right: function = Popover.Position.AutoBottomRight

Type declaration

Const positionMap

positionMap: object

BottomCenter

BottomCenter: function

Type declaration

BottomLeft

BottomLeft: function

Type declaration

BottomRight

BottomRight: function

Type declaration

TopCenter

TopCenter: function

Type declaration

TopLeft

TopLeft: function

Type declaration

TopRight

TopRight: function

Type declaration

Const quarterMonthMap

quarterMonthMap: object

0

0: number = 0

1

1: number = 3

2

2: number = 6

3

3: number = 9

Const red

red: object

hex

hex: string = "#ff0000"

hsl

hsl: object

a

a: number = 1

h

h: number = 0

l

l: number = 0.5

s

s: number = 1

hsv

hsv: object

a

a: number = 1

h

h: number = 0

s

s: number = 1

v

v: number = 1

rgb

rgb: object

a

a: number = 1

b

b: number = 0

g

g: number = 0

r

r: number = 255

Const scrollbarMeasure

scrollbarMeasure: object

height

height: string = "50px"

overflow

overflow: string = "scroll"

position

position: string = "absolute"

top

top: string = "-9999px"

width

width: string = "50px"

Const shorthandToLonghand

shorthandToLonghand: object

Copyright (c) Facebook, Inc. and its affiliates.

This source code is licensed under the MIT license found in the LICENSE file in the root directory of this source tree.

animation

animation: string[] = ['animationDelay','animationDirection','animationDuration','animationFillMode','animationIterationCount','animationName','animationPlayState','animationTimingFunction',]

background

background: string[] = ['backgroundAttachment','backgroundClip','backgroundColor','backgroundImage','backgroundOrigin','backgroundPositionX','backgroundPositionY','backgroundRepeat','backgroundSize',]

backgroundPosition

backgroundPosition: string[] = ['backgroundPositionX', 'backgroundPositionY']

border

border: string[] = ['borderBottomColor','borderBottomStyle','borderBottomWidth','borderImageOutset','borderImageRepeat','borderImageSlice','borderImageSource','borderImageWidth','borderLeftColor','borderLeftStyle','borderLeftWidth','borderRightColor','borderRightStyle','borderRightWidth','borderTopColor','borderTopStyle','borderTopWidth',]

borderBlockEnd

borderBlockEnd: string[] = ['borderBlockEndColor','borderBlockEndStyle','borderBlockEndWidth',]

borderBlockStart

borderBlockStart: string[] = ['borderBlockStartColor','borderBlockStartStyle','borderBlockStartWidth',]

borderBottom

borderBottom: string[] = ['borderBottomColor', 'borderBottomStyle', 'borderBottomWidth']

borderColor

borderColor: string[] = ['borderBottomColor','borderLeftColor','borderRightColor','borderTopColor',]

borderImage

borderImage: string[] = ['borderImageOutset','borderImageRepeat','borderImageSlice','borderImageSource','borderImageWidth',]

borderInlineEnd

borderInlineEnd: string[] = ['borderInlineEndColor','borderInlineEndStyle','borderInlineEndWidth',]

borderInlineStart

borderInlineStart: string[] = ['borderInlineStartColor','borderInlineStartStyle','borderInlineStartWidth',]

borderLeft

borderLeft: string[] = ['borderLeftColor', 'borderLeftStyle', 'borderLeftWidth']

borderRadius

borderRadius: string[] = ['borderBottomLeftRadius','borderBottomRightRadius','borderTopLeftRadius','borderTopRightRadius',]

borderRight

borderRight: string[] = ['borderRightColor', 'borderRightStyle', 'borderRightWidth']

borderStyle

borderStyle: string[] = ['borderBottomStyle','borderLeftStyle','borderRightStyle','borderTopStyle',]

borderTop

borderTop: string[] = ['borderTopColor', 'borderTopStyle', 'borderTopWidth']

borderWidth

borderWidth: string[] = ['borderBottomWidth','borderLeftWidth','borderRightWidth','borderTopWidth',]

columnRule

columnRule: string[] = ['columnRuleColor', 'columnRuleStyle', 'columnRuleWidth']

columns

columns: string[] = ['columnCount', 'columnWidth']

flex

flex: string[] = ['flexBasis', 'flexGrow', 'flexShrink']

flexFlow

flexFlow: string[] = ['flexDirection', 'flexWrap']

font

font: string[] = ['fontFamily','fontFeatureSettings','fontKerning','fontLanguageOverride','fontSize','fontSizeAdjust','fontStretch','fontStyle','fontVariant','fontVariantAlternates','fontVariantCaps','fontVariantEastAsian','fontVariantLigatures','fontVariantNumeric','fontVariantPosition','fontWeight','lineHeight',]

fontVariant

fontVariant: string[] = ['fontVariantAlternates','fontVariantCaps','fontVariantEastAsian','fontVariantLigatures','fontVariantNumeric','fontVariantPosition',]

gap

gap: string[] = ['columnGap', 'rowGap']

grid

grid: string[] = ['gridAutoColumns','gridAutoFlow','gridAutoRows','gridTemplateAreas','gridTemplateColumns','gridTemplateRows',]

gridArea

gridArea: string[] = ['gridColumnEnd', 'gridColumnStart', 'gridRowEnd', 'gridRowStart']

gridColumn

gridColumn: string[] = ['gridColumnEnd', 'gridColumnStart']

gridColumnGap

gridColumnGap: string[] = ['columnGap']

gridGap

gridGap: string[] = ['columnGap', 'rowGap']

gridRow

gridRow: string[] = ['gridRowEnd', 'gridRowStart']

gridRowGap

gridRowGap: string[] = ['rowGap']

gridTemplate

gridTemplate: string[] = ['gridTemplateAreas','gridTemplateColumns','gridTemplateRows',]

listStyle

listStyle: string[] = ['listStyleImage', 'listStylePosition', 'listStyleType']

margin

margin: string[] = ['marginBottom', 'marginLeft', 'marginRight', 'marginTop']

marker

marker: string[] = ['markerEnd', 'markerMid', 'markerStart']

mask

mask: string[] = ['maskClip','maskComposite','maskImage','maskMode','maskOrigin','maskPositionX','maskPositionY','maskRepeat','maskSize',]

maskPosition

maskPosition: string[] = ['maskPositionX', 'maskPositionY']

outline

outline: string[] = ['outlineColor', 'outlineStyle', 'outlineWidth']

overflow

overflow: string[] = ['overflowX', 'overflowY']

padding

padding: string[] = ['paddingBottom', 'paddingLeft', 'paddingRight', 'paddingTop']

placeContent

placeContent: string[] = ['alignContent', 'justifyContent']

placeItems

placeItems: string[] = ['alignItems', 'justifyItems']

placeSelf

placeSelf: string[] = ['alignSelf', 'justifySelf']

textDecoration

textDecoration: string[] = ['textDecorationColor','textDecorationLine','textDecorationStyle',]

textEmphasis

textEmphasis: string[] = ['textEmphasisColor', 'textEmphasisStyle']

transition

transition: string[] = ['transitionDelay','transitionDuration','transitionProperty','transitionTimingFunction',]

wordWrap

wordWrap: string[] = ['overflowWrap']

Const stackTraceStyle

stackTraceStyle: object

whiteSpace

whiteSpace: "pre" = "pre"

Const stateMap

stateMap: object

hour

hour: string = "openHour"

minute

minute: string = "openMinute"

onCancel

onCancel: string = "cancelPending"

onConfirm

onConfirm: string = "confirmPending"

second

second: string = "openSecond"

Const timeFnMap

timeFnMap: object

hour

hour: string = "setHours"

minute

minute: string = "setMinutes"

second

second: string = "setSeconds"

Const transforms

transforms: object

absolute

  • absolute(value: any): object

borderRadius

  • borderRadius(value: any): object

boxShadow

  • boxShadow(value: any): object

flex

  • flex(value: any): object

flexBasis

  • flexBasis(value: any): object

justifyContent

  • justifyContent(value: any): object

transform

  • transform(value: any): object

transition

  • transition(value: any): object

userSelect

  • userSelect(value: any): object

Const zhCN

zhCN: object

amPm

amPm: [string, string] = ['上午', '下午']

dayNames

dayNames: [string, string, string, string, string, string, string] = ['星期日','星期一','星期二','星期三','星期四','星期五','星期六',]

dayNamesShort

dayNamesShort: [string, string, string, string, string, string, string] = ['周日', '周一', '周二', '周三', '周四', '周五', '周六']

monthNames

monthNames: [string, string, string, string, string, string, string, string, string, string, string, string] = ['一月','二月','三月','四月','五月','六月','七月','八月','九月','十月','十一月','十二月',]

monthNamesShort

monthNamesShort: [string, string, string, string, string, string, string, string, string, string, string, string] = ['1月','2月','3月','4月','5月','6月','7月','8月','9月','10月','11月','12月',]

DoFn

  • DoFn(D: number): string

Generated using TypeDoc