refactor: use named exports

This commit is contained in:
Justineo 2021-09-16 19:23:58 +08:00
parent 8099c9efcf
commit 573407b07a
No known key found for this signature in database
GPG Key ID: B73F0979CF18A0EA
10 changed files with 10 additions and 20 deletions

View File

@ -31,9 +31,8 @@
</template>
<script>
import { AlertBox, Button, Icon } from 'veui'
import { AlertBox, Button, Icon, toast } from 'veui'
import 'veui-theme-dls-icons/info-circle'
import toast from 'veui/managers/toast'
export default {
components: {

View File

@ -15,8 +15,7 @@
</template>
<script>
import { ConfirmBox, Button } from 'veui'
import toast from 'veui/managers/toast'
import { ConfirmBox, Button, toast } from 'veui'
export default {
components: {

View File

@ -49,8 +49,7 @@
</template>
<script>
import { Dialog, Button } from 'veui'
import toast from 'veui/managers/toast'
import { Dialog, Button, toast } from 'veui'
function fakeRequest () {
return new Promise(resolve =>

View File

@ -13,8 +13,7 @@
</template>
<script>
import outside from 'veui/directives/outside'
import toast from 'veui/managers/toast'
import { outside, toast } from 'veui'
export default {
directives: {

View File

@ -22,8 +22,7 @@
</template>
<script>
import outside from 'veui/directives/outside'
import toast from 'veui/managers/toast'
import { outside, toast } from 'veui'
export default {
directives: {

View File

@ -10,8 +10,7 @@
</template>
<script>
import outside from 'veui/directives/outside'
import toast from 'veui/managers/toast'
import { outside, toast } from 'veui'
export default {
directives: {

View File

@ -48,8 +48,7 @@
</template>
<script>
import { Dropdown, OptionGroup, Option } from 'veui'
import toast from 'veui/managers/toast'
import { Dropdown, OptionGroup, Option, toast } from 'veui'
export default {
components: {

View File

@ -27,8 +27,7 @@
</template>
<script>
import { Dropdown } from 'veui'
import toast from 'veui/managers/toast'
import { Dropdown, toast } from 'veui'
export default {
components: {

View File

@ -16,8 +16,7 @@
</template>
<script>
import { PromptBox, Button } from 'veui'
import toast from 'veui/managers/toast'
import { PromptBox, Button, toast } from 'veui'
export default {
components: {

View File

@ -19,8 +19,7 @@
</template>
<script>
import { SearchBox } from 'veui'
import toast from 'veui/managers/toast'
import { SearchBox, toast } from 'veui'
export default {
components: {