@nutui/nutui 4.3.0 → 4.3.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 (101) hide show
  1. package/CHANGELOG.md +21 -0
  2. package/dist/nutui.es.js +1 -1
  3. package/dist/nutui.js +5242 -5326
  4. package/dist/nutui.umd.js +1 -1
  5. package/dist/packages/actionsheet/ActionSheet.js +0 -2
  6. package/dist/packages/address/Address.js +0 -3
  7. package/dist/packages/addresslist/AddressList.js +0 -4
  8. package/dist/packages/audio/Audio.js +0 -3
  9. package/dist/packages/audiooperate/AudioOperate.js +0 -4
  10. package/dist/packages/avatar/Avatar.js +0 -1
  11. package/dist/packages/avatarcropper/AvatarCropper.js +0 -1
  12. package/dist/packages/calendar/Calendar.js +0 -6
  13. package/dist/packages/calendarcard/CalendarCard.js +0 -2
  14. package/dist/packages/calendaritem/CalendarItem.js +0 -2
  15. package/dist/packages/card/Card.js +0 -1
  16. package/dist/packages/cascader/Cascader.js +0 -9
  17. package/dist/packages/checkbox/Checkbox.js +4 -2
  18. package/dist/packages/collapse/Collapse.js +40 -28
  19. package/dist/packages/collapseitem/CollapseItem.js +112 -125
  20. package/dist/packages/comment/Comment.js +0 -5
  21. package/dist/packages/common-LvGbU-A3.js +13 -0
  22. package/dist/packages/countdown/Countdown.js +3 -4
  23. package/dist/packages/datepicker/DatePicker.js +0 -4
  24. package/dist/packages/dialog/Dialog.js +0 -4
  25. package/dist/packages/ecard/Ecard.js +0 -4
  26. package/dist/packages/empty/Empty.js +0 -2
  27. package/dist/packages/fixednav/FixedNav.js +0 -2
  28. package/dist/packages/form/Form.js +161 -157
  29. package/dist/packages/formitem/FormItem.js +76 -107
  30. package/dist/packages/grid/Grid.js +0 -1
  31. package/dist/packages/imagepreview/ImagePreview.js +0 -4
  32. package/dist/packages/{index.vue_vue_type_script_lang-MJYVRFbp.js → index.vue_vue_type_script_lang-w2sgcysj.js} +6 -4
  33. package/dist/packages/infiniteloading/InfiniteLoading.js +0 -1
  34. package/dist/packages/input/Input.js +10 -7
  35. package/dist/packages/inputnumber/InputNumber.js +11 -8
  36. package/dist/packages/invoice/Invoice.js +10 -21
  37. package/dist/packages/locale/lang/index.js +0 -1
  38. package/dist/packages/menuitem/MenuItem.js +0 -2
  39. package/dist/packages/notify/Notify.js +0 -3
  40. package/dist/packages/numberkeyboard/NumberKeyboard.js +0 -4
  41. package/dist/packages/pagination/Pagination.js +0 -2
  42. package/dist/packages/picker/Picker.js +10 -5
  43. package/dist/packages/popover/Popover.js +0 -3
  44. package/dist/packages/popup/Popup.js +0 -4
  45. package/dist/packages/pullrefresh/PullRefresh.js +0 -1
  46. package/dist/packages/radio/Radio.js +1 -6
  47. package/dist/packages/radiogroup/RadioGroup.js +0 -3
  48. package/dist/packages/range/Range.js +10 -7
  49. package/dist/packages/rate/Rate.js +6 -3
  50. package/dist/packages/searchbar/Searchbar.js +5 -4
  51. package/dist/packages/shortpassword/ShortPassword.js +0 -3
  52. package/dist/packages/signature/Signature.js +0 -4
  53. package/dist/packages/sku/Sku.js +5 -9
  54. package/dist/packages/switch/Switch.js +5 -3
  55. package/dist/packages/table/Table.js +0 -2
  56. package/dist/packages/tabs/Tabs.js +0 -1
  57. package/dist/packages/textarea/Textarea.js +7 -6
  58. package/dist/packages/timepannel/TimePannel.js +2 -2
  59. package/dist/packages/timeselect/TimeSelect.js +0 -4
  60. package/dist/packages/toast/Toast.js +3 -3
  61. package/dist/packages/tour/Tour.js +0 -4
  62. package/dist/packages/uploader/Uploader.js +7 -5
  63. package/dist/packages/video/Video.js +0 -2
  64. package/dist/smartips/web-types.json +11 -2
  65. package/dist/types/__VUE/address/index.vue.d.ts +43 -3
  66. package/dist/types/__VUE/collapse/collapse.vue.d.ts +60 -0
  67. package/dist/types/__VUE/collapse/index.d.ts +6 -0
  68. package/dist/types/__VUE/collapse/types.d.ts +3 -2
  69. package/dist/types/__VUE/collapseitem/collapse-item.vue.d.ts +201 -0
  70. package/dist/types/__VUE/collapseitem/index.d.ts +5 -0
  71. package/dist/types/__VUE/countdown/index.vue.d.ts +23 -1
  72. package/dist/types/__VUE/fixednav/index.vue.d.ts +2 -2
  73. package/dist/types/__VUE/form/common.d.ts +2 -30
  74. package/dist/types/__VUE/form/form.vue.d.ts +80 -0
  75. package/dist/types/__VUE/form/index.d.ts +6 -0
  76. package/dist/types/__VUE/form/types.d.ts +12 -4
  77. package/dist/types/__VUE/formitem/form-item.vue.d.ts +97 -0
  78. package/dist/types/__VUE/formitem/index.d.ts +5 -0
  79. package/dist/types/__VUE/input/index.vue.d.ts +2 -1
  80. package/dist/types/__VUE/inputnumber/index.vue.d.ts +1 -0
  81. package/dist/types/__VUE/picker/index.vue.d.ts +1 -0
  82. package/dist/types/__VUE/picker/types.d.ts +1 -0
  83. package/dist/types/__VUE/picker/usePicker.d.ts +1 -0
  84. package/dist/types/__VUE/range/index.vue.d.ts +1 -1
  85. package/dist/types/__VUE/rate/index.vue.d.ts +1 -0
  86. package/dist/types/__VUE/searchbar/index.vue.d.ts +1 -0
  87. package/dist/types/__VUE/skeleton/index.vue.d.ts +3 -3
  88. package/dist/types/__VUE/sku/components/SkuStepper.vue.d.ts +1 -1
  89. package/dist/types/__VUE/sku/index.vue.d.ts +1 -1
  90. package/dist/types/__VUE/table/index.vue.d.ts +4 -4
  91. package/dist/types/__VUE/tabs/index.vue.d.ts +4 -4
  92. package/dist/types/__VUE/textarea/index.vue.d.ts +1 -0
  93. package/dist/types/__VUE/toast/index.vue.d.ts +21 -1
  94. package/dist/types/index.d.ts +9 -5
  95. package/dist/types/utils/index.d.ts +1 -0
  96. package/package.json +1 -1
  97. package/dist/types/__VUE/collapse/index.vue.d.ts +0 -39
  98. package/dist/types/__VUE/collapseitem/index.vue.d.ts +0 -212
  99. package/dist/types/__VUE/form/index.vue.d.ts +0 -58
  100. package/dist/types/__VUE/formitem/index.vue.d.ts +0 -134
  101. package/dist/types/__VUE/formitem/types.d.ts +0 -11
@@ -1,5 +1,13 @@
1
- import { FormItemRule, FormItemLabelPosition, FormItemStarPosition } from '../formitem/types';
2
1
  export declare const FORM_KEY: unique symbol;
2
+ export interface FormItemRuleWithoutValidator {
3
+ [key: string]: any;
4
+ regex?: RegExp;
5
+ required?: boolean;
6
+ message?: string;
7
+ }
8
+ export interface FormItemRule extends FormItemRuleWithoutValidator {
9
+ validator?: (value: any, ruleCfg: FormItemRuleWithoutValidator) => boolean | Promise<string> | Promise<boolean> | Promise<void> | Promise<unknown>;
10
+ }
3
11
  export type FormRules = {
4
12
  [key: string]: FormItemRule[];
5
13
  };
@@ -7,9 +15,9 @@ export type FormRule = {
7
15
  prop: string;
8
16
  rules: FormItemRule[];
9
17
  };
10
- export type ErrorMessage = {
18
+ export type FormErrorMessage = {
11
19
  prop: string;
12
20
  message: string;
13
21
  };
14
- export type FormLabelPosition = FormItemLabelPosition;
15
- export type FormStarPosition = FormItemStarPosition;
22
+ export type FormLabelPosition = 'left' | 'right' | 'top';
23
+ export type FormStarPosition = 'left' | 'right';
@@ -0,0 +1,97 @@
1
+ import type { WithInstall } from '../../utils';
2
+ import type { FormItemRule, FormLabelPosition, FormStarPosition } from '../form/types';
3
+ export type FormItemProps = Partial<{
4
+ prop: string;
5
+ label: string;
6
+ rules: FormItemRule[];
7
+ required: boolean;
8
+ showErrorMessage: boolean;
9
+ showErrorLine: boolean;
10
+ labelWidth: string | number;
11
+ labelAlign: string;
12
+ errorMessageAlign: string;
13
+ bodyAlign: string;
14
+ labelPosition: FormLabelPosition;
15
+ starPosition: FormStarPosition;
16
+ }>;
17
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Partial<{
18
+ prop: string;
19
+ label: string;
20
+ rules: FormItemRule[];
21
+ required: boolean;
22
+ showErrorMessage: boolean;
23
+ showErrorLine: boolean;
24
+ labelWidth: string | number;
25
+ labelAlign: string;
26
+ errorMessageAlign: string;
27
+ bodyAlign: string;
28
+ labelPosition: FormLabelPosition;
29
+ starPosition: FormStarPosition;
30
+ }>>, {
31
+ prop: string;
32
+ label: string;
33
+ rules: () => never[];
34
+ required: boolean;
35
+ showErrorMessage: boolean;
36
+ showErrorLine: boolean;
37
+ }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Partial<{
38
+ prop: string;
39
+ label: string;
40
+ rules: FormItemRule[];
41
+ required: boolean;
42
+ showErrorMessage: boolean;
43
+ showErrorLine: boolean;
44
+ labelWidth: string | number;
45
+ labelAlign: string;
46
+ errorMessageAlign: string;
47
+ bodyAlign: string;
48
+ labelPosition: FormLabelPosition;
49
+ starPosition: FormStarPosition;
50
+ }>>, {
51
+ prop: string;
52
+ label: string;
53
+ rules: () => never[];
54
+ required: boolean;
55
+ showErrorMessage: boolean;
56
+ showErrorLine: boolean;
57
+ }>>>, {
58
+ label: string;
59
+ required: boolean;
60
+ rules: FormItemRule[];
61
+ prop: string;
62
+ showErrorMessage: boolean;
63
+ showErrorLine: boolean;
64
+ }, {}>, {
65
+ label?(_: {}): any;
66
+ default?(_: {}): any;
67
+ }>;
68
+ declare const _nut_default: WithInstall<typeof _default>;
69
+ export default _nut_default;
70
+
71
+ declare module 'vue' {
72
+ interface GlobalComponents {
73
+ NutFormItem: typeof _default;
74
+ }
75
+ }
76
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
77
+ type __VLS_TypePropsToRuntimeProps<T> = {
78
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
79
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
80
+ } : {
81
+ type: import('vue').PropType<T[K]>;
82
+ required: true;
83
+ };
84
+ };
85
+ type __VLS_WithDefaults<P, D> = {
86
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
87
+ default: D[K];
88
+ }> : P[K];
89
+ };
90
+ type __VLS_Prettify<T> = {
91
+ [K in keyof T]: T[K];
92
+ } & {};
93
+ type __VLS_WithTemplateSlots<T, S> = T & {
94
+ new (): {
95
+ $slots: S;
96
+ };
97
+ };
@@ -0,0 +1,5 @@
1
+ import FormItem from './form-item.vue';
2
+ import type { ComponentPublicInstance } from 'vue';
3
+ export type { FormItemProps } from './form-item.vue';
4
+ export type FormItemInstance = ComponentPublicInstance & InstanceType<typeof FormItem>;
5
+ export { FormItem, FormItem as default };
@@ -91,6 +91,7 @@ declare const _default: Install< import("vue").DefineComponent<{
91
91
  [x: string]: boolean;
92
92
  }>;
93
93
  styles: ComputedRef<any>;
94
+ disabled: ComputedRef<boolean>;
94
95
  onInput: (event: Event) => void;
95
96
  onFocus: (event: Event) => void;
96
97
  onBlur: (event: Event) => void;
@@ -198,13 +199,13 @@ declare const _default: Install< import("vue").DefineComponent<{
198
199
  border: boolean;
199
200
  placeholder: string;
200
201
  modelValue: string | number;
202
+ required: boolean;
201
203
  maxLength: string | number;
202
204
  clearable: boolean;
203
205
  autofocus: boolean;
204
206
  readonly: boolean;
205
207
  inputAlign: InputAlignType;
206
208
  formatter: (value: string) => string;
207
- required: boolean;
208
209
  clearSize: string | number;
209
210
  formatTrigger: InputFormatTrigger;
210
211
  showWordLimit: boolean;
@@ -43,6 +43,7 @@ declare const _default: Install< import("vue").DefineComponent<{
43
43
  classes: import("vue").ComputedRef<{
44
44
  [x: string]: boolean;
45
45
  }>;
46
+ disabled: import("vue").ComputedRef<boolean>;
46
47
  change: (event: Event) => void;
47
48
  blur: (event: Event) => void;
48
49
  focus: (event: Event) => void;
@@ -55,6 +55,7 @@ declare const _default: Install< import("vue").DefineComponent<{
55
55
  text: string;
56
56
  value: string;
57
57
  children: string;
58
+ className: string;
58
59
  }>;
59
60
  cancel: () => void;
60
61
  changeHandler: (columnIndex: number, option: import("./types").PickerOption) => void;
@@ -18,4 +18,5 @@ export interface PickerFieldNames {
18
18
  text?: string;
19
19
  value?: string;
20
20
  children?: string;
21
+ className?: string;
21
22
  }
@@ -6,6 +6,7 @@ export declare const usePicker: (props: any, emit: any) => {
6
6
  text: string;
7
7
  value: string;
8
8
  children: string;
9
+ className: string;
9
10
  }>;
10
11
  cancel: () => void;
11
12
  changeHandler: (columnIndex: number, option: PickerOption) => void;
@@ -60,7 +60,7 @@ declare const _default: Install< import("vue").DefineComponent<{
60
60
  marksStyle: (mark: number) => CSSProperties;
61
61
  marksList: import("vue").ComputedRef<number[]>;
62
62
  tickStyle: (mark: number) => CSSProperties;
63
- disabled: import("vue").Ref<boolean>;
63
+ disabled: import("vue").ComputedRef<boolean>;
64
64
  vertical: import("vue").Ref<boolean>;
65
65
  range: import("vue").Ref<boolean>;
66
66
  modelValue: import("vue").Ref<SliderValue>;
@@ -113,6 +113,7 @@ declare const _default: Install< import("vue").DefineComponent<{
113
113
  slots: Readonly<{
114
114
  [name: string]: import("vue").Slot<any> | undefined;
115
115
  }>;
116
+ disabled: import("vue").ComputedRef<boolean>;
116
117
  onTouchStart(event: TouchEvent): void;
117
118
  onTouchMove(event: TouchEvent): void;
118
119
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:modelValue")[], "change" | "update:modelValue", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
@@ -141,6 +141,7 @@ declare const _default: Install< import("vue").DefineComponent<{
141
141
  leftIconClick: (event: Event) => void;
142
142
  rightIconClick: (event: Event) => void;
143
143
  styleSearchbar: import("vue").ComputedRef<CSSProperties>;
144
+ disabled: import("vue").ComputedRef<boolean>;
144
145
  active: Ref<boolean>;
145
146
  renderIcon: (icon: import("vue").Component, props?: any) => "" | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
146
147
  [key: string]: any;
@@ -46,13 +46,13 @@ declare const _default: Install< import("vue").DefineComponent<{
46
46
  default: boolean;
47
47
  };
48
48
  }, {
49
- avatarShape: import("vue").Ref<any>;
49
+ avatarShape: import("vue").Ref<AvatarShape>;
50
50
  avatarClass: import("vue").ComputedRef<{
51
- [x: string]: any;
51
+ [x: string]: boolean | AvatarShape;
52
52
  avatarClass: boolean;
53
53
  }>;
54
54
  getBlockClass: (prefixCls: string) => {
55
- [x: string]: any;
55
+ [x: string]: boolean;
56
56
  };
57
57
  getStyle: () => CSSProperties;
58
58
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
@@ -16,7 +16,7 @@ declare const _default: import("vue").DefineComponent<{
16
16
  default: string;
17
17
  };
18
18
  }, {
19
- goodsCount: import("vue").Ref<any>;
19
+ goodsCount: import("vue").Ref<string | number>;
20
20
  add: (value: number) => void;
21
21
  reduce: (value: number) => void;
22
22
  overlimit: (e: Event, action: string) => void;
@@ -57,7 +57,7 @@ declare const _default: Install< import("vue").DefineComponent<{
57
57
  default: boolean;
58
58
  };
59
59
  }, {
60
- showPopup: import("vue").Ref<any>;
60
+ showPopup: import("vue").Ref<boolean>;
61
61
  closePopup: (type: string) => void;
62
62
  selectSku: (skus: any) => void;
63
63
  changeStepper: (value: number) => void;
@@ -27,13 +27,13 @@ declare const _default: Install< import("vue").DefineComponent<{
27
27
  };
28
28
  }, {
29
29
  cellClasses: (item: TableColumns) => {
30
- [x: string]: any;
31
- 'nut-table__main__head__tr--border': any;
30
+ [x: string]: boolean;
31
+ 'nut-table__main__head__tr--border': boolean;
32
32
  };
33
33
  getColumnItem: (value: string) => TableColumns;
34
- getColumnItemStyle: (value: string) => any;
34
+ getColumnItemStyle: (value: string) => string;
35
35
  handleSorterClick: (item: TableColumns) => void;
36
- sortDataItem: () => any;
36
+ sortDataItem: () => [string, any][];
37
37
  translate: (keyPath: string, ...args: unknown[]) => any;
38
38
  stylehead: (item: TableColumns) => string;
39
39
  stylecolumn: (item: TableColumns) => string;
@@ -88,7 +88,7 @@ declare const _default: Install< import("vue").DefineComponent<{
88
88
  titles: Ref<Title[]>;
89
89
  contentStyle: import("vue").ComputedRef<CSSProperties>;
90
90
  tabsNavStyle: import("vue").ComputedRef<{
91
- background: any;
91
+ background: string;
92
92
  }>;
93
93
  titleStyle: import("vue").ComputedRef<{
94
94
  marginTop?: undefined;
@@ -107,11 +107,11 @@ declare const _default: Install< import("vue").DefineComponent<{
107
107
  marginBottom?: undefined;
108
108
  }>;
109
109
  tabsActiveStyle: import("vue").ComputedRef<{
110
- color: any;
111
- background: any;
110
+ color: string;
111
+ background: string;
112
112
  }>;
113
113
  container: Ref<any>;
114
- getScrollY: import("vue").ComputedRef<any>;
114
+ getScrollY: import("vue").ComputedRef<boolean>;
115
115
  onStickyScroll: (params: {
116
116
  top: number;
117
117
  fixed: boolean;
@@ -53,6 +53,7 @@ declare const _default: Install< import("vue").DefineComponent<{
53
53
  "nut-textarea--disabled": boolean;
54
54
  }>;
55
55
  styles: any;
56
+ disabled: import("vue").ComputedRef<boolean>;
56
57
  change: (event: Event) => void;
57
58
  focus: (event: Event) => void;
58
59
  blur: (event: Event) => void;
@@ -68,7 +68,27 @@ declare const _default: Install< import("vue").DefineComponent<{
68
68
  hide: () => void;
69
69
  clickCover: () => void;
70
70
  hasIcon: import("vue").ComputedRef<boolean>;
71
- toastBodyClass: import("vue").ComputedRef<any[]>;
71
+ toastBodyClass: import("vue").ComputedRef<(string | {
72
+ 'nut-toast-center': boolean;
73
+ 'nut-toast-has-icon'?: undefined;
74
+ 'nut-toast-cover'?: undefined;
75
+ 'nut-toast-loading'?: undefined;
76
+ } | {
77
+ 'nut-toast-has-icon': boolean;
78
+ 'nut-toast-center'?: undefined;
79
+ 'nut-toast-cover'?: undefined;
80
+ 'nut-toast-loading'?: undefined;
81
+ } | {
82
+ 'nut-toast-cover': boolean;
83
+ 'nut-toast-center'?: undefined;
84
+ 'nut-toast-has-icon'?: undefined;
85
+ 'nut-toast-loading'?: undefined;
86
+ } | {
87
+ 'nut-toast-loading': boolean;
88
+ 'nut-toast-center'?: undefined;
89
+ 'nut-toast-has-icon'?: undefined;
90
+ 'nut-toast-cover'?: undefined;
91
+ } | undefined)[]>;
72
92
  toastIconWrapperClass: import("vue").ComputedRef<(string | {
73
93
  'nut-toast-icon-no-animation': boolean;
74
94
  })[]>;
@@ -51,8 +51,10 @@ import ShortPassword from './__VUE/shortpassword/index.vue';
51
51
  import Textarea from './__VUE/textarea/index.vue';
52
52
  import Uploader from './__VUE/uploader/index.vue';
53
53
  import NumberKeyboard from './__VUE/numberkeyboard/index.vue';
54
- import Form from './__VUE/form/index.vue';
55
- import FormItem from './__VUE/formitem/index.vue';
54
+ import Form from './__VUE/form/index';
55
+ export * from './__VUE/form/index';
56
+ import FormItem from './__VUE/formitem/index';
57
+ export * from './__VUE/formitem/index';
56
58
  import Swipe from './__VUE/swipe/index.vue';
57
59
  import SwipeGroup from './__VUE/swipegroup/index.vue';
58
60
  import ActionSheet from './__VUE/actionsheet/index.vue';
@@ -90,8 +92,10 @@ import Badge from './__VUE/badge/index.vue';
90
92
  import Tag from './__VUE/tag/index.vue';
91
93
  import Popover from './__VUE/popover/index.vue';
92
94
  import Skeleton from './__VUE/skeleton/index.vue';
93
- import Collapse from './__VUE/collapse/index.vue';
94
- import CollapseItem from './__VUE/collapseitem/index.vue';
95
+ import Collapse from './__VUE/collapse/index';
96
+ export * from './__VUE/collapse/index';
97
+ import CollapseItem from './__VUE/collapseitem/index';
98
+ export * from './__VUE/collapseitem/index';
95
99
  import Table from './__VUE/table/index.vue';
96
100
  import Animate from './__VUE/animate/index.vue';
97
101
  import Ellipsis from './__VUE/ellipsis/index.vue';
@@ -114,7 +118,7 @@ import Comment from './__VUE/comment/index.vue';
114
118
  import Invoice from './__VUE/invoice/index.vue';
115
119
  import AvatarCropper from './__VUE/avatarcropper/index.vue';
116
120
  declare function install(app: App): void;
117
- declare const version = "4.3.0";
121
+ declare const version = "4.3.1";
118
122
  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
123
  declare const _default: {
120
124
  install: typeof install;
@@ -1,2 +1,3 @@
1
1
  export * from './useRelation';
2
2
  export * from './with-install';
3
+ export * from './util';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nutui/nutui",
3
- "version": "4.3.0",
3
+ "version": "4.3.1",
4
4
  "description": "京东风格的轻量级移动端 Vue2、Vue3 组件库(支持小程序开发)",
5
5
  "main": "dist/nutui.umd.js",
6
6
  "module": "dist/nutui.es.js",
@@ -1,39 +0,0 @@
1
- import { PropType } from 'vue';
2
-
3
- declare type Install<T> = T & {
4
- install(app: import('vue').App): void;
5
- };
6
- declare const _default: Install< import("vue").DefineComponent<{
7
- modelValue: {
8
- type: PropType<string | number | (string | number)[]>;
9
- default: string;
10
- };
11
- accordion: {
12
- type: BooleanConstructor;
13
- default: boolean;
14
- };
15
- }, {
16
- nutCollapseRef: import("vue").Ref<null>;
17
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:modelValue")[], "change" | "update:modelValue", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
18
- modelValue: {
19
- type: PropType<string | number | (string | number)[]>;
20
- default: string;
21
- };
22
- accordion: {
23
- type: BooleanConstructor;
24
- default: boolean;
25
- };
26
- }>> & {
27
- onChange?: ((...args: any[]) => any) | undefined;
28
- "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
29
- }, {
30
- modelValue: string | number | (string | number)[];
31
- accordion: boolean;
32
- }, {}>>;
33
- export default _default;
34
-
35
- declare module 'vue' {
36
- interface GlobalComponents {
37
- NutCollapse: typeof _default;
38
- }
39
- }
@@ -1,212 +0,0 @@
1
-
2
- declare type Install<T> = T & {
3
- install(app: import('vue').App): void;
4
- };
5
- declare const _default: Install< import("vue").DefineComponent<{
6
- title: {
7
- type: StringConstructor;
8
- default: string;
9
- };
10
- value: {
11
- type: StringConstructor;
12
- default: string;
13
- };
14
- label: {
15
- type: StringConstructor;
16
- default: string;
17
- };
18
- disabled: {
19
- type: BooleanConstructor;
20
- default: boolean;
21
- };
22
- name: {
23
- type: (NumberConstructor | StringConstructor)[];
24
- default: number;
25
- required: true;
26
- };
27
- border: {
28
- type: BooleanConstructor;
29
- default: boolean;
30
- };
31
- icon: {
32
- type: ObjectConstructor;
33
- default: () => import("vue").DefineComponent<{
34
- class: {
35
- type: StringConstructor;
36
- default: string;
37
- };
38
- name: {
39
- type: StringConstructor;
40
- default: string;
41
- };
42
- color: {
43
- type: StringConstructor;
44
- default: string;
45
- };
46
- width: {
47
- type: (NumberConstructor | StringConstructor)[];
48
- default: string;
49
- };
50
- height: {
51
- type: (NumberConstructor | StringConstructor)[];
52
- default: string;
53
- };
54
- }, {
55
- classes: import("vue").ComputedRef<{
56
- [x: string]: string | boolean;
57
- "nut-icon": boolean;
58
- }>;
59
- style: import("vue").ComputedRef<import("vue").CSSProperties>;
60
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
61
- class: {
62
- type: StringConstructor;
63
- default: string;
64
- };
65
- name: {
66
- type: StringConstructor;
67
- default: string;
68
- };
69
- color: {
70
- type: StringConstructor;
71
- default: string;
72
- };
73
- width: {
74
- type: (NumberConstructor | StringConstructor)[];
75
- default: string;
76
- };
77
- height: {
78
- type: (NumberConstructor | StringConstructor)[];
79
- default: string;
80
- };
81
- }>>, {
82
- name: string;
83
- width: string | number;
84
- height: string | number;
85
- color: string;
86
- class: string;
87
- }>;
88
- };
89
- rotate: {
90
- type: (NumberConstructor | StringConstructor)[];
91
- default: number;
92
- };
93
- }, {
94
- classes: import("vue").ComputedRef<{
95
- [x: string]: boolean;
96
- "nut-collapse-item": boolean;
97
- }>;
98
- renderIcon: (icon: import("vue").Component, props?: any) => "" | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
99
- [key: string]: any;
100
- }>;
101
- wrapperRef: any;
102
- contentRef: any;
103
- open: () => void;
104
- toggle: () => void;
105
- wrapperHeight: import("vue").Ref<string>;
106
- expanded: import("vue").ComputedRef<any>;
107
- onTransitionEnd: () => void;
108
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
109
- title: {
110
- type: StringConstructor;
111
- default: string;
112
- };
113
- value: {
114
- type: StringConstructor;
115
- default: string;
116
- };
117
- label: {
118
- type: StringConstructor;
119
- default: string;
120
- };
121
- disabled: {
122
- type: BooleanConstructor;
123
- default: boolean;
124
- };
125
- name: {
126
- type: (NumberConstructor | StringConstructor)[];
127
- default: number;
128
- required: true;
129
- };
130
- border: {
131
- type: BooleanConstructor;
132
- default: boolean;
133
- };
134
- icon: {
135
- type: ObjectConstructor;
136
- default: () => import("vue").DefineComponent<{
137
- class: {
138
- type: StringConstructor;
139
- default: string;
140
- };
141
- name: {
142
- type: StringConstructor;
143
- default: string;
144
- };
145
- color: {
146
- type: StringConstructor;
147
- default: string;
148
- };
149
- width: {
150
- type: (NumberConstructor | StringConstructor)[];
151
- default: string;
152
- };
153
- height: {
154
- type: (NumberConstructor | StringConstructor)[];
155
- default: string;
156
- };
157
- }, {
158
- classes: import("vue").ComputedRef<{
159
- [x: string]: string | boolean;
160
- "nut-icon": boolean;
161
- }>;
162
- style: import("vue").ComputedRef<import("vue").CSSProperties>;
163
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
164
- class: {
165
- type: StringConstructor;
166
- default: string;
167
- };
168
- name: {
169
- type: StringConstructor;
170
- default: string;
171
- };
172
- color: {
173
- type: StringConstructor;
174
- default: string;
175
- };
176
- width: {
177
- type: (NumberConstructor | StringConstructor)[];
178
- default: string;
179
- };
180
- height: {
181
- type: (NumberConstructor | StringConstructor)[];
182
- default: string;
183
- };
184
- }>>, {
185
- name: string;
186
- width: string | number;
187
- height: string | number;
188
- color: string;
189
- class: string;
190
- }>;
191
- };
192
- rotate: {
193
- type: (NumberConstructor | StringConstructor)[];
194
- default: number;
195
- };
196
- }>>, {
197
- name: string | number;
198
- disabled: boolean;
199
- label: string;
200
- title: string;
201
- icon: Record<string, any>;
202
- border: boolean;
203
- value: string;
204
- rotate: string | number;
205
- }, {}>>;
206
- export default _default;
207
-
208
- declare module 'vue' {
209
- interface GlobalComponents {
210
- NutCollapseItem: typeof _default;
211
- }
212
- }