@ailife-dev-vue/uiplus 0.1.18-snapshot → 0.1.19-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.css +1 -1
- package/dist/index.d.ts +103 -11
- package/dist/index.mjs +17529 -16750
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -2377,6 +2377,26 @@ declare const tableLampSleepyProps: {
|
|
|
2377
2377
|
};
|
|
2378
2378
|
};
|
|
2379
2379
|
|
|
2380
|
+
export declare interface TextProps {
|
|
2381
|
+
/** 展示文案;text-or-key;解析 trim 为空则不渲染 */
|
|
2382
|
+
content?: string;
|
|
2383
|
+
/** 字号 px;未传或非法用主题默认 */
|
|
2384
|
+
fontSize?: number;
|
|
2385
|
+
/** 浅色主题文字色;空或非法时按深浅回退规则处理 */
|
|
2386
|
+
color?: string;
|
|
2387
|
+
/** 深色主题文字色;空或非法时按深浅回退规则处理 */
|
|
2388
|
+
darkColor?: string;
|
|
2389
|
+
/** 文案水平对齐:left / center / right;非法回退 left */
|
|
2390
|
+
textAlign?: TextTextAlign;
|
|
2391
|
+
/**
|
|
2392
|
+
* 是否套标准卡壳:白底 / 深色 #2a2b2f、16px 圆角、四向 16px 内边距。
|
|
2393
|
+
* 默认 false,保持无背景无圆角。
|
|
2394
|
+
*/
|
|
2395
|
+
showBackground?: boolean;
|
|
2396
|
+
}
|
|
2397
|
+
|
|
2398
|
+
export declare type TextTextAlign = 'left' | 'center' | 'right';
|
|
2399
|
+
|
|
2380
2400
|
export declare type TimerCardSize = 'full' | 'half';
|
|
2381
2401
|
|
|
2382
2402
|
declare type TimerCommandPayload = HilinkDeviceControlPayload;
|
|
@@ -2483,6 +2503,13 @@ declare const timeWheelPickerProps: {
|
|
|
2483
2503
|
|
|
2484
2504
|
export declare type TimeWheelPickerValue = Record<string, string | number>;
|
|
2485
2505
|
|
|
2506
|
+
/**
|
|
2507
|
+
* 大屏视口最小宽度(px)。
|
|
2508
|
+
* 须与 theme `$up-large-screen-min-width` / `@mixin up-large-screen` 保持一致
|
|
2509
|
+
*(`@media` 不宜依赖 CSS 变量)。
|
|
2510
|
+
*/
|
|
2511
|
+
export declare const UP_LARGE_SCREEN_MIN_WIDTH = 700;
|
|
2512
|
+
|
|
2486
2513
|
export declare const UpActionStatusbar: {
|
|
2487
2514
|
new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly<ExtractPropTypes< {
|
|
2488
2515
|
subscribesAction: {
|
|
@@ -2516,7 +2543,9 @@ export declare const UpActionStatusbar: {
|
|
|
2516
2543
|
subscribesAction: ProductSubscribe[];
|
|
2517
2544
|
subscribesStatus: ProductSubscribe[];
|
|
2518
2545
|
statusConfigs: ActionStatusbarStatusConfig[];
|
|
2519
|
-
}, true, {}, {}, GlobalComponents, GlobalDirectives, string, {
|
|
2546
|
+
}, true, {}, {}, GlobalComponents, GlobalDirectives, string, {
|
|
2547
|
+
middleRef: HTMLDivElement;
|
|
2548
|
+
}, HTMLDivElement, ComponentProvideOptions, {
|
|
2520
2549
|
P: {};
|
|
2521
2550
|
B: {};
|
|
2522
2551
|
D: {};
|
|
@@ -3786,6 +3815,7 @@ export declare const UpEnumStatus: {
|
|
|
3786
3815
|
contentRef: HTMLDivElement;
|
|
3787
3816
|
titleRef: HTMLDivElement;
|
|
3788
3817
|
statusRef: HTMLDivElement;
|
|
3818
|
+
detailHeaderLeftRef: HTMLDivElement;
|
|
3789
3819
|
}, HTMLDivElement, ComponentProvideOptions, {
|
|
3790
3820
|
P: {};
|
|
3791
3821
|
B: {};
|
|
@@ -3912,7 +3942,9 @@ export declare const UpEnumStatusGauge: {
|
|
|
3912
3942
|
currentLabel: string;
|
|
3913
3943
|
enumCount: number;
|
|
3914
3944
|
selectedIndex: number;
|
|
3915
|
-
}, true, {}, {}, GlobalComponents, GlobalDirectives, string, {
|
|
3945
|
+
}, true, {}, {}, GlobalComponents, GlobalDirectives, string, {
|
|
3946
|
+
centerRef: HTMLDivElement;
|
|
3947
|
+
}, HTMLDivElement, ComponentProvideOptions, {
|
|
3916
3948
|
P: {};
|
|
3917
3949
|
B: {};
|
|
3918
3950
|
D: {};
|
|
@@ -4102,7 +4134,9 @@ export declare const UpGeneralDisplayCard: {
|
|
|
4102
4134
|
subscribes: ProductSubscribe[];
|
|
4103
4135
|
cardSize: GeneralDisplayCardCardSize;
|
|
4104
4136
|
level: GeneralDisplayCardLevelConfig[];
|
|
4105
|
-
}, true, {}, {}, GlobalComponents, GlobalDirectives, string, {
|
|
4137
|
+
}, true, {}, {}, GlobalComponents, GlobalDirectives, string, {
|
|
4138
|
+
mainRef: HTMLDivElement;
|
|
4139
|
+
}, HTMLDivElement, ComponentProvideOptions, {
|
|
4106
4140
|
P: {};
|
|
4107
4141
|
B: {};
|
|
4108
4142
|
D: {};
|
|
@@ -4925,7 +4959,9 @@ export declare const UpGeneralIntCircular: {
|
|
|
4925
4959
|
displayUnit: string;
|
|
4926
4960
|
wheelLoop: boolean;
|
|
4927
4961
|
dialogSubtitle: string;
|
|
4928
|
-
}, true, {}, {}, GlobalComponents, GlobalDirectives, string, {
|
|
4962
|
+
}, true, {}, {}, GlobalComponents, GlobalDirectives, string, {
|
|
4963
|
+
textRef: HTMLDivElement;
|
|
4964
|
+
}, HTMLDivElement, ComponentProvideOptions, {
|
|
4929
4965
|
P: {};
|
|
4930
4966
|
B: {};
|
|
4931
4967
|
D: {};
|
|
@@ -5217,7 +5253,10 @@ export declare const UpGeneralScreen: {
|
|
|
5217
5253
|
};
|
|
5218
5254
|
}>> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
|
|
5219
5255
|
filterElementItemConfigs: GeneralScreenFilterElementItemConfig[];
|
|
5220
|
-
}, true, {}, {}, GlobalComponents, GlobalDirectives, string, {
|
|
5256
|
+
}, true, {}, {}, GlobalComponents, GlobalDirectives, string, {
|
|
5257
|
+
detailHeaderLeftRef: HTMLDivElement;
|
|
5258
|
+
tutorialHeaderLeftRef: HTMLDivElement;
|
|
5259
|
+
}, any, ComponentProvideOptions, {
|
|
5221
5260
|
P: {};
|
|
5222
5261
|
B: {};
|
|
5223
5262
|
D: {};
|
|
@@ -5326,7 +5365,9 @@ export declare const UpGeneralTimeSwitch: {
|
|
|
5326
5365
|
readonly icon: string[];
|
|
5327
5366
|
readonly subscribesSecond: ProductSubscribe[];
|
|
5328
5367
|
readonly wheelUnit: GeneralTimeSwitchWheelUnit;
|
|
5329
|
-
}, true, {}, {}, GlobalComponents, GlobalDirectives, string, {
|
|
5368
|
+
}, true, {}, {}, GlobalComponents, GlobalDirectives, string, {
|
|
5369
|
+
textRef: HTMLDivElement;
|
|
5370
|
+
}, HTMLDivElement, ComponentProvideOptions, {
|
|
5330
5371
|
P: {};
|
|
5331
5372
|
B: {};
|
|
5332
5373
|
D: {};
|
|
@@ -6303,7 +6344,7 @@ export declare const UpStatisticChart: {
|
|
|
6303
6344
|
showLastValidValue: boolean;
|
|
6304
6345
|
}, true, {}, {}, GlobalComponents, GlobalDirectives, string, {
|
|
6305
6346
|
chartEl: HTMLDivElement;
|
|
6306
|
-
},
|
|
6347
|
+
}, any, ComponentProvideOptions, {
|
|
6307
6348
|
P: {};
|
|
6308
6349
|
B: {};
|
|
6309
6350
|
D: {};
|
|
@@ -6518,7 +6559,10 @@ export declare const UpStatusBar: {
|
|
|
6518
6559
|
showMiddleWhenOff: boolean;
|
|
6519
6560
|
middleAsTimeFormat: boolean;
|
|
6520
6561
|
middleTimeUnit: StatusBarMiddleTimeUnit;
|
|
6521
|
-
}, true, {}, {}, GlobalComponents, GlobalDirectives, string, {
|
|
6562
|
+
}, true, {}, {}, GlobalComponents, GlobalDirectives, string, {
|
|
6563
|
+
middleRef: HTMLDivElement;
|
|
6564
|
+
middlePrimaryRef: HTMLDivElement;
|
|
6565
|
+
}, HTMLDivElement, ComponentProvideOptions, {
|
|
6522
6566
|
P: {};
|
|
6523
6567
|
B: {};
|
|
6524
6568
|
D: {};
|
|
@@ -7008,6 +7052,7 @@ export declare const UpSubPageGroup: {
|
|
|
7008
7052
|
readonly leftIcon: string[];
|
|
7009
7053
|
readonly defTitle: WheelZoneTextEntry;
|
|
7010
7054
|
}, true, {}, {}, GlobalComponents, GlobalDirectives, string, {
|
|
7055
|
+
titleWrapRef: HTMLDivElement;
|
|
7011
7056
|
dropzoneRef: HTMLDivElement;
|
|
7012
7057
|
}, HTMLDivElement, ComponentProvideOptions, {
|
|
7013
7058
|
P: {};
|
|
@@ -7305,7 +7350,10 @@ export declare const UpTableLampMorning: {
|
|
|
7305
7350
|
}, PublicProps, {
|
|
7306
7351
|
title: string;
|
|
7307
7352
|
cardSize: TableLampMorningCardSize;
|
|
7308
|
-
}, true, {}, {}, GlobalComponents, GlobalDirectives, string, {
|
|
7353
|
+
}, true, {}, {}, GlobalComponents, GlobalDirectives, string, {
|
|
7354
|
+
contentRef: HTMLDivElement;
|
|
7355
|
+
detailHeaderLeftRef: HTMLDivElement;
|
|
7356
|
+
}, HTMLDivElement, ComponentProvideOptions, {
|
|
7309
7357
|
P: {};
|
|
7310
7358
|
B: {};
|
|
7311
7359
|
D: {};
|
|
@@ -7375,7 +7423,10 @@ export declare const UpTableLampNightWake: {
|
|
|
7375
7423
|
cardSize: TableLampNightWakeCardSize;
|
|
7376
7424
|
showDetailHint: boolean;
|
|
7377
7425
|
detailHint: string;
|
|
7378
|
-
}, true, {}, {}, GlobalComponents, GlobalDirectives, string, {
|
|
7426
|
+
}, true, {}, {}, GlobalComponents, GlobalDirectives, string, {
|
|
7427
|
+
contentRef: HTMLDivElement;
|
|
7428
|
+
detailHeaderLeftRef: HTMLDivElement;
|
|
7429
|
+
}, HTMLDivElement, ComponentProvideOptions, {
|
|
7379
7430
|
P: {};
|
|
7380
7431
|
B: {};
|
|
7381
7432
|
D: {};
|
|
@@ -7455,7 +7506,10 @@ export declare const UpTableLampSleepy: {
|
|
|
7455
7506
|
}, PublicProps, {
|
|
7456
7507
|
title: string;
|
|
7457
7508
|
cardSize: TableLampSleepyCardSize;
|
|
7458
|
-
}, true, {}, {}, GlobalComponents, GlobalDirectives, string, {
|
|
7509
|
+
}, true, {}, {}, GlobalComponents, GlobalDirectives, string, {
|
|
7510
|
+
contentRef: HTMLDivElement;
|
|
7511
|
+
detailHeaderLeftRef: HTMLDivElement;
|
|
7512
|
+
}, HTMLDivElement, ComponentProvideOptions, {
|
|
7459
7513
|
P: {};
|
|
7460
7514
|
B: {};
|
|
7461
7515
|
D: {};
|
|
@@ -7498,6 +7552,38 @@ title: string;
|
|
|
7498
7552
|
cardSize: TableLampSleepyCardSize;
|
|
7499
7553
|
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & Plugin_2;
|
|
7500
7554
|
|
|
7555
|
+
export declare const UpText: {
|
|
7556
|
+
new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly<TextProps> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
|
|
7557
|
+
color: string;
|
|
7558
|
+
content: string;
|
|
7559
|
+
textAlign: TextTextAlign;
|
|
7560
|
+
darkColor: string;
|
|
7561
|
+
showBackground: boolean;
|
|
7562
|
+
}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
|
|
7563
|
+
P: {};
|
|
7564
|
+
B: {};
|
|
7565
|
+
D: {};
|
|
7566
|
+
C: {};
|
|
7567
|
+
M: {};
|
|
7568
|
+
Defaults: {};
|
|
7569
|
+
}, Readonly<TextProps> & Readonly<{}>, {}, {}, {}, {}, {
|
|
7570
|
+
color: string;
|
|
7571
|
+
content: string;
|
|
7572
|
+
textAlign: TextTextAlign;
|
|
7573
|
+
darkColor: string;
|
|
7574
|
+
showBackground: boolean;
|
|
7575
|
+
}>;
|
|
7576
|
+
__isFragment?: never;
|
|
7577
|
+
__isTeleport?: never;
|
|
7578
|
+
__isSuspense?: never;
|
|
7579
|
+
} & ComponentOptionsBase<Readonly<TextProps> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
|
|
7580
|
+
color: string;
|
|
7581
|
+
content: string;
|
|
7582
|
+
textAlign: TextTextAlign;
|
|
7583
|
+
darkColor: string;
|
|
7584
|
+
showBackground: boolean;
|
|
7585
|
+
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & Plugin_2;
|
|
7586
|
+
|
|
7501
7587
|
export declare const UpTimer: {
|
|
7502
7588
|
new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly<ExtractPropTypes< {
|
|
7503
7589
|
cardSize: {
|
|
@@ -7965,6 +8051,12 @@ export declare const useGlobalI18n: () => {
|
|
|
7965
8051
|
resolveTextByKey: (key: string, fallback?: string) => string;
|
|
7966
8052
|
};
|
|
7967
8053
|
|
|
8054
|
+
/**
|
|
8055
|
+
* 是否为大屏:视口宽度 ≥ {@link UP_LARGE_SCREEN_MIN_WIDTH}。
|
|
8056
|
+
* 供 UpCards 及后续需适配大屏的组件统一使用。
|
|
8057
|
+
*/
|
|
8058
|
+
export declare function useLargeScreen(): Ref<boolean>;
|
|
8059
|
+
|
|
7968
8060
|
/**
|
|
7969
8061
|
* Hook to access i18n translations for a specific component.
|
|
7970
8062
|
* Usage: const { t } = useLocale('enum-droplist-card')
|