@nutui/nutui 3.1.23-beta.2 → 3.1.23-beta.5

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 (170) hide show
  1. package/README.md +7 -0
  2. package/dist/nutui.es.js +187 -99
  3. package/dist/nutui.umd.js +187 -99
  4. package/dist/packages/_es/ActionSheet.js +8 -3
  5. package/dist/packages/_es/Address.js +1 -1
  6. package/dist/packages/_es/AddressList.js +1 -1
  7. package/dist/packages/_es/Animate.js +1 -1
  8. package/dist/packages/_es/Audio.js +1 -1
  9. package/dist/packages/_es/AudioOperate.js +1 -1
  10. package/dist/packages/_es/Avatar.js +1 -1
  11. package/dist/packages/_es/AvatarGroup.js +1 -1
  12. package/dist/packages/_es/BackTop.js +1 -1
  13. package/dist/packages/_es/Badge.js +1 -1
  14. package/dist/packages/_es/Barrage.js +1 -1
  15. package/dist/packages/_es/Button.js +1 -1
  16. package/dist/packages/_es/Calendar.js +1 -1
  17. package/dist/packages/_es/CalendarItem.js +1 -1
  18. package/dist/packages/_es/Card.js +7 -4
  19. package/dist/packages/_es/Cascader.js +1 -1
  20. package/dist/packages/_es/Category.js +1 -1
  21. package/dist/packages/_es/CategoryPane.js +1 -1
  22. package/dist/packages/_es/Cell.js +1 -1
  23. package/dist/packages/_es/CellGroup.js +1 -1
  24. package/dist/packages/_es/Checkbox.js +1 -1
  25. package/dist/packages/_es/CheckboxGroup.js +1 -1
  26. package/dist/packages/_es/CircleProgress.js +1 -1
  27. package/dist/packages/_es/Col.js +1 -1
  28. package/dist/packages/_es/Collapse.js +1 -1
  29. package/dist/packages/_es/CollapseItem.js +1 -1
  30. package/dist/packages/_es/Comment.js +4 -3
  31. package/dist/packages/_es/ConfigProvider.js +1 -1
  32. package/dist/packages/_es/CountDown.js +1 -1
  33. package/dist/packages/_es/CountUp.js +1 -1
  34. package/dist/packages/_es/DatePicker.js +16 -5
  35. package/dist/packages/_es/Dialog.js +1 -1
  36. package/dist/packages/_es/Divider.js +1 -1
  37. package/dist/packages/_es/Drag.js +1 -1
  38. package/dist/packages/_es/Ecard.js +1 -1
  39. package/dist/packages/_es/Elevator.js +1 -1
  40. package/dist/packages/_es/Ellipsis.js +1 -1
  41. package/dist/packages/_es/Empty.js +1 -1
  42. package/dist/packages/_es/FixedNav.js +1 -1
  43. package/dist/packages/_es/Form.js +1 -1
  44. package/dist/packages/_es/FormItem.js +1 -1
  45. package/dist/packages/_es/Grid.js +1 -1
  46. package/dist/packages/_es/GridItem.js +1 -1
  47. package/dist/packages/_es/Icon.js +1 -1
  48. package/dist/packages/_es/Image.js +1 -1
  49. package/dist/packages/_es/ImagePreview.js +1 -1
  50. package/dist/packages/_es/Indicator.js +1 -1
  51. package/dist/packages/_es/InfiniteLoading.js +1 -1
  52. package/dist/packages/_es/Input.js +1 -1
  53. package/dist/packages/_es/InputNumber.js +1 -1
  54. package/dist/packages/_es/Layout.js +1 -1
  55. package/dist/packages/_es/List.js +1 -1
  56. package/dist/packages/_es/Menu.js +1 -1
  57. package/dist/packages/_es/MenuItem.js +1 -1
  58. package/dist/packages/_es/Navbar.js +1 -1
  59. package/dist/packages/_es/NoticeBar.js +1 -1
  60. package/dist/packages/_es/Notify.js +1 -1
  61. package/dist/packages/_es/NumberKeyboard.js +1 -1
  62. package/dist/packages/_es/OldPicker.js +1 -1
  63. package/dist/packages/_es/OverLay.js +1 -1
  64. package/dist/packages/_es/Pagination.js +1 -1
  65. package/dist/packages/_es/Picker.js +53 -27
  66. package/dist/packages/_es/Popover.js +1 -1
  67. package/dist/packages/_es/Popup.js +1 -1
  68. package/dist/packages/_es/Price.js +1 -1
  69. package/dist/packages/_es/Progress.js +1 -1
  70. package/dist/packages/_es/PullRefresh.js +1 -1
  71. package/dist/packages/_es/Radio.js +1 -1
  72. package/dist/packages/_es/RadioGroup.js +1 -1
  73. package/dist/packages/_es/Range.js +1 -1
  74. package/dist/packages/_es/Rate.js +1 -1
  75. package/dist/packages/_es/Row.js +1 -1
  76. package/dist/packages/_es/SearchBar.js +1 -1
  77. package/dist/packages/_es/ShortPassword.js +1 -1
  78. package/dist/packages/_es/SideNavBar.js +1 -1
  79. package/dist/packages/_es/SideNavBarItem.js +1 -1
  80. package/dist/packages/_es/Signature.js +1 -1
  81. package/dist/packages/_es/Skeleton.js +1 -1
  82. package/dist/packages/_es/Sku.js +1 -1
  83. package/dist/packages/_es/Step.js +1 -1
  84. package/dist/packages/_es/Steps.js +1 -1
  85. package/dist/packages/_es/Sticky.js +1 -1
  86. package/dist/packages/_es/SubSideNavBar.js +1 -1
  87. package/dist/packages/_es/Swipe.js +1 -1
  88. package/dist/packages/_es/Swiper.js +1 -1
  89. package/dist/packages/_es/SwiperItem.js +1 -1
  90. package/dist/packages/_es/Switch.js +1 -1
  91. package/dist/packages/_es/TabPane.js +1 -1
  92. package/dist/packages/_es/Tabbar.js +3 -3
  93. package/dist/packages/_es/TabbarItem.js +33 -13
  94. package/dist/packages/_es/Table.js +36 -21
  95. package/dist/packages/_es/Tabs.js +1 -1
  96. package/dist/packages/_es/Tag.js +1 -1
  97. package/dist/packages/_es/TextArea.js +1 -1
  98. package/dist/packages/_es/TimeDetail.js +1 -1
  99. package/dist/packages/_es/TimePannel.js +1 -1
  100. package/dist/packages/_es/TimeSelect.js +1 -1
  101. package/dist/packages/_es/Toast.js +1 -1
  102. package/dist/packages/_es/Uploader.js +10 -3
  103. package/dist/packages/_es/Video.js +1 -1
  104. package/dist/packages/_es/WaterMark.js +1 -1
  105. package/dist/packages/_es/common.js +1 -1
  106. package/dist/packages/_es/component.js +1 -1
  107. package/dist/packages/_es/index.js +1 -1
  108. package/dist/packages/_es/index2.js +1 -1
  109. package/dist/packages/_es/index3.js +1 -1
  110. package/dist/packages/_es/index4.js +1 -1
  111. package/dist/packages/_es/index5.js +1 -1
  112. package/dist/packages/_es/plugin-vue_export-helper.js +1 -1
  113. package/dist/packages/_es/pxCheck.js +1 -1
  114. package/dist/packages/_es/raf.js +1 -1
  115. package/dist/packages/backtop/index.scss +8 -0
  116. package/dist/packages/badge/index.scss +8 -0
  117. package/dist/packages/calendar/index.scss +27 -1
  118. package/dist/packages/cascader/index.scss +13 -0
  119. package/dist/packages/cell/index.scss +2 -1
  120. package/dist/packages/locale/lang/baseLang.js +1 -1
  121. package/dist/packages/locale/lang/en-US.js +1 -1
  122. package/dist/packages/locale/lang/id-ID.js +1 -1
  123. package/dist/packages/locale/lang/index.js +1 -1
  124. package/dist/packages/locale/lang/zh-CN.js +1 -1
  125. package/dist/packages/locale/lang/zh-TW.js +1 -1
  126. package/dist/packages/oldpicker/index.scss +2 -0
  127. package/dist/packages/picker/index.scss +11 -0
  128. package/dist/packages/table/index.scss +33 -0
  129. package/dist/packages/timedetail/index.scss +16 -0
  130. package/dist/packages/timepannel/index.scss +10 -0
  131. package/dist/packages/timeselect/index.scss +19 -1
  132. package/dist/packages/uploader/index.scss +10 -0
  133. package/dist/smartips/attributes.json +8 -0
  134. package/dist/smartips/tags.json +4 -2
  135. package/dist/smartips/web-types.json +19 -1
  136. package/dist/style.css +1 -1
  137. package/dist/style.es.js +1 -1
  138. package/dist/styles/themes/default.scss +49 -49
  139. package/dist/styles/themes/jdb.scss +49 -49
  140. package/dist/styles/themes/jdt.scss +49 -49
  141. package/dist/styles/variables-jdb.scss +5 -4
  142. package/dist/styles/variables-jdt.scss +5 -4
  143. package/dist/styles/variables.scss +5 -4
  144. package/dist/types/__VUE/actionsheet/index.vue.d.ts +7 -0
  145. package/dist/types/__VUE/avatar/index.vue.d.ts +4 -4
  146. package/dist/types/__VUE/avatargroup/index.vue.d.ts +2 -2
  147. package/dist/types/__VUE/backtop/index.vue.d.ts +2 -2
  148. package/dist/types/__VUE/badge/index.vue.d.ts +2 -2
  149. package/dist/types/__VUE/button/index.vue.d.ts +2 -2
  150. package/dist/types/__VUE/cascader/index.vue.d.ts +1 -1
  151. package/dist/types/__VUE/cell/index.vue.d.ts +6 -6
  152. package/dist/types/__VUE/collapseitem/index.vue.d.ts +2 -2
  153. package/dist/types/__VUE/datepicker/index.vue.d.ts +7 -0
  154. package/dist/types/__VUE/grid/index.vue.d.ts +4 -4
  155. package/dist/types/__VUE/griditem/index.vue.d.ts +1 -1
  156. package/dist/types/__VUE/input/index.vue.d.ts +2 -2
  157. package/dist/types/__VUE/picker/Column.vue.d.ts +9 -2
  158. package/dist/types/__VUE/picker/index.vue.d.ts +16 -2
  159. package/dist/types/__VUE/step/index.vue.d.ts +2 -2
  160. package/dist/types/__VUE/tabbar/index.vue.d.ts +1 -1
  161. package/dist/types/__VUE/tabbaritem/index.vue.d.ts +9 -3
  162. package/dist/types/__VUE/table/common.d.ts +3 -0
  163. package/dist/types/__VUE/table/index.vue.d.ts +3 -0
  164. package/dist/types/__VUE/table/types.d.ts +2 -0
  165. package/dist/types/__VUE/toast/index.vue.d.ts +2 -2
  166. package/dist/types/__VUE/uploader/index.vue.d.ts +4 -4
  167. package/dist/types/__VUE/uploader/uploader.d.ts +1 -0
  168. package/dist/types/__VUE/video/index.vue.d.ts +1 -1
  169. package/dist/types/index.d.ts +1 -1
  170. package/package.json +1 -1
package/dist/nutui.umd.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.1.23-beta.2 Thu Jul 07 2022 19:06:46 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.1.23-beta.5 Thu Jul 28 2022 13:54:27 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -529,7 +529,7 @@
529
529
  key: 1,
530
530
  class: "nut-cell__title"
531
531
  };
532
- const _hoisted_3$P = { class: "title" };
532
+ const _hoisted_3$Q = { class: "title" };
533
533
  const _hoisted_4$E = { class: "nut-cell__title-desc" };
534
534
  function render$2(_ctx, _cache, $props, $setup, $data, $options) {
535
535
  const _component_nut_icon = vue.resolveComponent("nut-icon");
@@ -551,7 +551,7 @@
551
551
  _ctx.title || _ctx.subTitle || _ctx.$slots.title ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_2$14, [
552
552
  _ctx.subTitle ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 0 }, [
553
553
  vue.renderSlot(_ctx.$slots, "title", {}, () => [
554
- vue.createElementVNode("view", _hoisted_3$P, vue.toDisplayString(_ctx.title), 1)
554
+ vue.createElementVNode("view", _hoisted_3$Q, vue.toDisplayString(_ctx.title), 1)
555
555
  ]),
556
556
  vue.createElementVNode("view", _hoisted_4$E, vue.toDisplayString(_ctx.subTitle), 1)
557
557
  ], 64)) : vue.renderSlot(_ctx.$slots, "title", { key: 1 }, () => [
@@ -648,14 +648,14 @@
648
648
  key: 3,
649
649
  class: "nut-cell-group__desc"
650
650
  };
651
- const _hoisted_3$O = { class: "nut-cell-group__warp" };
651
+ const _hoisted_3$P = { class: "nut-cell-group__warp" };
652
652
  function _sfc_render$1B(_ctx, _cache, $props, $setup, $data, $options) {
653
653
  return vue.openBlock(), vue.createElementBlock("view", {
654
654
  class: vue.normalizeClass(_ctx.classes)
655
655
  }, [
656
656
  _ctx.$slots.title ? vue.renderSlot(_ctx.$slots, "title", { key: 0 }) : _ctx.title ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_1$1j, vue.toDisplayString(_ctx.title), 1)) : vue.createCommentVNode("", true),
657
657
  _ctx.$slots.desc ? vue.renderSlot(_ctx.$slots, "desc", { key: 2 }) : _ctx.desc ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_2$13, vue.toDisplayString(_ctx.desc), 1)) : vue.createCommentVNode("", true),
658
- vue.createElementVNode("view", _hoisted_3$O, [
658
+ vue.createElementVNode("view", _hoisted_3$P, [
659
659
  vue.renderSlot(_ctx.$slots, "default")
660
660
  ])
661
661
  ], 2);
@@ -1155,7 +1155,7 @@
1155
1155
  key: 0,
1156
1156
  class: "nut-img-loading"
1157
1157
  };
1158
- const _hoisted_3$N = {
1158
+ const _hoisted_3$O = {
1159
1159
  key: 1,
1160
1160
  class: "nut-img-error"
1161
1161
  };
@@ -1181,7 +1181,7 @@
1181
1181
  })) : vue.createCommentVNode("", true),
1182
1182
  vue.renderSlot(_ctx.$slots, "loading")
1183
1183
  ])) : vue.createCommentVNode("", true),
1184
- _ctx.isError && !_ctx.loading ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_3$N, [
1184
+ _ctx.isError && !_ctx.loading ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_3$O, [
1185
1185
  !_ctx.slotError ? (vue.openBlock(), vue.createBlock(_component_nut_icon, {
1186
1186
  key: 0,
1187
1187
  name: "image-error"
@@ -1883,7 +1883,7 @@
1883
1883
  key: 1,
1884
1884
  class: "nut-navbar__text"
1885
1885
  };
1886
- const _hoisted_3$M = { class: "nut-navbar__title" };
1886
+ const _hoisted_3$N = { class: "nut-navbar__title" };
1887
1887
  const _hoisted_4$D = {
1888
1888
  key: 0,
1889
1889
  class: "nut-navbar__text"
@@ -1917,7 +1917,7 @@
1917
1917
  _ctx.leftText ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_2$11, vue.toDisplayString(_ctx.leftText), 1)) : vue.createCommentVNode("", true),
1918
1918
  vue.renderSlot(_ctx.$slots, "left")
1919
1919
  ]),
1920
- vue.createElementVNode("view", _hoisted_3$M, [
1920
+ vue.createElementVNode("view", _hoisted_3$N, [
1921
1921
  _ctx.title ? (vue.openBlock(), vue.createElementBlock("view", {
1922
1922
  key: 0,
1923
1923
  class: "title",
@@ -2044,7 +2044,7 @@
2044
2044
  });
2045
2045
  const _hoisted_1$1e = { class: "nut-fixednav__list" };
2046
2046
  const _hoisted_2$10 = ["onClick"];
2047
- const _hoisted_3$L = ["src"];
2047
+ const _hoisted_3$M = ["src"];
2048
2048
  const _hoisted_4$C = { class: "span" };
2049
2049
  const _hoisted_5$s = {
2050
2050
  key: 0,
@@ -2074,7 +2074,7 @@
2074
2074
  }, [
2075
2075
  vue.createElementVNode("img", {
2076
2076
  src: item.icon
2077
- }, null, 8, _hoisted_3$L),
2077
+ }, null, 8, _hoisted_3$M),
2078
2078
  vue.createElementVNode("view", _hoisted_4$C, vue.toDisplayString(item.text), 1),
2079
2079
  item.num ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_5$s, vue.toDisplayString(item.num), 1)) : vue.createCommentVNode("", true)
2080
2080
  ], 8, _hoisted_2$10);
@@ -2465,10 +2465,10 @@
2465
2465
  val: props.visible,
2466
2466
  children: []
2467
2467
  });
2468
- function changeIndex(active) {
2468
+ function changeIndex(index, active) {
2469
2469
  emit("update:visible", active);
2470
2470
  parentData.modelValue = active;
2471
- emit("tab-switch", parentData.children[active], active);
2471
+ emit("tab-switch", parentData.children[index], active);
2472
2472
  }
2473
2473
  let parentData = vue.reactive({
2474
2474
  children: mdValue.children,
@@ -2502,6 +2502,9 @@
2502
2502
  type: String,
2503
2503
  default: ""
2504
2504
  },
2505
+ name: {
2506
+ type: String
2507
+ },
2505
2508
  icon: {
2506
2509
  type: String,
2507
2510
  default: ""
@@ -2547,15 +2550,25 @@
2547
2550
  });
2548
2551
  const router = useRouter();
2549
2552
  const relation = (child) => {
2553
+ var _a;
2550
2554
  if (child.proxy) {
2551
- let index = parent.children.length;
2552
- state.index = index;
2553
2555
  parent.children.push(child.proxy);
2556
+ const index = vue.computed(() => parent.children.indexOf(child.proxy));
2557
+ state.index = (_a = props.name) != null ? _a : index.value;
2554
2558
  }
2555
2559
  };
2556
2560
  relation(vue.getCurrentInstance());
2557
- function change(index) {
2558
- parent.changeIndex(index);
2561
+ const active = vue.computed(() => state.index === state.active);
2562
+ function change() {
2563
+ var _a;
2564
+ let key = (_a = props.name) != null ? _a : state.index;
2565
+ let index = null;
2566
+ if (props.name) {
2567
+ index = parent.children.findIndex((item) => {
2568
+ return item.name == key;
2569
+ });
2570
+ }
2571
+ parent.changeIndex(index != null ? index : key, state.index);
2559
2572
  }
2560
2573
  const choosed = vue.computed(() => {
2561
2574
  if (parent) {
@@ -2565,13 +2578,19 @@
2565
2578
  });
2566
2579
  vue.watch(choosed, (value, oldValue) => {
2567
2580
  state.active = value;
2581
+ let index = value;
2582
+ if (props.name) {
2583
+ index = parent.children.findIndex((item) => {
2584
+ return item.name == value;
2585
+ });
2586
+ }
2568
2587
  setTimeout(() => {
2569
- if (parent.children[value].href) {
2570
- window.location.href = parent.children[value].href;
2588
+ if (parent.children[index].href) {
2589
+ window.location.href = parent.children[index].href;
2571
2590
  return;
2572
2591
  }
2573
- if (parent.children[value].to) {
2574
- let to = parent.children[value].to;
2592
+ if (parent.children[index].to) {
2593
+ let to = parent.children[index].to;
2575
2594
  if (to && router) {
2576
2595
  router.push(to);
2577
2596
  } else {
@@ -2582,6 +2601,7 @@
2582
2601
  });
2583
2602
  return {
2584
2603
  state,
2604
+ active,
2585
2605
  change
2586
2606
  };
2587
2607
  }
@@ -2591,7 +2611,7 @@
2591
2611
  key: 0,
2592
2612
  class: "nut-tabbar-item_icon-box_tips nut-tabbar-item_icon-box_num"
2593
2613
  };
2594
- const _hoisted_3$K = {
2614
+ const _hoisted_3$L = {
2595
2615
  key: 1,
2596
2616
  class: "nut-tabbar-item_icon-box_tips nut-tabbar-item_icon-box_nums"
2597
2617
  };
@@ -2604,15 +2624,15 @@
2604
2624
  function _sfc_render$1o(_ctx, _cache, $props, $setup, $data, $options) {
2605
2625
  const _component_nut_icon = vue.resolveComponent("nut-icon");
2606
2626
  return vue.openBlock(), vue.createElementBlock("div", {
2607
- class: vue.normalizeClass(["nut-tabbar-item", { "nut-tabbar-item__icon--unactive": _ctx.state.active != _ctx.state.index }]),
2627
+ class: vue.normalizeClass(["nut-tabbar-item", { "nut-tabbar-item__icon--unactive": !_ctx.active }]),
2608
2628
  style: vue.normalizeStyle({
2609
- color: _ctx.state.active == _ctx.state.index ? _ctx.state.activeColor : _ctx.state.unactiveColor
2629
+ color: _ctx.active ? _ctx.state.activeColor : _ctx.state.unactiveColor
2610
2630
  }),
2611
- onClick: _cache[0] || (_cache[0] = ($event) => _ctx.change(_ctx.state.index))
2631
+ onClick: _cache[0] || (_cache[0] = ($event) => _ctx.change())
2612
2632
  }, [
2613
2633
  vue.createElementVNode("view", _hoisted_1$1b, [
2614
2634
  !_ctx.dot ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 0 }, [
2615
- _ctx.num && _ctx.num <= 99 ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_2$Z, vue.toDisplayString(_ctx.num), 1)) : _ctx.num && _ctx.num > 100 ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_3$K, vue.toDisplayString("99+"))) : vue.createCommentVNode("", true)
2635
+ _ctx.num && _ctx.num <= 99 ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_2$Z, vue.toDisplayString(_ctx.num), 1)) : _ctx.num && _ctx.num > 100 ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_3$L, vue.toDisplayString("99+"))) : vue.createCommentVNode("", true)
2616
2636
  ], 64)) : vue.createCommentVNode("", true),
2617
2637
  _ctx.dot ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_4$B)) : vue.createCommentVNode("", true),
2618
2638
  _ctx.icon ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_5$r, [
@@ -2628,7 +2648,7 @@
2628
2648
  key: 3,
2629
2649
  class: "nut-tabbar-item_icon-box_icon",
2630
2650
  style: vue.normalizeStyle({
2631
- backgroundImage: `url(${_ctx.state.active == _ctx.state.index ? _ctx.activeImg : _ctx.img})`,
2651
+ backgroundImage: `url(${_ctx.active ? _ctx.activeImg : _ctx.img})`,
2632
2652
  width: _ctx.state.size,
2633
2653
  height: _ctx.state.size
2634
2654
  })
@@ -2825,7 +2845,7 @@
2825
2845
  });
2826
2846
  const _hoisted_1$1a = { class: "nut-elevator__list__item__code" };
2827
2847
  const _hoisted_2$Y = ["onClick"];
2828
- const _hoisted_3$J = ["innerHTML"];
2848
+ const _hoisted_3$K = ["innerHTML"];
2829
2849
  const _hoisted_4$A = { class: "fixed-title" };
2830
2850
  const _hoisted_5$q = { class: "nut-elevator__bars__inner" };
2831
2851
  const _hoisted_6$n = ["data-index", "onClick"];
@@ -2856,7 +2876,7 @@
2856
2876
  !_ctx.$slots.default ? (vue.openBlock(), vue.createElementBlock("span", {
2857
2877
  key: 0,
2858
2878
  innerHTML: subitem.name
2859
- }, null, 8, _hoisted_3$J)) : vue.renderSlot(_ctx.$slots, "default", {
2879
+ }, null, 8, _hoisted_3$K)) : vue.renderSlot(_ctx.$slots, "default", {
2860
2880
  key: 1,
2861
2881
  item: subitem
2862
2882
  })
@@ -3012,7 +3032,7 @@
3012
3032
  key: 0,
3013
3033
  class: "nut-pagination-contain"
3014
3034
  };
3015
- const _hoisted_3$I = ["onClick"];
3035
+ const _hoisted_3$J = ["onClick"];
3016
3036
  const _hoisted_4$z = {
3017
3037
  key: 1,
3018
3038
  class: "nut-pagination-contain"
@@ -3038,7 +3058,7 @@
3038
3058
  vue.renderSlot(_ctx.$slots, "page", { item }, () => [
3039
3059
  vue.createTextVNode(vue.toDisplayString(item.text), 1)
3040
3060
  ])
3041
- ], 10, _hoisted_3$I);
3061
+ ], 10, _hoisted_3$J);
3042
3062
  }), 128))
3043
3063
  ])) : vue.createCommentVNode("", true),
3044
3064
  _ctx.mode == "simple" ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_4$z, [
@@ -3513,7 +3533,7 @@
3513
3533
  });
3514
3534
  const _hoisted_1$15 = ["ikey"];
3515
3535
  const _hoisted_2$U = { class: "nut-subsidenavbar__title__text" };
3516
- const _hoisted_3$H = { class: "nut-subsidenavbar__title__icon" };
3536
+ const _hoisted_3$I = { class: "nut-subsidenavbar__title__icon" };
3517
3537
  function _sfc_render$1h(_ctx, _cache, $props, $setup, $data, $options) {
3518
3538
  const _component_nut_icon = vue.resolveComponent("nut-icon");
3519
3539
  return vue.openBlock(), vue.createElementBlock("view", {
@@ -3525,7 +3545,7 @@
3525
3545
  onClick: _cache[0] || (_cache[0] = vue.withModifiers((...args) => _ctx.handleClick && _ctx.handleClick(...args), ["stop"]))
3526
3546
  }, [
3527
3547
  vue.createElementVNode("span", _hoisted_2$U, vue.toDisplayString(_ctx.title), 1),
3528
- vue.createElementVNode("span", _hoisted_3$H, [
3548
+ vue.createElementVNode("span", _hoisted_3$I, [
3529
3549
  vue.createVNode(_component_nut_icon, {
3530
3550
  name: "down-arrow",
3531
3551
  class: vue.normalizeClass(_ctx.direction)
@@ -3899,7 +3919,7 @@
3899
3919
  key: 0,
3900
3920
  class: "nut-range-mark"
3901
3921
  };
3902
- const _hoisted_3$G = ["tabindex", "aria-valuemin", "aria-valuenow", "aria-valuemax", "onTouchstart"];
3922
+ const _hoisted_3$H = ["tabindex", "aria-valuemin", "aria-valuenow", "aria-valuemax", "onTouchstart"];
3903
3923
  const _hoisted_4$y = {
3904
3924
  key: 0,
3905
3925
  class: "number"
@@ -3974,7 +3994,7 @@
3974
3994
  }, [
3975
3995
  !_ctx.hiddenTag ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_4$y, vue.toDisplayString(_ctx.curValue(index)), 1)) : vue.createCommentVNode("", true)
3976
3996
  ], 4))
3977
- ], 42, _hoisted_3$G);
3997
+ ], 42, _hoisted_3$H);
3978
3998
  }), 64)) : (vue.openBlock(), vue.createElementBlock("view", {
3979
3999
  key: 1,
3980
4000
  role: "slider",
@@ -4163,7 +4183,7 @@
4163
4183
  key: 1,
4164
4184
  class: "nut-searchbar__search-icon nut-searchbar__left-search-icon"
4165
4185
  };
4166
- const _hoisted_3$F = { class: "nut-searchbar__input-inner" };
4186
+ const _hoisted_3$G = { class: "nut-searchbar__input-inner" };
4167
4187
  const _hoisted_4$x = ["type", "maxlength", "placeholder", "value", "disabled", "readonly"];
4168
4188
  const _hoisted_5$n = {
4169
4189
  key: 2,
@@ -4190,7 +4210,7 @@
4190
4210
  }, [
4191
4211
  vue.renderSlot(_ctx.$slots, "leftin")
4192
4212
  ])) : vue.createCommentVNode("", true),
4193
- vue.createElementVNode("view", _hoisted_3$F, [
4213
+ vue.createElementVNode("view", _hoisted_3$G, [
4194
4214
  vue.createElementVNode("form", {
4195
4215
  action: "#",
4196
4216
  onSubmit: _cache[5] || (_cache[5] = vue.withModifiers((...args) => _ctx.handleSubmit && _ctx.handleSubmit(...args), ["prevent"]))
@@ -4582,7 +4602,7 @@
4582
4602
  class: "nut-cascader-pane"
4583
4603
  };
4584
4604
  const _hoisted_2$R = ["aria-checked", "aria-disabled", "onClick"];
4585
- const _hoisted_3$E = { class: "nut-cascader-item__title" };
4605
+ const _hoisted_3$F = { class: "nut-cascader-item__title" };
4586
4606
  const _hoisted_4$w = /* @__PURE__ */ vue.createElementVNode("view", { class: "nut-cascader-pane" }, null, -1);
4587
4607
  function _sfc_render$1e(_ctx, _cache, $props, $setup, $data, $options) {
4588
4608
  const _component_nut_icon = vue.resolveComponent("nut-icon");
@@ -4612,7 +4632,7 @@
4612
4632
  role: "menuitemradio",
4613
4633
  onClick: ($event) => _ctx.handleNode(node, false)
4614
4634
  }, [
4615
- vue.createElementVNode("view", _hoisted_3$E, vue.toDisplayString(node.text), 1),
4635
+ vue.createElementVNode("view", _hoisted_3$F, vue.toDisplayString(node.text), 1),
4616
4636
  node.loading ? (vue.openBlock(), vue.createBlock(_component_nut_icon, {
4617
4637
  key: 0,
4618
4638
  class: "nut-cascader-item__icon-loading",
@@ -5409,7 +5429,7 @@
5409
5429
  key: 1,
5410
5430
  class: "calendar-top-slot"
5411
5431
  };
5412
- const _hoisted_3$D = {
5432
+ const _hoisted_3$E = {
5413
5433
  key: 2,
5414
5434
  class: "calendar-curr-month"
5415
5435
  };
@@ -5459,7 +5479,7 @@
5459
5479
  _ctx.showTopBtn ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_2$Q, [
5460
5480
  vue.renderSlot(_ctx.$slots, "btn")
5461
5481
  ])) : vue.createCommentVNode("", true),
5462
- _ctx.showSubTitle ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_3$D, vue.toDisplayString(_ctx.yearMonthTitle), 1)) : vue.createCommentVNode("", true),
5482
+ _ctx.showSubTitle ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_3$E, vue.toDisplayString(_ctx.yearMonthTitle), 1)) : vue.createCommentVNode("", true),
5463
5483
  vue.createElementVNode("view", _hoisted_4$v, [
5464
5484
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.weeks, (item, index) => {
5465
5485
  return vue.openBlock(), vue.createElementBlock("view", {
@@ -6007,6 +6027,10 @@
6007
6027
  readonly: {
6008
6028
  type: Boolean,
6009
6029
  default: false
6030
+ },
6031
+ threeDimensional: {
6032
+ type: Boolean,
6033
+ default: true
6010
6034
  }
6011
6035
  },
6012
6036
  emits: ["click", "change"],
@@ -6031,7 +6055,6 @@
6031
6055
  });
6032
6056
  const roller = vue.ref(null);
6033
6057
  const list = vue.ref(null);
6034
- const listItem = vue.ref(null);
6035
6058
  const moving = vue.ref(false);
6036
6059
  const touchDeg = vue.ref(0);
6037
6060
  const touchTime = vue.ref(0);
@@ -6043,7 +6066,7 @@
6043
6066
  transform: `rotate3d(1, 0, 0, ${touchDeg.value})`
6044
6067
  };
6045
6068
  });
6046
- const touchListStyle = vue.computed(() => {
6069
+ const touchTileStyle = vue.computed(() => {
6047
6070
  return {
6048
6071
  transition: `transform ${touchTime.value}ms cubic-bezier(0.17, 0.89, 0.45, 1)`,
6049
6072
  transform: `translate3d(0, ${state.scrollDistance}px, 0)`
@@ -6055,7 +6078,11 @@
6055
6078
  const onTouchStart = (event) => {
6056
6079
  touch.start(event);
6057
6080
  if (moving.value) {
6058
- const { transform } = window.getComputedStyle(list.value);
6081
+ let dom = list.value;
6082
+ if (!props.threeDimensional) {
6083
+ dom = roller.value;
6084
+ }
6085
+ const { transform } = window.getComputedStyle(dom);
6059
6086
  state.scrollDistance = +transform.slice(7, transform.length - 1).split(", ")[5];
6060
6087
  }
6061
6088
  state.touchParams.startY = touch.deltaY.value;
@@ -6069,13 +6096,8 @@
6069
6096
  preventDefault2(event, true);
6070
6097
  }
6071
6098
  state.touchParams.lastY = touch.deltaY.value;
6072
- const now = Date.now();
6073
6099
  let move = state.touchParams.lastY - state.touchParams.startY;
6074
6100
  setMove(move);
6075
- if (now - state.touchParams.startTime > INERTIA_TIME) {
6076
- state.touchParams.startTime = now;
6077
- state.touchParams.startY = state.touchParams.lastY;
6078
- }
6079
6101
  };
6080
6102
  const onTouchEnd = (event) => {
6081
6103
  state.touchParams.lastY = touch.deltaY.value;
@@ -6129,13 +6151,15 @@
6129
6151
  setTransform(endMove, type, time, deg);
6130
6152
  state.currIndex = Math.abs(Math.round(endMove / state.lineSpacing)) + 1;
6131
6153
  } else {
6132
- let deg = "0deg";
6154
+ let deg = 0;
6133
6155
  let currentDeg = (-updateMove / state.lineSpacing + 1) * state.rotation;
6134
6156
  const maxDeg = (props.column.length + 1) * state.rotation;
6135
6157
  const minDeg = 0;
6136
- deg = Math.min(Math.max(currentDeg, minDeg), maxDeg) + "deg";
6137
- setTransform(updateMove, null, void 0, deg);
6138
- state.currIndex = Math.abs(Math.round(updateMove / state.lineSpacing)) + 1;
6158
+ deg = Math.min(Math.max(currentDeg, minDeg), maxDeg);
6159
+ if (minDeg < deg && deg < maxDeg) {
6160
+ setTransform(updateMove, null, void 0, deg + "deg");
6161
+ state.currIndex = Math.abs(Math.round(updateMove / state.lineSpacing)) + 1;
6162
+ }
6139
6163
  }
6140
6164
  };
6141
6165
  const setChooseValue = () => {
@@ -6162,7 +6186,14 @@
6162
6186
  setChooseValue();
6163
6187
  };
6164
6188
  vue.watch(() => props.column, (val) => {
6165
- console.log("props.column\u53D8\u5316", props.column);
6189
+ if (props.column && props.column.length > 0) {
6190
+ state.transformY = 0;
6191
+ modifyStatus(false);
6192
+ }
6193
+ }, {
6194
+ deep: true
6195
+ });
6196
+ vue.watch(() => props.value, (val) => {
6166
6197
  state.transformY = 0;
6167
6198
  modifyStatus(false);
6168
6199
  }, {
@@ -6179,19 +6210,25 @@
6179
6210
  isHidden,
6180
6211
  roller,
6181
6212
  list,
6182
- listItem,
6183
6213
  onTouchStart,
6184
6214
  onTouchMove,
6185
6215
  onTouchEnd,
6186
6216
  touchRollerStyle,
6187
- touchListStyle,
6217
+ touchTileStyle,
6188
6218
  setMove,
6189
6219
  stopMomentum
6190
6220
  };
6191
6221
  }
6192
6222
  });
6193
- const _hoisted_1$$ = /* @__PURE__ */ vue.createElementVNode("view", { class: "nut-picker-roller-mask" }, null, -1);
6194
- const _hoisted_2$P = { class: "nut-picker-content" };
6223
+ const _hoisted_1$$ = {
6224
+ key: 1,
6225
+ class: "nut-picker-roller-item-tile"
6226
+ };
6227
+ const _hoisted_2$P = /* @__PURE__ */ vue.createElementVNode("view", { class: "nut-picker-roller-mask" }, null, -1);
6228
+ const _hoisted_3$D = {
6229
+ key: 0,
6230
+ class: "nut-picker-content"
6231
+ };
6195
6232
  function _sfc_render$1a(_ctx, _cache, $props, $setup, $data, $options) {
6196
6233
  return vue.openBlock(), vue.createElementBlock("view", {
6197
6234
  class: "nut-picker__list",
@@ -6202,29 +6239,30 @@
6202
6239
  vue.createElementVNode("view", {
6203
6240
  class: "nut-picker-roller",
6204
6241
  ref: "roller",
6205
- style: vue.normalizeStyle(_ctx.touchRollerStyle),
6242
+ style: vue.normalizeStyle(_ctx.threeDimensional ? _ctx.touchRollerStyle : _ctx.touchTileStyle),
6206
6243
  onTransitionend: _cache[0] || (_cache[0] = (...args) => _ctx.stopMomentum && _ctx.stopMomentum(...args))
6207
6244
  }, [
6208
6245
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.column, (item, index) => {
6209
6246
  return vue.openBlock(), vue.createElementBlock(vue.Fragment, {
6210
6247
  key: item.value ? item.value : index
6211
6248
  }, [
6212
- item && item.text ? (vue.openBlock(), vue.createElementBlock("view", {
6249
+ item && item.text && _ctx.threeDimensional ? (vue.openBlock(), vue.createElementBlock("view", {
6213
6250
  key: 0,
6214
6251
  class: vue.normalizeClass(["nut-picker-roller-item", { "nut-picker-roller-item-hidden": _ctx.isHidden(index + 1) }]),
6215
6252
  style: vue.normalizeStyle(_ctx.setRollerStyle(index + 1))
6216
- }, vue.toDisplayString(item.text), 7)) : vue.createCommentVNode("", true)
6253
+ }, vue.toDisplayString(item.text), 7)) : vue.createCommentVNode("", true),
6254
+ item && item.text && !_ctx.threeDimensional ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_1$$, vue.toDisplayString(item.text), 1)) : vue.createCommentVNode("", true)
6217
6255
  ], 64);
6218
6256
  }), 128))
6219
6257
  ], 36),
6220
- _hoisted_1$$,
6221
- vue.createElementVNode("view", _hoisted_2$P, [
6258
+ _hoisted_2$P,
6259
+ _ctx.threeDimensional ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_3$D, [
6222
6260
  vue.createElementVNode("view", {
6223
6261
  class: "nut-picker-list-panel",
6224
6262
  ref: "list",
6225
- style: vue.normalizeStyle(_ctx.touchListStyle)
6263
+ style: vue.normalizeStyle(_ctx.touchTileStyle)
6226
6264
  }, null, 4)
6227
- ])
6265
+ ])) : vue.createCommentVNode("", true)
6228
6266
  ], 32);
6229
6267
  }
6230
6268
  var column$1 = /* @__PURE__ */ _export_sfc(_sfc_main$1e, [["render", _sfc_render$1a]]);
@@ -6261,6 +6299,10 @@
6261
6299
  readonly: {
6262
6300
  type: Boolean,
6263
6301
  default: false
6302
+ },
6303
+ threeDimensional: {
6304
+ type: Boolean,
6305
+ default: true
6264
6306
  }
6265
6307
  },
6266
6308
  emits: ["close", "change", "confirm", "update:visible", "update:modelValue"],
@@ -6341,11 +6383,14 @@
6341
6383
  defaultValues.value[columnIndex] = option.value ? option.value : "";
6342
6384
  let index = columnIndex;
6343
6385
  let cursor = option;
6344
- while (cursor && cursor.children) {
6386
+ while (cursor && cursor.children && cursor.children[0]) {
6345
6387
  defaultValues.value[index + 1] = cursor.children[0].value;
6346
6388
  index++;
6347
6389
  cursor = cursor.children[0];
6348
6390
  }
6391
+ if (cursor && cursor.children && cursor.children.length == 0) {
6392
+ defaultValues.value = defaultValues.value.slice(0, index + 1);
6393
+ }
6349
6394
  } else {
6350
6395
  defaultValues.value[columnIndex] = option.hasOwnProperty("value") ? option.value : "";
6351
6396
  }
@@ -6454,10 +6499,11 @@
6454
6499
  readonly: _ctx.readonly,
6455
6500
  columnsType: _ctx.columnsType,
6456
6501
  value: _ctx.defaultValues[columnIndex],
6502
+ threeDimensional: _ctx.threeDimensional,
6457
6503
  onChange: (option) => {
6458
6504
  _ctx.changeHandler(columnIndex, option);
6459
6505
  }
6460
- }, null, 8, ["itemShow", "column", "readonly", "columnsType", "value", "onChange"])
6506
+ }, null, 8, ["itemShow", "column", "readonly", "columnsType", "value", "threeDimensional", "onChange"])
6461
6507
  ]);
6462
6508
  }), 128))
6463
6509
  ], 512),
@@ -6533,6 +6579,10 @@
6533
6579
  type: Function,
6534
6580
  default: null
6535
6581
  },
6582
+ threeDimensional: {
6583
+ type: Boolean,
6584
+ default: true
6585
+ },
6536
6586
  filter: Function
6537
6587
  },
6538
6588
  emits: ["click", "update:visible", "change", "confirm", "update:moduleValue"],
@@ -6660,7 +6710,7 @@
6660
6710
  selectedValue,
6661
6711
  selectedOptions
6662
6712
  }) => {
6663
- if (["date", "datetime", "datehour", "month-day"].includes(props.type)) {
6713
+ if (["date", "datetime", "datehour", "month-day", "year-month"].includes(props.type)) {
6664
6714
  let formatDate = [];
6665
6715
  selectedValue.forEach((item) => {
6666
6716
  formatDate.push(item);
@@ -6668,11 +6718,14 @@
6668
6718
  if (props.type == "month-day" && formatDate.length < 3) {
6669
6719
  formatDate.unshift(new Date(props.modelValue || props.minDate || props.maxDate).getFullYear());
6670
6720
  }
6721
+ if (props.type == "year-month" && formatDate.length < 3) {
6722
+ formatDate.push(new Date(props.modelValue || props.minDate || props.maxDate).getDate());
6723
+ }
6671
6724
  const year = Number(formatDate[0]);
6672
6725
  const month = Number(formatDate[1]) - 1;
6673
6726
  const day = Math.min(Number(formatDate[2]), getMonthEndDay(Number(formatDate[0]), Number(formatDate[1])));
6674
6727
  let date = null;
6675
- if (props.type === "date" || props.type === "month-day") {
6728
+ if (props.type === "date" || props.type === "month-day" || props.type === "year-month") {
6676
6729
  date = new Date(year, month, day);
6677
6730
  } else if (props.type === "datetime") {
6678
6731
  date = new Date(year, month, day, Number(formatDate[3]), Number(formatDate[4]));
@@ -6770,13 +6823,17 @@
6770
6823
  onChange: _ctx.changeHandler,
6771
6824
  title: _ctx.title,
6772
6825
  onConfirm: _ctx.confirm,
6773
- isWrapTeleport: _ctx.isWrapTeleport
6826
+ isWrapTeleport: _ctx.isWrapTeleport,
6827
+ threeDimensional: _ctx.threeDimensional
6774
6828
  }, {
6829
+ top: vue.withCtx(() => [
6830
+ vue.renderSlot(_ctx.$slots, "top")
6831
+ ]),
6775
6832
  default: vue.withCtx(() => [
6776
6833
  vue.renderSlot(_ctx.$slots, "default")
6777
6834
  ]),
6778
6835
  _: 3
6779
- }, 8, ["modelValue", "visible", "okText", "cancelText", "onClose", "columns", "onChange", "title", "onConfirm", "isWrapTeleport"]);
6836
+ }, 8, ["modelValue", "visible", "okText", "cancelText", "onClose", "columns", "onChange", "title", "onConfirm", "isWrapTeleport", "threeDimensional"]);
6780
6837
  }
6781
6838
  var DatePicker = /* @__PURE__ */ _export_sfc(_sfc_main$1c, [["render", _sfc_render$18]]);
6782
6839
  const { componentName: componentName$10, create: create$1b } = createComponent("inputnumber");
@@ -8086,7 +8143,11 @@
8086
8143
  xhr.setRequestHeader(key, value);
8087
8144
  }
8088
8145
  (_a = options.onStart) == null ? void 0 : _a.call(options, options);
8089
- xhr.send(options.formData);
8146
+ if (options.method.toLowerCase() == "put") {
8147
+ xhr.send(options.sourceFile);
8148
+ } else {
8149
+ xhr.send(options.formData);
8150
+ }
8090
8151
  } else {
8091
8152
  console.warn("\u6D4F\u89C8\u5668\u4E0D\u652F\u6301 XMLHttpRequest");
8092
8153
  }
@@ -8210,6 +8271,10 @@
8210
8271
  uploadOption.xhrState = props.xhrState;
8211
8272
  uploadOption.headers = props.headers;
8212
8273
  uploadOption.withCredentials = props.withCredentials;
8274
+ try {
8275
+ uploadOption.sourceFile = fileItem.formData.get(props.name);
8276
+ } catch (error) {
8277
+ }
8213
8278
  uploadOption.onStart = (option) => {
8214
8279
  fileItem.status = "ready";
8215
8280
  fileItem.message = translate$i("readyUpload");
@@ -8436,7 +8501,6 @@
8436
8501
  ])) : vue.createCommentVNode("", true),
8437
8502
  _ctx.isDeletable ? (vue.openBlock(), vue.createBlock(_component_nut_icon, {
8438
8503
  key: 2,
8439
- color: "rgba(0,0,0,0.6)",
8440
8504
  onClick: ($event) => _ctx.onDelete(item, index),
8441
8505
  class: "close",
8442
8506
  name: "failure"
@@ -9711,6 +9775,10 @@
9711
9775
  isWrapTeleport: {
9712
9776
  type: Boolean,
9713
9777
  default: true
9778
+ },
9779
+ closeAbled: {
9780
+ type: Boolean,
9781
+ default: true
9714
9782
  }
9715
9783
  },
9716
9784
  emits: ["cancel", "close", "choose", "update:visible"],
@@ -9778,7 +9846,8 @@
9778
9846
  isWrapTeleport: _ctx.isWrapTeleport,
9779
9847
  position: "bottom",
9780
9848
  round: "",
9781
- onClickOverlay: _ctx.close
9849
+ onClickOverlay: _ctx.close,
9850
+ closeOnClickOverlay: _ctx.closeAbled
9782
9851
  }, {
9783
9852
  default: vue.withCtx(() => [
9784
9853
  vue.createElementVNode("view", _hoisted_1$O, [
@@ -9811,7 +9880,7 @@
9811
9880
  ])
9812
9881
  ]),
9813
9882
  _: 3
9814
- }, 8, ["visible", "isWrapTeleport", "onClickOverlay"])
9883
+ }, 8, ["visible", "isWrapTeleport", "onClickOverlay", "closeOnClickOverlay"])
9815
9884
  ], 2);
9816
9885
  }
9817
9886
  var ActionSheet = /* @__PURE__ */ _export_sfc(_sfc_main$Z, [["render", _sfc_render$Y]]);
@@ -17192,9 +17261,19 @@
17192
17261
  [`nut-table__main__head__tr--align${item.align ? item.align : ""}`]: true
17193
17262
  };
17194
17263
  };
17264
+ const stylehead = (item) => {
17265
+ return item.stylehead ? item.stylehead : "";
17266
+ };
17267
+ const stylecolumn = (item) => {
17268
+ return item.stylecolumn ? item.stylecolumn : "";
17269
+ };
17195
17270
  const getColumnItem = (value) => {
17196
17271
  return props.columns.filter((item) => item.key === value)[0];
17197
17272
  };
17273
+ const getColumnItemStyle = (value) => {
17274
+ const style = props.columns.filter((item) => item.key === value);
17275
+ return style[0].stylecolumn ? style[0].stylecolumn : "";
17276
+ };
17198
17277
  const handleSorterClick = (item) => {
17199
17278
  if (item.sorter) {
17200
17279
  emit("sorter", item);
@@ -17214,9 +17293,12 @@
17214
17293
  classes,
17215
17294
  cellClasses,
17216
17295
  getColumnItem,
17296
+ getColumnItemStyle,
17217
17297
  handleSorterClick,
17218
17298
  sortDataItem,
17219
- translate: translate2
17299
+ translate: translate2,
17300
+ stylehead,
17301
+ stylecolumn
17220
17302
  };
17221
17303
  }
17222
17304
  };
@@ -17230,17 +17312,17 @@
17230
17312
  const _hoisted_5$9 = { key: 1 };
17231
17313
  const _hoisted_6$8 = {
17232
17314
  key: 0,
17233
- class: "nut-table__summary"
17234
- };
17235
- const _hoisted_7$6 = ["innerHTML"];
17236
- const _hoisted_8$3 = {
17237
- key: 1,
17238
17315
  class: "nut-table__nodata"
17239
17316
  };
17240
- const _hoisted_9$3 = {
17317
+ const _hoisted_7$6 = {
17241
17318
  key: 0,
17242
17319
  class: "nut-table__nodata__text"
17243
17320
  };
17321
+ const _hoisted_8$3 = {
17322
+ key: 1,
17323
+ class: "nut-table__summary"
17324
+ };
17325
+ const _hoisted_9$3 = ["innerHTML"];
17244
17326
  function _sfc_render$r(_ctx, _cache, $props, $setup, $data, $options) {
17245
17327
  const _component_nut_icon = vue.resolveComponent("nut-icon");
17246
17328
  const _component_RenderColumn = vue.resolveComponent("RenderColumn");
@@ -17256,7 +17338,8 @@
17256
17338
  return vue.openBlock(), vue.createElementBlock("span", {
17257
17339
  class: vue.normalizeClass(["nut-table__main__head__tr__th", _ctx.cellClasses(item)]),
17258
17340
  key: item.key,
17259
- onClick: ($event) => _ctx.handleSorterClick(item)
17341
+ onClick: ($event) => _ctx.handleSorterClick(item),
17342
+ style: vue.normalizeStyle(item.stylehead)
17260
17343
  }, [
17261
17344
  vue.createTextVNode(vue.toDisplayString(item.title) + " ", 1),
17262
17345
  vue.renderSlot(_ctx.$slots, "icon"),
@@ -17265,7 +17348,7 @@
17265
17348
  name: "down-arrow",
17266
17349
  size: "12px"
17267
17350
  })) : vue.createCommentVNode("", true)
17268
- ], 10, _hoisted_3$j);
17351
+ ], 14, _hoisted_3$j);
17269
17352
  }), 128))
17270
17353
  ])
17271
17354
  ]),
@@ -17278,32 +17361,33 @@
17278
17361
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.sortDataItem(), ([value, render2]) => {
17279
17362
  return vue.openBlock(), vue.createElementBlock("span", {
17280
17363
  class: vue.normalizeClass(["nut-table__main__body__tr__td", _ctx.cellClasses(_ctx.getColumnItem(value))]),
17281
- key: value
17364
+ key: value,
17365
+ style: vue.normalizeStyle(_ctx.getColumnItemStyle(value))
17282
17366
  }, [
17283
17367
  typeof item[value] === "function" || typeof render2 === "function" ? (vue.openBlock(), vue.createBlock(_component_RenderColumn, {
17284
17368
  key: 0,
17285
17369
  slots: [render2, item[value]],
17286
17370
  record: item
17287
17371
  }, null, 8, ["slots", "record"])) : (vue.openBlock(), vue.createElementBlock("view", _hoisted_5$9, vue.toDisplayString(item[value]), 1))
17288
- ], 2);
17372
+ ], 6);
17289
17373
  }), 128))
17290
17374
  ]);
17291
17375
  }), 128))
17292
17376
  ])
17293
17377
  ], 2),
17294
- _ctx.summary ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_6$8, [
17295
- vue.createElementVNode("span", {
17296
- class: "nut-table__summary__text",
17297
- innerHTML: _ctx.summary().value
17298
- }, null, 8, _hoisted_7$6)
17299
- ])) : vue.createCommentVNode("", true),
17300
- !_ctx.curData.length ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_8$3, [
17378
+ !_ctx.curData.length ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_6$8, [
17301
17379
  vue.createElementVNode("div", {
17302
17380
  class: vue.normalizeClass(["nut-table__nodata", { "nut-table__nodata--border": _ctx.bordered }])
17303
17381
  }, [
17304
17382
  vue.renderSlot(_ctx.$slots, "nodata"),
17305
- !_ctx.$slots.nodata ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_9$3, vue.toDisplayString(_ctx.translate("noData")), 1)) : vue.createCommentVNode("", true)
17383
+ !_ctx.$slots.nodata ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_7$6, vue.toDisplayString(_ctx.translate("noData")), 1)) : vue.createCommentVNode("", true)
17306
17384
  ], 2)
17385
+ ])) : vue.createCommentVNode("", true),
17386
+ _ctx.summary ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_8$3, [
17387
+ vue.createElementVNode("span", {
17388
+ class: "nut-table__summary__text",
17389
+ innerHTML: _ctx.summary().value
17390
+ }, null, 8, _hoisted_9$3)
17307
17391
  ])) : vue.createCommentVNode("", true)
17308
17392
  ], 2);
17309
17393
  }
@@ -19324,9 +19408,12 @@
19324
19408
  vue.createElementVNode("div", _hoisted_5$6, vue.toDisplayString(_ctx.title), 1),
19325
19409
  vue.renderSlot(_ctx.$slots, "prolist"),
19326
19410
  _ctx.isNeedPrice ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_6$5, [
19327
- vue.createVNode(_component_nut_price, { price: _ctx.price }, null, 8, ["price"]),
19328
- _ctx.isHaveSlot("origin") ? vue.renderSlot(_ctx.$slots, "origin", { key: 0 }) : (vue.openBlock(), vue.createBlock(_component_nut_price, {
19411
+ _ctx.isHaveSlot("price") ? vue.renderSlot(_ctx.$slots, "price", { key: 0 }) : (vue.openBlock(), vue.createBlock(_component_nut_price, {
19329
19412
  key: 1,
19413
+ price: _ctx.price
19414
+ }, null, 8, ["price"])),
19415
+ _ctx.isHaveSlot("origin") ? vue.renderSlot(_ctx.$slots, "origin", { key: 2 }) : (vue.openBlock(), vue.createBlock(_component_nut_price, {
19416
+ key: 3,
19330
19417
  class: "nut-card__right__price__origin",
19331
19418
  price: _ctx.vipPrice
19332
19419
  }, null, 8, ["price"]))
@@ -20345,7 +20432,7 @@
20345
20432
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.info.score = $event),
20346
20433
  "icon-size": "10",
20347
20434
  spacing: "5",
20348
- readOnly: "",
20435
+ readonly: "",
20349
20436
  onChange: _ctx.handleClick
20350
20437
  }, null, 8, ["modelValue", "onChange"])
20351
20438
  ])
@@ -20369,7 +20456,8 @@
20369
20456
  modelValue: _ctx.info.score,
20370
20457
  "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => _ctx.info.score = $event),
20371
20458
  "icon-size": "12",
20372
- spacing: "3"
20459
+ spacing: "3",
20460
+ readonly: ""
20373
20461
  }, null, 8, ["modelValue"]),
20374
20462
  vue.createElementVNode("i", {
20375
20463
  class: vue.normalizeClass([`nut-comment-header__${_ctx.type}-score-i`])
@@ -20720,7 +20808,7 @@
20720
20808
  }
20721
20809
  });
20722
20810
  }
20723
- const version = "3.1.23-beta.2";
20811
+ const version = "3.1.23-beta.5";
20724
20812
  var nutui_vue_build = { install, version, Locale };
20725
20813
  exports2.ActionSheet = ActionSheet;
20726
20814
  exports2.Address = Address;