auth-web/src/enums/baseConstant.ts

47 lines
1.1 KiB
TypeScript
Raw Normal View History

import { computed } from 'vue';
import { $t } from '@/plugins/i18n';
2024-09-29 16:52:09 +08:00
/**
* *
*/
export const isDefaultOptions = [
{ value: true, label: '是' },
{ value: false, label: '否' },
];
/** 是否显示 */
2024-09-29 16:52:09 +08:00
export const isDefaultVisibleOptions = [
{ value: true, label: '显示' },
{ value: false, label: '不显示' },
];
/** 性别 */
2024-09-29 16:52:09 +08:00
export const sexConstant = [
{ value: 1, label: '男' },
{ value: 0, label: '女' },
];
/** 默认状态 */
export const userStatus = [
{ value: 0, label: '启用' },
{ value: 1, label: '禁用' },
];
/** 是否启用状态 */
export const enabledOrNotStatus = [
{ value: true, label: '启用' },
{ value: false, label: '禁用' },
];
/** 是否已读 */
export const isReadStatus = [
{ value: true, label: $t('readAlready') },
{ value: false, label: $t('unread') },
];
2024-09-29 16:52:09 +08:00
/**
* *
*/
2024-10-23 13:46:46 +08:00
export const pageSizes: number[] = [15, 30, 50, 100, 150];
export const tableSelectButtonClass = computed(() => ['!h-[20px]', 'reset-margin', '!text-gray-500', 'dark:!text-white', 'dark:hover:!text-primary']);