@nutui/nutui 4.1.0 → 4.1.2

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.
Files changed (51) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/README.md +27 -70
  3. package/dist/nutui.es.js +4 -2
  4. package/dist/nutui.js +5225 -5175
  5. package/dist/nutui.umd.js +1 -1
  6. package/dist/packages/_es/Animate.js +37 -39
  7. package/dist/packages/_es/Card.js +26 -27
  8. package/dist/packages/_es/CircleProgress.js +8 -17
  9. package/dist/packages/_es/Empty.js +26 -29
  10. package/dist/packages/_es/Indicator.js +17 -18
  11. package/dist/packages/_es/Price.js +2 -2
  12. package/dist/packages/_es/Progress.js +20 -23
  13. package/dist/packages/_es/Swipe.js +64 -39
  14. package/dist/packages/_es/SwipeGroup.js +39 -0
  15. package/dist/packages/_es/Tabs.js +8 -3
  16. package/dist/packages/_es/Tag.js +30 -25
  17. package/dist/packages/_es/Uploader.js +30 -38
  18. package/dist/packages/button/index.scss +14 -0
  19. package/dist/packages/progress/index.scss +6 -0
  20. package/dist/packages/swipe/index.scss +1 -0
  21. package/dist/packages/swipegroup/index.mjs +4 -0
  22. package/dist/packages/swipegroup/index.scss +0 -0
  23. package/dist/packages/swipegroup/style.mjs +2 -0
  24. package/dist/smartips/web-types.json +27 -18
  25. package/dist/style.css +1 -1
  26. package/dist/styles/themes/default.scss +52 -51
  27. package/dist/styles/themes/jdb.scss +52 -51
  28. package/dist/styles/themes/jddkh.scss +52 -51
  29. package/dist/styles/themes/jdt.scss +52 -51
  30. package/dist/types/__VUE/animate/index.vue.d.ts +14 -3
  31. package/dist/types/__VUE/animate/type.d.ts +1 -1
  32. package/dist/types/__VUE/card/index.vue.d.ts +22 -3
  33. package/dist/types/__VUE/circleprogress/index.vue.d.ts +7 -10
  34. package/dist/types/__VUE/circleprogress/types.d.ts +1 -0
  35. package/dist/types/__VUE/empty/index.vue.d.ts +11 -4
  36. package/dist/types/__VUE/empty/types.d.ts +1 -0
  37. package/dist/types/__VUE/indicator/index.vue.d.ts +7 -9
  38. package/dist/types/__VUE/indicator/types.d.ts +1 -0
  39. package/dist/types/__VUE/price/index.vue.d.ts +8 -6
  40. package/dist/types/__VUE/price/types.d.ts +2 -0
  41. package/dist/types/__VUE/progress/index.vue.d.ts +10 -10
  42. package/dist/types/__VUE/progress/types.d.ts +2 -0
  43. package/dist/types/__VUE/swipe/index.vue.d.ts +4 -4
  44. package/dist/types/__VUE/swipegroup/index.vue.d.ts +26 -0
  45. package/dist/types/__VUE/tag/index.vue.d.ts +5 -4
  46. package/dist/types/__VUE/uploader/index.vue.d.ts +0 -3
  47. package/dist/types/index.d.ts +3 -2
  48. package/dist/types/utils/unit.d.ts +1 -0
  49. package/dist/types/utils/useTaroRect/index.d.ts +1 -0
  50. package/package.json +1 -1
  51. /package/dist/types/__VUE/tag/{type.d.ts → types.d.ts} +0 -0
@@ -9,6 +9,10 @@ declare const _default: Install< import("vue").DefineComponent<{
9
9
  type: PropType<AnimateType>;
10
10
  default: string;
11
11
  };
12
+ show: {
13
+ type: BooleanConstructor;
14
+ defualt: boolean;
15
+ };
12
16
  action: {
13
17
  type: PropType<AnimateAction>;
14
18
  default: string;
@@ -19,20 +23,24 @@ declare const _default: Install< import("vue").DefineComponent<{
19
23
  };
20
24
  duration: {
21
25
  type: (NumberConstructor | StringConstructor)[];
26
+ defualt: number;
22
27
  };
23
28
  }, {
24
29
  classes: import("vue").ComputedRef<{
25
- [x: string]: boolean | AnimateType;
30
+ [x: string]: boolean;
26
31
  'nut-animate__container': boolean;
27
32
  loop: boolean;
28
33
  }>;
29
34
  handleClick: (event: Event) => void;
30
- clicked: import("vue").Ref<boolean>;
31
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "click"[], "click", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
35
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("animate" | "click")[], "animate" | "click", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
32
36
  type: {
33
37
  type: PropType<AnimateType>;
34
38
  default: string;
35
39
  };
40
+ show: {
41
+ type: BooleanConstructor;
42
+ defualt: boolean;
43
+ };
36
44
  action: {
37
45
  type: PropType<AnimateAction>;
38
46
  default: string;
@@ -43,11 +51,14 @@ declare const _default: Install< import("vue").DefineComponent<{
43
51
  };
44
52
  duration: {
45
53
  type: (NumberConstructor | StringConstructor)[];
54
+ defualt: number;
46
55
  };
47
56
  }>> & {
48
57
  onClick?: ((...args: any[]) => any) | undefined;
58
+ onAnimate?: ((...args: any[]) => any) | undefined;
49
59
  }, {
50
60
  type: AnimateType;
61
+ show: boolean;
51
62
  action: AnimateAction;
52
63
  loop: boolean;
53
64
  }, {}>>;
@@ -1,2 +1,2 @@
1
1
  export type AnimateType = 'shake' | 'ripple' | 'breath' | 'float' | 'slide-right' | 'slide-left' | 'slide-top' | 'slide-bottom' | 'jump' | 'twinkle' | 'flicker';
2
- export type AnimateAction = 'initial' | 'click';
2
+ export type AnimateAction = 'initial' | 'click' | '';
@@ -5,58 +5,77 @@ declare type Install<T> = T & {
5
5
  declare const _default: Install< import("vue").DefineComponent<{
6
6
  imgUrl: {
7
7
  type: StringConstructor;
8
+ default: string;
8
9
  };
9
10
  title: {
10
11
  type: StringConstructor;
12
+ default: string;
11
13
  };
12
14
  price: {
13
15
  type: StringConstructor;
16
+ default: string;
14
17
  };
15
18
  vipPrice: {
16
19
  type: StringConstructor;
20
+ default: string;
17
21
  };
18
22
  shopDesc: {
19
23
  type: StringConstructor;
24
+ default: string;
20
25
  };
21
26
  delivery: {
22
27
  type: StringConstructor;
28
+ default: string;
23
29
  };
24
30
  shopName: {
25
31
  type: StringConstructor;
32
+ default: string;
26
33
  };
27
34
  isNeedPrice: {
28
35
  type: BooleanConstructor;
29
36
  default: boolean;
30
37
  };
31
- }, {
32
- isHaveSlot: (slot: string) => import("vue").Slot<any> | undefined;
33
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
38
+ }, unknown, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
34
39
  imgUrl: {
35
40
  type: StringConstructor;
41
+ default: string;
36
42
  };
37
43
  title: {
38
44
  type: StringConstructor;
45
+ default: string;
39
46
  };
40
47
  price: {
41
48
  type: StringConstructor;
49
+ default: string;
42
50
  };
43
51
  vipPrice: {
44
52
  type: StringConstructor;
53
+ default: string;
45
54
  };
46
55
  shopDesc: {
47
56
  type: StringConstructor;
57
+ default: string;
48
58
  };
49
59
  delivery: {
50
60
  type: StringConstructor;
61
+ default: string;
51
62
  };
52
63
  shopName: {
53
64
  type: StringConstructor;
65
+ default: string;
54
66
  };
55
67
  isNeedPrice: {
56
68
  type: BooleanConstructor;
57
69
  default: boolean;
58
70
  };
59
71
  }>>, {
72
+ title: string;
73
+ price: string;
74
+ imgUrl: string;
75
+ vipPrice: string;
76
+ shopDesc: string;
77
+ delivery: string;
78
+ shopName: string;
60
79
  isNeedPrice: boolean;
61
80
  }, {}>>;
62
81
  export default _default;
@@ -1,4 +1,5 @@
1
- import type { PropType } from 'vue';
1
+ import { PropType } from 'vue';
2
+ import { CircleProgressStrokeLinecap } from './types';
2
3
  export interface stopArr {
3
4
  key: string;
4
5
  value: string;
@@ -10,7 +11,7 @@ declare type Install<T> = T & {
10
11
  declare const _default: Install< import("vue").DefineComponent<{
11
12
  progress: {
12
13
  type: (NumberConstructor | StringConstructor)[];
13
- required: true;
14
+ defualt: number;
14
15
  };
15
16
  strokeWidth: {
16
17
  type: (NumberConstructor | StringConstructor)[];
@@ -21,7 +22,7 @@ declare const _default: Install< import("vue").DefineComponent<{
21
22
  default: number;
22
23
  };
23
24
  strokeLinecap: {
24
- type: PropType<"round" | "butt" | "square">;
25
+ type: PropType<CircleProgressStrokeLinecap>;
25
26
  default: string;
26
27
  };
27
28
  color: {
@@ -37,9 +38,6 @@ declare const _default: Install< import("vue").DefineComponent<{
37
38
  default: boolean;
38
39
  };
39
40
  }, {
40
- classes: import("vue").ComputedRef<{
41
- [x: string]: boolean;
42
- }>;
43
41
  hoverStyle: import("vue").ComputedRef<{
44
42
  stroke: string;
45
43
  strokeDasharray: string;
@@ -50,12 +48,11 @@ declare const _default: Install< import("vue").DefineComponent<{
50
48
  path: import("vue").ComputedRef<string>;
51
49
  hoverColor: import("vue").ComputedRef<string>;
52
50
  stop: import("vue").ComputedRef<stopArr[] | undefined>;
53
- slotDefault: boolean;
54
51
  refRandomId: string;
55
52
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
56
53
  progress: {
57
54
  type: (NumberConstructor | StringConstructor)[];
58
- required: true;
55
+ defualt: number;
59
56
  };
60
57
  strokeWidth: {
61
58
  type: (NumberConstructor | StringConstructor)[];
@@ -66,7 +63,7 @@ declare const _default: Install< import("vue").DefineComponent<{
66
63
  default: number;
67
64
  };
68
65
  strokeLinecap: {
69
- type: PropType<"round" | "butt" | "square">;
66
+ type: PropType<CircleProgressStrokeLinecap>;
70
67
  default: string;
71
68
  };
72
69
  color: {
@@ -85,7 +82,7 @@ declare const _default: Install< import("vue").DefineComponent<{
85
82
  color: string | Record<string, any>;
86
83
  radius: string | number;
87
84
  strokeWidth: string | number;
88
- strokeLinecap: "round" | "butt" | "square";
85
+ strokeLinecap: CircleProgressStrokeLinecap;
89
86
  pathColor: string;
90
87
  clockwise: boolean;
91
88
  }, {}>>;
@@ -0,0 +1 @@
1
+ export type CircleProgressStrokeLinecap = 'butt' | 'round' | 'square';
@@ -1,10 +1,11 @@
1
+ import { PropType } from 'vue';
1
2
 
2
3
  declare type Install<T> = T & {
3
4
  install(app: import('vue').App): void;
4
5
  };
5
6
  declare const _default: Install< import("vue").DefineComponent<{
6
7
  image: {
7
- type: StringConstructor;
8
+ type: PropType<string>;
8
9
  default: string;
9
10
  };
10
11
  imageSize: {
@@ -16,12 +17,18 @@ declare const _default: Install< import("vue").DefineComponent<{
16
17
  default: string;
17
18
  };
18
19
  }, {
19
- imageUrl: string;
20
- imgStyle: import("vue").ComputedRef<string>;
20
+ src: import("vue").ComputedRef<any>;
21
+ style: import("vue").ComputedRef<{
22
+ width: string;
23
+ height: string;
24
+ } | {
25
+ width?: undefined;
26
+ height?: undefined;
27
+ }>;
21
28
  translate: (keyPath: string, ...args: unknown[]) => string;
22
29
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
23
30
  image: {
24
- type: StringConstructor;
31
+ type: PropType<string>;
25
32
  default: string;
26
33
  };
27
34
  imageSize: {
@@ -0,0 +1 @@
1
+ export type EmptyImage = 'empty' | 'error' | 'network' | string;
@@ -1,3 +1,5 @@
1
+ import { PropType } from 'vue';
2
+ import { IndicatorAlign } from './types';
1
3
 
2
4
  declare type Install<T> = T & {
3
5
  install(app: import('vue').App): void;
@@ -6,19 +8,17 @@ declare const _default: Install< import("vue").DefineComponent<{
6
8
  size: {
7
9
  type: NumberConstructor;
8
10
  default: number;
9
- required: true;
10
11
  };
11
12
  current: {
12
13
  type: NumberConstructor;
13
14
  default: number;
14
- required: true;
15
15
  };
16
16
  block: {
17
17
  type: BooleanConstructor;
18
18
  default: boolean;
19
19
  };
20
20
  align: {
21
- type: StringConstructor;
21
+ type: PropType<IndicatorAlign>;
22
22
  default: string;
23
23
  };
24
24
  fillZero: {
@@ -27,27 +27,25 @@ declare const _default: Install< import("vue").DefineComponent<{
27
27
  };
28
28
  }, {
29
29
  classes: import("vue").ComputedRef<{
30
- [x: string]: string | boolean;
30
+ [x: string]: boolean | IndicatorAlign;
31
+ "nut-indicator": boolean;
31
32
  }>;
32
- componentName: string;
33
33
  padZero: (num: string | number, length?: number) => string;
34
34
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
35
35
  size: {
36
36
  type: NumberConstructor;
37
37
  default: number;
38
- required: true;
39
38
  };
40
39
  current: {
41
40
  type: NumberConstructor;
42
41
  default: number;
43
- required: true;
44
42
  };
45
43
  block: {
46
44
  type: BooleanConstructor;
47
45
  default: boolean;
48
46
  };
49
47
  align: {
50
- type: StringConstructor;
48
+ type: PropType<IndicatorAlign>;
51
49
  default: string;
52
50
  };
53
51
  fillZero: {
@@ -58,7 +56,7 @@ declare const _default: Install< import("vue").DefineComponent<{
58
56
  block: boolean;
59
57
  size: number;
60
58
  current: number;
61
- align: string;
59
+ align: IndicatorAlign;
62
60
  fillZero: boolean;
63
61
  }, {}>>;
64
62
  export default _default;
@@ -0,0 +1 @@
1
+ export type IndicatorAlign = 'left' | 'center' | 'right';
@@ -1,3 +1,5 @@
1
+ import { PropType } from 'vue';
2
+ import { PricePosition, PriceSize } from './types';
1
3
 
2
4
  declare type Install<T> = T & {
3
5
  install(app: import('vue').App): void;
@@ -24,11 +26,11 @@ declare const _default: Install< import("vue").DefineComponent<{
24
26
  default: boolean;
25
27
  };
26
28
  position: {
27
- type: StringConstructor;
29
+ type: PropType<PricePosition>;
28
30
  default: string;
29
31
  };
30
32
  size: {
31
- type: StringConstructor;
33
+ type: PropType<PriceSize>;
32
34
  default: string;
33
35
  };
34
36
  strikeThrough: {
@@ -65,11 +67,11 @@ declare const _default: Install< import("vue").DefineComponent<{
65
67
  default: boolean;
66
68
  };
67
69
  position: {
68
- type: StringConstructor;
70
+ type: PropType<PricePosition>;
69
71
  default: string;
70
72
  };
71
73
  size: {
72
- type: StringConstructor;
74
+ type: PropType<PriceSize>;
73
75
  default: string;
74
76
  };
75
77
  strikeThrough: {
@@ -78,8 +80,8 @@ declare const _default: Install< import("vue").DefineComponent<{
78
80
  };
79
81
  }>>, {
80
82
  symbol: string;
81
- size: string;
82
- position: string;
83
+ size: PriceSize;
84
+ position: PricePosition;
83
85
  price: string | number;
84
86
  needSymbol: boolean;
85
87
  decimalDigits: number;
@@ -0,0 +1,2 @@
1
+ export type PriceSize = 'small' | 'normal' | 'large';
2
+ export type PricePosition = 'before' | 'after';
@@ -1,3 +1,5 @@
1
+ import { PropType } from 'vue';
2
+ import type { ProgressSize, ProgressStatus } from './types';
1
3
 
2
4
  declare type Install<T> = T & {
3
5
  install(app: import('vue').App): void;
@@ -9,11 +11,11 @@ declare const _default: Install< import("vue").DefineComponent<{
9
11
  required: true;
10
12
  };
11
13
  size: {
12
- type: StringConstructor;
14
+ type: PropType<ProgressSize>;
13
15
  default: string;
14
16
  };
15
17
  status: {
16
- type: StringConstructor;
18
+ type: PropType<ProgressStatus>;
17
19
  default: string;
18
20
  };
19
21
  strokeWidth: {
@@ -45,8 +47,8 @@ declare const _default: Install< import("vue").DefineComponent<{
45
47
  default: boolean;
46
48
  };
47
49
  }, {
48
- height: import("vue").Ref<string>;
49
- percentage: import("vue").ComputedRef<string | number>;
50
+ height: import("vue").ComputedRef<string | undefined>;
51
+ percentage: import("vue").ComputedRef<number>;
50
52
  bgStyle: import("vue").ComputedRef<{
51
53
  width: string;
52
54
  background: string;
@@ -54,8 +56,6 @@ declare const _default: Install< import("vue").DefineComponent<{
54
56
  textStyle: import("vue").ComputedRef<{
55
57
  color: string;
56
58
  }>;
57
- progressOuter: import("vue").Ref<any>;
58
- insideText: import("vue").Ref<any>;
59
59
  slotDefault: boolean;
60
60
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
61
61
  percentage: {
@@ -64,11 +64,11 @@ declare const _default: Install< import("vue").DefineComponent<{
64
64
  required: true;
65
65
  };
66
66
  size: {
67
- type: StringConstructor;
67
+ type: PropType<ProgressSize>;
68
68
  default: string;
69
69
  };
70
70
  status: {
71
- type: StringConstructor;
71
+ type: PropType<ProgressStatus>;
72
72
  default: string;
73
73
  };
74
74
  strokeWidth: {
@@ -100,11 +100,11 @@ declare const _default: Install< import("vue").DefineComponent<{
100
100
  default: boolean;
101
101
  };
102
102
  }>>, {
103
- size: string;
103
+ size: ProgressSize;
104
104
  textColor: string;
105
105
  strokeWidth: string | number;
106
106
  percentage: string | number;
107
- status: string;
107
+ status: ProgressStatus;
108
108
  textInside: boolean;
109
109
  showText: boolean;
110
110
  strokeColor: string;
@@ -0,0 +1,2 @@
1
+ export type ProgressSize = 'small' | 'base' | 'large';
2
+ export type ProgressStatus = 'text' | 'active' | 'icon';
@@ -26,16 +26,15 @@ declare const _default: Install< import("vue").DefineComponent<{
26
26
  rightRef: Ref<HTMLElement | undefined>;
27
27
  open: (p?: SwipePosition) => void;
28
28
  close: () => void;
29
+ onClick: (e: Event, position: string, lock: boolean) => void;
30
+ lockClick: Ref<boolean>;
29
31
  onTouchStart(event: TouchEvent): void;
30
32
  onTouchMove(event: TouchEvent): void;
31
33
  onTouchEnd(): void;
32
- classes: import("vue").ComputedRef<{
33
- [x: string]: boolean;
34
- }>;
35
34
  touchStyle: import("vue").ComputedRef<{
36
35
  transform: string;
37
36
  }>;
38
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("close" | "open")[], "close" | "open", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
37
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("close" | "open" | "click")[], "close" | "open" | "click", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
39
38
  name: {
40
39
  type: StringConstructor;
41
40
  default: string;
@@ -53,6 +52,7 @@ declare const _default: Install< import("vue").DefineComponent<{
53
52
  default: boolean;
54
53
  };
55
54
  }>> & {
55
+ onClick?: ((...args: any[]) => any) | undefined;
56
56
  onClose?: ((...args: any[]) => any) | undefined;
57
57
  onOpen?: ((...args: any[]) => any) | undefined;
58
58
  }, {
@@ -0,0 +1,26 @@
1
+
2
+ declare type Install<T> = T & {
3
+ install(app: import('vue').App): void;
4
+ };
5
+ declare const _default: Install< import("vue").DefineComponent<{
6
+ lock: {
7
+ type: BooleanConstructor;
8
+ default: boolean;
9
+ };
10
+ }, {
11
+ swipeGroupRef: import("vue").Ref<null>;
12
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
13
+ lock: {
14
+ type: BooleanConstructor;
15
+ default: boolean;
16
+ };
17
+ }>>, {
18
+ lock: boolean;
19
+ }, {}>>;
20
+ export default _default;
21
+
22
+ declare module 'vue' {
23
+ interface GlobalComponents {
24
+ NutSwipeGroup: typeof _default;
25
+ }
26
+ }
@@ -1,5 +1,5 @@
1
1
  import { PropType, CSSProperties } from 'vue';
2
- import { TagType } from './type';
2
+ import { TagType } from './types';
3
3
 
4
4
  declare type Install<T> = T & {
5
5
  install(app: import('vue').App): void;
@@ -36,10 +36,11 @@ declare const _default: Install< import("vue").DefineComponent<{
36
36
  }, {
37
37
  classes: import("vue").ComputedRef<{
38
38
  [x: string]: boolean | TagType;
39
+ "nut-tag": boolean;
39
40
  }>;
40
- getStyle: () => CSSProperties;
41
- onClose: (event: MouseEvent) => void;
42
- onClick: (event: MouseEvent) => void;
41
+ style: import("vue").ComputedRef<CSSProperties>;
42
+ onClose: (event: Event) => void;
43
+ onClick: (event: Event) => void;
43
44
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("close" | "click")[], "close" | "click", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
44
45
  color: {
45
46
  type: StringConstructor;
@@ -128,9 +128,6 @@ declare const _default: Install< import("vue").DefineComponent<{
128
128
  percentage: string | number;
129
129
  formData: any;
130
130
  }[]>;
131
- classes: import("vue").ComputedRef<{
132
- [x: string]: boolean;
133
- }>;
134
131
  fileItemClick: (fileItem: FileItem) => void;
135
132
  clearUploadQueue: (index?: number) => void;
136
133
  submit: () => void;
@@ -49,6 +49,7 @@ import NumberKeyboard from './__VUE/numberkeyboard/index.vue';
49
49
  import Form from './__VUE/form/index.vue';
50
50
  import FormItem from './__VUE/formitem/index.vue';
51
51
  import Swipe from './__VUE/swipe/index.vue';
52
+ import SwipeGroup from './__VUE/swipegroup/index.vue';
52
53
  import ActionSheet from './__VUE/actionsheet/index.vue';
53
54
  import Backtop from './__VUE/backtop/index.vue';
54
55
  import Drag from './__VUE/drag/index.vue';
@@ -107,8 +108,8 @@ import CategoryPane from './__VUE/categorypane/index.vue';
107
108
  import Comment from './__VUE/comment/index.vue';
108
109
  import Invoice from './__VUE/invoice/index.vue';
109
110
  declare function install(app: App): void;
110
- declare const version = "4.1.0";
111
- export { install, version, Locale, Button, Cell, CellGroup, Overlay, Popup, ConfigProvider, Image, Layout, Col, Row, Sticky, Divider, Grid, GridItem, Navbar, FixedNav, Menu, MenuItem, Tabbar, TabbarItem, Elevator, Pagination, Tabs, TabPane, Indicator, SideNavbar, SideNavbarItem, SubSideNavbar, Range, Searchbar, Cascader, Calendar, Checkbox, CheckboxGroup, DatePicker, InputNumber, Input, Radio, RadioGroup, Rate, CalendarItem, Picker, ShortPassword, Textarea, Uploader, NumberKeyboard, Form, FormItem, Swipe, ActionSheet, Backtop, Drag, Dialog, InfiniteLoading, PullRefresh, Notify, Switch, Toast, Audio, AudioOperate, Avatar, AvatarGroup, List, Progress, CircleProgress, Noticebar, Empty, Video, Steps, Step, Swiper, SwiperItem, Price, ImagePreview, Countup, Countdown, Badge, Tag, Popover, Skeleton, Collapse, CollapseItem, Table, Animate, Ellipsis, Watermark, TrendArrow, Tour, Address, Barrage, Signature, TimeSelect, TimePannel, TimeDetail, Sku, Card, Ecard, AddressList, Category, CategoryPane, Comment, Invoice, showDialog, showNotify, showToast, showImagePreview };
111
+ declare const version = "4.1.1";
112
+ export { install, version, Locale, Button, Cell, CellGroup, Overlay, Popup, ConfigProvider, Image, Layout, Col, Row, Sticky, Divider, Grid, GridItem, Navbar, FixedNav, Menu, MenuItem, Tabbar, TabbarItem, Elevator, Pagination, Tabs, TabPane, Indicator, SideNavbar, SideNavbarItem, SubSideNavbar, Range, Searchbar, Cascader, Calendar, Checkbox, CheckboxGroup, DatePicker, InputNumber, Input, Radio, RadioGroup, Rate, CalendarItem, Picker, ShortPassword, Textarea, Uploader, NumberKeyboard, Form, FormItem, Swipe, SwipeGroup, ActionSheet, Backtop, Drag, Dialog, InfiniteLoading, PullRefresh, Notify, Switch, Toast, Audio, AudioOperate, Avatar, AvatarGroup, List, Progress, CircleProgress, Noticebar, Empty, Video, Steps, Step, Swiper, SwiperItem, Price, ImagePreview, Countup, Countdown, Badge, Tag, Popover, Skeleton, Collapse, CollapseItem, Table, Animate, Ellipsis, Watermark, TrendArrow, Tour, Address, Barrage, Signature, TimeSelect, TimePannel, TimeDetail, Sku, Card, Ecard, AddressList, Category, CategoryPane, Comment, Invoice, showDialog, showNotify, showToast, showImagePreview };
112
113
  declare const _default: {
113
114
  install: typeof install;
114
115
  version: string;
@@ -6,3 +6,4 @@ export declare function mockScrollTop(value: number): Promise<void>;
6
6
  export declare function sleep(delay?: number): Promise<void>;
7
7
  export declare function triggerDrag(el: any, relativeX?: number, relativeY?: number): void;
8
8
  export declare function mockElementMethod(element: any, method: string): Mock;
9
+ export declare function mockGetBoundingClientRect(rect: any): () => void;
@@ -7,4 +7,5 @@ export interface rectTaro {
7
7
  width: number;
8
8
  height: number;
9
9
  }
10
+ export declare const useTaroRectById: (id: string) => Promise<unknown>;
10
11
  export declare const useTaroRect: (elementRef: (Element | Window | any) | Ref<Element | Window | any>) => any;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nutui/nutui",
3
- "version": "4.1.0",
3
+ "version": "4.1.2",
4
4
  "description": "京东风格的轻量级移动端 Vue2、Vue3 组件库(支持小程序开发)",
5
5
  "main": "dist/nutui.umd.js",
6
6
  "module": "dist/nutui.es.js",
File without changes