🔨 优化导包.

This commit is contained in:
lijiahangmax
2025-03-16 00:30:43 +08:00
parent 0db732fc19
commit cdce5a0dc1
53 changed files with 63 additions and 64 deletions

View File

@@ -1,4 +1,4 @@
import type { TableColumnData } from '@arco-design/web-vue/es/table/interface';
import type { TableColumnData } from '@arco-design/web-vue';
const columns = [
{

View File

@@ -1,4 +1,4 @@
import type { TableColumnData } from '@arco-design/web-vue/es/table/interface';
import type { TableColumnData } from '@arco-design/web-vue';
import { dateFormat } from '@/utils';
const columns = [

View File

@@ -1,4 +1,4 @@
import type { TableColumnData } from '@arco-design/web-vue/es/table/interface';
import type { TableColumnData } from '@arco-design/web-vue';
import { dateFormat } from '@/utils';
const columns = [

View File

@@ -47,7 +47,7 @@
</script>
<script lang="ts" setup>
import type { TableData } from '@arco-design/web-vue/es/table/interface';
import type { TableData } from '@arco-design/web-vue';
import type { AssetAuthorizedDataQueryRequest, AssetDataGrantRequest } from '@/api/asset/asset-data-grant';
import type { HostIdentityQueryResponse } from '@/api/asset/host-identity';
import type { HostKeyQueryResponse } from '@/api/asset/host-key';

View File

@@ -27,7 +27,7 @@
</script>
<script lang="ts" setup>
import type { TableData } from '@arco-design/web-vue/es/table/interface';
import type { TableData } from '@arco-design/web-vue';
import type { AssetAuthorizedDataQueryRequest, AssetDataGrantRequest } from '@/api/asset/asset-data-grant';
import type { HostKeyQueryResponse } from '@/api/asset/host-key';
import { ref, onMounted, onActivated } from 'vue';

View File

@@ -1,4 +1,4 @@
import type { TableColumnData } from '@arco-design/web-vue/es/table/interface';
import type { TableColumnData } from '@arco-design/web-vue';
import { dateFormat } from '@/utils';
// 主机列

View File

@@ -1,4 +1,4 @@
import type { TableColumnData } from '@arco-design/web-vue/es/table/interface';
import type { TableColumnData } from '@arco-design/web-vue';
import { dateFormat } from '@/utils';
const columns = [

View File

@@ -1,4 +1,4 @@
import type { TableColumnData } from '@arco-design/web-vue/es/table/interface';
import type { TableColumnData } from '@arco-design/web-vue';
import { dateFormat } from '@/utils';
const columns = [

View File

@@ -1,4 +1,4 @@
import type { TableColumnData } from '@arco-design/web-vue/es/table/interface';
import type { TableColumnData } from '@arco-design/web-vue';
const columns = [
{

View File

@@ -1,9 +1,9 @@
<template>
<div class="login-form-wrapper">
<!-- 标题 -->
<div class="login-form-title usn">{{ $t('login.form.title') }}</div>
<div class="login-form-title usn">{{ t('login.form.title') }}</div>
<!-- 子标题 -->
<div class="login-form-sub-title">{{ $t('login.form.sub.title') }}</div>
<div class="login-form-sub-title">{{ t('login.form.sub.title') }}</div>
<!-- 错误信息 -->
<div class="login-form-error-msg">{{ errorMessage }}</div>
<!-- 登录表单 -->
@@ -13,22 +13,22 @@
layout="vertical"
@submit="handleSubmit">
<a-form-item field="username"
:rules="[{ required: true, message: $t('login.form.userName.errMsg') }]"
:rules="[{ required: true, message: t('login.form.userName.errMsg') }]"
:validate-trigger="['change', 'blur']"
hide-label>
<a-input v-model="userInfo.username"
:placeholder="$t('login.form.userName.placeholder')">
:placeholder="t('login.form.userName.placeholder')">
<template #prefix>
<icon-user />
</template>
</a-input>
</a-form-item>
<a-form-item field="password"
:rules="[{ required: true, message: $t('login.form.password.errMsg') }]"
:rules="[{ required: true, message: t('login.form.password.errMsg') }]"
:validate-trigger="['change', 'blur']"
hide-label>
<a-input-password v-model="userInfo.password"
:placeholder="$t('login.form.password.placeholder')"
:placeholder="t('login.form.password.placeholder')"
allow-clear>
<template #prefix>
<icon-lock />
@@ -38,7 +38,7 @@
<!-- 登录按钮 -->
<a-space :size="16" direction="vertical">
<a-button type="primary" html-type="submit" long :loading="loading">
{{ $t('login.form.login') }}
{{ t('login.form.login') }}
</a-button>
</a-space>
</a-form>
@@ -46,11 +46,11 @@
</template>
<script lang="ts" setup>
import type { ValidatedError } from '@arco-design/web-vue/es/form/interface';
import type { ValidatedError } from '@arco-design/web-vue';
import { Message } from '@arco-design/web-vue';
import type { LoginRequest } from '@/api/user/auth';
import { reactive, ref } from 'vue';
import { useRouter } from 'vue-router';
import { Message } from '@arco-design/web-vue';
import { useI18n } from 'vue-i18n';
import { useUserStore } from '@/store';
import useLoading from '@/hooks/loading';

View File

@@ -90,11 +90,11 @@
width: 32px;
height: 32px;
margin-bottom: 4px;
color: rgb(var(--dark-gray-1));
color: var(--color-text-2);
line-height: 32px;
font-size: 16px;
text-align: center;
background-color: rgb(var(--gray-1));
background: var(--color-fill-2);
border-radius: 4px;
}

View File

@@ -1,4 +1,4 @@
import type { TableColumnData } from '@arco-design/web-vue/es/table/interface';
import type { TableColumnData } from '@arco-design/web-vue';
import { dateFormat } from '@/utils';
// 终端日志列

View File

@@ -206,7 +206,7 @@
</script>
<script lang="ts" setup>
import type { TableData } from '@arco-design/web-vue/es/table/interface';
import type { TableData } from '@arco-design/web-vue';
import type { ExecLogQueryResponse, ExecLogQueryRequest } from '@/api/exec/exec-log';
import { reactive, ref, onMounted, onUnmounted } from 'vue';
import {

View File

@@ -1,4 +1,4 @@
import type { TableColumnData } from '@arco-design/web-vue/es/table/interface';
import type { TableColumnData } from '@arco-design/web-vue';
import { isNumber } from '@/utils/is';
// 表格列

View File

@@ -217,7 +217,7 @@
</script>
<script lang="ts" setup>
import type { TableData } from '@arco-design/web-vue/es/table/interface';
import type { TableData } from '@arco-design/web-vue';
import type { ExecLogQueryRequest, ExecLogQueryResponse } from '@/api/exec/exec-log';
import { reactive, ref, onMounted, onUnmounted } from 'vue';
import {

View File

@@ -1,4 +1,4 @@
import type { TableColumnData } from '@arco-design/web-vue/es/table/interface';
import type { TableColumnData } from '@arco-design/web-vue';
const columns = [
{

View File

@@ -1,4 +1,4 @@
import type { TableColumnData } from '@arco-design/web-vue/es/table/interface';
import type { TableColumnData } from '@arco-design/web-vue';
import { dateFormat } from '@/utils';
const columns = [

View File

@@ -1,4 +1,4 @@
import type { TableColumnData } from '@arco-design/web-vue/es/table/interface';
import type { TableColumnData } from '@arco-design/web-vue';
import { dateFormat } from '@/utils';
const columns = [

View File

@@ -1,4 +1,4 @@
import type { TableColumnData } from '@arco-design/web-vue/es/table/interface';
import type { TableColumnData } from '@arco-design/web-vue';
import { dateFormat } from '@/utils';
const columns = [

View File

@@ -142,7 +142,7 @@
</script>
<script lang="ts" setup>
import type { TableData } from '@arco-design/web-vue/es/table/interface';
import type { TableData } from '@arco-design/web-vue';
import type { SftpFile, ISftpSession } from '../../types/define';
import { ref, computed, watch, inject } from 'vue';
import { useRowSelection } from '@/hooks/table';

View File

@@ -1,4 +1,4 @@
import type { TableColumnData } from '@arco-design/web-vue/es/table/interface';
import type { TableColumnData } from '@arco-design/web-vue';
import { getFileSize } from '@/utils/file';
// 表格列

View File

@@ -1,4 +1,4 @@
import type { TableColumnData } from '@arco-design/web-vue/es/table/interface';
import type { TableColumnData } from '@arco-design/web-vue';
const columns = [
{

View File

@@ -1,4 +1,4 @@
import type { TableColumnData } from '@arco-design/web-vue/es/table/interface';
import type { TableColumnData } from '@arco-design/web-vue';
import { dateFormat } from '@/utils';
const columns = [

View File

@@ -1,4 +1,4 @@
import type { TableColumnData } from '@arco-design/web-vue/es/table/interface';
import type { TableColumnData } from '@arco-design/web-vue';
const columns = [
{

View File

@@ -82,7 +82,7 @@
</script>
<script lang="ts" setup>
import type { SelectOptionData } from '@arco-design/web-vue/es/select/interface';
import type { SelectOptionData } from '@arco-design/web-vue';
import type { OperatorLogQueryRequest } from '@/api/user/operator-log';
import { ref, watch } from 'vue';
import useLoading from '@/hooks/loading';

View File

@@ -62,8 +62,8 @@
</script>
<script lang="ts" setup>
import type { SelectOptionData } from '@arco-design/web-vue';
import type { OperatorLogQueryRequest } from '@/api/user/operator-log';
import type { SelectOptionData } from '@arco-design/web-vue/es/select/interface';
import { ref, watch } from 'vue';
import useLoading from '@/hooks/loading';
import { useDictStore } from '@/store';

View File

@@ -1,4 +1,4 @@
import type { TableColumnData } from '@arco-design/web-vue/es/table/interface';
import type { TableColumnData } from '@arco-design/web-vue';
import { dateFormat } from '@/utils';
const columns = [

View File

@@ -1,4 +1,4 @@
import type { TableColumnData } from '@arco-design/web-vue/es/table/interface';
import type { TableColumnData } from '@arco-design/web-vue';
import { dateFormat } from '@/utils';
const columns = [

View File

@@ -1,4 +1,4 @@
import type { TableColumnData } from '@arco-design/web-vue/es/table/interface';
import type { TableColumnData } from '@arco-design/web-vue';
import { dateFormat } from '@/utils';
const columns = [