@nutui/nutui 4.0.0-beta.7 → 4.0.0-beta.9

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 (33) hide show
  1. package/dist/nutui.es.js +125 -0
  2. package/dist/nutui.umd.cjs +7 -20046
  3. package/dist/packages/_es/Barrage.js +15 -27
  4. package/dist/packages/_es/Dialog.js +11 -16
  5. package/dist/packages/_es/ImagePreview.js +10 -13
  6. package/dist/packages/_es/Notify.js +6 -5
  7. package/dist/packages/_es/Swiper.js +56 -114
  8. package/dist/packages/_es/Switch.js +1 -1
  9. package/dist/packages/_es/Toast.js +6 -7
  10. package/dist/packages/barrage/index.scss +17 -1
  11. package/dist/packages/cell/index.scss +3 -1
  12. package/dist/packages/dialog/index.mjs +2 -1
  13. package/dist/packages/imagepreview/index.mjs +2 -1
  14. package/dist/packages/notify/index.mjs +2 -1
  15. package/dist/packages/pullrefresh/index.scss +3 -2
  16. package/dist/packages/toast/index.mjs +2 -1
  17. package/dist/smartips/attributes.json +25 -21
  18. package/dist/smartips/tags.json +9 -8
  19. package/dist/smartips/web-types.json +38 -29
  20. package/dist/style.css +1 -1
  21. package/dist/styles/themes/default.scss +53 -53
  22. package/dist/styles/themes/jdb.scss +53 -53
  23. package/dist/styles/themes/jddkh.scss +53 -53
  24. package/dist/styles/themes/jdt.scss +53 -53
  25. package/dist/types/__VUE/barrage/index.vue.d.ts +0 -1
  26. package/dist/types/__VUE/dialog/index.d.ts +9 -9
  27. package/dist/types/__VUE/imagepreview/index.d.ts +12 -12
  28. package/dist/types/__VUE/imagepreview/index.vue.d.ts +0 -9
  29. package/dist/types/__VUE/notify/index.d.ts +3 -3
  30. package/dist/types/__VUE/swiper/index.vue.d.ts +8 -7
  31. package/dist/types/__VUE/toast/index.d.ts +3 -3
  32. package/dist/types/index.d.ts +10 -6
  33. package/package.json +1 -1
@@ -1,104 +1,104 @@
1
1
  @import '../variables-jdt.scss';
2
2
  @import '../theme-jdt.scss';
3
3
  @import '../../packages/button/index.scss';
4
- @import '../../packages/cell/index.scss';
5
4
  @import '../../packages/cellgroup/index.scss';
6
5
  @import '../../packages/overlay/index.scss';
6
+ @import '../../packages/cell/index.scss';
7
7
  @import '../../packages/layout/index.scss';
8
- @import '../../packages/configprovider/index.scss';
9
- @import '../../packages/popup/index.scss';
10
8
  @import '../../packages/image/index.scss';
9
+ @import '../../packages/configprovider/index.scss';
11
10
  @import '../../packages/col/index.scss';
12
- @import '../../packages/row/index.scss';
13
- @import '../../packages/sticky/index.scss';
11
+ @import '../../packages/popup/index.scss';
14
12
  @import '../../packages/divider/index.scss';
13
+ @import '../../packages/row/index.scss';
15
14
  @import '../../packages/grid/index.scss';
15
+ @import '../../packages/sticky/index.scss';
16
16
  @import '../../packages/navbar/index.scss';
17
- @import '../../packages/griditem/index.scss';
18
- @import '../../packages/fixednav/index.scss';
19
17
  @import '../../packages/menu/index.scss';
20
- @import '../../packages/tabbar/index.scss';
18
+ @import '../../packages/fixednav/index.scss';
19
+ @import '../../packages/griditem/index.scss';
21
20
  @import '../../packages/menuitem/index.scss';
22
- @import '../../packages/tabs/index.scss';
23
- @import '../../packages/pagination/index.scss';
21
+ @import '../../packages/tabbar/index.scss';
24
22
  @import '../../packages/elevator/index.scss';
25
- @import '../../packages/tabpane/index.scss';
23
+ @import '../../packages/tabbaritem/index.scss';
24
+ @import '../../packages/pagination/index.scss';
26
25
  @import '../../packages/indicator/index.scss';
27
- @import '../../packages/sidenavbar/index.scss';
26
+ @import '../../packages/tabs/index.scss';
27
+ @import '../../packages/tabpane/index.scss';
28
28
  @import '../../packages/sidenavbaritem/index.scss';
29
- @import '../../packages/subsidenavbar/index.scss';
30
29
  @import '../../packages/searchbar/index.scss';
31
- @import '../../packages/cascader/index.scss';
32
- @import '../../packages/checkboxgroup/index.scss';
30
+ @import '../../packages/subsidenavbar/index.scss';
31
+ @import '../../packages/range/index.scss';
32
+ @import '../../packages/sidenavbar/index.scss';
33
33
  @import '../../packages/checkbox/index.scss';
34
- @import '../../packages/input/index.scss';
34
+ @import '../../packages/cascader/index.scss';
35
+ @import '../../packages/calendar/index.scss';
35
36
  @import '../../packages/datepicker/index.scss';
36
37
  @import '../../packages/radio/index.scss';
37
38
  @import '../../packages/inputnumber/index.scss';
38
39
  @import '../../packages/calendaritem/index.scss';
40
+ @import '../../packages/shortpassword/index.scss';
41
+ @import '../../packages/input/index.scss';
39
42
  @import '../../packages/rate/index.scss';
43
+ @import '../../packages/numberkeyboard/index.scss';
40
44
  @import '../../packages/radiogroup/index.scss';
41
- @import '../../packages/tabbaritem/index.scss';
42
- @import '../../packages/shortpassword/index.scss';
43
- @import '../../packages/range/index.scss';
44
- @import '../../packages/picker/index.scss';
45
- @import '../../packages/calendar/index.scss';
46
- @import '../../packages/uploader/index.scss';
47
- @import '../../packages/form/index.scss';
48
- @import '../../packages/formitem/index.scss';
49
45
  @import '../../packages/textarea/index.scss';
50
- @import '../../packages/swipe/index.scss';
51
- @import '../../packages/numberkeyboard/index.scss';
46
+ @import '../../packages/form/index.scss';
47
+ @import '../../packages/uploader/index.scss';
48
+ @import '../../packages/picker/index.scss';
52
49
  @import '../../packages/actionsheet/index.scss';
53
- @import '../../packages/drag/index.scss';
54
50
  @import '../../packages/backtop/index.scss';
55
- @import '../../packages/dialog/index.scss';
51
+ @import '../../packages/formitem/index.scss';
52
+ @import '../../packages/drag/index.scss';
53
+ @import '../../packages/swipe/index.scss';
56
54
  @import '../../packages/infiniteloading/index.scss';
57
- @import '../../packages/pullrefresh/index.scss';
58
- @import '../../packages/audio/index.scss';
59
- @import '../../packages/toast/index.scss';
60
- @import '../../packages/switch/index.scss';
55
+ @import '../../packages/dialog/index.scss';
61
56
  @import '../../packages/audiooperate/index.scss';
57
+ @import '../../packages/audio/index.scss';
58
+ @import '../../packages/pullrefresh/index.scss';
59
+ @import '../../packages/notify/index.scss';
62
60
  @import '../../packages/avatargroup/index.scss';
61
+ @import '../../packages/progress/index.scss';
62
+ @import '../../packages/switch/index.scss';
63
63
  @import '../../packages/avatar/index.scss';
64
- @import '../../packages/notify/index.scss';
65
- @import '../../packages/list/index.scss';
64
+ @import '../../packages/toast/index.scss';
66
65
  @import '../../packages/circleprogress/index.scss';
67
- @import '../../packages/progress/index.scss';
68
- @import '../../packages/empty/index.scss';
69
- @import '../../packages/video/index.scss';
70
- @import '../../packages/steps/index.scss';
66
+ @import '../../packages/list/index.scss';
71
67
  @import '../../packages/noticebar/index.scss';
72
68
  @import '../../packages/swiper/index.scss';
69
+ @import '../../packages/steps/index.scss';
70
+ @import '../../packages/video/index.scss';
71
+ @import '../../packages/empty/index.scss';
72
+ @import '../../packages/step/index.scss';
73
73
  @import '../../packages/swiperitem/index.scss';
74
74
  @import '../../packages/price/index.scss';
75
- @import '../../packages/countdown/index.scss';
76
- @import '../../packages/step/index.scss';
75
+ @import '../../packages/countup/index.scss';
77
76
  @import '../../packages/imagepreview/index.scss';
78
77
  @import '../../packages/badge/index.scss';
79
- @import '../../packages/popover/index.scss';
80
- @import '../../packages/collapse/index.scss';
78
+ @import '../../packages/countdown/index.scss';
81
79
  @import '../../packages/tag/index.scss';
82
- @import '../../packages/table/index.scss';
80
+ @import '../../packages/collapse/index.scss';
81
+ @import '../../packages/skeleton/index.scss';
82
+ @import '../../packages/popover/index.scss';
83
83
  @import '../../packages/collapseitem/index.scss';
84
84
  @import '../../packages/animate/index.scss';
85
- @import '../../packages/skeleton/index.scss';
85
+ @import '../../packages/trendarrow/index.scss';
86
+ @import '../../packages/tour/index.scss';
87
+ @import '../../packages/table/index.scss';
86
88
  @import '../../packages/ellipsis/index.scss';
89
+ @import '../../packages/timeselect/index.scss';
87
90
  @import '../../packages/watermark/index.scss';
88
- @import '../../packages/trendarrow/index.scss';
89
91
  @import '../../packages/address/index.scss';
90
- @import '../../packages/tour/index.scss';
91
92
  @import '../../packages/signature/index.scss';
92
93
  @import '../../packages/barrage/index.scss';
93
- @import '../../packages/timeselect/index.scss';
94
- @import '../../packages/sku/index.scss';
95
94
  @import '../../packages/timepannel/index.scss';
96
- @import '../../packages/addresslist/index.scss';
97
95
  @import '../../packages/timedetail/index.scss';
96
+ @import '../../packages/checkboxgroup/index.scss';
97
+ @import '../../packages/card/index.scss';
98
+ @import '../../packages/sku/index.scss';
99
+ @import '../../packages/addresslist/index.scss';
100
+ @import '../../packages/categorypane/index.scss';
98
101
  @import '../../packages/ecard/index.scss';
99
102
  @import '../../packages/category/index.scss';
100
- @import '../../packages/card/index.scss';
101
- @import '../../packages/comment/index.scss';
102
103
  @import '../../packages/invoice/index.scss';
103
- @import '../../packages/categorypane/index.scss';
104
- @import '../../packages/countup/index.scss';
104
+ @import '../../packages/comment/index.scss';
@@ -36,7 +36,6 @@ declare const _default: Install< import("vue").DefineComponent<{
36
36
  dmBody: import("vue").Ref<HTMLDivElement>;
37
37
  dmContainer: import("vue").Ref<HTMLDivElement>;
38
38
  add: (word: string) => void;
39
- distance: import("vue").Ref<string>;
40
39
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "click"[], "click", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
41
40
  danmu: {
42
41
  type: ArrayConstructor;
@@ -14,12 +14,12 @@ export declare class DialogOptions {
14
14
  teleport?: string | HTMLElement;
15
15
  id?: string | number;
16
16
  footerDirection?: string;
17
- onUpdate?: Function;
18
- onOk?: Function;
19
- onCancel?: Function;
20
- onOpened?: Function;
21
- onClosed?: Function;
22
- beforeClose?: Function;
17
+ onUpdate?: (value: boolean) => any | void;
18
+ onOk?: () => void;
19
+ onCancel?: () => void;
20
+ onOpened?: () => void;
21
+ onClosed?: () => void;
22
+ beforeClose?: (action: string) => any;
23
23
  visible?: boolean;
24
24
  noFooter?: boolean;
25
25
  noOkBtn?: boolean;
@@ -33,9 +33,9 @@ declare class DialogFunction {
33
33
  instance: any;
34
34
  constructor(_options: DialogOptions);
35
35
  }
36
- declare const _Dialog: {
36
+ declare const showDialog: {
37
37
  (options: DialogOptions): DialogFunction;
38
38
  install(app: any): void;
39
39
  };
40
- export { Dialog };
41
- export default _Dialog;
40
+ export { showDialog };
41
+ export default Dialog;
@@ -2,24 +2,24 @@ import ImagePreview from './index.vue';
2
2
  import { ImageInterface } from './types';
3
3
  import { Interceptor } from '@/packages/utils/util';
4
4
  export declare class ImagePreviewOptions {
5
- show: Boolean;
5
+ show: boolean;
6
6
  images: ImageInterface[];
7
7
  videos?: [];
8
- contentClose?: Boolean;
9
- initNo?: Number;
10
- paginationVisible?: Boolean;
11
- paginationColor?: String;
12
- autoplay?: Number | String;
13
- isWrapTeleport?: Boolean;
8
+ contentClose?: boolean;
9
+ initNo?: number;
10
+ paginationVisible?: boolean;
11
+ paginationColor?: string;
12
+ autoplay?: number | string;
13
+ isWrapTeleport?: boolean;
14
14
  showIndex?: boolean;
15
15
  closeable?: boolean;
16
16
  closeIcon?: string;
17
- closeIconPosition?: String;
17
+ closeIconPosition?: string;
18
18
  beforeClose?: Interceptor;
19
19
  maxZoom?: number;
20
20
  minZoom?: number;
21
21
  isLoop?: boolean;
22
- onClose?: Function;
22
+ onClose?(): void;
23
23
  onChange?(index: number): void;
24
24
  teleport?: string | HTMLElement;
25
25
  }
@@ -27,9 +27,9 @@ declare class ImagePreviewFunction {
27
27
  options: ImagePreviewOptions;
28
28
  constructor(_options: ImagePreviewOptions);
29
29
  }
30
- declare const _ImagePreview: {
30
+ declare const showImagePreview: {
31
31
  (options: ImagePreviewOptions): ImagePreviewFunction;
32
32
  install(app: any): void;
33
33
  };
34
- export { ImagePreview };
35
- export default _ImagePreview;
34
+ export { showImagePreview };
35
+ export default ImagePreview;
@@ -45,10 +45,6 @@ declare const _default: Install< import("vue").DefineComponent<{
45
45
  type: BooleanConstructor;
46
46
  default: boolean;
47
47
  };
48
- closeIcon: {
49
- type: StringConstructor;
50
- default: string;
51
- };
52
48
  closeIconPosition: {
53
49
  type: StringConstructor;
54
50
  default: string;
@@ -128,10 +124,6 @@ declare const _default: Install< import("vue").DefineComponent<{
128
124
  type: BooleanConstructor;
129
125
  default: boolean;
130
126
  };
131
- closeIcon: {
132
- type: StringConstructor;
133
- default: string;
134
- };
135
127
  closeIconPosition: {
136
128
  type: StringConstructor;
137
129
  default: string;
@@ -168,7 +160,6 @@ declare const _default: Install< import("vue").DefineComponent<{
168
160
  show: boolean;
169
161
  closeable: boolean;
170
162
  closeIconPosition: string;
171
- closeIcon: string;
172
163
  teleport: string | Element;
173
164
  teleportDisable: boolean;
174
165
  autoplay: string | number;
@@ -1,5 +1,5 @@
1
1
  import Notify from './index.vue';
2
- export declare const NotifyFunction: {
2
+ declare const showNotify: {
3
3
  text(msg: string, obj?: {}): {
4
4
  [x: string]: unknown;
5
5
  } | undefined;
@@ -18,5 +18,5 @@ export declare const NotifyFunction: {
18
18
  hide(): void;
19
19
  install(app: any): void;
20
20
  };
21
- export default NotifyFunction;
22
- export { Notify };
21
+ export { showNotify };
22
+ export default Notify;
@@ -13,7 +13,7 @@ declare const _default: Install< import("vue").DefineComponent<{
13
13
  default: number;
14
14
  };
15
15
  direction: {
16
- type: StringConstructor[];
16
+ type: StringConstructor;
17
17
  default: string;
18
18
  };
19
19
  paginationVisible: {
@@ -86,12 +86,13 @@ declare const _default: Install< import("vue").DefineComponent<{
86
86
  classes: import("vue").ComputedRef<{
87
87
  [x: string]: boolean;
88
88
  }>;
89
- container: import("vue").Ref<any>;
90
- componentName: string;
91
- isVertical: import("vue").ComputedRef<boolean>;
92
- slots: Readonly<{
93
- [name: string]: import("vue").Slot | undefined;
89
+ classesInner: import("vue").ComputedRef<{
90
+ [x: string]: boolean;
94
91
  }>;
92
+ classesPagination: import("vue").ComputedRef<{
93
+ [x: string]: boolean;
94
+ }>;
95
+ container: import("vue").Ref<any>;
95
96
  activePagination: import("vue").ComputedRef<number>;
96
97
  onTouchStart: (e: TouchEvent) => void;
97
98
  onTouchMove: (e: TouchEvent) => void;
@@ -106,7 +107,7 @@ declare const _default: Install< import("vue").DefineComponent<{
106
107
  default: number;
107
108
  };
108
109
  direction: {
109
- type: StringConstructor[];
110
+ type: StringConstructor;
110
111
  default: string;
111
112
  };
112
113
  paginationVisible: {
@@ -1,5 +1,5 @@
1
1
  import Toast from './index.vue';
2
- export declare const ToastFunction: {
2
+ declare const showToast: {
3
3
  text(msg: string, opts?: {}): any | undefined;
4
4
  success(msg: string, opts?: {}): any | undefined;
5
5
  fail(msg: string, opts?: {}): any | undefined;
@@ -8,5 +8,5 @@ export declare const ToastFunction: {
8
8
  hide(id?: string): void;
9
9
  install(app: any): void;
10
10
  };
11
- export { Toast };
12
- export default ToastFunction;
11
+ export { showToast };
12
+ export default Toast;
@@ -52,12 +52,15 @@ import Swipe from './__VUE/swipe/index.vue';
52
52
  import ActionSheet from './__VUE/actionsheet/index.vue';
53
53
  import Backtop from './__VUE/backtop/index.vue';
54
54
  import Drag from './__VUE/drag/index.vue';
55
- import Dialog from './__VUE/dialog/index';
55
+ import Dialog from './__VUE/dialog/index.vue';
56
+ import { showDialog } from './__VUE/dialog/index';
56
57
  import InfiniteLoading from './__VUE/infiniteloading/index.vue';
57
58
  import PullRefresh from './__VUE/pullrefresh/index.vue';
58
- import Notify from './__VUE/notify/index';
59
+ import Notify from './__VUE/notify/index.vue';
60
+ import { showNotify } from './__VUE/notify/index';
59
61
  import Switch from './__VUE/switch/index.vue';
60
- import Toast from './__VUE/toast/index';
62
+ import Toast from './__VUE/toast/index.vue';
63
+ import { showToast } from './__VUE/toast/index';
61
64
  import Audio from './__VUE/audio/index.vue';
62
65
  import AudioOperate from './__VUE/audiooperate/index.vue';
63
66
  import Avatar from './__VUE/avatar/index.vue';
@@ -73,7 +76,8 @@ import Step from './__VUE/step/index.vue';
73
76
  import Swiper from './__VUE/swiper/index.vue';
74
77
  import SwiperItem from './__VUE/swiperitem/index.vue';
75
78
  import Price from './__VUE/price/index.vue';
76
- import ImagePreview from './__VUE/imagepreview/index';
79
+ import ImagePreview from './__VUE/imagepreview/index.vue';
80
+ import { showImagePreview } from './__VUE/imagepreview/index';
77
81
  import Countup from './__VUE/countup/index.vue';
78
82
  import Countdown from './__VUE/countdown/index.vue';
79
83
  import Badge from './__VUE/badge/index.vue';
@@ -103,8 +107,8 @@ import CategoryPane from './__VUE/categorypane/index.vue';
103
107
  import Comment from './__VUE/comment/index.vue';
104
108
  import Invoice from './__VUE/invoice/index.vue';
105
109
  declare function install(app: App): void;
106
- declare const version = "4.0.0-beta.7";
107
- 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 };
110
+ declare const version = "4.0.0-beta.9";
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 };
108
112
  declare const _default: {
109
113
  install: typeof install;
110
114
  version: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nutui/nutui",
3
- "version": "4.0.0-beta.7",
3
+ "version": "4.0.0-beta.9",
4
4
  "description": "京东风格的轻量级移动端 Vue2、Vue3 组件库(支持小程序开发)",
5
5
  "main": "dist/nutui.umd.cjs",
6
6
  "module": "dist/nutui.es.js",