From df3bc57bebdb2aef9b93943bd6cfe56c9b964ab3 Mon Sep 17 00:00:00 2001 From: kousum Date: Mon, 25 Nov 2024 14:42:14 +0800 Subject: [PATCH] docs: Resizable --- .../semi-ui-vue/src/components/resizable/single/resizable.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/semi-ui-vue/src/components/resizable/single/resizable.tsx b/packages/semi-ui-vue/src/components/resizable/single/resizable.tsx index 0c7800d9..17f8a825 100644 --- a/packages/semi-ui-vue/src/components/resizable/single/resizable.tsx +++ b/packages/semi-ui-vue/src/components/resizable/single/resizable.tsx @@ -51,7 +51,7 @@ export interface HandleStyle { export interface ResizableProps { style?: CSSProperties; className?: string; - grid?: [number, number]; + grid?: [number, number] | number; snap?: { x?: number[]; y?: number[] @@ -102,7 +102,7 @@ const propTypes: CombineProps = { style: PropTypes.object, className: PropTypes.string, //@ts-ignore - grid: PropTypes.array as PropType, + grid: [PropTypes.array, PropTypes.number] as PropType, snap: PropTypes.object, snapGap: PropTypes.number, bounds: PropTypes.node as PropType,