feat: 新增和导出图标修改
This commit is contained in:
@@ -5,8 +5,6 @@ import type {
|
|||||||
} from '#/adapter/vxe-table';
|
} from '#/adapter/vxe-table';
|
||||||
import type { CustomerApi } from '#/api/license/customer';
|
import type { CustomerApi } from '#/api/license/customer';
|
||||||
|
|
||||||
import { h } from 'vue';
|
|
||||||
|
|
||||||
import { Page, useVbenModal } from '@vben/common-ui';
|
import { Page, useVbenModal } from '@vben/common-ui';
|
||||||
import { Download, Plus } from '@vben/icons';
|
import { Download, Plus } from '@vben/icons';
|
||||||
import { downloadFileFromBlobPart } from '@vben/utils';
|
import { downloadFileFromBlobPart } from '@vben/utils';
|
||||||
@@ -131,20 +129,20 @@ const [Grid, gridApi] = useVbenVxeGrid({
|
|||||||
<Grid :table-title="$t('customer.customerList')">
|
<Grid :table-title="$t('customer.customerList')">
|
||||||
<template #toolbar-tools>
|
<template #toolbar-tools>
|
||||||
<Button
|
<Button
|
||||||
:icon="h(Plus)"
|
|
||||||
type="primary"
|
type="primary"
|
||||||
@click="onCreate"
|
@click="onCreate"
|
||||||
v-access:code="['license:customer:create']"
|
v-access:code="['license:customer:create']"
|
||||||
>
|
>
|
||||||
|
<Plus class="size-5" />
|
||||||
{{ $t('ui.actionTitle.create', [$t('customer.customer')]) }}
|
{{ $t('ui.actionTitle.create', [$t('customer.customer')]) }}
|
||||||
</Button>
|
</Button>
|
||||||
<Button
|
<Button
|
||||||
:icon="h(Download)"
|
|
||||||
type="primary"
|
type="primary"
|
||||||
class="ml-2"
|
class="ml-2"
|
||||||
@click="onExport"
|
@click="onExport"
|
||||||
v-access:code="['license:customer:export']"
|
v-access:code="['license:customer:export']"
|
||||||
>
|
>
|
||||||
|
<Download class="size-5" />
|
||||||
{{ $t('ui.actionTitle.export') }}
|
{{ $t('ui.actionTitle.export') }}
|
||||||
</Button>
|
</Button>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
@@ -5,8 +5,6 @@ import type {
|
|||||||
} from '#/adapter/vxe-table';
|
} from '#/adapter/vxe-table';
|
||||||
import type { LicenseApi } from '#/api/license/license';
|
import type { LicenseApi } from '#/api/license/license';
|
||||||
|
|
||||||
import { h } from 'vue';
|
|
||||||
|
|
||||||
import { Page, useVbenModal } from '@vben/common-ui';
|
import { Page, useVbenModal } from '@vben/common-ui';
|
||||||
import { Download, Plus } from '@vben/icons';
|
import { Download, Plus } from '@vben/icons';
|
||||||
import { downloadFileFromBlobPart } from '@vben/utils';
|
import { downloadFileFromBlobPart } from '@vben/utils';
|
||||||
@@ -136,20 +134,20 @@ const [Grid, gridApi] = useVbenVxeGrid({
|
|||||||
<Grid :table-title="$t('license.list')">
|
<Grid :table-title="$t('license.list')">
|
||||||
<template #toolbar-tools>
|
<template #toolbar-tools>
|
||||||
<Button
|
<Button
|
||||||
:icon="h(Plus)"
|
|
||||||
type="primary"
|
type="primary"
|
||||||
@click="onCreate"
|
@click="onCreate"
|
||||||
v-access:code="['license:license:create']"
|
v-access:code="['license:license:create']"
|
||||||
>
|
>
|
||||||
|
<Plus class="size-5" />
|
||||||
{{ $t('ui.actionTitle.create', ['License']) }}
|
{{ $t('ui.actionTitle.create', ['License']) }}
|
||||||
</Button>
|
</Button>
|
||||||
<Button
|
<Button
|
||||||
:icon="h(Download)"
|
|
||||||
type="primary"
|
type="primary"
|
||||||
class="ml-2"
|
class="ml-2"
|
||||||
@click="onExport"
|
@click="onExport"
|
||||||
v-access:code="['license:license:export']"
|
v-access:code="['license:license:export']"
|
||||||
>
|
>
|
||||||
|
<Download class="size-5" />
|
||||||
{{ $t('ui.actionTitle.export') }}
|
{{ $t('ui.actionTitle.export') }}
|
||||||
</Button>
|
</Button>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
@@ -5,8 +5,6 @@ import type {
|
|||||||
} from '#/adapter/vxe-table';
|
} from '#/adapter/vxe-table';
|
||||||
import type { ProjectApi } from '#/api/license/project';
|
import type { ProjectApi } from '#/api/license/project';
|
||||||
|
|
||||||
import { h } from 'vue';
|
|
||||||
|
|
||||||
import { Page, useVbenModal } from '@vben/common-ui';
|
import { Page, useVbenModal } from '@vben/common-ui';
|
||||||
import { Download, Plus } from '@vben/icons';
|
import { Download, Plus } from '@vben/icons';
|
||||||
import { downloadFileFromBlobPart } from '@vben/utils';
|
import { downloadFileFromBlobPart } from '@vben/utils';
|
||||||
@@ -130,20 +128,20 @@ const [Grid, gridApi] = useVbenVxeGrid({
|
|||||||
<Grid :table-title="$t('project.list')">
|
<Grid :table-title="$t('project.list')">
|
||||||
<template #toolbar-tools>
|
<template #toolbar-tools>
|
||||||
<Button
|
<Button
|
||||||
:icon="h(Plus)"
|
|
||||||
type="primary"
|
type="primary"
|
||||||
@click="onCreate"
|
@click="onCreate"
|
||||||
v-access:code="['license:project:create']"
|
v-access:code="['license:project:create']"
|
||||||
>
|
>
|
||||||
|
<Plus class="size-5" />
|
||||||
{{ $t('ui.actionTitle.create', [$t('project.project')]) }}
|
{{ $t('ui.actionTitle.create', [$t('project.project')]) }}
|
||||||
</Button>
|
</Button>
|
||||||
<Button
|
<Button
|
||||||
:icon="h(Download)"
|
|
||||||
type="primary"
|
type="primary"
|
||||||
class="ml-2"
|
class="ml-2"
|
||||||
@click="onExport"
|
@click="onExport"
|
||||||
v-access:code="['license:project:export']"
|
v-access:code="['license:project:export']"
|
||||||
>
|
>
|
||||||
|
<Download class="size-5" />
|
||||||
{{ $t('ui.actionTitle.export') }}
|
{{ $t('ui.actionTitle.export') }}
|
||||||
</Button>
|
</Button>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
Reference in New Issue
Block a user