From 69ac602bc21b445fb88783303d00bd65e4dc5ae2 Mon Sep 17 00:00:00 2001 From: chenjiahan Date: Fri, 31 Jul 2020 19:25:19 +0800 Subject: [PATCH] style(Tab): remove default border --- src/dropdown-menu/index.less | 2 +- .../test/__snapshots__/demo.spec.js.snap | 2 +- .../test/__snapshots__/demo.spec.js.snap | 2 +- src/list/test/__snapshots__/demo.spec.js.snap | 2 +- .../test/__snapshots__/demo.spec.js.snap | 2 +- src/tab/README.md | 2 +- src/tab/README.zh-CN.md | 4 +-- src/tab/test/__snapshots__/demo.spec.js.snap | 22 +++++++-------- src/tab/test/__snapshots__/index.spec.js.snap | 28 +++++++++---------- .../test/__snapshots__/insert.spec.js.snap | 4 +-- src/tabs/index.js | 5 +--- 11 files changed, 36 insertions(+), 39 deletions(-) diff --git a/src/dropdown-menu/index.less b/src/dropdown-menu/index.less index e293babc3..42cdfc9d5 100644 --- a/src/dropdown-menu/index.less +++ b/src/dropdown-menu/index.less @@ -8,7 +8,7 @@ display: flex; height: @dropdown-menu-height; background-color: @dropdown-menu-background-color; - box-shadow: 0 2px 12px fade(@gray-7, 8); + box-shadow: 0 2px 12px fade(@gray-7, 12); &--opened { z-index: @dropdown-item-z-index + 1; diff --git a/src/empty/test/__snapshots__/demo.spec.js.snap b/src/empty/test/__snapshots__/demo.spec.js.snap index a2ae408b9..438b1aa9b 100644 --- a/src/empty/test/__snapshots__/demo.spec.js.snap +++ b/src/empty/test/__snapshots__/demo.spec.js.snap @@ -10,7 +10,7 @@ exports[`renders demo correctly 1`] = `
-
+
diff --git a/src/index-bar/test/__snapshots__/demo.spec.js.snap b/src/index-bar/test/__snapshots__/demo.spec.js.snap index 376407349..a0fb3099c 100644 --- a/src/index-bar/test/__snapshots__/demo.spec.js.snap +++ b/src/index-bar/test/__snapshots__/demo.spec.js.snap @@ -3,7 +3,7 @@ exports[`renders demo correctly 1`] = `
-
+
diff --git a/src/list/test/__snapshots__/demo.spec.js.snap b/src/list/test/__snapshots__/demo.spec.js.snap index 6d37e2079..9d73814a2 100644 --- a/src/list/test/__snapshots__/demo.spec.js.snap +++ b/src/list/test/__snapshots__/demo.spec.js.snap @@ -3,7 +3,7 @@ exports[`renders demo correctly 1`] = `
-
+
diff --git a/src/pull-refresh/test/__snapshots__/demo.spec.js.snap b/src/pull-refresh/test/__snapshots__/demo.spec.js.snap index 50db4583c..e7f59b83c 100644 --- a/src/pull-refresh/test/__snapshots__/demo.spec.js.snap +++ b/src/pull-refresh/test/__snapshots__/demo.spec.js.snap @@ -3,7 +3,7 @@ exports[`renders demo correctly 1`] = `
-
+
diff --git a/src/tab/README.md b/src/tab/README.md index 5cafafa98..ca954b084 100644 --- a/src/tab/README.md +++ b/src/tab/README.md @@ -227,7 +227,7 @@ export default { | line-width | Width of tab line | _number \| string_ | Width of active tab | | line-height | Height of tab line | _number \| string_ | `3px` | | animated | Whether to change tabs with animation | _boolean_ | `false` | -| border | Whether to show border when `type="line"` | _boolean_ | `true` | +| border | Whether to show border when `type="line"` | _boolean_ | `false` | | ellipsis | Whether to ellipsis too long title | _boolean_ | `true` | | sticky | Whether to use sticky mode | _boolean_ | `false` | | swipeable | Whether to switch tabs with swipe gestrue in the content | _boolean_ | `false` | diff --git a/src/tab/README.zh-CN.md b/src/tab/README.zh-CN.md index 6ef2ae2ed..162c7c152 100644 --- a/src/tab/README.zh-CN.md +++ b/src/tab/README.zh-CN.md @@ -227,14 +227,14 @@ export default { | 参数 | 说明 | 类型 | 默认值 | | --- | --- | --- | --- | | v-model | 绑定当前选中标签的标识符 | _number \| string_ | `0` | -| type | 样式风格类型,可选值为`card` | _string_ | `line` | +| type | 样式风格类型,可选值为 `card` | _string_ | `line` | | color | 标签主题色 | _string_ | `#ee0a24` | | background | 标签栏背景色 | _string_ | `white` | | duration | 动画时间,单位秒 | _number \| string_ | `0.3` | | line-width | 底部条宽度,默认单位`px` | _number \| string_ | `auto` | | line-height | 底部条高度,默认单位`px` | _number \| string_ | `3px` | | animated | 是否开启切换标签内容时的转场动画 | _boolean_ | `false` | -| border | 是否显示标签栏外边框,仅在`type="line"`时有效 | _boolean_ | `true` | +| border | 是否显示标签栏外边框,仅在 `type="line"` 时有效 | _boolean_ | `false` | | ellipsis | 是否省略过长的标题文字 | _boolean_ | `true` | | sticky | 是否使用粘性定位布局 | _boolean_ | `false` | | swipeable | 是否开启手势滑动切换 | _boolean_ | `false` | diff --git a/src/tab/test/__snapshots__/demo.spec.js.snap b/src/tab/test/__snapshots__/demo.spec.js.snap index 09eacedc0..c18dfd672 100644 --- a/src/tab/test/__snapshots__/demo.spec.js.snap +++ b/src/tab/test/__snapshots__/demo.spec.js.snap @@ -4,7 +4,7 @@ exports[`renders demo correctly 1`] = `
-
+
@@ -31,7 +31,7 @@ exports[`renders demo correctly 1`] = `
-
+
@@ -52,7 +52,7 @@ exports[`renders demo correctly 1`] = `
-
+
@@ -95,7 +95,7 @@ exports[`renders demo correctly 1`] = `
-
+
@@ -140,7 +140,7 @@ exports[`renders demo correctly 1`] = `
-
+
@@ -161,7 +161,7 @@ exports[`renders demo correctly 1`] = `
-
+
@@ -190,7 +190,7 @@ exports[`renders demo correctly 1`] = `
-
+
@@ -209,7 +209,7 @@ exports[`renders demo correctly 1`] = `
-
+
@@ -246,7 +246,7 @@ exports[`renders demo correctly 1`] = `
-
+
@@ -275,7 +275,7 @@ exports[`renders demo correctly 1`] = `
-
+
@@ -320,7 +320,7 @@ exports[`renders demo correctly 1`] = `
-
+
diff --git a/src/tab/test/__snapshots__/index.spec.js.snap b/src/tab/test/__snapshots__/index.spec.js.snap index 4cc331f17..7efa84ec6 100644 --- a/src/tab/test/__snapshots__/index.spec.js.snap +++ b/src/tab/test/__snapshots__/index.spec.js.snap @@ -15,7 +15,7 @@ exports[`change tabs data 1`] = `
-
+
@@ -60,7 +60,7 @@ exports[`change tabs data 2`] = ` exports[`click to switch tab 1`] = `
-
+
@@ -82,7 +82,7 @@ exports[`click to switch tab 1`] = ` exports[`click to switch tab 2`] = `
-
+
@@ -102,7 +102,7 @@ exports[`click to switch tab 2`] = ` exports[`dot prop 1`] = `
-
+