@nutui/nutui 4.3.0-beta.2 → 4.3.0-beta.4

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 (36) hide show
  1. package/CHANGELOG.md +21 -0
  2. package/dist/nutui.es.js +1 -1
  3. package/dist/nutui.js +4486 -4501
  4. package/dist/nutui.umd.js +1 -1
  5. package/dist/packages/button/Button.js +8 -10
  6. package/dist/packages/cell/Cell.js +9 -4
  7. package/dist/packages/formitem/index.css +1 -1
  8. package/dist/packages/formitem/index.scss +1 -3
  9. package/dist/packages/input/index.css +1 -1
  10. package/dist/packages/input/index.scss +0 -1
  11. package/dist/packages/invoice/index.css +1 -1
  12. package/dist/packages/list/List.js +6 -4
  13. package/dist/packages/sidenavbar/SideNavbar.js +1 -1
  14. package/dist/packages/sidenavbar/index.css +1 -1
  15. package/dist/packages/sidenavbar/index.scss +0 -1
  16. package/dist/packages/sidenavbaritem/SideNavbarItem.js +4 -21
  17. package/dist/packages/subsidenavbar/SubSideNavbar.js +3 -10
  18. package/dist/packages/subsidenavbar/index.css +1 -1
  19. package/dist/packages/subsidenavbar/index.scss +0 -6
  20. package/dist/smartips/web-types.json +2 -2
  21. package/dist/style.css +1 -1
  22. package/dist/types/__VUE/cell/index.vue.d.ts +5 -4
  23. package/dist/types/__VUE/cell/types.d.ts +1 -0
  24. package/dist/types/__VUE/checkbox/index.vue.d.ts +8 -6
  25. package/dist/types/__VUE/checkbox/types.d.ts +2 -0
  26. package/dist/types/__VUE/ellipsis/index.vue.d.ts +4 -4
  27. package/dist/types/__VUE/ellipsis/types.d.ts +1 -0
  28. package/dist/types/__VUE/list/index.vue.d.ts +2 -5
  29. package/dist/types/__VUE/noticebar/index.vue.d.ts +1 -1
  30. package/dist/types/__VUE/notify/index.vue.d.ts +1 -1
  31. package/dist/types/__VUE/searchbar/index.vue.d.ts +1 -1
  32. package/dist/types/__VUE/sidenavbaritem/index.vue.d.ts +2 -15
  33. package/dist/types/__VUE/subsidenavbar/index.vue.d.ts +0 -9
  34. package/dist/types/__VUE/tabs/index.vue.d.ts +1 -1
  35. package/dist/types/index.d.ts +1 -1
  36. package/package.json +5 -3
@@ -1,4 +1,5 @@
1
- import type { CSSProperties } from 'vue';
1
+ import type { PropType, CSSProperties } from 'vue';
2
+ import { CellSize } from './types';
2
3
 
3
4
  declare type Install<T> = T & {
4
5
  install(app: import('vue').App): void;
@@ -42,7 +43,7 @@ declare const _default: Install< import("vue").DefineComponent<{
42
43
  default: boolean;
43
44
  };
44
45
  size: {
45
- type: StringConstructor;
46
+ type: PropType<CellSize>;
46
47
  default: string;
47
48
  };
48
49
  }, {
@@ -93,13 +94,13 @@ declare const _default: Install< import("vue").DefineComponent<{
93
94
  default: boolean;
94
95
  };
95
96
  size: {
96
- type: StringConstructor;
97
+ type: PropType<CellSize>;
97
98
  default: string;
98
99
  };
99
100
  }>> & {
100
101
  onClick?: ((...args: any[]) => any) | undefined;
101
102
  }, {
102
- size: string;
103
+ size: CellSize;
103
104
  title: string;
104
105
  desc: string;
105
106
  center: boolean;
@@ -0,0 +1 @@
1
+ export type CellSize = 'normal' | 'large';
@@ -1,3 +1,5 @@
1
+ import type { PropType } from 'vue';
2
+ import { CheckboxTextPosition, CheckboxShape } from './types';
1
3
 
2
4
  declare type Install<T> = T & {
3
5
  install(app: import('vue').App): void;
@@ -12,7 +14,7 @@ declare const _default: Install< import("vue").DefineComponent<{
12
14
  default: boolean;
13
15
  };
14
16
  textPosition: {
15
- type: StringConstructor;
17
+ type: PropType<CheckboxTextPosition>;
16
18
  default: string;
17
19
  };
18
20
  iconSize: {
@@ -28,7 +30,7 @@ declare const _default: Install< import("vue").DefineComponent<{
28
30
  default: boolean;
29
31
  };
30
32
  shape: {
31
- type: StringConstructor;
33
+ type: PropType<CheckboxShape>;
32
34
  default: string;
33
35
  };
34
36
  }, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
@@ -43,7 +45,7 @@ declare const _default: Install< import("vue").DefineComponent<{
43
45
  default: boolean;
44
46
  };
45
47
  textPosition: {
46
- type: StringConstructor;
48
+ type: PropType<CheckboxTextPosition>;
47
49
  default: string;
48
50
  };
49
51
  iconSize: {
@@ -59,18 +61,18 @@ declare const _default: Install< import("vue").DefineComponent<{
59
61
  default: boolean;
60
62
  };
61
63
  shape: {
62
- type: StringConstructor;
64
+ type: PropType<CheckboxShape>;
63
65
  default: string;
64
66
  };
65
67
  }>> & {
66
68
  onChange?: ((...args: any[]) => any) | undefined;
67
69
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
68
70
  }, {
69
- shape: string;
71
+ shape: CheckboxShape;
70
72
  disabled: boolean;
71
73
  label: string;
72
74
  modelValue: boolean;
73
- textPosition: string;
75
+ textPosition: CheckboxTextPosition;
74
76
  iconSize: string | number;
75
77
  indeterminate: boolean;
76
78
  }, {}>>;
@@ -1 +1,3 @@
1
1
  export declare const CHECKBOX_KEY: unique symbol;
2
+ export type CheckboxTextPosition = 'right' | 'left';
3
+ export type CheckboxShape = 'round' | 'button';
@@ -1,5 +1,5 @@
1
1
  import { PropType } from 'vue';
2
- export type Direction = 'start' | 'end' | 'middle';
2
+ import { EllipsisDirection } from './types';
3
3
  type EllipsisedValue = {
4
4
  leading?: string;
5
5
  tailing?: string;
@@ -14,7 +14,7 @@ declare const _default: Install< import("vue").DefineComponent<{
14
14
  default: string;
15
15
  };
16
16
  direction: {
17
- type: PropType<Direction>;
17
+ type: PropType<EllipsisDirection>;
18
18
  default: string;
19
19
  };
20
20
  rows: {
@@ -50,7 +50,7 @@ declare const _default: Install< import("vue").DefineComponent<{
50
50
  default: string;
51
51
  };
52
52
  direction: {
53
- type: PropType<Direction>;
53
+ type: PropType<EllipsisDirection>;
54
54
  default: string;
55
55
  };
56
56
  rows: {
@@ -79,7 +79,7 @@ declare const _default: Install< import("vue").DefineComponent<{
79
79
  }, {
80
80
  symbol: string;
81
81
  content: string;
82
- direction: Direction;
82
+ direction: EllipsisDirection;
83
83
  lineHeight: string | number;
84
84
  rows: string | number;
85
85
  expandText: string;
@@ -0,0 +1 @@
1
+ export type EllipsisDirection = 'start' | 'end' | 'middle';
@@ -13,8 +13,7 @@ declare const _default: Install< import("vue").DefineComponent<{
13
13
  default: number;
14
14
  };
15
15
  containerHeight: {
16
- type: NumberConstructor[];
17
- default: number;
16
+ type: NumberConstructor;
18
17
  };
19
18
  height: {
20
19
  type: NumberConstructor;
@@ -53,8 +52,7 @@ declare const _default: Install< import("vue").DefineComponent<{
53
52
  default: number;
54
53
  };
55
54
  containerHeight: {
56
- type: NumberConstructor[];
57
- default: number;
55
+ type: NumberConstructor;
58
56
  };
59
57
  height: {
60
58
  type: NumberConstructor;
@@ -72,7 +70,6 @@ declare const _default: Install< import("vue").DefineComponent<{
72
70
  height: number;
73
71
  listData: unknown[];
74
72
  bufferSize: number;
75
- containerHeight: number;
76
73
  margin: number;
77
74
  }, {}>>;
78
75
  export default _default;
@@ -167,8 +167,8 @@ declare const _default: Install< import("vue").DefineComponent<{
167
167
  color: string;
168
168
  height: number;
169
169
  text: string;
170
- direction: string;
171
170
  background: string;
171
+ direction: string;
172
172
  list: any[];
173
173
  standTime: number;
174
174
  complexAm: boolean;
@@ -93,12 +93,12 @@ declare const _default: Install< import("vue").DefineComponent<{
93
93
  }, {
94
94
  color: string;
95
95
  type: string;
96
+ background: string;
96
97
  visible: boolean;
97
98
  duration: number;
98
99
  position: string;
99
100
  teleportDisable: boolean;
100
101
  className: string;
101
- background: string;
102
102
  msg: string;
103
103
  }, {}>>;
104
104
  export default _default;
@@ -279,10 +279,10 @@ declare const _default: Install< import("vue").DefineComponent<{
279
279
  shape: SearchbarShape;
280
280
  disabled: boolean;
281
281
  label: string;
282
+ background: string;
282
283
  safeAreaInsetBottom: boolean;
283
284
  placeholder: string;
284
285
  modelValue: string | number;
285
- background: string;
286
286
  inputType: string;
287
287
  maxLength: string | number;
288
288
  clearable: boolean;
@@ -7,26 +7,13 @@ declare const _default: Install< import("vue").DefineComponent<{
7
7
  type: StringConstructor;
8
8
  default: string;
9
9
  };
10
- ikey: {
11
- type: StringConstructor;
12
- default: string;
13
- };
14
- }, {
15
- handleClick: () => void;
16
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "click"[], "click", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
10
+ }, unknown, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
17
11
  title: {
18
12
  type: StringConstructor;
19
13
  default: string;
20
14
  };
21
- ikey: {
22
- type: StringConstructor;
23
- default: string;
24
- };
25
- }>> & {
26
- onClick?: ((...args: any[]) => any) | undefined;
27
- }, {
15
+ }>>, {
28
16
  title: string;
29
- ikey: string;
30
17
  }, {}>>;
31
18
  export default _default;
32
19
 
@@ -7,10 +7,6 @@ declare const _default: Install< import("vue").DefineComponent<{
7
7
  type: StringConstructor;
8
8
  default: string;
9
9
  };
10
- ikey: {
11
- type: (NumberConstructor | StringConstructor)[];
12
- default: string;
13
- };
14
10
  open: {
15
11
  type: BooleanConstructor;
16
12
  default: boolean;
@@ -26,10 +22,6 @@ declare const _default: Install< import("vue").DefineComponent<{
26
22
  type: StringConstructor;
27
23
  default: string;
28
24
  };
29
- ikey: {
30
- type: (NumberConstructor | StringConstructor)[];
31
- default: string;
32
- };
33
25
  open: {
34
26
  type: BooleanConstructor;
35
27
  default: boolean;
@@ -39,7 +31,6 @@ declare const _default: Install< import("vue").DefineComponent<{
39
31
  }, {
40
32
  title: string;
41
33
  open: boolean;
42
- ikey: string | number;
43
34
  }, {}>>;
44
35
  export default _default;
45
36
 
@@ -186,12 +186,12 @@ declare const _default: Install< import("vue").DefineComponent<{
186
186
  type: TabsType;
187
187
  size: TabsSize;
188
188
  top: number;
189
+ background: string;
189
190
  ellipsis: boolean;
190
191
  sticky: boolean;
191
192
  align: TabsAlign;
192
193
  direction: TabsDirection;
193
194
  modelValue: string | number;
194
- background: string;
195
195
  titleScroll: boolean;
196
196
  swipeable: boolean;
197
197
  autoHeight: boolean;
@@ -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.2";
117
+ declare const version = "4.3.0-beta.4";
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.2",
3
+ "version": "4.3.0-beta.4",
4
4
  "description": "京东风格的轻量级移动端 Vue2、Vue3 组件库(支持小程序开发)",
5
5
  "main": "dist/nutui.umd.js",
6
6
  "module": "dist/nutui.es.js",
@@ -37,7 +37,8 @@
37
37
  "publish:latest": "npm publish"
38
38
  },
39
39
  "peerDependencies": {
40
- "unplugin-vue-components": "^0.25.1"
40
+ "unplugin-vue-components": ">=0.25.1",
41
+ "vue": "^3.0.0"
41
42
  },
42
43
  "peerDependenciesMeta": {
43
44
  "unplugin-vue-components": {
@@ -51,5 +52,6 @@
51
52
  "repository": {
52
53
  "type": "git",
53
54
  "url": "https://github.com/jdf2e/nutui.git"
54
- }
55
+ },
56
+ "homepage": "https://nutui.jd.com/"
55
57
  }