flowcloudai-ui 0.1.2 → 0.1.3
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/index.d.ts +6 -0
- package/dist/index.js +3 -1
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -498,6 +498,12 @@ interface TabBarProps {
|
|
|
498
498
|
tabActiveBackground?: string;
|
|
499
499
|
/** 激活态指示器颜色(attached 模式底线 / floating 模式无效) */
|
|
500
500
|
activeIndicatorColor?: string;
|
|
501
|
+
/**
|
|
502
|
+
* 将 TabBar 空白区域标记为 Tauri 窗口拖拽区域。
|
|
503
|
+
* 开启后,标签之外的空白处可拖动窗口;标签、关闭、添加按钮已内置 no-drag 保护。
|
|
504
|
+
* @default false
|
|
505
|
+
*/
|
|
506
|
+
tauriDragRegion?: boolean;
|
|
501
507
|
}
|
|
502
508
|
declare const TabBar: React__default.NamedExoticComponent<TabBarProps>;
|
|
503
509
|
|
package/dist/index.js
CHANGED
|
@@ -2209,6 +2209,7 @@ var TabBar = memo4(({
|
|
|
2209
2209
|
renderAddButton,
|
|
2210
2210
|
className = "",
|
|
2211
2211
|
style,
|
|
2212
|
+
tauriDragRegion = false,
|
|
2212
2213
|
background,
|
|
2213
2214
|
tabColor,
|
|
2214
2215
|
tabHoverColor,
|
|
@@ -2336,7 +2337,8 @@ var TabBar = memo4(({
|
|
|
2336
2337
|
children: renderAddButton ? renderAddButton() : "+"
|
|
2337
2338
|
}
|
|
2338
2339
|
);
|
|
2339
|
-
|
|
2340
|
+
const dragRegion = tauriDragRegion ? { "data-tauri-drag-region": "" } : {};
|
|
2341
|
+
return /* @__PURE__ */ jsx18("div", { className: rootClasses, style: mergedStyle, role: "tablist", ...dragRegion, children: /* @__PURE__ */ jsxs13("div", { className: `fc-tab-bar__nav-outer${scrollMode ? " fc-tab-bar__nav-outer--scroll" : ""}`, ...dragRegion, children: [
|
|
2340
2342
|
/* @__PURE__ */ jsx18("div", { className: `fc-tab-bar__nav${scrollMode ? " fc-tab-bar__nav--scroll" : ""}`, ref: navRef, children: scrollMode ? /* @__PURE__ */ jsx18(RollingBox, { horizontal: true, showThumb: "hide", style: { flex: 1, minWidth: 0, height: "auto" }, children: tabList }) : tabList }),
|
|
2341
2343
|
addBtn
|
|
2342
2344
|
] }) });
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "flowcloudai-ui",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"author": "flowcloudai",
|
|
6
6
|
"module": "dist/index.js",
|
|
@@ -19,8 +19,8 @@
|
|
|
19
19
|
"build": "tsup"
|
|
20
20
|
},
|
|
21
21
|
"peerDependencies": {
|
|
22
|
-
"react": "^
|
|
23
|
-
"react-dom": "^
|
|
22
|
+
"react": "^19",
|
|
23
|
+
"react-dom": "^19"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
26
|
"@types/react": "^19.2.14",
|