From a234c97852f3864b20060a92d4389613406d2a4f Mon Sep 17 00:00:00 2001 From: neverland Date: Tue, 6 Nov 2018 14:49:38 +0800 Subject: [PATCH] [improvement] optimize wxml (#858) --- example/pages/radio/index.wxml | 19 ++++++++++--- packages/checkbox-group/index.wxml | 4 +-- packages/radio-group/index.wxml | 4 +-- packages/search/index.wxml | 45 +++++++++++++++--------------- packages/swipe-cell/index.wxml | 36 ++++++++++++------------ packages/tabbar-item/index.wxml | 8 ++---- 6 files changed, 59 insertions(+), 57 deletions(-) diff --git a/example/pages/radio/index.wxml b/example/pages/radio/index.wxml index 85875ed3..a0d508d2 100644 --- a/example/pages/radio/index.wxml +++ b/example/pages/radio/index.wxml @@ -1,12 +1,23 @@ - - + + 单选框 1 单选框 2 - - + + 单选框 1 单选框 2 diff --git a/packages/checkbox-group/index.wxml b/packages/checkbox-group/index.wxml index 775ee3ce..4fa864ce 100644 --- a/packages/checkbox-group/index.wxml +++ b/packages/checkbox-group/index.wxml @@ -1,3 +1 @@ - - - + diff --git a/packages/radio-group/index.wxml b/packages/radio-group/index.wxml index 775ee3ce..4fa864ce 100644 --- a/packages/radio-group/index.wxml +++ b/packages/radio-group/index.wxml @@ -1,3 +1 @@ - - - + diff --git a/packages/search/index.wxml b/packages/search/index.wxml index b6c17508..dd392e9d 100644 --- a/packages/search/index.wxml +++ b/packages/search/index.wxml @@ -2,29 +2,28 @@ class="van-search custom-class {{ showAction || useActionSlot ? 'van-search--show-action' : '' }}" style="background: {{ background }}" > - - - + 取消 diff --git a/packages/swipe-cell/index.wxml b/packages/swipe-cell/index.wxml index 45f05097..40fb06de 100644 --- a/packages/swipe-cell/index.wxml +++ b/packages/swipe-cell/index.wxml @@ -1,22 +1,22 @@ + - - - - - - - - + + + + + + + diff --git a/packages/tabbar-item/index.wxml b/packages/tabbar-item/index.wxml index 0d7b2764..5c0c2557 100644 --- a/packages/tabbar-item/index.wxml +++ b/packages/tabbar-item/index.wxml @@ -5,12 +5,8 @@ - - - - - - + + {{ info }}