Repository navigation
Releases
Releases · gasment/popup-button-card
v2.3.0
v2.2.7
- 优化:未弹窗时的按钮阴影效果
- 优化:将可点击区域从卡片层转移到按钮层,避免按钮与父卡片大小不一致时的交互溢出问题
- 新增:配置项styles -> card入口,用于指定按钮所在的父卡片样式,eg.
styles: card: - width: auto - height: 100px
Full Changelog: v2.2.5...v2.2.7
v2.2.5
- 新增:弹窗内容content配置,现已支持两种插入方式:
- 旧版的直接插入,适合内嵌简单、yaml配置量低的卡片。示例:
content: card: type: vertical-stack cards: - type: button show_name: true show_icon: true entity: switch.ui_lovelace_minimalist_pre_release - type: light entity: light.xxxx_light - 外部引用,适合复杂、yaml配置量大的卡片,方便独立维护与修改,支持跨视图引用。示例:
content: from_id: example-id- example-id为card_function:content时配置的content_id
- 具体使用方式,已更新到项目说明文档
Full Changelog: v2.2.4...v2.2.5
v2.2.4
新增:filter_for_ha_action_to_close_popup配置;
any_ha_action_to_close_popup为true时可过滤特定操作触发自动关闭弹窗,配置示例:
filter_for_ha_action_to_close_popup:
include_keyword: #include关键词用于匹配触发自动关闭弹窗,可配置include_keyword:all,等同any_ha_action_to_close_popup: true,或者指定何种操作,哪个实体(如下)
- switch.entity
- light.entity
- light.turn_off
- switch.turn_off
- more-info
- navigation
exclude_keyword: #exclude关键词用于匹配【不】触发自动关闭弹窗,可配置exclude_keyword:all,等同any_ha_action_to_close_popup: false,或者指定何种操作,哪个实体(如下)
- vacuum.start
- sensor.entity
Full Changelog: v2.2.3...v2.2.4
v2.2.3
- 改进:优化弹窗动画
- 改进:优化与more-info弹窗切换时的动画表现
Full Changelog: v2.2.2...v2.2.3
v2.2.2
- 修复:修复与ha自带more-info弹窗的兼容性,现在在弹窗内拉起more-info窗口,会自动收起已存在的弹窗再拉起more-info,防止弹窗重叠引起的页面冻结
Full Changelog: v2.2.1...v2.2.2
v2.2.1
- 修改:移除v2.2.0版本中的
any_tap_to_close_popup配置,更改为any_ha_action_to_close_popup,参数不变:true/false;现在单次交互关闭弹窗的逻辑重写为“单次交互且触发ha实体操作后”,以避免点击空白区域误关弹窗的情况,以及适配弹窗内多级嵌套弹窗的情况
Full Changelog: v2.2.0...v2.2.1
v2.2.0
- 新增:any_tap_to_close_popup配置,可选参数true/false,可用于启用和关闭弹窗内的单次交互后,自动关闭弹窗
Full Changelog: v2.1.9...v2.2.0
v2.1.9
- 修改:content中内嵌的卡片的默认布局,在不配置styles->content->height/width时,默认为包裹内部卡片所需的最小宽高,并且水平垂直居中,如需底部居中,可使用margin-bottom属性,eg.
styles: content: - margin-bottom: 100px #100px差不多是可以避开关闭按钮的高度 - 修复:优化在全屏弹窗模式时,弹窗外部滑动拦截的逻辑
Full Changelog: v2.1.8...v2.1.9
v2.1.8
- 为expand_side以外的所有yaml配置项,添加js模板支持(实验性,自行测试)
Full Changelog: v2.1.7...v2.1.8