@ldkj/web-ui 0.16.2 → 0.17.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -28,13 +28,28 @@ export type SelectItemsProps = {
28
28
  labelProps?: Omit<SelectLabelProps, "children">;
29
29
  separatorProps?: SelectSeparatorProps;
30
30
  };
31
+ type SelectRootPrimitiveProps = React.ComponentPropsWithoutRef<typeof SelectPrimitive.Root>;
32
+ export type SelectProps = SelectRootPrimitiveProps & {
33
+ /**
34
+ * 是否在弹层打开时锁定页面滚动。
35
+ *
36
+ * 默认允许页面继续滚动;如需恢复 Radix Select 的模态行为,可设置为 `true`。
37
+ */
38
+ lockScroll?: boolean;
39
+ };
31
40
  export type SelectTriggerProps = StyledPrimitiveProps<React.ComponentPropsWithoutRef<typeof SelectPrimitive.Trigger>>;
32
41
  export type SelectScrollButtonProps = StyledPrimitiveProps<React.ComponentPropsWithoutRef<typeof SelectPrimitive.ScrollUpButton>>;
33
42
  export type SelectContentProps = StyledPrimitiveProps<React.ComponentPropsWithoutRef<typeof SelectPrimitive.Content>>;
34
43
  export type SelectLabelProps = StyledPrimitiveProps<React.ComponentPropsWithoutRef<typeof SelectPrimitive.Label>>;
35
44
  export type SelectItemProps = StyledPrimitiveProps<React.ComponentPropsWithoutRef<typeof SelectPrimitive.Item>>;
36
45
  export type SelectSeparatorProps = StyledPrimitiveProps<React.ComponentPropsWithoutRef<typeof SelectPrimitive.Separator>>;
37
- declare const Select: React.FC<SelectPrimitive.SelectProps>;
46
+ /**
47
+ * Select 根组件,默认不锁定页面滚动。
48
+ */
49
+ declare function Select(props: SelectProps): import("react/jsx-runtime").JSX.Element;
50
+ declare namespace Select {
51
+ var displayName: string;
52
+ }
38
53
  declare const SelectGroup: React.ForwardRefExoticComponent<SelectPrimitive.SelectGroupProps & React.RefAttributes<HTMLDivElement>>;
39
54
  declare const SelectValue: React.ForwardRefExoticComponent<SelectPrimitive.SelectValueProps & React.RefAttributes<HTMLSpanElement>>;
40
55
  /**