@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
@@ -18,19 +18,19 @@ var __spreadValues = (a, b) => {
18
18
  };
19
19
  var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20
20
  import { reactive, ref, computed, watch, nextTick, onMounted, toRefs, openBlock, createElementBlock, createElementVNode, createCommentVNode, withDirectives, vShow, normalizeClass, toDisplayString, normalizeStyle, withModifiers } from "vue";
21
- import { c as createComponent } from "../component-TCzwHGVq.js";
22
- import { u as useLocale } from "../index-s3RgMhc7.js";
23
- import { _ as _export_sfc } from "../_plugin-vue_export-helper-yVxbj29m.js";
21
+ import { c as createComponent } from "../component-DQf3CENX.js";
22
+ import { u as useLocale } from "../index-CFigyH92.js";
23
+ import { _ as _export_sfc } from "../_plugin-vue_export-helper-1tPrXgE0.js";
24
24
  function throttle(fn, delay) {
25
25
  let timer = null;
26
26
  let startTime = Date.now();
27
- return function() {
28
- let now = Date.now();
29
- let remaining = delay - (now - startTime);
27
+ return function(...args) {
28
+ const now = Date.now();
29
+ const remaining = delay - (now - startTime);
30
30
  if (timer)
31
31
  clearTimeout(timer);
32
32
  if (remaining <= 0) {
33
- fn.apply(null, arguments);
33
+ fn(...args);
34
34
  startTime = Date.now();
35
35
  } else {
36
36
  timer = setTimeout(fn, remaining);
@@ -49,17 +49,17 @@ const _sfc_main = create({
49
49
  type: Object,
50
50
  default: {
51
51
  autoplay: false,
52
- //是否自动播放
52
+ // 是否自动播放
53
53
  volume: 0.5,
54
54
  poster: "",
55
55
  loop: false,
56
56
  controls: true,
57
57
  muted: false,
58
- //是否静音
58
+ // 是否静音
59
59
  disabled: false,
60
- //禁止操作
60
+ // 禁止操作
61
61
  playsinline: false,
62
- //行内展示
62
+ // 行内展示
63
63
  touchPlay: false,
64
64
  preload: ""
65
65
  },
@@ -77,9 +77,9 @@ const _sfc_main = create({
77
77
  const state = reactive({
78
78
  videoElm: null,
79
79
  initial: true,
80
- //控制封面的显示
80
+ // 控制封面的显示
81
81
  showToolbox: false,
82
- //控制控制器和标题的显示
82
+ // 控制控制器和标题的显示
83
83
  // 视频容器元素
84
84
  player: {
85
85
  $player: null,
@@ -109,12 +109,12 @@ const _sfc_main = create({
109
109
  state: {
110
110
  controlShow: true,
111
111
  vol: 0.5,
112
- //音量
112
+ // 音量
113
113
  currentTime: 0,
114
- //当前时间
114
+ // 当前时间
115
115
  fullScreen: false,
116
116
  playing: false,
117
- //是否正在播放
117
+ // 是否正在播放
118
118
  isLoading: false,
119
119
  isEnd: false,
120
120
  isError: false,
@@ -18,8 +18,8 @@ var __spreadValues = (a, b) => {
18
18
  };
19
19
  var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20
20
  import { reactive, watch, computed, toRefs, openBlock, createElementBlock, normalizeClass, normalizeStyle } from "vue";
21
- import { c as createComponent } from "../component-TCzwHGVq.js";
22
- import { _ as _export_sfc } from "../_plugin-vue_export-helper-yVxbj29m.js";
21
+ import { c as createComponent } from "../component-DQf3CENX.js";
22
+ import { _ as _export_sfc } from "../_plugin-vue_export-helper-1tPrXgE0.js";
23
23
  const { componentName, create } = createComponent("watermark");
24
24
  const _sfc_main = create({
25
25
  props: {
@@ -2,7 +2,7 @@
2
2
  "$schema": "https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json",
3
3
  "framework": "vue",
4
4
  "name": "NutUI",
5
- "version": "4.3.3",
5
+ "version": "4.3.4",
6
6
  "contributions": {
7
7
  "html": {
8
8
  "tags": [
@@ -0,0 +1,62 @@
1
+ import type { WithInstall } from '../../utils';
2
+ import { EmptyImage } from './types';
3
+ export type EmptyProps = Partial<{
4
+ image: EmptyImage;
5
+ imageSize: number | string;
6
+ description: string;
7
+ }>;
8
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Partial<{
9
+ image: string;
10
+ imageSize: string | number;
11
+ description: string;
12
+ }>>, {
13
+ image: string;
14
+ imageSize: string;
15
+ description: string;
16
+ }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Partial<{
17
+ image: string;
18
+ imageSize: string | number;
19
+ description: string;
20
+ }>>, {
21
+ image: string;
22
+ imageSize: string;
23
+ description: string;
24
+ }>>>, {
25
+ image: string;
26
+ description: string;
27
+ imageSize: string | number;
28
+ }, {}>, {
29
+ image?(_: {}): any;
30
+ description?(_: {}): any;
31
+ default?(_: {}): any;
32
+ }>;
33
+ declare const _nut_default: WithInstall<typeof _default>;
34
+ export default _nut_default;
35
+
36
+ declare module 'vue' {
37
+ interface GlobalComponents {
38
+ NutEmpty: typeof _default;
39
+ }
40
+ }
41
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
42
+ type __VLS_TypePropsToRuntimeProps<T> = {
43
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
44
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
45
+ } : {
46
+ type: import('vue').PropType<T[K]>;
47
+ required: true;
48
+ };
49
+ };
50
+ type __VLS_WithDefaults<P, D> = {
51
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
52
+ default: D[K];
53
+ }> : P[K];
54
+ };
55
+ type __VLS_Prettify<T> = {
56
+ [K in keyof T]: T[K];
57
+ } & {};
58
+ type __VLS_WithTemplateSlots<T, S> = T & {
59
+ new (): {
60
+ $slots: S;
61
+ };
62
+ };
@@ -0,0 +1,6 @@
1
+ import Empty from './empty.vue';
2
+ import type { ComponentPublicInstance } from 'vue';
3
+ export type { EmptyProps } from './empty.vue';
4
+ export type { EmptyImage } from './types';
5
+ export type EmptyInstance = ComponentPublicInstance & InstanceType<typeof Empty>;
6
+ export { Empty, Empty as default };
@@ -0,0 +1,6 @@
1
+ import Indicator from './indicator.vue';
2
+ import type { ComponentPublicInstance } from 'vue';
3
+ export type { IndicatorProps } from './indicator.vue';
4
+ export type { IndicatorAlign } from './types';
5
+ export type IndicatorInstance = ComponentPublicInstance & InstanceType<typeof Indicator>;
6
+ export { Indicator, Indicator as default };
@@ -0,0 +1,65 @@
1
+ import type { WithInstall } from '../../utils';
2
+ import type { IndicatorAlign } from './types';
3
+ export type IndicatorProps = Partial<{
4
+ size: number;
5
+ current: number;
6
+ block: boolean;
7
+ align: IndicatorAlign;
8
+ fillZero: boolean;
9
+ }>;
10
+ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Partial<{
11
+ size: number;
12
+ current: number;
13
+ block: boolean;
14
+ align: IndicatorAlign;
15
+ fillZero: boolean;
16
+ }>>, {
17
+ size: number;
18
+ current: number;
19
+ block: boolean;
20
+ align: string;
21
+ fillZero: boolean;
22
+ }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Partial<{
23
+ size: number;
24
+ current: number;
25
+ block: boolean;
26
+ align: IndicatorAlign;
27
+ fillZero: boolean;
28
+ }>>, {
29
+ size: number;
30
+ current: number;
31
+ block: boolean;
32
+ align: string;
33
+ fillZero: boolean;
34
+ }>>>, {
35
+ size: number;
36
+ block: boolean;
37
+ align: IndicatorAlign;
38
+ current: number;
39
+ fillZero: boolean;
40
+ }, {}>;
41
+ declare const _nut_default: WithInstall<typeof _default>;
42
+ export default _nut_default;
43
+
44
+ declare module 'vue' {
45
+ interface GlobalComponents {
46
+ NutIndicator: typeof _default;
47
+ }
48
+ }
49
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
50
+ type __VLS_TypePropsToRuntimeProps<T> = {
51
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
52
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
53
+ } : {
54
+ type: import('vue').PropType<T[K]>;
55
+ required: true;
56
+ };
57
+ };
58
+ type __VLS_WithDefaults<P, D> = {
59
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
60
+ default: D[K];
61
+ }> : P[K];
62
+ };
63
+ type __VLS_Prettify<T> = {
64
+ [K in keyof T]: T[K];
65
+ } & {};
@@ -0,0 +1,5 @@
1
+ import Switch from './switch.vue';
2
+ import type { ComponentPublicInstance } from 'vue';
3
+ export type { SwitchProps } from './switch.vue';
4
+ export type SwitchInstance = ComponentPublicInstance & InstanceType<typeof Switch>;
5
+ export { Switch, Switch as default };
@@ -0,0 +1,109 @@
1
+ import type { WithInstall } from '../../utils';
2
+ export type SwitchProps = Partial<{
3
+ modelValue: string | number | boolean;
4
+ disabled: boolean;
5
+ activeColor: string;
6
+ inactiveColor: string;
7
+ activeText: string;
8
+ inactiveText: string;
9
+ activeValue: string | number | boolean;
10
+ inactiveValue: string | number | boolean;
11
+ loading: boolean;
12
+ disable: boolean;
13
+ }>;
14
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Partial<{
15
+ modelValue: string | number | boolean;
16
+ disabled: boolean;
17
+ activeColor: string;
18
+ inactiveColor: string;
19
+ activeText: string;
20
+ inactiveText: string;
21
+ activeValue: string | number | boolean;
22
+ inactiveValue: string | number | boolean;
23
+ loading: boolean;
24
+ disable: boolean;
25
+ }>>, {
26
+ modelValue: boolean;
27
+ disabled: boolean;
28
+ activeColor: string;
29
+ inactiveColor: string;
30
+ activeText: string;
31
+ inactiveText: string;
32
+ activeValue: boolean;
33
+ inactiveValue: boolean;
34
+ loading: boolean;
35
+ disable: boolean;
36
+ }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
37
+ change: (...args: any[]) => void;
38
+ "update:modelValue": (...args: any[]) => void;
39
+ "update:loading": (...args: any[]) => void;
40
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Partial<{
41
+ modelValue: string | number | boolean;
42
+ disabled: boolean;
43
+ activeColor: string;
44
+ inactiveColor: string;
45
+ activeText: string;
46
+ inactiveText: string;
47
+ activeValue: string | number | boolean;
48
+ inactiveValue: string | number | boolean;
49
+ loading: boolean;
50
+ disable: boolean;
51
+ }>>, {
52
+ modelValue: boolean;
53
+ disabled: boolean;
54
+ activeColor: string;
55
+ inactiveColor: string;
56
+ activeText: string;
57
+ inactiveText: string;
58
+ activeValue: boolean;
59
+ inactiveValue: boolean;
60
+ loading: boolean;
61
+ disable: boolean;
62
+ }>>> & {
63
+ onChange?: ((...args: any[]) => any) | undefined;
64
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
65
+ "onUpdate:loading"?: ((...args: any[]) => any) | undefined;
66
+ }, {
67
+ loading: boolean;
68
+ disabled: boolean;
69
+ activeColor: string;
70
+ activeText: string;
71
+ modelValue: string | number | boolean;
72
+ inactiveColor: string;
73
+ disable: boolean;
74
+ inactiveText: string;
75
+ activeValue: string | number | boolean;
76
+ inactiveValue: string | number | boolean;
77
+ }, {}>, {
78
+ icon?(_: {}): any;
79
+ }>;
80
+ declare const _nut_default: WithInstall<typeof _default>;
81
+ export default _nut_default;
82
+
83
+ declare module 'vue' {
84
+ interface GlobalComponents {
85
+ NutSwitch: 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
+ } & {};
105
+ type __VLS_WithTemplateSlots<T, S> = T & {
106
+ new (): {
107
+ $slots: S;
108
+ };
109
+ };
@@ -0,0 +1,5 @@
1
+ import Tabbar from './tabbar.vue';
2
+ import type { ComponentPublicInstance } from 'vue';
3
+ export type { TabbarProps } from './tabbar.vue';
4
+ export type TabbarInstance = ComponentPublicInstance & InstanceType<typeof Tabbar>;
5
+ export { Tabbar, Tabbar as default };
@@ -0,0 +1,83 @@
1
+ import type { WithInstall } from '../../utils';
2
+ export type TabbarProps = Partial<{
3
+ modelValue: number | string;
4
+ bottom: boolean;
5
+ unactiveColor: string;
6
+ activeColor: string;
7
+ safeAreaInsetBottom: boolean;
8
+ placeholder: boolean;
9
+ }>;
10
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Partial<{
11
+ modelValue: string | number;
12
+ bottom: boolean;
13
+ unactiveColor: string;
14
+ activeColor: string;
15
+ safeAreaInsetBottom: boolean;
16
+ placeholder: boolean;
17
+ }>>, {
18
+ modelValue: number;
19
+ bottom: boolean;
20
+ unactiveColor: string;
21
+ activeColor: string;
22
+ safeAreaInsetBottom: boolean;
23
+ placeholder: boolean;
24
+ }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
25
+ "update:modelValue": (...args: any[]) => void;
26
+ tabSwitch: (...args: any[]) => void;
27
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Partial<{
28
+ modelValue: string | number;
29
+ bottom: boolean;
30
+ unactiveColor: string;
31
+ activeColor: string;
32
+ safeAreaInsetBottom: boolean;
33
+ placeholder: boolean;
34
+ }>>, {
35
+ modelValue: number;
36
+ bottom: boolean;
37
+ unactiveColor: string;
38
+ activeColor: string;
39
+ safeAreaInsetBottom: boolean;
40
+ placeholder: boolean;
41
+ }>>> & {
42
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
43
+ onTabSwitch?: ((...args: any[]) => any) | undefined;
44
+ }, {
45
+ bottom: boolean;
46
+ safeAreaInsetBottom: boolean;
47
+ placeholder: boolean;
48
+ activeColor: string;
49
+ modelValue: string | number;
50
+ unactiveColor: string;
51
+ }, {}>, {
52
+ default?(_: {}): any;
53
+ }>;
54
+ declare const _nut_default: WithInstall<typeof _default>;
55
+ export default _nut_default;
56
+
57
+ declare module 'vue' {
58
+ interface GlobalComponents {
59
+ NutTabbar: typeof _default;
60
+ }
61
+ }
62
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
63
+ type __VLS_TypePropsToRuntimeProps<T> = {
64
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
65
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
66
+ } : {
67
+ type: import('vue').PropType<T[K]>;
68
+ required: true;
69
+ };
70
+ };
71
+ type __VLS_WithDefaults<P, D> = {
72
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
73
+ default: D[K];
74
+ }> : P[K];
75
+ };
76
+ type __VLS_Prettify<T> = {
77
+ [K in keyof T]: T[K];
78
+ } & {};
79
+ type __VLS_WithTemplateSlots<T, S> = T & {
80
+ new (): {
81
+ $slots: S;
82
+ };
83
+ };
@@ -0,0 +1,5 @@
1
+ import TabbarItem from './tabbar-item.vue';
2
+ import type { ComponentPublicInstance } from 'vue';
3
+ export type { TabbarItemProps } from './tabbar-item.vue';
4
+ export type TabbarItemInstance = ComponentPublicInstance & InstanceType<typeof TabbarItem>;
5
+ export { TabbarItem, TabbarItem as default };
@@ -0,0 +1,65 @@
1
+ import type { WithInstall } from '../../utils';
2
+ export type TabbarItemProps = Partial<{
3
+ tabTitle: string;
4
+ name: string;
5
+ icon: any;
6
+ href: string;
7
+ to: string | Record<never, any>;
8
+ }>;
9
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Partial<{
10
+ tabTitle: string;
11
+ name: string;
12
+ icon: any;
13
+ href: string;
14
+ to: string | Record<never, any>;
15
+ }>>, {
16
+ tabTitle: string;
17
+ href: string;
18
+ }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Partial<{
19
+ tabTitle: string;
20
+ name: string;
21
+ icon: any;
22
+ href: string;
23
+ to: string | Record<never, any>;
24
+ }>>, {
25
+ tabTitle: string;
26
+ href: string;
27
+ }>>>, {
28
+ tabTitle: string;
29
+ href: string;
30
+ }, {}>, {
31
+ icon?(_: {
32
+ active: boolean;
33
+ }): any;
34
+ default?(_: {}): any;
35
+ }>;
36
+ declare const _nut_default: WithInstall<typeof _default>;
37
+ export default _nut_default;
38
+
39
+ declare module 'vue' {
40
+ interface GlobalComponents {
41
+ NutTabbarItem: typeof _default;
42
+ }
43
+ }
44
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
45
+ type __VLS_TypePropsToRuntimeProps<T> = {
46
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
47
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
48
+ } : {
49
+ type: import('vue').PropType<T[K]>;
50
+ required: true;
51
+ };
52
+ };
53
+ type __VLS_WithDefaults<P, D> = {
54
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
55
+ default: D[K];
56
+ }> : P[K];
57
+ };
58
+ type __VLS_Prettify<T> = {
59
+ [K in keyof T]: T[K];
60
+ } & {};
61
+ type __VLS_WithTemplateSlots<T, S> = T & {
62
+ new (): {
63
+ $slots: S;
64
+ };
65
+ };
@@ -91,20 +91,20 @@ declare const _default: Install< import("vue").DefineComponent<{
91
91
  background: string;
92
92
  }>;
93
93
  titleStyle: import("vue").ComputedRef<{
94
- marginTop?: undefined;
95
- marginBottom?: undefined;
96
- marginLeft?: undefined;
97
- marginRight?: undefined;
94
+ paddingTop?: undefined;
95
+ paddingBottom?: undefined;
96
+ paddingLeft?: undefined;
97
+ paddingRight?: undefined;
98
98
  } | {
99
- marginTop: string | undefined;
100
- marginBottom: string | undefined;
101
- marginLeft?: undefined;
102
- marginRight?: undefined;
99
+ paddingTop: string | undefined;
100
+ paddingBottom: string | undefined;
101
+ paddingLeft?: undefined;
102
+ paddingRight?: undefined;
103
103
  } | {
104
- marginLeft: string | undefined;
105
- marginRight: string | undefined;
106
- marginTop?: undefined;
107
- marginBottom?: undefined;
104
+ paddingLeft: string | undefined;
105
+ paddingRight: string | undefined;
106
+ paddingTop?: undefined;
107
+ paddingBottom?: undefined;
108
108
  }>;
109
109
  tabsActiveStyle: import("vue").ComputedRef<{
110
110
  color: string;
@@ -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 };