2021-12-30 00:44:43 +08:00
|
|
|
::: anchor
|
|
|
|
:::
|
|
|
|
|
2022-02-06 05:20:07 +08:00
|
|
|
::: title 基本介绍
|
|
|
|
:::
|
|
|
|
|
|
|
|
::: describe 当页面上的操作命令过多时,用此组件可以收纳操作元素。
|
|
|
|
:::
|
|
|
|
|
2021-10-26 01:13:23 +08:00
|
|
|
::: title 基础使用
|
2021-10-19 22:28:44 +08:00
|
|
|
:::
|
|
|
|
|
2021-10-06 23:22:30 +08:00
|
|
|
::: demo
|
|
|
|
|
|
|
|
<template>
|
2021-10-07 02:03:35 +08:00
|
|
|
<lay-dropdown>
|
2021-10-27 02:04:47 +08:00
|
|
|
<lay-button type="primary">下拉菜单</lay-button>
|
2021-10-07 02:03:35 +08:00
|
|
|
<template #content>
|
2022-03-19 13:02:52 +08:00
|
|
|
<lay-dropdown-menu>
|
|
|
|
<lay-dropdown-menu-item>选项一</lay-dropdown-menu-item>
|
|
|
|
<lay-dropdown-menu-item>选项二</lay-dropdown-menu-item>
|
|
|
|
<lay-dropdown-menu-item>选项三</lay-dropdown-menu-item>
|
|
|
|
</lay-dropdown-menu>
|
2021-10-07 02:03:35 +08:00
|
|
|
</template>
|
|
|
|
</lay-dropdown>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
import { ref } from 'vue'
|
|
|
|
|
|
|
|
export default {
|
|
|
|
setup() {
|
|
|
|
|
|
|
|
return {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
|
|
|
|
:::
|
|
|
|
|
2021-10-26 01:13:23 +08:00
|
|
|
::: title 触发方式
|
2021-10-19 22:28:44 +08:00
|
|
|
:::
|
|
|
|
|
2021-10-07 02:03:35 +08:00
|
|
|
::: demo
|
|
|
|
|
|
|
|
<template>
|
2021-10-07 03:24:53 +08:00
|
|
|
<lay-dropdown trigger="hover">
|
2021-10-07 02:03:35 +08:00
|
|
|
<lay-button>Hover 触发</lay-button>
|
|
|
|
<template #content>
|
2022-03-19 13:02:52 +08:00
|
|
|
<lay-dropdown-menu>
|
|
|
|
<lay-dropdown-menu-item>选项一</lay-dropdown-menu-item>
|
|
|
|
<lay-dropdown-menu-item>选项二</lay-dropdown-menu-item>
|
|
|
|
<lay-dropdown-menu-item>选项三</lay-dropdown-menu-item>
|
|
|
|
</lay-dropdown-menu>
|
2021-10-07 02:03:35 +08:00
|
|
|
</template>
|
|
|
|
</lay-dropdown>
|
|
|
|
|
|
|
|
<lay-dropdown>
|
|
|
|
<lay-button>Click 触发</lay-button>
|
|
|
|
<template #content>
|
2022-03-19 13:02:52 +08:00
|
|
|
<lay-dropdown-menu>
|
|
|
|
<lay-dropdown-menu-item>选项一</lay-dropdown-menu-item>
|
|
|
|
<lay-dropdown-menu-item>选项二</lay-dropdown-menu-item>
|
|
|
|
<lay-dropdown-menu-item>选项三</lay-dropdown-menu-item>
|
|
|
|
</lay-dropdown-menu>
|
2021-10-07 02:03:35 +08:00
|
|
|
</template>
|
|
|
|
</lay-dropdown>
|
2021-10-06 23:22:30 +08:00
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
import { ref } from 'vue'
|
|
|
|
|
|
|
|
export default {
|
|
|
|
setup() {
|
|
|
|
|
|
|
|
return {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
|
2021-10-08 00:17:34 +08:00
|
|
|
:::
|
|
|
|
|
2022-01-10 01:17:03 +08:00
|
|
|
::: title Dropdown 属性
|
2021-10-13 10:19:38 +08:00
|
|
|
:::
|
2021-10-12 18:00:09 +08:00
|
|
|
|
2021-11-07 15:55:08 +08:00
|
|
|
::: table
|
|
|
|
|
2021-11-01 01:02:21 +08:00
|
|
|
| 属性 | 描述 | 可选值 |
|
|
|
|
| ------- | -------- | --------------- |
|
|
|
|
| trigger | 触发方式 | `click` `hover` |
|
2021-10-20 21:48:05 +08:00
|
|
|
|
2021-11-07 15:55:08 +08:00
|
|
|
:::
|
|
|
|
|
2022-01-10 01:17:03 +08:00
|
|
|
::: title Dropdown 插槽
|
2021-10-20 21:48:05 +08:00
|
|
|
:::
|
|
|
|
|
2021-11-07 15:55:08 +08:00
|
|
|
::: table
|
|
|
|
|
2021-11-01 01:02:21 +08:00
|
|
|
| 插槽 | 描述 | 可选值 |
|
|
|
|
| ------- | -------- | ------ |
|
|
|
|
| content | 下拉内容 | -- |
|
2021-11-07 15:55:08 +08:00
|
|
|
|
2021-11-07 15:56:24 +08:00
|
|
|
:::
|
2021-12-16 17:57:59 +08:00
|
|
|
|
|
|
|
::: comment
|
2022-01-12 14:19:06 +08:00
|
|
|
:::
|
|
|
|
|
|
|
|
::: previousNext dropdown
|
2021-12-16 17:57:59 +08:00
|
|
|
:::
|