uniapp-dyckui 4.1.5 → 4.1.7

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.
@@ -1,20 +1,27 @@
1
1
  type DialogType = 'open-app' | 'confirm' | 'continue';
2
2
  interface Props {
3
- modelValue: boolean;
3
+ modelValue?: boolean;
4
4
  type?: DialogType;
5
5
  title?: string;
6
6
  description?: string;
7
7
  icon?: string;
8
+ iconType?: 'phone' | 'screen' | 'links' | 'links2';
9
+ customIcon?: string;
8
10
  mask?: boolean;
9
11
  maskOpacity?: number;
10
12
  closeOnMaskClick?: boolean;
11
13
  }
12
- declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
14
+ declare function __VLS_template(): {
15
+ icon?(_: {}): any;
16
+ };
17
+ declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
13
18
  modelValue: boolean;
14
19
  type: string;
15
20
  title: string;
16
21
  description: string;
17
22
  icon: string;
23
+ iconType: any;
24
+ customIcon: string;
18
25
  mask: boolean;
19
26
  maskOpacity: number;
20
27
  closeOnMaskClick: boolean;
@@ -28,6 +35,8 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
28
35
  title: string;
29
36
  description: string;
30
37
  icon: string;
38
+ iconType: any;
39
+ customIcon: string;
31
40
  mask: boolean;
32
41
  maskOpacity: number;
33
42
  closeOnMaskClick: boolean;
@@ -42,9 +51,12 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
42
51
  mask: boolean;
43
52
  modelValue: boolean;
44
53
  description: string;
54
+ iconType: "phone" | "screen" | "links" | "links2";
55
+ customIcon: string;
45
56
  maskOpacity: number;
46
57
  closeOnMaskClick: boolean;
47
58
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
59
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
48
60
  export default _default;
49
61
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
50
62
  type __VLS_TypePropsToRuntimeProps<T> = {
@@ -63,3 +75,8 @@ type __VLS_WithDefaults<P, D> = {
63
75
  type __VLS_Prettify<T> = {
64
76
  [K in keyof T]: T[K];
65
77
  } & {};
78
+ type __VLS_WithTemplateSlots<T, S> = T & {
79
+ new (): {
80
+ $slots: S;
81
+ };
82
+ };
@@ -6,7 +6,7 @@ interface Props {
6
6
  /**
7
7
  * 提示类型
8
8
  */
9
- type?: 'text' | 'loading' | 'success' | 'fail';
9
+ type?: 'text' | 'loading' | 'success' | 'fail' | 'warning';
10
10
  /**
11
11
  * 显示位置
12
12
  */
@@ -39,6 +39,26 @@ interface Props {
39
39
  * 自定义样式
40
40
  */
41
41
  customStyle?: Record<string, any>;
42
+ /**
43
+ * 是否开启倒计时功能
44
+ */
45
+ countdown?: boolean;
46
+ /**
47
+ * 倒计时总时间(秒)
48
+ */
49
+ countdownSeconds?: number;
50
+ /**
51
+ * 是否在倒计时数字外添加括号
52
+ */
53
+ countdownParentheses?: boolean;
54
+ /**
55
+ * 倒计时后追加的文字描述
56
+ */
57
+ countdownSuffix?: string;
58
+ /**
59
+ * 是否开启长文本模式(允许换行)
60
+ */
61
+ longText?: boolean;
42
62
  }
43
63
  declare function close(): void;
44
64
  declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
@@ -52,6 +72,11 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
52
72
  customIcon: string;
53
73
  large: boolean;
54
74
  customStyle: () => {};
75
+ countdown: boolean;
76
+ countdownSeconds: number;
77
+ countdownParentheses: boolean;
78
+ countdownSuffix: string;
79
+ longText: boolean;
55
80
  }>>, {
56
81
  /**
57
82
  * 手动关闭Toast
@@ -72,21 +97,31 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
72
97
  customIcon: string;
73
98
  large: boolean;
74
99
  customStyle: () => {};
100
+ countdown: boolean;
101
+ countdownSeconds: number;
102
+ countdownParentheses: boolean;
103
+ countdownSuffix: string;
104
+ longText: boolean;
75
105
  }>>> & Readonly<{
76
106
  onClick?: () => any;
77
107
  "onUpdate:modelValue"?: (value: boolean) => any;
78
108
  onClose?: () => any;
79
109
  }>, {
80
110
  large: boolean;
81
- type: "text" | "loading" | "success" | "fail";
111
+ type: "text" | "loading" | "success" | "fail" | "warning";
82
112
  loading: boolean;
83
113
  icon: boolean;
84
114
  customStyle: Record<string, any>;
85
115
  modelValue: boolean;
116
+ customIcon: string;
86
117
  position: "top" | "middle" | "bottom";
87
118
  message: string;
88
119
  duration: number;
89
- customIcon: string;
120
+ countdown: boolean;
121
+ countdownSeconds: number;
122
+ countdownParentheses: boolean;
123
+ countdownSuffix: string;
124
+ longText: boolean;
90
125
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
91
126
  export default _default;
92
127
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
@@ -250,7 +250,135 @@ declare const _default: {
250
250
  default?(_: {}): any;
251
251
  };
252
252
  });
253
- Dialog: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
253
+ Dialog: {
254
+ new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
255
+ type: {
256
+ type: import('vue').PropType<"open-app" | "confirm" | "continue">;
257
+ default: string;
258
+ };
259
+ icon: {
260
+ type: import('vue').PropType<string>;
261
+ default: string;
262
+ };
263
+ title: {
264
+ type: import('vue').PropType<string>;
265
+ default: string;
266
+ };
267
+ mask: {
268
+ type: import('vue').PropType<boolean>;
269
+ default: boolean;
270
+ };
271
+ modelValue: {
272
+ type: import('vue').PropType<boolean>;
273
+ default: boolean;
274
+ };
275
+ description: {
276
+ type: import('vue').PropType<string>;
277
+ default: string;
278
+ };
279
+ iconType: {
280
+ type: import('vue').PropType<"phone" | "screen" | "links" | "links2">;
281
+ default: any;
282
+ };
283
+ customIcon: {
284
+ type: import('vue').PropType<string>;
285
+ default: string;
286
+ };
287
+ maskOpacity: {
288
+ type: import('vue').PropType<number>;
289
+ default: number;
290
+ };
291
+ closeOnMaskClick: {
292
+ type: import('vue').PropType<boolean>;
293
+ default: boolean;
294
+ };
295
+ }>> & Readonly<{
296
+ onConfirm?: () => any;
297
+ "onUpdate:modelValue"?: (value: boolean) => any;
298
+ onCancel?: () => any;
299
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
300
+ "update:modelValue": (value: boolean) => void;
301
+ confirm: () => void;
302
+ cancel: () => void;
303
+ }, import('vue').PublicProps, {
304
+ type: "open-app" | "confirm" | "continue";
305
+ icon: string;
306
+ title: string;
307
+ mask: boolean;
308
+ modelValue: boolean;
309
+ description: string;
310
+ iconType: "phone" | "screen" | "links" | "links2";
311
+ customIcon: string;
312
+ maskOpacity: number;
313
+ closeOnMaskClick: boolean;
314
+ }, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
315
+ P: {};
316
+ B: {};
317
+ D: {};
318
+ C: {};
319
+ M: {};
320
+ Defaults: {};
321
+ }, Readonly<import('vue').ExtractPropTypes<{
322
+ type: {
323
+ type: import('vue').PropType<"open-app" | "confirm" | "continue">;
324
+ default: string;
325
+ };
326
+ icon: {
327
+ type: import('vue').PropType<string>;
328
+ default: string;
329
+ };
330
+ title: {
331
+ type: import('vue').PropType<string>;
332
+ default: string;
333
+ };
334
+ mask: {
335
+ type: import('vue').PropType<boolean>;
336
+ default: boolean;
337
+ };
338
+ modelValue: {
339
+ type: import('vue').PropType<boolean>;
340
+ default: boolean;
341
+ };
342
+ description: {
343
+ type: import('vue').PropType<string>;
344
+ default: string;
345
+ };
346
+ iconType: {
347
+ type: import('vue').PropType<"phone" | "screen" | "links" | "links2">;
348
+ default: any;
349
+ };
350
+ customIcon: {
351
+ type: import('vue').PropType<string>;
352
+ default: string;
353
+ };
354
+ maskOpacity: {
355
+ type: import('vue').PropType<number>;
356
+ default: number;
357
+ };
358
+ closeOnMaskClick: {
359
+ type: import('vue').PropType<boolean>;
360
+ default: boolean;
361
+ };
362
+ }>> & Readonly<{
363
+ onConfirm?: () => any;
364
+ "onUpdate:modelValue"?: (value: boolean) => any;
365
+ onCancel?: () => any;
366
+ }>, {}, {}, {}, {}, {
367
+ type: "open-app" | "confirm" | "continue";
368
+ icon: string;
369
+ title: string;
370
+ mask: boolean;
371
+ modelValue: boolean;
372
+ description: string;
373
+ iconType: "phone" | "screen" | "links" | "links2";
374
+ customIcon: string;
375
+ maskOpacity: number;
376
+ closeOnMaskClick: boolean;
377
+ }>;
378
+ __isFragment?: never;
379
+ __isTeleport?: never;
380
+ __isSuspense?: never;
381
+ } & import('vue').ComponentOptionsBase<Readonly<import('vue').ExtractPropTypes<{
254
382
  type: {
255
383
  type: import('vue').PropType<"open-app" | "confirm" | "continue">;
256
384
  default: string;
@@ -269,48 +397,17 @@ declare const _default: {
269
397
  };
270
398
  modelValue: {
271
399
  type: import('vue').PropType<boolean>;
272
- required: true;
273
400
  default: boolean;
274
401
  };
275
402
  description: {
276
403
  type: import('vue').PropType<string>;
277
404
  default: string;
278
405
  };
279
- maskOpacity: {
280
- type: import('vue').PropType<number>;
281
- default: number;
282
- };
283
- closeOnMaskClick: {
284
- type: import('vue').PropType<boolean>;
285
- default: boolean;
286
- };
287
- }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
288
- "update:modelValue": (value: boolean) => void;
289
- confirm: () => void;
290
- cancel: () => void;
291
- }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
292
- type: {
293
- type: import('vue').PropType<"open-app" | "confirm" | "continue">;
294
- default: string;
295
- };
296
- icon: {
297
- type: import('vue').PropType<string>;
298
- default: string;
299
- };
300
- title: {
301
- type: import('vue').PropType<string>;
302
- default: string;
303
- };
304
- mask: {
305
- type: import('vue').PropType<boolean>;
306
- default: boolean;
307
- };
308
- modelValue: {
309
- type: import('vue').PropType<boolean>;
310
- required: true;
311
- default: boolean;
406
+ iconType: {
407
+ type: import('vue').PropType<"phone" | "screen" | "links" | "links2">;
408
+ default: any;
312
409
  };
313
- description: {
410
+ customIcon: {
314
411
  type: import('vue').PropType<string>;
315
412
  default: string;
316
413
  };
@@ -326,16 +423,26 @@ declare const _default: {
326
423
  onConfirm?: () => any;
327
424
  "onUpdate:modelValue"?: (value: boolean) => any;
328
425
  onCancel?: () => any;
329
- }>, {
426
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
427
+ "update:modelValue": (value: boolean) => void;
428
+ confirm: () => void;
429
+ cancel: () => void;
430
+ }, string, {
330
431
  type: "open-app" | "confirm" | "continue";
331
432
  icon: string;
332
433
  title: string;
333
434
  mask: boolean;
334
435
  modelValue: boolean;
335
436
  description: string;
437
+ iconType: "phone" | "screen" | "links" | "links2";
438
+ customIcon: string;
336
439
  maskOpacity: number;
337
440
  closeOnMaskClick: boolean;
338
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
441
+ }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
442
+ $slots: {
443
+ icon?(_: {}): any;
444
+ };
445
+ });
339
446
  Divider: {
340
447
  new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
341
448
  customClass: {
@@ -1491,7 +1598,7 @@ declare const _default: {
1491
1598
  default: boolean;
1492
1599
  };
1493
1600
  type: {
1494
- type: import('vue').PropType<"success" | "loading" | "text" | "fail">;
1601
+ type: import('vue').PropType<"success" | "warning" | "loading" | "text" | "fail">;
1495
1602
  default: string;
1496
1603
  };
1497
1604
  loading: {
@@ -1510,6 +1617,10 @@ declare const _default: {
1510
1617
  type: import('vue').PropType<boolean>;
1511
1618
  default: boolean;
1512
1619
  };
1620
+ customIcon: {
1621
+ type: import('vue').PropType<string>;
1622
+ default: string;
1623
+ };
1513
1624
  position: {
1514
1625
  type: import('vue').PropType<"top" | "bottom" | "middle">;
1515
1626
  default: string;
@@ -1522,10 +1633,26 @@ declare const _default: {
1522
1633
  type: import('vue').PropType<number>;
1523
1634
  default: number;
1524
1635
  };
1525
- customIcon: {
1636
+ countdown: {
1637
+ type: import('vue').PropType<boolean>;
1638
+ default: boolean;
1639
+ };
1640
+ countdownSeconds: {
1641
+ type: import('vue').PropType<number>;
1642
+ default: number;
1643
+ };
1644
+ countdownParentheses: {
1645
+ type: import('vue').PropType<boolean>;
1646
+ default: boolean;
1647
+ };
1648
+ countdownSuffix: {
1526
1649
  type: import('vue').PropType<string>;
1527
1650
  default: string;
1528
1651
  };
1652
+ longText: {
1653
+ type: import('vue').PropType<boolean>;
1654
+ default: boolean;
1655
+ };
1529
1656
  }>, {
1530
1657
  close: () => void;
1531
1658
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
@@ -1538,7 +1665,7 @@ declare const _default: {
1538
1665
  default: boolean;
1539
1666
  };
1540
1667
  type: {
1541
- type: import('vue').PropType<"success" | "loading" | "text" | "fail">;
1668
+ type: import('vue').PropType<"success" | "warning" | "loading" | "text" | "fail">;
1542
1669
  default: string;
1543
1670
  };
1544
1671
  loading: {
@@ -1557,6 +1684,10 @@ declare const _default: {
1557
1684
  type: import('vue').PropType<boolean>;
1558
1685
  default: boolean;
1559
1686
  };
1687
+ customIcon: {
1688
+ type: import('vue').PropType<string>;
1689
+ default: string;
1690
+ };
1560
1691
  position: {
1561
1692
  type: import('vue').PropType<"top" | "bottom" | "middle">;
1562
1693
  default: string;
@@ -1569,25 +1700,46 @@ declare const _default: {
1569
1700
  type: import('vue').PropType<number>;
1570
1701
  default: number;
1571
1702
  };
1572
- customIcon: {
1703
+ countdown: {
1704
+ type: import('vue').PropType<boolean>;
1705
+ default: boolean;
1706
+ };
1707
+ countdownSeconds: {
1708
+ type: import('vue').PropType<number>;
1709
+ default: number;
1710
+ };
1711
+ countdownParentheses: {
1712
+ type: import('vue').PropType<boolean>;
1713
+ default: boolean;
1714
+ };
1715
+ countdownSuffix: {
1573
1716
  type: import('vue').PropType<string>;
1574
1717
  default: string;
1575
1718
  };
1719
+ longText: {
1720
+ type: import('vue').PropType<boolean>;
1721
+ default: boolean;
1722
+ };
1576
1723
  }>> & Readonly<{
1577
1724
  onClick?: () => any;
1578
1725
  "onUpdate:modelValue"?: (value: boolean) => any;
1579
1726
  onClose?: () => any;
1580
1727
  }>, {
1581
1728
  large: boolean;
1582
- type: "text" | "loading" | "success" | "fail";
1729
+ type: "text" | "loading" | "success" | "fail" | "warning";
1583
1730
  loading: boolean;
1584
1731
  icon: boolean;
1585
1732
  customStyle: Record<string, any>;
1586
1733
  modelValue: boolean;
1734
+ customIcon: string;
1587
1735
  position: "top" | "middle" | "bottom";
1588
1736
  message: string;
1589
1737
  duration: number;
1590
- customIcon: string;
1738
+ countdown: boolean;
1739
+ countdownSeconds: number;
1740
+ countdownParentheses: boolean;
1741
+ countdownSuffix: string;
1742
+ longText: boolean;
1591
1743
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
1592
1744
  };
1593
1745
  export default _default;