@nutui/nutui 3.1.23-beta.3 → 3.1.23-beta.6

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 (185) hide show
  1. package/README.md +7 -0
  2. package/dist/nutui.es.js +356 -286
  3. package/dist/nutui.umd.js +356 -286
  4. package/dist/packages/_es/ActionSheet.js +22 -4
  5. package/dist/packages/_es/Address.js +26 -8
  6. package/dist/packages/_es/AddressList.js +2 -2
  7. package/dist/packages/_es/Animate.js +21 -2
  8. package/dist/packages/_es/Audio.js +22 -5
  9. package/dist/packages/_es/AudioOperate.js +21 -2
  10. package/dist/packages/_es/Avatar.js +20 -5
  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 +1 -1
  19. package/dist/packages/_es/Cascader.js +46 -19
  20. package/dist/packages/_es/Category.js +1 -1
  21. package/dist/packages/_es/CategoryPane.js +2 -2
  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 +10 -9
  29. package/dist/packages/_es/CollapseItem.js +24 -7
  30. package/dist/packages/_es/Comment.js +1 -1
  31. package/dist/packages/_es/ConfigProvider.js +1 -1
  32. package/dist/packages/_es/CountDown.js +23 -5
  33. package/dist/packages/_es/CountUp.js +22 -5
  34. package/dist/packages/_es/DatePicker.js +32 -9
  35. package/dist/packages/_es/Dialog.js +22 -4
  36. package/dist/packages/_es/Divider.js +24 -7
  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 +24 -5
  40. package/dist/packages/_es/Ellipsis.js +21 -2
  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 +21 -2
  49. package/dist/packages/_es/ImagePreview.js +26 -8
  50. package/dist/packages/_es/Indicator.js +1 -1
  51. package/dist/packages/_es/InfiniteLoading.js +24 -5
  52. package/dist/packages/_es/Input.js +31 -4
  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 +22 -4
  56. package/dist/packages/_es/Menu.js +1 -1
  57. package/dist/packages/_es/MenuItem.js +28 -5
  58. package/dist/packages/_es/Navbar.js +1 -1
  59. package/dist/packages/_es/NoticeBar.js +23 -6
  60. package/dist/packages/_es/Notify.js +32 -19
  61. package/dist/packages/_es/NumberKeyboard.js +1 -1
  62. package/dist/packages/_es/OldPicker.js +28 -12
  63. package/dist/packages/_es/OverLay.js +20 -5
  64. package/dist/packages/_es/Pagination.js +1 -1
  65. package/dist/packages/_es/Picker.js +40 -14
  66. package/dist/packages/_es/Popover.js +22 -4
  67. package/dist/packages/_es/Popup.js +28 -14
  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 +20 -5
  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 +24 -5
  74. package/dist/packages/_es/Rate.js +24 -5
  75. package/dist/packages/_es/Row.js +1 -1
  76. package/dist/packages/_es/SearchBar.js +24 -5
  77. package/dist/packages/_es/ShortPassword.js +1 -1
  78. package/dist/packages/_es/SideNavBar.js +22 -4
  79. package/dist/packages/_es/SideNavBarItem.js +1 -1
  80. package/dist/packages/_es/Signature.js +28 -7
  81. package/dist/packages/_es/Skeleton.js +1 -1
  82. package/dist/packages/_es/Sku.js +22 -4
  83. package/dist/packages/_es/Step.js +22 -4
  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 +22 -4
  87. package/dist/packages/_es/Swipe.js +24 -5
  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 +57 -24
  95. package/dist/packages/_es/Tabs.js +20 -5
  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 +24 -5
  99. package/dist/packages/_es/TimePannel.js +22 -4
  100. package/dist/packages/_es/TimeSelect.js +1 -1
  101. package/dist/packages/_es/Toast.js +31 -12
  102. package/dist/packages/_es/Uploader.js +29 -7
  103. package/dist/packages/_es/Video.js +24 -6
  104. package/dist/packages/_es/WaterMark.js +21 -2
  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 +24 -6
  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/index.d.ts +3 -0
  121. package/dist/packages/locale/lang/baseLang.js +1 -1
  122. package/dist/packages/locale/lang/en-US.js +1 -1
  123. package/dist/packages/locale/lang/id-ID.js +1 -1
  124. package/dist/packages/locale/lang/index.js +1 -1
  125. package/dist/packages/locale/lang/zh-CN.js +1 -1
  126. package/dist/packages/locale/lang/zh-TW.js +1 -1
  127. package/dist/packages/notify/index.scss +5 -0
  128. package/dist/packages/oldpicker/index.scss +2 -0
  129. package/dist/packages/picker/index.scss +2 -0
  130. package/dist/packages/table/index.scss +33 -0
  131. package/dist/packages/textarea/index.scss +6 -0
  132. package/dist/packages/timedetail/index.scss +16 -0
  133. package/dist/packages/timepannel/index.scss +10 -0
  134. package/dist/packages/timeselect/index.scss +19 -1
  135. package/dist/packages/uploader/index.scss +10 -0
  136. package/dist/smartips/web-types.json +1 -1
  137. package/dist/style.css +1 -1
  138. package/dist/style.es.js +1 -1
  139. package/dist/styles/themes/default.scss +53 -53
  140. package/dist/styles/themes/jdb.scss +53 -53
  141. package/dist/styles/themes/jdt.scss +53 -53
  142. package/dist/styles/variables-jdb.scss +5 -4
  143. package/dist/styles/variables-jdt.scss +5 -4
  144. package/dist/styles/variables.scss +5 -4
  145. package/dist/types/__VUE/actionsheet/index.vue.d.ts +3 -3
  146. package/dist/types/__VUE/address/index.vue.d.ts +4 -4
  147. package/dist/types/__VUE/avatar/index.vue.d.ts +4 -4
  148. package/dist/types/__VUE/backtop/index.vue.d.ts +2 -2
  149. package/dist/types/__VUE/button/index.vue.d.ts +2 -2
  150. package/dist/types/__VUE/calendar/index.vue.d.ts +1 -1
  151. package/dist/types/__VUE/cascader/index.vue.d.ts +2 -2
  152. package/dist/types/__VUE/cell/index.vue.d.ts +4 -4
  153. package/dist/types/__VUE/collapseitem/index.vue.d.ts +2 -2
  154. package/dist/types/__VUE/datepicker/index.vue.d.ts +2 -2
  155. package/dist/types/__VUE/dialog/index.vue.d.ts +2 -2
  156. package/dist/types/__VUE/divider/index.vue.d.ts +2 -2
  157. package/dist/types/__VUE/fixednav/index.vue.d.ts +2 -2
  158. package/dist/types/__VUE/grid/index.vue.d.ts +3 -3
  159. package/dist/types/__VUE/input/index.vue.d.ts +3 -2
  160. package/dist/types/__VUE/menu/index.vue.d.ts +2 -2
  161. package/dist/types/__VUE/menuitem/index.vue.d.ts +6 -0
  162. package/dist/types/__VUE/notify/index.vue.d.ts +5 -5
  163. package/dist/types/__VUE/numberkeyboard/index.vue.d.ts +2 -2
  164. package/dist/types/__VUE/oldpicker/index.vue.d.ts +3 -3
  165. package/dist/types/__VUE/picker/Column.vue.d.ts +1 -1
  166. package/dist/types/__VUE/picker/index.vue.d.ts +4 -4
  167. package/dist/types/__VUE/popover/index.vue.d.ts +4 -4
  168. package/dist/types/__VUE/popup/index.vue.d.ts +4 -4
  169. package/dist/types/__VUE/range/index.vue.d.ts +1 -1
  170. package/dist/types/__VUE/rate/index.vue.d.ts +2 -2
  171. package/dist/types/__VUE/shortpassword/index.vue.d.ts +1 -1
  172. package/dist/types/__VUE/sku/index.vue.d.ts +3 -3
  173. package/dist/types/__VUE/step/index.vue.d.ts +2 -2
  174. package/dist/types/__VUE/swipe/index.vue.d.ts +2 -2
  175. package/dist/types/__VUE/switch/index.vue.d.ts +4 -4
  176. package/dist/types/__VUE/tabbar/index.vue.d.ts +3 -3
  177. package/dist/types/__VUE/tabbaritem/index.vue.d.ts +9 -3
  178. package/dist/types/__VUE/table/common.d.ts +3 -0
  179. package/dist/types/__VUE/table/index.vue.d.ts +3 -0
  180. package/dist/types/__VUE/table/types.d.ts +2 -0
  181. package/dist/types/__VUE/toast/index.vue.d.ts +2 -2
  182. package/dist/types/__VUE/uploader/index.vue.d.ts +2 -2
  183. package/dist/types/__VUE/uploader/uploader.d.ts +1 -0
  184. package/dist/types/index.d.ts +1 -1
  185. package/package.json +1 -1
@@ -1,5 +1,24 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __defProps = Object.defineProperties;
3
+ var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
4
+ var __getOwnPropSymbols = Object.getOwnPropertySymbols;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __propIsEnum = Object.prototype.propertyIsEnumerable;
7
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
8
+ var __spreadValues = (a, b) => {
9
+ for (var prop in b || (b = {}))
10
+ if (__hasOwnProp.call(b, prop))
11
+ __defNormalProp(a, prop, b[prop]);
12
+ if (__getOwnPropSymbols)
13
+ for (var prop of __getOwnPropSymbols(b)) {
14
+ if (__propIsEnum.call(b, prop))
15
+ __defNormalProp(a, prop, b[prop]);
16
+ }
17
+ return a;
18
+ };
19
+ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
1
20
  /*!
2
- * @nutui/nutui v3.1.23-beta.3 Fri Jul 08 2022 17:15:25 GMT+0800 (中国标准时间)
21
+ * @nutui/nutui v3.1.23-beta.6 Thu Jul 28 2022 18:06:31 GMT+0800 (中国标准时间)
3
22
  * (c) 2022 @jdf2e.
4
23
  * Released under the MIT License.
5
24
  */
@@ -144,15 +163,15 @@ const _sfc_main = create({
144
163
  }
145
164
  }
146
165
  };
147
- return {
166
+ return __spreadProps(__spreadValues({
148
167
  classes,
149
- touchStyle,
150
- ...touchMethods,
168
+ touchStyle
169
+ }, touchMethods), {
151
170
  leftRef,
152
171
  rightRef,
153
172
  open,
154
173
  close
155
- };
174
+ });
156
175
  }
157
176
  });
158
177
  const _hoisted_1 = {
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.1.23-beta.3 Fri Jul 08 2022 17:15:25 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.1.23-beta.6 Thu Jul 28 2022 18:06:31 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.1.23-beta.3 Fri Jul 08 2022 17:15:25 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.1.23-beta.6 Thu Jul 28 2022 18:06:31 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.1.23-beta.3 Fri Jul 08 2022 17:15:25 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.1.23-beta.6 Thu Jul 28 2022 18:06:31 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.1.23-beta.3 Fri Jul 08 2022 17:15:25 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.1.23-beta.6 Thu Jul 28 2022 18:06:31 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.1.23-beta.3 Fri Jul 08 2022 17:15:25 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.1.23-beta.6 Thu Jul 28 2022 18:06:31 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -45,10 +45,10 @@ const _sfc_main = create({
45
45
  val: props.visible,
46
46
  children: []
47
47
  });
48
- function changeIndex(active) {
48
+ function changeIndex(index2, active) {
49
49
  emit("update:visible", active);
50
50
  parentData.modelValue = active;
51
- emit("tab-switch", parentData.children[active], active);
51
+ emit("tab-switch", parentData.children[index2], active);
52
52
  }
53
53
  let parentData = reactive({
54
54
  children: mdValue.children,
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.1.23-beta.3 Fri Jul 08 2022 17:15:25 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.1.23-beta.6 Thu Jul 28 2022 18:06:31 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -15,6 +15,9 @@ const _sfc_main = create({
15
15
  type: String,
16
16
  default: ""
17
17
  },
18
+ name: {
19
+ type: String
20
+ },
18
21
  icon: {
19
22
  type: String,
20
23
  default: ""
@@ -60,15 +63,25 @@ const _sfc_main = create({
60
63
  });
61
64
  const router = useRouter();
62
65
  const relation = (child) => {
66
+ var _a;
63
67
  if (child.proxy) {
64
- let index2 = parent.children.length;
65
- state.index = index2;
66
68
  parent.children.push(child.proxy);
69
+ const index2 = computed(() => parent.children.indexOf(child.proxy));
70
+ state.index = (_a = props.name) != null ? _a : index2.value;
67
71
  }
68
72
  };
69
73
  relation(getCurrentInstance());
70
- function change(index2) {
71
- parent.changeIndex(index2);
74
+ const active = computed(() => state.index === state.active);
75
+ function change() {
76
+ var _a;
77
+ let key = (_a = props.name) != null ? _a : state.index;
78
+ let index2 = null;
79
+ if (props.name) {
80
+ index2 = parent.children.findIndex((item) => {
81
+ return item.name == key;
82
+ });
83
+ }
84
+ parent.changeIndex(index2 != null ? index2 : key, state.index);
72
85
  }
73
86
  const choosed = computed(() => {
74
87
  if (parent) {
@@ -78,13 +91,19 @@ const _sfc_main = create({
78
91
  });
79
92
  watch(choosed, (value, oldValue) => {
80
93
  state.active = value;
94
+ let index2 = value;
95
+ if (props.name) {
96
+ index2 = parent.children.findIndex((item) => {
97
+ return item.name == value;
98
+ });
99
+ }
81
100
  setTimeout(() => {
82
- if (parent.children[value].href) {
83
- window.location.href = parent.children[value].href;
101
+ if (parent.children[index2].href) {
102
+ window.location.href = parent.children[index2].href;
84
103
  return;
85
104
  }
86
- if (parent.children[value].to) {
87
- let to = parent.children[value].to;
105
+ if (parent.children[index2].to) {
106
+ let to = parent.children[index2].to;
88
107
  if (to && router) {
89
108
  router.push(to);
90
109
  } else {
@@ -95,6 +114,7 @@ const _sfc_main = create({
95
114
  });
96
115
  return {
97
116
  state,
117
+ active,
98
118
  change
99
119
  };
100
120
  }
@@ -117,11 +137,11 @@ const _hoisted_6 = { key: 0 };
117
137
  function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
118
138
  const _component_nut_icon = resolveComponent("nut-icon");
119
139
  return openBlock(), createElementBlock("div", {
120
- class: normalizeClass(["nut-tabbar-item", { "nut-tabbar-item__icon--unactive": _ctx.state.active != _ctx.state.index }]),
140
+ class: normalizeClass(["nut-tabbar-item", { "nut-tabbar-item__icon--unactive": !_ctx.active }]),
121
141
  style: normalizeStyle({
122
- color: _ctx.state.active == _ctx.state.index ? _ctx.state.activeColor : _ctx.state.unactiveColor
142
+ color: _ctx.active ? _ctx.state.activeColor : _ctx.state.unactiveColor
123
143
  }),
124
- onClick: _cache[0] || (_cache[0] = ($event) => _ctx.change(_ctx.state.index))
144
+ onClick: _cache[0] || (_cache[0] = ($event) => _ctx.change())
125
145
  }, [
126
146
  createElementVNode("view", _hoisted_1, [
127
147
  !_ctx.dot ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
@@ -141,7 +161,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
141
161
  key: 3,
142
162
  class: "nut-tabbar-item_icon-box_icon",
143
163
  style: normalizeStyle({
144
- backgroundImage: `url(${_ctx.state.active == _ctx.state.index ? _ctx.activeImg : _ctx.img})`,
164
+ backgroundImage: `url(${_ctx.active ? _ctx.activeImg : _ctx.img})`,
145
165
  width: _ctx.state.size,
146
166
  height: _ctx.state.size
147
167
  })
@@ -1,10 +1,29 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __defProps = Object.defineProperties;
3
+ var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
4
+ var __getOwnPropSymbols = Object.getOwnPropertySymbols;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __propIsEnum = Object.prototype.propertyIsEnumerable;
7
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
8
+ var __spreadValues = (a, b) => {
9
+ for (var prop in b || (b = {}))
10
+ if (__hasOwnProp.call(b, prop))
11
+ __defNormalProp(a, prop, b[prop]);
12
+ if (__getOwnPropSymbols)
13
+ for (var prop of __getOwnPropSymbols(b)) {
14
+ if (__propIsEnum.call(b, prop))
15
+ __defNormalProp(a, prop, b[prop]);
16
+ }
17
+ return a;
18
+ };
19
+ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
1
20
  /*!
2
- * @nutui/nutui v3.1.23-beta.3 Fri Jul 08 2022 17:15:25 GMT+0800 (中国标准时间)
21
+ * @nutui/nutui v3.1.23-beta.6 Thu Jul 28 2022 18:06:31 GMT+0800 (中国标准时间)
3
22
  * (c) 2022 @jdf2e.
4
23
  * Released under the MIT License.
5
24
  */
6
25
  import { c as createComponent } from "./component.js";
7
- import { h, reactive, computed, watch, toRefs, resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, Fragment, renderList, createTextVNode, toDisplayString, renderSlot, createBlock, createCommentVNode } from "vue";
26
+ import { h, reactive, computed, watch, toRefs, resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, Fragment, renderList, normalizeStyle, createTextVNode, toDisplayString, renderSlot, createBlock, createCommentVNode } from "vue";
8
27
  import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
9
28
  import "../locale/lang";
10
29
  var RenderColumn = {
@@ -64,9 +83,19 @@ const component = (componentName2, translate2) => {
64
83
  [`nut-table__main__head__tr--align${item.align ? item.align : ""}`]: true
65
84
  };
66
85
  };
86
+ const stylehead = (item) => {
87
+ return item.stylehead ? item.stylehead : "";
88
+ };
89
+ const stylecolumn = (item) => {
90
+ return item.stylecolumn ? item.stylecolumn : "";
91
+ };
67
92
  const getColumnItem = (value) => {
68
93
  return props.columns.filter((item) => item.key === value)[0];
69
94
  };
95
+ const getColumnItemStyle = (value) => {
96
+ const style = props.columns.filter((item) => item.key === value);
97
+ return style[0].stylecolumn ? style[0].stylecolumn : "";
98
+ };
70
99
  const handleSorterClick = (item) => {
71
100
  if (item.sorter) {
72
101
  emit("sorter", item);
@@ -81,15 +110,17 @@ const component = (componentName2, translate2) => {
81
110
  watch(() => props.data, (val) => {
82
111
  state.curData = val.slice();
83
112
  });
84
- return {
85
- ...toRefs(state),
113
+ return __spreadProps(__spreadValues({}, toRefs(state)), {
86
114
  classes,
87
115
  cellClasses,
88
116
  getColumnItem,
117
+ getColumnItemStyle,
89
118
  handleSorterClick,
90
119
  sortDataItem,
91
- translate: translate2
92
- };
120
+ translate: translate2,
121
+ stylehead,
122
+ stylecolumn
123
+ });
93
124
  }
94
125
  };
95
126
  };
@@ -102,17 +133,17 @@ const _hoisted_4 = { class: "nut-table__main__body" };
102
133
  const _hoisted_5 = { key: 1 };
103
134
  const _hoisted_6 = {
104
135
  key: 0,
105
- class: "nut-table__summary"
106
- };
107
- const _hoisted_7 = ["innerHTML"];
108
- const _hoisted_8 = {
109
- key: 1,
110
136
  class: "nut-table__nodata"
111
137
  };
112
- const _hoisted_9 = {
138
+ const _hoisted_7 = {
113
139
  key: 0,
114
140
  class: "nut-table__nodata__text"
115
141
  };
142
+ const _hoisted_8 = {
143
+ key: 1,
144
+ class: "nut-table__summary"
145
+ };
146
+ const _hoisted_9 = ["innerHTML"];
116
147
  function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
117
148
  const _component_nut_icon = resolveComponent("nut-icon");
118
149
  const _component_RenderColumn = resolveComponent("RenderColumn");
@@ -128,7 +159,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
128
159
  return openBlock(), createElementBlock("span", {
129
160
  class: normalizeClass(["nut-table__main__head__tr__th", _ctx.cellClasses(item)]),
130
161
  key: item.key,
131
- onClick: ($event) => _ctx.handleSorterClick(item)
162
+ onClick: ($event) => _ctx.handleSorterClick(item),
163
+ style: normalizeStyle(item.stylehead)
132
164
  }, [
133
165
  createTextVNode(toDisplayString(item.title) + " ", 1),
134
166
  renderSlot(_ctx.$slots, "icon"),
@@ -137,7 +169,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
137
169
  name: "down-arrow",
138
170
  size: "12px"
139
171
  })) : createCommentVNode("", true)
140
- ], 10, _hoisted_3);
172
+ ], 14, _hoisted_3);
141
173
  }), 128))
142
174
  ])
143
175
  ]),
@@ -150,32 +182,33 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
150
182
  (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.sortDataItem(), ([value, render]) => {
151
183
  return openBlock(), createElementBlock("span", {
152
184
  class: normalizeClass(["nut-table__main__body__tr__td", _ctx.cellClasses(_ctx.getColumnItem(value))]),
153
- key: value
185
+ key: value,
186
+ style: normalizeStyle(_ctx.getColumnItemStyle(value))
154
187
  }, [
155
188
  typeof item[value] === "function" || typeof render === "function" ? (openBlock(), createBlock(_component_RenderColumn, {
156
189
  key: 0,
157
190
  slots: [render, item[value]],
158
191
  record: item
159
192
  }, null, 8, ["slots", "record"])) : (openBlock(), createElementBlock("view", _hoisted_5, toDisplayString(item[value]), 1))
160
- ], 2);
193
+ ], 6);
161
194
  }), 128))
162
195
  ]);
163
196
  }), 128))
164
197
  ])
165
198
  ], 2),
166
- _ctx.summary ? (openBlock(), createElementBlock("view", _hoisted_6, [
167
- createElementVNode("span", {
168
- class: "nut-table__summary__text",
169
- innerHTML: _ctx.summary().value
170
- }, null, 8, _hoisted_7)
171
- ])) : createCommentVNode("", true),
172
- !_ctx.curData.length ? (openBlock(), createElementBlock("view", _hoisted_8, [
199
+ !_ctx.curData.length ? (openBlock(), createElementBlock("view", _hoisted_6, [
173
200
  createElementVNode("div", {
174
201
  class: normalizeClass(["nut-table__nodata", { "nut-table__nodata--border": _ctx.bordered }])
175
202
  }, [
176
203
  renderSlot(_ctx.$slots, "nodata"),
177
- !_ctx.$slots.nodata ? (openBlock(), createElementBlock("div", _hoisted_9, toDisplayString(_ctx.translate("noData")), 1)) : createCommentVNode("", true)
204
+ !_ctx.$slots.nodata ? (openBlock(), createElementBlock("div", _hoisted_7, toDisplayString(_ctx.translate("noData")), 1)) : createCommentVNode("", true)
178
205
  ], 2)
206
+ ])) : createCommentVNode("", true),
207
+ _ctx.summary ? (openBlock(), createElementBlock("view", _hoisted_8, [
208
+ createElementVNode("span", {
209
+ class: "nut-table__summary__text",
210
+ innerHTML: _ctx.summary().value
211
+ }, null, 8, _hoisted_9)
179
212
  ])) : createCommentVNode("", true)
180
213
  ], 2);
181
214
  }
@@ -1,5 +1,21 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropSymbols = Object.getOwnPropertySymbols;
3
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
4
+ var __propIsEnum = Object.prototype.propertyIsEnumerable;
5
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
6
+ var __spreadValues = (a, b) => {
7
+ for (var prop in b || (b = {}))
8
+ if (__hasOwnProp.call(b, prop))
9
+ __defNormalProp(a, prop, b[prop]);
10
+ if (__getOwnPropSymbols)
11
+ for (var prop of __getOwnPropSymbols(b)) {
12
+ if (__propIsEnum.call(b, prop))
13
+ __defNormalProp(a, prop, b[prop]);
14
+ }
15
+ return a;
16
+ };
1
17
  /*!
2
- * @nutui/nutui v3.1.23-beta.3 Fri Jul 08 2022 17:15:25 GMT+0800 (中国标准时间)
18
+ * @nutui/nutui v3.1.23-beta.6 Thu Jul 28 2022 18:06:31 GMT+0800 (中国标准时间)
3
19
  * (c) 2022 @jdf2e.
4
20
  * Released under the MIT License.
5
21
  */
@@ -149,14 +165,13 @@ const component = {
149
165
  emit("change", item);
150
166
  }
151
167
  };
152
- return {
168
+ return __spreadValues({
153
169
  titles,
154
170
  contentStyle,
155
171
  tabsNavStyle,
156
172
  titleStyle,
157
- tabsActiveStyle,
158
- ...methods
159
- };
173
+ tabsActiveStyle
174
+ }, methods);
160
175
  }
161
176
  };
162
177
  const _hoisted_1 = ["onClick"];
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.1.23-beta.3 Fri Jul 08 2022 17:15:25 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.1.23-beta.6 Thu Jul 28 2022 18:06:31 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.1.23-beta.3 Fri Jul 08 2022 17:15:25 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.1.23-beta.6 Thu Jul 28 2022 18:06:31 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,24 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __defProps = Object.defineProperties;
3
+ var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
4
+ var __getOwnPropSymbols = Object.getOwnPropertySymbols;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __propIsEnum = Object.prototype.propertyIsEnumerable;
7
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
8
+ var __spreadValues = (a, b) => {
9
+ for (var prop in b || (b = {}))
10
+ if (__hasOwnProp.call(b, prop))
11
+ __defNormalProp(a, prop, b[prop]);
12
+ if (__getOwnPropSymbols)
13
+ for (var prop of __getOwnPropSymbols(b)) {
14
+ if (__propIsEnum.call(b, prop))
15
+ __defNormalProp(a, prop, b[prop]);
16
+ }
17
+ return a;
18
+ };
19
+ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
1
20
  /*!
2
- * @nutui/nutui v3.1.23-beta.3 Fri Jul 08 2022 17:15:25 GMT+0800 (中国标准时间)
21
+ * @nutui/nutui v3.1.23-beta.6 Thu Jul 28 2022 18:06:31 GMT+0800 (中国标准时间)
3
22
  * (c) 2022 @jdf2e.
4
23
  * Released under the MIT License.
5
24
  */
@@ -51,13 +70,13 @@ const _sfc_main = create({
51
70
  const handleTime = (time) => {
52
71
  context.emit("select", time);
53
72
  };
54
- return {
55
- classes,
56
- ...toRefs(state),
73
+ return __spreadProps(__spreadValues({
74
+ classes
75
+ }, toRefs(state)), {
57
76
  getClass,
58
77
  renderData,
59
78
  handleTime
60
- };
79
+ });
61
80
  }
62
81
  });
63
82
  const _hoisted_1 = { class: "nut-timedetail__detail nut-timedetail__detail--moring" };
@@ -1,5 +1,24 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __defProps = Object.defineProperties;
3
+ var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
4
+ var __getOwnPropSymbols = Object.getOwnPropertySymbols;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __propIsEnum = Object.prototype.propertyIsEnumerable;
7
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
8
+ var __spreadValues = (a, b) => {
9
+ for (var prop in b || (b = {}))
10
+ if (__hasOwnProp.call(b, prop))
11
+ __defNormalProp(a, prop, b[prop]);
12
+ if (__getOwnPropSymbols)
13
+ for (var prop of __getOwnPropSymbols(b)) {
14
+ if (__propIsEnum.call(b, prop))
15
+ __defNormalProp(a, prop, b[prop]);
16
+ }
17
+ return a;
18
+ };
19
+ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
1
20
  /*!
2
- * @nutui/nutui v3.1.23-beta.3 Fri Jul 08 2022 17:15:25 GMT+0800 (中国标准时间)
21
+ * @nutui/nutui v3.1.23-beta.6 Thu Jul 28 2022 18:06:31 GMT+0800 (中国标准时间)
3
22
  * (c) 2022 @jdf2e.
4
23
  * Released under the MIT License.
5
24
  */
@@ -36,11 +55,10 @@ const _sfc_main = create({
36
55
  const handlePannel = (pannelKey) => {
37
56
  context.emit("change", pannelKey);
38
57
  };
39
- return {
40
- ...toRefs(state),
58
+ return __spreadProps(__spreadValues({}, toRefs(state)), {
41
59
  classes,
42
60
  handlePannel
43
- };
61
+ });
44
62
  }
45
63
  });
46
64
  function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.1.23-beta.3 Fri Jul 08 2022 17:15:25 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.1.23-beta.6 Thu Jul 28 2022 18:06:31 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,24 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __defProps = Object.defineProperties;
3
+ var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
4
+ var __getOwnPropSymbols = Object.getOwnPropertySymbols;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __propIsEnum = Object.prototype.propertyIsEnumerable;
7
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
8
+ var __spreadValues = (a, b) => {
9
+ for (var prop in b || (b = {}))
10
+ if (__hasOwnProp.call(b, prop))
11
+ __defNormalProp(a, prop, b[prop]);
12
+ if (__getOwnPropSymbols)
13
+ for (var prop of __getOwnPropSymbols(b)) {
14
+ if (__propIsEnum.call(b, prop))
15
+ __defNormalProp(a, prop, b[prop]);
16
+ }
17
+ return a;
18
+ };
19
+ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
1
20
  /*!
2
- * @nutui/nutui v3.1.23-beta.3 Fri Jul 08 2022 17:15:25 GMT+0800 (中国标准时间)
21
+ * @nutui/nutui v3.1.23-beta.6 Thu Jul 28 2022 18:06:31 GMT+0800 (中国标准时间)
3
22
  * (c) 2022 @jdf2e.
4
23
  * Released under the MIT License.
5
24
  */
@@ -243,9 +262,9 @@ const updateToast = (opts) => {
243
262
  if (container) {
244
263
  const currentOpt = optsMap.find((item) => item.id === opts.id);
245
264
  if (currentOpt) {
246
- opts = { ...defaultOptions, ...currentOpt, ...opts };
265
+ opts = __spreadValues(__spreadValues(__spreadValues({}, defaultOptions), currentOpt), opts);
247
266
  } else {
248
- opts = { ...defaultOptions, ...opts };
267
+ opts = __spreadValues(__spreadValues({}, defaultOptions), opts);
249
268
  }
250
269
  const instance = createVNode(Toast, opts);
251
270
  render(instance, container);
@@ -263,7 +282,7 @@ const mountToast = (opts) => {
263
282
  } else {
264
283
  _id = new Date().getTime() + "";
265
284
  }
266
- opts = { ...defaultOptions, ...opts };
285
+ opts = __spreadValues(__spreadValues({}, defaultOptions), opts);
267
286
  opts.id = _id;
268
287
  idsMap.push(opts.id);
269
288
  optsMap.push(opts);
@@ -283,27 +302,27 @@ const errorMsg = (msg) => {
283
302
  const ToastFunction = {
284
303
  text(msg, opts = {}) {
285
304
  errorMsg(msg);
286
- return mountToast({ ...opts, type: "text", msg });
305
+ return mountToast(__spreadProps(__spreadValues({}, opts), { type: "text", msg }));
287
306
  },
288
307
  success(msg, opts = {}) {
289
308
  errorMsg(msg);
290
- return mountToast({ icon: "success", ...opts, msg, type: "success" });
309
+ return mountToast(__spreadProps(__spreadValues({ icon: "success" }, opts), { msg, type: "success" }));
291
310
  },
292
311
  fail(msg, opts = {}) {
293
312
  errorMsg(msg);
294
- return mountToast({ icon: "failure", ...opts, msg, type: "fail" });
313
+ return mountToast(__spreadProps(__spreadValues({ icon: "failure" }, opts), { msg, type: "fail" }));
295
314
  },
296
315
  warn(msg, opts = {}) {
297
316
  errorMsg(msg);
298
- return mountToast({ icon: "tips", ...opts, msg, type: "warn" });
317
+ return mountToast(__spreadProps(__spreadValues({ icon: "tips" }, opts), { msg, type: "warn" }));
299
318
  },
300
319
  loading(msg, opts = {}) {
301
- return mountToast({
302
- icon: "loading",
303
- ...opts,
320
+ return mountToast(__spreadProps(__spreadValues({
321
+ icon: "loading"
322
+ }, opts), {
304
323
  msg,
305
324
  type: "loading"
306
- });
325
+ }));
307
326
  },
308
327
  hide(id) {
309
328
  clearToast(id);
@@ -1,5 +1,21 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropSymbols = Object.getOwnPropertySymbols;
3
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
4
+ var __propIsEnum = Object.prototype.propertyIsEnumerable;
5
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
6
+ var __spreadValues = (a, b) => {
7
+ for (var prop in b || (b = {}))
8
+ if (__hasOwnProp.call(b, prop))
9
+ __defNormalProp(a, prop, b[prop]);
10
+ if (__getOwnPropSymbols)
11
+ for (var prop of __getOwnPropSymbols(b)) {
12
+ if (__propIsEnum.call(b, prop))
13
+ __defNormalProp(a, prop, b[prop]);
14
+ }
15
+ return a;
16
+ };
1
17
  /*!
2
- * @nutui/nutui v3.1.23-beta.3 Fri Jul 08 2022 17:15:25 GMT+0800 (中国标准时间)
18
+ * @nutui/nutui v3.1.23-beta.6 Thu Jul 28 2022 18:06:31 GMT+0800 (中国标准时间)
3
19
  * (c) 2022 @jdf2e.
4
20
  * Released under the MIT License.
5
21
  */
@@ -49,7 +65,11 @@ class Uploader {
49
65
  xhr.setRequestHeader(key, value);
50
66
  }
51
67
  (_a = options.onStart) == null ? void 0 : _a.call(options, options);
52
- xhr.send(options.formData);
68
+ if (options.method.toLowerCase() == "put") {
69
+ xhr.send(options.sourceFile);
70
+ } else {
71
+ xhr.send(options.formData);
72
+ }
53
73
  } else {
54
74
  console.warn("\u6D4F\u89C8\u5668\u4E0D\u652F\u6301 XMLHttpRequest");
55
75
  }
@@ -64,10 +84,9 @@ class Uploader {
64
84
  url: options.url,
65
85
  filePath: options.taroFilePath,
66
86
  fileType: options.fileType,
67
- header: {
68
- "Content-Type": "multipart/form-data",
69
- ...options.headers
70
- },
87
+ header: __spreadValues({
88
+ "Content-Type": "multipart/form-data"
89
+ }, options.headers),
71
90
  formData: options.formData,
72
91
  name: options.name,
73
92
  success(response) {
@@ -173,6 +192,10 @@ const _sfc_main = create({
173
192
  uploadOption.xhrState = props.xhrState;
174
193
  uploadOption.headers = props.headers;
175
194
  uploadOption.withCredentials = props.withCredentials;
195
+ try {
196
+ uploadOption.sourceFile = fileItem.formData.get(props.name);
197
+ } catch (error) {
198
+ }
176
199
  uploadOption.onStart = (option) => {
177
200
  fileItem.status = "ready";
178
201
  fileItem.message = translate("readyUpload");
@@ -399,7 +422,6 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
399
422
  ])) : createCommentVNode("", true),
400
423
  _ctx.isDeletable ? (openBlock(), createBlock(_component_nut_icon, {
401
424
  key: 2,
402
- color: "rgba(0,0,0,0.6)",
403
425
  onClick: ($event) => _ctx.onDelete(item, index2),
404
426
  class: "close",
405
427
  name: "failure"