weifuwu 0.71.0 → 0.72.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 +58 -47
- package/dist/components/Accordion/Accordion.d.ts +1 -1
- package/dist/components/Affix/Affix.d.ts +1 -1
- package/dist/components/AiChat/AiChat.d.ts +2 -2
- package/dist/components/Alert/Alert.d.ts +1 -1
- package/dist/components/AlertGroup/AlertGroup.d.ts +1 -1
- package/dist/components/Anchor/Anchor.d.ts +1 -1
- package/dist/components/ApprovalCard/ApprovalCard.d.ts +1 -1
- package/dist/components/AspectRatio/AspectRatio.d.ts +1 -1
- package/dist/components/AutoComplete/AutoComplete.d.ts +1 -1
- package/dist/components/Avatar/Avatar.d.ts +1 -1
- package/dist/components/AvatarGroup/AvatarGroup.d.ts +1 -1
- package/dist/components/BackTop/BackTop.d.ts +1 -1
- package/dist/components/Badge/Badge.d.ts +1 -1
- package/dist/components/Breadcrumb/Breadcrumb.d.ts +1 -1
- package/dist/components/Button/Button.d.ts +1 -1
- package/dist/components/Calendar/Calendar.d.ts +1 -1
- package/dist/components/Card/Card.d.ts +1 -1
- package/dist/components/Carousel/Carousel.d.ts +1 -1
- package/dist/components/Cascader/Cascader.d.ts +1 -1
- package/dist/components/Chart/Chart.d.ts +1 -1
- package/dist/components/Checkbox/Checkbox.d.ts +1 -1
- package/dist/components/CheckboxGroup/CheckboxGroup.d.ts +1 -1
- package/dist/components/CodeBlock/CodeBlock.d.ts +1 -1
- package/dist/components/Collapse/Collapse.d.ts +1 -1
- package/dist/components/ColorPicker/ColorPicker.d.ts +1 -1
- package/dist/components/Command/Command.d.ts +1 -1
- package/dist/components/Confirm/Confirm.d.ts +2 -2
- package/dist/components/ContextMenu/ContextMenu.d.ts +1 -1
- package/dist/components/CopyButton/CopyButton.d.ts +1 -1
- package/dist/components/DatePicker/DatePicker.d.ts +1 -1
- package/dist/components/Descriptions/Descriptions.d.ts +1 -1
- package/dist/components/DiffView/DiffView.d.ts +1 -1
- package/dist/components/Divider/Divider.d.ts +1 -1
- package/dist/components/Drawer/Drawer.d.ts +1 -1
- package/dist/components/Dropdown/Dropdown.d.ts +1 -1
- package/dist/components/Editor/Editor.d.ts +1 -1
- package/dist/components/Editor/tools/toolbar.d.ts +1 -1
- package/dist/components/EmptyState/EmptyState.d.ts +1 -1
- package/dist/components/Field/Field.d.ts +1 -1
- package/dist/components/FileUpload/FileUpload.d.ts +1 -1
- package/dist/components/FloatButton/FloatButton.d.ts +1 -1
- package/dist/components/Form/Form.d.ts +1 -1
- package/dist/components/Grid/Grid.d.ts +1 -1
- package/dist/components/Highlight/Highlight.d.ts +1 -1
- package/dist/components/HoverCard/HoverCard.d.ts +2 -2
- package/dist/components/Icon/Icon.d.ts +1 -1
- package/dist/components/Img/Img.d.ts +1 -1
- package/dist/components/InView/InView.d.ts +1 -1
- package/dist/components/InfiniteScroll/InfiniteScroll.d.ts +1 -1
- package/dist/components/Input/Input.d.ts +1 -1
- package/dist/components/InputNumber/InputNumber.d.ts +1 -1
- package/dist/components/JSONViewer/JSONViewer.d.ts +1 -1
- package/dist/components/Kanban/Kanban.d.ts +1 -1
- package/dist/components/Label/Label.d.ts +1 -1
- package/dist/components/Layout/Layout.d.ts +1 -1
- package/dist/components/Link/Link.d.ts +1 -1
- package/dist/components/List/List.d.ts +1 -1
- package/dist/components/Loading/Loading.d.ts +1 -1
- package/dist/components/LogViewer/LogViewer.d.ts +1 -1
- package/dist/components/Markdown/Markdown.d.ts +1 -1
- package/dist/components/Mentions/Mentions.d.ts +1 -1
- package/dist/components/Menu/Menu.d.ts +1 -1
- package/dist/components/Menubar/Menubar.d.ts +1 -1
- package/dist/components/MessageBubble/MessageBubble.d.ts +1 -1
- package/dist/components/Modal/Modal.d.ts +1 -1
- package/dist/components/NavMenu/NavMenu.d.ts +1 -1
- package/dist/components/Notification/Notification.d.ts +2 -2
- package/dist/components/PageHeader/PageHeader.d.ts +1 -1
- package/dist/components/Pagination/Pagination.d.ts +1 -1
- package/dist/components/PasswordInput/PasswordInput.d.ts +1 -1
- package/dist/components/PinInput/PinInput.d.ts +1 -1
- package/dist/components/Pipeline/Pipeline.d.ts +1 -1
- package/dist/components/Popconfirm/Popconfirm.d.ts +2 -2
- package/dist/components/Popover/Popover.d.ts +2 -2
- package/dist/components/ProgressBar/ProgressBar.d.ts +1 -1
- package/dist/components/QRCode/QRCode.d.ts +1 -1
- package/dist/components/RadioGroup/RadioGroup.d.ts +1 -1
- package/dist/components/Rate/Rate.d.ts +1 -1
- package/dist/components/Resizable/Resizable.d.ts +1 -1
- package/dist/components/Result/Result.d.ts +1 -1
- package/dist/components/Scrollbar/Scrollbar.d.ts +1 -1
- package/dist/components/SearchInput/SearchInput.d.ts +1 -1
- package/dist/components/SegmentedControl/SegmentedControl.d.ts +1 -1
- package/dist/components/Select/Select.d.ts +1 -1
- package/dist/components/Skeleton/Skeleton.d.ts +1 -1
- package/dist/components/Slider/Slider.d.ts +1 -1
- package/dist/components/Space/Space.d.ts +1 -1
- package/dist/components/Sparkline/Sparkline.d.ts +1 -1
- package/dist/components/StatCard/StatCard.d.ts +1 -1
- package/dist/components/Steps/Steps.d.ts +1 -1
- package/dist/components/Switch/Switch.d.ts +1 -1
- package/dist/components/Table/Table.d.ts +1 -1
- package/dist/components/Tabs/Tabs.d.ts +1 -1
- package/dist/components/Tag/Tag.d.ts +1 -1
- package/dist/components/TagsInput/TagsInput.d.ts +1 -1
- package/dist/components/Textarea/Textarea.d.ts +1 -1
- package/dist/components/ThemeSwitch/ThemeSwitch.d.ts +1 -1
- package/dist/components/Timeline/Timeline.d.ts +1 -1
- package/dist/components/Toast/Toast.d.ts +2 -2
- package/dist/components/ToggleGroup/ToggleGroup.d.ts +1 -1
- package/dist/components/ToolCallCard/ToolCallCard.d.ts +1 -1
- package/dist/components/Tooltip/Tooltip.d.ts +2 -2
- package/dist/components/Tour/Tour.d.ts +1 -1
- package/dist/components/Transfer/Transfer.d.ts +1 -1
- package/dist/components/Tree/Tree.d.ts +1 -1
- package/dist/components/TreeSelect/TreeSelect.d.ts +1 -1
- package/dist/components/Typography/Typography.d.ts +1 -1
- package/dist/components/VirtualList/VirtualList.d.ts +1 -1
- package/dist/components/VirtualTable/VirtualTable.d.ts +1 -1
- package/dist/components/Watermark/Watermark.d.ts +1 -1
- package/dist/components/index.js +12 -12
- package/dist/dev/index.js +1 -1
- package/dist/index.js +4 -4
- package/dist/ui/index.d.ts +1 -1
- package/dist/ui/ssr-page.d.ts +1 -1
- package/dist/ui/ssr.d.ts +1 -1
- package/dist/ui-dom/Confirm.d.ts +44 -0
- package/dist/ui-dom/Notification.d.ts +70 -0
- package/dist/ui-dom/Toast.d.ts +43 -0
- package/dist/ui-dom/index.d.ts +33 -0
- package/dist/ui-dom/index.js +18 -0
- package/dist/ui-dom/jsx-runtime.d.ts +4 -0
- package/dist/ui-dom/jsx-runtime.js +1 -0
- package/dist/ui-dom/popup-tracker.d.ts +36 -0
- package/dist/ui-dom/registry.d.ts +39 -0
- package/dist/{client → ui-dom}/render.d.ts +2 -1
- package/dist/ui-dom/router.d.ts +66 -0
- package/dist/ui-dom/serve.d.ts +28 -0
- package/dist/ui-dom/ssr.d.ts +56 -0
- package/dist/{client → ui-dom}/types.d.ts +22 -0
- package/dist/{client → ui-dom}/ui.d.ts +2 -0
- package/dist/{client → ui-dom}/vnode.d.ts +13 -12
- package/docs/custom-components.md +2 -0
- package/docs/frontend-middleware.md +3 -1
- package/docs/frontend-ui-dom.md +110 -0
- package/docs/frontend.md +3 -1
- package/docs/realtime.md +2 -0
- package/docs/saas.md +2 -0
- package/package.json +7 -7
- package/dist/client/app.d.ts +0 -26
- package/dist/client/error-boundary.d.ts +0 -23
- package/dist/client/index.d.ts +0 -54
- package/dist/client/index.js +0 -6
- package/dist/client/registry.d.ts +0 -49
- package/dist/client/router.d.ts +0 -27
- package/dist/client/type-flow.test.d.ts +0 -7
- /package/dist/{client → ui-dom}/ai.d.ts +0 -0
- /package/dist/{client → ui-dom}/browser.d.ts +0 -0
- /package/dist/{client → ui-dom}/diff.d.ts +0 -0
- /package/dist/{client → ui-dom}/focus-trap.d.ts +0 -0
- /package/dist/{client → ui-dom}/hydration.d.ts +0 -0
- /package/dist/{client → ui-dom}/i18n.d.ts +0 -0
- /package/dist/{client → ui-dom}/locale/en_US.d.ts +0 -0
- /package/dist/{client → ui-dom}/locale/zh_CN.d.ts +0 -0
- /package/dist/{client → ui-dom}/middleware/api.d.ts +0 -0
- /package/dist/{client → ui-dom}/middleware/auth.d.ts +0 -0
- /package/dist/{client → ui-dom}/middleware/ws.d.ts +0 -0
- /package/dist/{client → ui-dom}/motion.d.ts +0 -0
- /package/dist/{client → ui-dom}/popup.d.ts +0 -0
- /package/dist/{client → ui-dom}/reactive.d.ts +0 -0
- /package/dist/{client → ui-dom}/route-match.d.ts +0 -0
- /package/dist/{client → ui-dom}/scroll-lock.d.ts +0 -0
- /package/dist/{client → ui-dom}/use-chat.d.ts +0 -0
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* h(Icon, { name: 'close' })
|
|
9
9
|
* h(Icon, { name: 'check', size: 16 })
|
|
10
10
|
*/
|
|
11
|
-
import type { Component } from '../../
|
|
11
|
+
import type { Component } from '../../ui-dom/vnode.ts';
|
|
12
12
|
export type IconName = 'chevron-down' | 'chevron-up' | 'chevron-left' | 'chevron-right' | 'arrow-left' | 'arrow-up' | 'arrow-down' | 'arrow-right' | 'sort' | 'sort-asc' | 'sort-desc' | 'check' | 'close' | 'alert' | 'info' | 'warning' | 'pause' | 'settings' | 'search' | 'send' | 'stop' | 'retry' | 'upload' | 'trash' | 'edit' | 'plus' | 'copy' | 'eye' | 'eye-off' | 'star' | 'dashboard' | 'grid' | 'box' | 'users' | 'user' | 'home' | 'folder' | 'file' | 'file-text' | 'calendar' | 'clock' | 'bell' | 'menu' | 'activity' | 'trending-up' | 'trending-down' | 'database' | 'server' | 'heart' | 'refresh' | 'message' | 'inbox' | 'shield' | 'zap' | 'target' | 'mail' | 'external-link' | 'log-out' | 'lock' | 'list' | 'bar-chart' | 'gauge' | 'paperclip' | 'filter' | 'layers' | 'map-pin' | 'book-open' | 'github' | 'tag' | 'phone' | 'more-vertical' | 'check-circle' | 'alert-circle' | 'wifi' | 'cpu' | 'hard-drive' | 'globe' | 'briefcase' | 'layout';
|
|
13
13
|
export interface IconProps {
|
|
14
14
|
name: IconName;
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* 进入视窗后替换占位符为真实内容。
|
|
5
5
|
* 实现:ctx.ui.useInView(IO 封装)——滚动/尺寸变化由合成器线程评估,无 scroll 监听。
|
|
6
6
|
*/
|
|
7
|
-
import type { Component } from '../../
|
|
7
|
+
import type { Component } from '../../ui-dom/vnode.ts';
|
|
8
8
|
export interface InViewProps {
|
|
9
9
|
once?: boolean;
|
|
10
10
|
threshold?: number;
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* 受控 value: number | null;空值 → null;输入 clamp 到 min/max。
|
|
6
6
|
* 裁剪:不做千分位货币(见 roadmap)。
|
|
7
7
|
*/
|
|
8
|
-
import type { Component } from '../../
|
|
8
|
+
import type { Component } from '../../ui-dom/vnode.ts';
|
|
9
9
|
export interface InputNumberProps {
|
|
10
10
|
value?: number | null;
|
|
11
11
|
onChange?: (value: number | null) => void;
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* 零依赖(无 raw JSON.parse 展示——VNode 渲染天然转义)。
|
|
6
6
|
* 裁剪:JSON 编辑、超大对象流式渲染(懒展开覆盖 100 键级)。
|
|
7
7
|
*/
|
|
8
|
-
import type { Component } from '../../
|
|
8
|
+
import type { Component } from '../../ui-dom/vnode.ts';
|
|
9
9
|
export interface JSONViewerProps {
|
|
10
10
|
data: unknown;
|
|
11
11
|
/** 默认展开深度(默认 2)——更深折叠为摘要 */
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
* - 响应式折叠交还用户:useBreakpoint 驱动 collapsed(裁剪:不自动抽屉化)
|
|
19
19
|
* - 静态外壳见 layout `_app-shell.css`(wf-app-shell/wf-sidebar/wf-main)
|
|
20
20
|
*/
|
|
21
|
-
import type { Component } from '../../
|
|
21
|
+
import type { Component } from '../../ui-dom/vnode.ts';
|
|
22
22
|
export interface LayoutProps {
|
|
23
23
|
style?: any;
|
|
24
24
|
className?: string;
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
*
|
|
9
9
|
* 裁剪(CS-05):不做 hover 弹层预览/图标内置枚举(icon 任意 VNode)。
|
|
10
10
|
*/
|
|
11
|
-
import type { Component } from '../../
|
|
11
|
+
import type { Component } from '../../ui-dom/vnode.ts';
|
|
12
12
|
export interface LinkProps {
|
|
13
13
|
href?: string;
|
|
14
14
|
variant?: 'default' | 'primary' | 'danger' | 'muted';
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* 通用列表:items + renderItem + header/footer/empty 占位。
|
|
5
5
|
* 定位:Table 大材小用的消息/文件/成员列表场景。
|
|
6
6
|
*/
|
|
7
|
-
import type { Component } from '../../
|
|
7
|
+
import type { Component } from '../../ui-dom/vnode.ts';
|
|
8
8
|
export interface ListProps<T = any> {
|
|
9
9
|
items: T[];
|
|
10
10
|
renderItem: (item: T, index: number) => any;
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* 复用 VirtualList 滚动基座(useScrollPosition + rAF 节流)。
|
|
6
6
|
* 裁剪:正则高亮、多日志源合并、搜索定位。
|
|
7
7
|
*/
|
|
8
|
-
import type { Component } from '../../
|
|
8
|
+
import type { Component } from '../../ui-dom/vnode.ts';
|
|
9
9
|
export interface LogViewerProps {
|
|
10
10
|
lines: string[];
|
|
11
11
|
/** 视口高度(px),默认 400 */
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* AI 回复/富文本渲染。安全子集解析 → VNode 渲染(天然转义,无 innerHTML 注入面)。
|
|
5
5
|
* 与 CodeBlock 组合渲染代码围栏。
|
|
6
6
|
*/
|
|
7
|
-
import type { Component } from '../../
|
|
7
|
+
import type { Component } from '../../ui-dom/vnode.ts';
|
|
8
8
|
import { type MdInline } from './parser.ts';
|
|
9
9
|
export interface MarkdownProps {
|
|
10
10
|
content: string;
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* 用于 SaaS 应用侧边导航(替代手写 nav-item 循环)。
|
|
6
6
|
* 裁剪:水平菜单栏(Menubar,独立组件)、子菜单自动互斥。折叠态子菜单浮层已实现(usePopup 基座)。
|
|
7
7
|
*/
|
|
8
|
-
import type { Component } from '../../
|
|
8
|
+
import type { Component } from '../../ui-dom/vnode.ts';
|
|
9
9
|
export interface MenuItem {
|
|
10
10
|
key: string;
|
|
11
11
|
label: any;
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* content 支持文本或任意 VNode(可与 Markdown 组合)。
|
|
7
7
|
* 裁剪:不做打字指示动画(Loading 已有)。
|
|
8
8
|
*/
|
|
9
|
-
import type { Component } from '../../
|
|
9
|
+
import type { Component } from '../../ui-dom/vnode.ts';
|
|
10
10
|
export type MessageBubbleRole = 'user' | 'assistant';
|
|
11
11
|
export type MessageBubbleStatus = 'complete' | 'streaming' | 'error';
|
|
12
12
|
export interface MessageBubbleProps {
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
* 裁剪(CS-05):不做 hover 延迟微调/子菜单动画曲线定制;
|
|
13
13
|
* 折叠态交还 useBreakpoint 由用户驱动。
|
|
14
14
|
*/
|
|
15
|
-
import type { Component } from '../../
|
|
15
|
+
import type { Component } from '../../ui-dom/vnode.ts';
|
|
16
16
|
export interface NavMenuItem {
|
|
17
17
|
key: string;
|
|
18
18
|
label?: any;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { Component } from '../../
|
|
2
|
-
import type { AppMiddleware } from '../../
|
|
1
|
+
import type { Component } from '../../ui-dom/vnode.ts';
|
|
2
|
+
import type { AppMiddleware } from '../../ui-dom/types.ts';
|
|
3
3
|
export type NotificationType = 'success' | 'error' | 'info' | 'warning';
|
|
4
4
|
export type NotificationPosition = 'top-right' | 'top-left' | 'bottom-right' | 'bottom-left';
|
|
5
5
|
export interface NotificationItem {
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* 密码输入:眼睛按钮切换可见性。Input 子集(label/error/hint/required/autoComplete 透传)。
|
|
5
5
|
*/
|
|
6
|
-
import type { Component } from '../../
|
|
6
|
+
import type { Component } from '../../ui-dom/vnode.ts';
|
|
7
7
|
export interface PasswordInputProps {
|
|
8
8
|
value?: string;
|
|
9
9
|
onInput?: (e: Event) => void;
|
|
@@ -13,8 +13,8 @@
|
|
|
13
13
|
* - 确认后自动关闭(onConfirm 后 setOpen(false))
|
|
14
14
|
* - 裁剪(CS-05):不做气泡内表单/自定义箭头
|
|
15
15
|
*/
|
|
16
|
-
import type { Component } from '../../
|
|
17
|
-
import type { Placement } from '../../
|
|
16
|
+
import type { Component } from '../../ui-dom/vnode.ts';
|
|
17
|
+
import type { Placement } from '../../ui-dom/popup.ts';
|
|
18
18
|
export interface PopconfirmProps {
|
|
19
19
|
title?: any;
|
|
20
20
|
okText?: string;
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
* usePopup 组合器:click/hover 双触发(hover 触屏自动降级 tap)+ 受控 open +
|
|
5
5
|
* 外部点击(document 级,取代原 overlay)+ 定位/视口 clamp + Escape + portal。
|
|
6
6
|
*/
|
|
7
|
-
import type { Component } from '../../
|
|
8
|
-
import type { Placement } from '../../
|
|
7
|
+
import type { Component } from '../../ui-dom/vnode.ts';
|
|
8
|
+
import type { Placement } from '../../ui-dom/popup.ts';
|
|
9
9
|
export type PopoverPosition = Placement;
|
|
10
10
|
export interface PopoverProps {
|
|
11
11
|
content?: any;
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* 用于注册完成/操作成功/404/403 页。
|
|
6
6
|
* 裁剪:不做内置路由跳转(页面自身处理)。
|
|
7
7
|
*/
|
|
8
|
-
import type { Component } from '../../
|
|
8
|
+
import type { Component } from '../../ui-dom/vnode.ts';
|
|
9
9
|
export type ResultStatus = 'success' | 'error' | 'warning' | 'info';
|
|
10
10
|
export interface ResultProps {
|
|
11
11
|
status?: ResultStatus;
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
*
|
|
9
9
|
* 裁剪(CS-05):不做虚拟滚动/拖动滚动条 thumb(VirtualList 覆盖虚拟化)。
|
|
10
10
|
*/
|
|
11
|
-
import type { Component } from '../../
|
|
11
|
+
import type { Component } from '../../ui-dom/vnode.ts';
|
|
12
12
|
export interface ScrollbarProps {
|
|
13
13
|
maxHeight?: number | string;
|
|
14
14
|
height?: number | string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* weifuwu/components — Skeleton
|
|
3
3
|
*/
|
|
4
|
-
import type { Component } from '../../
|
|
4
|
+
import type { Component } from '../../ui-dom/vnode.ts';
|
|
5
5
|
export type SkeletonVariant = 'text' | 'circle' | 'rect' | 'image' | 'avatar' | 'table';
|
|
6
6
|
export interface SkeletonProps {
|
|
7
7
|
variant?: SkeletonVariant;
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* 三库等价:antd Space / EP Space。flex gap 布局原语组件化:
|
|
5
5
|
* size/direction/wrap/align + split 分隔符。
|
|
6
6
|
*/
|
|
7
|
-
import type { Component } from '../../
|
|
7
|
+
import type { Component } from '../../ui-dom/vnode.ts';
|
|
8
8
|
export interface SpaceProps {
|
|
9
9
|
size?: number | 'sm' | 'md' | 'lg';
|
|
10
10
|
direction?: 'horizontal' | 'vertical';
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* 中文输入法 composition 感知(输入法候选词确认的 Enter 不触发添加)。
|
|
6
6
|
* 裁剪:不做下拉建议(组合 Select searchable)。
|
|
7
7
|
*/
|
|
8
|
-
import type { Component } from '../../
|
|
8
|
+
import type { Component } from '../../ui-dom/vnode.ts';
|
|
9
9
|
export interface TagsInputProps {
|
|
10
10
|
value?: string[];
|
|
11
11
|
onChange?: (tags: string[]) => void;
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* mount 时读取 localStorage 并立即应用(避免闪白);
|
|
11
11
|
* 用户选择后持久化。
|
|
12
12
|
*/
|
|
13
|
-
import type { Component } from '../../
|
|
13
|
+
import type { Component } from '../../ui-dom/vnode.ts';
|
|
14
14
|
export type ThemeMode = 'auto' | 'light' | 'dark';
|
|
15
15
|
export interface ThemeSwitchProps {
|
|
16
16
|
/** 初始模式(默认从 localStorage 读取,无记录时为 auto) */
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* 用于执行日志、审批历史、审计记录、步骤进度。
|
|
7
7
|
* 裁剪:不做折叠节点。
|
|
8
8
|
*/
|
|
9
|
-
import type { Component } from '../../
|
|
9
|
+
import type { Component } from '../../ui-dom/vnode.ts';
|
|
10
10
|
export type TimelineStatus = 'default' | 'info' | 'success' | 'warning' | 'error';
|
|
11
11
|
export interface TimelineItem {
|
|
12
12
|
key: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { Component } from '../../
|
|
2
|
-
import type { AppMiddleware } from '../../
|
|
1
|
+
import type { Component } from '../../ui-dom/vnode.ts';
|
|
2
|
+
import type { AppMiddleware } from '../../ui-dom/types.ts';
|
|
3
3
|
export type ToastType = 'success' | 'error' | 'info' | 'warning';
|
|
4
4
|
export type ToastPosition = 'top-right' | 'top-left' | 'bottom-right' | 'bottom-left' | 'top-center';
|
|
5
5
|
export interface ToastItem {
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
* usePopup 组合器:hover 触发(触屏自动降级 tap)+ 定位/视口 clamp + Escape + portal。
|
|
5
5
|
* 移动端友好由构造保证——tap 可显、44px 命中区走 base coarse 清单。
|
|
6
6
|
*/
|
|
7
|
-
import type { Component } from '../../
|
|
8
|
-
import type { Placement } from '../../
|
|
7
|
+
import type { Component } from '../../ui-dom/vnode.ts';
|
|
8
|
+
import type { Placement } from '../../ui-dom/popup.ts';
|
|
9
9
|
export type TooltipPosition = Placement;
|
|
10
10
|
export interface TooltipProps {
|
|
11
11
|
content: string;
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* 行选择:rowSelection(受控 selectedRowKeys + onChange,复选框列)。
|
|
8
8
|
* 裁剪:列虚拟化(横向)、行编辑、单元格合并、树形表格。
|
|
9
9
|
*/
|
|
10
|
-
import type { Component } from '../../
|
|
10
|
+
import type { Component } from '../../ui-dom/vnode.ts';
|
|
11
11
|
import type { TableColumn } from '../Table/Table.ts';
|
|
12
12
|
export interface VirtualTableProps {
|
|
13
13
|
columns: TableColumn[];
|