refactor: 事件详情弹窗改用 Drawer 组件从底部弹出

- EventDetailModal: Modal 替换为 Drawer,placement="bottom"
- 使用 destroyOnHidden 替代已弃用的 destroyOnClose
- 关闭按钮改用 CloseOutlined 图标,移到右上角
- 简化 Less 文件,删除与 TSX styles 属性重复的配置
- BytedeskWidget: H5 端降低 z-index,避免遮挡发布按钮

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
zdl
2025-12-04 15:45:48 +08:00
parent 5f6b933172
commit b1d5b217d3
3 changed files with 34 additions and 47 deletions

View File

@@ -75,9 +75,11 @@ const BytedeskWidget = ({
const rightVal = parseInt(style.right);
const bottomVal = parseInt(style.bottom);
if (rightVal >= 0 && rightVal < 100 && bottomVal >= 0 && bottomVal < 100) {
// H5 端设置按钮尺寸为 48x48只执行一次
// H5 端设置按钮尺寸为 48x48 并降低 z-index(只执行一次)
if (isMobile && !el.dataset.bytedeskStyled) {
el.dataset.bytedeskStyled = 'true';
// 降低 z-index避免遮挡页面内的发布按钮等交互元素
el.style.zIndex = 10;
const button = el.querySelector('button');
if (button) {
button.style.width = '48px';