Skip to content

快捷按钮组件

快捷显示按钮

TIP

IkButton 分为以下快捷按钮组件

新增按钮 - IkBtnAdd

新增按钮

ikBtn_add.png

  • 示例代码
vue
<template>
  <!-- 示例 -->
  <IkBtnAdd />
</template>

导出按钮 - IkBtnExport

导出按钮

ikBtn_export.png

  • 示例代码
vue
<template>
  <!-- 示例 -->
  <IkBtnExport />
</template>

导入按钮 - IkBtnImport

导入按钮

ikBtn_import.png

  • 示例代码
vue
<template>
  <!-- 示例 -->
  <IkBtnImport />
</template>

刷新按钮 - IkBtnRefresh

刷新按钮

ikBtn_refresh.png

  • 示例代码
vue
<template>
  <!-- 示例 -->
  <IkBtnRefresh />
</template>

排序按钮 - IkBtnSort

排序按钮

ikBtn_sort.png

  • 示例代码
vue
<template>
  <!-- 示例 -->
  <IkBtnSort />
</template>

props

props类型说明默认值
btnTypeString as PropType<'icon' | 'button'>按钮类型'button'
typeString as PropType<'primary' | 'success'| 'warning'| 'danger'| 'info'| 'text'>btnType 为'button'的类型'primary'
circleBoolean是否圆形按钮true
roleString角色''

事件

名称说明
click点击事件

设置按钮 - IkBtnSetting

设置按钮

ikBtn_setting.png

props

props类型说明默认值
btnTypeString as PropType<'icon' | 'button'>按钮类型'button'
typeString as PropType<'primary' | 'success'| 'warning'| 'danger'| 'info'| 'text'>btnType 为'button'的类型'default'
circleBoolean是否圆形按钮true
roleString角色''
listArray as PropType< Array< ISearchForm>>表格字段名列表数据[]
tab[String, Number]区分页面tab页''
inlineBooleaninline模式一行显示多个false

事件

名称说明
sort首次显示弹窗排序数据后或排序后点击弹框中确认按钮触发

示例代码

vue
<template>
  <!-- 示例 -->
  <IkBtnSetting
    v-if="settingBtn"
    v-model="srotFields"
    title="设置表格字段"
    :list="fields"
    :tab="tabId"
  />
</template>