@nutui/nutui 4.3.3 → 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 (175) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/dist/nutui.es.js +1 -1
  3. package/dist/nutui.js +4461 -4666
  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 +4 -4
  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 +2 -2
  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 +6 -6
  20. package/dist/packages/calendarcard/CalendarCard.js +3 -3
  21. package/dist/packages/card/Card.js +2 -2
  22. package/dist/packages/cascader/Cascader.js +4 -4
  23. package/dist/packages/category/Category.js +4 -4
  24. package/dist/packages/categorypane/CategoryPane.js +5 -5
  25. package/dist/packages/cell/Cell.js +4 -4
  26. package/dist/packages/cellgroup/CellGroup.js +2 -2
  27. package/dist/packages/checkbox/Checkbox.js +4 -4
  28. package/dist/packages/checkboxgroup/CheckboxGroup.js +2 -2
  29. package/dist/packages/circleprogress/CircleProgress.js +2 -2
  30. package/dist/packages/col/Col.js +2 -2
  31. package/dist/packages/collapse/Collapse.js +2 -2
  32. package/dist/packages/collapseitem/CollapseItem.js +3 -3
  33. package/dist/packages/comment/Comment.js +4 -4
  34. package/dist/packages/{common-4inKawxR.js → common-Chr7cC9o.js} +2 -2
  35. package/dist/packages/{common-FZL3qC99.js → common-DRG0ue26.js} +1 -1
  36. package/dist/packages/configprovider/ConfigProvider.js +1 -1
  37. package/dist/packages/countdown/Countdown.js +4 -4
  38. package/dist/packages/countup/Countup.js +9 -9
  39. package/dist/packages/{date-djiVNSnJ.js → date-DHXcwF1m.js} +2 -2
  40. package/dist/packages/datepicker/DatePicker.js +3 -3
  41. package/dist/packages/dialog/Dialog.js +8 -8
  42. package/dist/packages/divider/Divider.js +1 -1
  43. package/dist/packages/drag/Drag.js +3 -3
  44. package/dist/packages/ecard/Ecard.js +3 -3
  45. package/dist/packages/elevator/Elevator.js +2 -2
  46. package/dist/packages/ellipsis/Ellipsis.js +4 -4
  47. package/dist/packages/empty/Empty.js +67 -52
  48. package/dist/packages/fixednav/FixedNav.js +3 -3
  49. package/dist/packages/form/Form.js +4 -4
  50. package/dist/packages/formitem/FormItem.js +4 -4
  51. package/dist/packages/grid/Grid.js +2 -2
  52. package/dist/packages/griditem/GridItem.js +5 -5
  53. package/dist/packages/image/Image.js +3 -3
  54. package/dist/packages/imagepreview/ImagePreview.js +8 -8
  55. package/dist/packages/{index-s3RgMhc7.js → index-CFigyH92.js} +1 -1
  56. package/dist/packages/{index--uVlasFu.js → index-Do4_KY74.js} +2 -2
  57. package/dist/packages/{index-BqB5dTeo.js → index-uHBD4dfS.js} +2 -2
  58. package/dist/packages/{index.vue_vue_type_script_lang-n0HbjvfF.js → index.vue_vue_type_script_lang-CTQUvlgN.js} +4 -4
  59. package/dist/packages/{index.vue_vue_type_script_lang-54PRh3YM.js → index.vue_vue_type_script_lang-CaSiRl9x.js} +2 -2
  60. package/dist/packages/indicator/Indicator.js +56 -50
  61. package/dist/packages/infiniteloading/InfiniteLoading.js +6 -6
  62. package/dist/packages/input/Input.js +3 -3
  63. package/dist/packages/inputnumber/InputNumber.js +3 -3
  64. package/dist/packages/invoice/Invoice.js +3 -3
  65. package/dist/packages/layout/Layout.js +2 -2
  66. package/dist/packages/list/List.js +3 -3
  67. package/dist/packages/locale/lang/en-US.js +1 -1
  68. package/dist/packages/locale/lang/id-ID.js +1 -1
  69. package/dist/packages/locale/lang/index.js +2 -2
  70. package/dist/packages/locale/lang/zh-CN.js +1 -1
  71. package/dist/packages/locale/lang/zh-TW.js +1 -1
  72. package/dist/packages/menu/Menu.js +5 -5
  73. package/dist/packages/menuitem/MenuItem.js +5 -5
  74. package/dist/packages/{mountComponent-uInXoTMp.js → mountComponent-DBQ88Fjz.js} +1 -1
  75. package/dist/packages/navbar/Navbar.js +1 -1
  76. package/dist/packages/noticebar/Noticebar.js +3 -3
  77. package/dist/packages/notify/Notify.js +3 -3
  78. package/dist/packages/numberkeyboard/NumberKeyboard.js +4 -4
  79. package/dist/packages/overlay/Overlay.js +3 -3
  80. package/dist/packages/pagination/Pagination.js +3 -3
  81. package/dist/packages/picker/Picker.js +7 -10
  82. package/dist/packages/popover/Popover.js +5 -5
  83. package/dist/packages/popup/Popup.js +2 -2
  84. package/dist/packages/price/Price.js +1 -1
  85. package/dist/packages/progress/Progress.js +1 -1
  86. package/dist/packages/pullrefresh/PullRefresh.js +7 -7
  87. package/dist/packages/radio/Radio.js +1 -1
  88. package/dist/packages/radiogroup/RadioGroup.js +1 -1
  89. package/dist/packages/range/Range.js +6 -6
  90. package/dist/packages/rate/Rate.js +5 -5
  91. package/dist/packages/row/Row.js +2 -2
  92. package/dist/packages/searchbar/Searchbar.js +5 -5
  93. package/dist/packages/shortpassword/ShortPassword.js +5 -5
  94. package/dist/packages/sidenavbar/SideNavbar.js +2 -2
  95. package/dist/packages/sidenavbaritem/SideNavbarItem.js +2 -2
  96. package/dist/packages/signature/Signature.js +3 -3
  97. package/dist/packages/skeleton/Skeleton.js +13 -13
  98. package/dist/packages/sku/Sku.js +4 -4
  99. package/dist/packages/space/Space.js +1 -1
  100. package/dist/packages/step/Step.js +3 -3
  101. package/dist/packages/steps/Steps.js +2 -2
  102. package/dist/packages/sticky/Sticky.js +4 -4
  103. package/dist/packages/subsidenavbar/SubSideNavbar.js +2 -2
  104. package/dist/packages/swipe/Swipe.js +3 -3
  105. package/dist/packages/swipegroup/SwipeGroup.js +2 -2
  106. package/dist/packages/swiper/Swiper.js +7 -7
  107. package/dist/packages/swiperitem/SwiperItem.js +3 -3
  108. package/dist/packages/switch/Switch.js +68 -86
  109. package/dist/packages/tabbar/Tabbar.js +78 -78
  110. package/dist/packages/tabbaritem/TabbarItem.js +89 -113
  111. package/dist/packages/table/Table.js +3 -3
  112. package/dist/packages/tabpane/TabPane.js +2 -2
  113. package/dist/packages/tabs/Tabs.js +9 -9
  114. package/dist/packages/tag/Tag.js +1 -1
  115. package/dist/packages/textarea/Textarea.js +113 -127
  116. package/dist/packages/timedetail/TimeDetail.js +2 -2
  117. package/dist/packages/timepannel/TimePannel.js +2 -2
  118. package/dist/packages/timeselect/TimeSelect.js +4 -4
  119. package/dist/packages/toast/Toast.js +6 -6
  120. package/dist/packages/tour/Tour.js +3 -3
  121. package/dist/packages/trendarrow/TrendArrow.js +51 -83
  122. package/dist/packages/uploader/Uploader.js +5 -5
  123. package/dist/packages/{useChildren-GU_NVfD8.js → useChildren-BZ4-J79J.js} +2 -2
  124. package/dist/packages/useParent-D6DiuxZZ.js +21 -0
  125. package/dist/packages/{util-4Jkyw4BJ.js → util-DnfK0Qan.js} +2 -2
  126. package/dist/packages/video/Video.js +16 -16
  127. package/dist/packages/watermark/Watermark.js +2 -2
  128. package/dist/smartips/web-types.json +1 -1
  129. package/dist/types/__VUE/empty/empty.vue.d.ts +62 -0
  130. package/dist/types/__VUE/empty/index.d.ts +6 -0
  131. package/dist/types/__VUE/indicator/index.d.ts +6 -0
  132. package/dist/types/__VUE/indicator/indicator.vue.d.ts +65 -0
  133. package/dist/types/__VUE/switch/index.d.ts +5 -0
  134. package/dist/types/__VUE/switch/switch.vue.d.ts +109 -0
  135. package/dist/types/__VUE/tabbar/index.d.ts +5 -0
  136. package/dist/types/__VUE/tabbar/tabbar.vue.d.ts +83 -0
  137. package/dist/types/__VUE/tabbaritem/index.d.ts +5 -0
  138. package/dist/types/__VUE/tabbaritem/tabbar-item.vue.d.ts +65 -0
  139. package/dist/types/__VUE/tabs/index.vue.d.ts +12 -12
  140. package/dist/types/__VUE/textarea/index.d.ts +5 -0
  141. package/dist/types/__VUE/textarea/textarea.vue.d.ts +104 -0
  142. package/dist/types/__VUE/trendarrow/index.d.ts +5 -0
  143. package/dist/types/__VUE/trendarrow/trend-arrow.vue.d.ts +96 -0
  144. package/dist/types/index.d.ts +15 -8
  145. package/dist/types/utils/throttle.d.ts +1 -1
  146. package/dist/types/utils/useRelation/useParent.d.ts +1 -0
  147. package/package.json +1 -1
  148. package/dist/packages/useParent-KIxqkovs.js +0 -16
  149. package/dist/types/__VUE/empty/index.vue.d.ts +0 -53
  150. package/dist/types/__VUE/indicator/index.vue.d.ts +0 -69
  151. package/dist/types/__VUE/switch/index.vue.d.ts +0 -118
  152. package/dist/types/__VUE/tabbar/index.vue.d.ts +0 -85
  153. package/dist/types/__VUE/tabbaritem/index.vue.d.ts +0 -60
  154. package/dist/types/__VUE/textarea/index.vue.d.ts +0 -127
  155. package/dist/types/__VUE/trendarrow/index.vue.d.ts +0 -102
  156. /package/dist/packages/{_plugin-vue_export-helper-yVxbj29m.js → _plugin-vue_export-helper-1tPrXgE0.js} +0 -0
  157. /package/dist/packages/{component-TCzwHGVq.js → component-DQf3CENX.js} +0 -0
  158. /package/dist/packages/{index-cp6Ms_Qe.js → index-B1qsj2XR.js} +0 -0
  159. /package/dist/packages/{index-xDfQLRen.js → index-BvmDLUYP.js} +0 -0
  160. /package/dist/packages/{index-084nl_oE.js → index-I8tfW3Kf.js} +0 -0
  161. /package/dist/packages/{index-Ii9XdkPy.js → index-aiGQ-EiA.js} +0 -0
  162. /package/dist/packages/locale/lang/{baseLang-7uiEiO-2.js → baseLang-Bnfy6fTl.js} +0 -0
  163. /package/dist/packages/{pxCheck-OnXlN1NC.js → pxCheck-DN6FYV6q.js} +0 -0
  164. /package/dist/packages/{raf-MQjoO-Ag.js → raf-c01wDYCo.js} +0 -0
  165. /package/dist/packages/{renderIcon--EgZu5_5.js → renderIcon-BfOvhG7i.js} +0 -0
  166. /package/dist/packages/{types-RCVUm7Nb.js → types-1HzUV14W.js} +0 -0
  167. /package/dist/packages/{types-zeKkNDAq.js → types-48N1bMrT.js} +0 -0
  168. /package/dist/packages/{types-Ww4ErYJT.js → types-BKDaJvHp.js} +0 -0
  169. /package/dist/packages/{types-odSRziQJ.js → types-BODurTjN.js} +0 -0
  170. /package/dist/packages/{types-qOrhXtA_.js → types-BWhKcf4T.js} +0 -0
  171. /package/dist/packages/{types-4IflWeQO.js → types-BomhFk3T.js} +0 -0
  172. /package/dist/packages/{types-j71K23JP.js → types-CkPfROfI.js} +0 -0
  173. /package/dist/packages/{types-9wCQwtH3.js → types-DUkJysbi.js} +0 -0
  174. /package/dist/packages/{types-Cq2YypZn.js → types-MuhxzCWc.js} +0 -0
  175. /package/dist/packages/{with-install-p59gYYU_.js → with-install-Ch3FF0uS.js} +0 -0
@@ -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
+ };
@@ -25,13 +25,16 @@ export * from './__VUE/navbar/index';
25
25
  import FixedNav from './__VUE/fixednav/index.vue';
26
26
  import Menu from './__VUE/menu/index.vue';
27
27
  import MenuItem from './__VUE/menuitem/index.vue';
28
- import Tabbar from './__VUE/tabbar/index.vue';
29
- 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';
30
32
  import Elevator from './__VUE/elevator/index.vue';
31
33
  import Pagination from './__VUE/pagination/index.vue';
32
34
  import Tabs from './__VUE/tabs/index.vue';
33
35
  import TabPane from './__VUE/tabpane/index.vue';
34
- import Indicator from './__VUE/indicator/index.vue';
36
+ import Indicator from './__VUE/indicator/index';
37
+ export * from './__VUE/indicator/index';
35
38
  import SideNavbar from './__VUE/sidenavbar/index.vue';
36
39
  import SideNavbarItem from './__VUE/sidenavbaritem/index.vue';
37
40
  import SubSideNavbar from './__VUE/subsidenavbar/index.vue';
@@ -53,7 +56,8 @@ import Rate from './__VUE/rate/index';
53
56
  export * from './__VUE/rate/index';
54
57
  import Picker from './__VUE/picker/index.vue';
55
58
  import ShortPassword from './__VUE/shortpassword/index.vue';
56
- import Textarea from './__VUE/textarea/index.vue';
59
+ import Textarea from './__VUE/textarea/index';
60
+ export * from './__VUE/textarea/index';
57
61
  import Uploader from './__VUE/uploader/index.vue';
58
62
  import NumberKeyboard from './__VUE/numberkeyboard/index.vue';
59
63
  import Form from './__VUE/form/index';
@@ -74,7 +78,8 @@ import InfiniteLoading from './__VUE/infiniteloading/index.vue';
74
78
  import PullRefresh from './__VUE/pullrefresh/index.vue';
75
79
  import Notify from './__VUE/notify/index.vue';
76
80
  import { showNotify } from './__VUE/notify/index';
77
- import Switch from './__VUE/switch/index.vue';
81
+ import Switch from './__VUE/switch/index';
82
+ export * from './__VUE/switch/index';
78
83
  import Toast from './__VUE/toast/index.vue';
79
84
  import { showToast } from './__VUE/toast/index';
80
85
  import Audio from './__VUE/audio/index.vue';
@@ -87,7 +92,8 @@ export * from './__VUE/progress/index';
87
92
  import CircleProgress from './__VUE/circleprogress/index';
88
93
  export * from './__VUE/circleprogress/index';
89
94
  import Noticebar from './__VUE/noticebar/index.vue';
90
- import Empty from './__VUE/empty/index.vue';
95
+ import Empty from './__VUE/empty/index';
96
+ export * from './__VUE/empty/index';
91
97
  import Video from './__VUE/video/index.vue';
92
98
  import Steps from './__VUE/steps/index.vue';
93
99
  import Step from './__VUE/step/index.vue';
@@ -113,7 +119,8 @@ import Animate from './__VUE/animate/index';
113
119
  export * from './__VUE/animate/index';
114
120
  import Ellipsis from './__VUE/ellipsis/index.vue';
115
121
  import Watermark from './__VUE/watermark/index.vue';
116
- import TrendArrow from './__VUE/trendarrow/index.vue';
122
+ import TrendArrow from './__VUE/trendarrow/index';
123
+ export * from './__VUE/trendarrow/index';
117
124
  import Tour from './__VUE/tour/index.vue';
118
125
  import Address from './__VUE/address/index.vue';
119
126
  import Barrage from './__VUE/barrage/index.vue';
@@ -132,7 +139,7 @@ import Invoice from './__VUE/invoice/index';
132
139
  export * from './__VUE/invoice/index';
133
140
  import AvatarCropper from './__VUE/avatarcropper/index.vue';
134
141
  declare function install(app: App): void;
135
- declare const version = "4.3.3";
142
+ declare const version = "4.3.4";
136
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 };
137
144
  declare const _default: {
138
145
  install: typeof install;
@@ -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.3",
3
+ "version": "4.3.4",
4
4
  "description": "京东风格的轻量级移动端 Vue2、Vue3 组件库(支持小程序开发)",
5
5
  "main": "dist/nutui.umd.js",
6
6
  "module": "dist/nutui.es.js",
@@ -1,16 +0,0 @@
1
- import { inject, getCurrentInstance, onUnmounted } from "vue";
2
- const useParent = (key) => {
3
- const parent = inject(key, null);
4
- if (parent) {
5
- const instance = getCurrentInstance();
6
- const { link, unlink } = parent;
7
- link(instance);
8
- onUnmounted(() => {
9
- unlink(instance);
10
- });
11
- }
12
- return { parent };
13
- };
14
- export {
15
- useParent as u
16
- };
@@ -1,53 +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
- image: {
8
- type: PropType<string>;
9
- default: string;
10
- };
11
- imageSize: {
12
- type: (NumberConstructor | StringConstructor)[];
13
- default: string;
14
- };
15
- description: {
16
- type: StringConstructor;
17
- default: string;
18
- };
19
- }, {
20
- src: import("vue").ComputedRef<any>;
21
- style: import("vue").ComputedRef<{
22
- width: string | undefined;
23
- height: string | undefined;
24
- } | {
25
- width?: undefined;
26
- height?: undefined;
27
- }>;
28
- translate: (keyPath: string, ...args: unknown[]) => any;
29
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
30
- image: {
31
- type: PropType<string>;
32
- default: string;
33
- };
34
- imageSize: {
35
- type: (NumberConstructor | StringConstructor)[];
36
- default: string;
37
- };
38
- description: {
39
- type: StringConstructor;
40
- default: string;
41
- };
42
- }>>, {
43
- image: string;
44
- description: string;
45
- imageSize: string | number;
46
- }, {}>>;
47
- export default _default;
48
-
49
- declare module 'vue' {
50
- interface GlobalComponents {
51
- NutEmpty: typeof _default;
52
- }
53
- }
@@ -1,69 +0,0 @@
1
- import { PropType } from 'vue';
2
- import { IndicatorAlign } from './types';
3
-
4
- declare type Install<T> = T & {
5
- install(app: import('vue').App): void;
6
- };
7
- declare const _default: Install< import("vue").DefineComponent<{
8
- size: {
9
- type: NumberConstructor;
10
- default: number;
11
- };
12
- current: {
13
- type: NumberConstructor;
14
- default: number;
15
- };
16
- block: {
17
- type: BooleanConstructor;
18
- default: boolean;
19
- };
20
- align: {
21
- type: PropType<IndicatorAlign>;
22
- default: string;
23
- };
24
- fillZero: {
25
- type: BooleanConstructor;
26
- default: boolean;
27
- };
28
- }, {
29
- classes: import("vue").ComputedRef<{
30
- [x: string]: boolean | IndicatorAlign;
31
- "nut-indicator": boolean;
32
- "nut-indicator--block": boolean;
33
- }>;
34
- padZero: (num: string | number, length?: number) => string;
35
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
36
- size: {
37
- type: NumberConstructor;
38
- default: number;
39
- };
40
- current: {
41
- type: NumberConstructor;
42
- default: number;
43
- };
44
- block: {
45
- type: BooleanConstructor;
46
- default: boolean;
47
- };
48
- align: {
49
- type: PropType<IndicatorAlign>;
50
- default: string;
51
- };
52
- fillZero: {
53
- type: BooleanConstructor;
54
- default: boolean;
55
- };
56
- }>>, {
57
- size: number;
58
- block: boolean;
59
- align: IndicatorAlign;
60
- current: number;
61
- fillZero: boolean;
62
- }, {}>>;
63
- export default _default;
64
-
65
- declare module 'vue' {
66
- interface GlobalComponents {
67
- NutIndicator: typeof _default;
68
- }
69
- }
@@ -1,118 +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
- modelValue: {
7
- type: (NumberConstructor | BooleanConstructor | StringConstructor)[];
8
- default: boolean;
9
- };
10
- disabled: {
11
- type: BooleanConstructor;
12
- default: boolean;
13
- };
14
- disable: {
15
- type: BooleanConstructor;
16
- default: boolean;
17
- };
18
- activeColor: {
19
- type: StringConstructor;
20
- default: string;
21
- };
22
- inactiveColor: {
23
- type: StringConstructor;
24
- default: string;
25
- };
26
- activeText: {
27
- type: StringConstructor;
28
- default: string;
29
- };
30
- inactiveText: {
31
- type: StringConstructor;
32
- default: string;
33
- };
34
- activeValue: {
35
- type: (NumberConstructor | BooleanConstructor | StringConstructor)[];
36
- default: boolean;
37
- };
38
- inactiveValue: {
39
- type: (NumberConstructor | BooleanConstructor | StringConstructor)[];
40
- default: boolean;
41
- };
42
- loading: {
43
- type: BooleanConstructor;
44
- default: boolean;
45
- };
46
- }, {
47
- classes: import("vue").ComputedRef<{
48
- [x: string]: boolean;
49
- }>;
50
- style: import("vue").ComputedRef<{
51
- backgroundColor: string;
52
- }>;
53
- isActive: import("vue").ComputedRef<boolean>;
54
- onClick: (event: Event) => void;
55
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:modelValue" | "update:loading")[], "change" | "update:modelValue" | "update:loading", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
56
- modelValue: {
57
- type: (NumberConstructor | BooleanConstructor | StringConstructor)[];
58
- default: boolean;
59
- };
60
- disabled: {
61
- type: BooleanConstructor;
62
- default: boolean;
63
- };
64
- disable: {
65
- type: BooleanConstructor;
66
- default: boolean;
67
- };
68
- activeColor: {
69
- type: StringConstructor;
70
- default: string;
71
- };
72
- inactiveColor: {
73
- type: StringConstructor;
74
- default: string;
75
- };
76
- activeText: {
77
- type: StringConstructor;
78
- default: string;
79
- };
80
- inactiveText: {
81
- type: StringConstructor;
82
- default: string;
83
- };
84
- activeValue: {
85
- type: (NumberConstructor | BooleanConstructor | StringConstructor)[];
86
- default: boolean;
87
- };
88
- inactiveValue: {
89
- type: (NumberConstructor | BooleanConstructor | StringConstructor)[];
90
- default: boolean;
91
- };
92
- loading: {
93
- type: BooleanConstructor;
94
- default: boolean;
95
- };
96
- }>> & {
97
- onChange?: ((...args: any[]) => any) | undefined;
98
- "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
99
- "onUpdate:loading"?: ((...args: any[]) => any) | undefined;
100
- }, {
101
- loading: boolean;
102
- disabled: boolean;
103
- activeColor: string;
104
- activeText: string;
105
- modelValue: string | number | boolean;
106
- inactiveColor: string;
107
- disable: boolean;
108
- inactiveText: string;
109
- activeValue: string | number | boolean;
110
- inactiveValue: string | number | boolean;
111
- }, {}>>;
112
- export default _default;
113
-
114
- declare module 'vue' {
115
- interface GlobalComponents {
116
- NutSwitch: typeof _default;
117
- }
118
- }
@@ -1,85 +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
- modelValue: {
7
- type: (NumberConstructor | StringConstructor)[];
8
- default: number;
9
- };
10
- bottom: {
11
- type: BooleanConstructor;
12
- default: boolean;
13
- };
14
- type: {
15
- type: StringConstructor;
16
- default: string;
17
- };
18
- unactiveColor: {
19
- type: StringConstructor;
20
- default: string;
21
- };
22
- activeColor: {
23
- type: StringConstructor;
24
- default: string;
25
- };
26
- safeAreaInsetBottom: {
27
- type: BooleanConstructor;
28
- default: boolean;
29
- };
30
- placeholder: {
31
- type: BooleanConstructor;
32
- default: boolean;
33
- };
34
- }, {
35
- changeIndex: (index: number, active: number | string) => void;
36
- nutTabbar: import("vue").Ref<HTMLElement | null>;
37
- height: import("vue").Ref<any>;
38
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "tabSwitch")[], "update:modelValue" | "tabSwitch", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
39
- modelValue: {
40
- type: (NumberConstructor | StringConstructor)[];
41
- default: number;
42
- };
43
- bottom: {
44
- type: BooleanConstructor;
45
- default: boolean;
46
- };
47
- type: {
48
- type: StringConstructor;
49
- default: string;
50
- };
51
- unactiveColor: {
52
- type: StringConstructor;
53
- default: string;
54
- };
55
- activeColor: {
56
- type: StringConstructor;
57
- default: string;
58
- };
59
- safeAreaInsetBottom: {
60
- type: BooleanConstructor;
61
- default: boolean;
62
- };
63
- placeholder: {
64
- type: BooleanConstructor;
65
- default: boolean;
66
- };
67
- }>> & {
68
- "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
69
- onTabSwitch?: ((...args: any[]) => any) | undefined;
70
- }, {
71
- type: string;
72
- bottom: boolean;
73
- safeAreaInsetBottom: boolean;
74
- placeholder: boolean;
75
- activeColor: string;
76
- modelValue: string | number;
77
- unactiveColor: string;
78
- }, {}>>;
79
- export default _default;
80
-
81
- declare module 'vue' {
82
- interface GlobalComponents {
83
- NutTabbar: typeof _default;
84
- }
85
- }
@@ -1,60 +0,0 @@
1
- import { Component, 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
- tabTitle: {
8
- type: StringConstructor;
9
- default: string;
10
- };
11
- name: {
12
- type: StringConstructor;
13
- };
14
- icon: {
15
- type: PropType<Component>;
16
- };
17
- href: {
18
- type: StringConstructor;
19
- default: string;
20
- };
21
- to: (ObjectConstructor | StringConstructor)[];
22
- }, {
23
- state: {
24
- unactiveColor: any;
25
- activeColor: any;
26
- index: number;
27
- };
28
- active: import("vue").ComputedRef<boolean>;
29
- renderIcon: (icon: Component, props?: any) => "" | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
30
- [key: string]: any;
31
- }>;
32
- isHaveSlot: (slot: string) => import("vue").Slot<any> | undefined;
33
- change: () => void;
34
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
35
- tabTitle: {
36
- type: StringConstructor;
37
- default: string;
38
- };
39
- name: {
40
- type: StringConstructor;
41
- };
42
- icon: {
43
- type: PropType<Component>;
44
- };
45
- href: {
46
- type: StringConstructor;
47
- default: string;
48
- };
49
- to: (ObjectConstructor | StringConstructor)[];
50
- }>>, {
51
- tabTitle: string;
52
- href: string;
53
- }, {}>>;
54
- export default _default;
55
-
56
- declare module 'vue' {
57
- interface GlobalComponents {
58
- NutTabbarItem: typeof _default;
59
- }
60
- }