@ailife-dev-vue/uiplus 0.0.5 → 0.0.6-snapshot

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 CHANGED
@@ -22,30 +22,22 @@ import { VNodeProps } from 'vue';
22
22
 
23
23
  export declare type ActionStatusbarCommandPayload = HilinkDeviceControlPayload;
24
24
 
25
- declare interface ActionStatusbarConfirmDialogConfig {
25
+ export declare interface ActionStatusbarConfirmDialogConfig {
26
26
  enabled?: boolean;
27
- /** 仅支持 i18n key,不支持直接传展示文案 */
27
+ /** 仅支持 i18n key,不支持直接传展示文案;0/1 点击共用 */
28
28
  content?: string;
29
29
  }
30
30
 
31
31
  export declare type ActionStatusbarProps = ExtractPropTypes<typeof actionStatusbarProps>;
32
32
 
33
33
  declare const actionStatusbarProps: {
34
- subscribes: {
34
+ subscribesCenter: {
35
35
  type: PropType<ProductSubscribe[]>;
36
36
  default: () => never[];
37
37
  };
38
- status: {
39
- type: PropType<ActionStatusbarState>;
40
- default: number;
41
- };
42
- showSecondStatus: {
43
- type: BooleanConstructor;
44
- default: boolean;
45
- };
46
- secondStatus: {
47
- type: PropType<ActionStatusbarState>;
48
- default: undefined;
38
+ statusConfigs: {
39
+ type: PropType<Partial<Record<number | string, ActionStatusbarStatusConfig>>>;
40
+ default: () => {};
49
41
  };
50
42
  showMiddle: {
51
43
  type: BooleanConstructor;
@@ -55,14 +47,17 @@ declare const actionStatusbarProps: {
55
47
  type: BooleanConstructor;
56
48
  default: boolean;
57
49
  };
58
- actionConfirmDialogs: {
59
- type: PropType<Partial<Record<ActionStatusbarState, ActionStatusbarConfirmDialogConfig>>>;
60
- default: () => {};
61
- };
62
50
  };
63
51
 
64
52
  export declare type ActionStatusbarState = 0 | 1 | 2;
65
53
 
54
+ export declare interface ActionStatusbarStatusConfig {
55
+ status: ActionStatusbarState;
56
+ showSecondStatus?: boolean;
57
+ secondStatus?: ActionStatusbarState;
58
+ confirmDialog?: ActionStatusbarConfirmDialogConfig;
59
+ }
60
+
66
61
  /** 与 `sendHilinkDeviceControl` / `window.hilink._deviceControlInner` 约定一致 */
67
62
  declare type BoolIconCardCommandPayload = HilinkDeviceControlPayload;
68
63
  export { BoolIconCardCommandPayload }
@@ -1579,6 +1574,10 @@ declare const statusBarProps: {
1579
1574
  type: PropType<ProductSubscribe[]>;
1580
1575
  default: () => never[];
1581
1576
  };
1577
+ subscribesCenter: {
1578
+ type: PropType<ProductSubscribe[]>;
1579
+ default: () => never[];
1580
+ };
1582
1581
  showMiddle: {
1583
1582
  type: BooleanConstructor;
1584
1583
  default: boolean;
@@ -1770,21 +1769,13 @@ export declare type TimeWheelPickerValue = Record<string, string | number>;
1770
1769
 
1771
1770
  export declare const UpActionStatusbar: {
1772
1771
  new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly<ExtractPropTypes< {
1773
- subscribes: {
1772
+ subscribesCenter: {
1774
1773
  type: PropType<ProductSubscribe[]>;
1775
1774
  default: () => never[];
1776
1775
  };
1777
- status: {
1778
- type: PropType<ActionStatusbarState>;
1779
- default: number;
1780
- };
1781
- showSecondStatus: {
1782
- type: BooleanConstructor;
1783
- default: boolean;
1784
- };
1785
- secondStatus: {
1786
- type: PropType<ActionStatusbarState>;
1787
- default: undefined;
1776
+ statusConfigs: {
1777
+ type: PropType<Partial<Record<number | string, ActionStatusbarStatusConfig>>>;
1778
+ default: () => {};
1788
1779
  };
1789
1780
  showMiddle: {
1790
1781
  type: BooleanConstructor;
@@ -1794,18 +1785,11 @@ export declare const UpActionStatusbar: {
1794
1785
  type: BooleanConstructor;
1795
1786
  default: boolean;
1796
1787
  };
1797
- actionConfirmDialogs: {
1798
- type: PropType<Partial<Record<ActionStatusbarState, ActionStatusbarConfirmDialogConfig>>>;
1799
- default: () => {};
1800
- };
1801
1788
  }>> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
1802
- subscribes: ProductSubscribe[];
1803
- status: ActionStatusbarState;
1789
+ subscribesCenter: ProductSubscribe[];
1804
1790
  showMiddle: boolean;
1805
1791
  showMiddleWhenOff: boolean;
1806
- showSecondStatus: boolean;
1807
- secondStatus: ActionStatusbarState;
1808
- actionConfirmDialogs: Partial<Record<ActionStatusbarState, ActionStatusbarConfirmDialogConfig>>;
1792
+ statusConfigs: Partial<Record<string | number, ActionStatusbarStatusConfig>>;
1809
1793
  }, true, {}, {}, GlobalComponents, GlobalDirectives, string, {}, HTMLDivElement, ComponentProvideOptions, {
1810
1794
  P: {};
1811
1795
  B: {};
@@ -1814,21 +1798,13 @@ export declare const UpActionStatusbar: {
1814
1798
  M: {};
1815
1799
  Defaults: {};
1816
1800
  }, Readonly<ExtractPropTypes< {
1817
- subscribes: {
1801
+ subscribesCenter: {
1818
1802
  type: PropType<ProductSubscribe[]>;
1819
1803
  default: () => never[];
1820
1804
  };
1821
- status: {
1822
- type: PropType<ActionStatusbarState>;
1823
- default: number;
1824
- };
1825
- showSecondStatus: {
1826
- type: BooleanConstructor;
1827
- default: boolean;
1828
- };
1829
- secondStatus: {
1830
- type: PropType<ActionStatusbarState>;
1831
- default: undefined;
1805
+ statusConfigs: {
1806
+ type: PropType<Partial<Record<number | string, ActionStatusbarStatusConfig>>>;
1807
+ default: () => {};
1832
1808
  };
1833
1809
  showMiddle: {
1834
1810
  type: BooleanConstructor;
@@ -1838,38 +1814,23 @@ export declare const UpActionStatusbar: {
1838
1814
  type: BooleanConstructor;
1839
1815
  default: boolean;
1840
1816
  };
1841
- actionConfirmDialogs: {
1842
- type: PropType<Partial<Record<ActionStatusbarState, ActionStatusbarConfirmDialogConfig>>>;
1843
- default: () => {};
1844
- };
1845
1817
  }>> & Readonly<{}>, {}, {}, {}, {}, {
1846
- subscribes: ProductSubscribe[];
1847
- status: ActionStatusbarState;
1818
+ subscribesCenter: ProductSubscribe[];
1848
1819
  showMiddle: boolean;
1849
1820
  showMiddleWhenOff: boolean;
1850
- showSecondStatus: boolean;
1851
- secondStatus: ActionStatusbarState;
1852
- actionConfirmDialogs: Partial<Record<ActionStatusbarState, ActionStatusbarConfirmDialogConfig>>;
1821
+ statusConfigs: Partial<Record<string | number, ActionStatusbarStatusConfig>>;
1853
1822
  }>;
1854
1823
  __isFragment?: never;
1855
1824
  __isTeleport?: never;
1856
1825
  __isSuspense?: never;
1857
1826
  } & ComponentOptionsBase<Readonly<ExtractPropTypes< {
1858
- subscribes: {
1827
+ subscribesCenter: {
1859
1828
  type: PropType<ProductSubscribe[]>;
1860
1829
  default: () => never[];
1861
1830
  };
1862
- status: {
1863
- type: PropType<ActionStatusbarState>;
1864
- default: number;
1865
- };
1866
- showSecondStatus: {
1867
- type: BooleanConstructor;
1868
- default: boolean;
1869
- };
1870
- secondStatus: {
1871
- type: PropType<ActionStatusbarState>;
1872
- default: undefined;
1831
+ statusConfigs: {
1832
+ type: PropType<Partial<Record<number | string, ActionStatusbarStatusConfig>>>;
1833
+ default: () => {};
1873
1834
  };
1874
1835
  showMiddle: {
1875
1836
  type: BooleanConstructor;
@@ -1879,18 +1840,11 @@ showMiddleWhenOff: {
1879
1840
  type: BooleanConstructor;
1880
1841
  default: boolean;
1881
1842
  };
1882
- actionConfirmDialogs: {
1883
- type: PropType<Partial<Record<ActionStatusbarState, ActionStatusbarConfirmDialogConfig>>>;
1884
- default: () => {};
1885
- };
1886
1843
  }>> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
1887
- subscribes: ProductSubscribe[];
1888
- status: ActionStatusbarState;
1844
+ subscribesCenter: ProductSubscribe[];
1889
1845
  showMiddle: boolean;
1890
1846
  showMiddleWhenOff: boolean;
1891
- showSecondStatus: boolean;
1892
- secondStatus: ActionStatusbarState;
1893
- actionConfirmDialogs: Partial<Record<ActionStatusbarState, ActionStatusbarConfirmDialogConfig>>;
1847
+ statusConfigs: Partial<Record<string | number, ActionStatusbarStatusConfig>>;
1894
1848
  }, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
1895
1849
  $slots: {
1896
1850
  middle?(_: {}): any;
@@ -4763,6 +4717,10 @@ export declare const UpStatusBar: {
4763
4717
  type: PropType<ProductSubscribe[]>;
4764
4718
  default: () => never[];
4765
4719
  };
4720
+ subscribesCenter: {
4721
+ type: PropType<ProductSubscribe[]>;
4722
+ default: () => never[];
4723
+ };
4766
4724
  showMiddle: {
4767
4725
  type: BooleanConstructor;
4768
4726
  default: boolean;
@@ -4813,6 +4771,7 @@ export declare const UpStatusBar: {
4813
4771
  closeDialogShowTitle: boolean;
4814
4772
  closeDialogTitle: string;
4815
4773
  closeDialogContent: string;
4774
+ subscribesCenter: ProductSubscribe[];
4816
4775
  showMiddle: boolean;
4817
4776
  showMiddleWhenOff: boolean;
4818
4777
  }, true, {}, {}, GlobalComponents, GlobalDirectives, string, {}, HTMLDivElement, ComponentProvideOptions, {
@@ -4827,6 +4786,10 @@ export declare const UpStatusBar: {
4827
4786
  type: PropType<ProductSubscribe[]>;
4828
4787
  default: () => never[];
4829
4788
  };
4789
+ subscribesCenter: {
4790
+ type: PropType<ProductSubscribe[]>;
4791
+ default: () => never[];
4792
+ };
4830
4793
  showMiddle: {
4831
4794
  type: BooleanConstructor;
4832
4795
  default: boolean;
@@ -4877,6 +4840,7 @@ export declare const UpStatusBar: {
4877
4840
  closeDialogShowTitle: boolean;
4878
4841
  closeDialogTitle: string;
4879
4842
  closeDialogContent: string;
4843
+ subscribesCenter: ProductSubscribe[];
4880
4844
  showMiddle: boolean;
4881
4845
  showMiddleWhenOff: boolean;
4882
4846
  }>;
@@ -4888,6 +4852,10 @@ subscribes: {
4888
4852
  type: PropType<ProductSubscribe[]>;
4889
4853
  default: () => never[];
4890
4854
  };
4855
+ subscribesCenter: {
4856
+ type: PropType<ProductSubscribe[]>;
4857
+ default: () => never[];
4858
+ };
4891
4859
  showMiddle: {
4892
4860
  type: BooleanConstructor;
4893
4861
  default: boolean;
@@ -4938,6 +4906,7 @@ enableCloseDialog: boolean;
4938
4906
  closeDialogShowTitle: boolean;
4939
4907
  closeDialogTitle: string;
4940
4908
  closeDialogContent: string;
4909
+ subscribesCenter: ProductSubscribe[];
4941
4910
  showMiddle: boolean;
4942
4911
  showMiddleWhenOff: boolean;
4943
4912
  }, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {