0.1.0 • Published 3 years ago

pro-element v0.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

pro-element

Props

// popover
export interface IPopoverProps {
  lite: boolean;
  popoverVisible: boolean;
  popoverAttrs: Record<string, any>;
  popoverListeners: Record<string, any>;
  popover: string | Function;
  scrollWrapper: string;
  scrollDebounce: number;
  duration: number;
}

// textField component slot
export interface ITextFieldProps {
  append: string | Function
  prepend: string | Function
  prefix: string | Function
  suffix: string | Function
}

// custom render component
export interface ICustomRenderProps {
  render: Function
  attrs?: Record<string, any>
  listeners?: Record<string, Function>
}

// list group component, like select
export interface IOptionProps {
  valueKey: string;
  labelKey: string;
  childrenKey: string;
  disabledKey: string;
}

// textField component color
export interface ITextFeildColorProps {
  color: string
  borderColor: string
  backgroundColor: string
}

Hooks

  • use-popover: bind popover into element
  • use-text-field-color: set color for textField
0.1.0

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.6

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago