@nutui/nutui 4.0.9-beta.2 → 4.0.10-beta.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 (38) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/README.md +6 -28
  3. package/dist/nutui.es.js +1 -1
  4. package/dist/nutui.js +17123 -0
  5. package/dist/nutui.umd.js +1 -7
  6. package/dist/packages/_es/Collapse.js +15 -10
  7. package/dist/packages/_es/Dialog.js +11 -4
  8. package/dist/packages/_es/ImagePreview.js +14 -4
  9. package/dist/packages/_es/Menu.js +1 -2
  10. package/dist/packages/_es/MenuItem.js +24 -34
  11. package/dist/packages/_es/Picker.js +7 -11
  12. package/dist/packages/_es/Row.js +12 -12
  13. package/dist/packages/_es/Searchbar.js +9 -7
  14. package/dist/packages/_es/Tabs.js +8 -6
  15. package/dist/packages/col/index.scss +2 -2
  16. package/dist/packages/imagepreview/index.scss +0 -5
  17. package/dist/packages/menuitem/index.scss +7 -10
  18. package/dist/packages/searchbar/index.scss +4 -0
  19. package/dist/smartips/web-types.json +3 -3
  20. package/dist/style.css +1 -1
  21. package/dist/styles/themes/default.scss +48 -48
  22. package/dist/styles/themes/jdb.scss +48 -48
  23. package/dist/styles/themes/jddkh.scss +48 -48
  24. package/dist/styles/themes/jdt.scss +48 -48
  25. package/dist/types/__VUE/collapse/index.vue.d.ts +2 -2
  26. package/dist/types/__VUE/dialog/index.d.ts +1 -0
  27. package/dist/types/__VUE/dialog/index.vue.d.ts +1 -0
  28. package/dist/types/__VUE/imagepreview/imagePreviewItem.vue.d.ts +9 -0
  29. package/dist/types/__VUE/imagepreview/index.vue.d.ts +1 -1
  30. package/dist/types/__VUE/menu/index.vue.d.ts +0 -2
  31. package/dist/types/__VUE/menuitem/index.vue.d.ts +9 -17
  32. package/dist/types/__VUE/navbar/index.vue.d.ts +1 -1
  33. package/dist/types/__VUE/picker/usePicker.d.ts +1 -1
  34. package/dist/types/__VUE/row/index.vue.d.ts +1 -1
  35. package/dist/types/__VUE/searchbar/index.vue.d.ts +11 -2
  36. package/dist/types/__VUE/tabs/index.vue.d.ts +12 -0
  37. package/dist/types/index.d.ts +1 -1
  38. package/package.json +2 -2
@@ -26,6 +26,7 @@ export declare class DialogOptions {
26
26
  noCancelBtn?: boolean;
27
27
  okBtnDisabled?: boolean;
28
28
  closeOnPopstate?: boolean;
29
+ closeOnClickOverlay?: boolean;
29
30
  lockScroll?: boolean;
30
31
  }
31
32
  declare class DialogFunction {
@@ -149,6 +149,7 @@ declare const _default: Install< import("vue").DefineComponent<{
149
149
  onCancel: () => void;
150
150
  onOk: () => void;
151
151
  showPopup: import("vue").Ref<boolean>;
152
+ onClickOverlay: () => void;
152
153
  contentStyle: import("vue").ComputedRef<CSSProperties>;
153
154
  translate: (keyPath: string, ...args: unknown[]) => string;
154
155
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("closed" | "update:visible" | "cancel" | "update" | "ok" | "opened")[], "closed" | "update:visible" | "cancel" | "update" | "ok" | "opened", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
@@ -21,6 +21,10 @@ declare const _default: Install< import("vue").DefineComponent<{
21
21
  type: NumberConstructor;
22
22
  default: number;
23
23
  };
24
+ contentClose: {
25
+ type: BooleanConstructor;
26
+ default: boolean;
27
+ };
24
28
  show: {
25
29
  type: BooleanConstructor;
26
30
  default: boolean;
@@ -74,6 +78,10 @@ declare const _default: Install< import("vue").DefineComponent<{
74
78
  type: NumberConstructor;
75
79
  default: number;
76
80
  };
81
+ contentClose: {
82
+ type: BooleanConstructor;
83
+ default: boolean;
84
+ };
77
85
  show: {
78
86
  type: BooleanConstructor;
79
87
  default: boolean;
@@ -103,6 +111,7 @@ declare const _default: Install< import("vue").DefineComponent<{
103
111
  show: boolean;
104
112
  rootWidth: number;
105
113
  rootHeight: number;
114
+ contentClose: boolean;
106
115
  initNo: number;
107
116
  showIndex: boolean;
108
117
  minZoom: number;
@@ -165,13 +165,13 @@ declare const _default: Install< import("vue").DefineComponent<{
165
165
  autoplay: string | number;
166
166
  videos: unknown[];
167
167
  images: ImageInterface[];
168
+ contentClose: boolean;
168
169
  initNo: number;
169
170
  showIndex: boolean;
170
171
  minZoom: number;
171
172
  maxZoom: number;
172
173
  paginationVisible: boolean;
173
174
  paginationColor: string;
174
- contentClose: boolean;
175
175
  isLoop: boolean;
176
176
  }>>;
177
177
  export default _default;
@@ -19,7 +19,6 @@ declare const _default: Install< import("vue").DefineComponent<{
19
19
  type: (NumberConstructor | StringConstructor)[];
20
20
  default: number;
21
21
  };
22
- titleIcon: StringConstructor;
23
22
  closeOnClickOverlay: {
24
23
  type: BooleanConstructor;
25
24
  default: boolean;
@@ -60,7 +59,6 @@ declare const _default: Install< import("vue").DefineComponent<{
60
59
  type: (NumberConstructor | StringConstructor)[];
61
60
  default: number;
62
61
  };
63
- titleIcon: StringConstructor;
64
62
  closeOnClickOverlay: {
65
63
  type: BooleanConstructor;
66
64
  default: boolean;
@@ -21,31 +21,28 @@ declare const _default: Install< import("vue").DefineComponent<{
21
21
  };
22
22
  activeTitleClass: StringConstructor;
23
23
  inactiveTitleClass: StringConstructor;
24
- optionIcon: {
25
- type: StringConstructor;
26
- default: string;
27
- };
28
24
  }, {
29
- classes: import("vue").ComputedRef<{
30
- [x: string]: boolean;
25
+ style: import("vue").ComputedRef<{
26
+ top: string;
27
+ bottom?: undefined;
28
+ } | {
29
+ bottom: string;
30
+ top?: undefined;
31
31
  }>;
32
32
  placeholderElementStyle: import("vue").ComputedRef<{
33
+ top: string;
33
34
  height: string;
34
35
  } | {
35
- top: string;
36
+ bottom: string;
36
37
  height: string;
37
38
  }>;
38
39
  renderTitle: () => any;
39
40
  state: {
40
41
  showPopup: boolean;
41
- transition: boolean;
42
42
  showWrapper: boolean;
43
- isShowPlaceholderElement: boolean;
44
43
  };
45
44
  parent: any;
46
- toggle: (show?: boolean, options?: {
47
- immediate?: boolean;
48
- }) => void;
45
+ toggle: (show?: boolean) => void;
49
46
  onClick: (option: MenuItemOption) => void;
50
47
  handleClose: () => void;
51
48
  handleClickOutside: () => void;
@@ -66,10 +63,6 @@ declare const _default: Install< import("vue").DefineComponent<{
66
63
  };
67
64
  activeTitleClass: StringConstructor;
68
65
  inactiveTitleClass: StringConstructor;
69
- optionIcon: {
70
- type: StringConstructor;
71
- default: string;
72
- };
73
66
  }>> & {
74
67
  onChange?: ((...args: any[]) => any) | undefined;
75
68
  onClose?: ((...args: any[]) => any) | undefined;
@@ -79,7 +72,6 @@ declare const _default: Install< import("vue").DefineComponent<{
79
72
  disabled: boolean;
80
73
  options: MenuItemOption[];
81
74
  cols: number;
82
- optionIcon: string;
83
75
  }>>;
84
76
  export default _default;
85
77
 
@@ -108,8 +108,8 @@ declare const _default: Install< import("vue").DefineComponent<{
108
108
  fixed: boolean;
109
109
  border: boolean;
110
110
  placeholder: boolean;
111
- titleIcon: boolean;
112
111
  leftShow: boolean;
112
+ titleIcon: boolean;
113
113
  leftText: string;
114
114
  safeAreaInsetTop: boolean;
115
115
  }>>;
@@ -8,7 +8,7 @@ export declare const usePicker: (props: any, emit: any) => {
8
8
  defaultValues: import("vue").Ref<(string | number)[]>;
9
9
  pickerColumn: import("vue").Ref<any[]>;
10
10
  swipeRef: (el: any) => void;
11
- selectedOptions: import("vue").ComputedRef<PickerOption[]>;
11
+ selectedOptions: import("vue").ComputedRef<(PickerOption | undefined)[]>;
12
12
  isSameValue: (valA: any, valB: any) => boolean;
13
13
  formattedColumns: import("vue").Ref<any>;
14
14
  classes: import("vue").ComputedRef<{
@@ -24,7 +24,7 @@ declare const _default: Install< import("vue").DefineComponent<{
24
24
  default: string;
25
25
  };
26
26
  }, {
27
- getClasses: () => string;
27
+ classes: import("vue").ComputedRef<string[]>;
28
28
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, never[], never, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
29
29
  type: {
30
30
  type: StringConstructor;
@@ -17,6 +17,10 @@ declare const _default: Install< import("vue").DefineComponent<{
17
17
  type: StringConstructor;
18
18
  default: string;
19
19
  };
20
+ shape: {
21
+ type: StringConstructor;
22
+ default: string;
23
+ };
20
24
  maxLength: {
21
25
  type: (NumberConstructor | StringConstructor)[];
22
26
  default: string;
@@ -43,7 +47,7 @@ declare const _default: Install< import("vue").DefineComponent<{
43
47
  };
44
48
  focusStyle: {
45
49
  type: ObjectConstructor;
46
- default: () => void;
50
+ default: () => {};
47
51
  };
48
52
  autofocus: {
49
53
  type: BooleanConstructor;
@@ -97,6 +101,10 @@ declare const _default: Install< import("vue").DefineComponent<{
97
101
  type: StringConstructor;
98
102
  default: string;
99
103
  };
104
+ shape: {
105
+ type: StringConstructor;
106
+ default: string;
107
+ };
100
108
  maxLength: {
101
109
  type: (NumberConstructor | StringConstructor)[];
102
110
  default: string;
@@ -123,7 +131,7 @@ declare const _default: Install< import("vue").DefineComponent<{
123
131
  };
124
132
  focusStyle: {
125
133
  type: ObjectConstructor;
126
- default: () => void;
134
+ default: () => {};
127
135
  };
128
136
  autofocus: {
129
137
  type: BooleanConstructor;
@@ -155,6 +163,7 @@ declare const _default: Install< import("vue").DefineComponent<{
155
163
  label: string;
156
164
  disabled: boolean;
157
165
  modelValue: string | number;
166
+ shape: string;
158
167
  background: string;
159
168
  readonly: boolean;
160
169
  placeholder: string;
@@ -87,8 +87,20 @@ declare const _default: Install< import("vue").DefineComponent<{
87
87
  background: any;
88
88
  }>;
89
89
  titleStyle: import("vue").ComputedRef<{
90
+ marginTop?: undefined;
91
+ marginBottom?: undefined;
92
+ marginLeft?: undefined;
93
+ marginRight?: undefined;
94
+ } | {
95
+ marginTop: string;
96
+ marginBottom: string;
97
+ marginLeft?: undefined;
98
+ marginRight?: undefined;
99
+ } | {
90
100
  marginLeft: string;
91
101
  marginRight: string;
102
+ marginTop?: undefined;
103
+ marginBottom?: undefined;
92
104
  }>;
93
105
  tabsActiveStyle: import("vue").ComputedRef<{
94
106
  color: any;
@@ -107,7 +107,7 @@ import CategoryPane from './__VUE/categorypane/index.vue';
107
107
  import Comment from './__VUE/comment/index.vue';
108
108
  import Invoice from './__VUE/invoice/index.vue';
109
109
  declare function install(app: App): void;
110
- declare const version = "4.0.9-beta.2";
110
+ declare const version = "4.0.10-beta.1";
111
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 };
112
112
  declare const _default: {
113
113
  install: typeof install;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nutui/nutui",
3
- "version": "4.0.9-beta.2",
3
+ "version": "4.0.10-beta.1",
4
4
  "description": "京东风格的轻量级移动端 Vue2、Vue3 组件库(支持小程序开发)",
5
5
  "main": "dist/nutui.umd.js",
6
6
  "module": "dist/nutui.es.js",
@@ -37,7 +37,7 @@
37
37
  "publish:latest": "npm publish"
38
38
  },
39
39
  "peerDependencies": {
40
- "unplugin-vue-components": "^0.23.0"
40
+ "unplugin-vue-components": "^0.25.1"
41
41
  },
42
42
  "peerDependenciesMeta": {
43
43
  "unplugin-vue-components": {