Merge branch 'dev' of https://gitee.com/yudaocode/yudao-ui-admin-vben into dev
commit
0eb8a683c9
|
@ -1,4 +1,4 @@
|
||||||
/* 来自 @vben/plugins/vxe-table style.css */
|
/* 来自 @vben/plugins/vxe-table style.css TODO @puhui999:可以写下目的哈; */
|
||||||
:root {
|
:root {
|
||||||
--vxe-ui-font-color: hsl(var(--foreground));
|
--vxe-ui-font-color: hsl(var(--foreground));
|
||||||
--vxe-ui-font-primary-color: hsl(var(--primary));
|
--vxe-ui-font-primary-color: hsl(var(--primary));
|
||||||
|
|
|
@ -3,6 +3,7 @@ import type { TableToolbar } from '#/components/table-toolbar';
|
||||||
|
|
||||||
import { ref, watch } from 'vue';
|
import { ref, watch } from 'vue';
|
||||||
|
|
||||||
|
// TODO @puhui999:这里的注释、目的写下;
|
||||||
export function useTableToolbar() {
|
export function useTableToolbar() {
|
||||||
const hiddenSearchBar = ref(false); // 隐藏搜索栏
|
const hiddenSearchBar = ref(false); // 隐藏搜索栏
|
||||||
const tableToolbarRef = ref<InstanceType<typeof TableToolbar>>();
|
const tableToolbarRef = ref<InstanceType<typeof TableToolbar>>();
|
||||||
|
@ -14,6 +15,7 @@ export function useTableToolbar() {
|
||||||
const table = tableRef.value;
|
const table = tableRef.value;
|
||||||
const tableToolbar = tableToolbarRef.value;
|
const tableToolbar = tableToolbarRef.value;
|
||||||
if (table && tableToolbar) {
|
if (table && tableToolbar) {
|
||||||
|
// TODO @puhui999:通过 nexttick 可以解决么?
|
||||||
setTimeout(async () => {
|
setTimeout(async () => {
|
||||||
const toolbar = tableToolbar.getToolbarRef();
|
const toolbar = tableToolbar.getToolbarRef();
|
||||||
if (!toolbar) {
|
if (!toolbar) {
|
||||||
|
@ -29,6 +31,7 @@ export function useTableToolbar() {
|
||||||
() => tableRef.value,
|
() => tableRef.value,
|
||||||
(val) => {
|
(val) => {
|
||||||
if (!val || isBound.value) return;
|
if (!val || isBound.value) return;
|
||||||
|
// TODO @puhui999:这里要处理下 promise 的告警么?
|
||||||
bindTableToolbar();
|
bindTableToolbar();
|
||||||
},
|
},
|
||||||
{ immediate: true },
|
{ immediate: true },
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
/**
|
/**
|
||||||
* 针对 https://github.com/xaboy/form-create-designer 封装的工具类
|
* 针对 https://github.com/xaboy/form-create-designer 封装的工具类
|
||||||
*/
|
*/
|
||||||
|
// TODO @芋艿:后续这些 form-create 的优化;另外需要使用 form-create-helper 会好点
|
||||||
import { isRef } from 'vue';
|
import { isRef } from 'vue';
|
||||||
|
|
||||||
// 编码表单 Conf
|
// 编码表单 Conf
|
||||||
|
|
|
@ -126,6 +126,7 @@ onMounted(async () => {
|
||||||
</Button>
|
</Button>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
<!-- TODO @ziye:可以在 data 里翻译哈。 -->
|
||||||
<template #userIds-cell="{ row }">
|
<template #userIds-cell="{ row }">
|
||||||
<span
|
<span
|
||||||
v-for="(userId, index) in row.userIds"
|
v-for="(userId, index) in row.userIds"
|
||||||
|
|
|
@ -8,6 +8,7 @@ import { z } from '#/adapter/form';
|
||||||
import { CommonStatusEnum, DICT_TYPE, getDictOptions } from '#/utils';
|
import { CommonStatusEnum, DICT_TYPE, getDictOptions } from '#/utils';
|
||||||
|
|
||||||
const { hasAccessByCodes } = useAccess();
|
const { hasAccessByCodes } = useAccess();
|
||||||
|
|
||||||
/** 新增/修改的表单 */
|
/** 新增/修改的表单 */
|
||||||
export function useFormSchema(): VbenFormSchema[] {
|
export function useFormSchema(): VbenFormSchema[] {
|
||||||
return [
|
return [
|
||||||
|
|
|
@ -265,6 +265,7 @@ onMounted(() => {
|
||||||
width: '100%',
|
width: '100%',
|
||||||
}"
|
}"
|
||||||
>
|
>
|
||||||
|
<!-- TODO @ziye:使用名字作为图标,缺少了 -->
|
||||||
<div class="flex items-center">
|
<div class="flex items-center">
|
||||||
<img
|
<img
|
||||||
v-if="definition.icon"
|
v-if="definition.icon"
|
||||||
|
|
|
@ -215,6 +215,7 @@ const handleUserSelectCancel = () => {
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
<!-- TODO @ziye:antd 组件,使用大写哈;目前项目风格是这样的 -->
|
||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<a-timeline class="pt-20px">
|
<a-timeline class="pt-20px">
|
||||||
|
|
|
@ -13,6 +13,7 @@ const SvgCakeIcon = createIconifyIcon('svg:cake');
|
||||||
const SvgAntdvLogoIcon = createIconifyIcon('svg:antdv-logo');
|
const SvgAntdvLogoIcon = createIconifyIcon('svg:antdv-logo');
|
||||||
|
|
||||||
// bpm 图标
|
// bpm 图标
|
||||||
|
// TODO @ziye:这个看看,是不是拿到 bpm 模块里,不放在这里;因为有些团队,用不到 bpm 哈
|
||||||
const SvgBpmRunningIcon = createIconifyIcon('svg:bpm-running');
|
const SvgBpmRunningIcon = createIconifyIcon('svg:bpm-running');
|
||||||
const SvgBpmApproveIcon = createIconifyIcon('svg:bpm-approve');
|
const SvgBpmApproveIcon = createIconifyIcon('svg:bpm-approve');
|
||||||
const SvgBpmRejectIcon = createIconifyIcon('svg:bpm-reject');
|
const SvgBpmRejectIcon = createIconifyIcon('svg:bpm-reject');
|
||||||
|
|
Loading…
Reference in New Issue