pull/101/head
xingyu4j 2025-05-12 14:06:15 +08:00
commit 0eb8a683c9
8 changed files with 10 additions and 2 deletions

View File

@ -1,4 +1,4 @@
/* 来自 @vben/plugins/vxe-table style.css */
/* 来自 @vben/plugins/vxe-table style.css TODO @puhui999可以写下目的哈 */
:root {
--vxe-ui-font-color: hsl(var(--foreground));
--vxe-ui-font-primary-color: hsl(var(--primary));

View File

@ -3,6 +3,7 @@ import type { TableToolbar } from '#/components/table-toolbar';
import { ref, watch } from 'vue';
// TODO @puhui999这里的注释、目的写下
export function useTableToolbar() {
const hiddenSearchBar = ref(false); // 隐藏搜索栏
const tableToolbarRef = ref<InstanceType<typeof TableToolbar>>();
@ -14,6 +15,7 @@ export function useTableToolbar() {
const table = tableRef.value;
const tableToolbar = tableToolbarRef.value;
if (table && tableToolbar) {
// TODO @puhui999通过 nexttick 可以解决么?
setTimeout(async () => {
const toolbar = tableToolbar.getToolbarRef();
if (!toolbar) {
@ -29,6 +31,7 @@ export function useTableToolbar() {
() => tableRef.value,
(val) => {
if (!val || isBound.value) return;
// TODO @puhui999这里要处理下 promise 的告警么?
bindTableToolbar();
},
{ immediate: true },

View File

@ -1,7 +1,7 @@
/**
* https://github.com/xaboy/form-create-designer 封装的工具类
*/
// TODO @芋艿:后续这些 form-create 的优化;另外需要使用 form-create-helper 会好点
import { isRef } from 'vue';
// 编码表单 Conf

View File

@ -126,6 +126,7 @@ onMounted(async () => {
</Button>
</template>
<!-- TODO @ziye可以在 data 里翻译哈 -->
<template #userIds-cell="{ row }">
<span
v-for="(userId, index) in row.userIds"

View File

@ -8,6 +8,7 @@ import { z } from '#/adapter/form';
import { CommonStatusEnum, DICT_TYPE, getDictOptions } from '#/utils';
const { hasAccessByCodes } = useAccess();
/** 新增/修改的表单 */
export function useFormSchema(): VbenFormSchema[] {
return [

View File

@ -265,6 +265,7 @@ onMounted(() => {
width: '100%',
}"
>
<!-- TODO @ziye使用名字作为图标缺少了 -->
<div class="flex items-center">
<img
v-if="definition.icon"

View File

@ -215,6 +215,7 @@ const handleUserSelectCancel = () => {
};
</script>
<!-- TODO @ziyeantd 组件使用大写哈目前项目风格是这样的 -->
<template>
<div>
<a-timeline class="pt-20px">

View File

@ -13,6 +13,7 @@ const SvgCakeIcon = createIconifyIcon('svg:cake');
const SvgAntdvLogoIcon = createIconifyIcon('svg:antdv-logo');
// bpm 图标
// TODO @ziye这个看看是不是拿到 bpm 模块里,不放在这里;因为有些团队,用不到 bpm 哈
const SvgBpmRunningIcon = createIconifyIcon('svg:bpm-running');
const SvgBpmApproveIcon = createIconifyIcon('svg:bpm-approve');
const SvgBpmRejectIcon = createIconifyIcon('svg:bpm-reject');