Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Index

Constructors

constructor

Properties

block

block: boolean

是否为块级元素

btnType

btnType: default

类型,可选值为 primary info warning danger

color

color: string

按钮颜色

css

css: VantButtonStyle

hairline

hairline: boolean

是否使用 0.5px 边框

icon

icon: string

左侧图标名称或图片链接

isNoNewVue

isNoNewVue: Boolean

onBtnClickScript

onBtnClickScript: string

点击按钮,且按钮状态不为加载或禁用时触发

onTouchstartScript

onTouchstartScript: string

开始触摸按钮时触发

plain

plain: boolean

是否为朴素按钮

retdata

retdata: object

初始化定义的vue返回data的值

round

round: boolean

是否为圆形按钮

size

size: normal

尺寸,可选值为 large small mini

square

square: boolean

是否为方形按钮

text

text: string

按钮文字

url

url: string

点击后跳转的链接地址

Methods

Protected doDesigningDbClick

  • doDesigningDbClick(): void
  • Returns void

doGetClassName

  • doGetClassName(): any
  • Returns any

doGetCss

  • doGetCss(): VantButtonStyle
  • Returns VantButtonStyle

doGetHtml

  • doGetHtml(): string
  • 拼接元素dom

    Returns string

doGetMethods

  • doGetMethods(): { onClick: (e: any) => void } & { onBtnClick: (event: Event) => void; onTouchstart: (event: TouchEvent) => void }
  • vue 事件配置

    Returns { onClick: (e: any) => void } & { onBtnClick: (event: Event) => void; onTouchstart: (event: TouchEvent) => void }

    返回配置的事件

Protected doGetVueData

  • doGetVueData(): object

Protected doGetWatchs

  • doGetWatchs(): {}

Protected doRenderCallback

  • doRenderCallback(): void
  • vue组件渲染完成后的回调事件

    Returns void

Protected doRenderElemt

  • doRenderElemt(): void

getAttrEditors

  • getAttrEditors(): AttributeEditorBase[]

getElemtHtml

  • getElemtHtml(): string

onBtnClick

  • onBtnClick(event: Event): void
  • 注册点击按钮,且按钮状态不为加载或禁用时触发

    Parameters

    • event: Event

      点击元素返回的dom节点

    Returns void

onTouchstart

  • onTouchstart(event: TouchEvent): void
  • 注册开始触摸按钮时触发

    Parameters

    • event: TouchEvent

      点击元素返回的dom节点

    Returns void

raiseOnBtnClickScript

  • raiseOnBtnClickScript(event: Event): void
  • Parameters

    • event: Event

    Returns void

raiseOnTouchstartScript

  • raiseOnTouchstartScript(event: TouchEvent): void
  • Parameters

    • event: TouchEvent

    Returns void

render

  • render(parentCmp: any): void
  • Parameters

    • parentCmp: any

    Returns void

Generated using TypeDoc