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.
- package/dist/components/desktop/context/state/context.d.ts +5 -0
- package/dist/components/desktop/dock/dock.d.ts +5 -1
- package/dist/components/desktop/drag-trigger-pagination.d.ts +4 -0
- package/dist/components/desktop/modal/base-modal.d.ts +2 -0
- package/dist/components/desktop/sortable.d.ts +4 -0
- package/dist/index.css +1 -1
- package/dist/index.js +2115 -2048
- package/package.json +1 -1
|
@@ -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;
|
|
@@ -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;
|