chore: prefer named exports (#8315)

* chore: prefer named exports

* chore: fix import
This commit is contained in:
neverland
2021-03-09 15:39:26 +08:00
committed by GitHub
parent 5d5ff1da4a
commit 1381070a12
171 changed files with 272 additions and 263 deletions
+8 -8
View File
@@ -16,14 +16,14 @@ import { isMobile } from '../utils/validate/mobile';
import { useExpose } from '../composables/use-expose';
// Components
import Area, { AreaList, AreaColumnOption } from '../area';
import Cell from '../cell';
import Field from '../field';
import Popup from '../popup';
import Toast from '../toast';
import Button from '../button';
import Dialog from '../dialog';
import Switch from '../switch';
import { Area, AreaList, AreaColumnOption } from '../area';
import { Cell } from '../cell';
import { Field } from '../field';
import { Popup } from '../popup';
import { Toast } from '../toast';
import { Button } from '../button';
import { Dialog } from '../dialog';
import { Switch } from '../switch';
import AddressEditDetail, { AddressEditSearchItem } from './AddressEditDetail';
const [name, bem, t] = createNamespace('address-edit');
+2 -2
View File
@@ -5,8 +5,8 @@ import { ComponentInstance, createNamespace } from '../utils';
import { isAndroid } from '../utils/validate/system';
// Components
import Cell from '../cell';
import Field from '../field';
import { Cell } from '../cell';
import { Field } from '../field';
const [name, bem, t] = createNamespace('address-edit-detail');
const android = isAndroid();
+2 -2
View File
@@ -18,8 +18,8 @@
<script lang="ts">
import { ref } from 'vue';
import { useTranslate } from '@demo/use-translate';
import Toast from '../../toast';
import areaList from '../../area/demo/area';
import { Toast } from '../../toast';
import { areaList } from '../../area/demo/area';
const i18n = {
'zh-CN': {
+2 -2
View File
@@ -1,5 +1,5 @@
import AddressEdit from '..';
import areaList from '../../area/demo/area-simple';
import { AddressEdit } from '..';
import { areaList } from '../../area/demo/area-simple';
import { mount, later, trigger } from '../../../test';
const defaultAddressInfo = {