@fox-js/foxui-pc 4.1.1-27 → 4.1.1-29

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/style.css CHANGED
@@ -625,11 +625,11 @@
625
625
  }
626
626
 
627
627
  .fox-item {
628
- width: var(--fox-input-item-width, 100%);
628
+ width: var(--fox-input-item-width);
629
629
  min-width: var(--fox-input-item-min-width, 0);
630
630
  max-width: var(--fox-input-item-max-width);
631
631
  padding: var(--fox-input-item-padding, 0);
632
- margin: var(--fox-input-item-margin, 0 0 25px 0);
632
+ margin: var(--fox-input-item-margin);
633
633
  background: var(--fox-input-item-background-color);
634
634
  box-sizing: border-box;
635
635
  float: left;
@@ -809,7 +809,7 @@
809
809
 
810
810
  .fox-row-item {
811
811
  padding: var(--fox-input-item-padding, 0);
812
- margin: var(--fox-input-item-margin, 0 0 25px 0);
812
+ margin: var(--fox-input-item-margin);
813
813
  border: none;
814
814
  flex-flow: row;
815
815
  align-items: center;
@@ -2001,6 +2001,10 @@
2001
2001
  margin-top: 10px;
2002
2002
  }
2003
2003
 
2004
+ .fox-tabs-pane.is-no-transition {
2005
+ width: 100%;
2006
+ }
2007
+
2004
2008
  .fox-tabs-frame {
2005
2009
  box-sizing: border-box;
2006
2010
  display: grid;
package/dist/style.js CHANGED
@@ -1,3 +1,3 @@
1
1
  /*!
2
- * @fox-js/foxui-desktop v4.0.0 2026-03-26T15:56:38.653Z
2
+ * @fox-js/foxui-desktop v4.0.0 2026-04-07T04:00:20.727Z
3
3
  */
@@ -259,8 +259,24 @@ export declare interface BroadcastCallback {
259
259
  */
260
260
  export declare const BroadcastKey: unique symbol;
261
261
 
262
+ /**
263
+ * 浏览模式属性
264
+ * @param source
265
+ * @returns
266
+ */
267
+ export declare function browseProperty(source: Ref): Ref<'on' | 'off'>;
268
+
262
269
  export declare function cancelRaf(id: number): void;
263
270
 
271
+ /**
272
+ * clamp
273
+ * @param num
274
+ * @param min
275
+ * @param max
276
+ * @returns
277
+ */
278
+ export declare const clamp: (num: number, min: number, max: number) => number;
279
+
264
280
  /**
265
281
  * 清理非数字
266
282
  */
@@ -651,6 +667,21 @@ export declare function defineDataItem(domain: Domain, name: string, descriptor:
651
667
  */
652
668
  export declare function defineDomain(name: string | null, props: Record<string, any>, ignores?: any[], exposes?: Record<string, BroadcastCallback>): Domain;
653
669
 
670
+ /**
671
+ * 定义domain item属性
672
+ */
673
+ export declare function defineDomainItemProperty(props: {
674
+ disabled?: boolean | string;
675
+ readonly?: boolean | string;
676
+ browse?: 'off' | 'on';
677
+ }): {
678
+ innerDisabled: Ref<boolean, boolean>;
679
+ disabled: Ref<boolean, boolean>;
680
+ innerReadonly: Ref<boolean, boolean>;
681
+ readonly: Ref<boolean, boolean>;
682
+ browse: Ref<"off" | "on", "off" | "on">;
683
+ };
684
+
654
685
  /**
655
686
  * 定义domain item
656
687
  * @returns
@@ -704,7 +735,7 @@ declare type Direction = '' | 'vertical' | 'horizontal';
704
735
  * 禁用属性
705
736
  * @param source
706
737
  */
707
- export declare function disabledProperty(source: Ref): Ref;
738
+ export declare function disabledProperty(source: Ref): Ref<boolean>;
708
739
 
709
740
  export { divide }
710
741
 
@@ -1527,6 +1558,13 @@ export declare function isTouch(): boolean;
1527
1558
  */
1528
1559
  export declare function isWindow(obj: any): boolean;
1529
1560
 
1561
+ /**
1562
+ * 中划线格式转换为大驼峰
1563
+ * @param str
1564
+ * @returns
1565
+ */
1566
+ export declare function kebabToPascal(str: string): string;
1567
+
1530
1568
  /**
1531
1569
  * 获取对应元素的在数组中最后一个匹配的索引
1532
1570
  * @param x
@@ -1627,6 +1665,11 @@ export declare interface Padding {
1627
1665
  bottom: number | string | null;
1628
1666
  }
1629
1667
 
1668
+ /**
1669
+ * pad zero
1670
+ */
1671
+ export declare const padZero: (num: number | string, length?: number) => string;
1672
+
1630
1673
  /**
1631
1674
  * page layout
1632
1675
  */
@@ -1664,6 +1707,13 @@ export declare interface PageState {
1664
1707
  footerMounted?: boolean;
1665
1708
  }
1666
1709
 
1710
+ /**
1711
+ * 大驼峰转换为中划线
1712
+ * @param str
1713
+ * @returns
1714
+ */
1715
+ export declare function pascalToKebab<T extends string>(str: string): string;
1716
+
1667
1717
  /**
1668
1718
  * 持久消息
1669
1719
  */
@@ -1681,6 +1731,13 @@ export declare interface Point {
1681
1731
  y: number;
1682
1732
  }
1683
1733
 
1734
+ /**
1735
+ * prevent default
1736
+ * @param event
1737
+ * @param isStopPropagation
1738
+ */
1739
+ export declare function preventDefault(event: Event, isStopPropagation?: boolean): void;
1740
+
1684
1741
  /**
1685
1742
  * 优先策略
1686
1743
  */
@@ -1696,7 +1753,7 @@ export declare enum PriorityPolicy {
1696
1753
  * @param policy
1697
1754
  * @param filter
1698
1755
  */
1699
- export declare function property(source: Ref, name: string, policy?: PriorityPolicy, filter?: AcceptFilter): Ref;
1756
+ export declare function property<T>(source: Ref, name: string, policy?: PriorityPolicy, filter?: AcceptFilter): Ref<T>;
1700
1757
 
1701
1758
  /**
1702
1759
  * 设置虚拟页面范围
@@ -1718,7 +1775,7 @@ export declare const raf: any;
1718
1775
  * 只读属性
1719
1776
  * @param source
1720
1777
  */
1721
- export declare function readonlyProperty(source: Ref): Ref;
1778
+ export declare function readonlyProperty(source: Ref): Ref<boolean>;
1722
1779
 
1723
1780
  /**
1724
1781
  * Rect类型
@@ -2218,7 +2275,7 @@ export declare class ValidateSchema {
2218
2275
  export declare const ValidateSchemaKey: unique symbol;
2219
2276
 
2220
2277
  /**
2221
- * value 格式话
2278
+ * value 格式化
2222
2279
  */
2223
2280
  export declare interface ValueFormat<T, K> {
2224
2281
  (value: T): K;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@fox-js/foxui-pc",
3
3
  "type": "module",
4
- "version": "4.1.1-27",
4
+ "version": "4.1.1-29",
5
5
  "description": "FoxUI PC端组件库",
6
6
  "author": "jiangcheng",
7
7
  "main": "./dist/index.umd.js",