diff --git a/src/swipe-cell/__test__/__snapshots__/demo.test.jsx.snap b/src/swipe-cell/__test__/__snapshots__/demo.test.jsx.snap index 26e206614..667c00d6f 100644 --- a/src/swipe-cell/__test__/__snapshots__/demo.test.jsx.snap +++ b/src/swipe-cell/__test__/__snapshots__/demo.test.jsx.snap @@ -2,125 +2,128 @@ exports[`SwipeCell > SwipeCell bindVue demo works fine 1`] = `
+ +

+ 通过expanded实现父子组件联动 +

+
- -

- 通过expanded实现父子组件联动 -

- + + +
-
- - -
-
+ +
+
+ + - 开关 - -
+ + + +
+ +
+
+
+ - - - -
- -
-
+
- - - -
-
-
-
- - -
-
- 父子组件联动 - - -
- +
+ 父子组件联动 + + +
+ +
-
+
+ + - - - -
+ + 删除 + + + + + +
-
+
`; exports[`SwipeCell > SwipeCell btnsVue demo works fine 1`] = `
+ +

+ 左右两侧都有菜单 +

+
@@ -217,13 +220,21 @@ exports[`SwipeCell > SwipeCell btnsVue demo works fine 1`] = `
+ `; exports[`SwipeCell > SwipeCell contentVue demo works fine 1`] = `
+ +

+ 通过直接传入内容或者使用 slot#content 来渲染 +

+
@@ -279,13 +290,21 @@ exports[`SwipeCell > SwipeCell contentVue demo works fine 1`] = `
+ `; exports[`SwipeCell > SwipeCell disabledVue demo works fine 1`] = `
+ +

+ 是否启用滑动功能 +

+
@@ -400,13 +419,21 @@ exports[`SwipeCell > SwipeCell disabledVue demo works fine 1`] = `
+ `; exports[`SwipeCell > SwipeCell eventVue demo works fine 1`] = `
+ +

+ 点击事件 +

+
@@ -507,13 +534,15 @@ exports[`SwipeCell > SwipeCell eventVue demo works fine 1`] = `
+ `; exports[`SwipeCell > SwipeCell leftCardVue demo works fine 1`] = `
+
@@ -683,6 +712,7 @@ exports[`SwipeCell > SwipeCell leftCardVue demo works fine 1`] = `
+ `; @@ -912,8 +942,9 @@ exports[`SwipeCell > SwipeCell leftMoreMenuVue demo works fine 1`] = ` exports[`SwipeCell > SwipeCell leftOneMenuVue demo works fine 1`] = `
+
@@ -1073,6 +1104,7 @@ exports[`SwipeCell > SwipeCell leftOneMenuVue demo works fine 1`] = `
+ `; @@ -1290,6 +1322,7 @@ exports[`SwipeCell > SwipeCell mobileVue demo works fine 1`] = ` > 用来承载列表中的更多操作,通过左右滑动来展示,按钮的宽度固定高度根据列表高度而变化。

+
@@ -1449,6 +1482,8 @@ exports[`SwipeCell > SwipeCell mobileVue demo works fine 1`] = `
+ +
@@ -1640,6 +1675,8 @@ exports[`SwipeCell > SwipeCell mobileVue demo works fine 1`] = `
+ +
@@ -1855,6 +1892,8 @@ exports[`SwipeCell > SwipeCell mobileVue demo works fine 1`] = `
+ +
@@ -2024,6 +2063,8 @@ exports[`SwipeCell > SwipeCell mobileVue demo works fine 1`] = `
+ +
@@ -2183,6 +2224,7 @@ exports[`SwipeCell > SwipeCell mobileVue demo works fine 1`] = `
+
@@ -2293,6 +2335,419 @@ exports[`SwipeCell > SwipeCell mobileVue demo works fine 1`] = `
+
+ +

+ 通过直接传入内容或者使用 slot#content 来渲染 +

+ +
+
+
+ + + +
+
+ +
+ 直接写组件 +
+ +
+
+ +
+ +
+ + + +
+
+
+ +
+
+ +

+ 是否启用滑动功能 +

+ +
+
+ + +
+
+ 开关 + + +
+
+ + + + + + +
+ +
+
+
+
+ + + +
+
+ +
+
+ + +
+
+ 可以滑动 + + +
+ + +
+ +
+
+ + + + + + +
+
+
+ +
+
+ +

+ 左右两侧都有菜单 +

+ +
+
+
+ + + + + +
+
+ +
+
+ + +
+
+ 左右都有菜单 + + +
+ + +
+ +
+
+ +
+ + +
+ + + +
+
+
+ +
+
+ +

+ 点击事件 +

+ +
+
+
+ + + + + +
+
+ +
+
+ + +
+
+ 左右都有内容 + + +
+
+ 辅助信息 +
+ +
+ +
+
+ + + + + + +
+
+
+ +
`; diff --git a/src/swipe-cell/demos/bind.vue b/src/swipe-cell/demos/bind.vue index 20fcf18b7..9a32205bf 100644 --- a/src/swipe-cell/demos/bind.vue +++ b/src/swipe-cell/demos/bind.vue @@ -1,46 +1,34 @@ - diff --git a/src/swipe-cell/demos/btns.vue b/src/swipe-cell/demos/btns.vue index 10b9fbaf0..a09412c3e 100644 --- a/src/swipe-cell/demos/btns.vue +++ b/src/swipe-cell/demos/btns.vue @@ -1,5 +1,5 @@ - diff --git a/src/swipe-cell/demos/content.vue b/src/swipe-cell/demos/content.vue index 6900672b7..33a5027ad 100644 --- a/src/swipe-cell/demos/content.vue +++ b/src/swipe-cell/demos/content.vue @@ -1,5 +1,5 @@ - + diff --git a/src/swipe-cell/demos/disabled.vue b/src/swipe-cell/demos/disabled.vue index 5c553ec71..277a51fcc 100644 --- a/src/swipe-cell/demos/disabled.vue +++ b/src/swipe-cell/demos/disabled.vue @@ -1,5 +1,5 @@ - + - diff --git a/src/swipe-cell/demos/event.vue b/src/swipe-cell/demos/event.vue index 9d5f6a72a..99d34ade3 100644 --- a/src/swipe-cell/demos/event.vue +++ b/src/swipe-cell/demos/event.vue @@ -1,44 +1,35 @@ - diff --git a/src/swipe-cell/demos/left-card.vue b/src/swipe-cell/demos/left-card.vue index 20feb10ba..f4d6d5b16 100644 --- a/src/swipe-cell/demos/left-card.vue +++ b/src/swipe-cell/demos/left-card.vue @@ -1,50 +1,40 @@ - diff --git a/src/swipe-cell/demos/mobile.vue b/src/swipe-cell/demos/mobile.vue index ec2f975b0..21aac4707 100644 --- a/src/swipe-cell/demos/mobile.vue +++ b/src/swipe-cell/demos/mobile.vue @@ -2,154 +2,28 @@

SwipeCell 滑动单元格

用来承载列表中的更多操作,通过左右滑动来展示,按钮的宽度固定高度根据列表高度而变化。

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + +
- diff --git a/src/swipe-cell/demos/right-menu.vue b/src/swipe-cell/demos/right-menu.vue index f05bb6ac2..f68a82097 100644 --- a/src/swipe-cell/demos/right-menu.vue +++ b/src/swipe-cell/demos/right-menu.vue @@ -17,18 +17,10 @@ -