@nutui/nutui 4.3.0-beta.5 → 4.3.0

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 (71) hide show
  1. package/CHANGELOG.md +26 -0
  2. package/README.md +1 -1
  3. package/dist/nutui.es.js +1 -1
  4. package/dist/nutui.js +4032 -4072
  5. package/dist/nutui.umd.js +1 -1
  6. package/dist/packages/actionsheet/ActionSheet.js +1 -1
  7. package/dist/packages/address/Address.js +1 -1
  8. package/dist/packages/audio/Audio.js +1 -1
  9. package/dist/packages/avatarcropper/AvatarCropper.js +4 -4
  10. package/dist/packages/avatarcropper/index.css +1 -1
  11. package/dist/packages/avatarcropper/index.scss +6 -0
  12. package/dist/packages/button/Button.js +25 -50
  13. package/dist/packages/calendar/Calendar.js +1 -1
  14. package/dist/packages/calendarcard/CalendarCard.js +6 -24
  15. package/dist/packages/cascader/Cascader.js +2 -2
  16. package/dist/packages/dialog/Dialog.js +1 -1
  17. package/dist/packages/divider/Divider.js +5 -17
  18. package/dist/packages/imagepreview/ImagePreview.js +2 -2
  19. package/dist/packages/{index-rf29bejW.js → index-cp6Ms_Qe.js} +1 -1
  20. package/dist/packages/{index-rbZsBckW.js → index-wY4t0zYt.js} +0 -4
  21. package/dist/packages/inputnumber/InputNumber.js +1 -0
  22. package/dist/packages/list/List.js +1 -1
  23. package/dist/packages/menu/Menu.js +1 -1
  24. package/dist/packages/menuitem/MenuItem.js +1 -1
  25. package/dist/packages/noticebar/Noticebar.js +9 -10
  26. package/dist/packages/notify/Notify.js +17 -5
  27. package/dist/packages/numberkeyboard/NumberKeyboard.js +1 -1
  28. package/dist/packages/popover/Popover.js +90 -88
  29. package/dist/packages/popover/index.css +1 -1
  30. package/dist/packages/popover/index.scss +5 -14
  31. package/dist/packages/popup/Popup.js +1 -1
  32. package/dist/packages/range/Range.js +1 -1
  33. package/dist/packages/shortpassword/ShortPassword.js +1 -1
  34. package/dist/packages/sku/Sku.js +1 -1
  35. package/dist/packages/sticky/Sticky.js +1 -1
  36. package/dist/packages/tabs/Tabs.js +1 -1
  37. package/dist/packages/timeselect/TimeSelect.js +1 -1
  38. package/dist/packages/tour/Tour.js +3 -3
  39. package/dist/packages/tour/index.css +1 -1
  40. package/dist/smartips/web-types.json +22 -31
  41. package/dist/style.css +1 -1
  42. package/dist/types/__VUE/actionsheet/index.vue.d.ts +6 -15
  43. package/dist/types/__VUE/address/index.vue.d.ts +6 -15
  44. package/dist/types/__VUE/button/button.vue.d.ts +65 -69
  45. package/dist/types/__VUE/button/index.d.ts +1 -0
  46. package/dist/types/__VUE/calendarcard/calendar-card.vue.d.ts +59 -57
  47. package/dist/types/__VUE/calendarcard/index.d.ts +1 -0
  48. package/dist/types/__VUE/cascader/index.vue.d.ts +6 -15
  49. package/dist/types/__VUE/cell/index.vue.d.ts +1 -1
  50. package/dist/types/__VUE/comment/index.vue.d.ts +2 -2
  51. package/dist/types/__VUE/dialog/index.vue.d.ts +6 -15
  52. package/dist/types/__VUE/divider/divider.vue.d.ts +43 -35
  53. package/dist/types/__VUE/divider/index.d.ts +1 -0
  54. package/dist/types/__VUE/menu/index.vue.d.ts +2 -2
  55. package/dist/types/__VUE/noticebar/index.vue.d.ts +4 -3
  56. package/dist/types/__VUE/noticebar/types.d.ts +1 -0
  57. package/dist/types/__VUE/notify/index.vue.d.ts +8 -6
  58. package/dist/types/__VUE/notify/types.d.ts +3 -0
  59. package/dist/types/__VUE/numberkeyboard/index.vue.d.ts +4 -3
  60. package/dist/types/__VUE/numberkeyboard/types.d.ts +1 -0
  61. package/dist/types/__VUE/popover/index.vue.d.ts +0 -1
  62. package/dist/types/__VUE/popover/type.d.ts +7 -0
  63. package/dist/types/__VUE/popup/index.vue.d.ts +6 -15
  64. package/dist/types/__VUE/popup/props.d.ts +4 -6
  65. package/dist/types/__VUE/popup/types.d.ts +2 -0
  66. package/dist/types/__VUE/radio/index.vue.d.ts +2 -2
  67. package/dist/types/__VUE/radiogroup/index.vue.d.ts +2 -2
  68. package/dist/types/__VUE/searchbar/index.vue.d.ts +2 -2
  69. package/dist/types/__VUE/switch/index.vue.d.ts +6 -6
  70. package/dist/types/index.d.ts +1 -1
  71. package/package.json +1 -1
@@ -30,7 +30,7 @@ declare const _default: Install< import("vue").DefineComponent<{
30
30
  default: string;
31
31
  };
32
32
  scrollFixed: {
33
- type: (NumberConstructor | StringConstructor | BooleanConstructor)[];
33
+ type: (NumberConstructor | BooleanConstructor | StringConstructor)[];
34
34
  default: boolean;
35
35
  };
36
36
  titleClass: {
@@ -73,7 +73,7 @@ declare const _default: Install< import("vue").DefineComponent<{
73
73
  default: string;
74
74
  };
75
75
  scrollFixed: {
76
- type: (NumberConstructor | StringConstructor | BooleanConstructor)[];
76
+ type: (NumberConstructor | BooleanConstructor | StringConstructor)[];
77
77
  default: boolean;
78
78
  };
79
79
  titleClass: {
@@ -1,11 +1,12 @@
1
1
  import { PropType } from 'vue';
2
+ import { NoticebarDirection } from './types';
2
3
 
3
4
  declare type Install<T> = T & {
4
5
  install(app: import('vue').App): void;
5
6
  };
6
7
  declare const _default: Install< import("vue").DefineComponent<{
7
8
  direction: {
8
- type: StringConstructor;
9
+ type: PropType<NoticebarDirection>;
9
10
  default: string;
10
11
  };
11
12
  list: {
@@ -104,7 +105,7 @@ declare const _default: Install< import("vue").DefineComponent<{
104
105
  showNotica: import("vue").Ref<boolean>;
105
106
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("click" | "close" | "acrossEnd")[], "click" | "close" | "acrossEnd", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
106
107
  direction: {
107
- type: StringConstructor;
108
+ type: PropType<NoticebarDirection>;
108
109
  default: string;
109
110
  };
110
111
  list: {
@@ -168,7 +169,7 @@ declare const _default: Install< import("vue").DefineComponent<{
168
169
  height: number;
169
170
  text: string;
170
171
  background: string;
171
- direction: string;
172
+ direction: NoticebarDirection;
172
173
  list: any[];
173
174
  standTime: number;
174
175
  complexAm: boolean;
@@ -0,0 +1 @@
1
+ export type NoticebarDirection = 'across' | 'vertical';
@@ -1,3 +1,5 @@
1
+ import { type PropType } from 'vue';
2
+ import type { NotifyType } from './types';
1
3
 
2
4
  declare type Install<T> = T & {
3
5
  install(app: import('vue').App): void;
@@ -25,7 +27,7 @@ declare const _default: Install< import("vue").DefineComponent<{
25
27
  default: string;
26
28
  };
27
29
  type: {
28
- type: StringConstructor;
30
+ type: PropType<NotifyType>;
29
31
  default: string;
30
32
  };
31
33
  visible: {
@@ -33,7 +35,7 @@ declare const _default: Install< import("vue").DefineComponent<{
33
35
  default: boolean;
34
36
  };
35
37
  position: {
36
- type: StringConstructor;
38
+ type: PropType<import("../popup/types").PopupPosition>;
37
39
  default: string;
38
40
  };
39
41
  teleportDisable: {
@@ -70,7 +72,7 @@ declare const _default: Install< import("vue").DefineComponent<{
70
72
  default: string;
71
73
  };
72
74
  type: {
73
- type: StringConstructor;
75
+ type: PropType<NotifyType>;
74
76
  default: string;
75
77
  };
76
78
  visible: {
@@ -78,7 +80,7 @@ declare const _default: Install< import("vue").DefineComponent<{
78
80
  default: boolean;
79
81
  };
80
82
  position: {
81
- type: StringConstructor;
83
+ type: PropType<import("../popup/types").PopupPosition>;
82
84
  default: string;
83
85
  };
84
86
  teleportDisable: {
@@ -92,11 +94,11 @@ declare const _default: Install< import("vue").DefineComponent<{
92
94
  "onUpdate:visible"?: ((...args: any[]) => any) | undefined;
93
95
  }, {
94
96
  color: string;
95
- type: string;
97
+ type: NotifyType;
96
98
  background: string;
97
99
  visible: boolean;
98
100
  duration: number;
99
- position: string;
101
+ position: import("../popup/types").PopupPosition;
100
102
  teleportDisable: boolean;
101
103
  className: string;
102
104
  msg: string;
@@ -0,0 +1,3 @@
1
+ import type { PopupPosition } from '../popup/types';
2
+ export type NotifyPosition = PopupPosition;
3
+ export type NotifyType = 'base' | 'danger' | 'primary' | 'success' | 'warning';
@@ -1,4 +1,5 @@
1
1
  import { Ref, PropType } from 'vue';
2
+ import { NumberKeyboardType } from './types';
2
3
  export interface keys {
3
4
  id: number | string;
4
5
  type: string;
@@ -21,7 +22,7 @@ declare const _default: Install< import("vue").DefineComponent<{
21
22
  default: boolean;
22
23
  };
23
24
  type: {
24
- type: StringConstructor;
25
+ type: PropType<NumberKeyboardType>;
25
26
  default: string;
26
27
  };
27
28
  customKey: {
@@ -78,7 +79,7 @@ declare const _default: Install< import("vue").DefineComponent<{
78
79
  default: boolean;
79
80
  };
80
81
  type: {
81
- type: StringConstructor;
82
+ type: PropType<NumberKeyboardType>;
82
83
  default: string;
83
84
  };
84
85
  customKey: {
@@ -113,7 +114,7 @@ declare const _default: Install< import("vue").DefineComponent<{
113
114
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
114
115
  onDelete?: ((...args: any[]) => any) | undefined;
115
116
  }, {
116
- type: string;
117
+ type: NumberKeyboardType;
117
118
  title: string;
118
119
  visible: boolean;
119
120
  lockScroll: boolean;
@@ -0,0 +1 @@
1
+ export type NumberKeyboardType = 'default' | 'rightColumn';
@@ -81,7 +81,6 @@ declare const _default: Install< import("vue").DefineComponent<{
81
81
  popoverRef: import("vue").Ref<any>;
82
82
  popoverContentRef: import("vue").Ref<any>;
83
83
  getRootPosition: import("vue").ComputedRef<CSSProperties>;
84
- customStyle: import("vue").ComputedRef<CSSProperties>;
85
84
  popoverArrowStyle: import("vue").ComputedRef<CSSProperties>;
86
85
  renderIcon: (icon: import("vue").Component, props?: any) => "" | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
87
86
  [key: string]: any;
@@ -1,4 +1,11 @@
1
1
  import { Component } from 'vue';
2
+ export interface PopoverRootPosition {
3
+ width: number;
4
+ height: number;
5
+ left: number;
6
+ top: number;
7
+ right: number;
8
+ }
2
9
  export type PopoverTheme = 'light' | 'dark';
3
10
  export type PopoverLocation = 'bottom' | 'top' | 'left' | 'right' | 'top-start' | 'top-end' | 'bottom-start' | 'bottom-end' | 'left-start' | 'left-end' | 'right-start' | 'right-end';
4
11
  export type PopoverList = {
@@ -24,7 +24,7 @@ declare const _default: Install< import("vue").DefineComponent<{
24
24
  default: boolean;
25
25
  };
26
26
  position: {
27
- type: StringConstructor;
27
+ type: import("vue").PropType<import("./types").PopupPosition>;
28
28
  default: string;
29
29
  };
30
30
  transition: {
@@ -44,11 +44,7 @@ declare const _default: Install< import("vue").DefineComponent<{
44
44
  default: boolean;
45
45
  };
46
46
  closeIconPosition: {
47
- type: StringConstructor;
48
- default: string;
49
- };
50
- closeIcon: {
51
- type: StringConstructor;
47
+ type: import("vue").PropType<import("./types").PopupCloseIconPosition>;
52
48
  default: string;
53
49
  };
54
50
  destroyOnClose: {
@@ -126,7 +122,7 @@ declare const _default: Install< import("vue").DefineComponent<{
126
122
  default: boolean;
127
123
  };
128
124
  position: {
129
- type: StringConstructor;
125
+ type: import("vue").PropType<import("./types").PopupPosition>;
130
126
  default: string;
131
127
  };
132
128
  transition: {
@@ -146,11 +142,7 @@ declare const _default: Install< import("vue").DefineComponent<{
146
142
  default: boolean;
147
143
  };
148
144
  closeIconPosition: {
149
- type: StringConstructor;
150
- default: string;
151
- };
152
- closeIcon: {
153
- type: StringConstructor;
145
+ type: import("vue").PropType<import("./types").PopupCloseIconPosition>;
154
146
  default: string;
155
147
  };
156
148
  destroyOnClose: {
@@ -209,11 +201,10 @@ declare const _default: Install< import("vue").DefineComponent<{
209
201
  overlayClass: string;
210
202
  overlayStyle: Record<string, any>;
211
203
  closeOnClickOverlay: boolean;
212
- position: string;
204
+ position: import("./types").PopupPosition;
213
205
  popClass: string;
214
206
  closeable: boolean;
215
- closeIconPosition: string;
216
- closeIcon: string;
207
+ closeIconPosition: import("./types").PopupCloseIconPosition;
217
208
  destroyOnClose: boolean;
218
209
  teleport: string | Element;
219
210
  teleportDisable: boolean;
@@ -1,3 +1,5 @@
1
+ import type { PropType } from 'vue';
2
+ import type { PopupCloseIconPosition, PopupPosition } from './types';
1
3
  export declare const popupProps: {
2
4
  visible: {
3
5
  type: BooleanConstructor;
@@ -20,7 +22,7 @@ export declare const popupProps: {
20
22
  default: boolean;
21
23
  };
22
24
  position: {
23
- type: StringConstructor;
25
+ type: PropType<PopupPosition>;
24
26
  default: string;
25
27
  };
26
28
  transition: {
@@ -40,11 +42,7 @@ export declare const popupProps: {
40
42
  default: boolean;
41
43
  };
42
44
  closeIconPosition: {
43
- type: StringConstructor;
44
- default: string;
45
- };
46
- closeIcon: {
47
- type: StringConstructor;
45
+ type: PropType<PopupCloseIconPosition>;
48
46
  default: string;
49
47
  };
50
48
  destroyOnClose: {
@@ -0,0 +1,2 @@
1
+ export type PopupPosition = 'center' | 'left' | 'right' | 'top' | 'bottom' | '';
2
+ export type PopupCloseIconPosition = 'top-right' | 'top-left' | 'bottom-left' | 'bottom-right';
@@ -14,7 +14,7 @@ declare const _default: Install< import("vue").DefineComponent<{
14
14
  default: string;
15
15
  };
16
16
  label: {
17
- type: (NumberConstructor | StringConstructor | BooleanConstructor)[];
17
+ type: (NumberConstructor | BooleanConstructor | StringConstructor)[];
18
18
  default: string;
19
19
  };
20
20
  iconSize: {
@@ -37,7 +37,7 @@ declare const _default: Install< import("vue").DefineComponent<{
37
37
  default: string;
38
38
  };
39
39
  label: {
40
- type: (NumberConstructor | StringConstructor | BooleanConstructor)[];
40
+ type: (NumberConstructor | BooleanConstructor | StringConstructor)[];
41
41
  default: string;
42
42
  };
43
43
  iconSize: {
@@ -6,7 +6,7 @@ declare type Install<T> = T & {
6
6
  };
7
7
  declare const _default: Install< import("vue").DefineComponent<{
8
8
  modelValue: {
9
- type: (NumberConstructor | StringConstructor | BooleanConstructor)[];
9
+ type: (NumberConstructor | BooleanConstructor | StringConstructor)[];
10
10
  default: string;
11
11
  };
12
12
  direction: {
@@ -21,7 +21,7 @@ declare const _default: Install< import("vue").DefineComponent<{
21
21
  [key: string]: any;
22
22
  }>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:modelValue")[], "change" | "update:modelValue", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
23
23
  modelValue: {
24
- type: (NumberConstructor | StringConstructor | BooleanConstructor)[];
24
+ type: (NumberConstructor | BooleanConstructor | StringConstructor)[];
25
25
  default: string;
26
26
  };
27
27
  direction: {
@@ -146,7 +146,7 @@ declare const _default: Install< import("vue").DefineComponent<{
146
146
  [key: string]: any;
147
147
  }>;
148
148
  inputsearch: Ref<HTMLElement | null>;
149
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("clear" | "search" | "blur" | "change" | "focus" | "update:modelValue" | "clickInput" | "clickLeftIcon" | "clickRightIcon")[], "clear" | "search" | "blur" | "change" | "focus" | "update:modelValue" | "clickInput" | "clickLeftIcon" | "clickRightIcon", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
149
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("search" | "clear" | "blur" | "change" | "focus" | "update:modelValue" | "clickInput" | "clickLeftIcon" | "clickRightIcon")[], "search" | "clear" | "blur" | "change" | "focus" | "update:modelValue" | "clickInput" | "clickLeftIcon" | "clickRightIcon", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
150
150
  modelValue: {
151
151
  type: (NumberConstructor | StringConstructor)[];
152
152
  default: string;
@@ -270,8 +270,8 @@ declare const _default: Install< import("vue").DefineComponent<{
270
270
  onBlur?: ((...args: any[]) => any) | undefined;
271
271
  onChange?: ((...args: any[]) => any) | undefined;
272
272
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
273
- onClear?: ((...args: any[]) => any) | undefined;
274
273
  onSearch?: ((...args: any[]) => any) | undefined;
274
+ onClear?: ((...args: any[]) => any) | undefined;
275
275
  onClickInput?: ((...args: any[]) => any) | undefined;
276
276
  onClickLeftIcon?: ((...args: any[]) => any) | undefined;
277
277
  onClickRightIcon?: ((...args: any[]) => any) | undefined;
@@ -4,7 +4,7 @@ declare type Install<T> = T & {
4
4
  };
5
5
  declare const _default: Install< import("vue").DefineComponent<{
6
6
  modelValue: {
7
- type: (NumberConstructor | StringConstructor | BooleanConstructor)[];
7
+ type: (NumberConstructor | BooleanConstructor | StringConstructor)[];
8
8
  default: boolean;
9
9
  };
10
10
  disable: {
@@ -28,11 +28,11 @@ declare const _default: Install< import("vue").DefineComponent<{
28
28
  default: string;
29
29
  };
30
30
  activeValue: {
31
- type: (NumberConstructor | StringConstructor | BooleanConstructor)[];
31
+ type: (NumberConstructor | BooleanConstructor | StringConstructor)[];
32
32
  default: boolean;
33
33
  };
34
34
  inactiveValue: {
35
- type: (NumberConstructor | StringConstructor | BooleanConstructor)[];
35
+ type: (NumberConstructor | BooleanConstructor | StringConstructor)[];
36
36
  default: boolean;
37
37
  };
38
38
  loading: {
@@ -50,7 +50,7 @@ declare const _default: Install< import("vue").DefineComponent<{
50
50
  onClick: (event: Event) => void;
51
51
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:modelValue" | "update:loading")[], "change" | "update:modelValue" | "update:loading", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
52
52
  modelValue: {
53
- type: (NumberConstructor | StringConstructor | BooleanConstructor)[];
53
+ type: (NumberConstructor | BooleanConstructor | StringConstructor)[];
54
54
  default: boolean;
55
55
  };
56
56
  disable: {
@@ -74,11 +74,11 @@ declare const _default: Install< import("vue").DefineComponent<{
74
74
  default: string;
75
75
  };
76
76
  activeValue: {
77
- type: (NumberConstructor | StringConstructor | BooleanConstructor)[];
77
+ type: (NumberConstructor | BooleanConstructor | StringConstructor)[];
78
78
  default: boolean;
79
79
  };
80
80
  inactiveValue: {
81
- type: (NumberConstructor | StringConstructor | BooleanConstructor)[];
81
+ type: (NumberConstructor | BooleanConstructor | StringConstructor)[];
82
82
  default: boolean;
83
83
  };
84
84
  loading: {
@@ -114,7 +114,7 @@ import Comment from './__VUE/comment/index.vue';
114
114
  import Invoice from './__VUE/invoice/index.vue';
115
115
  import AvatarCropper from './__VUE/avatarcropper/index.vue';
116
116
  declare function install(app: App): void;
117
- declare const version = "4.3.0-beta.5";
117
+ declare const version = "4.3.0";
118
118
  export { install, version, Locale, Button, Cell, CellGroup, Overlay, Popup, ConfigProvider, Image, Layout, Col, Row, Sticky, Divider, Grid, GridItem, Space, Navbar, FixedNav, Menu, MenuItem, Tabbar, TabbarItem, Elevator, Pagination, Tabs, TabPane, Indicator, SideNavbar, SideNavbarItem, SubSideNavbar, Range, Searchbar, Cascader, Calendar, CalendarCard, 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, AvatarCropper, showDialog, showNotify, showToast, showImagePreview };
119
119
  declare const _default: {
120
120
  install: typeof install;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nutui/nutui",
3
- "version": "4.3.0-beta.5",
3
+ "version": "4.3.0",
4
4
  "description": "京东风格的轻量级移动端 Vue2、Vue3 组件库(支持小程序开发)",
5
5
  "main": "dist/nutui.umd.js",
6
6
  "module": "dist/nutui.es.js",