weifuwu 0.67.2 → 0.68.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.
- package/README.md +6 -6
- package/dist/client/index.js +4 -4
- package/dist/client/types.d.ts +27 -0
- package/dist/components/AlertGroup/AlertGroup.d.ts +23 -0
- package/dist/components/AutoComplete/AutoComplete.d.ts +37 -0
- package/dist/components/FloatButton/FloatButton.d.ts +34 -0
- package/dist/components/Grid/Grid.d.ts +34 -0
- package/dist/components/Layout/Layout.d.ts +58 -0
- package/dist/components/Link/Link.d.ts +22 -0
- package/dist/components/NavMenu/NavMenu.d.ts +27 -0
- package/dist/components/Popconfirm/Popconfirm.d.ts +34 -0
- package/dist/components/Scrollbar/Scrollbar.d.ts +21 -0
- package/dist/components/Space/Space.d.ts +16 -0
- package/dist/components/StatCard/StatCard.d.ts +4 -0
- package/dist/components/index.d.ts +20 -0
- package/dist/components/index.js +15 -15
- package/dist/components/style.css +655 -13
- package/dist/index.js +54 -4
- package/dist/layout/weifuwu-layout.css +15 -2
- package/docs/compat-three-library.md +290 -0
- package/docs/components-map.md +22 -0
- package/package.json +1 -1
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* weifuwu/components — Scrollbar 自定义滚动容器
|
|
3
|
+
*
|
|
4
|
+
* 三库等价:EP Scrollbar / shadcn ScrollArea(容器滚动区域)。
|
|
5
|
+
* webkit 滚动条样式封装 + hover 显示:
|
|
6
|
+
*
|
|
7
|
+
* <Scrollbar maxHeight={300}>长内容</Scrollbar>
|
|
8
|
+
*
|
|
9
|
+
* 裁剪(CS-05):不做虚拟滚动/拖动滚动条 thumb(VirtualList 覆盖虚拟化)。
|
|
10
|
+
*/
|
|
11
|
+
import type { Component } from '../../client/vnode.ts';
|
|
12
|
+
export interface ScrollbarProps {
|
|
13
|
+
maxHeight?: number | string;
|
|
14
|
+
height?: number | string;
|
|
15
|
+
orientation?: 'vertical' | 'horizontal';
|
|
16
|
+
/** 常显滚动条(默认 hover 显示) */
|
|
17
|
+
always?: boolean;
|
|
18
|
+
children?: any;
|
|
19
|
+
style?: any;
|
|
20
|
+
}
|
|
21
|
+
export declare const Scrollbar: Component<ScrollbarProps>;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* weifuwu/components — Space 间距容器
|
|
3
|
+
*
|
|
4
|
+
* 三库等价:antd Space / EP Space。flex gap 布局原语组件化:
|
|
5
|
+
* size/direction/wrap/align + split 分隔符。
|
|
6
|
+
*/
|
|
7
|
+
import type { Component } from '../../client/vnode.ts';
|
|
8
|
+
export interface SpaceProps {
|
|
9
|
+
size?: number | 'sm' | 'md' | 'lg';
|
|
10
|
+
direction?: 'horizontal' | 'vertical';
|
|
11
|
+
wrap?: boolean;
|
|
12
|
+
align?: 'start' | 'center' | 'end' | 'baseline';
|
|
13
|
+
split?: any;
|
|
14
|
+
children?: any;
|
|
15
|
+
}
|
|
16
|
+
export declare const Space: Component<SpaceProps>;
|
|
@@ -9,5 +9,9 @@ export interface StatCardProps {
|
|
|
9
9
|
onClick?: () => void;
|
|
10
10
|
/** 数字从 0 递增动画(reduced-motion 下直接终值),仅数值类型生效 */
|
|
11
11
|
animate?: boolean;
|
|
12
|
+
/** 倒计时目标时间戳(ms)——显示剩余 HH:MM:SS(antd Statistic.Countdown 等价) */
|
|
13
|
+
countdown?: number;
|
|
14
|
+
/** 倒计时结束回调 */
|
|
15
|
+
onFinish?: () => void;
|
|
12
16
|
}
|
|
13
17
|
export declare const StatCard: Component<StatCardProps>;
|
|
@@ -203,3 +203,23 @@ export { Pipeline } from './Pipeline/Pipeline.ts';
|
|
|
203
203
|
export { layoutGraph, computeLayers, detectCycle } from './Pipeline/dag-utils.ts';
|
|
204
204
|
export { TreeSelect } from './TreeSelect/TreeSelect.ts';
|
|
205
205
|
export { findLabel } from './TreeSelect/TreeSelect.ts';
|
|
206
|
+
export { Layout, LayoutHeader, LayoutSider, LayoutContent, LayoutFooter } from './Layout/Layout.ts';
|
|
207
|
+
export type { LayoutProps, LayoutSiderProps } from './Layout/Layout.ts';
|
|
208
|
+
export { Popconfirm } from './Popconfirm/Popconfirm.ts';
|
|
209
|
+
export type { PopconfirmProps } from './Popconfirm/Popconfirm.ts';
|
|
210
|
+
export { AutoComplete, filterOptions } from './AutoComplete/AutoComplete.ts';
|
|
211
|
+
export type { AutoCompleteProps, AutoCompleteOption } from './AutoComplete/AutoComplete.ts';
|
|
212
|
+
export { Link } from './Link/Link.ts';
|
|
213
|
+
export type { LinkProps } from './Link/Link.ts';
|
|
214
|
+
export { FloatButton, FloatButtonGroup } from './FloatButton/FloatButton.ts';
|
|
215
|
+
export type { FloatButtonProps, FloatButtonGroupProps, FloatButtonPosition } from './FloatButton/FloatButton.ts';
|
|
216
|
+
export { NavMenu } from './NavMenu/NavMenu.ts';
|
|
217
|
+
export type { NavMenuProps, NavMenuItem } from './NavMenu/NavMenu.ts';
|
|
218
|
+
export { Space } from './Space/Space.ts';
|
|
219
|
+
export type { SpaceProps } from './Space/Space.ts';
|
|
220
|
+
export { Grid, Col, gridColumns } from './Grid/Grid.ts';
|
|
221
|
+
export type { GridProps, ColProps } from './Grid/Grid.ts';
|
|
222
|
+
export { Scrollbar } from './Scrollbar/Scrollbar.ts';
|
|
223
|
+
export type { ScrollbarProps } from './Scrollbar/Scrollbar.ts';
|
|
224
|
+
export { AlertGroup } from './AlertGroup/AlertGroup.ts';
|
|
225
|
+
export type { AlertGroupProps, AlertGroupItem } from './AlertGroup/AlertGroup.ts';
|