@nutui/nutui 4.3.2 → 4.3.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 (227) hide show
  1. package/CHANGELOG.md +40 -0
  2. package/dist/nutui.es.js +2 -4
  3. package/dist/nutui.js +7000 -7518
  4. package/dist/nutui.umd.js +1 -1
  5. package/dist/packages/{Interceptor-WYVtGbGC.js → Interceptor-DlY2h6Y7.js} +2 -2
  6. package/dist/packages/actionsheet/ActionSheet.js +3 -3
  7. package/dist/packages/address/Address.js +5 -5
  8. package/dist/packages/addresslist/AddressList.js +6 -6
  9. package/dist/packages/animate/Animate.js +1 -1
  10. package/dist/packages/audio/Audio.js +2 -2
  11. package/dist/packages/audiooperate/AudioOperate.js +3 -3
  12. package/dist/packages/avatar/Avatar.js +2 -2
  13. package/dist/packages/avatarcropper/AvatarCropper.js +5 -5
  14. package/dist/packages/avatargroup/AvatarGroup.js +3 -3
  15. package/dist/packages/backtop/Backtop.js +80 -90
  16. package/dist/packages/badge/Badge.js +2 -2
  17. package/dist/packages/barrage/Barrage.js +2 -2
  18. package/dist/packages/button/Button.js +1 -1
  19. package/dist/packages/calendar/Calendar.js +817 -6
  20. package/dist/packages/calendar/index.scss +0 -1
  21. package/dist/packages/calendarcard/CalendarCard.js +4 -4
  22. package/dist/packages/card/Card.js +4 -4
  23. package/dist/packages/cascader/Cascader.js +4 -4
  24. package/dist/packages/category/Category.js +4 -4
  25. package/dist/packages/categorypane/CategoryPane.js +5 -5
  26. package/dist/packages/cell/Cell.js +4 -4
  27. package/dist/packages/cellgroup/CellGroup.js +2 -2
  28. package/dist/packages/checkbox/Checkbox.js +4 -4
  29. package/dist/packages/checkboxgroup/CheckboxGroup.js +2 -2
  30. package/dist/packages/circleprogress/CircleProgress.js +91 -98
  31. package/dist/packages/col/Col.js +2 -2
  32. package/dist/packages/collapse/Collapse.js +2 -2
  33. package/dist/packages/collapseitem/CollapseItem.js +3 -3
  34. package/dist/packages/comment/Comment.js +6 -6
  35. package/dist/packages/{common-4inKawxR.js → common-Chr7cC9o.js} +2 -2
  36. package/dist/packages/{common-FZL3qC99.js → common-DRG0ue26.js} +1 -1
  37. package/dist/packages/configprovider/ConfigProvider.js +1 -1
  38. package/dist/packages/countdown/Countdown.js +4 -4
  39. package/dist/packages/countup/Countup.js +9 -9
  40. package/dist/packages/{date-djiVNSnJ.js → date-DHXcwF1m.js} +2 -2
  41. package/dist/packages/datepicker/DatePicker.js +3 -3
  42. package/dist/packages/dialog/Dialog.js +8 -8
  43. package/dist/packages/divider/Divider.js +1 -1
  44. package/dist/packages/drag/Drag.js +3 -3
  45. package/dist/packages/ecard/Ecard.js +5 -5
  46. package/dist/packages/elevator/Elevator.js +2 -2
  47. package/dist/packages/ellipsis/Ellipsis.js +4 -4
  48. package/dist/packages/empty/Empty.js +67 -52
  49. package/dist/packages/fixednav/FixedNav.js +3 -3
  50. package/dist/packages/form/Form.js +4 -4
  51. package/dist/packages/formitem/FormItem.js +4 -4
  52. package/dist/packages/grid/Grid.js +2 -2
  53. package/dist/packages/griditem/GridItem.js +5 -5
  54. package/dist/packages/image/Image.js +3 -3
  55. package/dist/packages/imagepreview/ImagePreview.js +8 -8
  56. package/dist/packages/{index-s3RgMhc7.js → index-CFigyH92.js} +1 -1
  57. package/dist/packages/{index--uVlasFu.js → index-Do4_KY74.js} +2 -2
  58. package/dist/packages/{index-BqB5dTeo.js → index-uHBD4dfS.js} +2 -2
  59. package/dist/packages/{index.vue_vue_type_script_lang-n0HbjvfF.js → index.vue_vue_type_script_lang-CTQUvlgN.js} +4 -4
  60. package/dist/packages/{index.vue_vue_type_script_lang-54PRh3YM.js → index.vue_vue_type_script_lang-CaSiRl9x.js} +2 -2
  61. package/dist/packages/indicator/Indicator.js +56 -50
  62. package/dist/packages/infiniteloading/InfiniteLoading.js +6 -6
  63. package/dist/packages/input/Input.js +10 -10
  64. package/dist/packages/inputnumber/InputNumber.js +85 -104
  65. package/dist/packages/invoice/Invoice.js +87 -138
  66. package/dist/packages/layout/Layout.js +2 -2
  67. package/dist/packages/list/List.js +3 -3
  68. package/dist/packages/locale/lang/en-US.js +1 -1
  69. package/dist/packages/locale/lang/id-ID.js +1 -1
  70. package/dist/packages/locale/lang/index.js +2 -2
  71. package/dist/packages/locale/lang/zh-CN.js +1 -1
  72. package/dist/packages/locale/lang/zh-TW.js +1 -1
  73. package/dist/packages/menu/Menu.js +5 -5
  74. package/dist/packages/menuitem/MenuItem.js +5 -5
  75. package/dist/packages/{mountComponent-uInXoTMp.js → mountComponent-DBQ88Fjz.js} +1 -1
  76. package/dist/packages/navbar/Navbar.js +103 -115
  77. package/dist/packages/noticebar/Noticebar.js +3 -3
  78. package/dist/packages/notify/Notify.js +3 -3
  79. package/dist/packages/numberkeyboard/NumberKeyboard.js +4 -4
  80. package/dist/packages/overlay/Overlay.js +3 -3
  81. package/dist/packages/pagination/Pagination.js +3 -3
  82. package/dist/packages/picker/Picker.js +7 -10
  83. package/dist/packages/popover/Popover.js +5 -5
  84. package/dist/packages/popup/Popup.js +2 -2
  85. package/dist/packages/price/Price.js +1 -1
  86. package/dist/packages/progress/Progress.js +96 -115
  87. package/dist/packages/pullrefresh/PullRefresh.js +7 -7
  88. package/dist/packages/radio/Radio.js +1 -1
  89. package/dist/packages/radiogroup/RadioGroup.js +1 -1
  90. package/dist/packages/range/Range.js +6 -6
  91. package/dist/packages/rate/Rate.js +102 -144
  92. package/dist/packages/row/Row.js +2 -2
  93. package/dist/packages/searchbar/Searchbar.js +5 -5
  94. package/dist/packages/shortpassword/ShortPassword.js +5 -5
  95. package/dist/packages/sidenavbar/SideNavbar.js +2 -2
  96. package/dist/packages/sidenavbaritem/SideNavbarItem.js +2 -2
  97. package/dist/packages/signature/Signature.js +3 -3
  98. package/dist/packages/skeleton/Skeleton.js +13 -13
  99. package/dist/packages/sku/Sku.js +6 -6
  100. package/dist/packages/space/Space.js +1 -1
  101. package/dist/packages/step/Step.js +3 -3
  102. package/dist/packages/steps/Steps.js +2 -2
  103. package/dist/packages/sticky/Sticky.js +4 -4
  104. package/dist/packages/subsidenavbar/SubSideNavbar.js +2 -2
  105. package/dist/packages/swipe/Swipe.js +98 -112
  106. package/dist/packages/swipegroup/SwipeGroup.js +42 -24
  107. package/dist/packages/swiper/Swiper.js +7 -7
  108. package/dist/packages/swiperitem/SwiperItem.js +3 -3
  109. package/dist/packages/switch/Switch.js +68 -86
  110. package/dist/packages/tabbar/Tabbar.js +78 -78
  111. package/dist/packages/tabbaritem/TabbarItem.js +89 -113
  112. package/dist/packages/table/Table.js +3 -3
  113. package/dist/packages/tabpane/TabPane.js +2 -2
  114. package/dist/packages/tabs/Tabs.js +9 -9
  115. package/dist/packages/tag/Tag.js +57 -66
  116. package/dist/packages/textarea/Textarea.js +113 -127
  117. package/dist/packages/timedetail/TimeDetail.js +2 -2
  118. package/dist/packages/timepannel/TimePannel.js +2 -2
  119. package/dist/packages/timeselect/TimeSelect.js +4 -4
  120. package/dist/packages/toast/Toast.js +6 -6
  121. package/dist/packages/tour/Tour.js +3 -3
  122. package/dist/packages/trendarrow/TrendArrow.js +51 -83
  123. package/dist/packages/uploader/Uploader.js +9 -9
  124. package/dist/packages/{useChildren-GU_NVfD8.js → useChildren-BZ4-J79J.js} +2 -2
  125. package/dist/packages/useParent-D6DiuxZZ.js +21 -0
  126. package/dist/packages/{util-4Jkyw4BJ.js → util-DnfK0Qan.js} +2 -2
  127. package/dist/packages/video/Video.js +16 -16
  128. package/dist/packages/watermark/Watermark.js +2 -2
  129. package/dist/smartips/web-types.json +2 -2
  130. package/dist/styles/base-jdb.css +1 -1
  131. package/dist/styles/base-jddkh.css +1 -1
  132. package/dist/styles/base-jdt.css +1 -1
  133. package/dist/styles/themes/default.scss +0 -1
  134. package/dist/styles/themes/jdb.scss +0 -1
  135. package/dist/styles/themes/jddkh.scss +0 -1
  136. package/dist/styles/themes/jdt.scss +0 -1
  137. package/dist/styles/variables-jdb.scss +0 -1
  138. package/dist/styles/variables-jddkh.scss +0 -1
  139. package/dist/styles/variables-jdt.scss +0 -1
  140. package/dist/styles/variables.scss +0 -1
  141. package/dist/types/__VUE/backtop/backtop.vue.d.ts +87 -0
  142. package/dist/types/__VUE/backtop/index.d.ts +5 -0
  143. package/dist/types/__VUE/calendaritem/index.vue.d.ts +2 -12
  144. package/dist/types/__VUE/circleprogress/circle-progress.vue.d.ts +88 -0
  145. package/dist/types/__VUE/circleprogress/index.d.ts +6 -0
  146. package/dist/types/__VUE/empty/empty.vue.d.ts +62 -0
  147. package/dist/types/__VUE/empty/index.d.ts +6 -0
  148. package/dist/types/__VUE/indicator/index.d.ts +6 -0
  149. package/dist/types/__VUE/indicator/indicator.vue.d.ts +65 -0
  150. package/dist/types/__VUE/inputnumber/index.d.ts +5 -0
  151. package/dist/types/__VUE/inputnumber/input-number.vue.d.ts +112 -0
  152. package/dist/types/__VUE/invoice/index.d.ts +6 -0
  153. package/dist/types/__VUE/invoice/invoice.vue.d.ts +59 -0
  154. package/dist/types/__VUE/invoice/types.d.ts +12 -0
  155. package/dist/types/__VUE/navbar/index.d.ts +5 -0
  156. package/dist/types/__VUE/navbar/navbar.vue.d.ts +125 -0
  157. package/dist/types/__VUE/progress/index.d.ts +6 -0
  158. package/dist/types/__VUE/progress/progress.vue.d.ts +91 -0
  159. package/dist/types/__VUE/rate/index.d.ts +5 -0
  160. package/dist/types/__VUE/rate/rate.vue.d.ts +208 -0
  161. package/dist/types/__VUE/swipe/index.d.ts +6 -0
  162. package/dist/types/__VUE/swipe/swipe.vue.d.ts +79 -0
  163. package/dist/types/__VUE/swipe/types.d.ts +1 -0
  164. package/dist/types/__VUE/swipegroup/index.d.ts +5 -0
  165. package/dist/types/__VUE/swipegroup/swipe-group.vue.d.ts +47 -0
  166. package/dist/types/__VUE/switch/index.d.ts +5 -0
  167. package/dist/types/__VUE/switch/switch.vue.d.ts +109 -0
  168. package/dist/types/__VUE/tabbar/index.d.ts +5 -0
  169. package/dist/types/__VUE/tabbar/tabbar.vue.d.ts +83 -0
  170. package/dist/types/__VUE/tabbaritem/index.d.ts +5 -0
  171. package/dist/types/__VUE/tabbaritem/tabbar-item.vue.d.ts +65 -0
  172. package/dist/types/__VUE/tabs/index.vue.d.ts +12 -12
  173. package/dist/types/__VUE/tag/index.d.ts +6 -0
  174. package/dist/types/__VUE/tag/tag.vue.d.ts +90 -0
  175. package/dist/types/__VUE/tag/types.d.ts +1 -1
  176. package/dist/types/__VUE/textarea/index.d.ts +5 -0
  177. package/dist/types/__VUE/textarea/textarea.vue.d.ts +104 -0
  178. package/dist/types/__VUE/trendarrow/index.d.ts +5 -0
  179. package/dist/types/__VUE/trendarrow/trend-arrow.vue.d.ts +96 -0
  180. package/dist/types/index.d.ts +36 -20
  181. package/dist/types/utils/throttle.d.ts +1 -1
  182. package/dist/types/utils/useRelation/useParent.d.ts +1 -0
  183. package/package.json +1 -1
  184. package/dist/packages/calendaritem/CalendarItem.js +0 -819
  185. package/dist/packages/calendaritem/index.css +0 -0
  186. package/dist/packages/calendaritem/index.mjs +0 -2
  187. package/dist/packages/calendaritem/index.scss +0 -0
  188. package/dist/packages/calendaritem/style/css.mjs +0 -2
  189. package/dist/packages/calendaritem/style/index.mjs +0 -2
  190. package/dist/packages/useParent-KIxqkovs.js +0 -16
  191. package/dist/types/__VUE/backtop/index.vue.d.ts +0 -98
  192. package/dist/types/__VUE/circleprogress/index.vue.d.ts +0 -95
  193. package/dist/types/__VUE/empty/index.vue.d.ts +0 -53
  194. package/dist/types/__VUE/indicator/index.vue.d.ts +0 -69
  195. package/dist/types/__VUE/inputnumber/index.vue.d.ts +0 -117
  196. package/dist/types/__VUE/invoice/index.vue.d.ts +0 -53
  197. package/dist/types/__VUE/navbar/index.vue.d.ts +0 -129
  198. package/dist/types/__VUE/progress/index.vue.d.ts +0 -120
  199. package/dist/types/__VUE/rate/index.vue.d.ts +0 -240
  200. package/dist/types/__VUE/swipe/index.vue.d.ts +0 -70
  201. package/dist/types/__VUE/swipegroup/index.vue.d.ts +0 -26
  202. package/dist/types/__VUE/switch/index.vue.d.ts +0 -118
  203. package/dist/types/__VUE/tabbar/index.vue.d.ts +0 -85
  204. package/dist/types/__VUE/tabbaritem/index.vue.d.ts +0 -60
  205. package/dist/types/__VUE/tag/index.vue.d.ts +0 -94
  206. package/dist/types/__VUE/textarea/index.vue.d.ts +0 -127
  207. package/dist/types/__VUE/trendarrow/index.vue.d.ts +0 -102
  208. /package/dist/packages/{_plugin-vue_export-helper-yVxbj29m.js → _plugin-vue_export-helper-1tPrXgE0.js} +0 -0
  209. /package/dist/packages/{component-TCzwHGVq.js → component-DQf3CENX.js} +0 -0
  210. /package/dist/packages/{index-cp6Ms_Qe.js → index-B1qsj2XR.js} +0 -0
  211. /package/dist/packages/{index-xDfQLRen.js → index-BvmDLUYP.js} +0 -0
  212. /package/dist/packages/{index-084nl_oE.js → index-I8tfW3Kf.js} +0 -0
  213. /package/dist/packages/{index-Ii9XdkPy.js → index-aiGQ-EiA.js} +0 -0
  214. /package/dist/packages/locale/lang/{baseLang-7uiEiO-2.js → baseLang-Bnfy6fTl.js} +0 -0
  215. /package/dist/packages/{pxCheck-OnXlN1NC.js → pxCheck-DN6FYV6q.js} +0 -0
  216. /package/dist/packages/{raf-MQjoO-Ag.js → raf-c01wDYCo.js} +0 -0
  217. /package/dist/packages/{renderIcon--EgZu5_5.js → renderIcon-BfOvhG7i.js} +0 -0
  218. /package/dist/packages/{types-RCVUm7Nb.js → types-1HzUV14W.js} +0 -0
  219. /package/dist/packages/{types-zeKkNDAq.js → types-48N1bMrT.js} +0 -0
  220. /package/dist/packages/{types-Ww4ErYJT.js → types-BKDaJvHp.js} +0 -0
  221. /package/dist/packages/{types-odSRziQJ.js → types-BODurTjN.js} +0 -0
  222. /package/dist/packages/{types-qOrhXtA_.js → types-BWhKcf4T.js} +0 -0
  223. /package/dist/packages/{types-4IflWeQO.js → types-BomhFk3T.js} +0 -0
  224. /package/dist/packages/{types-j71K23JP.js → types-CkPfROfI.js} +0 -0
  225. /package/dist/packages/{types-9wCQwtH3.js → types-DUkJysbi.js} +0 -0
  226. /package/dist/packages/{types-Cq2YypZn.js → types-MuhxzCWc.js} +0 -0
  227. /package/dist/packages/{with-install-p59gYYU_.js → with-install-Ch3FF0uS.js} +0 -0
@@ -0,0 +1,90 @@
1
+ import type { WithInstall } from '../../utils';
2
+ import { TagType } from './types';
3
+ export type TagProps = Partial<{
4
+ color: string;
5
+ textColor: string;
6
+ type: TagType;
7
+ plain: boolean;
8
+ round: boolean;
9
+ mark: boolean;
10
+ closeable: boolean;
11
+ }>;
12
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Partial<{
13
+ color: string;
14
+ textColor: string;
15
+ type: TagType;
16
+ plain: boolean;
17
+ round: boolean;
18
+ mark: boolean;
19
+ closeable: boolean;
20
+ }>>, {
21
+ color: string;
22
+ textColor: string;
23
+ type: string;
24
+ plain: boolean;
25
+ round: boolean;
26
+ mark: boolean;
27
+ closeable: boolean;
28
+ }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
29
+ click: (...args: any[]) => void;
30
+ close: (...args: any[]) => void;
31
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Partial<{
32
+ color: string;
33
+ textColor: string;
34
+ type: TagType;
35
+ plain: boolean;
36
+ round: boolean;
37
+ mark: boolean;
38
+ closeable: boolean;
39
+ }>>, {
40
+ color: string;
41
+ textColor: string;
42
+ type: string;
43
+ plain: boolean;
44
+ round: boolean;
45
+ mark: boolean;
46
+ closeable: boolean;
47
+ }>>> & {
48
+ onClick?: ((...args: any[]) => any) | undefined;
49
+ onClose?: ((...args: any[]) => any) | undefined;
50
+ }, {
51
+ round: boolean;
52
+ color: string;
53
+ plain: boolean;
54
+ type: TagType;
55
+ mark: boolean;
56
+ closeable: boolean;
57
+ textColor: string;
58
+ }, {}>, {
59
+ default?(_: {}): any;
60
+ }>;
61
+ declare const _nut_default: WithInstall<typeof _default>;
62
+ export default _nut_default;
63
+
64
+ declare module 'vue' {
65
+ interface GlobalComponents {
66
+ NutTag: typeof _default;
67
+ }
68
+ }
69
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
70
+ type __VLS_TypePropsToRuntimeProps<T> = {
71
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
72
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
73
+ } : {
74
+ type: import('vue').PropType<T[K]>;
75
+ required: true;
76
+ };
77
+ };
78
+ type __VLS_WithDefaults<P, D> = {
79
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
80
+ default: D[K];
81
+ }> : P[K];
82
+ };
83
+ type __VLS_Prettify<T> = {
84
+ [K in keyof T]: T[K];
85
+ } & {};
86
+ type __VLS_WithTemplateSlots<T, S> = T & {
87
+ new (): {
88
+ $slots: S;
89
+ };
90
+ };
@@ -1 +1 @@
1
- export type TagType = 'primary' | 'success' | 'danger' | 'warning';
1
+ export type TagType = 'primary' | 'success' | 'danger' | 'warning' | 'default';
@@ -0,0 +1,5 @@
1
+ import Textarea from './textarea.vue';
2
+ import type { ComponentPublicInstance } from 'vue';
3
+ export type { TextareaProps } from './textarea.vue';
4
+ export type TextareaInstance = ComponentPublicInstance & InstanceType<typeof Textarea>;
5
+ export { Textarea, Textarea as default };
@@ -0,0 +1,104 @@
1
+ import type { WithInstall } from '../../utils';
2
+ export interface InputTarget extends HTMLInputElement {
3
+ composing: boolean;
4
+ }
5
+ export type TextareaProps = Partial<{
6
+ modelValue: string;
7
+ textAlign: 'left' | 'center' | 'right';
8
+ limitShow: boolean;
9
+ maxLength: string | number;
10
+ rows: string | number;
11
+ placeholder: string;
12
+ readonly: boolean;
13
+ disabled: boolean;
14
+ autosize: boolean | Record<string, number>;
15
+ autofocus: boolean;
16
+ }>;
17
+ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Partial<{
18
+ modelValue: string;
19
+ textAlign: "center" | "left" | "right";
20
+ limitShow: boolean;
21
+ maxLength: string | number;
22
+ rows: string | number;
23
+ placeholder: string;
24
+ readonly: boolean;
25
+ disabled: boolean;
26
+ autosize: boolean | Record<string, number>;
27
+ autofocus: boolean;
28
+ }>>, {
29
+ modelValue: string;
30
+ limitShow: boolean;
31
+ maxLength: string;
32
+ rows: string;
33
+ placeholder: string;
34
+ readonly: boolean;
35
+ disabled: boolean;
36
+ autosize: boolean;
37
+ autofocus: boolean;
38
+ }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
39
+ blur: (...args: any[]) => void;
40
+ change: (...args: any[]) => void;
41
+ focus: (...args: any[]) => void;
42
+ "update:modelValue": (...args: any[]) => void;
43
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Partial<{
44
+ modelValue: string;
45
+ textAlign: "center" | "left" | "right";
46
+ limitShow: boolean;
47
+ maxLength: string | number;
48
+ rows: string | number;
49
+ placeholder: string;
50
+ readonly: boolean;
51
+ disabled: boolean;
52
+ autosize: boolean | Record<string, number>;
53
+ autofocus: boolean;
54
+ }>>, {
55
+ modelValue: string;
56
+ limitShow: boolean;
57
+ maxLength: string;
58
+ rows: string;
59
+ placeholder: string;
60
+ readonly: boolean;
61
+ disabled: boolean;
62
+ autosize: boolean;
63
+ autofocus: boolean;
64
+ }>>> & {
65
+ onFocus?: ((...args: any[]) => any) | undefined;
66
+ onBlur?: ((...args: any[]) => any) | undefined;
67
+ onChange?: ((...args: any[]) => any) | undefined;
68
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
69
+ }, {
70
+ disabled: boolean;
71
+ placeholder: string;
72
+ modelValue: string;
73
+ maxLength: string | number;
74
+ autofocus: boolean;
75
+ readonly: boolean;
76
+ limitShow: boolean;
77
+ rows: string | number;
78
+ autosize: boolean | Record<string, number>;
79
+ }, {}>;
80
+ declare const _nut_default: WithInstall<typeof _default>;
81
+ export default _nut_default;
82
+
83
+ declare module 'vue' {
84
+ interface GlobalComponents {
85
+ NutTextarea: typeof _default;
86
+ }
87
+ }
88
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
89
+ type __VLS_TypePropsToRuntimeProps<T> = {
90
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
91
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
92
+ } : {
93
+ type: import('vue').PropType<T[K]>;
94
+ required: true;
95
+ };
96
+ };
97
+ type __VLS_WithDefaults<P, D> = {
98
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
99
+ default: D[K];
100
+ }> : P[K];
101
+ };
102
+ type __VLS_Prettify<T> = {
103
+ [K in keyof T]: T[K];
104
+ } & {};
@@ -0,0 +1,5 @@
1
+ import TrendArrow from './trend-arrow.vue';
2
+ import type { ComponentPublicInstance } from 'vue';
3
+ export type { TrendArrowProps } from './trend-arrow.vue';
4
+ export type TrendArrowInstance = ComponentPublicInstance & InstanceType<typeof TrendArrow>;
5
+ export { TrendArrow, TrendArrow as default };
@@ -0,0 +1,96 @@
1
+ import type { WithInstall } from '../../utils';
2
+ export type TrendArrowProps = Partial<{
3
+ rate: number;
4
+ digits: number;
5
+ showSign: boolean;
6
+ showZero: boolean;
7
+ arrowLeft: boolean;
8
+ syncTextColor: boolean;
9
+ textColor: string;
10
+ riseColor: string;
11
+ dropColor: string;
12
+ }>;
13
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Partial<{
14
+ rate: number;
15
+ digits: number;
16
+ showSign: boolean;
17
+ showZero: boolean;
18
+ arrowLeft: boolean;
19
+ syncTextColor: boolean;
20
+ textColor: string;
21
+ riseColor: string;
22
+ dropColor: string;
23
+ }>>, {
24
+ rate: number;
25
+ digits: number;
26
+ showSign: boolean;
27
+ showZero: boolean;
28
+ arrowLeft: boolean;
29
+ syncTextColor: boolean;
30
+ textColor: string;
31
+ riseColor: string;
32
+ dropColor: string;
33
+ }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Partial<{
34
+ rate: number;
35
+ digits: number;
36
+ showSign: boolean;
37
+ showZero: boolean;
38
+ arrowLeft: boolean;
39
+ syncTextColor: boolean;
40
+ textColor: string;
41
+ riseColor: string;
42
+ dropColor: string;
43
+ }>>, {
44
+ rate: number;
45
+ digits: number;
46
+ showSign: boolean;
47
+ showZero: boolean;
48
+ arrowLeft: boolean;
49
+ syncTextColor: boolean;
50
+ textColor: string;
51
+ riseColor: string;
52
+ dropColor: string;
53
+ }>>>, {
54
+ rate: number;
55
+ textColor: string;
56
+ digits: number;
57
+ showSign: boolean;
58
+ showZero: boolean;
59
+ arrowLeft: boolean;
60
+ syncTextColor: boolean;
61
+ riseColor: string;
62
+ dropColor: string;
63
+ }, {}>, {
64
+ "up-icon"?(_: {}): any;
65
+ "down-icon"?(_: {}): any;
66
+ }>;
67
+ declare const _nut_default: WithInstall<typeof _default>;
68
+ export default _nut_default;
69
+
70
+ declare module 'vue' {
71
+ interface GlobalComponents {
72
+ NutTrendArrow: typeof _default;
73
+ }
74
+ }
75
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
76
+ type __VLS_TypePropsToRuntimeProps<T> = {
77
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
78
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
79
+ } : {
80
+ type: import('vue').PropType<T[K]>;
81
+ required: true;
82
+ };
83
+ };
84
+ type __VLS_WithDefaults<P, D> = {
85
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
86
+ default: D[K];
87
+ }> : P[K];
88
+ };
89
+ type __VLS_Prettify<T> = {
90
+ [K in keyof T]: T[K];
91
+ } & {};
92
+ type __VLS_WithTemplateSlots<T, S> = T & {
93
+ new (): {
94
+ $slots: S;
95
+ };
96
+ };
@@ -20,17 +20,21 @@ export * from './__VUE/divider/index';
20
20
  import Grid from './__VUE/grid/index.vue';
21
21
  import GridItem from './__VUE/griditem/index.vue';
22
22
  import Space from './__VUE/space/index.vue';
23
- import Navbar from './__VUE/navbar/index.vue';
23
+ import Navbar from './__VUE/navbar/index';
24
+ export * from './__VUE/navbar/index';
24
25
  import FixedNav from './__VUE/fixednav/index.vue';
25
26
  import Menu from './__VUE/menu/index.vue';
26
27
  import MenuItem from './__VUE/menuitem/index.vue';
27
- import Tabbar from './__VUE/tabbar/index.vue';
28
- import TabbarItem from './__VUE/tabbaritem/index.vue';
28
+ import Tabbar from './__VUE/tabbar/index';
29
+ export * from './__VUE/tabbar/index';
30
+ import TabbarItem from './__VUE/tabbaritem/index';
31
+ export * from './__VUE/tabbaritem/index';
29
32
  import Elevator from './__VUE/elevator/index.vue';
30
33
  import Pagination from './__VUE/pagination/index.vue';
31
34
  import Tabs from './__VUE/tabs/index.vue';
32
35
  import TabPane from './__VUE/tabpane/index.vue';
33
- import Indicator from './__VUE/indicator/index.vue';
36
+ import Indicator from './__VUE/indicator/index';
37
+ export * from './__VUE/indicator/index';
34
38
  import SideNavbar from './__VUE/sidenavbar/index.vue';
35
39
  import SideNavbarItem from './__VUE/sidenavbaritem/index.vue';
36
40
  import SubSideNavbar from './__VUE/subsidenavbar/index.vue';
@@ -43,25 +47,30 @@ export * from './__VUE/calendarcard/index';
43
47
  import Checkbox from './__VUE/checkbox/index.vue';
44
48
  import CheckboxGroup from './__VUE/checkboxgroup/index.vue';
45
49
  import DatePicker from './__VUE/datepicker/index.vue';
46
- import InputNumber from './__VUE/inputnumber/index.vue';
50
+ import InputNumber from './__VUE/inputnumber/index';
51
+ export * from './__VUE/inputnumber/index';
47
52
  import Input from './__VUE/input/index.vue';
48
53
  import Radio from './__VUE/radio/index.vue';
49
54
  import RadioGroup from './__VUE/radiogroup/index.vue';
50
- import Rate from './__VUE/rate/index.vue';
51
- import CalendarItem from './__VUE/calendaritem/index.vue';
55
+ import Rate from './__VUE/rate/index';
56
+ export * from './__VUE/rate/index';
52
57
  import Picker from './__VUE/picker/index.vue';
53
58
  import ShortPassword from './__VUE/shortpassword/index.vue';
54
- import Textarea from './__VUE/textarea/index.vue';
59
+ import Textarea from './__VUE/textarea/index';
60
+ export * from './__VUE/textarea/index';
55
61
  import Uploader from './__VUE/uploader/index.vue';
56
62
  import NumberKeyboard from './__VUE/numberkeyboard/index.vue';
57
63
  import Form from './__VUE/form/index';
58
64
  export * from './__VUE/form/index';
59
65
  import FormItem from './__VUE/formitem/index';
60
66
  export * from './__VUE/formitem/index';
61
- import Swipe from './__VUE/swipe/index.vue';
62
- import SwipeGroup from './__VUE/swipegroup/index.vue';
67
+ import Swipe from './__VUE/swipe/index';
68
+ export * from './__VUE/swipe/index';
69
+ import SwipeGroup from './__VUE/swipegroup/index';
70
+ export * from './__VUE/swipegroup/index';
63
71
  import ActionSheet from './__VUE/actionsheet/index.vue';
64
- import Backtop from './__VUE/backtop/index.vue';
72
+ import Backtop from './__VUE/backtop/index';
73
+ export * from './__VUE/backtop/index';
65
74
  import Drag from './__VUE/drag/index.vue';
66
75
  import Dialog from './__VUE/dialog/index.vue';
67
76
  import { showDialog } from './__VUE/dialog/index';
@@ -69,7 +78,8 @@ import InfiniteLoading from './__VUE/infiniteloading/index.vue';
69
78
  import PullRefresh from './__VUE/pullrefresh/index.vue';
70
79
  import Notify from './__VUE/notify/index.vue';
71
80
  import { showNotify } from './__VUE/notify/index';
72
- import Switch from './__VUE/switch/index.vue';
81
+ import Switch from './__VUE/switch/index';
82
+ export * from './__VUE/switch/index';
73
83
  import Toast from './__VUE/toast/index.vue';
74
84
  import { showToast } from './__VUE/toast/index';
75
85
  import Audio from './__VUE/audio/index.vue';
@@ -77,10 +87,13 @@ import AudioOperate from './__VUE/audiooperate/index.vue';
77
87
  import Avatar from './__VUE/avatar/index.vue';
78
88
  import AvatarGroup from './__VUE/avatargroup/index.vue';
79
89
  import List from './__VUE/list/index.vue';
80
- import Progress from './__VUE/progress/index.vue';
81
- import CircleProgress from './__VUE/circleprogress/index.vue';
90
+ import Progress from './__VUE/progress/index';
91
+ export * from './__VUE/progress/index';
92
+ import CircleProgress from './__VUE/circleprogress/index';
93
+ export * from './__VUE/circleprogress/index';
82
94
  import Noticebar from './__VUE/noticebar/index.vue';
83
- import Empty from './__VUE/empty/index.vue';
95
+ import Empty from './__VUE/empty/index';
96
+ export * from './__VUE/empty/index';
84
97
  import Video from './__VUE/video/index.vue';
85
98
  import Steps from './__VUE/steps/index.vue';
86
99
  import Step from './__VUE/step/index.vue';
@@ -93,7 +106,8 @@ import { showImagePreview } from './__VUE/imagepreview/index';
93
106
  import Countup from './__VUE/countup/index.vue';
94
107
  import Countdown from './__VUE/countdown/index.vue';
95
108
  import Badge from './__VUE/badge/index.vue';
96
- import Tag from './__VUE/tag/index.vue';
109
+ import Tag from './__VUE/tag/index';
110
+ export * from './__VUE/tag/index';
97
111
  import Popover from './__VUE/popover/index.vue';
98
112
  import Skeleton from './__VUE/skeleton/index.vue';
99
113
  import Collapse from './__VUE/collapse/index';
@@ -105,7 +119,8 @@ import Animate from './__VUE/animate/index';
105
119
  export * from './__VUE/animate/index';
106
120
  import Ellipsis from './__VUE/ellipsis/index.vue';
107
121
  import Watermark from './__VUE/watermark/index.vue';
108
- import TrendArrow from './__VUE/trendarrow/index.vue';
122
+ import TrendArrow from './__VUE/trendarrow/index';
123
+ export * from './__VUE/trendarrow/index';
109
124
  import Tour from './__VUE/tour/index.vue';
110
125
  import Address from './__VUE/address/index.vue';
111
126
  import Barrage from './__VUE/barrage/index.vue';
@@ -120,11 +135,12 @@ import AddressList from './__VUE/addresslist/index.vue';
120
135
  import Category from './__VUE/category/index.vue';
121
136
  import CategoryPane from './__VUE/categorypane/index.vue';
122
137
  import Comment from './__VUE/comment/index.vue';
123
- import Invoice from './__VUE/invoice/index.vue';
138
+ import Invoice from './__VUE/invoice/index';
139
+ export * from './__VUE/invoice/index';
124
140
  import AvatarCropper from './__VUE/avatarcropper/index.vue';
125
141
  declare function install(app: App): void;
126
- declare const version = "4.3.2";
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 };
142
+ declare const version = "4.3.4";
143
+ 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, 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 };
128
144
  declare const _default: {
129
145
  install: typeof install;
130
146
  version: string;
@@ -1,2 +1,2 @@
1
1
  export declare function debounce(fn: Function, delay: number): () => void;
2
- export declare function throttle(fn: Function, delay: number): () => void;
2
+ export declare function throttle(fn: Function, delay: number): (...args: any) => void;
@@ -1,3 +1,4 @@
1
1
  export declare const useParent: (key: symbol) => {
2
2
  parent: any;
3
+ index: import("vue").ComputedRef<any>;
3
4
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nutui/nutui",
3
- "version": "4.3.2",
3
+ "version": "4.3.4",
4
4
  "description": "京东风格的轻量级移动端 Vue2、Vue3 组件库(支持小程序开发)",
5
5
  "main": "dist/nutui.umd.js",
6
6
  "module": "dist/nutui.es.js",