@nutui/nutui 4.2.2-beta.3 → 4.2.3

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 (178) hide show
  1. package/CHANGELOG.md +39 -0
  2. package/README.md +34 -21
  3. package/dist/nutui.es.js +1 -1
  4. package/dist/nutui.js +4128 -4136
  5. package/dist/nutui.umd.js +1 -1
  6. package/dist/packages/{Interceptor-6aab6fe0.js → Interceptor-WYVtGbGC.js} +1 -1
  7. package/dist/packages/actionsheet/ActionSheet.js +4 -4
  8. package/dist/packages/address/Address.js +7 -8
  9. package/dist/packages/addresslist/AddressList.js +6 -5
  10. package/dist/packages/animate/Animate.js +2 -2
  11. package/dist/packages/audio/Audio.js +5 -5
  12. package/dist/packages/audiooperate/AudioOperate.js +4 -4
  13. package/dist/packages/avatar/Avatar.js +5 -65
  14. package/dist/packages/avatarcropper/AvatarCropper.js +5 -5
  15. package/dist/packages/avatargroup/AvatarGroup.js +4 -4
  16. package/dist/packages/backtop/Backtop.js +3 -3
  17. package/dist/packages/badge/Badge.js +2 -2
  18. package/dist/packages/barrage/Barrage.js +2 -2
  19. package/dist/packages/button/Button.js +2 -2
  20. package/dist/packages/calendar/Calendar.js +8 -8
  21. package/dist/packages/calendaritem/CalendarItem.js +7 -7
  22. package/dist/packages/card/Card.js +2 -2
  23. package/dist/packages/cascader/Cascader.js +10 -10
  24. package/dist/packages/category/Category.js +2 -2
  25. package/dist/packages/categorypane/CategoryPane.js +2 -2
  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 -3
  29. package/dist/packages/checkboxgroup/CheckboxGroup.js +4 -3
  30. package/dist/packages/circleprogress/CircleProgress.js +3 -3
  31. package/dist/packages/col/Col.js +6 -5
  32. package/dist/packages/collapse/Collapse.js +7 -6
  33. package/dist/packages/collapseitem/CollapseItem.js +9 -9
  34. package/dist/packages/comment/Comment.js +7 -7
  35. package/dist/packages/{common-72c11f1d.js → common-4inKawxR.js} +3 -3
  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 +2 -2
  39. package/dist/packages/datepicker/DatePicker.js +6 -6
  40. package/dist/packages/dialog/Dialog.js +7 -7
  41. package/dist/packages/divider/Divider.js +2 -2
  42. package/dist/packages/drag/Drag.js +3 -3
  43. package/dist/packages/ecard/Ecard.js +5 -5
  44. package/dist/packages/elevator/Elevator.js +3 -3
  45. package/dist/packages/ellipsis/Ellipsis.js +2 -2
  46. package/dist/packages/empty/Empty.js +5 -5
  47. package/dist/packages/fixednav/FixedNav.js +4 -4
  48. package/dist/packages/form/Form.js +6 -44
  49. package/dist/packages/formitem/FormItem.js +8 -21
  50. package/dist/packages/grid/Grid.js +3 -3
  51. package/dist/packages/griditem/GridItem.js +5 -5
  52. package/dist/packages/image/Image.js +3 -3
  53. package/dist/packages/imagepreview/ImagePreview.js +12 -11
  54. package/dist/packages/index--uVlasFu.js +69 -0
  55. package/dist/packages/{index-914a76f0.js → index-cDNmNOtI.js} +5 -5
  56. package/dist/packages/{index-37ae1f41.js → index-rbZsBckW.js} +2 -2
  57. package/dist/packages/{index-c0fa0f6b.js → index-s3RgMhc7.js} +1 -1
  58. package/dist/packages/{index.vue_vue_type_script_lang-825ed1e0.js → index.vue_vue_type_script_lang-KuoPcQZs.js} +4 -3
  59. package/dist/packages/{index.vue_vue_type_script_lang-0185ccea.js → index.vue_vue_type_script_lang-Lc2BXA17.js} +3 -2
  60. package/dist/packages/indicator/Indicator.js +3 -3
  61. package/dist/packages/infiniteloading/InfiniteLoading.js +6 -6
  62. package/dist/packages/input/Input.js +2 -2
  63. package/dist/packages/inputnumber/InputNumber.js +7 -3
  64. package/dist/packages/invoice/Invoice.js +11 -7
  65. package/dist/packages/layout/Layout.js +1 -1
  66. package/dist/packages/list/List.js +4 -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 +1 -1
  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 +17 -52
  73. package/dist/packages/menuitem/MenuItem.js +8 -18
  74. package/dist/packages/{mountComponent-867a9167.js → mountComponent-uInXoTMp.js} +1 -1
  75. package/dist/packages/navbar/Navbar.js +2 -2
  76. package/dist/packages/noticebar/Noticebar.js +3 -3
  77. package/dist/packages/notify/Notify.js +4 -4
  78. package/dist/packages/numberkeyboard/NumberKeyboard.js +5 -5
  79. package/dist/packages/overlay/Overlay.js +3 -3
  80. package/dist/packages/pagination/Pagination.js +4 -4
  81. package/dist/packages/picker/Picker.js +6 -6
  82. package/dist/packages/popover/Popover.js +6 -6
  83. package/dist/packages/popup/Popup.js +4 -4
  84. package/dist/packages/price/Price.js +2 -2
  85. package/dist/packages/progress/Progress.js +2 -2
  86. package/dist/packages/pullrefresh/PullRefresh.js +7 -7
  87. package/dist/packages/radio/Radio.js +4 -3
  88. package/dist/packages/radiogroup/RadioGroup.js +3 -2
  89. package/dist/packages/range/Range.js +5 -5
  90. package/dist/packages/rate/Rate.js +5 -5
  91. package/dist/packages/row/Row.js +6 -5
  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 +4 -4
  97. package/dist/packages/skeleton/Skeleton.js +3 -3
  98. package/dist/packages/sku/Sku.js +6 -6
  99. package/dist/packages/space/Space.js +1 -1
  100. package/dist/packages/step/Step.js +4 -3
  101. package/dist/packages/steps/Steps.js +3 -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 +5 -4
  105. package/dist/packages/swipegroup/SwipeGroup.js +4 -3
  106. package/dist/packages/swiper/Swiper.js +10 -11
  107. package/dist/packages/swiperitem/SwiperItem.js +5 -4
  108. package/dist/packages/switch/Switch.js +2 -2
  109. package/dist/packages/tabbar/Tabbar.js +5 -4
  110. package/dist/packages/tabbaritem/TabbarItem.js +6 -5
  111. package/dist/packages/table/Table.js +4 -4
  112. package/dist/packages/tabpane/TabPane.js +2 -2
  113. package/dist/packages/tabs/Tabs.js +8 -8
  114. package/dist/packages/tag/Tag.js +2 -2
  115. package/dist/packages/textarea/Textarea.js +4 -4
  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 +5 -5
  119. package/dist/packages/toast/Toast.js +5 -5
  120. package/dist/packages/tour/Tour.js +6 -6
  121. package/dist/packages/trendarrow/TrendArrow.js +3 -3
  122. package/dist/packages/types-4IflWeQO.js +4 -0
  123. package/dist/packages/types-9wCQwtH3.js +4 -0
  124. package/dist/packages/types-Cq2YypZn.js +4 -0
  125. package/dist/packages/types-RCVUm7Nb.js +4 -0
  126. package/dist/packages/types-Ww4ErYJT.js +4 -0
  127. package/dist/packages/types-Ynmct7na.js +4 -0
  128. package/dist/packages/types-j71K23JP.js +4 -0
  129. package/dist/packages/types-odSRziQJ.js +4 -0
  130. package/dist/packages/types-qOrhXtA_.js +4 -0
  131. package/dist/packages/types-zeKkNDAq.js +4 -0
  132. package/dist/packages/uploader/Uploader.js +5 -5
  133. package/dist/packages/useChildren-GU_NVfD8.js +54 -0
  134. package/dist/packages/useParent-KIxqkovs.js +16 -0
  135. package/dist/packages/video/Video.js +4 -4
  136. package/dist/packages/watermark/Watermark.js +2 -2
  137. package/dist/smartips/web-types.json +30 -3
  138. package/dist/style.js +1 -4
  139. package/dist/types/__VUE/avatar/index.vue.d.ts +1 -1
  140. package/dist/types/__VUE/avatar/types.d.ts +1 -0
  141. package/dist/types/__VUE/avatargroup/index.vue.d.ts +1 -1
  142. package/dist/types/__VUE/checkbox/types.d.ts +1 -0
  143. package/dist/types/__VUE/col/index.vue.d.ts +1 -0
  144. package/dist/types/__VUE/collapse/index.vue.d.ts +1 -1
  145. package/dist/types/__VUE/collapse/types.d.ts +5 -0
  146. package/dist/types/__VUE/collapseitem/index.vue.d.ts +1 -0
  147. package/dist/types/__VUE/form/types.d.ts +1 -0
  148. package/dist/types/__VUE/grid/index.vue.d.ts +1 -1
  149. package/dist/types/__VUE/input/type.d.ts +1 -1
  150. package/dist/types/__VUE/layout/types.d.ts +1 -0
  151. package/dist/types/__VUE/menu/index.vue.d.ts +18 -9
  152. package/dist/types/__VUE/menu/types.d.ts +6 -0
  153. package/dist/types/__VUE/menuitem/index.vue.d.ts +1 -1
  154. package/dist/types/__VUE/radio/types.d.ts +1 -0
  155. package/dist/types/__VUE/steps/types.d.ts +1 -0
  156. package/dist/types/__VUE/swipe/types.d.ts +1 -0
  157. package/dist/types/__VUE/swiper/index.vue.d.ts +0 -6
  158. package/dist/types/__VUE/swiper/types.d.ts +1 -0
  159. package/dist/types/__VUE/tabbar/types.d.ts +1 -0
  160. package/dist/types/index.d.ts +1 -1
  161. package/dist/types/utils/index.d.ts +1 -0
  162. package/dist/types/utils/useRelation/index.d.ts +2 -0
  163. package/dist/types/utils/useRelation/useChildren.d.ts +4 -0
  164. package/dist/types/utils/useRelation/useParent.d.ts +3 -0
  165. package/package.json +1 -1
  166. package/dist/types/__VUE/menuitem/type.d.ts +0 -4
  167. /package/dist/packages/{_plugin-vue_export-helper-cc2b3d55.js → _plugin-vue_export-helper-yVxbj29m.js} +0 -0
  168. /package/dist/packages/{component-669c158a.js → component-TCzwHGVq.js} +0 -0
  169. /package/dist/packages/{index-7a7385e4.js → index-084nl_oE.js} +0 -0
  170. /package/dist/packages/{index-54d03fc1.js → index-Ii9XdkPy.js} +0 -0
  171. /package/dist/packages/{index-79c5dc33.js → index-nRNEaTqA.js} +0 -0
  172. /package/dist/packages/{index-29892cda.js → index-rf29bejW.js} +0 -0
  173. /package/dist/packages/{index-97b44e6c.js → index-xDfQLRen.js} +0 -0
  174. /package/dist/packages/locale/lang/{baseLang-3a8457ac.js → baseLang-7uiEiO-2.js} +0 -0
  175. /package/dist/packages/{pxCheck-a27490eb.js → pxCheck-OnXlN1NC.js} +0 -0
  176. /package/dist/packages/{raf-729dad54.js → raf-MQjoO-Ag.js} +0 -0
  177. /package/dist/packages/{renderIcon-3d0fd47c.js → renderIcon--EgZu5_5.js} +0 -0
  178. /package/dist/packages/{util-6f26722f.js → util-4Jkyw4BJ.js} +0 -0
@@ -1,6 +1,6 @@
1
1
  import { shallowReactive, getCurrentInstance, provide, markRaw, isVNode, computed, h } from "vue";
2
- import { c as createComponent } from "./component-669c158a.js";
3
- import { p as pxCheck } from "./pxCheck-a27490eb.js";
2
+ import { c as createComponent } from "./component-TCzwHGVq.js";
3
+ import { p as pxCheck } from "./pxCheck-OnXlN1NC.js";
4
4
  function flattenVNodes(children, childName) {
5
5
  const result = [];
6
6
  const traverse = (children2) => {
@@ -111,7 +111,7 @@ const gridProps = {
111
111
  const component = {
112
112
  props: gridProps,
113
113
  setup(props, { slots }) {
114
- useProvide(GRID_KEY, `${componentName}-item`)({ props });
114
+ useProvide(GRID_KEY, `NutGridItem`)({ props });
115
115
  const rootClass = computed(() => {
116
116
  const prefixCls = componentName;
117
117
  return {
@@ -1,4 +1,4 @@
1
- import { c as createComponent } from "../component-669c158a.js";
1
+ import { c as createComponent } from "../component-TCzwHGVq.js";
2
2
  import { computed, h } from "vue";
3
3
  const component = (tag) => {
4
4
  return {
@@ -18,10 +18,10 @@ var __spreadValues = (a, b) => {
18
18
  };
19
19
  var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20
20
  import { reactive, computed, onBeforeMount, watch, toRefs, openBlock, createElementBlock, renderSlot } from "vue";
21
- import { c as createComponent } from "../component-669c158a.js";
22
- import { p as padZero } from "../util-6f26722f.js";
23
- import { u as useLocale } from "../index-c0fa0f6b.js";
24
- import { _ as _export_sfc } from "../_plugin-vue_export-helper-cc2b3d55.js";
21
+ import { c as createComponent } from "../component-TCzwHGVq.js";
22
+ import { p as padZero } from "../util-4Jkyw4BJ.js";
23
+ import { u as useLocale } from "../index-s3RgMhc7.js";
24
+ import { _ as _export_sfc } from "../_plugin-vue_export-helper-yVxbj29m.js";
25
25
  import "@nutui/nutui/dist/packages/locale/lang";
26
26
  const getTimeStamp = (timeStr) => {
27
27
  if (!timeStr)
@@ -18,8 +18,8 @@ var __spreadValues = (a, b) => {
18
18
  };
19
19
  var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20
20
  import { getCurrentInstance, ref, reactive, watch, nextTick, onMounted, onUnmounted, toRefs, openBlock, createElementBlock, Fragment, normalizeStyle, renderList, createCommentVNode, toDisplayString, createTextVNode } from "vue";
21
- import { c as createComponent } from "../component-669c158a.js";
22
- import { _ as _export_sfc } from "../_plugin-vue_export-helper-cc2b3d55.js";
21
+ import { c as createComponent } from "../component-TCzwHGVq.js";
22
+ import { _ as _export_sfc } from "../_plugin-vue_export-helper-yVxbj29m.js";
23
23
  function useExtend(apis) {
24
24
  const instance = getCurrentInstance();
25
25
  if (instance) {
@@ -19,12 +19,12 @@ var __spreadValues = (a, b) => {
19
19
  var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20
20
  import { reactive, computed, onBeforeMount, watch, toRefs, resolveComponent, openBlock, createBlock, withCtx, renderSlot } from "vue";
21
21
  import NutPicker from "../picker/Picker.js";
22
- import { c as createComponent } from "../component-669c158a.js";
23
- import { c as isDate$1, p as padZero } from "../util-6f26722f.js";
24
- import { _ as _export_sfc } from "../_plugin-vue_export-helper-cc2b3d55.js";
25
- import "../pxCheck-a27490eb.js";
26
- import "../index-7a7385e4.js";
27
- import "../index-c0fa0f6b.js";
22
+ import { c as createComponent } from "../component-TCzwHGVq.js";
23
+ import { c as isDate$1, p as padZero } from "../util-4Jkyw4BJ.js";
24
+ import { _ as _export_sfc } from "../_plugin-vue_export-helper-yVxbj29m.js";
25
+ import "../pxCheck-OnXlN1NC.js";
26
+ import "../index-084nl_oE.js";
27
+ import "../index-s3RgMhc7.js";
28
28
  import "@nutui/nutui/dist/packages/locale/lang";
29
29
  const { create } = createComponent("date-picker");
30
30
  const currentYear = (/* @__PURE__ */ new Date()).getFullYear();
@@ -22,15 +22,15 @@ var __publicField = (obj, key, value) => {
22
22
  return value;
23
23
  };
24
24
  import { ref, onMounted, watch, computed, resolveComponent, openBlock, createBlock, normalizeStyle, withCtx, createElementVNode, normalizeClass, createElementBlock, renderSlot, Fragment, createTextVNode, toDisplayString, createCommentVNode, resolveDynamicComponent, nextTick, h } from "vue";
25
- import { c as createComponent } from "../component-669c158a.js";
26
- import { f as funInterceptor } from "../Interceptor-6aab6fe0.js";
27
- import { N as NutPopup, p as popupProps } from "../index-37ae1f41.js";
25
+ import { c as createComponent } from "../component-TCzwHGVq.js";
26
+ import { f as funInterceptor } from "../Interceptor-WYVtGbGC.js";
27
+ import { N as NutPopup, p as popupProps } from "../index-rbZsBckW.js";
28
28
  import NutButton from "../button/Button.js";
29
- import { u as useLocale } from "../index-c0fa0f6b.js";
30
- import { _ as _export_sfc } from "../_plugin-vue_export-helper-cc2b3d55.js";
29
+ import { u as useLocale } from "../index-s3RgMhc7.js";
30
+ import { _ as _export_sfc } from "../_plugin-vue_export-helper-yVxbj29m.js";
31
31
  import NutOverlay from "../overlay/Overlay.js";
32
- import { C as CreateComponent } from "../mountComponent-867a9167.js";
33
- import "../util-6f26722f.js";
32
+ import { C as CreateComponent } from "../mountComponent-uInXoTMp.js";
33
+ import "../util-4Jkyw4BJ.js";
34
34
  import "@nutui/icons-vue";
35
35
  import "@nutui/nutui/dist/packages/locale/lang";
36
36
  const { create } = createComponent("dialog");
@@ -1,6 +1,6 @@
1
1
  import { computed, openBlock, createElementBlock, normalizeClass, renderSlot, createCommentVNode } from "vue";
2
- import { c as createComponent } from "../component-669c158a.js";
3
- import { _ as _export_sfc } from "../_plugin-vue_export-helper-cc2b3d55.js";
2
+ import { c as createComponent } from "../component-TCzwHGVq.js";
3
+ import { _ as _export_sfc } from "../_plugin-vue_export-helper-yVxbj29m.js";
4
4
  const { componentName, create } = createComponent("divider");
5
5
  const _sfc_main = create({
6
6
  props: {
@@ -1,7 +1,7 @@
1
1
  import { ref, reactive, onMounted, onActivated, onDeactivated, openBlock, createElementBlock, renderSlot } from "vue";
2
- import { c as createComponent } from "../component-669c158a.js";
3
- import { r as requestAniFrame } from "../raf-729dad54.js";
4
- import { _ as _export_sfc } from "../_plugin-vue_export-helper-cc2b3d55.js";
2
+ import { c as createComponent } from "../component-TCzwHGVq.js";
3
+ import { r as requestAniFrame } from "../raf-MQjoO-Ag.js";
4
+ import { _ as _export_sfc } from "../_plugin-vue_export-helper-yVxbj29m.js";
5
5
  const { create } = createComponent("drag");
6
6
  const _sfc_main = create({
7
7
  props: {
@@ -1,12 +1,12 @@
1
1
  import { ref, watch, resolveComponent, openBlock, createElementBlock, createElementVNode, toDisplayString, Fragment, renderList, normalizeClass, withDirectives, vModelText, createTextVNode, createVNode } from "vue";
2
- import { c as createComponent } from "../component-669c158a.js";
2
+ import { c as createComponent } from "../component-TCzwHGVq.js";
3
3
  import NutInputNumber from "../inputnumber/InputNumber.js";
4
- import { u as useLocale } from "../index-c0fa0f6b.js";
5
- import { _ as _export_sfc } from "../_plugin-vue_export-helper-cc2b3d55.js";
6
- import "../pxCheck-a27490eb.js";
4
+ import { u as useLocale } from "../index-s3RgMhc7.js";
5
+ import { _ as _export_sfc } from "../_plugin-vue_export-helper-yVxbj29m.js";
6
+ import "../pxCheck-OnXlN1NC.js";
7
7
  import "@nutui/icons-vue";
8
8
  import "@nutui/nutui/dist/packages/locale/lang";
9
- import "../util-6f26722f.js";
9
+ import "../util-4Jkyw4BJ.js";
10
10
  const { create } = createComponent("ecard");
11
11
  const cN = "NutEcard";
12
12
  const _sfc_main = create({
@@ -18,9 +18,9 @@ var __spreadValues = (a, b) => {
18
18
  };
19
19
  var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20
20
  import { ref, reactive, computed, onMounted, watch, nextTick, toRefs, openBlock, createElementBlock, createElementVNode, normalizeStyle, Fragment, renderList, toDisplayString, normalizeClass, renderSlot, withDirectives, vShow, createCommentVNode, withModifiers } from "vue";
21
- import { c as createComponent } from "../component-669c158a.js";
22
- import { u as useExpose } from "../index-79c5dc33.js";
23
- import { _ as _export_sfc } from "../_plugin-vue_export-helper-cc2b3d55.js";
21
+ import { c as createComponent } from "../component-TCzwHGVq.js";
22
+ import { u as useExpose } from "../index-nRNEaTqA.js";
23
+ import { _ as _export_sfc } from "../_plugin-vue_export-helper-yVxbj29m.js";
24
24
  const { create } = createComponent("elevator");
25
25
  const _sfc_main = create({
26
26
  props: {
@@ -18,8 +18,8 @@ var __spreadValues = (a, b) => {
18
18
  };
19
19
  var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20
20
  import { ref, reactive, watch, onMounted, toRefs, openBlock, createElementBlock, toDisplayString, createCommentVNode, createTextVNode, withModifiers } from "vue";
21
- import { c as createComponent } from "../component-669c158a.js";
22
- import { _ as _export_sfc } from "../_plugin-vue_export-helper-cc2b3d55.js";
21
+ import { c as createComponent } from "../component-TCzwHGVq.js";
22
+ import { _ as _export_sfc } from "../_plugin-vue_export-helper-yVxbj29m.js";
23
23
  const { create } = createComponent("ellipsis");
24
24
  const _sfc_main = create({
25
25
  props: {
@@ -1,10 +1,10 @@
1
1
  import { computed, openBlock, createElementBlock, createElementVNode, normalizeStyle, renderSlot, createCommentVNode, toDisplayString } from "vue";
2
- import { c as createComponent } from "../component-669c158a.js";
3
- import { p as pxCheck } from "../pxCheck-a27490eb.js";
4
- import { u as useLocale } from "../index-c0fa0f6b.js";
5
- import { _ as _export_sfc } from "../_plugin-vue_export-helper-cc2b3d55.js";
2
+ import { c as createComponent } from "../component-TCzwHGVq.js";
3
+ import { p as pxCheck } from "../pxCheck-OnXlN1NC.js";
4
+ import { u as useLocale } from "../index-s3RgMhc7.js";
5
+ import { _ as _export_sfc } from "../_plugin-vue_export-helper-yVxbj29m.js";
6
6
  import "@nutui/nutui/dist/packages/locale/lang";
7
- import "../util-6f26722f.js";
7
+ import "../util-4Jkyw4BJ.js";
8
8
  const { create } = createComponent("empty");
9
9
  const cN = "NutEmpty";
10
10
  const defaultStatus = {
@@ -1,10 +1,10 @@
1
1
  import { computed, ref, resolveComponent, openBlock, createElementBlock, normalizeClass, normalizeStyle, createBlock, createCommentVNode, renderSlot, createElementVNode, Fragment, renderList, toDisplayString, createVNode } from "vue";
2
2
  import { Left } from "@nutui/icons-vue";
3
3
  import NutOverlay from "../overlay/Overlay.js";
4
- import { c as createComponent } from "../component-669c158a.js";
5
- import { u as useLocale } from "../index-c0fa0f6b.js";
6
- import { _ as _export_sfc } from "../_plugin-vue_export-helper-cc2b3d55.js";
7
- import "../util-6f26722f.js";
4
+ import { c as createComponent } from "../component-TCzwHGVq.js";
5
+ import { u as useLocale } from "../index-s3RgMhc7.js";
6
+ import { _ as _export_sfc } from "../_plugin-vue_export-helper-yVxbj29m.js";
7
+ import "../util-4Jkyw4BJ.js";
8
8
  import "@nutui/nutui/dist/packages/locale/lang";
9
9
  const { create } = createComponent("fixed-nav");
10
10
  const cN = "NutFixedNav";
@@ -33,11 +33,13 @@ var __async = (__this, __arguments, generator) => {
33
33
  step((generator = generator.apply(__this, __arguments)).next());
34
34
  });
35
35
  };
36
- import { c as createComponent } from "../component-669c158a.js";
36
+ import { c as createComponent } from "../component-TCzwHGVq.js";
37
37
  import { computed, reactive, provide, watch, resolveComponent, openBlock, createElementBlock, withModifiers, createVNode, withCtx, renderSlot } from "vue";
38
- import { g as getPropByPath, f as isPromise } from "../util-6f26722f.js";
38
+ import { g as getPropByPath, f as isPromise } from "../util-4Jkyw4BJ.js";
39
+ import { F as FORM_KEY } from "../types-Ynmct7na.js";
40
+ import { u as useChildren } from "../useChildren-GU_NVfD8.js";
39
41
  import NutCellGroup from "../cellgroup/CellGroup.js";
40
- import { _ as _export_sfc } from "../_plugin-vue_export-helper-cc2b3d55.js";
42
+ import { _ as _export_sfc } from "../_plugin-vue_export-helper-yVxbj29m.js";
41
43
  const component = (components) => {
42
44
  return {
43
45
  props: {
@@ -53,47 +55,7 @@ const component = (components) => {
53
55
  components,
54
56
  emits: ["validate"],
55
57
  setup(props, { emit }) {
56
- const useChildren = () => {
57
- const publicChildren = reactive([]);
58
- const internalChildren = reactive([]);
59
- const linkChildren2 = (value) => {
60
- const link = (child) => {
61
- if (child.proxy) {
62
- internalChildren.push(child);
63
- publicChildren.push(child.proxy);
64
- }
65
- };
66
- const removeLink = (child) => {
67
- if (child.proxy) {
68
- let internalIndex = internalChildren.indexOf(child);
69
- if (internalIndex > -1) {
70
- internalChildren.splice(internalIndex, 1);
71
- }
72
- let publicIndex = publicChildren.indexOf(child.proxy);
73
- if (internalIndex > -1) {
74
- publicChildren.splice(publicIndex, 1);
75
- }
76
- }
77
- };
78
- provide(
79
- "NutFormParent",
80
- Object.assign(
81
- {
82
- removeLink,
83
- link,
84
- children: publicChildren,
85
- internalChildren
86
- },
87
- value
88
- )
89
- );
90
- };
91
- return {
92
- children: publicChildren,
93
- linkChildren: linkChildren2
94
- };
95
- };
96
- const { children, linkChildren } = useChildren();
58
+ const { children, linkChildren } = useChildren(FORM_KEY);
97
59
  linkChildren({ props });
98
60
  const formErrorTip = computed(() => reactive({}));
99
61
  provide("formErrorTip", formErrorTip);
@@ -1,9 +1,11 @@
1
- import { p as pxCheck } from "../pxCheck-a27490eb.js";
2
- import { computed, inject, provide, getCurrentInstance, onUnmounted, resolveComponent, openBlock, createBlock, normalizeClass, normalizeStyle, withCtx, createElementBlock, renderSlot, createTextVNode, toDisplayString, createCommentVNode, createElementVNode } from "vue";
3
- import { c as createComponent } from "../component-669c158a.js";
1
+ import { p as pxCheck } from "../pxCheck-OnXlN1NC.js";
2
+ import { computed, inject, resolveComponent, openBlock, createBlock, normalizeClass, normalizeStyle, withCtx, createElementBlock, renderSlot, createTextVNode, toDisplayString, createCommentVNode, createElementVNode } from "vue";
3
+ import { c as createComponent } from "../component-TCzwHGVq.js";
4
4
  import NutCell from "../cell/Cell.js";
5
- import { _ as _export_sfc } from "../_plugin-vue_export-helper-cc2b3d55.js";
6
- import "../index-54d03fc1.js";
5
+ import { F as FORM_KEY } from "../types-Ynmct7na.js";
6
+ import { u as useParent } from "../useParent-KIxqkovs.js";
7
+ import { _ as _export_sfc } from "../_plugin-vue_export-helper-yVxbj29m.js";
8
+ import "../index-Ii9XdkPy.js";
7
9
  import "@nutui/icons-vue";
8
10
  const { create } = createComponent("form-item");
9
11
  const _sfc_main = create({
@@ -54,19 +56,7 @@ const _sfc_main = create({
54
56
  NutCell
55
57
  },
56
58
  setup(props, { slots }) {
57
- const useParent = () => {
58
- const parent2 = inject("NutFormParent", null);
59
- if (parent2) {
60
- const instance = getCurrentInstance();
61
- const { link, removeLink } = parent2;
62
- link(instance);
63
- onUnmounted(() => {
64
- removeLink(instance);
65
- });
66
- return { parent: parent2 };
67
- }
68
- };
69
- const { parent: parentObj } = useParent();
59
+ const { parent: parentObj } = useParent(FORM_KEY);
70
60
  const isRequired = computed(() => {
71
61
  var _a;
72
62
  const rules = (_a = parentObj.props) == null ? void 0 : _a.rules;
@@ -79,9 +69,6 @@ const _sfc_main = create({
79
69
  return props.required || props.rules.some((rule) => rule.required) || formRequired;
80
70
  });
81
71
  const parent = inject("formErrorTip");
82
- provide("form", {
83
- props
84
- });
85
72
  const labelStyle = computed(() => {
86
73
  return {
87
74
  width: pxCheck(props.labelWidth),
@@ -1,7 +1,7 @@
1
- import { c as createComponent } from "../component-669c158a.js";
1
+ import { c as createComponent } from "../component-TCzwHGVq.js";
2
2
  import "vue";
3
- import { c as component } from "../common-72c11f1d.js";
4
- import "../pxCheck-a27490eb.js";
3
+ import { c as component } from "../common-4inKawxR.js";
4
+ import "../pxCheck-OnXlN1NC.js";
5
5
  const { create } = createComponent("grid");
6
6
  const _sfc_main = create(component);
7
7
  export {
@@ -1,9 +1,9 @@
1
1
  import { inject, getCurrentInstance, onUnmounted, computed, ref, openBlock, createElementBlock, normalizeClass, normalizeStyle, createElementVNode, renderSlot, Fragment, createTextVNode, toDisplayString } from "vue";
2
- import { u as useRouter } from "../index-54d03fc1.js";
3
- import { c as createComponent } from "../component-669c158a.js";
4
- import { p as pxCheck } from "../pxCheck-a27490eb.js";
5
- import { G as GRID_KEY } from "../common-72c11f1d.js";
6
- import { _ as _export_sfc } from "../_plugin-vue_export-helper-cc2b3d55.js";
2
+ import { u as useRouter } from "../index-Ii9XdkPy.js";
3
+ import { c as createComponent } from "../component-TCzwHGVq.js";
4
+ import { p as pxCheck } from "../pxCheck-OnXlN1NC.js";
5
+ import { G as GRID_KEY } from "../common-4inKawxR.js";
6
+ import { _ as _export_sfc } from "../_plugin-vue_export-helper-yVxbj29m.js";
7
7
  function useInject(key) {
8
8
  const parent = inject(key, null);
9
9
  if (parent) {
@@ -18,10 +18,10 @@ var __spreadValues = (a, b) => {
18
18
  };
19
19
  var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20
20
  import { reactive, useSlots, computed, ref, onMounted, onBeforeUnmount, watch, toRefs, resolveComponent, openBlock, createElementBlock, normalizeClass, normalizeStyle, createElementVNode, createBlock, createCommentVNode, renderSlot } from "vue";
21
- import { c as createComponent } from "../component-669c158a.js";
22
- import { p as pxCheck } from "../pxCheck-a27490eb.js";
21
+ import { c as createComponent } from "../component-TCzwHGVq.js";
22
+ import { p as pxCheck } from "../pxCheck-OnXlN1NC.js";
23
23
  import { Image, ImageError } from "@nutui/icons-vue";
24
- import { _ as _export_sfc } from "../_plugin-vue_export-helper-cc2b3d55.js";
24
+ import { _ as _export_sfc } from "../_plugin-vue_export-helper-yVxbj29m.js";
25
25
  const { componentName, create } = createComponent("image");
26
26
  const _sfc_main = create({
27
27
  props: {
@@ -23,23 +23,24 @@ var __publicField = (obj, key, value) => {
23
23
  return value;
24
24
  };
25
25
  import { reactive, computed, watch, toRefs, resolveComponent, openBlock, createBlock, withCtx, createElementVNode, normalizeStyle, createElementBlock, createCommentVNode, ref, nextTick, onMounted, Fragment, renderList, toDisplayString, normalizeClass, renderSlot, createVNode, h } from "vue";
26
- import { c as createComponent } from "../component-669c158a.js";
27
- import { e as clamp, d as preventDefault, a as isArray } from "../util-6f26722f.js";
28
- import { u as useRect } from "../index-29892cda.js";
29
- import { u as useTouch } from "../index-7a7385e4.js";
26
+ import { c as createComponent } from "../component-TCzwHGVq.js";
27
+ import { e as clamp, d as preventDefault, a as isArray } from "../util-4Jkyw4BJ.js";
28
+ import { u as useRect } from "../index-rf29bejW.js";
29
+ import { u as useTouch } from "../index-084nl_oE.js";
30
30
  import NutVideo from "../video/Video.js";
31
31
  import NutSwiperItem from "../swiperitem/SwiperItem.js";
32
- import { _ as _export_sfc } from "../_plugin-vue_export-helper-cc2b3d55.js";
32
+ import { _ as _export_sfc } from "../_plugin-vue_export-helper-yVxbj29m.js";
33
33
  import { CircleClose } from "@nutui/icons-vue";
34
- import { N as NutPopup } from "../index-37ae1f41.js";
34
+ import { N as NutPopup } from "../index-rbZsBckW.js";
35
35
  import NutSwiper from "../swiper/Swiper.js";
36
- import { f as funInterceptor } from "../Interceptor-6aab6fe0.js";
37
- import { C as CreateComponent } from "../mountComponent-867a9167.js";
36
+ import { f as funInterceptor } from "../Interceptor-WYVtGbGC.js";
37
+ import { C as CreateComponent } from "../mountComponent-uInXoTMp.js";
38
38
  import NutOverlay from "../overlay/Overlay.js";
39
- import "../index-c0fa0f6b.js";
39
+ import "../index-s3RgMhc7.js";
40
40
  import "@nutui/nutui/dist/packages/locale/lang";
41
- import "../index-79c5dc33.js";
42
- import "../raf-729dad54.js";
41
+ import "../index-nRNEaTqA.js";
42
+ import "../types-9wCQwtH3.js";
43
+ import "../raf-MQjoO-Ag.js";
43
44
  const baseProps = {
44
45
  show: { type: Boolean, default: false },
45
46
  initNo: { type: Number, default: 0 },
@@ -0,0 +1,69 @@
1
+ import { toRefs, inject, ref, computed, openBlock, createElementBlock, normalizeStyle, normalizeClass, renderSlot } from "vue";
2
+ import { c as createComponent } from "./component-TCzwHGVq.js";
3
+ import { _ as _export_sfc } from "./_plugin-vue_export-helper-yVxbj29m.js";
4
+ const AVATAR_KEY = Symbol("nut-avatar");
5
+ const { create } = createComponent("avatar");
6
+ const _sfc_main = create({
7
+ props: {
8
+ size: {
9
+ type: [String, Number],
10
+ default: "normal"
11
+ },
12
+ shape: {
13
+ type: String,
14
+ default: "round"
15
+ },
16
+ bgColor: {
17
+ type: String,
18
+ default: "#eee"
19
+ },
20
+ color: {
21
+ type: String,
22
+ default: "#666"
23
+ }
24
+ },
25
+ setup(props) {
26
+ const { size, shape, bgColor, color } = toRefs(props);
27
+ const sizeValue = ["large", "normal", "small"];
28
+ const avatarGroup = inject(AVATAR_KEY, null);
29
+ const avatarRef = ref(null);
30
+ const classes = computed(() => {
31
+ var _a, _b;
32
+ const prefixCls = "nut-avatar";
33
+ return {
34
+ [prefixCls]: true,
35
+ [`nut-avatar-${size.value || ((_a = avatarGroup == null ? void 0 : avatarGroup.props) == null ? void 0 : _a.size) || "normal"}`]: true,
36
+ [`nut-avatar-${shape.value || ((_b = avatarGroup == null ? void 0 : avatarGroup.props) == null ? void 0 : _b.shape) || "round"}`]: true
37
+ };
38
+ });
39
+ const styles = computed(() => {
40
+ var _a, _b;
41
+ return {
42
+ width: size.value in sizeValue ? "" : `${size.value}px`,
43
+ height: size.value in sizeValue ? "" : `${size.value}px`,
44
+ backgroundColor: `${bgColor.value}`,
45
+ color: `${color.value}`,
46
+ marginLeft: ((_a = avatarGroup == null ? void 0 : avatarGroup.props) == null ? void 0 : _a.span) ? `${(_b = avatarGroup == null ? void 0 : avatarGroup.props) == null ? void 0 : _b.span}px` : ""
47
+ };
48
+ });
49
+ return {
50
+ classes,
51
+ styles,
52
+ avatarRef
53
+ };
54
+ }
55
+ });
56
+ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
57
+ return openBlock(), createElementBlock("view", {
58
+ ref: "avatarRef",
59
+ style: normalizeStyle(_ctx.styles),
60
+ class: normalizeClass(_ctx.classes)
61
+ }, [
62
+ renderSlot(_ctx.$slots, "default")
63
+ ], 6);
64
+ }
65
+ const NutAvatar = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
66
+ export {
67
+ AVATAR_KEY as A,
68
+ NutAvatar as N
69
+ };
@@ -18,11 +18,11 @@ var __spreadValues = (a, b) => {
18
18
  };
19
19
  var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20
20
  import { ref, computed, reactive, watch, toRefs, openBlock, createElementBlock, normalizeClass, createElementVNode, toDisplayString, createCommentVNode, renderSlot, Fragment, renderList, normalizeStyle, createTextVNode } from "vue";
21
- import { c as createComponent } from "./component-669c158a.js";
22
- import { r as requestAniFrame } from "./raf-729dad54.js";
23
- import { u as useExpose } from "./index-79c5dc33.js";
24
- import { u as useLocale } from "./index-c0fa0f6b.js";
25
- import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
21
+ import { c as createComponent } from "./component-TCzwHGVq.js";
22
+ import { r as requestAniFrame } from "./raf-MQjoO-Ag.js";
23
+ import { u as useExpose } from "./index-nRNEaTqA.js";
24
+ import { u as useLocale } from "./index-s3RgMhc7.js";
25
+ import { _ as _export_sfc } from "./_plugin-vue_export-helper-yVxbj29m.js";
26
26
  const Utils = {
27
27
  /**
28
28
  * 是否为闫年
@@ -20,8 +20,8 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20
20
  import { reactive, computed, watch, watchEffect, toRefs, resolveComponent, openBlock, createBlock, Teleport, mergeProps, createCommentVNode, createVNode, Transition, withCtx, withDirectives, createElementVNode, normalizeClass, normalizeStyle, renderSlot, createElementBlock, vShow } from "vue";
21
21
  import { Close } from "@nutui/icons-vue";
22
22
  import NutOverlay from "./overlay/Overlay.js";
23
- import { c as createComponent } from "./component-669c158a.js";
24
- import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
23
+ import { c as createComponent } from "./component-TCzwHGVq.js";
24
+ import { _ as _export_sfc } from "./_plugin-vue_export-helper-yVxbj29m.js";
25
25
  const popupProps = {
26
26
  visible: {
27
27
  type: Boolean,
@@ -1,5 +1,5 @@
1
1
  import locale from "@nutui/nutui/dist/packages/locale/lang";
2
- import { g as getPropByPath, i as isFunction } from "./util-6f26722f.js";
2
+ import { g as getPropByPath, i as isFunction } from "./util-4Jkyw4BJ.js";
3
3
  const useLocale = (name = "") => {
4
4
  return (keyPath, ...args) => {
5
5
  name = name.toLocaleLowerCase();
@@ -1,7 +1,8 @@
1
1
  import { inject, computed, h } from "vue";
2
- import { c as createComponent } from "./component-669c158a.js";
2
+ import { c as createComponent } from "./component-TCzwHGVq.js";
3
3
  import { CheckNormal, CheckChecked } from "@nutui/icons-vue";
4
- import { p as pxCheck } from "./pxCheck-a27490eb.js";
4
+ import { p as pxCheck } from "./pxCheck-OnXlN1NC.js";
5
+ import { R as RADIO_KEY } from "./types-odSRziQJ.js";
5
6
  const { componentName, create } = createComponent("radio");
6
7
  const _sfc_main = create({
7
8
  components: {
@@ -28,7 +29,7 @@ const _sfc_main = create({
28
29
  }
29
30
  },
30
31
  setup(props, { slots }) {
31
- let parent = inject("parent", null);
32
+ let parent = inject(RADIO_KEY, null);
32
33
  const isCurValue = computed(() => {
33
34
  return parent.label.value === props.label;
34
35
  });
@@ -1,5 +1,6 @@
1
1
  import { provide, readonly, computed, watch, h } from "vue";
2
- import { c as createComponent } from "./component-669c158a.js";
2
+ import { c as createComponent } from "./component-TCzwHGVq.js";
3
+ import { R as RADIO_KEY } from "./types-odSRziQJ.js";
3
4
  const { componentName, create } = createComponent("radio-group");
4
5
  const _sfc_main = create({
5
6
  props: {
@@ -20,7 +21,7 @@ const _sfc_main = create({
20
21
  emits: ["change", "update:modelValue"],
21
22
  setup(props, { emit, slots }) {
22
23
  const updateValue = (value) => emit("update:modelValue", value);
23
- provide("parent", {
24
+ provide(RADIO_KEY, {
24
25
  label: readonly(computed(() => props.modelValue)),
25
26
  position: readonly(computed(() => props.textPosition)),
26
27
  updateValue
@@ -1,7 +1,7 @@
1
1
  import { computed, openBlock, createElementBlock, normalizeClass, Fragment, renderList, toDisplayString } from "vue";
2
- import { c as createComponent } from "../component-669c158a.js";
3
- import { p as padZero } from "../util-6f26722f.js";
4
- import { _ as _export_sfc } from "../_plugin-vue_export-helper-cc2b3d55.js";
2
+ import { c as createComponent } from "../component-TCzwHGVq.js";
3
+ import { p as padZero } from "../util-4Jkyw4BJ.js";
4
+ import { _ as _export_sfc } from "../_plugin-vue_export-helper-yVxbj29m.js";
5
5
  const { create } = createComponent("indicator");
6
6
  const _sfc_main = create({
7
7
  props: {
@@ -18,13 +18,13 @@ var __spreadValues = (a, b) => {
18
18
  };
19
19
  var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20
20
  import { ref, reactive, onMounted, onUnmounted, onActivated, onDeactivated, watch, toRefs, nextTick, resolveComponent, openBlock, createElementBlock, createElementVNode, renderSlot, createVNode, toDisplayString, createCommentVNode } from "vue";
21
- import { c as createComponent } from "../component-669c158a.js";
22
- import { j as getScrollTopRoot } from "../util-6f26722f.js";
23
- import { u as useScrollParent } from "../index-97b44e6c.js";
24
- import { r as requestAniFrame } from "../raf-729dad54.js";
21
+ import { c as createComponent } from "../component-TCzwHGVq.js";
22
+ import { j as getScrollTopRoot } from "../util-4Jkyw4BJ.js";
23
+ import { u as useScrollParent } from "../index-xDfQLRen.js";
24
+ import { r as requestAniFrame } from "../raf-MQjoO-Ag.js";
25
25
  import { Loading } from "@nutui/icons-vue";
26
- import { u as useLocale } from "../index-c0fa0f6b.js";
27
- import { _ as _export_sfc } from "../_plugin-vue_export-helper-cc2b3d55.js";
26
+ import { u as useLocale } from "../index-s3RgMhc7.js";
27
+ import { _ as _export_sfc } from "../_plugin-vue_export-helper-yVxbj29m.js";
28
28
  import "@nutui/nutui/dist/packages/locale/lang";
29
29
  const { create } = createComponent("infinite-loading");
30
30
  const cN = "NutInfiniteLoading";
@@ -15,9 +15,9 @@ var __spreadValues = (a, b) => {
15
15
  return a;
16
16
  };
17
17
  import { ref, reactive, computed, watch, onMounted, h, resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, renderSlot, createCommentVNode, createBlock, resolveDynamicComponent, normalizeStyle, toDisplayString, createTextVNode, withDirectives, createVNode, mergeProps, vShow } from "vue";
18
- import { c as createComponent } from "../component-669c158a.js";
18
+ import { c as createComponent } from "../component-TCzwHGVq.js";
19
19
  import { MaskClose } from "@nutui/icons-vue";
20
- import { _ as _export_sfc } from "../_plugin-vue_export-helper-cc2b3d55.js";
20
+ import { _ as _export_sfc } from "../_plugin-vue_export-helper-yVxbj29m.js";
21
21
  function trimExtraChar(value, char, regExp) {
22
22
  const index2 = value.indexOf(char);
23
23
  if (index2 === -1) {
@@ -1,8 +1,8 @@
1
1
  import { computed, watch, resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, renderSlot, createVNode, normalizeStyle } from "vue";
2
- import { c as createComponent } from "../component-669c158a.js";
3
- import { p as pxCheck } from "../pxCheck-a27490eb.js";
2
+ import { c as createComponent } from "../component-TCzwHGVq.js";
3
+ import { p as pxCheck } from "../pxCheck-OnXlN1NC.js";
4
4
  import { Minus, Plus } from "@nutui/icons-vue";
5
- import { _ as _export_sfc } from "../_plugin-vue_export-helper-cc2b3d55.js";
5
+ import { _ as _export_sfc } from "../_plugin-vue_export-helper-yVxbj29m.js";
6
6
  const { componentName, create } = createComponent("input-number");
7
7
  const _sfc_main = create({
8
8
  components: { Minus, Plus },
@@ -73,6 +73,8 @@ const _sfc_main = create({
73
73
  return value > Number(props.min) && !props.disabled;
74
74
  };
75
75
  const reduce = (event) => {
76
+ if (props.disabled)
77
+ return;
76
78
  emit("reduce", event);
77
79
  let output_value = Number(props.modelValue) - Number(props.step);
78
80
  if (reduceAllow() && output_value >= Number(props.min)) {
@@ -83,6 +85,8 @@ const _sfc_main = create({
83
85
  }
84
86
  };
85
87
  const add = (event) => {
88
+ if (props.disabled)
89
+ return;
86
90
  emit("add", event);
87
91
  let output_value = Number(props.modelValue) + Number(props.step);
88
92
  if (addAllow() && output_value <= Number(props.max)) {