chore: prefer named exports (#8315)
* chore: prefer named exports * chore: fix import
This commit is contained in:
@@ -2,8 +2,8 @@ import { PropType, CSSProperties, defineComponent } from 'vue';
|
||||
import { createNamespace } from '../utils';
|
||||
|
||||
// Components
|
||||
import Icon from '../icon';
|
||||
import Button, { ButtonType } from '../button';
|
||||
import { Icon } from '../icon';
|
||||
import { Button, ButtonType } from '../button';
|
||||
|
||||
const [name, bem, t] = createNamespace('submit-bar');
|
||||
|
||||
|
||||
@@ -43,7 +43,7 @@
|
||||
<script lang="ts">
|
||||
import { ref } from 'vue';
|
||||
import { useTranslate } from '@demo/use-translate';
|
||||
import Toast from '../../toast';
|
||||
import { Toast } from '../../toast';
|
||||
|
||||
const i18n = {
|
||||
'zh-CN': {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import SubmitBar from '..';
|
||||
import { SubmitBar } from '..';
|
||||
import { mount } from '../../../test';
|
||||
|
||||
test('should emit submit event when submit button is clicked', () => {
|
||||
|
||||
Reference in New Issue
Block a user