@nutui/nutui 3.1.15-beta.0 → 3.1.16

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 (131) hide show
  1. package/CHANGELOG.md +57 -0
  2. package/README.md +3 -3
  3. package/dist/nutui.d.ts +8 -5
  4. package/dist/nutui.es.js +826 -644
  5. package/dist/nutui.umd.js +832 -647
  6. package/dist/packages/_es/ActionSheet.js +1 -1
  7. package/dist/packages/_es/Address.js +2 -4
  8. package/dist/packages/_es/Avatar.js +1 -1
  9. package/dist/packages/_es/BackTop.js +1 -1
  10. package/dist/packages/_es/Badge.js +1 -1
  11. package/dist/packages/_es/Barrage.js +1 -1
  12. package/dist/packages/_es/Button.js +1 -1
  13. package/dist/packages/_es/Calendar.js +1 -1
  14. package/dist/packages/_es/Card.js +1 -1
  15. package/dist/packages/_es/Cascader.js +1 -1
  16. package/dist/packages/_es/Cell.js +1 -1
  17. package/dist/packages/_es/CellGroup.js +1 -1
  18. package/dist/packages/_es/Checkbox.js +1 -1
  19. package/dist/packages/_es/CheckboxGroup.js +1 -1
  20. package/dist/packages/_es/CircleProgress.js +1 -1
  21. package/dist/packages/_es/Col.js +1 -1
  22. package/dist/packages/_es/Collapse.js +1 -1
  23. package/dist/packages/_es/CollapseItem.js +11 -3
  24. package/dist/packages/_es/CountDown.js +1 -1
  25. package/dist/packages/_es/CountUp.js +1 -1
  26. package/dist/packages/_es/DatePicker.js +2 -4
  27. package/dist/packages/_es/Dialog.js +1 -1
  28. package/dist/packages/_es/Divider.js +1 -1
  29. package/dist/packages/_es/Drag.js +1 -1
  30. package/dist/packages/_es/Elevator.js +1 -1
  31. package/dist/packages/_es/Empty.js +1 -1
  32. package/dist/packages/_es/FixedNav.js +1 -1
  33. package/dist/packages/_es/Form.js +9 -6
  34. package/dist/packages/_es/FormItem.js +1 -1
  35. package/dist/packages/_es/Grid.js +1 -1
  36. package/dist/packages/_es/GridItem.js +1 -1
  37. package/dist/packages/_es/Icon.js +1 -1
  38. package/dist/packages/_es/ImagePreview.js +1 -1
  39. package/dist/packages/_es/Indicator.js +1 -1
  40. package/dist/packages/_es/InfiniteLoading.js +1 -1
  41. package/dist/packages/_es/Input.js +15 -10
  42. package/dist/packages/_es/InputNumber.js +2 -2
  43. package/dist/packages/_es/Layout.js +1 -1
  44. package/dist/packages/_es/Menu.js +3 -3
  45. package/dist/packages/_es/MenuItem.js +1 -1
  46. package/dist/packages/_es/Navbar.js +6 -32
  47. package/dist/packages/_es/NoticeBar.js +2 -2
  48. package/dist/packages/_es/Notify.js +1 -1
  49. package/dist/packages/_es/NumberKeyboard.js +1 -1
  50. package/dist/packages/_es/OverLay.js +1 -1
  51. package/dist/packages/_es/Pagination.js +1 -1
  52. package/dist/packages/_es/Picker.js +170 -189
  53. package/dist/packages/_es/Popover.js +1 -1
  54. package/dist/packages/_es/Popup.js +8 -4
  55. package/dist/packages/_es/Price.js +2 -2
  56. package/dist/packages/_es/Progress.js +1 -1
  57. package/dist/packages/_es/Radio.js +1 -1
  58. package/dist/packages/_es/RadioGroup.js +1 -1
  59. package/dist/packages/_es/Range.js +2 -2
  60. package/dist/packages/_es/Rate.js +1 -1
  61. package/dist/packages/_es/Row.js +1 -1
  62. package/dist/packages/_es/SearchBar.js +1 -1
  63. package/dist/packages/_es/ShortPassword.js +1 -1
  64. package/dist/packages/_es/SideNavBar.js +104 -0
  65. package/dist/packages/_es/SideNavBarItem.js +50 -0
  66. package/dist/packages/_es/Signature.js +1 -1
  67. package/dist/packages/_es/Skeleton.js +1 -1
  68. package/dist/packages/_es/Sku.js +1 -2
  69. package/dist/packages/_es/Step.js +1 -1
  70. package/dist/packages/_es/Steps.js +1 -1
  71. package/dist/packages/_es/SubSideNavBar.js +104 -0
  72. package/dist/packages/_es/Swipe.js +1 -1
  73. package/dist/packages/_es/Swiper.js +1 -1
  74. package/dist/packages/_es/SwiperItem.js +1 -1
  75. package/dist/packages/_es/Switch.js +1 -1
  76. package/dist/packages/_es/TabPane.js +1 -1
  77. package/dist/packages/_es/Tabbar.js +6 -2
  78. package/dist/packages/_es/TabbarItem.js +1 -1
  79. package/dist/packages/_es/Table.js +9 -3
  80. package/dist/packages/_es/Tabs.js +1 -1
  81. package/dist/packages/_es/Tag.js +1 -1
  82. package/dist/packages/_es/TextArea.js +9 -4
  83. package/dist/packages/_es/TimeDetail.js +1 -1
  84. package/dist/packages/_es/TimePannel.js +1 -1
  85. package/dist/packages/_es/TimeSelect.js +1 -1
  86. package/dist/packages/_es/Toast.js +1 -1
  87. package/dist/packages/_es/Uploader.js +6 -4
  88. package/dist/packages/_es/Video.js +1 -1
  89. package/dist/packages/_es/common.js +1 -1
  90. package/dist/packages/_es/component.js +1 -1
  91. package/dist/packages/_es/index.js +1 -1
  92. package/dist/packages/_es/index2.js +1 -1
  93. package/dist/packages/_es/index3.js +1 -1
  94. package/dist/packages/_es/plugin-vue_export-helper.js +1 -1
  95. package/dist/packages/_es/pxCheck.js +1 -1
  96. package/dist/packages/_es/raf.js +1 -1
  97. package/dist/packages/_es/util.js +1 -1
  98. package/dist/packages/actionsheet/index.scss +2 -2
  99. package/dist/packages/address/index.scss +2 -0
  100. package/dist/packages/button/index.scss +3 -0
  101. package/dist/packages/cascader/index.scss +13 -13
  102. package/dist/packages/icon/index.scss +101 -11
  103. package/dist/packages/input/index.scss +4 -1
  104. package/dist/packages/menu/index.scss +10 -6
  105. package/dist/packages/menuitem/index.scss +9 -8
  106. package/dist/packages/navbar/index.scss +8 -34
  107. package/dist/packages/noticebar/index.scss +11 -11
  108. package/dist/packages/picker/index.scss +74 -22
  109. package/dist/packages/progress/index.scss +2 -8
  110. package/dist/packages/shortpassword/index.scss +6 -6
  111. package/dist/packages/sidenavbar/index.scss +14 -0
  112. package/dist/packages/sidenavbaritem/index.scss +10 -0
  113. package/dist/packages/sku/index.scss +1 -1
  114. package/dist/packages/subsidenavbar/index.scss +39 -0
  115. package/dist/packages/tabbar/index.scss +5 -1
  116. package/dist/packages/textarea/index.scss +1 -1
  117. package/dist/style.css +1 -1
  118. package/dist/styles/animation/icon.scss +245 -0
  119. package/dist/styles/animation/index.scss +1 -0
  120. package/dist/styles/font/config.json +36 -0
  121. package/dist/styles/font/demo_index.html +26 -3
  122. package/dist/styles/font/iconfont.css +7 -3
  123. package/dist/styles/font/iconfont.js +1 -1
  124. package/dist/styles/font/iconfont.json +7 -0
  125. package/dist/styles/font/iconfont.ttf +0 -0
  126. package/dist/styles/font/iconfont.woff +0 -0
  127. package/dist/styles/font/iconfont.woff2 +0 -0
  128. package/dist/styles/themes/default.scss +41 -38
  129. package/dist/styles/themes/jdd.scss +2 -0
  130. package/dist/styles/variables.scss +72 -68
  131. package/package.json +7 -3
@@ -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.15-beta.0 Thu Dec 23 2021 17:12:09 GMT+0800 (中国标准时间)
21
+ * @nutui/nutui v3.1.16 Sun Jan 30 2022 10:58:10 GMT+0800 (中国标准时间)
22
22
  * (c) 2021 @jdf2e.
23
23
  * Released under the MIT License.
24
24
  */
@@ -15,7 +15,7 @@ var __spreadValues = (a, b) => {
15
15
  return a;
16
16
  };
17
17
  /*!
18
- * @nutui/nutui v3.1.15-beta.0 Thu Dec 23 2021 17:12:09 GMT+0800 (中国标准时间)
18
+ * @nutui/nutui v3.1.16 Sun Jan 30 2022 10:58:10 GMT+0800 (中国标准时间)
19
19
  * (c) 2021 @jdf2e.
20
20
  * Released under the MIT License.
21
21
  */
@@ -429,7 +429,6 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
429
429
  class: "region-item-icon",
430
430
  type: "self",
431
431
  name: _ctx.selectedIcon,
432
- color: "#FA2C19",
433
432
  size: "13px"
434
433
  }, null, 8, ["name"])) : createCommentVNode("", true),
435
434
  createTextVNode(toDisplayString(item.name), 1)
@@ -474,9 +473,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
474
473
  class: "exist-item-icon",
475
474
  type: "self",
476
475
  name: item.selectedAddress ? _ctx.selectedIcon : _ctx.defaultIcon,
477
- color: item.selectedAddress ? "#FA2C19" : "",
478
476
  size: "13px"
479
- }, null, 8, ["name", "color"]),
477
+ }, null, 8, ["name"]),
480
478
  createElementVNode("div", _hoisted_18, [
481
479
  item.name && item.phone ? (openBlock(), createElementBlock("div", _hoisted_19, [
482
480
  createElementVNode("div", _hoisted_20, toDisplayString(item.name), 1),
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.1.15-beta.0 Thu Dec 23 2021 17:12:09 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.1.16 Sun Jan 30 2022 10:58:10 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.15-beta.0 Thu Dec 23 2021 17:12:09 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.1.16 Sun Jan 30 2022 10:58:10 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.15-beta.0 Thu Dec 23 2021 17:12:09 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.1.16 Sun Jan 30 2022 10:58:10 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.15-beta.0 Thu Dec 23 2021 17:12:09 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.1.16 Sun Jan 30 2022 10:58:10 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.15-beta.0 Thu Dec 23 2021 17:12:09 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.1.16 Sun Jan 30 2022 10:58:10 GMT+0800 (中国标准时间)
3
3
  * (c) 2021 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -15,7 +15,7 @@ var __spreadValues = (a, b) => {
15
15
  return a;
16
16
  };
17
17
  /*!
18
- * @nutui/nutui v3.1.15-beta.0 Thu Dec 23 2021 17:12:09 GMT+0800 (中国标准时间)
18
+ * @nutui/nutui v3.1.16 Sun Jan 30 2022 10:58:10 GMT+0800 (中国标准时间)
19
19
  * (c) 2021 @jdf2e.
20
20
  * Released under the MIT License.
21
21
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.1.15-beta.0 Thu Dec 23 2021 17:12:09 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.1.16 Sun Jan 30 2022 10:58:10 GMT+0800 (中国标准时间)
3
3
  * (c) 2021 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -35,7 +35,7 @@ var __publicField = (obj, key, value) => {
35
35
  return value;
36
36
  };
37
37
  /*!
38
- * @nutui/nutui v3.1.15-beta.0 Thu Dec 23 2021 17:12:09 GMT+0800 (中国标准时间)
38
+ * @nutui/nutui v3.1.16 Sun Jan 30 2022 10:58:10 GMT+0800 (中国标准时间)
39
39
  * (c) 2021 @jdf2e.
40
40
  * Released under the MIT License.
41
41
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.1.15-beta.0 Thu Dec 23 2021 17:12:09 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.1.16 Sun Jan 30 2022 10:58:10 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.15-beta.0 Thu Dec 23 2021 17:12:09 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.1.16 Sun Jan 30 2022 10:58:10 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.15-beta.0 Thu Dec 23 2021 17:12:09 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.1.16 Sun Jan 30 2022 10:58:10 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.15-beta.0 Thu Dec 23 2021 17:12:09 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.1.16 Sun Jan 30 2022 10:58:10 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.15-beta.0 Thu Dec 23 2021 17:12:09 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.1.16 Sun Jan 30 2022 10:58:10 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.15-beta.0 Thu Dec 23 2021 17:12:09 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.1.16 Sun Jan 30 2022 10:58:10 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.15-beta.0 Thu Dec 23 2021 17:12:09 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.1.16 Sun Jan 30 2022 10:58:10 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.15-beta.0 Thu Dec 23 2021 17:12:09 GMT+0800 (中国标准时间)
21
+ * @nutui/nutui v3.1.16 Sun Jan 30 2022 10:58:10 GMT+0800 (中国标准时间)
22
22
  * (c) 2021 @jdf2e.
23
23
  * Released under the MIT License.
24
24
  */
@@ -49,7 +49,7 @@ const _sfc_main = create({
49
49
  type: Object
50
50
  }
51
51
  },
52
- setup(props) {
52
+ setup(props, ctx) {
53
53
  const collapse = inject("collapseParent");
54
54
  const parent = reactive(collapse);
55
55
  const classes = computed(() => {
@@ -93,7 +93,7 @@ const _sfc_main = create({
93
93
  if (!wrapperRefEle || !contentRefEle) {
94
94
  return;
95
95
  }
96
- const offsetHeight = contentRefEle.offsetHeight;
96
+ const offsetHeight = contentRefEle.offsetHeight || "auto";
97
97
  if (offsetHeight) {
98
98
  const contentHeight = `${offsetHeight}px`;
99
99
  wrapperRefEle.style.willChange = "height";
@@ -152,6 +152,14 @@ const _sfc_main = create({
152
152
  proxyData.openExpanded = true;
153
153
  }
154
154
  });
155
+ watch(() => {
156
+ var _a, _b;
157
+ return (_b = (_a = ctx == null ? void 0 : ctx.slots) == null ? void 0 : _a.default) == null ? void 0 : _b.call(_a);
158
+ }, () => {
159
+ setTimeout(() => {
160
+ animation();
161
+ }, 300);
162
+ });
155
163
  onMounted(() => {
156
164
  const { name } = props;
157
165
  const active = parent && parent.props.active;
@@ -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.15-beta.0 Thu Dec 23 2021 17:12:09 GMT+0800 (中国标准时间)
21
+ * @nutui/nutui v3.1.16 Sun Jan 30 2022 10:58:10 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.15-beta.0 Thu Dec 23 2021 17:12:09 GMT+0800 (中国标准时间)
21
+ * @nutui/nutui v3.1.16 Sun Jan 30 2022 10:58:10 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.15-beta.0 Thu Dec 23 2021 17:12:09 GMT+0800 (中国标准时间)
21
+ * @nutui/nutui v3.1.16 Sun Jan 30 2022 10:58:10 GMT+0800 (中国标准时间)
22
22
  * (c) 2021 @jdf2e.
23
23
  * Released under the MIT License.
24
24
  */
@@ -26,7 +26,6 @@ import { reactive, computed, onMounted, watch, toRefs, resolveComponent, openBlo
26
26
  import picker from "./Picker.js";
27
27
  import { c as createComponent } from "./component.js";
28
28
  import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
29
- import "./index2.js";
30
29
  import "./Popup.js";
31
30
  import "./OverLay.js";
32
31
  import "./Icon.js";
@@ -200,8 +199,6 @@ const _sfc_main = create({
200
199
  }
201
200
  };
202
201
  const generateValue = (min, max, val, type) => {
203
- if (!(max > min))
204
- return;
205
202
  const arr = [];
206
203
  let index2 = 0;
207
204
  while (min <= max) {
@@ -238,6 +235,7 @@ const _sfc_main = create({
238
235
  return 0;
239
236
  };
240
237
  const columns = computed(() => {
238
+ console.log(ranges.value);
241
239
  const val = ranges.value.map((res) => {
242
240
  return generateValue(res.range[0], res.range[1], getDateIndex(res.type), res.type);
243
241
  });
@@ -22,7 +22,7 @@ var __publicField = (obj, key, value) => {
22
22
  return value;
23
23
  };
24
24
  /*!
25
- * @nutui/nutui v3.1.15-beta.0 Thu Dec 23 2021 17:12:09 GMT+0800 (中国标准时间)
25
+ * @nutui/nutui v3.1.16 Sun Jan 30 2022 10:58:10 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.15-beta.0 Thu Dec 23 2021 17:12:09 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.1.16 Sun Jan 30 2022 10:58:10 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.15-beta.0 Thu Dec 23 2021 17:12:09 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.1.16 Sun Jan 30 2022 10:58:10 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.15-beta.0 Thu Dec 23 2021 17:12:09 GMT+0800 (中国标准时间)
21
+ * @nutui/nutui v3.1.16 Sun Jan 30 2022 10:58:10 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.15-beta.0 Thu Dec 23 2021 17:12:09 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.1.16 Sun Jan 30 2022 10:58:10 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.15-beta.0 Thu Dec 23 2021 17:12:09 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.1.16 Sun Jan 30 2022 10:58:10 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.15-beta.0 Thu Dec 23 2021 17:12:09 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.1.16 Sun Jan 30 2022 10:58:10 GMT+0800 (中国标准时间)
3
3
  * (c) 2021 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -19,16 +19,16 @@ const component = {
19
19
  setup(props, { emit, slots }) {
20
20
  const formErrorTip = computed(() => reactive({}));
21
21
  provide("formErrorTip", formErrorTip);
22
- const init = (value = props.modelValue) => {
23
- Object.keys(value).forEach((item) => {
22
+ const clearErrorTips = (value = props.modelValue) => {
23
+ Object.keys(formErrorTip.value).forEach((item) => {
24
24
  formErrorTip.value[item] = "";
25
25
  });
26
26
  };
27
27
  const reset = () => {
28
- init();
28
+ clearErrorTips();
29
29
  };
30
30
  watch(() => props.modelValue, (value) => {
31
- init(value);
31
+ clearErrorTips(value);
32
32
  }, { immediate: true });
33
33
  const findFormItem = (vnodes) => {
34
34
  let task = [];
@@ -64,7 +64,10 @@ const component = {
64
64
  const getPropByPath = (obj, keyPath) => {
65
65
  return keyPath.split(".").reduce((prev, curr) => prev[curr], obj);
66
66
  };
67
- let value = getPropByPath(props.modelValue, prop);
67
+ if (!prop) {
68
+ console.warn("[NutUI] <FormItem> \u4F7F\u7528 rules \u6821\u9A8C\u89C4\u5219\u65F6 , \u5FC5\u987B\u8BBE\u7F6E prop \u53C2\u6570");
69
+ }
70
+ let value = getPropByPath(props.modelValue, prop || "");
68
71
  tipMessage({ prop, message: "" });
69
72
  while (rules.length) {
70
73
  const { required, validator, regex, message } = rules.shift();
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.1.15-beta.0 Thu Dec 23 2021 17:12:09 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.1.16 Sun Jan 30 2022 10:58:10 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.15-beta.0 Thu Dec 23 2021 17:12:09 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.1.16 Sun Jan 30 2022 10:58:10 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.15-beta.0 Thu Dec 23 2021 17:12:09 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.1.16 Sun Jan 30 2022 10:58:10 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.15-beta.0 Thu Dec 23 2021 17:12:09 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.1.16 Sun Jan 30 2022 10:58:10 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.15-beta.0 Thu Dec 23 2021 17:12:09 GMT+0800 (中国标准时间)
25
+ * @nutui/nutui v3.1.16 Sun Jan 30 2022 10:58:10 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.15-beta.0 Thu Dec 23 2021 17:12:09 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.1.16 Sun Jan 30 2022 10:58:10 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.15-beta.0 Thu Dec 23 2021 17:12:09 GMT+0800 (中国标准时间)
21
+ * @nutui/nutui v3.1.16 Sun Jan 30 2022 10:58:10 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.15-beta.0 Thu Dec 23 2021 17:12:09 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.1.16 Sun Jan 30 2022 10:58:10 GMT+0800 (中国标准时间)
3
3
  * (c) 2021 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -72,6 +72,10 @@ const _sfc_main = create({
72
72
  clearable: {
73
73
  type: Boolean,
74
74
  default: true
75
+ },
76
+ hasBorder: {
77
+ type: Boolean,
78
+ default: true
75
79
  }
76
80
  },
77
81
  emits: ["change", "update:modelValue", "blur", "focus", "clear"],
@@ -82,7 +86,8 @@ const _sfc_main = create({
82
86
  return {
83
87
  [prefixCls]: true,
84
88
  [`${prefixCls}-disabled`]: props.disabled,
85
- [`${prefixCls}-require`]: props.requireShow
89
+ [`${prefixCls}-require`]: props.requireShow,
90
+ [`${prefixCls}-border`]: props.hasBorder
86
91
  };
87
92
  });
88
93
  const styles = computed(() => {
@@ -114,7 +119,7 @@ const _sfc_main = create({
114
119
  const valueBlur = (event) => {
115
120
  setTimeout(() => {
116
121
  active.value = false;
117
- }, 0);
122
+ }, 200);
118
123
  const input = event.target;
119
124
  let value = input.value;
120
125
  if (props.maxLength && value.length > Number(props.maxLength)) {
@@ -138,20 +143,20 @@ const _sfc_main = create({
138
143
  };
139
144
  }
140
145
  });
141
- const _hoisted_1 = { class: "nut-input-label" };
142
- const _hoisted_2 = {
146
+ const _hoisted_1 = {
143
147
  key: 0,
144
- class: "label-string"
148
+ class: "nut-input-label"
145
149
  };
150
+ const _hoisted_2 = { class: "label-string" };
146
151
  const _hoisted_3 = ["type", "maxlength", "placeholder", "disabled", "readonly", "value"];
147
152
  function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
148
153
  const _component_nut_icon = resolveComponent("nut-icon");
149
154
  return openBlock(), createElementBlock("view", {
150
155
  class: normalizeClass(_ctx.classes)
151
156
  }, [
152
- createElementVNode("view", _hoisted_1, [
153
- _ctx.label ? (openBlock(), createElementBlock("view", _hoisted_2, toDisplayString(_ctx.label), 1)) : createCommentVNode("", true)
154
- ]),
157
+ _ctx.label ? (openBlock(), createElementBlock("view", _hoisted_1, [
158
+ createElementVNode("view", _hoisted_2, toDisplayString(_ctx.label), 1)
159
+ ])) : createCommentVNode("", true),
155
160
  createElementVNode("input", {
156
161
  class: "input-text",
157
162
  style: normalizeStyle(_ctx.styles),
@@ -166,7 +171,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
166
171
  onBlur: _cache[2] || (_cache[2] = (...args) => _ctx.valueBlur && _ctx.valueBlur(...args))
167
172
  }, null, 44, _hoisted_3),
168
173
  _ctx.clearable && !_ctx.readonly ? withDirectives((openBlock(), createElementBlock("view", {
169
- key: 0,
174
+ key: 1,
170
175
  onClick: _cache[3] || (_cache[3] = (...args) => _ctx.handleClear && _ctx.handleClear(...args)),
171
176
  class: "nut-textinput-clear"
172
177
  }, [
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.1.15-beta.0 Thu Dec 23 2021 17:12:09 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.1.16 Sun Jan 30 2022 10:58:10 GMT+0800 (中国标准时间)
3
3
  * (c) 2021 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -65,8 +65,8 @@ const _sfc_main = create({
65
65
  };
66
66
  const emitChange = (value, event) => {
67
67
  let output_value = fixedDecimalPlaces(value);
68
- emit("change", output_value, event);
69
68
  emit("update:modelValue", output_value, event);
69
+ emit("change", output_value, event);
70
70
  };
71
71
  const addAllow = (value = Number(props.modelValue)) => {
72
72
  return value < Number(props.max) && !props.disabled;
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.1.15-beta.0 Thu Dec 23 2021 17:12:09 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.1.16 Sun Jan 30 2022 10:58:10 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.15-beta.0 Thu Dec 23 2021 17:12:09 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.1.16 Sun Jan 30 2022 10:58:10 GMT+0800 (中国标准时间)
3
3
  * (c) 2021 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -12,7 +12,7 @@ const _sfc_main = create({
12
12
  props: {
13
13
  activeColor: {
14
14
  type: String,
15
- default: "#FA2C19"
15
+ default: ""
16
16
  },
17
17
  overlay: {
18
18
  type: Boolean,
@@ -95,7 +95,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
95
95
  (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.children, (item, index2) => {
96
96
  return openBlock(), createElementBlock("view", {
97
97
  key: index2,
98
- class: normalizeClass(["nut-menu__item", { disabled: item.disabled }]),
98
+ class: normalizeClass(["nut-menu__item", { disabled: item.disabled, active: item.state.showPopup }]),
99
99
  onClick: ($event) => !item.disabled && _ctx.toggleItem(index2),
100
100
  style: normalizeStyle({ color: item.state.showPopup ? _ctx.activeColor : "" })
101
101
  }, [
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.1.15-beta.0 Thu Dec 23 2021 17:12:09 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.1.16 Sun Jan 30 2022 10:58:10 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.15-beta.0 Thu Dec 23 2021 17:12:09 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.1.16 Sun Jan 30 2022 10:58:10 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, Fragment, renderList, normalizeStyle, renderSlot } from "vue";
6
+ import { ref, computed, resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, createBlock, createCommentVNode, toDisplayString, renderSlot, normalizeStyle } 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,12 +12,6 @@ const _sfc_main = create({
12
12
  leftShow: { type: Boolean, default: true },
13
13
  title: { type: String, default: "" },
14
14
  titIcon: { type: String, default: "" },
15
- tabs: {
16
- type: Array,
17
- defaul: () => {
18
- return [];
19
- }
20
- },
21
15
  icon: { type: String, default: "" },
22
16
  desc: { type: String, default: "" },
23
17
  defaultIndex: {
@@ -47,11 +41,6 @@ const _sfc_main = create({
47
41
  [prefixCls]: true
48
42
  };
49
43
  });
50
- function switchTitle(id, name) {
51
- activeIndex.value = id;
52
- console.log(id);
53
- emit("switch-tab", activeIndex.value, name);
54
- }
55
44
  function handleLeft() {
56
45
  emit("on-click-back");
57
46
  }
@@ -82,14 +71,11 @@ const _sfc_main = create({
82
71
  handleSend,
83
72
  handleSlot,
84
73
  handleSends,
85
- switchTitle,
86
74
  activeIndex
87
75
  };
88
76
  }
89
77
  });
90
78
  const _hoisted_1 = { class: "nut-navbar__left" };
91
- const _hoisted_2 = { class: "tab-title" };
92
- const _hoisted_3 = ["onClick"];
93
79
  function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
94
80
  const _component_nut_icon = resolveComponent("nut-icon");
95
81
  return openBlock(), createElementBlock("view", {
@@ -103,8 +89,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
103
89
  onClick: _ctx.handleLeft
104
90
  }, null, 8, ["onClick"])) : createCommentVNode("", true)
105
91
  ]),
106
- _ctx.title || _ctx.titIcon || _ctx.tabs ? (openBlock(), createElementBlock("view", {
107
- key: 0,
92
+ createElementVNode("view", {
108
93
  class: normalizeClass(["nut-navbar__title", { icon: _ctx.icon }])
109
94
  }, [
110
95
  _ctx.title ? (openBlock(), createElementBlock("view", {
@@ -117,21 +102,10 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
117
102
  name: _ctx.titIcon,
118
103
  onClick: _ctx.handleCenterIcon
119
104
  }, null, 8, ["name", "onClick"])) : createCommentVNode("", true),
120
- createElementVNode("view", _hoisted_2, [
121
- (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.tabs, (item, index2) => {
122
- return openBlock(), createElementBlock("view", {
123
- class: normalizeClass([
124
- "tab-title-box",
125
- { "nut-tab-active": _ctx.activeIndex == item.id || _ctx.activeIndex == index2 }
126
- ]),
127
- onClick: ($event) => _ctx.switchTitle(item.id, item.name),
128
- key: item.id
129
- }, toDisplayString(item.name), 11, _hoisted_3);
130
- }), 128))
131
- ])
132
- ], 2)) : createCommentVNode("", true),
105
+ renderSlot(_ctx.$slots, "content")
106
+ ], 2),
133
107
  _ctx.desc || _ctx.icon ? (openBlock(), createElementBlock("view", {
134
- key: 1,
108
+ key: 0,
135
109
  class: normalizeClass(["nut-navbar__right", { icon: _ctx.icon }])
136
110
  }, [
137
111
  _ctx.desc ? (openBlock(), createElementBlock("view", {