Skip to content

# Dropdown ​

## Props ​

参数 | 类型 | 默认值 | 必填 | 说明
--- | --- | --- | --- | ---
buttonText | String | '' | 否 | -
buttonType | String | 'primary' | 否 | -
actionType | String | '' | 否 | 行为按钮 more、new

## Slots ​

插槽名 | 说明
--- | ---
icon | 指定了actionType,显示图标和按钮文本

          <span v-if="actionType && computedActionType?.icon">
            <IconFont
              :noColor="true"
              :type="computedActionType?.icon"
              :title="computedActionType?.title"
              fontSize="14px"
            />
            <span style="">&nbsp;</span>
            <span></span>
          </span>

          <span v-if="!actionType">
             前置图标 |

| DropdownItem | - |

## 使用示例 ​

vue

    <template>
      <Dropdown />
    </template>

    <script setup>
    import { Dropdown } from 'ysj_plugins_dps'
    </script>