@nutui/nutui 3.1.15-beta.1 → 3.1.15

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 (111) hide show
  1. package/CHANGELOG.md +36 -0
  2. package/dist/nutui.es.js +39 -17
  3. package/dist/nutui.umd.js +39 -17
  4. package/dist/packages/_es/ActionSheet.js +1 -1
  5. package/dist/packages/_es/Address.js +1 -1
  6. package/dist/packages/_es/Avatar.js +1 -1
  7. package/dist/packages/_es/BackTop.js +1 -1
  8. package/dist/packages/_es/Badge.js +1 -1
  9. package/dist/packages/_es/Barrage.js +1 -1
  10. package/dist/packages/_es/Button.js +1 -1
  11. package/dist/packages/_es/Calendar.js +1 -1
  12. package/dist/packages/_es/Card.js +1 -1
  13. package/dist/packages/_es/Cascader.js +1 -1
  14. package/dist/packages/_es/Cell.js +1 -1
  15. package/dist/packages/_es/CellGroup.js +1 -1
  16. package/dist/packages/_es/Checkbox.js +1 -1
  17. package/dist/packages/_es/CheckboxGroup.js +1 -1
  18. package/dist/packages/_es/CircleProgress.js +1 -1
  19. package/dist/packages/_es/Col.js +1 -1
  20. package/dist/packages/_es/Collapse.js +1 -1
  21. package/dist/packages/_es/CollapseItem.js +11 -3
  22. package/dist/packages/_es/CountDown.js +1 -1
  23. package/dist/packages/_es/CountUp.js +1 -1
  24. package/dist/packages/_es/DatePicker.js +2 -3
  25. package/dist/packages/_es/Dialog.js +1 -1
  26. package/dist/packages/_es/Divider.js +1 -1
  27. package/dist/packages/_es/Drag.js +1 -1
  28. package/dist/packages/_es/Elevator.js +1 -1
  29. package/dist/packages/_es/Empty.js +1 -1
  30. package/dist/packages/_es/FixedNav.js +1 -1
  31. package/dist/packages/_es/Form.js +5 -5
  32. package/dist/packages/_es/FormItem.js +1 -1
  33. package/dist/packages/_es/Grid.js +1 -1
  34. package/dist/packages/_es/GridItem.js +1 -1
  35. package/dist/packages/_es/Icon.js +1 -1
  36. package/dist/packages/_es/ImagePreview.js +1 -1
  37. package/dist/packages/_es/Indicator.js +1 -1
  38. package/dist/packages/_es/InfiniteLoading.js +1 -1
  39. package/dist/packages/_es/Input.js +1 -1
  40. package/dist/packages/_es/InputNumber.js +1 -1
  41. package/dist/packages/_es/Layout.js +1 -1
  42. package/dist/packages/_es/Menu.js +1 -1
  43. package/dist/packages/_es/MenuItem.js +1 -1
  44. package/dist/packages/_es/Navbar.js +1 -1
  45. package/dist/packages/_es/NoticeBar.js +2 -2
  46. package/dist/packages/_es/Notify.js +1 -1
  47. package/dist/packages/_es/NumberKeyboard.js +1 -1
  48. package/dist/packages/_es/OverLay.js +1 -1
  49. package/dist/packages/_es/Pagination.js +1 -1
  50. package/dist/packages/_es/Picker.js +1 -1
  51. package/dist/packages/_es/Popover.js +1 -1
  52. package/dist/packages/_es/Popup.js +1 -1
  53. package/dist/packages/_es/Price.js +1 -1
  54. package/dist/packages/_es/Progress.js +1 -1
  55. package/dist/packages/_es/Radio.js +1 -1
  56. package/dist/packages/_es/RadioGroup.js +1 -1
  57. package/dist/packages/_es/Range.js +2 -2
  58. package/dist/packages/_es/Rate.js +1 -1
  59. package/dist/packages/_es/Row.js +1 -1
  60. package/dist/packages/_es/SearchBar.js +1 -1
  61. package/dist/packages/_es/ShortPassword.js +1 -1
  62. package/dist/packages/_es/SideNavBar.js +1 -1
  63. package/dist/packages/_es/SideNavBarItem.js +1 -1
  64. package/dist/packages/_es/Signature.js +1 -1
  65. package/dist/packages/_es/Skeleton.js +1 -1
  66. package/dist/packages/_es/Sku.js +1 -1
  67. package/dist/packages/_es/Step.js +1 -1
  68. package/dist/packages/_es/Steps.js +1 -1
  69. package/dist/packages/_es/SubSideNavBar.js +1 -1
  70. package/dist/packages/_es/Swipe.js +1 -1
  71. package/dist/packages/_es/Swiper.js +1 -1
  72. package/dist/packages/_es/SwiperItem.js +1 -1
  73. package/dist/packages/_es/Switch.js +1 -1
  74. package/dist/packages/_es/TabPane.js +1 -1
  75. package/dist/packages/_es/Tabbar.js +6 -2
  76. package/dist/packages/_es/TabbarItem.js +1 -1
  77. package/dist/packages/_es/Table.js +9 -3
  78. package/dist/packages/_es/Tabs.js +1 -1
  79. package/dist/packages/_es/Tag.js +1 -1
  80. package/dist/packages/_es/TextArea.js +8 -3
  81. package/dist/packages/_es/TimeDetail.js +1 -1
  82. package/dist/packages/_es/TimePannel.js +1 -1
  83. package/dist/packages/_es/TimeSelect.js +1 -1
  84. package/dist/packages/_es/Toast.js +1 -1
  85. package/dist/packages/_es/Uploader.js +1 -1
  86. package/dist/packages/_es/Video.js +1 -1
  87. package/dist/packages/_es/common.js +1 -1
  88. package/dist/packages/_es/component.js +1 -1
  89. package/dist/packages/_es/index.js +1 -1
  90. package/dist/packages/_es/index2.js +1 -1
  91. package/dist/packages/_es/index3.js +1 -1
  92. package/dist/packages/_es/plugin-vue_export-helper.js +1 -1
  93. package/dist/packages/_es/pxCheck.js +1 -1
  94. package/dist/packages/_es/raf.js +1 -1
  95. package/dist/packages/_es/util.js +1 -1
  96. package/dist/packages/icon/index.scss +101 -11
  97. package/dist/packages/tabbar/index.scss +5 -1
  98. package/dist/packages/textarea/index.scss +1 -1
  99. package/dist/style.css +1 -1
  100. package/dist/styles/animation/icon.scss +245 -0
  101. package/dist/styles/animation/index.scss +1 -0
  102. package/dist/styles/font/config.json +36 -0
  103. package/dist/styles/font/demo_index.html +26 -3
  104. package/dist/styles/font/iconfont.css +7 -3
  105. package/dist/styles/font/iconfont.js +1 -1
  106. package/dist/styles/font/iconfont.json +7 -0
  107. package/dist/styles/font/iconfont.ttf +0 -0
  108. package/dist/styles/font/iconfont.woff +0 -0
  109. package/dist/styles/font/iconfont.woff2 +0 -0
  110. package/dist/styles/themes/default.scss +36 -36
  111. package/package.json +3 -2
package/CHANGELOG.md CHANGED
@@ -1,3 +1,39 @@
1
+ ## v3.1.15
2
+
3
+ `2022-01-21`
4
+
5
+ NutUI 非常感谢您对开源事业做出的贡献!🌷🌷🌷
6
+ 本次社区贡献者 @Anberm、@odex21
7
+
8
+ * :zap: feat(sidenavbar): 新增侧边栏导航组件 @szg2008
9
+ * :zap: feat: 组件增加在线调试、查看功能 @zhenyulei
10
+ * :zap: feat(imagepreview): 增加自动轮播功能;增加放大缩小功能 (#908) @JackieScorpio
11
+ * :zap: feat(popup): props的closeable支持动态传值(#923) @szg2008
12
+ * :zap: chore: comp themes attr extract (#934) @richard1015
13
+ * :zap: feat(tabbar): 新增底部安全区适配属性 #876 (#953) @Drjingfubo
14
+ * :zap: feat: icon添加动态 @yangxiaolu1993
15
+ * :bug: fix(table): 修复小程序环境下自定义内容样式问题 @szg2008
16
+ * :bug: fix(table): 解决渲染数据顺序不同步的问题 @szg2008
17
+ * :bug: fix(form): form-item v-if submit event error @richard1015
18
+ * :bug: fix(form-item): add attr empty status warn @richard1015
19
+ * :bug: docs(video): 播放地址修改 (#911) @yushuang-d
20
+ * :bug: fix: switch emits loading (#912) @Anberm
21
+ * :bug: fix(inputnumber、textarea): 调整 change 顺序 @richard1015
22
+ * :bug: chore: fix build method component types ts error (#916) @richard1015
23
+ * :bug: docs(tabs): 自定义示例代码添加 feedback q2439456344@163.com @richard1015
24
+ * :bug: style: variables 样式变量标准化调整 @richard1015
25
+ * :bug: docs(switch): 补充文档,说明 size 的含义 @szg2008
26
+ * :bug: docs: cellgroup import desc @richard1015
27
+ * :bug: docs(form): online editor access @richard1015
28
+ * :bug: fix(range): remove error parameter in tmeplate (#940) @odex21
29
+ * :bug: fix(collapse): 数据动态加载时更新问题修复 (#937) @Ymm0008
30
+ * :bug: fix: circleprogress warring #945 (#949) @Drjingfubo
31
+ * :bug: docs(address): 修改已有地址数据结构(#952) @szg2008
32
+ * :bug: fix(form): 动态表单重置状态bug (#932) @richard1015
33
+ * :bug: revert(icon): 动态图标重置 & 动态图标文档删除 @richard1015
34
+ * :bug: fix: 修改issues textarea自动取焦、rows不生效问题 (#965) @lzzwoniu
35
+ * :bug: fix: datepicker 组件内容完善 (#961) @yangxiaolu1993
36
+
1
37
  ## v3.1.14
2
38
 
3
39
  `2021-12-22`
package/dist/nutui.es.js CHANGED
@@ -35,7 +35,7 @@ var __publicField = (obj, key, value) => {
35
35
  return value;
36
36
  };
37
37
  /*!
38
- * @nutui/nutui v3.1.15-beta.1 Mon Jan 10 2022 12:18:41 GMT+0800 (中国标准时间)
38
+ * @nutui/nutui v3.1.15 Fri Jan 21 2022 15:38:49 GMT+0800 (GMT+08:00)
39
39
  * (c) 2021 @jdf2e.
40
40
  * Released under the MIT License.
41
41
  */
@@ -2796,7 +2796,7 @@ const _sfc_main$15 = create$15({
2796
2796
  type: Object
2797
2797
  }
2798
2798
  },
2799
- setup(props) {
2799
+ setup(props, ctx) {
2800
2800
  const collapse = inject("collapseParent");
2801
2801
  const parent = reactive(collapse);
2802
2802
  const classes = computed(() => {
@@ -2840,7 +2840,7 @@ const _sfc_main$15 = create$15({
2840
2840
  if (!wrapperRefEle || !contentRefEle) {
2841
2841
  return;
2842
2842
  }
2843
- const offsetHeight = contentRefEle.offsetHeight;
2843
+ const offsetHeight = contentRefEle.offsetHeight || "auto";
2844
2844
  if (offsetHeight) {
2845
2845
  const contentHeight = `${offsetHeight}px`;
2846
2846
  wrapperRefEle.style.willChange = "height";
@@ -2899,6 +2899,14 @@ const _sfc_main$15 = create$15({
2899
2899
  proxyData.openExpanded = true;
2900
2900
  }
2901
2901
  });
2902
+ watch(() => {
2903
+ var _a, _b;
2904
+ return (_b = (_a = ctx == null ? void 0 : ctx.slots) == null ? void 0 : _a.default) == null ? void 0 : _b.call(_a);
2905
+ }, () => {
2906
+ setTimeout(() => {
2907
+ animation();
2908
+ }, 300);
2909
+ });
2902
2910
  onMounted(() => {
2903
2911
  const { name } = props;
2904
2912
  const active = parent && parent.props.active;
@@ -4202,7 +4210,7 @@ function _sfc_render$W(_ctx, _cache, $props, $setup, $data, $options) {
4202
4210
  class: "nut-range-button",
4203
4211
  style: normalizeStyle(_ctx.buttonStyle)
4204
4212
  }, [
4205
- !_ctx.hiddenTag ? (openBlock(), createElementBlock("view", _hoisted_6$c, toDisplayString(_ctx.curValue(_ctx.index)), 1)) : createCommentVNode("", true)
4213
+ !_ctx.hiddenTag ? (openBlock(), createElementBlock("view", _hoisted_6$c, toDisplayString(_ctx.curValue()), 1)) : createCommentVNode("", true)
4206
4214
  ], 4))
4207
4215
  ], 40, _hoisted_5$f))
4208
4216
  ], 4)
@@ -5274,7 +5282,7 @@ function _sfc_render$Q(_ctx, _cache, $props, $setup, $data, $options) {
5274
5282
  onWebkitAnimationEnd: _cache[1] || (_cache[1] = (...args) => _ctx.onAnimationEnd && _ctx.onAnimationEnd(...args))
5275
5283
  }, [
5276
5284
  renderSlot(_ctx.$slots, "default", {}, () => [
5277
- createTextVNode("1" + toDisplayString(_ctx.text), 1)
5285
+ createTextVNode(toDisplayString(_ctx.text), 1)
5278
5286
  ])
5279
5287
  ], 38)
5280
5288
  ], 512),
@@ -6126,6 +6134,10 @@ const _sfc_main$O = create$O({
6126
6134
  activeColor: {
6127
6135
  type: String,
6128
6136
  default: ""
6137
+ },
6138
+ safeAreaInsetBottom: {
6139
+ type: Boolean,
6140
+ default: false
6129
6141
  }
6130
6142
  },
6131
6143
  emits: ["tab-switch", "update:visible"],
@@ -6158,7 +6170,7 @@ const _sfc_main$O = create$O({
6158
6170
  });
6159
6171
  function _sfc_render$J(_ctx, _cache, $props, $setup, $data, $options) {
6160
6172
  return openBlock(), createElementBlock("view", {
6161
- class: normalizeClass(["nut-tabbar", { "nut-tabbar-bottom": _ctx.bottom }])
6173
+ class: normalizeClass(["nut-tabbar", { "nut-tabbar-bottom": _ctx.bottom, "nut-tabbar-safebottom": _ctx.safeAreaInsetBottom }])
6162
6174
  }, [
6163
6175
  renderSlot(_ctx.$slots, "default")
6164
6176
  ], 2);
@@ -8805,8 +8817,6 @@ const _sfc_main$w = create$w({
8805
8817
  }
8806
8818
  };
8807
8819
  const generateValue = (min, max, val, type) => {
8808
- if (!(max > min))
8809
- return;
8810
8820
  const arr = [];
8811
8821
  let index = 0;
8812
8822
  while (min <= max) {
@@ -8843,6 +8853,7 @@ const _sfc_main$w = create$w({
8843
8853
  return 0;
8844
8854
  };
8845
8855
  const columns = computed(() => {
8856
+ console.log(ranges.value);
8846
8857
  const val = ranges.value.map((res) => {
8847
8858
  return generateValue(res.range[0], res.range[1], getDateIndex(res.type), res.type);
8848
8859
  });
@@ -9703,6 +9714,10 @@ const _sfc_main$p = create$p({
9703
9714
  autosize: {
9704
9715
  type: Boolean,
9705
9716
  default: false
9717
+ },
9718
+ autofocus: {
9719
+ type: Boolean,
9720
+ default: false
9706
9721
  }
9707
9722
  },
9708
9723
  emits: ["update:modelValue", "change", "blur", "focus"],
@@ -9757,7 +9772,7 @@ const _sfc_main$p = create$p({
9757
9772
  };
9758
9773
  }
9759
9774
  });
9760
- const _hoisted_1$m = ["rows", "disabled", "readonly", "value", "maxlength", "placeholder"];
9775
+ const _hoisted_1$m = ["rows", "disabled", "readonly", "value", "maxlength", "placeholder", "autofocus"];
9761
9776
  const _hoisted_2$j = {
9762
9777
  key: 0,
9763
9778
  class: "nut-textarea__limit"
@@ -9777,7 +9792,8 @@ function _sfc_render$p(_ctx, _cache, $props, $setup, $data, $options) {
9777
9792
  onBlur: _cache[1] || (_cache[1] = (...args) => _ctx.blur && _ctx.blur(...args)),
9778
9793
  onFocus: _cache[2] || (_cache[2] = (...args) => _ctx.focus && _ctx.focus(...args)),
9779
9794
  maxlength: _ctx.maxLength,
9780
- placeholder: _ctx.placeholder
9795
+ placeholder: _ctx.placeholder,
9796
+ autofocus: _ctx.autofocus
9781
9797
  }, null, 44, _hoisted_1$m),
9782
9798
  _ctx.limitShow ? (openBlock(), createElementBlock("view", _hoisted_2$j, toDisplayString(_ctx.modelValue ? _ctx.modelValue.length : 0) + "/" + toDisplayString(_ctx.maxLength), 1)) : createCommentVNode("", true)
9783
9799
  ], 2);
@@ -11614,16 +11630,16 @@ const component$2 = {
11614
11630
  setup(props, { emit, slots }) {
11615
11631
  const formErrorTip = computed(() => reactive({}));
11616
11632
  provide("formErrorTip", formErrorTip);
11617
- const init = (value = props.modelValue) => {
11618
- Object.keys(value).forEach((item) => {
11633
+ const clearErrorTips = (value = props.modelValue) => {
11634
+ Object.keys(formErrorTip.value).forEach((item) => {
11619
11635
  formErrorTip.value[item] = "";
11620
11636
  });
11621
11637
  };
11622
11638
  const reset = () => {
11623
- init();
11639
+ clearErrorTips();
11624
11640
  };
11625
11641
  watch(() => props.modelValue, (value) => {
11626
- init(value);
11642
+ clearErrorTips(value);
11627
11643
  }, { immediate: true });
11628
11644
  const findFormItem = (vnodes) => {
11629
11645
  let task = [];
@@ -14081,6 +14097,11 @@ const component = (componentName2) => {
14081
14097
  state.curData = typeof item.sorter === "function" ? state.curData.sort(item.sorter) : item.sorter === "default" ? state.curData.sort() : state.curData;
14082
14098
  }
14083
14099
  };
14100
+ const sortDataItem = () => {
14101
+ return props.columns.map((value) => {
14102
+ return value.key;
14103
+ });
14104
+ };
14084
14105
  watch(() => props.data, (val) => {
14085
14106
  state.curData = val.slice();
14086
14107
  });
@@ -14088,7 +14109,8 @@ const component = (componentName2) => {
14088
14109
  classes,
14089
14110
  cellClasses,
14090
14111
  getColumnItem,
14091
- handleSorterClick
14112
+ handleSorterClick,
14113
+ sortDataItem
14092
14114
  });
14093
14115
  }
14094
14116
  };
@@ -14146,7 +14168,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
14146
14168
  class: "nut-table__main__body__tr",
14147
14169
  key: item
14148
14170
  }, [
14149
- (openBlock(true), createElementBlock(Fragment, null, renderList(Object.keys(item), (value) => {
14171
+ (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.sortDataItem(), (value) => {
14150
14172
  return openBlock(), createElementBlock("span", {
14151
14173
  class: normalizeClass(["nut-table__main__body__tr__td", _ctx.cellClasses(_ctx.getColumnItem(value))]),
14152
14174
  key: value
@@ -14189,6 +14211,6 @@ function install(app) {
14189
14211
  }
14190
14212
  });
14191
14213
  }
14192
- const version = "3.1.15-beta.1";
14214
+ const version = "3.1.15";
14193
14215
  var nutui_vue_build = { install, version };
14194
14216
  export { ActionSheet, Address, Avatar, BackTop, Badge, Barrage, Button, Calendar, Card, Cascader, Cell, CellGroup, _sfc_main$A as Checkbox, _sfc_main$z as CheckboxGroup, CircleProgress, Col, Collapse, CollapseItem, CountDown, CountUp, DatePicker, _Dialog as Dialog, Divider, Drag, Elevator, Empty, FixedNav, Form, FormItem, _sfc_main$H as Grid, GridItem, _sfc_main$1o as Icon, _ImagePreview as ImagePreview, Indicator, InfiniteLoading, Input, InputNumber, _sfc_main$1h as Layout, Menu, MenuItem, Navbar, NoticeBar, NotifyFunction as Notify, NumberKeyboard, OverLay, Pagination, Picker, Popover, Popup, Price, Progress, _sfc_main$t as Radio, _sfc_main$s as RadioGroup, Range, Rate, Row, SearchBar, ShortPassword, SideNavBar, SideNavBarItem, Signature, Skeleton, Sku, Step, _sfc_main$$ as Steps, SubSideNavBar, Swipe, Swiper, SwiperItem, Switch, TabPane, Tabbar, TabbarItem, Table, Tabs, Tag, TextArea, TimeDetail, TimePannel, TimeSelect, ToastFunction as Toast, Uploader, Video, nutui_vue_build as default, install, version };
package/dist/nutui.umd.js CHANGED
@@ -35,7 +35,7 @@ var __publicField = (obj, key, value) => {
35
35
  return value;
36
36
  };
37
37
  /*!
38
- * @nutui/nutui v3.1.15-beta.1 Mon Jan 10 2022 12:18:41 GMT+0800 (中国标准时间)
38
+ * @nutui/nutui v3.1.15 Fri Jan 21 2022 15:38:49 GMT+0800 (GMT+08:00)
39
39
  * (c) 2021 @jdf2e.
40
40
  * Released under the MIT License.
41
41
  */
@@ -2798,7 +2798,7 @@ var __publicField = (obj, key, value) => {
2798
2798
  type: Object
2799
2799
  }
2800
2800
  },
2801
- setup(props) {
2801
+ setup(props, ctx) {
2802
2802
  const collapse = vue.inject("collapseParent");
2803
2803
  const parent = vue.reactive(collapse);
2804
2804
  const classes = vue.computed(() => {
@@ -2842,7 +2842,7 @@ var __publicField = (obj, key, value) => {
2842
2842
  if (!wrapperRefEle || !contentRefEle) {
2843
2843
  return;
2844
2844
  }
2845
- const offsetHeight = contentRefEle.offsetHeight;
2845
+ const offsetHeight = contentRefEle.offsetHeight || "auto";
2846
2846
  if (offsetHeight) {
2847
2847
  const contentHeight = `${offsetHeight}px`;
2848
2848
  wrapperRefEle.style.willChange = "height";
@@ -2901,6 +2901,14 @@ var __publicField = (obj, key, value) => {
2901
2901
  proxyData.openExpanded = true;
2902
2902
  }
2903
2903
  });
2904
+ vue.watch(() => {
2905
+ var _a, _b;
2906
+ return (_b = (_a = ctx == null ? void 0 : ctx.slots) == null ? void 0 : _a.default) == null ? void 0 : _b.call(_a);
2907
+ }, () => {
2908
+ setTimeout(() => {
2909
+ animation();
2910
+ }, 300);
2911
+ });
2904
2912
  vue.onMounted(() => {
2905
2913
  const { name } = props;
2906
2914
  const active = parent && parent.props.active;
@@ -4204,7 +4212,7 @@ var __publicField = (obj, key, value) => {
4204
4212
  class: "nut-range-button",
4205
4213
  style: vue.normalizeStyle(_ctx.buttonStyle)
4206
4214
  }, [
4207
- !_ctx.hiddenTag ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_6$c, vue.toDisplayString(_ctx.curValue(_ctx.index)), 1)) : vue.createCommentVNode("", true)
4215
+ !_ctx.hiddenTag ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_6$c, vue.toDisplayString(_ctx.curValue()), 1)) : vue.createCommentVNode("", true)
4208
4216
  ], 4))
4209
4217
  ], 40, _hoisted_5$f))
4210
4218
  ], 4)
@@ -5276,7 +5284,7 @@ var __publicField = (obj, key, value) => {
5276
5284
  onWebkitAnimationEnd: _cache[1] || (_cache[1] = (...args) => _ctx.onAnimationEnd && _ctx.onAnimationEnd(...args))
5277
5285
  }, [
5278
5286
  vue.renderSlot(_ctx.$slots, "default", {}, () => [
5279
- vue.createTextVNode("1" + vue.toDisplayString(_ctx.text), 1)
5287
+ vue.createTextVNode(vue.toDisplayString(_ctx.text), 1)
5280
5288
  ])
5281
5289
  ], 38)
5282
5290
  ], 512),
@@ -6128,6 +6136,10 @@ var __publicField = (obj, key, value) => {
6128
6136
  activeColor: {
6129
6137
  type: String,
6130
6138
  default: ""
6139
+ },
6140
+ safeAreaInsetBottom: {
6141
+ type: Boolean,
6142
+ default: false
6131
6143
  }
6132
6144
  },
6133
6145
  emits: ["tab-switch", "update:visible"],
@@ -6160,7 +6172,7 @@ var __publicField = (obj, key, value) => {
6160
6172
  });
6161
6173
  function _sfc_render$J(_ctx, _cache, $props, $setup, $data, $options) {
6162
6174
  return vue.openBlock(), vue.createElementBlock("view", {
6163
- class: vue.normalizeClass(["nut-tabbar", { "nut-tabbar-bottom": _ctx.bottom }])
6175
+ class: vue.normalizeClass(["nut-tabbar", { "nut-tabbar-bottom": _ctx.bottom, "nut-tabbar-safebottom": _ctx.safeAreaInsetBottom }])
6164
6176
  }, [
6165
6177
  vue.renderSlot(_ctx.$slots, "default")
6166
6178
  ], 2);
@@ -8807,8 +8819,6 @@ var __publicField = (obj, key, value) => {
8807
8819
  }
8808
8820
  };
8809
8821
  const generateValue = (min, max, val, type) => {
8810
- if (!(max > min))
8811
- return;
8812
8822
  const arr = [];
8813
8823
  let index = 0;
8814
8824
  while (min <= max) {
@@ -8845,6 +8855,7 @@ var __publicField = (obj, key, value) => {
8845
8855
  return 0;
8846
8856
  };
8847
8857
  const columns = vue.computed(() => {
8858
+ console.log(ranges.value);
8848
8859
  const val = ranges.value.map((res) => {
8849
8860
  return generateValue(res.range[0], res.range[1], getDateIndex(res.type), res.type);
8850
8861
  });
@@ -9705,6 +9716,10 @@ var __publicField = (obj, key, value) => {
9705
9716
  autosize: {
9706
9717
  type: Boolean,
9707
9718
  default: false
9719
+ },
9720
+ autofocus: {
9721
+ type: Boolean,
9722
+ default: false
9708
9723
  }
9709
9724
  },
9710
9725
  emits: ["update:modelValue", "change", "blur", "focus"],
@@ -9759,7 +9774,7 @@ var __publicField = (obj, key, value) => {
9759
9774
  };
9760
9775
  }
9761
9776
  });
9762
- const _hoisted_1$m = ["rows", "disabled", "readonly", "value", "maxlength", "placeholder"];
9777
+ const _hoisted_1$m = ["rows", "disabled", "readonly", "value", "maxlength", "placeholder", "autofocus"];
9763
9778
  const _hoisted_2$j = {
9764
9779
  key: 0,
9765
9780
  class: "nut-textarea__limit"
@@ -9779,7 +9794,8 @@ var __publicField = (obj, key, value) => {
9779
9794
  onBlur: _cache[1] || (_cache[1] = (...args) => _ctx.blur && _ctx.blur(...args)),
9780
9795
  onFocus: _cache[2] || (_cache[2] = (...args) => _ctx.focus && _ctx.focus(...args)),
9781
9796
  maxlength: _ctx.maxLength,
9782
- placeholder: _ctx.placeholder
9797
+ placeholder: _ctx.placeholder,
9798
+ autofocus: _ctx.autofocus
9783
9799
  }, null, 44, _hoisted_1$m),
9784
9800
  _ctx.limitShow ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_2$j, vue.toDisplayString(_ctx.modelValue ? _ctx.modelValue.length : 0) + "/" + vue.toDisplayString(_ctx.maxLength), 1)) : vue.createCommentVNode("", true)
9785
9801
  ], 2);
@@ -11616,16 +11632,16 @@ var __publicField = (obj, key, value) => {
11616
11632
  setup(props, { emit, slots }) {
11617
11633
  const formErrorTip = vue.computed(() => vue.reactive({}));
11618
11634
  vue.provide("formErrorTip", formErrorTip);
11619
- const init = (value = props.modelValue) => {
11620
- Object.keys(value).forEach((item) => {
11635
+ const clearErrorTips = (value = props.modelValue) => {
11636
+ Object.keys(formErrorTip.value).forEach((item) => {
11621
11637
  formErrorTip.value[item] = "";
11622
11638
  });
11623
11639
  };
11624
11640
  const reset = () => {
11625
- init();
11641
+ clearErrorTips();
11626
11642
  };
11627
11643
  vue.watch(() => props.modelValue, (value) => {
11628
- init(value);
11644
+ clearErrorTips(value);
11629
11645
  }, { immediate: true });
11630
11646
  const findFormItem = (vnodes) => {
11631
11647
  let task = [];
@@ -14083,6 +14099,11 @@ var __publicField = (obj, key, value) => {
14083
14099
  state.curData = typeof item.sorter === "function" ? state.curData.sort(item.sorter) : item.sorter === "default" ? state.curData.sort() : state.curData;
14084
14100
  }
14085
14101
  };
14102
+ const sortDataItem = () => {
14103
+ return props.columns.map((value) => {
14104
+ return value.key;
14105
+ });
14106
+ };
14086
14107
  vue.watch(() => props.data, (val) => {
14087
14108
  state.curData = val.slice();
14088
14109
  });
@@ -14090,7 +14111,8 @@ var __publicField = (obj, key, value) => {
14090
14111
  classes,
14091
14112
  cellClasses,
14092
14113
  getColumnItem,
14093
- handleSorterClick
14114
+ handleSorterClick,
14115
+ sortDataItem
14094
14116
  });
14095
14117
  }
14096
14118
  };
@@ -14148,7 +14170,7 @@ var __publicField = (obj, key, value) => {
14148
14170
  class: "nut-table__main__body__tr",
14149
14171
  key: item
14150
14172
  }, [
14151
- (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(Object.keys(item), (value) => {
14173
+ (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.sortDataItem(), (value) => {
14152
14174
  return vue.openBlock(), vue.createElementBlock("span", {
14153
14175
  class: vue.normalizeClass(["nut-table__main__body__tr__td", _ctx.cellClasses(_ctx.getColumnItem(value))]),
14154
14176
  key: value
@@ -14191,7 +14213,7 @@ var __publicField = (obj, key, value) => {
14191
14213
  }
14192
14214
  });
14193
14215
  }
14194
- const version = "3.1.15-beta.1";
14216
+ const version = "3.1.15";
14195
14217
  var nutui_vue_build = { install, version };
14196
14218
  exports2.ActionSheet = ActionSheet;
14197
14219
  exports2.Address = Address;
@@ -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.1 Mon Jan 10 2022 12:18:44 GMT+0800 (中国标准时间)
21
+ * @nutui/nutui v3.1.15 Fri Jan 21 2022 15:38:52 GMT+0800 (GMT+08:00)
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.1 Mon Jan 10 2022 12:18:44 GMT+0800 (中国标准时间)
18
+ * @nutui/nutui v3.1.15 Fri Jan 21 2022 15:38:52 GMT+0800 (GMT+08:00)
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.1 Mon Jan 10 2022 12:18:44 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.1.15 Fri Jan 21 2022 15:38:52 GMT+0800 (GMT+08:00)
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.1 Mon Jan 10 2022 12:18:44 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.1.15 Fri Jan 21 2022 15:38:52 GMT+0800 (GMT+08:00)
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.1 Mon Jan 10 2022 12:18:44 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.1.15 Fri Jan 21 2022 15:38:52 GMT+0800 (GMT+08:00)
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.1 Mon Jan 10 2022 12:18:44 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.1.15 Fri Jan 21 2022 15:38:52 GMT+0800 (GMT+08:00)
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.1 Mon Jan 10 2022 12:18:44 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.1.15 Fri Jan 21 2022 15:38:52 GMT+0800 (GMT+08:00)
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.1 Mon Jan 10 2022 12:18:44 GMT+0800 (中国标准时间)
18
+ * @nutui/nutui v3.1.15 Fri Jan 21 2022 15:38:52 GMT+0800 (GMT+08:00)
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.1 Mon Jan 10 2022 12:18:44 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.1.15 Fri Jan 21 2022 15:38:52 GMT+0800 (GMT+08:00)
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.1 Mon Jan 10 2022 12:18:44 GMT+0800 (中国标准时间)
38
+ * @nutui/nutui v3.1.15 Fri Jan 21 2022 15:38:52 GMT+0800 (GMT+08:00)
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.1 Mon Jan 10 2022 12:18:44 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.1.15 Fri Jan 21 2022 15:38:52 GMT+0800 (GMT+08:00)
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.1 Mon Jan 10 2022 12:18:44 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.1.15 Fri Jan 21 2022 15:38:52 GMT+0800 (GMT+08:00)
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.1 Mon Jan 10 2022 12:18:44 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.1.15 Fri Jan 21 2022 15:38:52 GMT+0800 (GMT+08:00)
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.1 Mon Jan 10 2022 12:18:44 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.1.15 Fri Jan 21 2022 15:38:52 GMT+0800 (GMT+08:00)
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.1 Mon Jan 10 2022 12:18:44 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.1.15 Fri Jan 21 2022 15:38:52 GMT+0800 (GMT+08:00)
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.1 Mon Jan 10 2022 12:18:44 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.1.15 Fri Jan 21 2022 15:38:52 GMT+0800 (GMT+08:00)
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.1 Mon Jan 10 2022 12:18:44 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.1.15 Fri Jan 21 2022 15:38:52 GMT+0800 (GMT+08:00)
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.1 Mon Jan 10 2022 12:18:44 GMT+0800 (中国标准时间)
21
+ * @nutui/nutui v3.1.15 Fri Jan 21 2022 15:38:52 GMT+0800 (GMT+08:00)
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.1 Mon Jan 10 2022 12:18:44 GMT+0800 (中国标准时间)
21
+ * @nutui/nutui v3.1.15 Fri Jan 21 2022 15:38:52 GMT+0800 (GMT+08:00)
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.1 Mon Jan 10 2022 12:18:44 GMT+0800 (中国标准时间)
21
+ * @nutui/nutui v3.1.15 Fri Jan 21 2022 15:38:52 GMT+0800 (GMT+08:00)
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.1 Mon Jan 10 2022 12:18:44 GMT+0800 (中国标准时间)
21
+ * @nutui/nutui v3.1.15 Fri Jan 21 2022 15:38:52 GMT+0800 (GMT+08:00)
22
22
  * (c) 2021 @jdf2e.
23
23
  * Released under the MIT License.
24
24
  */
@@ -200,8 +200,6 @@ const _sfc_main = create({
200
200
  }
201
201
  };
202
202
  const generateValue = (min, max, val, type) => {
203
- if (!(max > min))
204
- return;
205
203
  const arr = [];
206
204
  let index2 = 0;
207
205
  while (min <= max) {
@@ -238,6 +236,7 @@ const _sfc_main = create({
238
236
  return 0;
239
237
  };
240
238
  const columns = computed(() => {
239
+ console.log(ranges.value);
241
240
  const val = ranges.value.map((res) => {
242
241
  return generateValue(res.range[0], res.range[1], getDateIndex(res.type), res.type);
243
242
  });
@@ -22,7 +22,7 @@ var __publicField = (obj, key, value) => {
22
22
  return value;
23
23
  };
24
24
  /*!
25
- * @nutui/nutui v3.1.15-beta.1 Mon Jan 10 2022 12:18:44 GMT+0800 (中国标准时间)
25
+ * @nutui/nutui v3.1.15 Fri Jan 21 2022 15:38:52 GMT+0800 (GMT+08:00)
26
26
  * (c) 2021 @jdf2e.
27
27
  * Released under the MIT License.
28
28
  */