Skip to content

Commit

Permalink
chore: 格式化代码
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoxian521 committed Nov 10, 2023
1 parent cdcae38 commit 627cc0b
Show file tree
Hide file tree
Showing 93 changed files with 197 additions and 197 deletions.
2 changes: 1 addition & 1 deletion build/info.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { Plugin } from "vite";
import picocolors from "picocolors";
import dayjs, { Dayjs } from "dayjs";
import dayjs, { type Dayjs } from "dayjs";
import { getPackageSize } from "./utils";
import duration from "dayjs/plugin/duration";
dayjs.extend(duration);
Expand Down
2 changes: 1 addition & 1 deletion src/components/ReAnimateSelector/src/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,8 @@ function onMouseleave() {
placeholder="请选择动画"
clearable
filterable
@clear="onClear"
:filter-method="filterMethod"
@clear="onClear"
>
<template #empty>
<div class="w-[280px]">
Expand Down
2 changes: 1 addition & 1 deletion src/components/ReCountTo/src/normal/props.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { PropType } from "vue";
import type { PropType } from "vue";
import propTypes from "@/utils/propTypes";
export const countToProps = {
startVal: propTypes.number.def(0),
Expand Down
2 changes: 1 addition & 1 deletion src/components/ReCountTo/src/rebound/props.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { PropType } from "vue";
import type { PropType } from "vue";
import propTypes from "@/utils/propTypes";
export const reboundProps = {
delay: propTypes.number.def(1),
Expand Down
2 changes: 1 addition & 1 deletion src/components/ReCropper/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {
ref,
unref,
computed,
PropType,
type PropType,
onMounted,
onUnmounted,
defineComponent
Expand Down
4 changes: 2 additions & 2 deletions src/components/ReDialog/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -84,11 +84,11 @@ function handleClose(

<template>
<el-dialog
class="pure-dialog"
v-for="(options, index) in dialogStore"
:key="index"
v-bind="options"
v-model="options.visible"
class="pure-dialog"
:fullscreen="fullscreen ? true : options?.fullscreen ? true : false"
@close="handleClose(options, index)"
@opened="eventsCallBack('open', options, index)"
Expand Down Expand Up @@ -123,8 +123,8 @@ function handleClose(
</i>
</div>
<component
v-else
:is="options?.headerRenderer({ close, titleId, titleClass })"
v-else
/>
</template>
<component
Expand Down
2 changes: 1 addition & 1 deletion src/components/ReFlicker/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import "./index.css";
import { h, defineComponent, Component } from "vue";
import { h, defineComponent, type Component } from "vue";

export interface attrsType {
width?: string;
Expand Down
2 changes: 1 addition & 1 deletion src/components/ReFlowChart/src/NodePanel.vue
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@ const nodeDragNode = item => {
<!-- 左侧bpmn元素选择器 -->
<div class="node-panel">
<div
class="node-item dark:text-bg_color"
v-for="item in props.nodeList"
:key="item.text"
class="node-item dark:text-bg_color"
@mousedown="nodeDragNode(item)"
>
<div class="node-item-icon" :class="item.class">
Expand Down
2 changes: 1 addition & 1 deletion src/components/ReIcon/src/Select.vue
Original file line number Diff line number Diff line change
Expand Up @@ -151,8 +151,8 @@ watch(
</template>

<el-input
class="px-2 pt-2"
v-model="filterValue"
class="px-2 pt-2"
placeholder="搜索图标"
clearable
/>
Expand Down
4 changes: 2 additions & 2 deletions src/components/ReIcon/src/hooks.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { iconType } from "./types";
import { h, defineComponent, Component } from "vue";
import type { iconType } from "./types";
import { h, defineComponent, type Component } from "vue";
import { IconifyIconOnline, IconifyIconOffline, FontIcon } from "../index";

/**
Expand Down
4 changes: 2 additions & 2 deletions src/components/ReQrcode/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ import {
watch,
nextTick,
computed,
PropType,
type PropType,
defineComponent
} from "vue";
import "./index.scss";
import propTypes from "@/utils/propTypes";
import { isString, cloneDeep } from "@pureadmin/utils";
import QRCode, { QRCodeRenderersOptions } from "qrcode";
import QRCode, { type QRCodeRenderersOptions } from "qrcode";
import RefreshRight from "@iconify-icons/ep/refresh-right";

interface QrcodeLogo {
Expand Down
6 changes: 3 additions & 3 deletions src/components/ReSeamlessScroll/src/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -498,16 +498,16 @@ defineExpose({
<template>
<div :ref="'wrap' + props.classOption['key']">
<div
:style="leftSwitch"
v-if="navigation"
:style="leftSwitch"
:class="leftSwitchClass"
@click="leftSwitchClick"
>
<slot name="left-switch" />
</div>
<div
:style="rightSwitch"
v-if="navigation"
:style="rightSwitch"
:class="rightSwitchClass"
@click="rightSwitchClick"
>
Expand All @@ -526,7 +526,7 @@ defineExpose({
<div :ref="'slotList' + props.classOption['key']" :style="float">
<slot />
</div>
<div v-html="copyHtml" :style="float" />
<div :style="float" v-html="copyHtml" />
</div>
</div>
</template>
2 changes: 1 addition & 1 deletion src/components/ReSplitPane/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { defineComponent, ref, unref, computed, PropType } from "vue";
import { defineComponent, ref, unref, computed, type PropType } from "vue";
import resizer from "./resizer";
import "./index.css";

Expand Down
2 changes: 1 addition & 1 deletion src/config/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { App } from "vue";
import type { App } from "vue";
import axios from "axios";

let config: object = {};
Expand Down
16 changes: 8 additions & 8 deletions src/layout/components/appMain.vue
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,12 @@ const getSectionStyle = computed(() => {
});
const transitionMain = defineComponent({
props: {
route: {
type: undefined,
required: true
}
},
render() {
const transitionName =
transitions.value(this.route)?.name || "fade-transform";
Expand All @@ -72,12 +78,6 @@ const transitionMain = defineComponent({
default: () => [this.$slots.default()]
}
);
},
props: {
route: {
type: undefined,
required: true
}
}
});
</script>
Expand Down Expand Up @@ -118,8 +118,8 @@ const transitionMain = defineComponent({
/>
</keep-alive>
<component
v-else
:is="Component"
v-else
:key="route.fullPath"
class="main-content"
/>
Expand All @@ -140,8 +140,8 @@ const transitionMain = defineComponent({
/>
</keep-alive>
<component
v-else
:is="Component"
v-else
:key="route.fullPath"
class="main-content"
/>
Expand Down
4 changes: 2 additions & 2 deletions src/layout/components/navbar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ const { t, locale, translationCh, translationEn } = useTranslationLang();
@click="translationCh"
>
<IconifyIconOffline
class="check-zh"
v-show="locale === 'zh'"
class="check-zh"
:icon="Check"
/>
简体中文
Expand All @@ -73,7 +73,7 @@ const { t, locale, translationCh, translationEn } = useTranslationLang();
:class="['dark:!text-white', getDropdownItemClass(locale, 'en')]"
@click="translationEn"
>
<span class="check-en" v-show="locale === 'en'">
<span v-show="locale === 'en'" class="check-en">
<IconifyIconOffline :icon="Check" />
</span>
English
Expand Down
2 changes: 1 addition & 1 deletion src/layout/components/notice/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ notices.value.map(v => (noticesNum.value += v.list.length));
<template #dropdown>
<el-dropdown-menu>
<el-tabs
:stretch="true"
v-model="activeKey"
:stretch="true"
class="dropdown-tabs"
:style="{ width: notices.length === 0 ? '200px' : '330px' }"
>
Expand Down
2 changes: 1 addition & 1 deletion src/layout/components/notice/noticeList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ const props = defineProps({
<div v-if="props.list.length">
<NoticeItem
v-for="(item, index) in props.list"
:noticeItem="item"
:key="index"
:noticeItem="item"
/>
</div>
<el-empty v-else description="暂无数据" />
Expand Down
4 changes: 2 additions & 2 deletions src/layout/components/search/components/SearchModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -146,9 +146,9 @@ onKeyStroke("ArrowDown", handleDown);

<template>
<el-dialog
v-model="show"
top="5vh"
class="pure-search-dialog"
v-model="show"
:show-close="false"
:width="device === 'mobile' ? '80vw' : '40vw'"
:before-close="handleClose"
Expand All @@ -161,8 +161,8 @@ onKeyStroke("ArrowDown", handleDown);
>
<el-input
ref="inputRef"
size="large"
v-model="keyword"
size="large"
clearable
placeholder="搜索菜单(中文模式下支持拼音搜索)"
@input="handleSearch"
Expand Down
8 changes: 4 additions & 4 deletions src/layout/components/setting/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -254,8 +254,8 @@ onBeforeMount(() => {
popper-class="pure-tooltip"
>
<li
:class="layoutTheme.layout === 'vertical' ? 'is-select' : ''"
ref="verticalRef"
:class="layoutTheme.layout === 'vertical' ? 'is-select' : ''"
@click="setLayoutModel('vertical')"
>
<div />
Expand All @@ -272,8 +272,8 @@ onBeforeMount(() => {
popper-class="pure-tooltip"
>
<li
:class="layoutTheme.layout === 'horizontal' ? 'is-select' : ''"
ref="horizontalRef"
:class="layoutTheme.layout === 'horizontal' ? 'is-select' : ''"
@click="setLayoutModel('horizontal')"
>
<div />
Expand All @@ -290,8 +290,8 @@ onBeforeMount(() => {
popper-class="pure-tooltip"
>
<li
:class="layoutTheme.layout === 'mix' ? 'is-select' : ''"
ref="mixRef"
:class="layoutTheme.layout === 'mix' ? 'is-select' : ''"
@click="setLayoutModel('mix')"
>
<div />
Expand All @@ -304,8 +304,8 @@ onBeforeMount(() => {
<ul class="theme-color">
<li
v-for="(item, index) in themeColors"
:key="index"
v-show="showThemeColors(item.themeColor)"
:key="index"
:style="getThemeColorStyle(item.color)"
@click="setLayoutThemeColor(item.themeColor)"
>
Expand Down
2 changes: 1 addition & 1 deletion src/layout/components/sidebar/breadCrumb.vue
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +108,9 @@ watch(
<el-breadcrumb class="!leading-[50px] select-none" separator="/">
<transition-group name="breadcrumb">
<el-breadcrumb-item
class="!inline !items-stretch"
v-for="item in levelList"
:key="item.path"
class="!inline !items-stretch"
>
<a @click.prevent="handleLink(item)">
{{ transformI18n(item.meta.title) }}
Expand Down
6 changes: 3 additions & 3 deletions src/layout/components/sidebar/horizontal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ nextTick(() => {
<span>{{ title }}</span>
</div>
<el-menu
router
ref="menuRef"
router
mode="horizontal"
class="horizontal-header-menu"
:default-active="defaultActive"
Expand Down Expand Up @@ -78,7 +78,7 @@ nextTick(() => {
:class="['dark:!text-white', getDropdownItemClass(locale, 'zh')]"
@click="translationCh"
>
<span class="check-zh" v-show="locale === 'zh'">
<span v-show="locale === 'zh'" class="check-zh">
<IconifyIconOffline :icon="Check" />
</span>
简体中文
Expand All @@ -88,7 +88,7 @@ nextTick(() => {
:class="['dark:!text-white', getDropdownItemClass(locale, 'en')]"
@click="translationEn"
>
<span class="check-en" v-show="locale === 'en'">
<span v-show="locale === 'en'" class="check-en">
<IconifyIconOffline :icon="Check" />
</span>
English
Expand Down
8 changes: 4 additions & 4 deletions src/layout/components/sidebar/mixNav.vue
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,12 @@ watch(
<template>
<div
v-if="device !== 'mobile'"
class="horizontal-header"
v-loading="usePermissionStoreHook().wholeMenus.length === 0"
class="horizontal-header"
>
<el-menu
router
ref="menuRef"
router
mode="horizontal"
class="horizontal-header-menu"
:default-active="defaultActive"
Expand Down Expand Up @@ -111,7 +111,7 @@ watch(
:class="['dark:!text-white', getDropdownItemClass(locale, 'zh')]"
@click="translationCh"
>
<span class="check-zh" v-show="locale === 'zh'">
<span v-show="locale === 'zh'" class="check-zh">
<IconifyIconOffline :icon="Check" />
</span>
简体中文
Expand All @@ -121,7 +121,7 @@ watch(
:class="['dark:!text-white', getDropdownItemClass(locale, 'en')]"
@click="translationEn"
>
<span class="check-en" v-show="locale === 'en'">
<span v-show="locale === 'en'" class="check-en">
<IconifyIconOffline :icon="Check" />
</span>
English
Expand Down
2 changes: 1 addition & 1 deletion src/layout/components/sidebar/sidebarItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -275,14 +275,14 @@ function resolvePath(routePath) {
{{ transformI18n(props.item.meta.title) }}
</span>
<div
:style="getSubMenuDivStyle(props.item)"
v-if="
!(
isCollapse &&
toRaw(props.item.meta.icon) &&
props.item.parentId === null
)
"
:style="getSubMenuDivStyle(props.item)"
>
<el-tooltip
v-if="layout !== 'horizontal'"
Expand Down
Loading

0 comments on commit 627cc0b

Please sign in to comment.