review:【naive 全局】实现

pull/101/head
YunaiV 2025-05-12 20:01:05 +08:00
parent 47716d6264
commit d5321bc34a
11 changed files with 14 additions and 0 deletions

View File

@ -25,6 +25,7 @@ const goToUrl = () => {
<template>
<NAlert v-if="isDocAlertEnable()" type="info" show-icon class="mb-2 rounded">
<!-- TODO @xingyu这里不太对展示不出来字 -->
<template #message>
<NText @click="goToUrl"> {{ title }}{{ url }} </NText>
</template>

View File

@ -1,4 +1,5 @@
<script lang="ts" setup>
// TODO @xingyu
import type { UploadFile, UploadProps } from 'naive-ui';
import type { UploadRequestOption } from 'naive-ui/lib/vc-upload/interface';

View File

@ -1,5 +1,6 @@
<!-- eslint-disable no-useless-escape -->
<script setup lang="ts">
// TODO @xingyu
import { onMounted, ref, unref } from 'vue';
import { Page, useVbenModal } from '@vben/common-ui';

View File

@ -1,4 +1,5 @@
<script lang="ts" setup>
// TODO @xingyu
import type {
OnActionClickParams,
VxeTableGridOptions,

View File

@ -1,4 +1,5 @@
<script lang="ts" setup>
// TODO @xingyu
import type { UploadFileInfo } from 'naive-ui';
import { useVbenModal } from '@vben/common-ui';

View File

@ -1,4 +1,5 @@
<script lang="ts" setup>
// TODO @xingyu
import type { SystemUserApi } from '#/api/system/user';
import { computed, onMounted, ref, watchEffect } from 'vue';

View File

@ -37,6 +37,7 @@ export function useFormSchema(): VbenFormSchema[] {
},
rules: 'required',
},
// TODO @xingyu测试有问题
{
fieldName: 'content',
label: '公告内容',
@ -54,6 +55,7 @@ export function useFormSchema(): VbenFormSchema[] {
},
rules: z.number().default(CommonStatusEnum.ENABLE),
},
// TODO @xingyu测试有问题
{
fieldName: 'remark',
label: '备注',

View File

@ -1,4 +1,5 @@
<script lang="ts" setup>
// TODO @xingyu
import type { SystemNotifyMessageApi } from '#/api/system/notify/message';
import { ref } from 'vue';

View File

@ -37,6 +37,7 @@ export function useFormSchema(): VbenFormSchema[] {
label: '租户套餐',
component: 'ApiSelect',
componentProps: {
// TODO @xingyu系统租户的情况
api: () => getTenantPackageList(),
labelField: 'name',
valueField: 'id',
@ -149,6 +150,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
options: getDictOptions(DICT_TYPE.COMMON_STATUS, 'number'),
},
},
// TODO @xingyu时间检索有问题
{
fieldName: 'createTime',
label: '创建时间',

View File

@ -333,10 +333,12 @@ export function useGridColumns<T = SystemUserApi.User>(
code: 'edit',
show: hasAccessByCodes(['system:user:update']),
},
// TODO @xingyu删除一直弹出来
{
code: 'delete',
show: hasAccessByCodes(['system:user:delete']),
},
// TODO @xingyu后面的按钮无法展示
{
code: 'assign-role',
text: '分配角色',

View File

@ -49,6 +49,7 @@ onMounted(async () => {
loading.value = false;
}
});
// TODO @xingyu
</script>
<template>