EDock 停靠栏
示例与代码
悬停放大
纵向停靠栏
大图标
固定图标
命令反馈
属性
属性说明取值与默认值
modelvar组件的数据源;数组项结构以当前示例及组件说明为准。
默认值
[]iconSizeint停靠条目图标的像素尺寸。
默认值
24itemSizeint停靠栏每个条目的基础尺寸。
默认值
48magnificationreal停靠栏条目悬停时的放大倍数。
默认值
1.35placementstring停靠方向:top、bottom、left 或 right。
"top" / "top-start""top-end" / "bottom""bottom-start" / "bottom-end"
默认值
"bottom"verticalbool只读停靠在左侧或右侧时为 true。
默认值
placement === "left" || placement === "right"信号
签名作用
command(var command, var item)执行命令时触发,包含命令值和对应菜单项。
方法
签名作用
trigger(index)触发给定项目的命令,相当于选择该命令项。