@nutui/nutui 3.1.16 → 3.1.18-beta.0

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 (137) hide show
  1. package/CHANGELOG.md +37 -0
  2. package/README.md +1 -1
  3. package/dist/nutui.d.ts +3 -1
  4. package/dist/nutui.es.js +1860 -773
  5. package/dist/nutui.umd.js +1871 -778
  6. package/dist/packages/_es/ActionSheet.js +8 -3
  7. package/dist/packages/_es/Address.js +60 -7
  8. package/dist/packages/_es/Audio.js +289 -0
  9. package/dist/packages/_es/Avatar.js +1 -1
  10. package/dist/packages/_es/BackTop.js +3 -3
  11. package/dist/packages/_es/Badge.js +1 -1
  12. package/dist/packages/_es/Barrage.js +1 -1
  13. package/dist/packages/_es/Button.js +13 -4
  14. package/dist/packages/_es/Calendar.js +428 -209
  15. package/dist/packages/_es/Card.js +1 -2
  16. package/dist/packages/_es/Cascader.js +2 -2
  17. package/dist/packages/_es/Cell.js +2 -2
  18. package/dist/packages/_es/CellGroup.js +1 -1
  19. package/dist/packages/_es/Checkbox.js +2 -2
  20. package/dist/packages/_es/CheckboxGroup.js +2 -2
  21. package/dist/packages/_es/CircleProgress.js +1 -1
  22. package/dist/packages/_es/Col.js +1 -1
  23. package/dist/packages/_es/Collapse.js +1 -1
  24. package/dist/packages/_es/CollapseItem.js +4 -2
  25. package/dist/packages/_es/CountDown.js +1 -1
  26. package/dist/packages/_es/CountUp.js +1 -1
  27. package/dist/packages/_es/DatePicker.js +1 -2
  28. package/dist/packages/_es/Dialog.js +1 -1
  29. package/dist/packages/_es/Divider.js +1 -1
  30. package/dist/packages/_es/Drag.js +1 -1
  31. package/dist/packages/_es/Elevator.js +10 -5
  32. package/dist/packages/_es/Empty.js +1 -1
  33. package/dist/packages/_es/FixedNav.js +1 -1
  34. package/dist/packages/_es/Form.js +1 -1
  35. package/dist/packages/_es/FormItem.js +1 -1
  36. package/dist/packages/_es/Grid.js +1 -1
  37. package/dist/packages/_es/GridItem.js +2 -2
  38. package/dist/packages/_es/Icon.js +1 -1
  39. package/dist/packages/_es/ImagePreview.js +8 -5
  40. package/dist/packages/_es/Indicator.js +1 -1
  41. package/dist/packages/_es/InfiniteLoading.js +1 -1
  42. package/dist/packages/_es/Input.js +7 -2
  43. package/dist/packages/_es/InputNumber.js +1 -1
  44. package/dist/packages/_es/Layout.js +1 -1
  45. package/dist/packages/_es/Menu.js +1 -1
  46. package/dist/packages/_es/MenuItem.js +1 -1
  47. package/dist/packages/_es/Navbar.js +18 -59
  48. package/dist/packages/_es/NoticeBar.js +38 -23
  49. package/dist/packages/_es/Notify.js +2 -2
  50. package/dist/packages/_es/NumberKeyboard.js +1 -2
  51. package/dist/packages/_es/OverLay.js +1 -1
  52. package/dist/packages/_es/Pagination.js +1 -1
  53. package/dist/packages/_es/Picker.js +2 -1
  54. package/dist/packages/_es/Popover.js +4 -1
  55. package/dist/packages/_es/Popup.js +1 -1
  56. package/dist/packages/_es/Price.js +1 -1
  57. package/dist/packages/_es/Progress.js +24 -11
  58. package/dist/packages/_es/Radio.js +2 -2
  59. package/dist/packages/_es/RadioGroup.js +1 -1
  60. package/dist/packages/_es/Range.js +2 -2
  61. package/dist/packages/_es/Rate.js +1 -1
  62. package/dist/packages/_es/Row.js +1 -1
  63. package/dist/packages/_es/SearchBar.js +1 -1
  64. package/dist/packages/_es/ShortPassword.js +12 -4
  65. package/dist/packages/_es/SideNavBar.js +1 -1
  66. package/dist/packages/_es/SideNavBarItem.js +1 -1
  67. package/dist/packages/_es/Signature.js +1 -1
  68. package/dist/packages/_es/Skeleton.js +8 -6
  69. package/dist/packages/_es/Sku.js +1 -1
  70. package/dist/packages/_es/Step.js +1 -1
  71. package/dist/packages/_es/Steps.js +1 -1
  72. package/dist/packages/_es/Sticky.js +143 -0
  73. package/dist/packages/_es/SubSideNavBar.js +1 -1
  74. package/dist/packages/_es/Swipe.js +2 -2
  75. package/dist/packages/_es/Swiper.js +2 -2
  76. package/dist/packages/_es/SwiperItem.js +3 -8
  77. package/dist/packages/_es/Switch.js +2 -2
  78. package/dist/packages/_es/TabPane.js +1 -1
  79. package/dist/packages/_es/Tabbar.js +1 -1
  80. package/dist/packages/_es/TabbarItem.js +7 -3
  81. package/dist/packages/_es/Table.js +2 -2
  82. package/dist/packages/_es/Tabs.js +1 -1
  83. package/dist/packages/_es/Tag.js +1 -1
  84. package/dist/packages/_es/TextArea.js +1 -1
  85. package/dist/packages/_es/TimeDetail.js +1 -1
  86. package/dist/packages/_es/TimePannel.js +1 -1
  87. package/dist/packages/_es/TimeSelect.js +7 -2
  88. package/dist/packages/_es/Toast.js +15 -8
  89. package/dist/packages/_es/Uploader.js +1 -1
  90. package/dist/packages/_es/Video.js +1 -55
  91. package/dist/packages/_es/common.js +1 -1
  92. package/dist/packages/_es/component.js +1 -1
  93. package/dist/packages/_es/index.js +5 -7
  94. package/dist/packages/_es/index2.js +7 -58
  95. package/dist/packages/_es/index3.js +1 -1
  96. package/dist/packages/_es/index4.js +64 -0
  97. package/dist/packages/_es/plugin-vue_export-helper.js +1 -1
  98. package/dist/packages/_es/pxCheck.js +1 -1
  99. package/dist/packages/_es/raf.js +1 -1
  100. package/dist/packages/_es/util.js +1 -1
  101. package/dist/packages/actionsheet/index.scss +7 -6
  102. package/dist/packages/address/index.scss +8 -0
  103. package/dist/packages/audio/index.scss +66 -0
  104. package/dist/packages/audiooperate/index.scss +13 -0
  105. package/dist/packages/button/index.scss +5 -5
  106. package/dist/packages/calendar/index.scss +47 -41
  107. package/dist/packages/calendaritem/index.scss +57 -42
  108. package/dist/packages/cell/index.scss +3 -3
  109. package/dist/packages/cellgroup/index.scss +1 -1
  110. package/dist/packages/elevator/index.scss +3 -0
  111. package/dist/packages/infiniteloading/index.scss +1 -1
  112. package/dist/packages/input/index.scss +4 -2
  113. package/dist/packages/navbar/index.scss +2 -0
  114. package/dist/packages/noticebar/index.scss +11 -5
  115. package/dist/packages/notify/index.scss +1 -0
  116. package/dist/packages/progress/index.scss +21 -17
  117. package/dist/packages/range/index.scss +8 -8
  118. package/dist/packages/row/index.scss +3 -0
  119. package/dist/packages/sticky/index.scss +5 -0
  120. package/dist/packages/swiper/index.scss +4 -4
  121. package/dist/packages/switch/index.scss +8 -8
  122. package/dist/packages/tabbar/index.scss +7 -4
  123. package/dist/packages/tabbaritem/index.scss +4 -3
  124. package/dist/packages/tabs/index.scss +1 -0
  125. package/dist/packages/toast/index.scss +8 -7
  126. package/dist/style.css +1 -1
  127. package/dist/styles/font/config.json +6 -1
  128. package/dist/styles/font/demo_index.html +118 -3
  129. package/dist/styles/font/iconfont.css +23 -3
  130. package/dist/styles/font/iconfont.js +25 -24
  131. package/dist/styles/font/iconfont.json +35 -0
  132. package/dist/styles/font/iconfont.ttf +0 -0
  133. package/dist/styles/font/iconfont.woff +0 -0
  134. package/dist/styles/font/iconfont.woff2 +0 -0
  135. package/dist/styles/themes/default.scss +46 -43
  136. package/dist/styles/variables.scss +123 -42
  137. package/package.json +12 -13
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.1.16 Sun Jan 30 2022 10:58:10 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.1.18-beta.0 Tue Mar 08 2022 10:41:31 GMT+0800 (中国标准时间)
3
3
  * (c) 2021 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -39,7 +39,6 @@ const _sfc_main = create({
39
39
  }
40
40
  },
41
41
  setup(props, { emit, slots }) {
42
- console.log(slots["origin"]);
43
42
  const isHaveSlot = (slot) => {
44
43
  return slots[slot];
45
44
  };
@@ -35,7 +35,7 @@ var __publicField = (obj, key, value) => {
35
35
  return value;
36
36
  };
37
37
  /*!
38
- * @nutui/nutui v3.1.16 Sun Jan 30 2022 10:58:10 GMT+0800 (中国标准时间)
38
+ * @nutui/nutui v3.1.18-beta.0 Tue Mar 08 2022 10:41:31 GMT+0800 (中国标准时间)
39
39
  * (c) 2021 @jdf2e.
40
40
  * Released under the MIT License.
41
41
  */
@@ -205,7 +205,7 @@ const _sfc_main$1 = create$1({
205
205
  const tree = ref(new Tree([], {}));
206
206
  const panes = ref([]);
207
207
  const isLazy = computed(() => configs.value.lazy && Boolean(configs.value.lazyLoad));
208
- const lazyLoadMap = new Map();
208
+ const lazyLoadMap = /* @__PURE__ */ new Map();
209
209
  let currentProcessNode;
210
210
  const init = async () => {
211
211
  lazyLoadMap.clear();
@@ -1,11 +1,11 @@
1
1
  /*!
2
- * @nutui/nutui v3.1.16 Sun Jan 30 2022 10:58:10 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.1.18-beta.0 Tue Mar 08 2022 10:41:31 GMT+0800 (中国标准时间)
3
3
  * (c) 2021 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
6
6
  import { computed, resolveComponent, openBlock, createElementBlock, normalizeClass, normalizeStyle, renderSlot, createBlock, createCommentVNode, Fragment, createElementVNode, toDisplayString, createTextVNode } from "vue";
7
7
  import { c as createComponent } from "./component.js";
8
- import { useRouter } from "vue-router";
8
+ import { u as useRouter } from "./index.js";
9
9
  import { p as pxCheck } from "./pxCheck.js";
10
10
  import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
11
11
  const { componentName, create } = createComponent("cell");
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.1.16 Sun Jan 30 2022 10:58:10 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.1.18-beta.0 Tue Mar 08 2022 10:41:31 GMT+0800 (中国标准时间)
3
3
  * (c) 2021 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.1.16 Sun Jan 30 2022 10:58:10 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.1.18-beta.0 Tue Mar 08 2022 10:41:31 GMT+0800 (中国标准时间)
3
3
  * (c) 2021 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -44,7 +44,7 @@ const _sfc_main = create({
44
44
  },
45
45
  emits: ["change", "update:modelValue"],
46
46
  setup(props, { emit, slots }) {
47
- const parent = inject("parent");
47
+ const parent = inject("parent", null);
48
48
  const hasParent = computed(() => !!parent);
49
49
  const pValue = computed(() => {
50
50
  if (hasParent.value) {
@@ -1,11 +1,11 @@
1
1
  /*!
2
- * @nutui/nutui v3.1.16 Sun Jan 30 2022 10:58:10 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.1.18-beta.0 Tue Mar 08 2022 10:41:31 GMT+0800 (中国标准时间)
3
3
  * (c) 2021 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
6
6
  import { reactive, provide, computed, watch, h } from "vue";
7
7
  import { c as createComponent } from "./component.js";
8
- import { u as useExpose } from "./index.js";
8
+ import { u as useExpose } from "./index2.js";
9
9
  const { create, componentName } = createComponent("checkboxgroup");
10
10
  const _sfc_main = create({
11
11
  props: {
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.1.16 Sun Jan 30 2022 10:58:10 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.1.18-beta.0 Tue Mar 08 2022 10:41:31 GMT+0800 (中国标准时间)
3
3
  * (c) 2021 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.1.16 Sun Jan 30 2022 10:58:10 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.1.18-beta.0 Tue Mar 08 2022 10:41:31 GMT+0800 (中国标准时间)
3
3
  * (c) 2021 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.1.16 Sun Jan 30 2022 10:58:10 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.1.18-beta.0 Tue Mar 08 2022 10:41:31 GMT+0800 (中国标准时间)
3
3
  * (c) 2021 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -18,7 +18,7 @@ var __spreadValues = (a, b) => {
18
18
  };
19
19
  var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20
20
  /*!
21
- * @nutui/nutui v3.1.16 Sun Jan 30 2022 10:58:10 GMT+0800 (中国标准时间)
21
+ * @nutui/nutui v3.1.18-beta.0 Tue Mar 08 2022 10:41:31 GMT+0800 (中国标准时间)
22
22
  * (c) 2021 @jdf2e.
23
23
  * Released under the MIT License.
24
24
  */
@@ -85,7 +85,9 @@ const _sfc_main = create({
85
85
  const contentRef = ref(null);
86
86
  const onTransitionEnd = () => {
87
87
  const wrapperRefEle = document.getElementsByClassName("collapse-wrapper")[0];
88
- wrapperRefEle.style.willChange = "auto";
88
+ if (wrapperRefEle) {
89
+ wrapperRefEle.style.willChange = "auto";
90
+ }
89
91
  };
90
92
  const animation = () => {
91
93
  const wrapperRefEle = wrapperRef.value;
@@ -18,7 +18,7 @@ var __spreadValues = (a, b) => {
18
18
  };
19
19
  var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20
20
  /*!
21
- * @nutui/nutui v3.1.16 Sun Jan 30 2022 10:58:10 GMT+0800 (中国标准时间)
21
+ * @nutui/nutui v3.1.18-beta.0 Tue Mar 08 2022 10:41:31 GMT+0800 (中国标准时间)
22
22
  * (c) 2021 @jdf2e.
23
23
  * Released under the MIT License.
24
24
  */
@@ -18,7 +18,7 @@ var __spreadValues = (a, b) => {
18
18
  };
19
19
  var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20
20
  /*!
21
- * @nutui/nutui v3.1.16 Sun Jan 30 2022 10:58:10 GMT+0800 (中国标准时间)
21
+ * @nutui/nutui v3.1.18-beta.0 Tue Mar 08 2022 10:41:31 GMT+0800 (中国标准时间)
22
22
  * (c) 2021 @jdf2e.
23
23
  * Released under the MIT License.
24
24
  */
@@ -18,7 +18,7 @@ var __spreadValues = (a, b) => {
18
18
  };
19
19
  var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20
20
  /*!
21
- * @nutui/nutui v3.1.16 Sun Jan 30 2022 10:58:10 GMT+0800 (中国标准时间)
21
+ * @nutui/nutui v3.1.18-beta.0 Tue Mar 08 2022 10:41:31 GMT+0800 (中国标准时间)
22
22
  * (c) 2021 @jdf2e.
23
23
  * Released under the MIT License.
24
24
  */
@@ -235,7 +235,6 @@ const _sfc_main = create({
235
235
  return 0;
236
236
  };
237
237
  const columns = computed(() => {
238
- console.log(ranges.value);
239
238
  const val = ranges.value.map((res) => {
240
239
  return generateValue(res.range[0], res.range[1], getDateIndex(res.type), res.type);
241
240
  });
@@ -22,7 +22,7 @@ var __publicField = (obj, key, value) => {
22
22
  return value;
23
23
  };
24
24
  /*!
25
- * @nutui/nutui v3.1.16 Sun Jan 30 2022 10:58:10 GMT+0800 (中国标准时间)
25
+ * @nutui/nutui v3.1.18-beta.0 Tue Mar 08 2022 10:41:31 GMT+0800 (中国标准时间)
26
26
  * (c) 2021 @jdf2e.
27
27
  * Released under the MIT License.
28
28
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.1.16 Sun Jan 30 2022 10:58:10 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.1.18-beta.0 Tue Mar 08 2022 10:41:31 GMT+0800 (中国标准时间)
3
3
  * (c) 2021 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.1.16 Sun Jan 30 2022 10:58:10 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.1.18-beta.0 Tue Mar 08 2022 10:41:31 GMT+0800 (中国标准时间)
3
3
  * (c) 2021 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -18,12 +18,13 @@ var __spreadValues = (a, b) => {
18
18
  };
19
19
  var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20
20
  /*!
21
- * @nutui/nutui v3.1.16 Sun Jan 30 2022 10:58:10 GMT+0800 (中国标准时间)
21
+ * @nutui/nutui v3.1.18-beta.0 Tue Mar 08 2022 10:41:31 GMT+0800 (中国标准时间)
22
22
  * (c) 2021 @jdf2e.
23
23
  * Released under the MIT License.
24
24
  */
25
25
  import { ref, reactive, computed, toRefs, nextTick, openBlock, createElementBlock, normalizeClass, createElementVNode, normalizeStyle, Fragment, renderList, toDisplayString, withDirectives, vShow, createCommentVNode, withModifiers } from "vue";
26
26
  import { c as createComponent } from "./component.js";
27
+ import { u as useExpose } from "./index2.js";
27
28
  import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
28
29
  const { componentName, create } = createComponent("elevator");
29
30
  const _sfc_main = create({
@@ -56,7 +57,8 @@ const _sfc_main = create({
56
57
  y2: 0
57
58
  },
58
59
  scrollStart: false,
59
- currentIndex: 0
60
+ currentIndex: 0,
61
+ currentData: {}
60
62
  });
61
63
  const classes = computed(() => {
62
64
  const prefixCls = componentName;
@@ -116,7 +118,6 @@ const _sfc_main = create({
116
118
  state.touchState.y1 = firstTouch.pageY;
117
119
  state.anchorIndex = +index2;
118
120
  state.currentIndex = +index2;
119
- console.log(state.currentIndex);
120
121
  scrollTo(+index2);
121
122
  };
122
123
  const touchMove = (e) => {
@@ -131,10 +132,14 @@ const _sfc_main = create({
131
132
  };
132
133
  const handleClickItem = (key, item) => {
133
134
  context.emit("click-item", key, item);
135
+ state.currentData = item;
134
136
  };
135
137
  const handleClickIndex = (key) => {
136
138
  context.emit("click-index", key);
137
139
  };
140
+ useExpose({
141
+ scrollTo
142
+ });
138
143
  return __spreadProps(__spreadValues({
139
144
  classes
140
145
  }, toRefs(state)), {
@@ -171,11 +176,11 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
171
176
  createElementVNode("view", _hoisted_1, toDisplayString(item[_ctx.acceptKey]), 1),
172
177
  (openBlock(true), createElementBlock(Fragment, null, renderList(item.list, (subitem) => {
173
178
  return openBlock(), createElementBlock("view", {
174
- class: "nut-elevator__list__item__name",
179
+ class: normalizeClass(["nut-elevator__list__item__name", { "nut-elevator__list__item__name--highcolor": _ctx.currentData.id === subitem.id }]),
175
180
  key: subitem["id"],
176
181
  onClick: ($event) => _ctx.handleClickItem(item[_ctx.acceptKey], subitem),
177
182
  innerHTML: subitem.name
178
- }, null, 8, _hoisted_2);
183
+ }, null, 10, _hoisted_2);
179
184
  }), 128))
180
185
  ]);
181
186
  }), 128))
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.1.16 Sun Jan 30 2022 10:58:10 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.1.18-beta.0 Tue Mar 08 2022 10:41:31 GMT+0800 (中国标准时间)
3
3
  * (c) 2021 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.1.16 Sun Jan 30 2022 10:58:10 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.1.18-beta.0 Tue Mar 08 2022 10:41:31 GMT+0800 (中国标准时间)
3
3
  * (c) 2021 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.1.16 Sun Jan 30 2022 10:58:10 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.1.18-beta.0 Tue Mar 08 2022 10:41:31 GMT+0800 (中国标准时间)
3
3
  * (c) 2021 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.1.16 Sun Jan 30 2022 10:58:10 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.1.18-beta.0 Tue Mar 08 2022 10:41:31 GMT+0800 (中国标准时间)
3
3
  * (c) 2021 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.1.16 Sun Jan 30 2022 10:58:10 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.1.18-beta.0 Tue Mar 08 2022 10:41:31 GMT+0800 (中国标准时间)
3
3
  * (c) 2021 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,10 +1,10 @@
1
1
  /*!
2
- * @nutui/nutui v3.1.16 Sun Jan 30 2022 10:58:10 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.1.18-beta.0 Tue Mar 08 2022 10:41:31 GMT+0800 (中国标准时间)
3
3
  * (c) 2021 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
6
6
  import { inject, getCurrentInstance, onUnmounted, computed, ref, resolveComponent, openBlock, createElementBlock, normalizeClass, normalizeStyle, createElementVNode, renderSlot, Fragment, createBlock, toDisplayString } from "vue";
7
- import { useRouter } from "vue-router";
7
+ import { u as useRouter } from "./index.js";
8
8
  import { c as createComponent } from "./component.js";
9
9
  import { p as pxCheck } from "./pxCheck.js";
10
10
  import { G as GRID_KEY } from "./common.js";
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.1.16 Sun Jan 30 2022 10:58:10 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.1.18-beta.0 Tue Mar 08 2022 10:41:31 GMT+0800 (中国标准时间)
3
3
  * (c) 2021 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -22,7 +22,7 @@ var __publicField = (obj, key, value) => {
22
22
  return value;
23
23
  };
24
24
  /*!
25
- * @nutui/nutui v3.1.16 Sun Jan 30 2022 10:58:10 GMT+0800 (中国标准时间)
25
+ * @nutui/nutui v3.1.18-beta.0 Tue Mar 08 2022 10:41:31 GMT+0800 (中国标准时间)
26
26
  * (c) 2021 @jdf2e.
27
27
  * Released under the MIT License.
28
28
  */
@@ -36,7 +36,7 @@ import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
36
36
  import "./OverLay.js";
37
37
  import "./Icon.js";
38
38
  import "./pxCheck.js";
39
- import "./index.js";
39
+ import "./index2.js";
40
40
  const { componentName, create } = createComponent("imagepreview");
41
41
  const _sfc_main = create({
42
42
  props: {
@@ -71,6 +71,10 @@ const _sfc_main = create({
71
71
  autoplay: {
72
72
  type: [Number, String],
73
73
  default: 3e3
74
+ },
75
+ isWrapTeleport: {
76
+ type: Boolean,
77
+ default: false
74
78
  }
75
79
  },
76
80
  emits: ["close"],
@@ -123,7 +127,6 @@ const _sfc_main = create({
123
127
  state.eleImg.style.transform = "scale(" + state.store.scale + ")";
124
128
  };
125
129
  const onTouchStart = (event) => {
126
- console.log("start");
127
130
  const curTouchTime = new Date().getTime();
128
131
  if (curTouchTime - state.lastTouchEndTime < 300) {
129
132
  const store2 = state.store;
@@ -175,7 +178,6 @@ const _sfc_main = create({
175
178
  }
176
179
  };
177
180
  const onTouchEnd = () => {
178
- console.log("end");
179
181
  state.lastTouchEndTime = new Date().getTime();
180
182
  const store = state.store;
181
183
  store.moveable = false;
@@ -222,6 +224,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
222
224
  "pop-class": "custom-pop",
223
225
  visible: _ctx.showPop,
224
226
  "onUpdate:visible": _cache[2] || (_cache[2] = ($event) => _ctx.showPop = $event),
227
+ isWrapTeleport: _ctx.isWrapTeleport,
225
228
  onClick: _ctx.onClose,
226
229
  style: { "width": "100%" }
227
230
  }, {
@@ -273,7 +276,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
273
276
  createElementVNode("view", _hoisted_2, toDisplayString(_ctx.active) + " / " + toDisplayString(_ctx.images.length + _ctx.videos.length), 1)
274
277
  ]),
275
278
  _: 1
276
- }, 8, ["visible", "onClick"]);
279
+ }, 8, ["visible", "isWrapTeleport", "onClick"]);
277
280
  }
278
281
  var ImagePreview = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
279
282
  class ImagePreviewOptions {
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.1.16 Sun Jan 30 2022 10:58:10 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.1.18-beta.0 Tue Mar 08 2022 10:41:31 GMT+0800 (中国标准时间)
3
3
  * (c) 2021 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -18,7 +18,7 @@ var __spreadValues = (a, b) => {
18
18
  };
19
19
  var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20
20
  /*!
21
- * @nutui/nutui v3.1.16 Sun Jan 30 2022 10:58:10 GMT+0800 (中国标准时间)
21
+ * @nutui/nutui v3.1.18-beta.0 Tue Mar 08 2022 10:41:31 GMT+0800 (中国标准时间)
22
22
  * (c) 2021 @jdf2e.
23
23
  * Released under the MIT License.
24
24
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.1.16 Sun Jan 30 2022 10:58:10 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.1.18-beta.0 Tue Mar 08 2022 10:41:31 GMT+0800 (中国标准时间)
3
3
  * (c) 2021 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -90,6 +90,9 @@ const _sfc_main = create({
90
90
  [`${prefixCls}-border`]: props.hasBorder
91
91
  };
92
92
  });
93
+ const inputmode = computed(() => {
94
+ return props.type === "digit" ? "decimal" : props.type === "number" ? "numeric" : "text";
95
+ });
93
96
  const styles = computed(() => {
94
97
  return {
95
98
  textAlign: props.textAlign
@@ -136,6 +139,7 @@ const _sfc_main = create({
136
139
  active,
137
140
  classes,
138
141
  styles,
142
+ inputmode,
139
143
  valueChange,
140
144
  valueFocus,
141
145
  valueBlur,
@@ -148,7 +152,7 @@ const _hoisted_1 = {
148
152
  class: "nut-input-label"
149
153
  };
150
154
  const _hoisted_2 = { class: "label-string" };
151
- const _hoisted_3 = ["type", "maxlength", "placeholder", "disabled", "readonly", "value"];
155
+ const _hoisted_3 = ["type", "maxlength", "placeholder", "disabled", "readonly", "value", "inputmode"];
152
156
  function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
153
157
  const _component_nut_icon = resolveComponent("nut-icon");
154
158
  return openBlock(), createElementBlock("view", {
@@ -166,6 +170,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
166
170
  disabled: _ctx.disabled,
167
171
  readonly: _ctx.readonly,
168
172
  value: _ctx.modelValue,
173
+ inputmode: _ctx.inputmode,
169
174
  onInput: _cache[0] || (_cache[0] = (...args) => _ctx.valueChange && _ctx.valueChange(...args)),
170
175
  onFocus: _cache[1] || (_cache[1] = (...args) => _ctx.valueFocus && _ctx.valueFocus(...args)),
171
176
  onBlur: _cache[2] || (_cache[2] = (...args) => _ctx.valueBlur && _ctx.valueBlur(...args))
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.1.16 Sun Jan 30 2022 10:58:10 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.1.18-beta.0 Tue Mar 08 2022 10:41:31 GMT+0800 (中国标准时间)
3
3
  * (c) 2021 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.1.16 Sun Jan 30 2022 10:58:10 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.1.18-beta.0 Tue Mar 08 2022 10:41:31 GMT+0800 (中国标准时间)
3
3
  * (c) 2021 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.1.16 Sun Jan 30 2022 10:58:10 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.1.18-beta.0 Tue Mar 08 2022 10:41:31 GMT+0800 (中国标准时间)
3
3
  * (c) 2021 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.1.16 Sun Jan 30 2022 10:58:10 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.1.18-beta.0 Tue Mar 08 2022 10:41:31 GMT+0800 (中国标准时间)
3
3
  * (c) 2021 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,9 +1,9 @@
1
1
  /*!
2
- * @nutui/nutui v3.1.16 Sun Jan 30 2022 10:58:10 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.1.18-beta.0 Tue Mar 08 2022 10:41:31 GMT+0800 (中国标准时间)
3
3
  * (c) 2021 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
6
- import { ref, computed, resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, createBlock, createCommentVNode, toDisplayString, renderSlot, normalizeStyle } from "vue";
6
+ import { ref, computed, resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, createBlock, createCommentVNode, renderSlot, toDisplayString } 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
  const { componentName, create } = createComponent("navbar");
@@ -12,27 +12,13 @@ const _sfc_main = create({
12
12
  leftShow: { type: Boolean, default: true },
13
13
  title: { type: String, default: "" },
14
14
  titIcon: { type: String, default: "" },
15
- icon: { type: String, default: "" },
16
15
  desc: { type: String, default: "" },
17
16
  defaultIndex: {
18
17
  type: Number,
19
18
  default: 0
20
19
  }
21
20
  },
22
- emits: [
23
- "click",
24
- "on-click-back",
25
- "on-click-title",
26
- "on-click-right",
27
- "on-click-desc",
28
- "on-click-icon",
29
- "on-click-more",
30
- "on-click-clear",
31
- "on-click-send",
32
- "on-click-slot",
33
- "on-click-slot-send",
34
- "switch-tab"
35
- ],
21
+ emits: ["click", "on-click-back", "on-click-title", "on-click-icon", "on-click-right"],
36
22
  setup(props, { emit }) {
37
23
  const activeIndex = ref(props.defaultIndex);
38
24
  const classes = computed(() => {
@@ -50,32 +36,22 @@ const _sfc_main = create({
50
36
  function handleCenterIcon() {
51
37
  emit("on-click-icon");
52
38
  }
53
- function handleClear() {
54
- emit("on-click-clear");
55
- }
56
- function handleSend() {
57
- emit("on-click-send");
58
- }
59
- function handleSlot() {
60
- emit("on-click-slot");
61
- }
62
- function handleSends() {
63
- emit("on-click-slot-send");
39
+ function handleRight() {
40
+ emit("on-click-right");
64
41
  }
65
42
  return {
66
43
  classes,
67
44
  handleLeft,
68
45
  handleCenter,
69
46
  handleCenterIcon,
70
- handleClear,
71
- handleSend,
72
- handleSlot,
73
- handleSends,
47
+ handleRight,
74
48
  activeIndex
75
49
  };
76
50
  }
77
51
  });
78
52
  const _hoisted_1 = { class: "nut-navbar__left" };
53
+ const _hoisted_2 = { class: "nut-navbar__title" };
54
+ const _hoisted_3 = { class: "nut-navbar__right" };
79
55
  function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
80
56
  const _component_nut_icon = resolveComponent("nut-icon");
81
57
  return openBlock(), createElementBlock("view", {
@@ -87,11 +63,10 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
87
63
  color: "#979797",
88
64
  name: "left",
89
65
  onClick: _ctx.handleLeft
90
- }, null, 8, ["onClick"])) : createCommentVNode("", true)
66
+ }, null, 8, ["onClick"])) : createCommentVNode("", true),
67
+ renderSlot(_ctx.$slots, "left")
91
68
  ]),
92
- createElementVNode("view", {
93
- class: normalizeClass(["nut-navbar__title", { icon: _ctx.icon }])
94
- }, [
69
+ createElementVNode("view", _hoisted_2, [
95
70
  _ctx.title ? (openBlock(), createElementBlock("view", {
96
71
  key: 0,
97
72
  onClick: _cache[0] || (_cache[0] = (...args) => _ctx.handleCenter && _ctx.handleCenter(...args))
@@ -103,31 +78,15 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
103
78
  onClick: _ctx.handleCenterIcon
104
79
  }, null, 8, ["name", "onClick"])) : createCommentVNode("", true),
105
80
  renderSlot(_ctx.$slots, "content")
106
- ], 2),
107
- _ctx.desc || _ctx.icon ? (openBlock(), createElementBlock("view", {
108
- key: 0,
109
- class: normalizeClass(["nut-navbar__right", { icon: _ctx.icon }])
110
- }, [
81
+ ]),
82
+ createElementVNode("view", _hoisted_3, [
111
83
  _ctx.desc ? (openBlock(), createElementBlock("view", {
112
84
  key: 0,
113
- style: normalizeStyle({ "text-align": _ctx.descTextAlign }),
114
- onClick: _cache[1] || (_cache[1] = (...args) => _ctx.handleClear && _ctx.handleClear(...args))
115
- }, toDisplayString(_ctx.desc), 5)) : createCommentVNode("", true),
116
- _ctx.icon ? (openBlock(), createElementBlock("view", {
117
- key: 1,
118
- onClick: _cache[2] || (_cache[2] = (...args) => _ctx.handleSends && _ctx.handleSends(...args))
119
- }, [
120
- renderSlot(_ctx.$slots, "icons")
121
- ])) : createCommentVNode("", true),
122
- createElementVNode("view", null, [
123
- _ctx.icon ? (openBlock(), createBlock(_component_nut_icon, {
124
- key: 0,
125
- class: "rightIcon",
126
- name: _ctx.icon,
127
- onClick: _ctx.handleSend
128
- }, null, 8, ["name", "onClick"])) : createCommentVNode("", true)
129
- ])
130
- ], 2)) : createCommentVNode("", true)
85
+ class: "right_text",
86
+ onClick: _cache[1] || (_cache[1] = (...args) => _ctx.handleRight && _ctx.handleRight(...args))
87
+ }, toDisplayString(_ctx.desc), 1)) : createCommentVNode("", true),
88
+ renderSlot(_ctx.$slots, "right")
89
+ ])
131
90
  ], 2);
132
91
  }
133
92
  var index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);