@ailife-dev-vue/uiplus-dev 0.1.34 → 0.1.36

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
@@ -656,6 +656,10 @@ export declare const enUS: {
656
656
  pageRouter: {
657
657
  defaultTitle: string;
658
658
  };
659
+ generalRedirect: {
660
+ defaultTitle: string;
661
+ defaultSubtitle: string;
662
+ };
659
663
  enumControl: {
660
664
  prev: string;
661
665
  next: string;
@@ -1651,6 +1655,36 @@ declare const generalModeProps: {
1651
1655
  };
1652
1656
  };
1653
1657
 
1658
+ export declare type GeneralRedirectProps = ExtractPropTypes<typeof generalRedirectProps>;
1659
+
1660
+ declare const generalRedirectProps: {
1661
+ /** 主标题 text-or-key;空则回退库内 `generalRedirect.defaultTitle` */
1662
+ readonly title: {
1663
+ readonly type: StringConstructor;
1664
+ readonly default: "";
1665
+ };
1666
+ /** 副标题 text-or-key;空则回退库内 `generalRedirect.defaultSubtitle` */
1667
+ readonly subtitle: {
1668
+ readonly type: StringConstructor;
1669
+ readonly default: "";
1670
+ };
1671
+ /** 传给 startApp 第三参 JSON 的 appLink;纯字符串,不走 i18n */
1672
+ readonly appLink: {
1673
+ readonly type: StringConstructor;
1674
+ readonly default: "";
1675
+ };
1676
+ /** 应用包名,作为 startApp 第一参;纯字符串,不走 i18n */
1677
+ readonly packageName: {
1678
+ readonly type: StringConstructor;
1679
+ readonly default: "";
1680
+ };
1681
+ /** 可选;2 或 4 项 URL,后缀 on/off/DarkOn/DarkOff;未配置或全 custom 时用内置 ic_enum */
1682
+ readonly icon: {
1683
+ readonly type: PropType<string[]>;
1684
+ readonly default: undefined;
1685
+ };
1686
+ };
1687
+
1654
1688
  export declare interface GeneralReminderEnumConfig {
1655
1689
  enumVal: string;
1656
1690
  /** i18n key */
@@ -2091,6 +2125,42 @@ declare const numericInputSheetProps: {
2091
2125
  };
2092
2126
  };
2093
2127
 
2128
+ export declare type PageBarNewDialogConfig = {
2129
+ rules: PageBarNewDialogRule[];
2130
+ dialog: PageBarNewDialogPresentation;
2131
+ };
2132
+
2133
+ declare type PageBarNewDialogEnumRule = {
2134
+ sid: string;
2135
+ cid: string;
2136
+ type: 'enum' | 'bool';
2137
+ prodId?: string;
2138
+ enumValues: Array<string | number>;
2139
+ };
2140
+
2141
+ declare type PageBarNewDialogNumericOperator = '>' | '<' | '=' | '>=' | '<=';
2142
+
2143
+ declare type PageBarNewDialogNumericRule = {
2144
+ sid: string;
2145
+ cid: string;
2146
+ type: 'int' | 'float';
2147
+ prodId?: string;
2148
+ operator: PageBarNewDialogNumericOperator;
2149
+ value: number;
2150
+ };
2151
+
2152
+ export declare type PageBarNewDialogPresentation = {
2153
+ type: 'icon-text' | 'title-text';
2154
+ /** 与 UpBoolIconCard `icon` 相同:2 或 4 项 URL(on/off/DarkOn/DarkOff) */
2155
+ icons?: string[];
2156
+ /** title-text 标题;text-or-key */
2157
+ title?: string;
2158
+ /** 弹框正文;text-or-key */
2159
+ text?: string;
2160
+ };
2161
+
2162
+ export declare type PageBarNewDialogRule = PageBarNewDialogEnumRule | PageBarNewDialogNumericRule;
2163
+
2094
2164
  export declare type PageBarNewEmits = {
2095
2165
  (e: 'first-card-click'): void;
2096
2166
  (e: 'second-card-click'): void;
@@ -2177,6 +2247,14 @@ declare const pageBarNewProps: {
2177
2247
  type: StringConstructor;
2178
2248
  default: string;
2179
2249
  };
2250
+ /**
2251
+ * 条件弹框配置:每组 rules 为 AND;全部满足时在上升沿弹出一次 UpSheetDialog。
2252
+ * 同一次 state 变更多组同时上升沿时取数组最后一项。
2253
+ */
2254
+ dialogConfigs: {
2255
+ type: PropType<PageBarNewDialogConfig[]>;
2256
+ default: () => never[];
2257
+ };
2180
2258
  };
2181
2259
 
2182
2260
  export declare type PageRouterEmits = {
@@ -6208,7 +6286,175 @@ export declare const UpGeneralIntCard: {
6208
6286
  styleType: GeneralIntCardStyleType;
6209
6287
  hasPopup: boolean;
6210
6288
  isDeviceInt: boolean;
6211
- }, true, {}, {}, GlobalComponents, GlobalDirectives, string, {}, HTMLDivElement, ComponentProvideOptions, {
6289
+ }, true, {}, {}, GlobalComponents, GlobalDirectives, string, {
6290
+ sliderInfoTriggerRef: ({
6291
+ $: ComponentInternalInstance;
6292
+ $data: {};
6293
+ $props: Partial<{
6294
+ readonly showInfo: boolean;
6295
+ readonly infoContent: string;
6296
+ }> & Omit<{
6297
+ readonly showInfo: boolean;
6298
+ readonly infoContent: string;
6299
+ } & VNodeProps & AllowedComponentProps & ComponentCustomProps, "showInfo" | "infoContent">;
6300
+ $attrs: {
6301
+ [x: string]: unknown;
6302
+ };
6303
+ $refs: {
6304
+ [x: string]: unknown;
6305
+ } & {
6306
+ rootElRef: HTMLDivElement;
6307
+ infoTriggerRef: HTMLButtonElement;
6308
+ infoTooltipRef: HTMLDivElement;
6309
+ };
6310
+ $slots: Readonly<{
6311
+ [name: string]: Slot<any> | undefined;
6312
+ }>;
6313
+ $root: ComponentPublicInstance | null;
6314
+ $parent: ComponentPublicInstance | null;
6315
+ $host: Element | null;
6316
+ $emit: (event: string, ...args: any[]) => void;
6317
+ $el: HTMLDivElement;
6318
+ $options: ComponentOptionsBase<Readonly<ExtractPropTypes< {
6319
+ readonly showInfo: {
6320
+ readonly type: BooleanConstructor;
6321
+ readonly default: false;
6322
+ };
6323
+ readonly infoContent: {
6324
+ readonly type: PropType<InfoTriggerInfoContent>;
6325
+ readonly default: "";
6326
+ };
6327
+ }>> & Readonly<{}>, {
6328
+ close: () => void;
6329
+ rootEl: Ref<HTMLElement | null, HTMLElement | null>;
6330
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
6331
+ readonly showInfo: boolean;
6332
+ readonly infoContent: string;
6333
+ }, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
6334
+ beforeCreate?: (() => void) | (() => void)[];
6335
+ created?: (() => void) | (() => void)[];
6336
+ beforeMount?: (() => void) | (() => void)[];
6337
+ mounted?: (() => void) | (() => void)[];
6338
+ beforeUpdate?: (() => void) | (() => void)[];
6339
+ updated?: (() => void) | (() => void)[];
6340
+ activated?: (() => void) | (() => void)[];
6341
+ deactivated?: (() => void) | (() => void)[];
6342
+ beforeDestroy?: (() => void) | (() => void)[];
6343
+ beforeUnmount?: (() => void) | (() => void)[];
6344
+ destroyed?: (() => void) | (() => void)[];
6345
+ unmounted?: (() => void) | (() => void)[];
6346
+ renderTracked?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
6347
+ renderTriggered?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
6348
+ errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[];
6349
+ };
6350
+ $forceUpdate: () => void;
6351
+ $nextTick: nextTick;
6352
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, OnCleanup]) => any : (...args: [any, any, OnCleanup]) => any, options?: WatchOptions): WatchStopHandle;
6353
+ } & Readonly<{
6354
+ readonly showInfo: boolean;
6355
+ readonly infoContent: string;
6356
+ }> & Omit<Readonly<ExtractPropTypes< {
6357
+ readonly showInfo: {
6358
+ readonly type: BooleanConstructor;
6359
+ readonly default: false;
6360
+ };
6361
+ readonly infoContent: {
6362
+ readonly type: PropType<InfoTriggerInfoContent>;
6363
+ readonly default: "";
6364
+ };
6365
+ }>> & Readonly<{}>, "close" | "rootEl" | ("showInfo" | "infoContent")> & ShallowUnwrapRef< {
6366
+ close: () => void;
6367
+ rootEl: Ref<HTMLElement | null, HTMLElement | null>;
6368
+ }> & {} & ComponentCustomProperties & {} & {
6369
+ $slots: {
6370
+ default?(_: {}): any;
6371
+ };
6372
+ }) | null;
6373
+ valueRowRef: HTMLDivElement;
6374
+ stepperInfoTriggerRef: ({
6375
+ $: ComponentInternalInstance;
6376
+ $data: {};
6377
+ $props: Partial<{
6378
+ readonly showInfo: boolean;
6379
+ readonly infoContent: string;
6380
+ }> & Omit<{
6381
+ readonly showInfo: boolean;
6382
+ readonly infoContent: string;
6383
+ } & VNodeProps & AllowedComponentProps & ComponentCustomProps, "showInfo" | "infoContent">;
6384
+ $attrs: {
6385
+ [x: string]: unknown;
6386
+ };
6387
+ $refs: {
6388
+ [x: string]: unknown;
6389
+ } & {
6390
+ rootElRef: HTMLDivElement;
6391
+ infoTriggerRef: HTMLButtonElement;
6392
+ infoTooltipRef: HTMLDivElement;
6393
+ };
6394
+ $slots: Readonly<{
6395
+ [name: string]: Slot<any> | undefined;
6396
+ }>;
6397
+ $root: ComponentPublicInstance | null;
6398
+ $parent: ComponentPublicInstance | null;
6399
+ $host: Element | null;
6400
+ $emit: (event: string, ...args: any[]) => void;
6401
+ $el: HTMLDivElement;
6402
+ $options: ComponentOptionsBase<Readonly<ExtractPropTypes< {
6403
+ readonly showInfo: {
6404
+ readonly type: BooleanConstructor;
6405
+ readonly default: false;
6406
+ };
6407
+ readonly infoContent: {
6408
+ readonly type: PropType<InfoTriggerInfoContent>;
6409
+ readonly default: "";
6410
+ };
6411
+ }>> & Readonly<{}>, {
6412
+ close: () => void;
6413
+ rootEl: Ref<HTMLElement | null, HTMLElement | null>;
6414
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
6415
+ readonly showInfo: boolean;
6416
+ readonly infoContent: string;
6417
+ }, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
6418
+ beforeCreate?: (() => void) | (() => void)[];
6419
+ created?: (() => void) | (() => void)[];
6420
+ beforeMount?: (() => void) | (() => void)[];
6421
+ mounted?: (() => void) | (() => void)[];
6422
+ beforeUpdate?: (() => void) | (() => void)[];
6423
+ updated?: (() => void) | (() => void)[];
6424
+ activated?: (() => void) | (() => void)[];
6425
+ deactivated?: (() => void) | (() => void)[];
6426
+ beforeDestroy?: (() => void) | (() => void)[];
6427
+ beforeUnmount?: (() => void) | (() => void)[];
6428
+ destroyed?: (() => void) | (() => void)[];
6429
+ unmounted?: (() => void) | (() => void)[];
6430
+ renderTracked?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
6431
+ renderTriggered?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
6432
+ errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[];
6433
+ };
6434
+ $forceUpdate: () => void;
6435
+ $nextTick: nextTick;
6436
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, OnCleanup]) => any : (...args: [any, any, OnCleanup]) => any, options?: WatchOptions): WatchStopHandle;
6437
+ } & Readonly<{
6438
+ readonly showInfo: boolean;
6439
+ readonly infoContent: string;
6440
+ }> & Omit<Readonly<ExtractPropTypes< {
6441
+ readonly showInfo: {
6442
+ readonly type: BooleanConstructor;
6443
+ readonly default: false;
6444
+ };
6445
+ readonly infoContent: {
6446
+ readonly type: PropType<InfoTriggerInfoContent>;
6447
+ readonly default: "";
6448
+ };
6449
+ }>> & Readonly<{}>, "close" | "rootEl" | ("showInfo" | "infoContent")> & ShallowUnwrapRef< {
6450
+ close: () => void;
6451
+ rootEl: Ref<HTMLElement | null, HTMLElement | null>;
6452
+ }> & {} & ComponentCustomProperties & {} & {
6453
+ $slots: {
6454
+ default?(_: {}): any;
6455
+ };
6456
+ }) | null;
6457
+ }, HTMLDivElement, ComponentProvideOptions, {
6212
6458
  P: {};
6213
6459
  B: {};
6214
6460
  D: {};
@@ -6834,6 +7080,105 @@ layout: GeneralModeLayout;
6834
7080
  modeOptionConfigs: GeneralModeOptionConfig[];
6835
7081
  }, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & Plugin_2;
6836
7082
 
7083
+ export declare const UpGeneralRedirect: {
7084
+ new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly<ExtractPropTypes< {
7085
+ readonly title: {
7086
+ readonly type: StringConstructor;
7087
+ readonly default: "";
7088
+ };
7089
+ readonly subtitle: {
7090
+ readonly type: StringConstructor;
7091
+ readonly default: "";
7092
+ };
7093
+ readonly appLink: {
7094
+ readonly type: StringConstructor;
7095
+ readonly default: "";
7096
+ };
7097
+ readonly packageName: {
7098
+ readonly type: StringConstructor;
7099
+ readonly default: "";
7100
+ };
7101
+ readonly icon: {
7102
+ readonly type: PropType<string[]>;
7103
+ readonly default: undefined;
7104
+ };
7105
+ }>> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
7106
+ readonly title: string;
7107
+ readonly icon: string[];
7108
+ readonly subtitle: string;
7109
+ readonly appLink: string;
7110
+ readonly packageName: string;
7111
+ }, true, {}, {}, GlobalComponents, GlobalDirectives, string, {
7112
+ contentRef: HTMLDivElement;
7113
+ titleRef: HTMLDivElement;
7114
+ subtitleRef: HTMLDivElement;
7115
+ }, any, ComponentProvideOptions, {
7116
+ P: {};
7117
+ B: {};
7118
+ D: {};
7119
+ C: {};
7120
+ M: {};
7121
+ Defaults: {};
7122
+ }, Readonly<ExtractPropTypes< {
7123
+ readonly title: {
7124
+ readonly type: StringConstructor;
7125
+ readonly default: "";
7126
+ };
7127
+ readonly subtitle: {
7128
+ readonly type: StringConstructor;
7129
+ readonly default: "";
7130
+ };
7131
+ readonly appLink: {
7132
+ readonly type: StringConstructor;
7133
+ readonly default: "";
7134
+ };
7135
+ readonly packageName: {
7136
+ readonly type: StringConstructor;
7137
+ readonly default: "";
7138
+ };
7139
+ readonly icon: {
7140
+ readonly type: PropType<string[]>;
7141
+ readonly default: undefined;
7142
+ };
7143
+ }>> & Readonly<{}>, {}, {}, {}, {}, {
7144
+ readonly title: string;
7145
+ readonly icon: string[];
7146
+ readonly subtitle: string;
7147
+ readonly appLink: string;
7148
+ readonly packageName: string;
7149
+ }>;
7150
+ __isFragment?: never;
7151
+ __isTeleport?: never;
7152
+ __isSuspense?: never;
7153
+ } & ComponentOptionsBase<Readonly<ExtractPropTypes< {
7154
+ readonly title: {
7155
+ readonly type: StringConstructor;
7156
+ readonly default: "";
7157
+ };
7158
+ readonly subtitle: {
7159
+ readonly type: StringConstructor;
7160
+ readonly default: "";
7161
+ };
7162
+ readonly appLink: {
7163
+ readonly type: StringConstructor;
7164
+ readonly default: "";
7165
+ };
7166
+ readonly packageName: {
7167
+ readonly type: StringConstructor;
7168
+ readonly default: "";
7169
+ };
7170
+ readonly icon: {
7171
+ readonly type: PropType<string[]>;
7172
+ readonly default: undefined;
7173
+ };
7174
+ }>> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
7175
+ readonly title: string;
7176
+ readonly icon: string[];
7177
+ readonly subtitle: string;
7178
+ readonly appLink: string;
7179
+ readonly packageName: string;
7180
+ }, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & Plugin_2;
7181
+
6837
7182
  export declare const UpGeneralReminder: {
6838
7183
  new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly<ExtractPropTypes< {
6839
7184
  enumConfigs: {
@@ -7886,6 +8231,10 @@ export declare const UpPageBarNew: {
7886
8231
  type: StringConstructor;
7887
8232
  default: string;
7888
8233
  };
8234
+ dialogConfigs: {
8235
+ type: PropType<PageBarNewDialogConfig[]>;
8236
+ default: () => never[];
8237
+ };
7889
8238
  }>> & Readonly<{
7890
8239
  "onFirst-card-click"?: (() => any) | undefined;
7891
8240
  "onSecond-card-click"?: (() => any) | undefined;
@@ -7914,6 +8263,7 @@ export declare const UpPageBarNew: {
7914
8263
  showBottomWhenOff: boolean;
7915
8264
  showProductWikiCard: boolean;
7916
8265
  hotline: string;
8266
+ dialogConfigs: PageBarNewDialogConfig[];
7917
8267
  }, true, {}, {}, GlobalComponents, GlobalDirectives, string, {
7918
8268
  dropzoneRef: HTMLDivElement;
7919
8269
  }, HTMLDivElement, ComponentProvideOptions, {
@@ -8000,6 +8350,10 @@ export declare const UpPageBarNew: {
8000
8350
  type: StringConstructor;
8001
8351
  default: string;
8002
8352
  };
8353
+ dialogConfigs: {
8354
+ type: PropType<PageBarNewDialogConfig[]>;
8355
+ default: () => never[];
8356
+ };
8003
8357
  }>> & Readonly<{
8004
8358
  "onFirst-card-click"?: (() => any) | undefined;
8005
8359
  "onSecond-card-click"?: (() => any) | undefined;
@@ -8024,6 +8378,7 @@ export declare const UpPageBarNew: {
8024
8378
  showBottomWhenOff: boolean;
8025
8379
  showProductWikiCard: boolean;
8026
8380
  hotline: string;
8381
+ dialogConfigs: PageBarNewDialogConfig[];
8027
8382
  }>;
8028
8383
  __isFragment?: never;
8029
8384
  __isTeleport?: never;
@@ -8105,6 +8460,10 @@ hotline: {
8105
8460
  type: StringConstructor;
8106
8461
  default: string;
8107
8462
  };
8463
+ dialogConfigs: {
8464
+ type: PropType<PageBarNewDialogConfig[]>;
8465
+ default: () => never[];
8466
+ };
8108
8467
  }>> & Readonly<{
8109
8468
  "onFirst-card-click"?: (() => any) | undefined;
8110
8469
  "onSecond-card-click"?: (() => any) | undefined;
@@ -8133,6 +8492,7 @@ logo: string;
8133
8492
  showBottomWhenOff: boolean;
8134
8493
  showProductWikiCard: boolean;
8135
8494
  hotline: string;
8495
+ dialogConfigs: PageBarNewDialogConfig[];
8136
8496
  }, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
8137
8497
  $slots: {
8138
8498
  default?(_: {}): any;
@@ -10850,6 +11210,10 @@ export declare const zhCN: {
10850
11210
  pageRouter: {
10851
11211
  defaultTitle: string;
10852
11212
  };
11213
+ generalRedirect: {
11214
+ defaultTitle: string;
11215
+ defaultSubtitle: string;
11216
+ };
10853
11217
  enumControl: {
10854
11218
  prev: string;
10855
11219
  next: string;