Skip to content

fix(Cell): fix component style errors #837

fix(Cell): fix component style errors

fix(Cell): fix component style errors #837

Triggered via pull request January 21, 2025 08:31
Status Failure
Total duration 4m 43s
Artifacts 2

pull-request.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 4 warnings
test/snap/csr.test.jsx > ssr snapshot test > ssr test src/switch/_example/status.tsx: test/snap/ssr.test.jsx#L31
Error: Snapshot `ssr snapshot test > ssr test src/switch/_example/status.tsx 1` mismatched Expected: ""<div class="t-cell t-cell--middle"><div class="t-cell__left"></div><div class="t-cell__title"><div class="t-cell__title-text">加载状态</div></div><div class="t-cell__right"><div class="t-cell__right-icon"><div class="t-switch t-switch--medium t-switch--disabled"><div class="t-switch__dot t-switch__dot--medium"><div class="t-switch__label t-switch__label--medium"><div class="t-loading t-loading--center" style="color:inherit;font-size:small"><svg style="animation:t-spin 0.8s linear infinite;animation-direction:normal" class="t-loading__gradient t-icon-loading" viewBox="0 0 14 14" version="1.1" width="1em" height="1em" xmlns="http://www.w3.org/2000/svg"><foreignObject x="1" y="1" width="12" height="12"><div class="t-loading__gradient-conic"></div></foreignObject></svg></div></div></div></div></div></div></div><div class="t-cell t-cell--middle"><div class="t-cell__left"></div><div class="t-cell__title"><div class="t-cell__title-text">开关开启禁用</div></div><div class="t-cell__note"><div class="t-switch t-switch--medium t-switch--checked t-switch--disabled"><div class="t-switch__dot t-switch__dot--medium t-switch__dot--checked"><div class="t-switch__label t-switch__label--medium t-switch__label--checked"><div class="t-loading t-loading--center" style="color:inherit;font-size:small"><svg style="animation:t-spin 0.8s linear infinite;animation-direction:normal" class="t-loading__gradient t-icon-loading" viewBox="0 0 14 14" version="1.1" width="1em" height="1em" xmlns="http://www.w3.org/2000/svg"><foreignObject x="1" y="1" width="12" height="12"><div class="t-loading__gradient-conic"></div></foreignObject></svg></div></div></div></div></div></div><div class="demo__title">禁用状态</div><div class="t-cell t-cell--middle"><div class="t-cell__left"></div><div class="t-cell__title"><div class="t-cell__title-text">禁用状态</div></div><div class="t-cell__note"><div class="t-switch t-switch--medium t-switch--disabled"><div class="t-switch__dot t-switch__dot--medium t-switch__dot--plain"><div class="t-switch__label t-switch__label--medium"></div></div></div></div></div><div class="t-cell t-cell--middle"><div class="t-cell__left"></div><div class="t-cell__title"><div class="t-cell__title-text">禁用状态</div></div><div class="t-cell__note"><div class="t-switch t-switch--medium t-switch--checked t-switch--disabled"><div class="t-switch__dot t-switch__dot--medium t-switch__dot--checked t-switch__dot--plain"><div class="t-switch__label t-switch__label--medium t-switch__label--checked"></div></div></div></div></div>"" Received: ""<div class="t-cell"><div class="t-cell__left"></div><div class="t-cell__title"><div class="t-cell__title-text">加载状态</div></div><div class="t-cell__right t-cell__right--middle"><div class="t-cell__right-icon"><div class="t-switch t-switch--medium t-switch--disabled"><div class="t-switch__dot t-switch__dot--medium"><div class="t-switch__label t-switch__label--medium"><div class="t-loading t-loading--center" style="color:inherit;font-size:small"><svg style="animation:t-spin 0.8s linear infinite;animation-direction:normal" class="t-loading__gradient t-icon-loading" viewBox="0 0 14 14" version="1.1" width="1em" height="1em" xmlns="http://www.w3.org/2000/svg"><foreignObject x="1" y="1" width="12" height="12"><div class="t-loading__gradient-conic"></div></foreignObject></svg></div></div></div></div></div></div></div><div class="t-cell"><div class="t-cell__left"></div><div class="t-cell__title"><div class="t-cell__title-text">开关开启禁用</div></div><div class="t-cell__note"><div class="t-switch t-switch--medium t-switch--checked t-switch--disabled"><div class="t-switch__dot t-switch__dot--medium t-switch__dot--checked"><div class="t-switch__label t-switch__label--medium t-switch__label--checked"><div class="t-loading t-loading--center" style="color:inherit;font-size:small"><svg style="animation:t-spin 0.8s linear infinite;animation-direction:normal" class="t-loading__gradient t-icon-loading" viewBox="0 0 14 14" version="1.1" width="1em" height="1em"
test/snap/csr.test.jsx > ssr snapshot test > ssr test src/switch/_example/size.tsx: test/snap/ssr.test.jsx#L31
Error: Snapshot `ssr snapshot test > ssr test src/switch/_example/size.tsx 1` mismatched Expected: ""<div class="t-cell t-cell--middle"><div class="t-cell__left"></div><div class="t-cell__title"><div class="t-cell__title-text">大尺寸 32</div></div><div class="t-cell__right"><div class="t-cell__right-icon"><div class="t-switch t-switch--large t-switch--checked"><div class="t-switch__dot t-switch__dot--large t-switch__dot--checked t-switch__dot--plain"><div class="t-switch__label t-switch__label--large t-switch__label--checked"></div></div></div></div></div></div><div class="t-cell t-cell--middle"><div class="t-cell__left"></div><div class="t-cell__title"><div class="t-cell__title-text">中尺寸 28</div></div><div class="t-cell__right"><div class="t-cell__right-icon"><div class="t-switch t-switch--medium t-switch--checked"><div class="t-switch__dot t-switch__dot--medium t-switch__dot--checked t-switch__dot--plain"><div class="t-switch__label t-switch__label--medium t-switch__label--checked"></div></div></div></div></div></div><div class="t-cell t-cell--middle"><div class="t-cell__left"></div><div class="t-cell__title"><div class="t-cell__title-text">小尺寸 24</div></div><div class="t-cell__right"><div class="t-cell__right-icon"><div class="t-switch t-switch--small t-switch--checked"><div class="t-switch__dot t-switch__dot--small t-switch__dot--checked t-switch__dot--plain"><div class="t-switch__label t-switch__label--small t-switch__label--checked"></div></div></div></div></div></div>"" Received: ""<div class="t-cell"><div class="t-cell__left"></div><div class="t-cell__title"><div class="t-cell__title-text">大尺寸 32</div></div><div class="t-cell__right t-cell__right--middle"><div class="t-cell__right-icon"><div class="t-switch t-switch--large t-switch--checked"><div class="t-switch__dot t-switch__dot--large t-switch__dot--checked t-switch__dot--plain"><div class="t-switch__label t-switch__label--large t-switch__label--checked"></div></div></div></div></div></div><div class="t-cell"><div class="t-cell__left"></div><div class="t-cell__title"><div class="t-cell__title-text">中尺寸 28</div></div><div class="t-cell__right t-cell__right--middle"><div class="t-cell__right-icon"><div class="t-switch t-switch--medium t-switch--checked"><div class="t-switch__dot t-switch__dot--medium t-switch__dot--checked t-switch__dot--plain"><div class="t-switch__label t-switch__label--medium t-switch__label--checked"></div></div></div></div></div></div><div class="t-cell"><div class="t-cell__left"></div><div class="t-cell__title"><div class="t-cell__title-text">小尺寸 24</div></div><div class="t-cell__right t-cell__right--middle"><div class="t-cell__right-icon"><div class="t-switch t-switch--small t-switch--checked"><div class="t-switch__dot t-switch__dot--small t-switch__dot--checked t-switch__dot--plain"><div class="t-switch__label t-switch__label--small t-switch__label--checked"></div></div></div></div></div></div>"" ❯ test/snap/ssr.test.jsx:31:22
test/snap/csr.test.jsx > ssr snapshot test > ssr test src/switch/_example/label.tsx: test/snap/ssr.test.jsx#L31
Error: Snapshot `ssr snapshot test > ssr test src/switch/_example/label.tsx 1` mismatched Expected: ""<div class="t-cell t-cell--middle"><div class="t-cell__left"></div><div class="t-cell__title"><div class="t-cell__title-text">带文字开关</div></div><div class="t-cell__right"><div class="t-cell__right-icon"><div class="t-switch t-switch--medium t-switch--checked"><div class="t-switch__dot t-switch__dot--medium t-switch__dot--checked"><div class="t-switch__label t-switch__label--medium t-switch__label--checked">开</div></div></div></div></div></div><div class="t-cell t-cell--middle"><div class="t-cell__left"></div><div class="t-cell__title"><div class="t-cell__title-text">带图标开关</div></div><div class="t-cell__right"><div class="t-cell__right-icon"><div class="t-switch t-switch--medium t-switch--checked"><div class="t-switch__dot t-switch__dot--medium t-switch__dot--checked"><div class="t-switch__label t-switch__label--medium t-switch__label--checked"><svg class="t-icon t-icon-check"><use xlink:href="#t-icon-check"></use></svg></div></div></div></div></div></div>"" Received: ""<div class="t-cell"><div class="t-cell__left"></div><div class="t-cell__title"><div class="t-cell__title-text">带文字开关</div></div><div class="t-cell__right t-cell__right--middle"><div class="t-cell__right-icon"><div class="t-switch t-switch--medium t-switch--checked"><div class="t-switch__dot t-switch__dot--medium t-switch__dot--checked"><div class="t-switch__label t-switch__label--medium t-switch__label--checked">开</div></div></div></div></div></div><div class="t-cell"><div class="t-cell__left"></div><div class="t-cell__title"><div class="t-cell__title-text">带图标开关</div></div><div class="t-cell__right t-cell__right--middle"><div class="t-cell__right-icon"><div class="t-switch t-switch--medium t-switch--checked"><div class="t-switch__dot t-switch__dot--medium t-switch__dot--checked"><div class="t-switch__label t-switch__label--medium t-switch__label--checked"><svg class="t-icon t-icon-check"><use xlink:href="#t-icon-check"></use></svg></div></div></div></div></div></div>"" ❯ test/snap/ssr.test.jsx:31:22
test/snap/csr.test.jsx > ssr snapshot test > ssr test src/switch/_example/index.tsx: test/snap/ssr.test.jsx#L31
Error: Snapshot `ssr snapshot test > ssr test src/switch/_example/index.tsx 1` mismatched Expected: ""<div class="tdesign-mobile-demo"><div class="tdesign-mobile-demo-header"><h1 class="tdesign-mobile-demo-header__title">Switch 开关</h1><p class="tdesign-mobile-demo-header__summary">开关用于切换当个设置项的状态,开启、关闭为两个互斥的操作</p></div><div class="tdesign-mobile-demo-block"><div class="tdesign-mobile-demo-block__header"><h2 class="tdesign-mobile-demo-block__title">01 组件类型</h2><p class="tdesign-mobile-demo-block__summary">基础开关</p></div><div class="tdesign-mobile-demo-block__slot"><div class="t-cell t-cell--middle"><div class="t-cell__left"></div><div class="t-cell__title"><div class="t-cell__title-text">基础开关</div></div><div class="t-cell__right"><div class="t-cell__right-icon"><div class="t-switch t-switch--medium t-switch--checked"><div class="t-switch__dot t-switch__dot--medium t-switch__dot--checked t-switch__dot--plain"><div class="t-switch__label t-switch__label--medium t-switch__label--checked"></div></div></div></div></div></div></div></div><div class="tdesign-mobile-demo-block tdesign-mobile-demo-block_subtitle"><div class="tdesign-mobile-demo-block__header"><p class="tdesign-mobile-demo-block__summary tdesign-mobile-demo-block_subtitle">带描述开关</p></div><div class="tdesign-mobile-demo-block__slot"><div class="t-cell t-cell--middle"><div class="t-cell__left"></div><div class="t-cell__title"><div class="t-cell__title-text">带文字开关</div></div><div class="t-cell__right"><div class="t-cell__right-icon"><div class="t-switch t-switch--medium t-switch--checked"><div class="t-switch__dot t-switch__dot--medium t-switch__dot--checked"><div class="t-switch__label t-switch__label--medium t-switch__label--checked">开</div></div></div></div></div></div><div class="t-cell t-cell--middle"><div class="t-cell__left"></div><div class="t-cell__title"><div class="t-cell__title-text">带图标开关</div></div><div class="t-cell__right"><div class="t-cell__right-icon"><div class="t-switch t-switch--medium t-switch--checked"><div class="t-switch__dot t-switch__dot--medium t-switch__dot--checked"><div class="t-switch__label t-switch__label--medium t-switch__label--checked"><svg class="t-icon t-icon-check"><use xlink:href="#t-icon-check"></use></svg></div></div></div></div></div></div></div></div><div class="tdesign-mobile-demo-block tdesign-mobile-demo-block_subtitle"><div class="tdesign-mobile-demo-block__header"><p class="tdesign-mobile-demo-block__summary tdesign-mobile-demo-block_subtitle">自定义颜色开关</p></div><div class="tdesign-mobile-demo-block__slot"><div class="t-cell t-cell--middle"><div class="t-cell__left"></div><div class="t-cell__title"><div class="t-cell__title-text">自定义颜色开关</div></div><div class="t-cell__right"><div class="t-cell__right-icon"><div class="t-switch t-switch--medium t-switch--checked custom-color"><div class="t-switch__dot t-switch__dot--medium t-switch__dot--checked t-switch__dot--plain"><div class="t-switch__label t-switch__label--medium t-switch__label--checked"></div></div></div></div></div></div></div></div><div class="tdesign-mobile-demo-block"><div class="tdesign-mobile-demo-block__header"><h2 class="tdesign-mobile-demo-block__title">02 状态</h2><p class="tdesign-mobile-demo-block__summary">加载状态</p></div><div class="tdesign-mobile-demo-block__slot"><div class="t-cell t-cell--middle"><div class="t-cell__left"></div><div class="t-cell__title"><div class="t-cell__title-text">加载状态</div></div><div class="t-cell__right"><div class="t-cell__right-icon"><div class="t-switch t-switch--medium t-switch--disabled"><div class="t-switch__dot t-switch__dot--medium"><div class="t-switch__label t-switch__label--medium"><div class="t-loading t-loading--center" style="color:inherit;font-size:small"><svg style="animation:t-spin 0.8s linear infinite;animation-direction:normal" class="t-loading__gradient t-icon-loading" viewBox="0 0 14 14" version="1.1" width="1em" height="1em" xmlns="http://www.w3.org/2000/svg"><foreignObject x="1" y="1" width="12" height="12"><div class="t-loading__gradient-conic"></div></foreignObject></svg></div></div></div></div></div></d
test/snap/csr.test.jsx > ssr snapshot test > ssr test src/switch/_example/color.tsx: test/snap/ssr.test.jsx#L31
Error: Snapshot `ssr snapshot test > ssr test src/switch/_example/color.tsx 1` mismatched Expected: ""<div class="t-cell t-cell--middle"><div class="t-cell__left"></div><div class="t-cell__title"><div class="t-cell__title-text">自定义颜色开关</div></div><div class="t-cell__right"><div class="t-cell__right-icon"><div class="t-switch t-switch--medium t-switch--checked custom-color"><div class="t-switch__dot t-switch__dot--medium t-switch__dot--checked t-switch__dot--plain"><div class="t-switch__label t-switch__label--medium t-switch__label--checked"></div></div></div></div></div></div>"" Received: ""<div class="t-cell"><div class="t-cell__left"></div><div class="t-cell__title"><div class="t-cell__title-text">自定义颜色开关</div></div><div class="t-cell__right t-cell__right--middle"><div class="t-cell__right-icon"><div class="t-switch t-switch--medium t-switch--checked custom-color"><div class="t-switch__dot t-switch__dot--medium t-switch__dot--checked t-switch__dot--plain"><div class="t-switch__label t-switch__label--medium t-switch__label--checked"></div></div></div></div></div></div>"" ❯ test/snap/ssr.test.jsx:31:22
test/snap/csr.test.jsx > ssr snapshot test > ssr test src/switch/_example/base.tsx: test/snap/ssr.test.jsx#L31
Error: Snapshot `ssr snapshot test > ssr test src/switch/_example/base.tsx 1` mismatched Expected: ""<div class="t-cell t-cell--middle"><div class="t-cell__left"></div><div class="t-cell__title"><div class="t-cell__title-text">基础开关</div></div><div class="t-cell__right"><div class="t-cell__right-icon"><div class="t-switch t-switch--medium t-switch--checked"><div class="t-switch__dot t-switch__dot--medium t-switch__dot--checked t-switch__dot--plain"><div class="t-switch__label t-switch__label--medium t-switch__label--checked"></div></div></div></div></div></div>"" Received: ""<div class="t-cell"><div class="t-cell__left"></div><div class="t-cell__title"><div class="t-cell__title-text">基础开关</div></div><div class="t-cell__right t-cell__right--middle"><div class="t-cell__right-icon"><div class="t-switch t-switch--medium t-switch--checked"><div class="t-switch__dot t-switch__dot--medium t-switch__dot--checked t-switch__dot--plain"><div class="t-switch__label t-switch__label--medium t-switch__label--checked"></div></div></div></div></div></div>"" ❯ test/snap/ssr.test.jsx:31:22
test/snap/csr.test.jsx > ssr snapshot test > ssr test src/swipe-cell/_example/right.tsx: test/snap/ssr.test.jsx#L31
Error: Snapshot `ssr snapshot test > ssr test src/swipe-cell/_example/right.tsx 1` mismatched Expected: ""<div class="tdesign-mobile-demo-block tdesign-mobile-demo-block_subtitle"><div class="tdesign-mobile-demo-block__header"><p class="tdesign-mobile-demo-block__summary tdesign-mobile-demo-block_subtitle">右滑单操作</p></div><div class="tdesign-mobile-demo-block__slot"><div class="t-swipe-cell"><div class="t-swipe-cell__wrapper" style="transform:none"><div class="t-swipe-cell__left"><div class="btn favor-btn">选择</div></div><div class="t-cell t-cell--middle"><div class="t-cell__left"></div><div class="t-cell__title"><div class="t-cell__title-text">右滑单操作</div></div><div class="t-cell__note">辅助信息</div></div></div></div></div></div>"" Received: ""<div class="tdesign-mobile-demo-block tdesign-mobile-demo-block_subtitle"><div class="tdesign-mobile-demo-block__header"><p class="tdesign-mobile-demo-block__summary tdesign-mobile-demo-block_subtitle">右滑单操作</p></div><div class="tdesign-mobile-demo-block__slot"><div class="t-swipe-cell"><div class="t-swipe-cell__wrapper" style="transform:none"><div class="t-swipe-cell__left"><div class="btn favor-btn">选择</div></div><div class="t-cell"><div class="t-cell__left"></div><div class="t-cell__title"><div class="t-cell__title-text">右滑单操作</div></div><div class="t-cell__note">辅助信息</div></div></div></div></div></div>"" ❯ test/snap/ssr.test.jsx:31:22
test/snap/csr.test.jsx > ssr snapshot test > ssr test src/swipe-cell/_example/left.tsx: test/snap/ssr.test.jsx#L31
Error: Snapshot `ssr snapshot test > ssr test src/swipe-cell/_example/left.tsx 1` mismatched Expected: ""<div class="tdesign-mobile-demo-block tdesign-mobile-demo-block_subtitle"><div class="tdesign-mobile-demo-block__header"><p class="tdesign-mobile-demo-block__summary tdesign-mobile-demo-block_subtitle">左滑单操作</p></div><div class="tdesign-mobile-demo-block__slot"><div class="t-swipe-cell"><div class="t-swipe-cell__wrapper" style="transform:none"><div class="t-cell t-cell--middle"><div class="t-cell__left"></div><div class="t-cell__title"><div class="t-cell__title-text">左滑单操作</div></div><div class="t-cell__note">辅助信息</div></div><div class="t-swipe-cell__right"><div class="btn delete-btn">删除</div></div></div></div></div></div><div class="tdesign-mobile-demo-block tdesign-mobile-demo-block_subtitle" style="margin-top:10px"><div class="tdesign-mobile-demo-block__slot"><div class="t-swipe-cell"><div class="t-swipe-cell__wrapper" style="transform:none"><div class="t-cell t-cell--middle"><div class="t-cell__left"></div><div class="t-cell__title"><div class="t-cell__title-text">左滑单操作</div><div class="t-cell__description">一段很长很长的内容文字</div></div><div class="t-cell__note">辅助信息</div></div><div class="t-swipe-cell__right"><div class="btn delete-btn">删除</div></div></div></div></div></div><div class="tdesign-mobile-demo-block tdesign-mobile-demo-block_subtitle" style="margin-top:10px"><div class="tdesign-mobile-demo-block__slot"><div class="t-swipe-cell"><div class="t-swipe-cell__wrapper" style="transform:none"><div class="t-cell t-cell--middle"><div class="t-cell__left"></div><div class="t-cell__title"><div class="t-cell__title-text">左滑双操作</div></div><div class="t-cell__note">辅助信息</div></div><div class="t-swipe-cell__right"><div class="btn favor-btn">收藏</div><div class="btn edit-btn">编辑</div></div></div></div></div></div><div class="tdesign-mobile-demo-block tdesign-mobile-demo-block_subtitle" style="margin-top:10px"><div class="tdesign-mobile-demo-block__slot"><div class="t-swipe-cell"><div class="t-swipe-cell__wrapper" style="transform:none"><div class="t-cell t-cell--middle"><div class="t-cell__left"></div><div class="t-cell__title"><div class="t-cell__title-text">左滑三操作</div></div><div class="t-cell__note">辅助信息</div></div><div class="t-swipe-cell__right"><div class="btn favor-btn">收藏</div><div class="btn edit-btn">编辑</div><div class="btn delete-btn">删除</div></div></div></div></div></div>"" Received: ""<div class="tdesign-mobile-demo-block tdesign-mobile-demo-block_subtitle"><div class="tdesign-mobile-demo-block__header"><p class="tdesign-mobile-demo-block__summary tdesign-mobile-demo-block_subtitle">左滑单操作</p></div><div class="tdesign-mobile-demo-block__slot"><div class="t-swipe-cell"><div class="t-swipe-cell__wrapper" style="transform:none"><div class="t-cell"><div class="t-cell__left"></div><div class="t-cell__title"><div class="t-cell__title-text">左滑单操作</div></div><div class="t-cell__note">辅助信息</div></div><div class="t-swipe-cell__right"><div class="btn delete-btn">删除</div></div></div></div></div></div><div class="tdesign-mobile-demo-block tdesign-mobile-demo-block_subtitle" style="margin-top:10px"><div class="tdesign-mobile-demo-block__slot"><div class="t-swipe-cell"><div class="t-swipe-cell__wrapper" style="transform:none"><div class="t-cell"><div class="t-cell__left"></div><div class="t-cell__title"><div class="t-cell__title-text">左滑单操作</div><div class="t-cell__description">一段很长很长的内容文字</div></div><div class="t-cell__note">辅助信息</div></div><div class="t-swipe-cell__right"><div class="btn delete-btn">删除</div></div></div></div></div></div><div class="tdesign-mobile-demo-block tdesign-mobile-demo-block_subtitle" style="margin-top:10px"><div class="tdesign-mobile-demo-block__slot"><div class="t-swipe-cell"><div class="t-swipe-cell__wrapper" style="transform:none"><div class="t-cell"><div class="t-cell__left"></div><div class="t-cell__title"><div class="t-cell__title-text">左滑双操作</div></div><div class="t-cell__note">辅助信息</div></div><div class="t-swipe-cell__right"><div class="btn favor-btn">收藏</div><div class="btn edit-btn">编辑</div>
test/snap/csr.test.jsx > ssr snapshot test > ssr test src/swipe-cell/_example/index.tsx: test/snap/ssr.test.jsx#L31
Error: Snapshot `ssr snapshot test > ssr test src/swipe-cell/_example/index.tsx 1` mismatched Expected: ""<div class="swipe-cell-demo"><div class="tdesign-mobile-demo-header"><h1 class="tdesign-mobile-demo-header__title">SwipeCell 滑动单元格</h1><p class="tdesign-mobile-demo-header__summary">用来承载列表中的更多操作,通过左右滑动来展示,按钮的宽度固定高度根据列表高度而变化。</p></div><div class="tdesign-mobile-demo-block tdesign-mobile-demo-block_subtitle"><div class="tdesign-mobile-demo-block__header"><p class="tdesign-mobile-demo-block__summary tdesign-mobile-demo-block_subtitle">左滑单操作</p></div><div class="tdesign-mobile-demo-block__slot"><div class="t-swipe-cell"><div class="t-swipe-cell__wrapper" style="transform:none"><div class="t-cell t-cell--middle"><div class="t-cell__left"></div><div class="t-cell__title"><div class="t-cell__title-text">左滑单操作</div></div><div class="t-cell__note">辅助信息</div></div><div class="t-swipe-cell__right"><div class="btn delete-btn">删除</div></div></div></div></div></div><div class="tdesign-mobile-demo-block tdesign-mobile-demo-block_subtitle" style="margin-top:10px"><div class="tdesign-mobile-demo-block__slot"><div class="t-swipe-cell"><div class="t-swipe-cell__wrapper" style="transform:none"><div class="t-cell t-cell--middle"><div class="t-cell__left"></div><div class="t-cell__title"><div class="t-cell__title-text">左滑单操作</div><div class="t-cell__description">一段很长很长的内容文字</div></div><div class="t-cell__note">辅助信息</div></div><div class="t-swipe-cell__right"><div class="btn delete-btn">删除</div></div></div></div></div></div><div class="tdesign-mobile-demo-block tdesign-mobile-demo-block_subtitle" style="margin-top:10px"><div class="tdesign-mobile-demo-block__slot"><div class="t-swipe-cell"><div class="t-swipe-cell__wrapper" style="transform:none"><div class="t-cell t-cell--middle"><div class="t-cell__left"></div><div class="t-cell__title"><div class="t-cell__title-text">左滑双操作</div></div><div class="t-cell__note">辅助信息</div></div><div class="t-swipe-cell__right"><div class="btn favor-btn">收藏</div><div class="btn edit-btn">编辑</div></div></div></div></div></div><div class="tdesign-mobile-demo-block tdesign-mobile-demo-block_subtitle" style="margin-top:10px"><div class="tdesign-mobile-demo-block__slot"><div class="t-swipe-cell"><div class="t-swipe-cell__wrapper" style="transform:none"><div class="t-cell t-cell--middle"><div class="t-cell__left"></div><div class="t-cell__title"><div class="t-cell__title-text">左滑三操作</div></div><div class="t-cell__note">辅助信息</div></div><div class="t-swipe-cell__right"><div class="btn favor-btn">收藏</div><div class="btn edit-btn">编辑</div><div class="btn delete-btn">删除</div></div></div></div></div></div><div class="tdesign-mobile-demo-block tdesign-mobile-demo-block_subtitle"><div class="tdesign-mobile-demo-block__header"><p class="tdesign-mobile-demo-block__summary tdesign-mobile-demo-block_subtitle">右滑单操作</p></div><div class="tdesign-mobile-demo-block__slot"><div class="t-swipe-cell"><div class="t-swipe-cell__wrapper" style="transform:none"><div class="t-swipe-cell__left"><div class="btn favor-btn">选择</div></div><div class="t-cell t-cell--middle"><div class="t-cell__left"></div><div class="t-cell__title"><div class="t-cell__title-text">右滑单操作</div></div><div class="t-cell__note">辅助信息</div></div></div></div></div></div><div class="tdesign-mobile-demo-block tdesign-mobile-demo-block_subtitle"><div class="tdesign-mobile-demo-block__header"><p class="tdesign-mobile-demo-block__summary tdesign-mobile-demo-block_subtitle">左右滑操作</p></div><div class="tdesign-mobile-demo-block__slot"><div class="t-swipe-cell"><div class="t-swipe-cell__wrapper" style="transform:none"><div class="t-swipe-cell__left"><div class="btn favor-btn">删除</div></div><div class="t-cell t-cell--middle"><div class="t-cell__left"></div><div class="t-cell__title"><div class="t-cell__title-text">左右滑操作</div></div><div class="t-cell__note">辅助信息</div></div><div class="t-swipe-cell__right"><div class="btn favor-btn">收藏</div><div class="btn delete-btn">删除</div></div></div></div></div></div><div class="tdesign-mobile-demo-block tdesign-mobile-demo-block_subtitle">
test/snap/csr.test.jsx > ssr snapshot test > ssr test src/swipe-cell/_example/icon.tsx: test/snap/ssr.test.jsx#L31
Error: Snapshot `ssr snapshot test > ssr test src/swipe-cell/_example/icon.tsx 1` mismatched Expected: ""<div class="tdesign-mobile-demo-block tdesign-mobile-demo-block_subtitle"><div class="tdesign-mobile-demo-block__header"><p class="tdesign-mobile-demo-block__summary tdesign-mobile-demo-block_subtitle">带图标的滑动操作</p></div><div class="tdesign-mobile-demo-block__slot"><div class="t-swipe-cell"><div class="t-swipe-cell__wrapper" style="transform:none"><div class="t-cell t-cell--middle"><div class="t-cell__left"></div><div class="t-cell__title"><div class="t-cell__title-text">图标加文字横排</div></div><div class="t-cell__note">辅助信息</div></div><div class="t-swipe-cell__right"><div class="btn edit-btn" style="height:100%"><span class="t-swipe-cell__icon"><svg class="t-icon t-icon-edit"><use xlink:href="#t-icon-edit"></use></svg></span><span class="t-swipe-cell__text">编辑</span></div><div class="btn delete-btn" style="height:100%"><span class="t-swipe-cell__icon"><svg class="t-icon t-icon-delete"><use xlink:href="#t-icon-delete"></use></svg></span><span class="t-swipe-cell__text">删除</span></div></div></div></div></div></div><div class="tdesign-mobile-demo-block tdesign-mobile-demo-block_subtitle" style="margin-top:10px"><div class="tdesign-mobile-demo-block__slot"><div class="t-swipe-cell"><div class="t-swipe-cell__wrapper" style="transform:none"><div class="t-cell t-cell--middle"><div class="t-cell__left"></div><div class="t-cell__title"><div class="t-cell__title-text">纯图标</div></div><div class="t-cell__note">辅助信息</div></div><div class="t-swipe-cell__right"><div class="btn edit-btn" style="height:100%"><span class="t-swipe-cell__icon"><svg class="t-icon t-icon-edit"><use xlink:href="#t-icon-edit"></use></svg></span></div><div class="btn delete-btn" style="height:100%"><span class="t-swipe-cell__icon"><svg class="t-icon t-icon-delete"><use xlink:href="#t-icon-delete"></use></svg></span></div></div></div></div></div></div><div class="tdesign-mobile-demo-block tdesign-mobile-demo-block_subtitle" style="margin-top:10px"><div class="tdesign-mobile-demo-block__slot"><div class="t-swipe-cell"><div class="t-swipe-cell__wrapper" style="transform:none"><div class="t-cell t-cell--middle"><div class="t-cell__left"></div><div class="t-cell__title"><div class="t-cell__title-text">图标加文字竖排</div><div class="t-cell__description">一段很长很长的内容文字</div></div><div class="t-cell__note">辅助信息</div></div><div class="t-swipe-cell__right"><div class="btn edit-btn vertical" style="height:100%"><span class="t-swipe-cell__icon"><svg class="t-icon t-icon-edit"><use xlink:href="#t-icon-edit"></use></svg></span><span class="t-swipe-cell__text">编辑</span></div><div class="btn delete-btn vertical" style="height:100%"><span class="t-swipe-cell__icon"><svg class="t-icon t-icon-delete"><use xlink:href="#t-icon-delete"></use></svg></span><span class="t-swipe-cell__text">删除</span></div></div></div></div></div></div>"" Received: ""<div class="tdesign-mobile-demo-block tdesign-mobile-demo-block_subtitle"><div class="tdesign-mobile-demo-block__header"><p class="tdesign-mobile-demo-block__summary tdesign-mobile-demo-block_subtitle">带图标的滑动操作</p></div><div class="tdesign-mobile-demo-block__slot"><div class="t-swipe-cell"><div class="t-swipe-cell__wrapper" style="transform:none"><div class="t-cell"><div class="t-cell__left"></div><div class="t-cell__title"><div class="t-cell__title-text">图标加文字横排</div></div><div class="t-cell__note">辅助信息</div></div><div class="t-swipe-cell__right"><div class="btn edit-btn" style="height:100%"><span class="t-swipe-cell__icon"><svg class="t-icon t-icon-edit"><use xlink:href="#t-icon-edit"></use></svg></span><span class="t-swipe-cell__text">编辑</span></div><div class="btn delete-btn" style="height:100%"><span class="t-swipe-cell__icon"><svg class="t-icon t-icon-delete"><use xlink:href="#t-icon-delete"></use></svg></span><span class="t-swipe-cell__text">删除</span></div></div></div></div></div></div><div class="tdesign-mobile-demo-block tdesign-mobile-demo-block_subtitle" style="margin-top:10px"><div class="tdesign-mobile-demo-block__slot"><div class="t-swipe
call-test-build / check
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
call-test-build / test
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
call-test-build / site
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
call-test-build / build
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636

Artifacts

Produced during runtime
Name Size
_site
2 MB
pr
138 Bytes