Skip to content

Commit

Permalink
chore: test deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
buqiyuan committed Feb 21, 2024
1 parent c3af5c6 commit 38b67af
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 12 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<template>
<Tooltip placement="top">
<template #title>
<span>{{ $t('component.table.settingColumn') }}</span>
<span>{{ t('component.table.settingColumn') }}</span>
</template>
<Popover
placement="bottomLeft"
Expand All @@ -12,16 +12,16 @@
<template #title>
<div class="popover-title">
<Checkbox v-model:checked="checkAll" :indeterminate="indeterminate">
{{ $t('component.table.settingColumnShow') }}
{{ t('component.table.settingColumnShow') }}
</Checkbox>
<Checkbox v-model:checked="checkIndex" @change="handleIndexCheckChange">
{{ $t('component.table.settingIndexColumnShow') }}
{{ t('component.table.settingIndexColumnShow') }}
</Checkbox>
<Checkbox v-model:checked="checkBordered" @change="handleBorderedCheckChange">
{{ $t('component.table.settingBordered') }}
{{ t('component.table.settingBordered') }}
</Checkbox>
<a-button size="small" type="link" @click="reset">
{{ $t('common.resetText') }}
{{ t('common.resetText') }}
</a-button>
</div>
</template>
Expand All @@ -41,7 +41,7 @@
</div>
<div class="column-fixed">
<Tooltip placement="bottomLeft" :mouse-leave-delay="0.4">
<template #title> {{ $t('component.table.settingFixedLeft') }} </template>
<template #title> {{ t('component.table.settingFixedLeft') }} </template>
<VerticalRightOutlined
class="fixed-left"
:class="{ active: item.fixed === 'left' }"
Expand All @@ -50,7 +50,7 @@
</Tooltip>
<Divider type="vertical" />
<Tooltip placement="bottomLeft" :mouse-leave-delay="0.4">
<template #title> {{ $t('component.table.settingFixedRight') }} </template>
<template #title> {{ t('component.table.settingFixedRight') }} </template>
<VerticalLeftOutlined
class="fixed-right"
:class="{ active: item.fixed === 'right' }"
Expand Down Expand Up @@ -82,7 +82,9 @@
import Checkbox from '@/components/basic/check-box/index.vue';
import { useSortable } from '@/hooks/useSortable';
import { isNullAndUnDef } from '@/utils/is';
import { useI18n } from '@/hooks/useI18n';
const { t } = useI18n();
const table = useTableContext();
let inited = false;
const defaultColumns = cloneDeep<TableColumn[]>(table.columns);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<template>
<Tooltip placement="top">
<template #title>
<span>{{ $t('common.redo') }}</span>
<span>{{ t('common.redo') }}</span>
</template>
<RedoOutlined @click="redo" />
</Tooltip>
Expand All @@ -10,7 +10,9 @@
import { RedoOutlined } from '@ant-design/icons-vue';
import { Tooltip } from 'ant-design-vue';
import { useTableContext } from '../../hooks/useTableContext';
import { useI18n } from '@/hooks/useI18n';
const { t } = useI18n();
const table = useTableContext();
function redo() {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
<template>
<Tooltip placement="top">
<template #title>
<span>{{ $t('component.table.settingDens') }}</span>
<span>{{ t('component.table.settingDens') }}</span>
</template>

<Dropdown placement="bottom" :trigger="['click']">
<ColumnHeightOutlined />
<template #overlay>
<Menu v-model:selectedKeys="selectedKeysRef" selectable @click="handleMenuClick">
<Menu.Item key="large">
<span>{{ $t('component.table.settingDensDefault') }}</span>
<span>{{ t('component.table.settingDensDefault') }}</span>
</Menu.Item>
<Menu.Item key="middle">
<span>{{ $t('component.table.settingDensMiddle') }}</span>
<span>{{ t('component.table.settingDensMiddle') }}</span>
</Menu.Item>
<Menu.Item key="small">
<span>{{ $t('component.table.settingDensSmall') }}</span>
<span>{{ t('component.table.settingDensSmall') }}</span>
</Menu.Item>
</Menu>
</template>
Expand All @@ -29,9 +29,11 @@
import { useTableContext } from '../../hooks/useTableContext';
import type { TableProps } from 'ant-design-vue/es/table/Table';
import type { MenuInfo } from 'ant-design-vue/es/menu/src/interface';
import { useI18n } from '@/hooks/useI18n';
type SizeType = NonNullable<TableProps['size']>;
const { t } = useI18n();
const table = useTableContext();
const selectedKeysRef = ref<SizeType[]>([unref(table.getProps)?.size || 'large']);
Expand Down

0 comments on commit 38b67af

Please sign in to comment.