From 3208d1bb3d4991cccaf75a0608fd657594282222 Mon Sep 17 00:00:00 2001 From: neverland Date: Fri, 8 Dec 2017 14:56:50 +0800 Subject: [PATCH] [Improvement] simplify inner tag name (#395) --- packages/actionsheet/index.vue | 8 ++--- packages/address-edit/Detail.vue | 24 ++++++------- packages/address-edit/index.vue | 46 ++++++++++++------------ packages/address-list/index.vue | 30 ++++++++-------- packages/area/index.vue | 4 +-- packages/button/index.vue | 4 +-- packages/cell/index.vue | 6 ++-- packages/checkbox/index.vue | 4 +-- packages/contact-card/index.vue | 8 ++--- packages/contact-edit/index.vue | 20 +++++------ packages/contact-list/index.vue | 30 ++++++++-------- packages/coupon-cell/index.vue | 10 +++--- packages/coupon-list/Item.vue | 4 +-- packages/coupon-list/index.vue | 26 +++++++------- packages/datetime-picker/index.vue | 4 +-- packages/dialog/dialog.vue | 4 +-- packages/field/index.vue | 10 +++--- packages/goods-action-big-btn/index.vue | 4 +-- packages/goods-action-mini-btn/index.vue | 4 +-- packages/image-preview/image-preview.vue | 12 +++---- packages/nav-bar/index.vue | 4 +-- packages/notice-bar/index.vue | 4 +-- packages/picker/index.vue | 6 ++-- packages/pull-refresh/index.vue | 4 +-- packages/radio/index.vue | 4 +-- packages/search/index.vue | 6 ++-- packages/sku/components/SkuActions.vue | 4 +-- packages/sku/components/SkuMessages.vue | 16 ++++----- packages/sku/components/SkuStepper.vue | 6 ++-- packages/sku/containers/SkuContainer.vue | 42 +++++++++++----------- packages/steps/index.vue | 4 +-- packages/submit-bar/index.vue | 4 +-- packages/switch-cell/index.vue | 10 +++--- packages/switch/index.vue | 4 +-- packages/tabbar-item/index.vue | 4 +-- packages/toast/toast.vue | 8 ++--- packages/tree-select/index.vue | 6 ++-- 37 files changed, 199 insertions(+), 199 deletions(-) diff --git a/packages/actionsheet/index.vue b/packages/actionsheet/index.vue index 42cfa4ed8..eebeb5aca 100644 --- a/packages/actionsheet/index.vue +++ b/packages/actionsheet/index.vue @@ -3,7 +3,7 @@
- +
  • {{ item.name }} {{ item.subname }} - +
-
{{ $t('complete') }} - +
-
+ - - + - +

{{ express.name }}

{{ express.address }}

-
-
+ +
@@ -50,10 +50,10 @@ export default { mixins: [i18n], components: { - [Field.name]: Field, - [Icon.name]: Icon, - [Cell.name]: Cell, - [CellGroup.name]: CellGroup + Field, + Icon, + Cell, + CellGroup }, props: { diff --git a/packages/address-edit/index.vue b/packages/address-edit/index.vue index 6b2aeeef9..f81b85f8e 100644 --- a/packages/address-edit/index.vue +++ b/packages/address-edit/index.vue @@ -1,7 +1,7 @@ @@ -73,12 +73,12 @@ import Field from '../field'; import Cell from '../cell'; import CellGroup from '../cell-group'; -import Button from '../button'; +import VanButton from '../button'; import Popup from '../popup'; import Toast from '../toast'; import Dialog from '../dialog'; -import Area from '../area'; -import Detail from './Detail'; +import VanArea from '../area'; +import AddressEditDetail from './Detail'; import SwitchCell from '../switch-cell'; import validateMobile from '../utils/validate/mobile'; import { i18n } from '../locale'; @@ -89,14 +89,14 @@ export default { mixins: [i18n], components: { - [Field.name]: Field, - [Cell.name]: Cell, - [CellGroup.name]: CellGroup, - [SwitchCell.name]: SwitchCell, - [Button.name]: Button, - [Popup.name]: Popup, - [Area.name]: Area, - [Detail.name]: Detail + Field, + Cell, + CellGroup, + SwitchCell, + VanButton, + Popup, + VanArea, + AddressEditDetail }, props: { diff --git a/packages/address-list/index.vue b/packages/address-list/index.vue index 7ce04b9b1..02a44861f 100644 --- a/packages/address-list/index.vue +++ b/packages/address-list/index.vue @@ -1,17 +1,17 @@ @@ -26,11 +26,11 @@ export default { name: 'van-address-list', components: { - [Icon.name]: Icon, - [Cell.name]: Cell, - [Radio.name]: Radio, - [CellGroup.name]: CellGroup, - [RadioGroup.name]: RadioGroup + Icon, + Cell, + Radio, + CellGroup, + RadioGroup }, props: { diff --git a/packages/area/index.vue b/packages/area/index.vue index 121edc00d..a9f0c1097 100644 --- a/packages/area/index.vue +++ b/packages/area/index.vue @@ -1,6 +1,6 @@ @@ -27,7 +27,7 @@ export default { mixins: [i18n], components: { - [Icon.name]: Icon + Icon }, props: { diff --git a/packages/contact-edit/index.vue b/packages/contact-edit/index.vue index 7f20df22b..ecbf90ac7 100644 --- a/packages/contact-edit/index.vue +++ b/packages/contact-edit/index.vue @@ -1,23 +1,23 @@