@nutui/nutui 3.2.5 → 3.2.6-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (178) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/README.md +18 -4
  3. package/dist/nutui.es.js +305 -209
  4. package/dist/nutui.umd.js +305 -209
  5. package/dist/packages/_es/ActionSheet.js +1 -1
  6. package/dist/packages/_es/Address.js +1 -1
  7. package/dist/packages/_es/AddressList.js +1 -1
  8. package/dist/packages/_es/Animate.js +1 -1
  9. package/dist/packages/_es/Audio.js +1 -1
  10. package/dist/packages/_es/AudioOperate.js +1 -1
  11. package/dist/packages/_es/Avatar.js +1 -1
  12. package/dist/packages/_es/AvatarGroup.js +1 -1
  13. package/dist/packages/_es/BackTop.js +1 -1
  14. package/dist/packages/_es/Badge.js +10 -6
  15. package/dist/packages/_es/Barrage.js +1 -1
  16. package/dist/packages/_es/Button.js +1 -1
  17. package/dist/packages/_es/Calendar.js +1 -1
  18. package/dist/packages/_es/CalendarItem.js +1 -1
  19. package/dist/packages/_es/Card.js +1 -1
  20. package/dist/packages/_es/Cascader.js +1 -1
  21. package/dist/packages/_es/Category.js +1 -1
  22. package/dist/packages/_es/CategoryPane.js +1 -1
  23. package/dist/packages/_es/Cell.js +1 -1
  24. package/dist/packages/_es/CellGroup.js +1 -1
  25. package/dist/packages/_es/Checkbox.js +1 -1
  26. package/dist/packages/_es/CheckboxGroup.js +1 -1
  27. package/dist/packages/_es/CircleProgress.js +1 -1
  28. package/dist/packages/_es/Col.js +1 -1
  29. package/dist/packages/_es/Collapse.js +1 -1
  30. package/dist/packages/_es/CollapseItem.js +1 -1
  31. package/dist/packages/_es/Comment.js +1 -1
  32. package/dist/packages/_es/ConfigProvider.js +1 -1
  33. package/dist/packages/_es/CountDown.js +1 -1
  34. package/dist/packages/_es/CountUp.js +1 -1
  35. package/dist/packages/_es/DatePicker.js +1 -1
  36. package/dist/packages/_es/Dialog.js +1 -1
  37. package/dist/packages/_es/Divider.js +1 -1
  38. package/dist/packages/_es/Drag.js +1 -1
  39. package/dist/packages/_es/Ecard.js +1 -1
  40. package/dist/packages/_es/Elevator.js +1 -1
  41. package/dist/packages/_es/Ellipsis.js +1 -1
  42. package/dist/packages/_es/Empty.js +1 -1
  43. package/dist/packages/_es/FixedNav.js +1 -1
  44. package/dist/packages/_es/Form.js +1 -1
  45. package/dist/packages/_es/FormItem.js +1 -1
  46. package/dist/packages/_es/Grid.js +1 -1
  47. package/dist/packages/_es/GridItem.js +1 -1
  48. package/dist/packages/_es/Icon.js +1 -1
  49. package/dist/packages/_es/Image.js +1 -1
  50. package/dist/packages/_es/ImagePreview.js +35 -19
  51. package/dist/packages/_es/Indicator.js +1 -1
  52. package/dist/packages/_es/InfiniteLoading.js +1 -1
  53. package/dist/packages/_es/Input.js +8 -4
  54. package/dist/packages/_es/InputNumber.js +1 -1
  55. package/dist/packages/_es/Invoice.js +1 -1
  56. package/dist/packages/_es/Layout.js +1 -1
  57. package/dist/packages/_es/List.js +1 -1
  58. package/dist/packages/_es/Menu.js +1 -1
  59. package/dist/packages/_es/MenuItem.js +1 -1
  60. package/dist/packages/_es/Navbar.js +1 -1
  61. package/dist/packages/_es/NoticeBar.js +5 -3
  62. package/dist/packages/_es/Notify.js +25 -36
  63. package/dist/packages/_es/NumberKeyboard.js +1 -1
  64. package/dist/packages/_es/OldPicker.js +1 -1
  65. package/dist/packages/_es/OverLay.js +1 -1
  66. package/dist/packages/_es/Pagination.js +1 -1
  67. package/dist/packages/_es/Picker.js +13 -6
  68. package/dist/packages/_es/Popover.js +1 -1
  69. package/dist/packages/_es/Popup.js +1 -1
  70. package/dist/packages/_es/Price.js +1 -1
  71. package/dist/packages/_es/Progress.js +1 -1
  72. package/dist/packages/_es/PullRefresh.js +1 -1
  73. package/dist/packages/_es/Radio.js +1 -1
  74. package/dist/packages/_es/RadioGroup.js +1 -1
  75. package/dist/packages/_es/Range.js +1 -1
  76. package/dist/packages/_es/Rate.js +1 -1
  77. package/dist/packages/_es/Row.js +1 -1
  78. package/dist/packages/_es/SearchBar.js +1 -1
  79. package/dist/packages/_es/ShortPassword.js +1 -1
  80. package/dist/packages/_es/SideNavBar.js +1 -1
  81. package/dist/packages/_es/SideNavBarItem.js +1 -1
  82. package/dist/packages/_es/Signature.js +1 -1
  83. package/dist/packages/_es/Skeleton.js +1 -1
  84. package/dist/packages/_es/Sku.js +1 -1
  85. package/dist/packages/_es/Step.js +1 -1
  86. package/dist/packages/_es/Steps.js +1 -1
  87. package/dist/packages/_es/Sticky.js +1 -1
  88. package/dist/packages/_es/SubSideNavBar.js +1 -1
  89. package/dist/packages/_es/Swipe.js +1 -1
  90. package/dist/packages/_es/Swiper.js +1 -1
  91. package/dist/packages/_es/SwiperItem.js +1 -1
  92. package/dist/packages/_es/Switch.js +1 -1
  93. package/dist/packages/_es/TabPane.js +1 -1
  94. package/dist/packages/_es/Tabbar.js +34 -5
  95. package/dist/packages/_es/TabbarItem.js +1 -1
  96. package/dist/packages/_es/Table.js +1 -1
  97. package/dist/packages/_es/Tabs.js +1 -1
  98. package/dist/packages/_es/Tag.js +1 -1
  99. package/dist/packages/_es/TextArea.js +1 -1
  100. package/dist/packages/_es/TimeDetail.js +1 -1
  101. package/dist/packages/_es/TimePannel.js +1 -1
  102. package/dist/packages/_es/TimeSelect.js +1 -1
  103. package/dist/packages/_es/Toast.js +1 -1
  104. package/dist/packages/_es/TrendArrow.js +1 -1
  105. package/dist/packages/_es/Uploader.js +1 -1
  106. package/dist/packages/_es/Video.js +48 -2
  107. package/dist/packages/_es/WaterMark.js +1 -1
  108. package/dist/packages/_es/common.js +1 -1
  109. package/dist/packages/_es/component.js +1 -1
  110. package/dist/packages/_es/index.js +1 -1
  111. package/dist/packages/_es/index2.js +1 -1
  112. package/dist/packages/_es/index3.js +1 -1
  113. package/dist/packages/_es/index4.js +1 -1
  114. package/dist/packages/_es/index5.js +1 -1
  115. package/dist/packages/_es/plugin-vue_export-helper.js +1 -1
  116. package/dist/packages/_es/pxCheck.js +1 -1
  117. package/dist/packages/_es/raf.js +1 -1
  118. package/dist/packages/checkbox/index.scss +1 -0
  119. package/dist/packages/locale/lang/baseLang.js +1 -1
  120. package/dist/packages/locale/lang/en-US.js +1 -1
  121. package/dist/packages/locale/lang/id-ID.js +1 -1
  122. package/dist/packages/locale/lang/index.js +1 -1
  123. package/dist/packages/locale/lang/zh-CN.js +1 -1
  124. package/dist/packages/locale/lang/zh-TW.js +1 -1
  125. package/dist/packages/menuitem/index.scss +12 -3
  126. package/dist/packages/signature/index.scss +4 -1
  127. package/dist/packages/swiperitem/index.scss +1 -1
  128. package/dist/smartips/attributes.json +9 -1
  129. package/dist/smartips/tags.json +3 -1
  130. package/dist/smartips/web-types.json +20 -2
  131. package/dist/style.css +1 -1
  132. package/dist/styles/themes/default.scss +53 -53
  133. package/dist/styles/themes/jdb.scss +53 -53
  134. package/dist/styles/themes/jddkh.scss +53 -53
  135. package/dist/styles/themes/jdt.scss +53 -53
  136. package/dist/types/__VUE/actionsheet/index.vue.d.ts +2 -2
  137. package/dist/types/__VUE/address/index.vue.d.ts +2 -2
  138. package/dist/types/__VUE/avatar/index.vue.d.ts +2 -2
  139. package/dist/types/__VUE/avatargroup/index.vue.d.ts +1 -1
  140. package/dist/types/__VUE/backtop/index.vue.d.ts +1 -1
  141. package/dist/types/__VUE/badge/index.vue.d.ts +1 -1
  142. package/dist/types/__VUE/button/index.vue.d.ts +1 -1
  143. package/dist/types/__VUE/calendar/index.vue.d.ts +1 -1
  144. package/dist/types/__VUE/cascader/index.vue.d.ts +1 -1
  145. package/dist/types/__VUE/cell/index.vue.d.ts +3 -3
  146. package/dist/types/__VUE/collapseitem/index.vue.d.ts +1 -1
  147. package/dist/types/__VUE/datepicker/index.vue.d.ts +1 -1
  148. package/dist/types/__VUE/dialog/index.vue.d.ts +2 -2
  149. package/dist/types/__VUE/divider/index.vue.d.ts +1 -1
  150. package/dist/types/__VUE/fixednav/index.vue.d.ts +2 -2
  151. package/dist/types/__VUE/grid/index.vue.d.ts +1 -1
  152. package/dist/types/__VUE/image/index.vue.d.ts +4 -4
  153. package/dist/types/__VUE/imagepreview/imagePreviewItem.vue.d.ts +1 -0
  154. package/dist/types/__VUE/imagepreview/index.vue.d.ts +10 -1
  155. package/dist/types/__VUE/infiniteloading/index.vue.d.ts +4 -4
  156. package/dist/types/__VUE/input/index.vue.d.ts +3 -3
  157. package/dist/types/__VUE/menu/index.vue.d.ts +1 -1
  158. package/dist/types/__VUE/navbar/index.vue.d.ts +1 -1
  159. package/dist/types/__VUE/noticebar/index.vue.d.ts +4 -3
  160. package/dist/types/__VUE/notify/index.vue.d.ts +8 -10
  161. package/dist/types/__VUE/numberkeyboard/index.vue.d.ts +1 -1
  162. package/dist/types/__VUE/oldpicker/index.vue.d.ts +2 -2
  163. package/dist/types/__VUE/picker/index.vue.d.ts +2 -2
  164. package/dist/types/__VUE/popover/index.vue.d.ts +4 -4
  165. package/dist/types/__VUE/popup/index.vue.d.ts +3 -3
  166. package/dist/types/__VUE/range/index.vue.d.ts +1 -1
  167. package/dist/types/__VUE/shortpassword/index.vue.d.ts +1 -1
  168. package/dist/types/__VUE/sku/index.vue.d.ts +2 -2
  169. package/dist/types/__VUE/step/index.vue.d.ts +1 -1
  170. package/dist/types/__VUE/swipe/index.vue.d.ts +2 -2
  171. package/dist/types/__VUE/tabbar/index.vue.d.ts +11 -0
  172. package/dist/types/__VUE/tabbaritem/index.vue.d.ts +1 -1
  173. package/dist/types/__VUE/toast/index.vue.d.ts +1 -1
  174. package/dist/types/__VUE/uploader/index.vue.d.ts +1 -1
  175. package/dist/types/__VUE/video/index.vue.d.ts +4 -2
  176. package/dist/types/__VUE/watermark/index.vue.d.ts +1 -1
  177. package/dist/types/index.d.ts +1 -1
  178. package/package.json +3 -2
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.2.5 Tue Oct 25 2022 18:40:57 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.6-beta.2 Fri Nov 04 2022 17:24:29 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.2.5 Tue Oct 25 2022 18:40:57 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.6-beta.2 Fri Nov 04 2022 17:24:29 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,10 +1,11 @@
1
1
  /*!
2
- * @nutui/nutui v3.2.5 Tue Oct 25 2022 18:40:57 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.6-beta.2 Fri Nov 04 2022 17:24:29 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
6
6
  import { h, ref, reactive, computed, watch, onMounted, onActivated, onDeactivated, onUnmounted, toRefs, resolveComponent, openBlock, createElementBlock, normalizeClass, withDirectives, normalizeStyle, renderSlot, createBlock, createCommentVNode, createElementVNode, createTextVNode, toDisplayString, withModifiers, createVNode, mergeProps, vShow, Fragment, renderList } from "vue";
7
7
  import { c as createComponent } from "./component.js";
8
+ import { p as pxCheck } from "./pxCheck.js";
8
9
  import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
9
10
  import "../locale/lang";
10
11
  const { componentName, create } = createComponent("noticebar");
@@ -281,7 +282,8 @@ const _sfc_main = create({
281
282
  onAnimationEnd,
282
283
  go,
283
284
  handleClickIcon,
284
- slots
285
+ slots,
286
+ pxCheck
285
287
  };
286
288
  }
287
289
  });
@@ -370,7 +372,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
370
372
  return openBlock(), createElementBlock("li", {
371
373
  class: "horseLamp_list_item",
372
374
  key: index2,
373
- style: normalizeStyle({ height: _ctx.height }),
375
+ style: normalizeStyle({ height: _ctx.pxCheck(_ctx.height) }),
374
376
  onClick: ($event) => _ctx.go(item)
375
377
  }, toDisplayString(item), 13, _hoisted_2);
376
378
  }), 128))
@@ -1,9 +1,9 @@
1
1
  /*!
2
- * @nutui/nutui v3.2.5 Tue Oct 25 2022 18:40:57 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.6-beta.2 Fri Nov 04 2022 17:24:29 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
6
- import { reactive, onMounted, ref, watch, resolveComponent, openBlock, createBlock, withCtx, createElementVNode, normalizeClass, normalizeStyle, renderSlot, createElementBlock, Fragment, createTextVNode, toDisplayString, createVNode, render, h } from "vue";
6
+ import { ref, watch, resolveComponent, openBlock, createBlock, withCtx, createElementVNode, normalizeClass, normalizeStyle, renderSlot, createElementBlock, Fragment, createTextVNode, toDisplayString, createVNode, render, onMounted, h } from "vue";
7
7
  import { c as createComponent } from "./component.js";
8
8
  import Popup from "./Popup.js";
9
9
  import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
@@ -30,7 +30,7 @@ const _sfc_main = create({
30
30
  type: String,
31
31
  default: "danger"
32
32
  },
33
- modelVisible: {
33
+ visible: {
34
34
  type: Boolean,
35
35
  default: false
36
36
  },
@@ -46,58 +46,47 @@ const _sfc_main = create({
46
46
  onClick: Function,
47
47
  unmount: Function
48
48
  },
49
- setup(props) {
50
- let timer = null;
51
- const state = reactive({
52
- mounted: false
53
- });
54
- onMounted(() => {
55
- });
56
- const showPopup = ref(props.modelVisible);
49
+ emits: ["update:visible"],
50
+ setup(props, { emit }) {
57
51
  const clickCover = () => {
58
52
  props.onClick && props.onClick();
59
53
  };
54
+ let timer = null;
60
55
  const clearTimer = () => {
61
- if (timer) {
62
- clearTimeout(timer);
63
- timer = null;
64
- }
56
+ timer && clearTimeout(timer);
57
+ timer = null;
65
58
  };
66
59
  const hide = () => {
67
- state.mounted = false;
60
+ emit("update:visible", false);
68
61
  };
69
- const show = () => {
70
- clearTimer();
71
- if (props.duration) {
72
- timer = setTimeout(() => {
73
- hide();
74
- }, props.duration);
75
- }
76
- };
77
- if (props.duration) {
78
- show();
79
- }
80
- watch(
81
- () => props.duration,
82
- (val) => {
83
- if (val) {
84
- show();
62
+ const isShowPopup = ref(false);
63
+ const unWatch = watch(
64
+ () => props.visible,
65
+ (newVal) => {
66
+ isShowPopup.value = props.visible;
67
+ const DURATION = props.duration;
68
+ if (newVal && DURATION) {
69
+ timer = setTimeout(() => {
70
+ hide();
71
+ }, DURATION);
85
72
  }
86
- }
73
+ },
74
+ { immediate: true }
87
75
  );
88
76
  const onAfterLeave = () => {
89
77
  clearTimer();
78
+ unWatch && unWatch();
90
79
  props.unmount && props.unmount(props.id);
91
80
  props.onClose && props.onClose();
92
81
  };
93
- return { state, hide, onAfterLeave, clickCover, showPopup };
82
+ return { onAfterLeave, clickCover, isShowPopup };
94
83
  }
95
84
  });
96
85
  function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
97
86
  const _component_nut_popup = resolveComponent("nut-popup");
98
87
  return openBlock(), createBlock(_component_nut_popup, {
99
- visible: _ctx.showPopup,
100
- "onUpdate:visible": _cache[1] || (_cache[1] = ($event) => _ctx.showPopup = $event),
88
+ visible: _ctx.isShowPopup,
89
+ "onUpdate:visible": _cache[1] || (_cache[1] = ($event) => _ctx.isShowPopup = $event),
101
90
  position: _ctx.position,
102
91
  overlay: false,
103
92
  isWrapTeleport: _ctx.isWrapTeleport
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.2.5 Tue Oct 25 2022 18:40:57 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.6-beta.2 Fri Nov 04 2022 17:24:29 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.2.5 Tue Oct 25 2022 18:40:57 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.6-beta.2 Fri Nov 04 2022 17:24:29 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.2.5 Tue Oct 25 2022 18:40:57 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.6-beta.2 Fri Nov 04 2022 17:24:29 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.2.5 Tue Oct 25 2022 18:40:57 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.6-beta.2 Fri Nov 04 2022 17:24:29 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.2.5 Tue Oct 25 2022 18:40:57 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.6-beta.2 Fri Nov 04 2022 17:24:29 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -330,7 +330,9 @@ const _sfc_main = create({
330
330
  show: false,
331
331
  formattedColumns: props.columns
332
332
  });
333
- let defaultValues = ref(props.modelValue);
333
+ let defaultValues = ref(
334
+ Array.isArray(props.modelValue) && props.modelValue.length > 0 ? props.modelValue : []
335
+ );
334
336
  const pickerColumn = ref([]);
335
337
  const swipeRef = (el) => {
336
338
  if (el && pickerColumn.value.length < columnsList.value.length) {
@@ -369,7 +371,10 @@ const _sfc_main = create({
369
371
  case "multiple":
370
372
  return state.formattedColumns;
371
373
  case "cascade":
372
- return formatCascade(state.formattedColumns, defaultValues.value);
374
+ return formatCascade(
375
+ state.formattedColumns,
376
+ defaultValues.value ? defaultValues.value : []
377
+ );
373
378
  default:
374
379
  return [state.formattedColumns];
375
380
  }
@@ -403,6 +408,7 @@ const _sfc_main = create({
403
408
  };
404
409
  const changeHandler = (columnIndex, option) => {
405
410
  if (option && Object.keys(option).length) {
411
+ defaultValues.value = defaultValues.value ? defaultValues.value : [];
406
412
  if (columnsType.value === "cascade") {
407
413
  defaultValues.value[columnIndex] = option.value ? option.value : "";
408
414
  let index = columnIndex;
@@ -467,14 +473,15 @@ const _sfc_main = create({
467
473
  emit("update:modelValue", newValues);
468
474
  }
469
475
  },
470
- { immediate: true }
476
+ { deep: true }
471
477
  );
472
478
  watch(
473
479
  () => props.visible,
474
480
  (val) => {
475
481
  state.show = val;
476
- if (val)
482
+ if (val) {
477
483
  pickerColumn.value = [];
484
+ }
478
485
  }
479
486
  );
480
487
  watch(
@@ -553,7 +560,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
553
560
  column: column2,
554
561
  readonly: _ctx.readonly,
555
562
  columnsType: _ctx.columnsType,
556
- value: _ctx.defaultValues[columnIndex],
563
+ value: _ctx.defaultValues && _ctx.defaultValues[columnIndex],
557
564
  threeDimensional: _ctx.threeDimensional,
558
565
  swipeDuration: _ctx.swipeDuration,
559
566
  onChange: (option) => {
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.2.5 Tue Oct 25 2022 18:40:57 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.6-beta.2 Fri Nov 04 2022 17:24:29 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.2.5 Tue Oct 25 2022 18:40:57 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.6-beta.2 Fri Nov 04 2022 17:24:29 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.2.5 Tue Oct 25 2022 18:40:57 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.6-beta.2 Fri Nov 04 2022 17:24:29 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.2.5 Tue Oct 25 2022 18:40:57 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.6-beta.2 Fri Nov 04 2022 17:24:29 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.2.5 Tue Oct 25 2022 18:40:57 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.6-beta.2 Fri Nov 04 2022 17:24:29 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.2.5 Tue Oct 25 2022 18:40:57 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.6-beta.2 Fri Nov 04 2022 17:24:29 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.2.5 Tue Oct 25 2022 18:40:57 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.6-beta.2 Fri Nov 04 2022 17:24:29 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.2.5 Tue Oct 25 2022 18:40:57 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.6-beta.2 Fri Nov 04 2022 17:24:29 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.2.5 Tue Oct 25 2022 18:40:57 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.6-beta.2 Fri Nov 04 2022 17:24:29 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.2.5 Tue Oct 25 2022 18:40:57 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.6-beta.2 Fri Nov 04 2022 17:24:29 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.2.5 Tue Oct 25 2022 18:40:57 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.6-beta.2 Fri Nov 04 2022 17:24:29 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.2.5 Tue Oct 25 2022 18:40:57 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.6-beta.2 Fri Nov 04 2022 17:24:29 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.2.5 Tue Oct 25 2022 18:40:57 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.6-beta.2 Fri Nov 04 2022 17:24:29 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.2.5 Tue Oct 25 2022 18:40:57 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.6-beta.2 Fri Nov 04 2022 17:24:29 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.2.5 Tue Oct 25 2022 18:40:57 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.6-beta.2 Fri Nov 04 2022 17:24:29 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.2.5 Tue Oct 25 2022 18:40:57 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.6-beta.2 Fri Nov 04 2022 17:24:29 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.2.5 Tue Oct 25 2022 18:40:57 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.6-beta.2 Fri Nov 04 2022 17:24:29 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.2.5 Tue Oct 25 2022 18:40:57 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.6-beta.2 Fri Nov 04 2022 17:24:29 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.2.5 Tue Oct 25 2022 18:40:57 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.6-beta.2 Fri Nov 04 2022 17:24:29 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.2.5 Tue Oct 25 2022 18:40:57 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.6-beta.2 Fri Nov 04 2022 17:24:29 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.2.5 Tue Oct 25 2022 18:40:57 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.6-beta.2 Fri Nov 04 2022 17:24:29 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.2.5 Tue Oct 25 2022 18:40:57 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.6-beta.2 Fri Nov 04 2022 17:24:29 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.2.5 Tue Oct 25 2022 18:40:57 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.6-beta.2 Fri Nov 04 2022 17:24:29 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.2.5 Tue Oct 25 2022 18:40:57 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.6-beta.2 Fri Nov 04 2022 17:24:29 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.2.5 Tue Oct 25 2022 18:40:57 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.6-beta.2 Fri Nov 04 2022 17:24:29 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.2.5 Tue Oct 25 2022 18:40:57 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.6-beta.2 Fri Nov 04 2022 17:24:29 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,9 +1,9 @@
1
1
  /*!
2
- * @nutui/nutui v3.2.5 Tue Oct 25 2022 18:40:57 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.6-beta.2 Fri Nov 04 2022 17:24:29 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
6
- import { reactive, provide, watch, openBlock, createElementBlock, normalizeClass, renderSlot } from "vue";
6
+ import { toRefs, ref, reactive, provide, watch, onMounted, nextTick, openBlock, createElementBlock, normalizeStyle, createElementVNode, normalizeClass, renderSlot } from "vue";
7
7
  import { c as createComponent } from "./component.js";
8
8
  import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
9
9
  import "../locale/lang";
@@ -37,14 +37,21 @@ const _sfc_main = create({
37
37
  safeAreaInsetBottom: {
38
38
  type: Boolean,
39
39
  default: false
40
+ },
41
+ placeholder: {
42
+ type: Boolean,
43
+ default: false
40
44
  }
41
45
  },
42
46
  emits: ["tab-switch", "update:visible"],
43
47
  setup(props, { emit, slots }) {
48
+ const { bottom, placeholder } = toRefs(props);
49
+ const height = ref();
44
50
  const mdValue = reactive({
45
51
  val: props.visible,
46
52
  children: []
47
53
  });
54
+ const nutTabbar = ref(null);
48
55
  function changeIndex(index2, active) {
49
56
  emit("update:visible", active);
50
57
  parentData.modelValue = active;
@@ -65,17 +72,39 @@ const _sfc_main = create({
65
72
  parentData.modelValue = value;
66
73
  }
67
74
  );
75
+ onMounted(() => {
76
+ if (bottom.value && placeholder.value) {
77
+ nextTick(() => {
78
+ var _a;
79
+ height.value = (_a = nutTabbar == null ? void 0 : nutTabbar.value) == null ? void 0 : _a.getBoundingClientRect().height;
80
+ });
81
+ }
82
+ });
68
83
  return {
69
- changeIndex
84
+ changeIndex,
85
+ nutTabbar,
86
+ height
70
87
  };
71
88
  }
72
89
  });
73
90
  function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
74
- return openBlock(), createElementBlock("view", {
91
+ return _ctx.bottom && _ctx.placeholder ? (openBlock(), createElementBlock("div", {
92
+ key: 0,
93
+ class: "nut-tabbar__placeholder",
94
+ style: normalizeStyle({ height: _ctx.height + "px" })
95
+ }, [
96
+ createElementVNode("view", {
97
+ ref: "nutTabbar",
98
+ class: normalizeClass(["nut-tabbar", { "nut-tabbar-bottom": _ctx.bottom, "nut-tabbar-safebottom": _ctx.safeAreaInsetBottom }])
99
+ }, [
100
+ renderSlot(_ctx.$slots, "default")
101
+ ], 2)
102
+ ], 4)) : (openBlock(), createElementBlock("view", {
103
+ key: 1,
75
104
  class: normalizeClass(["nut-tabbar", { "nut-tabbar-bottom": _ctx.bottom, "nut-tabbar-safebottom": _ctx.safeAreaInsetBottom }])
76
105
  }, [
77
106
  renderSlot(_ctx.$slots, "default")
78
- ], 2);
107
+ ], 2));
79
108
  }
80
109
  var index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
81
110
  export { index as default };
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.2.5 Tue Oct 25 2022 18:40:57 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.6-beta.2 Fri Nov 04 2022 17:24:29 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.2.5 Tue Oct 25 2022 18:40:57 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.6-beta.2 Fri Nov 04 2022 17:24:29 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.2.5 Tue Oct 25 2022 18:40:57 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.6-beta.2 Fri Nov 04 2022 17:24:29 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.2.5 Tue Oct 25 2022 18:40:57 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.6-beta.2 Fri Nov 04 2022 17:24:29 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.2.5 Tue Oct 25 2022 18:40:57 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.6-beta.2 Fri Nov 04 2022 17:24:29 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.2.5 Tue Oct 25 2022 18:40:57 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.6-beta.2 Fri Nov 04 2022 17:24:29 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.2.5 Tue Oct 25 2022 18:40:57 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.6-beta.2 Fri Nov 04 2022 17:24:29 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.2.5 Tue Oct 25 2022 18:40:57 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.6-beta.2 Fri Nov 04 2022 17:24:29 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.2.5 Tue Oct 25 2022 18:40:57 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.6-beta.2 Fri Nov 04 2022 17:24:29 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.2.5 Tue Oct 25 2022 18:40:57 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.6-beta.2 Fri Nov 04 2022 17:24:29 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.2.5 Tue Oct 25 2022 18:40:57 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.6-beta.2 Fri Nov 04 2022 17:24:29 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */