chore: prefer named exports (#8315)
* chore: prefer named exports * chore: fix import
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import { defineComponent } from 'vue';
|
||||
import { createNamespace, addUnit, UnknownProp } from '../utils';
|
||||
import { useLinkField } from '../composables/use-link-field';
|
||||
import Loading from '../loading';
|
||||
import { Loading } from '../loading';
|
||||
|
||||
const [name, bem] = createNamespace('switch');
|
||||
|
||||
|
||||
@@ -39,7 +39,7 @@
|
||||
<script lang="ts">
|
||||
import { reactive, toRefs } from 'vue';
|
||||
import { useTranslate } from '@demo/use-translate';
|
||||
import Dialog from '../../dialog';
|
||||
import { Dialog } from '../../dialog';
|
||||
|
||||
const i18n = {
|
||||
'zh-CN': {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import Switch from '..';
|
||||
import { Switch } from '..';
|
||||
import { mount } from '../../../test';
|
||||
|
||||
test('should emit update:modelValue event when click the switch button', async () => {
|
||||
|
||||
Reference in New Issue
Block a user