@nutui/nutui 4.3.0 → 4.3.2

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 (128) hide show
  1. package/CHANGELOG.md +45 -0
  2. package/dist/nutui.es.js +1 -1
  3. package/dist/nutui.js +5980 -6124
  4. package/dist/nutui.umd.js +1 -1
  5. package/dist/packages/actionsheet/ActionSheet.js +1 -3
  6. package/dist/packages/address/Address.js +1 -4
  7. package/dist/packages/addresslist/AddressList.js +0 -4
  8. package/dist/packages/animate/Animate.js +51 -44
  9. package/dist/packages/audio/Audio.js +0 -3
  10. package/dist/packages/audiooperate/AudioOperate.js +0 -4
  11. package/dist/packages/avatar/Avatar.js +0 -1
  12. package/dist/packages/avatarcropper/AvatarCropper.js +0 -1
  13. package/dist/packages/calendar/Calendar.js +1 -7
  14. package/dist/packages/calendarcard/CalendarCard.js +0 -2
  15. package/dist/packages/calendaritem/CalendarItem.js +0 -2
  16. package/dist/packages/card/Card.js +2 -3
  17. package/dist/packages/cascader/Cascader.js +1 -10
  18. package/dist/packages/checkbox/Checkbox.js +4 -2
  19. package/dist/packages/col/Col.js +41 -30
  20. package/dist/packages/collapse/Collapse.js +40 -28
  21. package/dist/packages/collapseitem/CollapseItem.js +112 -125
  22. package/dist/packages/comment/Comment.js +0 -5
  23. package/dist/packages/common-FZL3qC99.js +16 -0
  24. package/dist/packages/countdown/Countdown.js +3 -4
  25. package/dist/packages/datepicker/DatePicker.js +0 -4
  26. package/dist/packages/dialog/Dialog.js +1 -5
  27. package/dist/packages/ecard/Ecard.js +0 -4
  28. package/dist/packages/empty/Empty.js +0 -2
  29. package/dist/packages/fixednav/FixedNav.js +0 -2
  30. package/dist/packages/form/Form.js +163 -157
  31. package/dist/packages/formitem/FormItem.js +77 -108
  32. package/dist/packages/grid/Grid.js +0 -1
  33. package/dist/packages/imagepreview/ImagePreview.js +1 -5
  34. package/dist/packages/{index-wY4t0zYt.js → index-BqB5dTeo.js} +29 -17
  35. package/dist/packages/{index.vue_vue_type_script_lang-MJYVRFbp.js → index.vue_vue_type_script_lang-n0HbjvfF.js} +6 -4
  36. package/dist/packages/infiniteloading/InfiniteLoading.js +0 -1
  37. package/dist/packages/input/Input.js +10 -7
  38. package/dist/packages/inputnumber/InputNumber.js +11 -8
  39. package/dist/packages/invoice/Invoice.js +10 -21
  40. package/dist/packages/layout/Layout.js +3 -0
  41. package/dist/packages/locale/lang/index.js +0 -1
  42. package/dist/packages/menuitem/MenuItem.js +1 -3
  43. package/dist/packages/notify/Notify.js +1 -4
  44. package/dist/packages/numberkeyboard/NumberKeyboard.js +1 -5
  45. package/dist/packages/pagination/Pagination.js +0 -2
  46. package/dist/packages/picker/Picker.js +10 -5
  47. package/dist/packages/popover/Popover.js +1 -4
  48. package/dist/packages/popup/Popup.js +1 -5
  49. package/dist/packages/price/Price.js +69 -77
  50. package/dist/packages/pullrefresh/PullRefresh.js +0 -1
  51. package/dist/packages/radio/Radio.js +1 -6
  52. package/dist/packages/radiogroup/RadioGroup.js +0 -3
  53. package/dist/packages/range/Range.js +10 -7
  54. package/dist/packages/rate/Rate.js +6 -3
  55. package/dist/packages/row/Row.js +43 -39
  56. package/dist/packages/searchbar/Searchbar.js +5 -4
  57. package/dist/packages/shortpassword/ShortPassword.js +1 -4
  58. package/dist/packages/signature/Signature.js +0 -4
  59. package/dist/packages/sku/Sku.js +8 -12
  60. package/dist/packages/switch/Switch.js +12 -2
  61. package/dist/packages/switch/index.css +1 -1
  62. package/dist/packages/switch/index.scss +1 -1
  63. package/dist/packages/table/Table.js +0 -2
  64. package/dist/packages/tabs/Tabs.js +0 -1
  65. package/dist/packages/textarea/Textarea.js +7 -6
  66. package/dist/packages/timepannel/TimePannel.js +2 -2
  67. package/dist/packages/timeselect/TimeSelect.js +1 -5
  68. package/dist/packages/toast/Toast.js +3 -3
  69. package/dist/packages/tour/Tour.js +0 -4
  70. package/dist/packages/uploader/Uploader.js +7 -5
  71. package/dist/packages/video/Video.js +0 -2
  72. package/dist/smartips/web-types.json +21 -3
  73. package/dist/style.css +1 -1
  74. package/dist/types/__VUE/address/index.vue.d.ts +43 -3
  75. package/dist/types/__VUE/animate/animate.vue.d.ts +75 -0
  76. package/dist/types/__VUE/animate/index.d.ts +6 -0
  77. package/dist/types/__VUE/col/col.vue.d.ts +53 -0
  78. package/dist/types/__VUE/col/index.d.ts +5 -0
  79. package/dist/types/__VUE/collapse/collapse.vue.d.ts +60 -0
  80. package/dist/types/__VUE/collapse/index.d.ts +6 -0
  81. package/dist/types/__VUE/collapse/types.d.ts +3 -2
  82. package/dist/types/__VUE/collapseitem/collapse-item.vue.d.ts +201 -0
  83. package/dist/types/__VUE/collapseitem/index.d.ts +5 -0
  84. package/dist/types/__VUE/countdown/index.vue.d.ts +23 -1
  85. package/dist/types/__VUE/fixednav/index.vue.d.ts +2 -2
  86. package/dist/types/__VUE/form/common.d.ts +4 -30
  87. package/dist/types/__VUE/form/form.vue.d.ts +80 -0
  88. package/dist/types/__VUE/form/index.d.ts +6 -0
  89. package/dist/types/__VUE/form/types.d.ts +12 -5
  90. package/dist/types/__VUE/formitem/form-item.vue.d.ts +97 -0
  91. package/dist/types/__VUE/formitem/index.d.ts +5 -0
  92. package/dist/types/__VUE/input/index.vue.d.ts +1 -0
  93. package/dist/types/__VUE/inputnumber/index.vue.d.ts +1 -0
  94. package/dist/types/__VUE/layout/index.d.ts +4 -0
  95. package/dist/types/__VUE/layout/layout.vue.d.ts +10 -0
  96. package/dist/types/__VUE/picker/index.vue.d.ts +1 -0
  97. package/dist/types/__VUE/picker/types.d.ts +1 -0
  98. package/dist/types/__VUE/picker/usePicker.d.ts +1 -0
  99. package/dist/types/__VUE/price/index.d.ts +6 -0
  100. package/dist/types/__VUE/price/price.vue.d.ts +83 -0
  101. package/dist/types/__VUE/range/index.vue.d.ts +1 -1
  102. package/dist/types/__VUE/rate/index.vue.d.ts +1 -0
  103. package/dist/types/__VUE/row/index.d.ts +5 -0
  104. package/dist/types/__VUE/row/row.vue.d.ts +71 -0
  105. package/dist/types/__VUE/searchbar/index.vue.d.ts +1 -0
  106. package/dist/types/__VUE/skeleton/index.vue.d.ts +3 -3
  107. package/dist/types/__VUE/sku/components/SkuStepper.vue.d.ts +1 -1
  108. package/dist/types/__VUE/sku/index.vue.d.ts +1 -1
  109. package/dist/types/__VUE/switch/index.vue.d.ts +9 -0
  110. package/dist/types/__VUE/table/index.vue.d.ts +4 -4
  111. package/dist/types/__VUE/tabs/index.vue.d.ts +4 -4
  112. package/dist/types/__VUE/textarea/index.vue.d.ts +1 -0
  113. package/dist/types/__VUE/toast/index.vue.d.ts +21 -1
  114. package/dist/types/index.d.ts +19 -10
  115. package/dist/types/utils/index.d.ts +1 -0
  116. package/package.json +1 -1
  117. package/dist/packages/types-Ynmct7na.js +0 -4
  118. package/dist/types/__VUE/animate/index.vue.d.ts +0 -71
  119. package/dist/types/__VUE/col/index.vue.d.ts +0 -42
  120. package/dist/types/__VUE/collapse/index.vue.d.ts +0 -39
  121. package/dist/types/__VUE/collapseitem/index.vue.d.ts +0 -212
  122. package/dist/types/__VUE/form/index.vue.d.ts +0 -58
  123. package/dist/types/__VUE/formitem/index.vue.d.ts +0 -134
  124. package/dist/types/__VUE/formitem/types.d.ts +0 -11
  125. package/dist/types/__VUE/layout/index.vue.d.ts +0 -12
  126. package/dist/types/__VUE/price/index.vue.d.ts +0 -97
  127. package/dist/types/__VUE/row/index.vue.d.ts +0 -62
  128. /package/dist/types/__VUE/animate/{type.d.ts → types.d.ts} +0 -0
@@ -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;
@@ -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;
@@ -0,0 +1,4 @@
1
+ import Layout from './layout.vue';
2
+ import type { ComponentPublicInstance } from 'vue';
3
+ export type LayoutInstance = ComponentPublicInstance & InstanceType<typeof Layout>;
4
+ export { Layout, Layout as default };
@@ -0,0 +1,10 @@
1
+ import type { WithInstall } from '../../utils';
2
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
3
+ declare const _nut_default: WithInstall<typeof _default>;
4
+ export default _nut_default;
5
+
6
+ declare module 'vue' {
7
+ interface GlobalComponents {
8
+ NutLayout: typeof _default;
9
+ }
10
+ }
@@ -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;
@@ -0,0 +1,6 @@
1
+ import Price from './price.vue';
2
+ import type { ComponentPublicInstance } from 'vue';
3
+ export type { PriceProps } from './price.vue';
4
+ export type { PriceSize, PricePosition } from './types';
5
+ export type PriceInstance = ComponentPublicInstance & InstanceType<typeof Price>;
6
+ export { Price, Price as default };
@@ -0,0 +1,83 @@
1
+ import type { WithInstall } from '../../utils';
2
+ import type { PricePosition, PriceSize } from './types';
3
+ export type PriceProps = Partial<{
4
+ price: string | number;
5
+ needSymbol: boolean;
6
+ symbol: string;
7
+ decimalDigits: number;
8
+ thousands: boolean;
9
+ position: PricePosition;
10
+ size: PriceSize;
11
+ strikeThrough: boolean;
12
+ }>;
13
+ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Partial<{
14
+ price: string | number;
15
+ needSymbol: boolean;
16
+ symbol: string;
17
+ decimalDigits: number;
18
+ thousands: boolean;
19
+ position: PricePosition;
20
+ size: PriceSize;
21
+ strikeThrough: boolean;
22
+ }>>, {
23
+ price: number;
24
+ needSymbol: boolean;
25
+ symbol: string;
26
+ decimalDigits: number;
27
+ thousands: boolean;
28
+ position: string;
29
+ size: string;
30
+ strikeThrough: boolean;
31
+ }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Partial<{
32
+ price: string | number;
33
+ needSymbol: boolean;
34
+ symbol: string;
35
+ decimalDigits: number;
36
+ thousands: boolean;
37
+ position: PricePosition;
38
+ size: PriceSize;
39
+ strikeThrough: boolean;
40
+ }>>, {
41
+ price: number;
42
+ needSymbol: boolean;
43
+ symbol: string;
44
+ decimalDigits: number;
45
+ thousands: boolean;
46
+ position: string;
47
+ size: string;
48
+ strikeThrough: boolean;
49
+ }>>>, {
50
+ symbol: string;
51
+ size: PriceSize;
52
+ position: PricePosition;
53
+ price: string | number;
54
+ needSymbol: boolean;
55
+ decimalDigits: number;
56
+ thousands: boolean;
57
+ strikeThrough: boolean;
58
+ }, {}>;
59
+ declare const _nut_default: WithInstall<typeof _default>;
60
+ export default _nut_default;
61
+
62
+ declare module 'vue' {
63
+ interface GlobalComponents {
64
+ NutPrice: typeof _default;
65
+ }
66
+ }
67
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
68
+ type __VLS_TypePropsToRuntimeProps<T> = {
69
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
70
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
71
+ } : {
72
+ type: import('vue').PropType<T[K]>;
73
+ required: true;
74
+ };
75
+ };
76
+ type __VLS_WithDefaults<P, D> = {
77
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
78
+ default: D[K];
79
+ }> : P[K];
80
+ };
81
+ type __VLS_Prettify<T> = {
82
+ [K in keyof T]: T[K];
83
+ } & {};
@@ -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<{
@@ -0,0 +1,5 @@
1
+ import Row from './row.vue';
2
+ import type { ComponentPublicInstance } from 'vue';
3
+ export type { RowProps } from './row.vue';
4
+ export type RowInstance = ComponentPublicInstance & InstanceType<typeof Row>;
5
+ export { Row, Row as default };
@@ -0,0 +1,71 @@
1
+ import type { WithInstall } from '../../utils';
2
+ export type RowProps = Partial<{
3
+ type: string;
4
+ gutter: string | number;
5
+ justify: string;
6
+ align: string;
7
+ flexWrap: string;
8
+ }>;
9
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Partial<{
10
+ type: string;
11
+ gutter: string | number;
12
+ justify: string;
13
+ align: string;
14
+ flexWrap: string;
15
+ }>>, {
16
+ type: string;
17
+ gutter: string;
18
+ justify: string;
19
+ align: string;
20
+ flexWrap: string;
21
+ }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Partial<{
22
+ type: string;
23
+ gutter: string | number;
24
+ justify: string;
25
+ align: string;
26
+ flexWrap: string;
27
+ }>>, {
28
+ type: string;
29
+ gutter: string;
30
+ justify: string;
31
+ align: string;
32
+ flexWrap: string;
33
+ }>>>, {
34
+ type: string;
35
+ justify: string;
36
+ gutter: string | number;
37
+ align: string;
38
+ flexWrap: string;
39
+ }, {}>, {
40
+ default?(_: {}): any;
41
+ }>;
42
+ declare const _nut_default: WithInstall<typeof _default>;
43
+ export default _nut_default;
44
+
45
+ declare module 'vue' {
46
+ interface GlobalComponents {
47
+ NutRow: typeof _default;
48
+ }
49
+ }
50
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
51
+ type __VLS_TypePropsToRuntimeProps<T> = {
52
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
53
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
54
+ } : {
55
+ type: import('vue').PropType<T[K]>;
56
+ required: true;
57
+ };
58
+ };
59
+ type __VLS_WithDefaults<P, D> = {
60
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
61
+ default: D[K];
62
+ }> : P[K];
63
+ };
64
+ type __VLS_Prettify<T> = {
65
+ [K in keyof T]: T[K];
66
+ } & {};
67
+ type __VLS_WithTemplateSlots<T, S> = T & {
68
+ new (): {
69
+ $slots: S;
70
+ };
71
+ };
@@ -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;
@@ -7,6 +7,10 @@ declare const _default: Install< import("vue").DefineComponent<{
7
7
  type: (NumberConstructor | BooleanConstructor | StringConstructor)[];
8
8
  default: boolean;
9
9
  };
10
+ disabled: {
11
+ type: BooleanConstructor;
12
+ default: boolean;
13
+ };
10
14
  disable: {
11
15
  type: BooleanConstructor;
12
16
  default: boolean;
@@ -53,6 +57,10 @@ declare const _default: Install< import("vue").DefineComponent<{
53
57
  type: (NumberConstructor | BooleanConstructor | StringConstructor)[];
54
58
  default: boolean;
55
59
  };
60
+ disabled: {
61
+ type: BooleanConstructor;
62
+ default: boolean;
63
+ };
56
64
  disable: {
57
65
  type: BooleanConstructor;
58
66
  default: boolean;
@@ -91,6 +99,7 @@ declare const _default: Install< import("vue").DefineComponent<{
91
99
  "onUpdate:loading"?: ((...args: any[]) => any) | undefined;
92
100
  }, {
93
101
  loading: boolean;
102
+ disabled: boolean;
94
103
  activeColor: string;
95
104
  activeText: string;
96
105
  modelValue: string | number | boolean;
@@ -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
  })[]>;
@@ -8,9 +8,12 @@ import Overlay from './__VUE/overlay/index.vue';
8
8
  import Popup from './__VUE/popup/index.vue';
9
9
  import ConfigProvider from './__VUE/configprovider/index.vue';
10
10
  import Image from './__VUE/image/index.vue';
11
- import Layout from './__VUE/layout/index.vue';
12
- import Col from './__VUE/col/index.vue';
13
- import Row from './__VUE/row/index.vue';
11
+ import Layout from './__VUE/layout/index';
12
+ export * from './__VUE/layout/index';
13
+ import Col from './__VUE/col/index';
14
+ export * from './__VUE/col/index';
15
+ import Row from './__VUE/row/index';
16
+ export * from './__VUE/row/index';
14
17
  import Sticky from './__VUE/sticky/index.vue';
15
18
  import Divider from './__VUE/divider/index';
16
19
  export * from './__VUE/divider/index';
@@ -51,8 +54,10 @@ import ShortPassword from './__VUE/shortpassword/index.vue';
51
54
  import Textarea from './__VUE/textarea/index.vue';
52
55
  import Uploader from './__VUE/uploader/index.vue';
53
56
  import NumberKeyboard from './__VUE/numberkeyboard/index.vue';
54
- import Form from './__VUE/form/index.vue';
55
- import FormItem from './__VUE/formitem/index.vue';
57
+ import Form from './__VUE/form/index';
58
+ export * from './__VUE/form/index';
59
+ import FormItem from './__VUE/formitem/index';
60
+ export * from './__VUE/formitem/index';
56
61
  import Swipe from './__VUE/swipe/index.vue';
57
62
  import SwipeGroup from './__VUE/swipegroup/index.vue';
58
63
  import ActionSheet from './__VUE/actionsheet/index.vue';
@@ -81,7 +86,8 @@ import Steps from './__VUE/steps/index.vue';
81
86
  import Step from './__VUE/step/index.vue';
82
87
  import Swiper from './__VUE/swiper/index.vue';
83
88
  import SwiperItem from './__VUE/swiperitem/index.vue';
84
- import Price from './__VUE/price/index.vue';
89
+ import Price from './__VUE/price/index';
90
+ export * from './__VUE/price/index';
85
91
  import ImagePreview from './__VUE/imagepreview/index.vue';
86
92
  import { showImagePreview } from './__VUE/imagepreview/index';
87
93
  import Countup from './__VUE/countup/index.vue';
@@ -90,10 +96,13 @@ import Badge from './__VUE/badge/index.vue';
90
96
  import Tag from './__VUE/tag/index.vue';
91
97
  import Popover from './__VUE/popover/index.vue';
92
98
  import Skeleton from './__VUE/skeleton/index.vue';
93
- import Collapse from './__VUE/collapse/index.vue';
94
- import CollapseItem from './__VUE/collapseitem/index.vue';
99
+ import Collapse from './__VUE/collapse/index';
100
+ export * from './__VUE/collapse/index';
101
+ import CollapseItem from './__VUE/collapseitem/index';
102
+ export * from './__VUE/collapseitem/index';
95
103
  import Table from './__VUE/table/index.vue';
96
- import Animate from './__VUE/animate/index.vue';
104
+ import Animate from './__VUE/animate/index';
105
+ export * from './__VUE/animate/index';
97
106
  import Ellipsis from './__VUE/ellipsis/index.vue';
98
107
  import Watermark from './__VUE/watermark/index.vue';
99
108
  import TrendArrow from './__VUE/trendarrow/index.vue';
@@ -114,7 +123,7 @@ import Comment from './__VUE/comment/index.vue';
114
123
  import Invoice from './__VUE/invoice/index.vue';
115
124
  import AvatarCropper from './__VUE/avatarcropper/index.vue';
116
125
  declare function install(app: App): void;
117
- declare const version = "4.3.0";
126
+ declare const version = "4.3.2";
118
127
  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
128
  declare const _default: {
120
129
  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.2",
4
4
  "description": "京东风格的轻量级移动端 Vue2、Vue3 组件库(支持小程序开发)",
5
5
  "main": "dist/nutui.umd.js",
6
6
  "module": "dist/nutui.es.js",
@@ -1,4 +0,0 @@
1
- const FORM_KEY = Symbol("nut-form");
2
- export {
3
- FORM_KEY as F
4
- };