mirror of
https://github.com/vbenjs/vue-vben-admin.git
synced 2025-08-28 05:39:34 +08:00
chore: format code by eslint #222
This commit is contained in:
@@ -20,7 +20,6 @@
|
||||
import { defineComponent, ref, watchEffect, unref, computed } from 'vue';
|
||||
|
||||
import { Dropdown, DropMenu } from '/@/components/Dropdown';
|
||||
import { GlobalOutlined } from '@ant-design/icons-vue';
|
||||
|
||||
import { useLocale } from '/@/locales/useLocale';
|
||||
import { useLocaleSetting } from '/@/hooks/setting/useLocaleSetting';
|
||||
@@ -33,7 +32,7 @@
|
||||
import Icon from '/@/components/Icon';
|
||||
export default defineComponent({
|
||||
name: 'AppLocalPicker',
|
||||
components: { GlobalOutlined, Dropdown, Icon },
|
||||
components: { Dropdown, Icon },
|
||||
props: {
|
||||
// Whether to display text
|
||||
showText: propTypes.bool.def(true),
|
||||
|
@@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<slot />
|
||||
<slot></slot>
|
||||
</template>
|
||||
<script lang="ts">
|
||||
import type { PropType } from 'vue';
|
||||
|
@@ -1,7 +1,9 @@
|
||||
<template>
|
||||
<div :class="prefixCls" v-if="getShowSearch" @click.stop="handleSearch">
|
||||
<Tooltip>
|
||||
<template #title> {{ t('common.searchText') }} </template>
|
||||
<template #title>
|
||||
{{ t('common.searchText') }}
|
||||
</template>
|
||||
<SearchOutlined />
|
||||
</Tooltip>
|
||||
|
||||
|
@@ -40,7 +40,9 @@
|
||||
<div :class="`${prefixCls}-list__item-icon`">
|
||||
<g-icon :icon="item.icon || 'mdi:form-select'" :size="20" />
|
||||
</div>
|
||||
<div :class="`${prefixCls}-list__item-text`">{{ item.name }}</div>
|
||||
<div :class="`${prefixCls}-list__item-text`">
|
||||
{{ item.name }}
|
||||
</div>
|
||||
<div :class="`${prefixCls}-list__item-enter`">
|
||||
<g-icon icon="ant-design:enter-outlined" :size="20" />
|
||||
</div>
|
||||
@@ -68,14 +70,14 @@
|
||||
export default defineComponent({
|
||||
name: 'AppSearchModal',
|
||||
components: { SearchOutlined, AppSearchFooter, [Input.name]: Input },
|
||||
emits: ['close'],
|
||||
directives: {
|
||||
clickOutside,
|
||||
},
|
||||
|
||||
props: {
|
||||
visible: Boolean,
|
||||
},
|
||||
directives: {
|
||||
clickOutside,
|
||||
},
|
||||
emits: ['close'],
|
||||
setup(_, { emit }) {
|
||||
const scrollWrap = ref<ElRef>(null);
|
||||
const { prefixCls } = useDesign('app-search-modal');
|
||||
|
Reference in New Issue
Block a user