diff --git a/packages/swipe-cell/demo/index.vue b/packages/swipe-cell/demo/index.vue index c15815ee6..54b9eb0ca 100644 --- a/packages/swipe-cell/demo/index.vue +++ b/packages/swipe-cell/demo/index.vue @@ -4,34 +4,52 @@ {{ $t('tips') }} - {{ $t('button1') }} - - - - {{ $t('button2') }} + + + - {{ $t('button1') }} - - - - {{ $t('button2') }} + + + @@ -85,19 +103,5 @@ export default { .demo-swipe-cell { user-select: none; - - .van-swipe-cell { - &__left, - &__right { - display: inline-block; - width: 65px; - height: 44px; - color: @white; - font-size: 15px; - line-height: 44px; - text-align: center; - background-color: @red; - } - } } diff --git a/packages/swipe-cell/en-US.md b/packages/swipe-cell/en-US.md index 8289039f4..f425d1804 100644 --- a/packages/swipe-cell/en-US.md +++ b/packages/swipe-cell/en-US.md @@ -14,11 +14,23 @@ Vue.use(SwipeCell); ```html - Select - - - - Delete + + + ``` @@ -26,11 +38,23 @@ Vue.use(SwipeCell); ```html - Select - - - - Delete + + + ``` diff --git a/packages/swipe-cell/test/__snapshots__/demo.spec.js.snap b/packages/swipe-cell/test/__snapshots__/demo.spec.js.snap index 5bdc4f365..3c460dd17 100644 --- a/packages/swipe-cell/test/__snapshots__/demo.spec.js.snap +++ b/packages/swipe-cell/test/__snapshots__/demo.spec.js.snap @@ -11,28 +11,24 @@ exports[`renders demo correctly 1`] = `
-
选择
-
-
-
单元格
-
内容
-
+
+
+
单元格
+
内容
-
删除
+
-
选择
-
-
-
单元格
-
内容
-
+
+
+
单元格
+
内容
-
删除
+
diff --git a/packages/swipe-cell/zh-CN.md b/packages/swipe-cell/zh-CN.md index 8869c8310..7a4e483b7 100644 --- a/packages/swipe-cell/zh-CN.md +++ b/packages/swipe-cell/zh-CN.md @@ -13,24 +13,48 @@ Vue.use(SwipeCell); ### 基础用法 ```html - - 选择 - - - - 删除 + + + + ``` ### 异步关闭 ```html - - 选择 - - - - 删除 + + + + ```