@nutui/nutui 4.1.0-beta.6 → 4.1.1

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 (55) hide show
  1. package/CHANGELOG.md +46 -0
  2. package/README.md +27 -70
  3. package/dist/nutui.es.js +4 -2
  4. package/dist/nutui.js +5140 -5134
  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/Navbar.js +41 -88
  12. package/dist/packages/_es/Price.js +2 -2
  13. package/dist/packages/_es/Progress.js +20 -23
  14. package/dist/packages/_es/Sticky.js +4 -0
  15. package/dist/packages/_es/Swipe.js +64 -39
  16. package/dist/packages/_es/SwipeGroup.js +39 -0
  17. package/dist/packages/_es/Tabs.js +8 -3
  18. package/dist/packages/_es/Tag.js +30 -25
  19. package/dist/packages/_es/Uploader.js +52 -53
  20. package/dist/packages/button/index.scss +14 -0
  21. package/dist/packages/navbar/index.scss +1 -0
  22. package/dist/packages/progress/index.scss +6 -0
  23. package/dist/packages/swipe/index.scss +1 -0
  24. package/dist/packages/swipegroup/index.mjs +4 -0
  25. package/dist/packages/swipegroup/index.scss +0 -0
  26. package/dist/packages/swipegroup/style.mjs +2 -0
  27. package/dist/smartips/web-types.json +158 -23
  28. package/dist/style.css +1 -1
  29. package/dist/styles/themes/default.scss +56 -55
  30. package/dist/styles/themes/jdb.scss +56 -55
  31. package/dist/styles/themes/jddkh.scss +56 -55
  32. package/dist/styles/themes/jdt.scss +56 -55
  33. package/dist/types/__VUE/animate/index.vue.d.ts +14 -3
  34. package/dist/types/__VUE/animate/type.d.ts +1 -1
  35. package/dist/types/__VUE/card/index.vue.d.ts +22 -3
  36. package/dist/types/__VUE/circleprogress/index.vue.d.ts +7 -10
  37. package/dist/types/__VUE/circleprogress/types.d.ts +1 -0
  38. package/dist/types/__VUE/empty/index.vue.d.ts +11 -4
  39. package/dist/types/__VUE/empty/types.d.ts +1 -0
  40. package/dist/types/__VUE/indicator/index.vue.d.ts +7 -9
  41. package/dist/types/__VUE/indicator/types.d.ts +1 -0
  42. package/dist/types/__VUE/navbar/index.vue.d.ts +8 -5
  43. package/dist/types/__VUE/price/index.vue.d.ts +8 -6
  44. package/dist/types/__VUE/price/types.d.ts +2 -0
  45. package/dist/types/__VUE/progress/index.vue.d.ts +10 -10
  46. package/dist/types/__VUE/progress/types.d.ts +2 -0
  47. package/dist/types/__VUE/swipe/index.vue.d.ts +4 -4
  48. package/dist/types/__VUE/swipegroup/index.vue.d.ts +26 -0
  49. package/dist/types/__VUE/tag/index.vue.d.ts +5 -4
  50. package/dist/types/__VUE/uploader/index.vue.d.ts +40 -7
  51. package/dist/types/index.d.ts +3 -2
  52. package/dist/types/utils/unit.d.ts +1 -0
  53. package/dist/types/utils/useTaroRect/index.d.ts +1 -0
  54. package/package.json +1 -1
  55. /package/dist/types/__VUE/tag/{type.d.ts → types.d.ts} +0 -0
@@ -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;
@@ -19,7 +19,20 @@ declare const _default: Install< import("vue").DefineComponent<{
19
19
  default: number;
20
20
  };
21
21
  fileList: {
22
- type: ArrayConstructor;
22
+ type: {
23
+ (arrayLength: number): any[];
24
+ (...items: any[]): any[];
25
+ new (arrayLength: number): any[];
26
+ new (...items: any[]): any[];
27
+ isArray(arg: any): arg is any[];
28
+ readonly prototype: any[];
29
+ from<T>(arrayLike: ArrayLike<T>): T[];
30
+ from<T_1, U>(arrayLike: ArrayLike<T_1>, mapfn: (v: T_1, k: number) => U, thisArg?: any): U[];
31
+ from<T_2>(iterable: Iterable<T_2> | ArrayLike<T_2>): T_2[];
32
+ from<T_3, U_1>(iterable: Iterable<T_3> | ArrayLike<T_3>, mapfn: (v: T_3, k: number) => U_1, thisArg?: any): U_1[];
33
+ of<T_4>(...items: T_4[]): T_4[];
34
+ readonly [Symbol.species]: ArrayConstructor;
35
+ };
23
36
  default: () => never[];
24
37
  };
25
38
  isPreview: {
@@ -104,10 +117,17 @@ declare const _default: Install< import("vue").DefineComponent<{
104
117
  }, {
105
118
  onChange: (event: InputEvent) => void;
106
119
  onDelete: (file: FileItem, index: number) => void;
107
- fileList: FileItem[];
108
- classes: import("vue").ComputedRef<{
109
- [x: string]: boolean;
110
- }>;
120
+ fileList: import("vue").Ref<{
121
+ status: import("./type").FileItemStatus;
122
+ message: string;
123
+ uid: string;
124
+ name?: string | undefined;
125
+ url?: string | undefined;
126
+ type?: string | undefined;
127
+ path?: string | undefined;
128
+ percentage: string | number;
129
+ formData: any;
130
+ }[]>;
111
131
  fileItemClick: (fileItem: FileItem) => void;
112
132
  clearUploadQueue: (index?: number) => void;
113
133
  submit: () => void;
@@ -128,7 +148,20 @@ declare const _default: Install< import("vue").DefineComponent<{
128
148
  default: number;
129
149
  };
130
150
  fileList: {
131
- type: ArrayConstructor;
151
+ type: {
152
+ (arrayLength: number): any[];
153
+ (...items: any[]): any[];
154
+ new (arrayLength: number): any[];
155
+ new (...items: any[]): any[];
156
+ isArray(arg: any): arg is any[];
157
+ readonly prototype: any[];
158
+ from<T>(arrayLike: ArrayLike<T>): T[];
159
+ from<T_1, U>(arrayLike: ArrayLike<T_1>, mapfn: (v: T_1, k: number) => U, thisArg?: any): U[];
160
+ from<T_2>(iterable: Iterable<T_2> | ArrayLike<T_2>): T_2[];
161
+ from<T_3, U_1>(iterable: Iterable<T_3> | ArrayLike<T_3>, mapfn: (v: T_3, k: number) => U_1, thisArg?: any): U_1[];
162
+ of<T_4>(...items: T_4[]): T_4[];
163
+ readonly [Symbol.species]: ArrayConstructor;
164
+ };
132
165
  default: () => never[];
133
166
  };
134
167
  isPreview: {
@@ -231,7 +264,7 @@ declare const _default: Install< import("vue").DefineComponent<{
231
264
  accept: string;
232
265
  capture: boolean;
233
266
  timeout: string | number;
234
- fileList: unknown[];
267
+ fileList: any[];
235
268
  isPreview: boolean;
236
269
  listType: string;
237
270
  isDeletable: boolean;
@@ -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-beta.6";
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.0";
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-beta.6",
3
+ "version": "4.1.1",
4
4
  "description": "京东风格的轻量级移动端 Vue2、Vue3 组件库(支持小程序开发)",
5
5
  "main": "dist/nutui.umd.js",
6
6
  "module": "dist/nutui.es.js",
File without changes