Merge branch 'dev' of https://gitee.com/yudaocode/yudao-ui-admin-vben into dev
This commit is contained in:
@@ -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));
|
||||
|
||||
@@ -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 },
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/**
|
||||
* 针对 https://github.com/xaboy/form-create-designer 封装的工具类
|
||||
*/
|
||||
|
||||
// TODO @芋艿:后续这些 form-create 的优化;另外需要使用 form-create-helper 会好点
|
||||
import { isRef } from 'vue';
|
||||
|
||||
// 编码表单 Conf
|
||||
|
||||
@@ -126,6 +126,7 @@ onMounted(async () => {
|
||||
</Button>
|
||||
</template>
|
||||
|
||||
<!-- TODO @ziye:可以在 data 里翻译哈。 -->
|
||||
<template #userIds-cell="{ row }">
|
||||
<span
|
||||
v-for="(userId, index) in row.userIds"
|
||||
|
||||
@@ -8,6 +8,7 @@ import { z } from '#/adapter/form';
|
||||
import { CommonStatusEnum, DICT_TYPE, getDictOptions } from '#/utils';
|
||||
|
||||
const { hasAccessByCodes } = useAccess();
|
||||
|
||||
/** 新增/修改的表单 */
|
||||
export function useFormSchema(): VbenFormSchema[] {
|
||||
return [
|
||||
|
||||
@@ -265,6 +265,7 @@ onMounted(() => {
|
||||
width: '100%',
|
||||
}"
|
||||
>
|
||||
<!-- TODO @ziye:使用名字作为图标,缺少了 -->
|
||||
<div class="flex items-center">
|
||||
<img
|
||||
v-if="definition.icon"
|
||||
|
||||
@@ -215,6 +215,7 @@ const handleUserSelectCancel = () => {
|
||||
};
|
||||
</script>
|
||||
|
||||
<!-- TODO @ziye:antd 组件,使用大写哈;目前项目风格是这样的 -->
|
||||
<template>
|
||||
<div>
|
||||
<a-timeline class="pt-20px">
|
||||
|
||||
Reference in New Issue
Block a user