Skip to content

Commit

Permalink
chore: update vscode settings
Browse files Browse the repository at this point in the history
  • Loading branch information
buqiyuan committed Mar 25, 2024
1 parent eacc329 commit 271f63f
Show file tree
Hide file tree
Showing 5 changed files with 40 additions and 47 deletions.
4 changes: 4 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
"npm.packageManager": "pnpm",
"editor.tabSize": 2,
"editor.defaultFormatter": "esbenp.prettier-vscode",
"vue.server.maxOldSpaceSize": 4096,
"vue.server.hybridMode": true,
"typescript.tsserver.maxTsServerMemory": 4096,
// "typescript.tsserver.nodePath": "node",
"files.eol": "\n",
"search.exclude": {
"**/node_modules": true,
Expand Down
1 change: 0 additions & 1 deletion src/store/modules/tabsView.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ export const useTabsViewStore = defineStore(
const isExists = tabsList.value.some((item) => item.fullPath == route.fullPath);
if (!isExists) {
tabsList.value.push(getRawRoute(route));
console.log('tabsList.value', [...tabsList.value]);
}
return true;
};
Expand Down
41 changes: 18 additions & 23 deletions src/views/demos/tables/lol-table/index.vue
Original file line number Diff line number Diff line change
@@ -1,31 +1,26 @@
<template>
<div>
<Alert message="游戏介绍" type="info" show-icon>
<template #description> 英雄联盟 -- 根据数组格式的数据进行导出 </template>
</Alert>
<Card title="英雄列表mock数据" style="margin-top: 20px">
<DynamicTable
size="small"
bordered
:data-request="getLolHeroList"
:columns="columns"
row-key="heroid"
export-file-name="英雄联盟"
:custom-row="customRow"
>
<template #export-button> <a-button type="primary">表格自带导出</a-button> </template>
<template #toolbar>
<a-button type="primary" @click="aoaToExcel"> 数组格式导出 </a-button>
<a-button type="primary" @click="openExportModal"> 自定义导出格式 </a-button>
</template>
</DynamicTable>
</Card>
</div>
<Card title="英雄列表mock数据" style="margin-top: 20px">
<DynamicTable
size="small"
bordered
:data-request="getLolHeroList"
:columns="columns"
row-key="heroid"
export-file-name="英雄联盟"
:custom-row="customRow"
>
<template #export-button> <a-button type="primary">表格自带导出</a-button> </template>
<template #toolbar>
<a-button type="primary" @click="aoaToExcel"> 数组格式导出 </a-button>
<a-button type="primary" @click="openExportModal"> 自定义导出格式 </a-button>
</template>
</DynamicTable>
</Card>
</template>

<script lang="ts" setup>
import { useRouter } from 'vue-router';
import { Alert, Card } from 'ant-design-vue';
import { Card } from 'ant-design-vue';
import { columns } from './columns';
import { columnKeyFlags, useTable } from '@/components/core/dynamic-table';
import { getLolHeroList } from '@/api/demo/hero';
Expand Down
39 changes: 17 additions & 22 deletions src/views/demos/tables/wzry-table/index.vue
Original file line number Diff line number Diff line change
@@ -1,29 +1,24 @@
<template>
<div>
<Alert message="游戏介绍" type="info" show-icon>
<template #description> 《王者荣耀》-- 根据JSON格式的数据进行导出 </template>
</Alert>
<Card title="英雄列表mock数据" style="margin-top: 20px">
<DynamicTable
ref="dynamicTableRef"
size="small"
bordered
:data-request="getWzryHeroList"
:columns="columns"
row-key="heroid"
@toggle-advanced="toggleAdvanced"
>
<template #toolbar>
<a-button type="primary" @click="defaultHeader"> 导出:默认头部 </a-button>
<a-button type="primary" @click="customHeader"> 导出:自定义头部 </a-button>
</template>
</DynamicTable>
</Card>
</div>
<Card title="英雄列表mock数据" style="margin-top: 20px">
<DynamicTable
ref="dynamicTableRef"
size="small"
bordered
:data-request="getWzryHeroList"
:columns="columns"
row-key="heroid"
@toggle-advanced="toggleAdvanced"
>
<template #toolbar>
<a-button type="primary" @click="defaultHeader"> 导出:默认头部 </a-button>
<a-button type="primary" @click="customHeader"> 导出:自定义头部 </a-button>
</template>
</DynamicTable>
</Card>
</template>

<script lang="ts" setup>
import { Alert, Card } from 'ant-design-vue';
import { Card } from 'ant-design-vue';
import { columns } from './columns';
import { useTable } from '@/components/core/dynamic-table';
import { jsonToSheetXlsx } from '@/components/basic/excel';
Expand Down
2 changes: 1 addition & 1 deletion vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ export default ({ command, mode }: ConfigEnv): UserConfig => {
isDev &&
checker({
typescript: true,
vueTsc: true,
// vueTsc: true,
eslint: {
useFlatConfig: true,
lintCommand: 'eslint "./src/**/*.{.vue,ts,tsx}"', // for example, lint .ts & .tsx
Expand Down

0 comments on commit 271f63f

Please sign in to comment.