zs_library 0.6.7 → 0.6.9

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.
@@ -40,6 +40,11 @@ export interface SortableState {
40
40
  /** 当前拖拽的元素 */
41
41
  dragItem: SortItem | null;
42
42
  setDragItem: (e: SortItem | null) => void;
43
+ /** 当前滑块索引 */
44
+ currentSliderIndex: number;
45
+ setCurrentSliderIndex: (e: number) => void;
46
+ /** 当前页面数据(排除 dock) */
47
+ currentSliderPage: ListItem | null;
43
48
  }
44
49
  export declare const SortableStateContext: React.Context<SortableState>;
45
50
  export interface SortableStateProviderProps<D, C> {
@@ -45,6 +45,10 @@ export interface DockProps<D, C> {
45
45
  * dock 项目列表变更事件
46
46
  */
47
47
  onDockItemsChange?: (items: SortItem<D, C>[]) => void;
48
+ /**
49
+ * 图标尺寸
50
+ */
51
+ itemSize?: number;
48
52
  }
49
- declare const Dock: <D, C>({ items, fixedItems, position, className, itemBuilder, fixedItemBuilder, showLaunchpad, onLaunchpadClick, onDrop, onDockItemsChange, }: DockProps<D, C>) => import("react/jsx-runtime").JSX.Element | null;
53
+ declare const Dock: <D, C>({ items, fixedItems, position, className, itemBuilder, fixedItemBuilder, showLaunchpad, onLaunchpadClick, onDrop, onDockItemsChange, itemSize, }: DockProps<D, C>) => import("react/jsx-runtime").JSX.Element | null;
50
54
  export default Dock;
@@ -16,6 +16,10 @@ export interface DragTriggerPaginationProps {
16
16
  * 总页数
17
17
  */
18
18
  totalSlides: number;
19
+ /**
20
+ * 最大页数限制,达到后不显示触发分页组件
21
+ */
22
+ maxSlides?: number;
19
23
  /**
20
24
  * 是否正在拖拽
21
25
  */
@@ -12,6 +12,8 @@ export interface BaseModalProps {
12
12
  destroyOnClose?: boolean;
13
13
  closable?: boolean;
14
14
  footer?: ReactNode;
15
+ className?: string;
16
+ contentClassName?: string;
15
17
  }
16
18
  declare const BaseModal: (props: BaseModalProps) => import("react/jsx-runtime").JSX.Element;
17
19
  export default BaseModal;
@@ -18,6 +18,10 @@ export interface SortableProps<D, C> {
18
18
  * slider ref
19
19
  */
20
20
  sliderRef?: React.RefObject<Slider>;
21
+ /**
22
+ * 最大页数限制,达到后不再显示拖拽触发分页组件,也不创建新页面
23
+ */
24
+ maxSlides?: number;
21
25
  /**
22
26
  * 自定义 slider 配置
23
27
  * @see https://react-slick.neostack.com/docs/api