Skip to content

按钮容器 - IkBtnContent

用于默认显示对应数量的按钮,超过设定数量的按钮用...展示,点击后显示其它操作

未命名1686729451.png

props

props类型说明默认值
numNumber显示数量3
triggerString as PropType<'click' | 'hover'>触发方式'click'
placementString as PropType<'top' | 'top-start' | 'top-end' | 'bottom-start' | 'bottom-end' | 'bottom'>展开位置'bottom'

slot

slot说明
default默认插槽

示例代码

vue
<template>
  <!-- 示例 -->
  <IkBtnContent :num="2">
    <IkSvgIcon
      v-role="'UPDATE-USER'"
      name="icon-bianji"
      show-bg
      size="big"
      :start-margin="false"
      :title="t('action.edit')"
      @click="handEditRow(data.row)"
    />
    <IkSvgIcon
      v-role="'DELETE-USER'"
      name="icon-shanchu"
      show-bg
      size="big"
      :title="t('action.delete')"
      @click="handDelete(data.row)"
    />
    <IkSvgIcon
      v-role="'USER-RESET-PASSWORD'"
      name="icon-shuaxin"
      show-bg
      size="big"
      :title="`${t('action.reset')}${t('app.password')}`"
      @click="handResetPassword(data.row)"
    />
  </IkBtnContent>
</template>