fix(web-antdv-next): 适配 antdv-next 5 组件 API
Descriptions class 改为 classes.root,Image error slot 改为 fallback,Tree 标题 slot 改为 titleRender,FormItem labelCol.style 改为 flex。 Transfer 事件和 footer slot 对齐 TransferKey/TransferDirection,并修复 Button color、ActionItem color、重复 attachments 等类型问题。 web-antdv-next 清缓存 typecheck 0 error。migration
parent
b02c75347e
commit
23df7c7f30
|
|
@ -84,7 +84,6 @@ export namespace BpmProcessInstanceApi {
|
||||||
reason: string;
|
reason: string;
|
||||||
signPicUrl: string;
|
signPicUrl: string;
|
||||||
status: number;
|
status: number;
|
||||||
attachments?: string[];
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/** 抄送流程实例 */
|
/** 抄送流程实例 */
|
||||||
|
|
|
||||||
|
|
@ -21,7 +21,6 @@ export function useDescription(options?: Partial<DescriptionProps>) {
|
||||||
inheritAttrs: false,
|
inheritAttrs: false,
|
||||||
setup(_props, { attrs, slots }) {
|
setup(_props, { attrs, slots }) {
|
||||||
return () => {
|
return () => {
|
||||||
// @ts-expect-error - 避免类型实例化过深
|
|
||||||
return h(Description, { ...propsState, ...attrs }, slots);
|
return h(Description, { ...propsState, ...attrs }, slots);
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@ export interface PopConfirm {
|
||||||
disabled?: boolean;
|
disabled?: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ActionItem extends ButtonProps {
|
export interface ActionItem extends Omit<ButtonProps, 'color'> {
|
||||||
onClick?: () => void;
|
onClick?: () => void;
|
||||||
type?: ButtonType;
|
type?: ButtonType;
|
||||||
label?: string;
|
label?: string;
|
||||||
|
|
|
||||||
|
|
@ -33,7 +33,7 @@ const getButtonProps = computed(() => {
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
||||||
async function customRequest(info: UploadRequestOption<any>) {
|
async function customRequest(info: UploadRequestOption) {
|
||||||
// 1. emit 上传中
|
// 1. emit 上传中
|
||||||
const file = info.file as File;
|
const file = info.file as File;
|
||||||
const name = file?.name;
|
const name = file?.name;
|
||||||
|
|
|
||||||
|
|
@ -139,7 +139,7 @@ function recursiveFindParentNode(
|
||||||
<Button
|
<Button
|
||||||
v-else
|
v-else
|
||||||
class="branch-node-add"
|
class="branch-node-add"
|
||||||
color="#626aef"
|
:style="{ borderColor: '#626aef', color: '#626aef' }"
|
||||||
@click="addCondition"
|
@click="addCondition"
|
||||||
plain
|
plain
|
||||||
>
|
>
|
||||||
|
|
|
||||||
|
|
@ -26,7 +26,7 @@ const queryId = computed(() => query.id as string);
|
||||||
const [Descriptions] = useDescription({
|
const [Descriptions] = useDescription({
|
||||||
bordered: true,
|
bordered: true,
|
||||||
column: 1,
|
column: 1,
|
||||||
class: 'mx-4',
|
classes: { root: 'mx-4' },
|
||||||
schema: useDetailFormSchema(),
|
schema: useDetailFormSchema(),
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,7 @@ const [BaseDescription] = useDescription({
|
||||||
title: '基本信息',
|
title: '基本信息',
|
||||||
bordered: false,
|
bordered: false,
|
||||||
column: 4,
|
column: 4,
|
||||||
class: 'mx-4',
|
classes: { root: 'mx-4' },
|
||||||
schema: useDetailBaseSchema(),
|
schema: useDetailBaseSchema(),
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
@ -24,7 +24,7 @@ const [SystemDescription] = useDescription({
|
||||||
title: '系统信息',
|
title: '系统信息',
|
||||||
bordered: false,
|
bordered: false,
|
||||||
column: 3,
|
column: 3,
|
||||||
class: 'mx-4',
|
classes: { root: 'mx-4' },
|
||||||
schema: useFollowUpDetailSchema(),
|
schema: useFollowUpDetailSchema(),
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,7 @@ const [BaseDescriptions] = useDescription({
|
||||||
title: '基本信息',
|
title: '基本信息',
|
||||||
bordered: false,
|
bordered: false,
|
||||||
column: 4,
|
column: 4,
|
||||||
class: 'mx-4',
|
classes: { root: 'mx-4' },
|
||||||
schema: useDetailBaseSchema(),
|
schema: useDetailBaseSchema(),
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
@ -24,7 +24,7 @@ const [SystemDescriptions] = useDescription({
|
||||||
title: '系统信息',
|
title: '系统信息',
|
||||||
bordered: false,
|
bordered: false,
|
||||||
column: 3,
|
column: 3,
|
||||||
class: 'mx-4',
|
classes: { root: 'mx-4' },
|
||||||
schema: useFollowUpDetailSchema(),
|
schema: useFollowUpDetailSchema(),
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,7 @@ const [BaseDescriptions] = useDescription({
|
||||||
title: '基本信息',
|
title: '基本信息',
|
||||||
bordered: false,
|
bordered: false,
|
||||||
column: 4,
|
column: 4,
|
||||||
class: 'mx-4',
|
classes: { root: 'mx-4' },
|
||||||
schema: useDetailBaseSchema(),
|
schema: useDetailBaseSchema(),
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
@ -24,7 +24,7 @@ const [SystemDescriptions] = useDescription({
|
||||||
title: '系统信息',
|
title: '系统信息',
|
||||||
bordered: false,
|
bordered: false,
|
||||||
column: 3,
|
column: 3,
|
||||||
class: 'mx-4',
|
classes: { root: 'mx-4' },
|
||||||
schema: useFollowUpDetailSchema(),
|
schema: useFollowUpDetailSchema(),
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,7 @@ const [BaseDescriptions] = useDescription({
|
||||||
title: '基本信息',
|
title: '基本信息',
|
||||||
bordered: false,
|
bordered: false,
|
||||||
column: 4,
|
column: 4,
|
||||||
class: 'mx-4',
|
classes: { root: 'mx-4' },
|
||||||
schema: useDetailBaseSchema(),
|
schema: useDetailBaseSchema(),
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
@ -24,7 +24,7 @@ const [SystemDescriptions] = useDescription({
|
||||||
title: '系统信息',
|
title: '系统信息',
|
||||||
bordered: false,
|
bordered: false,
|
||||||
column: 3,
|
column: 3,
|
||||||
class: 'mx-4',
|
classes: { root: 'mx-4' },
|
||||||
schema: useFollowUpDetailSchema(),
|
schema: useFollowUpDetailSchema(),
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,7 @@ const [BaseDescriptions] = useDescription({
|
||||||
title: '基本信息',
|
title: '基本信息',
|
||||||
bordered: false,
|
bordered: false,
|
||||||
column: 4,
|
column: 4,
|
||||||
class: 'mx-4',
|
classes: { root: 'mx-4' },
|
||||||
schema: useDetailBaseSchema(),
|
schema: useDetailBaseSchema(),
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
@ -24,7 +24,7 @@ const [SystemDescriptions] = useDescription({
|
||||||
title: '系统信息',
|
title: '系统信息',
|
||||||
bordered: false,
|
bordered: false,
|
||||||
column: 3,
|
column: 3,
|
||||||
class: 'mx-4',
|
classes: { root: 'mx-4' },
|
||||||
schema: useFollowUpDetailSchema(),
|
schema: useFollowUpDetailSchema(),
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@ const [BaseDescriptions] = useDescription({
|
||||||
title: '基本信息',
|
title: '基本信息',
|
||||||
bordered: false,
|
bordered: false,
|
||||||
column: 4,
|
column: 4,
|
||||||
class: 'mx-4',
|
classes: { root: 'mx-4' },
|
||||||
schema: useDetailBaseSchema(),
|
schema: useDetailBaseSchema(),
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
@ -23,7 +23,7 @@ const [SystemDescriptions] = useDescription({
|
||||||
title: '系统信息',
|
title: '系统信息',
|
||||||
bordered: false,
|
bordered: false,
|
||||||
column: 3,
|
column: 3,
|
||||||
class: 'mx-4',
|
classes: { root: 'mx-4' },
|
||||||
schema: useDetailSystemSchema(),
|
schema: useDetailSystemSchema(),
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@ const [BaseDescriptions] = useDescription({
|
||||||
title: '基本信息',
|
title: '基本信息',
|
||||||
bordered: false,
|
bordered: false,
|
||||||
column: 4,
|
column: 4,
|
||||||
class: 'mx-4',
|
classes: { root: 'mx-4' },
|
||||||
schema: useDetailBaseSchema(),
|
schema: useDetailBaseSchema(),
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
@ -23,7 +23,7 @@ const [SystemDescriptions] = useDescription({
|
||||||
title: '系统信息',
|
title: '系统信息',
|
||||||
bordered: false,
|
bordered: false,
|
||||||
column: 3,
|
column: 3,
|
||||||
class: 'mx-4',
|
classes: { root: 'mx-4' },
|
||||||
schema: useDetailSystemSchema(),
|
schema: useDetailSystemSchema(),
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@ defineProps<{
|
||||||
const [Descriptions] = useDescription({
|
const [Descriptions] = useDescription({
|
||||||
bordered: false,
|
bordered: false,
|
||||||
column: 6,
|
column: 6,
|
||||||
class: 'mx-4',
|
classes: { root: 'mx-4' },
|
||||||
schema: [
|
schema: [
|
||||||
{
|
{
|
||||||
field: 'info.redis_version',
|
field: 'info.redis_version',
|
||||||
|
|
|
||||||
|
|
@ -39,7 +39,8 @@ function handleProcess(row: AlertRecordApi.AlertRecord) {
|
||||||
h('p', '请输入处理原因:'),
|
h('p', '请输入处理原因:'),
|
||||||
h(TextArea, {
|
h(TextArea, {
|
||||||
value: processRemark.value,
|
value: processRemark.value,
|
||||||
'onUpdate:value': (val: string) => (processRemark.value = val),
|
'onUpdate:value': (val?: number | string) =>
|
||||||
|
(processRemark.value = String(val ?? '')),
|
||||||
rows: 3,
|
rows: 3,
|
||||||
placeholder: '请输入处理原因',
|
placeholder: '请输入处理原因',
|
||||||
}),
|
}),
|
||||||
|
|
|
||||||
|
|
@ -32,7 +32,13 @@ const emit = defineEmits(['update:modelValue']);
|
||||||
const formData = useVModel(props, 'modelValue', emit);
|
const formData = useVModel(props, 'modelValue', emit);
|
||||||
const formStyleValues = formData as unknown as Ref<Record<string, number>>;
|
const formStyleValues = formData as unknown as Ref<Record<string, number>>;
|
||||||
|
|
||||||
const treeData: any[] = [
|
interface StyleTreeNode {
|
||||||
|
children?: StyleTreeNode[];
|
||||||
|
label: string;
|
||||||
|
prop: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
const treeData: StyleTreeNode[] = [
|
||||||
{
|
{
|
||||||
label: '外部边距',
|
label: '外部边距',
|
||||||
prop: 'margin',
|
prop: 'margin',
|
||||||
|
|
@ -126,6 +132,10 @@ function handleSliderChange(prop: string) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function getTreeNode(slotProps: unknown) {
|
||||||
|
return slotProps as StyleTreeNode;
|
||||||
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
|
|
@ -143,7 +153,7 @@ function handleSliderChange(prop: string) {
|
||||||
<FormItem
|
<FormItem
|
||||||
label="组件背景"
|
label="组件背景"
|
||||||
name="bgType"
|
name="bgType"
|
||||||
:label-col="{ style: { width: '109px' } }"
|
:label-col="{ flex: '109px' }"
|
||||||
>
|
>
|
||||||
<RadioGroup v-model:value="formData.bgType">
|
<RadioGroup v-model:value="formData.bgType">
|
||||||
<Radio value="color">纯色</Radio>
|
<Radio value="color">纯色</Radio>
|
||||||
|
|
@ -153,7 +163,7 @@ function handleSliderChange(prop: string) {
|
||||||
<FormItem
|
<FormItem
|
||||||
label="选择颜色"
|
label="选择颜色"
|
||||||
name="bgColor"
|
name="bgColor"
|
||||||
:label-col="{ style: { width: '109px' } }"
|
:label-col="{ flex: '109px' }"
|
||||||
v-if="formData.bgType === 'color'"
|
v-if="formData.bgType === 'color'"
|
||||||
>
|
>
|
||||||
<ColorInput v-model="formData.bgColor" />
|
<ColorInput v-model="formData.bgColor" />
|
||||||
|
|
@ -161,7 +171,7 @@ function handleSliderChange(prop: string) {
|
||||||
<FormItem
|
<FormItem
|
||||||
label="上传图片"
|
label="上传图片"
|
||||||
name="bgImg"
|
name="bgImg"
|
||||||
:label-col="{ style: { width: '109px' } }"
|
:label-col="{ flex: '109px' }"
|
||||||
v-else
|
v-else
|
||||||
>
|
>
|
||||||
<UploadImg
|
<UploadImg
|
||||||
|
|
@ -173,22 +183,20 @@ function handleSliderChange(prop: string) {
|
||||||
</UploadImg>
|
</UploadImg>
|
||||||
</FormItem>
|
</FormItem>
|
||||||
<Tree :tree-data="treeData" default-expand-all :block-node="true">
|
<Tree :tree-data="treeData" default-expand-all :block-node="true">
|
||||||
<template #title="{ dataRef }">
|
<template #titleRender="node">
|
||||||
<FormItem
|
<FormItem
|
||||||
:label="dataRef.label"
|
:label="getTreeNode(node).label"
|
||||||
:name="dataRef.prop"
|
:name="getTreeNode(node).prop"
|
||||||
:label-col="{
|
:label-col="{ flex: getTreeNode(node).children ? '80px' : '58px' }"
|
||||||
style: { width: dataRef.children ? '80px' : '58px' },
|
|
||||||
}"
|
|
||||||
class="mb-0 w-full"
|
class="mb-0 w-full"
|
||||||
>
|
>
|
||||||
<Row>
|
<Row>
|
||||||
<Col :span="19">
|
<Col :span="19">
|
||||||
<Slider
|
<Slider
|
||||||
v-model:value="formStyleValues[dataRef.prop]"
|
v-model:value="formStyleValues[getTreeNode(node).prop]"
|
||||||
:max="100"
|
:max="100"
|
||||||
:min="0"
|
:min="0"
|
||||||
@change="handleSliderChange(dataRef.prop)"
|
@change="handleSliderChange(getTreeNode(node).prop)"
|
||||||
class="mr-4"
|
class="mr-4"
|
||||||
/>
|
/>
|
||||||
</Col>
|
</Col>
|
||||||
|
|
@ -197,7 +205,7 @@ function handleSliderChange(prop: string) {
|
||||||
class="w-[50px]"
|
class="w-[50px]"
|
||||||
:max="100"
|
:max="100"
|
||||||
:min="0"
|
:min="0"
|
||||||
v-model:value="formStyleValues[dataRef.prop]"
|
v-model:value="formStyleValues[getTreeNode(node).prop]"
|
||||||
/>
|
/>
|
||||||
</Col>
|
</Col>
|
||||||
</Row>
|
</Row>
|
||||||
|
|
|
||||||
|
|
@ -65,7 +65,7 @@ const rowCount = computed(() => {
|
||||||
borderBottomRightRadius: `${property.borderRadiusBottom}px`,
|
borderBottomRightRadius: `${property.borderRadiusBottom}px`,
|
||||||
}"
|
}"
|
||||||
>
|
>
|
||||||
<template #error>
|
<template #fallback>
|
||||||
<div class="image-slot">
|
<div class="image-slot">
|
||||||
<div
|
<div
|
||||||
class="flex items-center justify-center"
|
class="flex items-center justify-center"
|
||||||
|
|
|
||||||
|
|
@ -36,7 +36,7 @@ function handleActive(index: number) {
|
||||||
:preview="false"
|
:preview="false"
|
||||||
class="h-full w-full object-contain"
|
class="h-full w-full object-contain"
|
||||||
>
|
>
|
||||||
<template #error>
|
<template #fallback>
|
||||||
<div class="flex h-full w-full items-center justify-center">
|
<div class="flex h-full w-full items-center justify-center">
|
||||||
<IconifyIcon icon="lucide:image" />
|
<IconifyIcon icon="lucide:image" />
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -33,7 +33,7 @@ defineProps<{ property: TabBarProperty }>();
|
||||||
class="!h-[26px] w-[26px] rounded"
|
class="!h-[26px] w-[26px] rounded"
|
||||||
:preview="false"
|
:preview="false"
|
||||||
>
|
>
|
||||||
<template #error>
|
<template #fallback>
|
||||||
<div class="flex h-full w-full items-center justify-center">
|
<div class="flex h-full w-full items-center justify-center">
|
||||||
<IconifyIcon
|
<IconifyIcon
|
||||||
icon="lucide:image"
|
icon="lucide:image"
|
||||||
|
|
|
||||||
|
|
@ -52,7 +52,7 @@ const [OrderDescriptions] = useDescription({
|
||||||
title: '订单信息',
|
title: '订单信息',
|
||||||
bordered: false,
|
bordered: false,
|
||||||
column: 3,
|
column: 3,
|
||||||
class: 'mx-4',
|
classes: { root: 'mx-4' },
|
||||||
schema: useOrderInfoSchema(),
|
schema: useOrderInfoSchema(),
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
@ -60,7 +60,7 @@ const [AfterSaleDescriptions] = useDescription({
|
||||||
title: '售后信息',
|
title: '售后信息',
|
||||||
bordered: false,
|
bordered: false,
|
||||||
column: 3,
|
column: 3,
|
||||||
class: 'mx-4',
|
classes: { root: 'mx-4' },
|
||||||
schema: useAfterSaleInfoSchema(),
|
schema: useAfterSaleInfoSchema(),
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
@ -68,7 +68,7 @@ const [RefundStatusDescriptions] = useDescription({
|
||||||
title: '退款状态',
|
title: '退款状态',
|
||||||
bordered: false,
|
bordered: false,
|
||||||
column: 1,
|
column: 1,
|
||||||
class: 'mx-4',
|
classes: { root: 'mx-4' },
|
||||||
schema: useRefundStatusSchema(),
|
schema: useRefundStatusSchema(),
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -64,7 +64,7 @@ const [OrderInfoDescriptions] = useDescription({
|
||||||
title: '订单信息',
|
title: '订单信息',
|
||||||
bordered: false,
|
bordered: false,
|
||||||
column: 3,
|
column: 3,
|
||||||
class: 'mx-4',
|
classes: { root: 'mx-4' },
|
||||||
schema: useOrderInfoSchema(),
|
schema: useOrderInfoSchema(),
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
@ -72,7 +72,7 @@ const [OrderStatusDescriptions] = useDescription({
|
||||||
title: '订单状态',
|
title: '订单状态',
|
||||||
bordered: false,
|
bordered: false,
|
||||||
column: 1,
|
column: 1,
|
||||||
class: 'mx-4',
|
classes: { root: 'mx-4' },
|
||||||
schema: useOrderStatusSchema(),
|
schema: useOrderStatusSchema(),
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
@ -80,7 +80,7 @@ const [OrderPriceDescriptions] = useDescription({
|
||||||
title: '费用信息',
|
title: '费用信息',
|
||||||
bordered: false,
|
bordered: false,
|
||||||
column: 4,
|
column: 4,
|
||||||
class: 'mx-4',
|
classes: { root: 'mx-4' },
|
||||||
schema: useOrderPriceSchema(),
|
schema: useOrderPriceSchema(),
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
@ -88,7 +88,7 @@ const [DeliveryInfoDescriptions] = useDescription({
|
||||||
title: '收货信息',
|
title: '收货信息',
|
||||||
bordered: false,
|
bordered: false,
|
||||||
column: 3,
|
column: 3,
|
||||||
class: 'mx-4',
|
classes: { root: 'mx-4' },
|
||||||
schema: useDeliveryInfoSchema(),
|
schema: useDeliveryInfoSchema(),
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,6 @@
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
|
import type { TransferDirection, TransferKey } from 'antdv-next';
|
||||||
|
|
||||||
import type { SystemDeptApi } from '#/api/system/dept';
|
import type { SystemDeptApi } from '#/api/system/dept';
|
||||||
import type { SystemUserApi } from '#/api/system/user';
|
import type { SystemUserApi } from '#/api/system/user';
|
||||||
|
|
||||||
|
|
@ -258,7 +260,7 @@ function handleRightPaginationChange(page: number, pageSize: number) {
|
||||||
}
|
}
|
||||||
|
|
||||||
/** 处理用户搜索 */
|
/** 处理用户搜索 */
|
||||||
async function handleUserSearch(direction: string, value: string) {
|
async function handleUserSearch(direction: TransferDirection, value: string) {
|
||||||
if (direction === 'left') {
|
if (direction === 'left') {
|
||||||
leftListState.value.searchValue = value;
|
leftListState.value.searchValue = value;
|
||||||
leftListState.value.pagination.current = 1;
|
leftListState.value.pagination.current = 1;
|
||||||
|
|
@ -271,9 +273,9 @@ async function handleUserSearch(direction: string, value: string) {
|
||||||
}
|
}
|
||||||
|
|
||||||
/** 处理用户选择变化 */
|
/** 处理用户选择变化 */
|
||||||
function handleUserChange(targetKeys: string[]) {
|
function handleUserChange(targetKeys: TransferKey[]) {
|
||||||
// 使用 Set 来去重选中的用户ID
|
// 使用 Set 来去重选中的用户ID
|
||||||
selectedUserIds.value = [...new Set(targetKeys)];
|
selectedUserIds.value = [...new Set(targetKeys.map(String))];
|
||||||
emit('update:value', selectedUserIds.value.map(Number));
|
emit('update:value', selectedUserIds.value.map(Number));
|
||||||
updateRightListData();
|
updateRightListData();
|
||||||
}
|
}
|
||||||
|
|
@ -408,7 +410,10 @@ function processDeptNode(node: any): DeptTreeNode {
|
||||||
v-model:value="deptSearchKeys"
|
v-model:value="deptSearchKeys"
|
||||||
placeholder="搜索部门"
|
placeholder="搜索部门"
|
||||||
allow-clear
|
allow-clear
|
||||||
@input="(e) => handleDeptSearch(e.target?.value ?? '')"
|
@input="
|
||||||
|
(e: Event) =>
|
||||||
|
handleDeptSearch((e.target as HTMLInputElement)?.value ?? '')
|
||||||
|
"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<Tree
|
<Tree
|
||||||
|
|
@ -436,8 +441,8 @@ function processDeptNode(node: any): DeptTreeNode {
|
||||||
<span>{{ item?.nickname }} ({{ item?.username }})</span>
|
<span>{{ item?.nickname }} ({{ item?.username }})</span>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<template #footer="{ direction }">
|
<template #footer="{ info }">
|
||||||
<div v-if="direction === 'left'">
|
<div v-if="info?.direction === 'left'">
|
||||||
<Pagination
|
<Pagination
|
||||||
v-model:current="leftListState.pagination.current"
|
v-model:current="leftListState.pagination.current"
|
||||||
v-model:page-size="leftListState.pagination.pageSize"
|
v-model:page-size="leftListState.pagination.pageSize"
|
||||||
|
|
@ -449,7 +454,7 @@ function processDeptNode(node: any): DeptTreeNode {
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div v-if="direction === 'right'">
|
<div v-if="info?.direction === 'right'">
|
||||||
<Pagination
|
<Pagination
|
||||||
v-model:current="rightListState.pagination.current"
|
v-model:current="rightListState.pagination.current"
|
||||||
v-model:page-size="rightListState.pagination.pageSize"
|
v-model:page-size="rightListState.pagination.pageSize"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue