pro-element

🔨 Utilities to create pro-components


Keywords
element-ui, element-plus, vue, vuecomponent, vue-next, vue3
License
MIT
Install
npm install pro-element@0.1.0

Documentation

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