@nutui/nutui 4.1.3 → 4.1.5-beta.1

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 (150) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/README.md +1 -1
  3. package/dist/nutui.es.js +1 -1
  4. package/dist/nutui.js +3215 -3175
  5. package/dist/nutui.umd.js +1 -1
  6. package/dist/packages/_es/ActionSheet.js +9 -7
  7. package/dist/packages/_es/Address.js +17 -17
  8. package/dist/packages/_es/Animate.js +2 -2
  9. package/dist/packages/_es/Audio.js +7 -7
  10. package/dist/packages/_es/Avatar.js +2 -2
  11. package/dist/packages/_es/AvatarGroup.js +1 -1
  12. package/dist/packages/_es/Badge.js +3 -3
  13. package/dist/packages/_es/Calendar.js +17 -17
  14. package/dist/packages/_es/CalendarItem.js +1 -1
  15. package/dist/packages/_es/Cascader.js +14 -14
  16. package/dist/packages/_es/Category.js +2 -2
  17. package/dist/packages/_es/CategoryPane.js +3 -3
  18. package/dist/packages/_es/Collapse.js +2 -2
  19. package/dist/packages/_es/CollapseItem.js +7 -7
  20. package/dist/packages/_es/Comment.js +3 -3
  21. package/dist/packages/_es/Countdown.js +6 -6
  22. package/dist/packages/_es/Countup.js +11 -11
  23. package/dist/packages/_es/DatePicker.js +5 -5
  24. package/dist/packages/_es/Dialog.js +3 -3
  25. package/dist/packages/_es/Drag.js +1 -1
  26. package/dist/packages/_es/Ecard.js +3 -3
  27. package/dist/packages/_es/Elevator.js +8 -8
  28. package/dist/packages/_es/Ellipsis.js +2 -2
  29. package/dist/packages/_es/FormItem.js +0 -1
  30. package/dist/packages/_es/GridItem.js +1 -1
  31. package/dist/packages/_es/Image.js +2 -2
  32. package/dist/packages/_es/ImagePreview.js +12 -12
  33. package/dist/packages/_es/InfiniteLoading.js +5 -5
  34. package/dist/packages/_es/Input.js +3 -3
  35. package/dist/packages/_es/Invoice.js +5 -5
  36. package/dist/packages/_es/List.js +11 -11
  37. package/dist/packages/_es/Menu.js +4 -4
  38. package/dist/packages/_es/MenuItem.js +9 -10
  39. package/dist/packages/_es/Navbar.js +7 -7
  40. package/dist/packages/_es/Noticebar.js +21 -15
  41. package/dist/packages/_es/Notify.js +1 -1
  42. package/dist/packages/_es/NumberKeyboard.js +2 -2
  43. package/dist/packages/_es/Overlay.js +3 -3
  44. package/dist/packages/_es/Picker.js +96 -57
  45. package/dist/packages/_es/Popover.js +6 -6
  46. package/dist/packages/_es/Popup.js +1 -1
  47. package/dist/packages/_es/PullRefresh.js +1 -1
  48. package/dist/packages/_es/Range.js +5 -5
  49. package/dist/packages/_es/Row.js +0 -1
  50. package/dist/packages/_es/Searchbar.js +10 -10
  51. package/dist/packages/_es/ShortPassword.js +9 -9
  52. package/dist/packages/_es/SideNavbar.js +2 -3
  53. package/dist/packages/_es/SideNavbarItem.js +2 -2
  54. package/dist/packages/_es/Signature.js +2 -2
  55. package/dist/packages/_es/Sku.js +24 -24
  56. package/dist/packages/_es/Step.js +1 -1
  57. package/dist/packages/_es/Steps.js +2 -2
  58. package/dist/packages/_es/Sticky.js +2 -2
  59. package/dist/packages/_es/SubSideNavbar.js +2 -2
  60. package/dist/packages/_es/Swipe.js +2 -2
  61. package/dist/packages/_es/SwipeGroup.js +2 -2
  62. package/dist/packages/_es/Swiper.js +4 -4
  63. package/dist/packages/_es/Switch.js +2 -2
  64. package/dist/packages/_es/Tabbar.js +2 -2
  65. package/dist/packages/_es/Table.js +6 -6
  66. package/dist/packages/_es/Tabs.js +13 -13
  67. package/dist/packages/_es/Textarea.js +3 -3
  68. package/dist/packages/_es/TimeDetail.js +1 -1
  69. package/dist/packages/_es/TimeSelect.js +1 -1
  70. package/dist/packages/_es/Tour.js +3 -3
  71. package/dist/packages/_es/Uploader.js +11 -11
  72. package/dist/packages/_es/Video.js +11 -11
  73. package/dist/packages/_es/{index-7fe29a2f.js → index-3032df15.js} +8 -9
  74. package/dist/packages/_es/{index-66fff386.js → index-ae1af668.js} +10 -10
  75. package/dist/packages/circleprogress/index.scss +3 -1
  76. package/dist/packages/formitem/index.scss +3 -1
  77. package/dist/packages/popover/index.scss +3 -1
  78. package/dist/packages/video/index.scss +4 -1
  79. package/dist/smartips/web-types.json +11 -2
  80. package/dist/style.css +1 -1
  81. package/dist/styles/themes/default.scss +48 -48
  82. package/dist/styles/themes/jdb.scss +48 -48
  83. package/dist/styles/themes/jddkh.scss +48 -48
  84. package/dist/styles/themes/jdt.scss +48 -48
  85. package/dist/styles/variables-jdb.scss +7 -1
  86. package/dist/styles/variables-jddkh.scss +7 -1
  87. package/dist/types/__VUE/actionsheet/index.vue.d.ts +1 -1
  88. package/dist/types/__VUE/address/index.vue.d.ts +3 -3
  89. package/dist/types/__VUE/addresslist/components/GeneralShell.vue.d.ts +60 -0
  90. package/dist/types/__VUE/addresslist/components/ItemContents.vue.d.ts +23 -0
  91. package/dist/types/__VUE/addresslist/index.vue.d.ts +2 -2
  92. package/dist/types/__VUE/audio/index.vue.d.ts +3 -3
  93. package/dist/types/__VUE/cascader/cascader-item.vue.d.ts +77 -0
  94. package/dist/types/__VUE/collapseitem/index.vue.d.ts +3 -3
  95. package/dist/types/__VUE/comment/components/CmtBottom.vue.d.ts +42 -0
  96. package/dist/types/__VUE/comment/components/CmtHeader.vue.d.ts +36 -0
  97. package/dist/types/__VUE/comment/components/CmtImages.vue.d.ts +59 -0
  98. package/dist/types/__VUE/comment/index.vue.d.ts +4 -4
  99. package/dist/types/__VUE/countdown/index.vue.d.ts +4 -4
  100. package/dist/types/__VUE/countup/index.vue.d.ts +3 -3
  101. package/dist/types/__VUE/datepicker/index.vue.d.ts +3 -3
  102. package/dist/types/__VUE/elevator/index.vue.d.ts +3 -3
  103. package/dist/types/__VUE/empty/index.vue.d.ts +1 -1
  104. package/dist/types/__VUE/formitem/index.vue.d.ts +2 -4
  105. package/dist/types/__VUE/grid/index.vue.d.ts +1 -1
  106. package/dist/types/__VUE/imagepreview/imagePreviewItem.vue.d.ts +126 -0
  107. package/dist/types/__VUE/imagepreview/index.vue.d.ts +3 -3
  108. package/dist/types/__VUE/indicator/index.vue.d.ts +1 -0
  109. package/dist/types/__VUE/infiniteloading/index.vue.d.ts +3 -3
  110. package/dist/types/__VUE/input/index.vue.d.ts +3 -3
  111. package/dist/types/__VUE/inputnumber/index.vue.d.ts +1 -1
  112. package/dist/types/__VUE/invoice/index.vue.d.ts +2 -2
  113. package/dist/types/__VUE/list/index.vue.d.ts +4 -4
  114. package/dist/types/__VUE/navbar/index.vue.d.ts +5 -5
  115. package/dist/types/__VUE/noticebar/index.vue.d.ts +3 -3
  116. package/dist/types/__VUE/numberkeyboard/index.vue.d.ts +4 -4
  117. package/dist/types/__VUE/picker/Column.vue.d.ts +134 -0
  118. package/dist/types/__VUE/picker/baseProps.d.ts +5 -1
  119. package/dist/types/__VUE/picker/common.d.ts +503 -11
  120. package/dist/types/__VUE/picker/doc.en.d.ts +4 -2
  121. package/dist/types/__VUE/picker/index.vue.d.ts +139 -8
  122. package/dist/types/__VUE/picker/types.d.ts +6 -0
  123. package/dist/types/__VUE/picker/usePicker.d.ts +7 -4
  124. package/dist/types/__VUE/popover/index.vue.d.ts +1 -1
  125. package/dist/types/__VUE/popup/index.vue.d.ts +4 -4
  126. package/dist/types/__VUE/range/index.vue.d.ts +8 -7
  127. package/dist/types/__VUE/rate/index.vue.d.ts +5 -5
  128. package/dist/types/__VUE/row/index.vue.d.ts +2 -2
  129. package/dist/types/__VUE/searchbar/index.vue.d.ts +7 -7
  130. package/dist/types/__VUE/sidenavbar/index.vue.d.ts +2 -2
  131. package/dist/types/__VUE/signature/index.vue.d.ts +1 -1
  132. package/dist/types/__VUE/sku/components/SkuHeader.vue.d.ts +17 -0
  133. package/dist/types/__VUE/sku/components/SkuOperate.vue.d.ts +60 -0
  134. package/dist/types/__VUE/sku/components/SkuSelect.vue.d.ts +25 -0
  135. package/dist/types/__VUE/sku/components/SkuStepper.vue.d.ts +56 -0
  136. package/dist/types/__VUE/sku/index.vue.d.ts +9 -9
  137. package/dist/types/__VUE/step/index.vue.d.ts +2 -2
  138. package/dist/types/__VUE/steps/index.vue.d.ts +2 -2
  139. package/dist/types/__VUE/subsidenavbar/index.vue.d.ts +2 -2
  140. package/dist/types/__VUE/swiper/index.vue.d.ts +2 -2
  141. package/dist/types/__VUE/tabbar/index.vue.d.ts +2 -2
  142. package/dist/types/__VUE/tabbaritem/index.vue.d.ts +3 -3
  143. package/dist/types/__VUE/table/common.d.ts +1 -1
  144. package/dist/types/__VUE/tabs/index.vue.d.ts +1 -1
  145. package/dist/types/__VUE/tag/index.vue.d.ts +3 -0
  146. package/dist/types/__VUE/textarea/index.vue.d.ts +1 -1
  147. package/dist/types/__VUE/toast/index.vue.d.ts +4 -4
  148. package/dist/types/__VUE/uploader/index.vue.d.ts +2 -2
  149. package/dist/types/index.d.ts +1 -1
  150. package/package.json +1 -1
@@ -211,15 +211,15 @@ const _sfc_main = create({
211
211
  };
212
212
  const timeFormat = (t) => {
213
213
  var h = Math.floor(t / 3600);
214
- if (h < 10) {
214
+ if (+h < 10) {
215
215
  h = "0" + h;
216
216
  }
217
217
  var m = Math.floor(t % 3600 / 60);
218
- if (m < 10) {
218
+ if (+m < 10) {
219
219
  m = "0" + m;
220
220
  }
221
221
  var s = Math.round(t % 3600 % 60);
222
- if (s < 10) {
222
+ if (+s < 10) {
223
223
  s = "0" + s;
224
224
  }
225
225
  var str = "";
@@ -317,24 +317,24 @@ const _sfc_main = create({
317
317
  }
318
318
  });
319
319
  const _hoisted_1 = {
320
- class: "nut-video",
321
- ref: "videocon"
320
+ ref: "videocon",
321
+ class: "nut-video"
322
322
  };
323
323
  const _hoisted_2 = ["muted", "autoplay", "loop", "poster", "controls", "preload"];
324
324
  const _hoisted_3 = ["src", "type"];
325
325
  const _hoisted_4 = { class: "nut-video-controller__now" };
326
326
  const _hoisted_5 = { class: "nut-video-controller__progress" };
327
327
  const _hoisted_6 = {
328
- class: "nut-video-controller__progress-value",
329
- ref: "progressBar"
328
+ ref: "progressBar",
329
+ class: "nut-video-controller__progress-value"
330
330
  };
331
331
  const _hoisted_7 = /* @__PURE__ */ createElementVNode("div", { class: "nut-video-controller__ball-move" }, null, -1);
332
332
  const _hoisted_8 = [
333
333
  _hoisted_7
334
334
  ];
335
335
  const _hoisted_9 = {
336
- class: "nut-video-controller__played",
337
- ref: "playedBar"
336
+ ref: "playedBar",
337
+ class: "nut-video-controller__played"
338
338
  };
339
339
  const _hoisted_10 = { class: "nut-video-controller__total" };
340
340
  const _hoisted_11 = { class: "nut-video-error" };
@@ -359,14 +359,14 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
359
359
  ], 40, _hoisted_2),
360
360
  _ctx.showToolbox && !_ctx.isDisabled ? (openBlock(), createElementBlock("div", {
361
361
  key: 0,
362
- class: "nut-video-mask",
363
362
  ref: "touchMask",
363
+ class: "nut-video-mask",
364
364
  onClick: _cache[1] || (_cache[1] = (...args) => _ctx.play && _ctx.play(...args))
365
365
  }, null, 512)) : createCommentVNode("", true),
366
366
  _ctx.showToolbox && !_ctx.isDisabled ? withDirectives((openBlock(), createElementBlock("div", {
367
367
  key: 1,
368
- class: "nut-video-play-btn",
369
368
  ref: "palyBtn",
369
+ class: "nut-video-play-btn",
370
370
  onClick: _cache[2] || (_cache[2] = (...args) => _ctx.play && _ctx.play(...args))
371
371
  }, null, 512)), [
372
372
  [vShow, !_ctx.state.playing]
@@ -113,7 +113,7 @@ const _sfc_main = create({
113
113
  Close
114
114
  },
115
115
  props: popupProps,
116
- emits: ["click-pop", "click-close-icon", "open", "close", "opened", "closed", "click-overlay", "update:visible"],
116
+ emits: ["clickPop", "clickCloseIcon", "open", "close", "opened", "closed", "clickOverlay", "update:visible"],
117
117
  setup(props, { emit }) {
118
118
  const state = reactive({
119
119
  zIndex: props.zIndex,
@@ -160,15 +160,15 @@ const _sfc_main = create({
160
160
  }
161
161
  };
162
162
  const onClick = (e) => {
163
- emit("click-pop", e);
163
+ emit("clickPop", e);
164
164
  };
165
165
  const onClickCloseIcon = (e) => {
166
166
  e.stopPropagation();
167
- emit("click-close-icon", e);
167
+ emit("clickCloseIcon", e);
168
168
  emit("update:visible", false);
169
169
  };
170
170
  const onClickOverlay = (e) => {
171
- emit("click-overlay", e);
171
+ emit("clickOverlay", e);
172
172
  if (props.closeOnClickOverlay) {
173
173
  emit("update:visible", false);
174
174
  }
@@ -215,9 +215,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
215
215
  "lock-scroll": _ctx.lockScroll,
216
216
  duration: _ctx.duration,
217
217
  "overlay-class": _ctx.overlayClass,
218
- "overlay-style": _ctx.overlayStyle,
219
- onClick: _ctx.onClickOverlay
220
- }, _ctx.$attrs), null, 16, ["visible", "close-on-click-overlay", "z-index", "lock-scroll", "duration", "overlay-class", "overlay-style", "onClick"])) : createCommentVNode("", true),
218
+ "overlay-style": _ctx.overlayStyle
219
+ }, _ctx.$attrs, { onClick: _ctx.onClickOverlay }), null, 16, ["visible", "close-on-click-overlay", "z-index", "lock-scroll", "duration", "overlay-class", "overlay-style", "onClick"])) : createCommentVNode("", true),
221
220
  createVNode(Transition, {
222
221
  name: _ctx.transitionName,
223
222
  onAfterEnter: _ctx.onOpened,
@@ -232,8 +231,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
232
231
  _ctx.showSlot ? renderSlot(_ctx.$slots, "default", { key: 0 }) : createCommentVNode("", true),
233
232
  _ctx.closed ? (openBlock(), createElementBlock("view", {
234
233
  key: 1,
235
- onClick: _cache[0] || (_cache[0] = (...args) => _ctx.onClickCloseIcon && _ctx.onClickCloseIcon(...args)),
236
- class: normalizeClass(["nut-popup__close-icon", "nut-popup__close-icon--" + _ctx.closeIconPosition])
234
+ class: normalizeClass(["nut-popup__close-icon", "nut-popup__close-icon--" + _ctx.closeIconPosition]),
235
+ onClick: _cache[0] || (_cache[0] = (...args) => _ctx.onClickCloseIcon && _ctx.onClickCloseIcon(...args))
237
236
  }, [
238
237
  renderSlot(_ctx.$slots, "close-icon", {}, () => [
239
238
  createVNode(_component_Close, { height: "12px" })
@@ -824,12 +824,12 @@ const _hoisted_4 = {
824
824
  class: "nut-calendar__header-subtitle"
825
825
  };
826
826
  const _hoisted_5 = {
827
- class: "nut-calendar__weekdays",
828
- ref: "weeksPanel"
827
+ ref: "weeksPanel",
828
+ class: "nut-calendar__weekdays"
829
829
  };
830
830
  const _hoisted_6 = {
831
- class: "nut-calendar__panel",
832
- ref: "monthsPanel"
831
+ ref: "monthsPanel",
832
+ class: "nut-calendar__panel"
833
833
  };
834
834
  const _hoisted_7 = { class: "nut-calendar__month-title" };
835
835
  const _hoisted_8 = { class: "nut-calendar__days" };
@@ -871,27 +871,27 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
871
871
  createElementVNode("view", _hoisted_5, [
872
872
  (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.weeks, (item, index) => {
873
873
  return openBlock(), createElementBlock("view", {
874
- class: normalizeClass(["nut-calendar__weekday", { weekend: item.weekend }]),
875
- key: index
874
+ key: index,
875
+ class: normalizeClass(["nut-calendar__weekday", { weekend: item.weekend }])
876
876
  }, toDisplayString(item.day), 3);
877
877
  }), 128))
878
878
  ], 512)
879
879
  ]),
880
880
  createElementVNode("view", {
881
- class: "nut-calendar__content",
882
881
  ref: "months",
882
+ class: "nut-calendar__content",
883
883
  onScroll: _cache[0] || (_cache[0] = (...args) => _ctx.mothsViewScroll && _ctx.mothsViewScroll(...args))
884
884
  }, [
885
885
  createElementVNode("view", _hoisted_6, [
886
886
  createElementVNode("view", {
887
- class: "nut-calendar__body",
888
887
  ref: "viewArea",
888
+ class: "nut-calendar__body",
889
889
  style: normalizeStyle({ transform: `translateY(${_ctx.translateY}px)` })
890
890
  }, [
891
891
  (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.compConthsData, (month, index) => {
892
892
  return openBlock(), createElementBlock("view", {
893
- class: "nut-calendar__month",
894
- key: index
893
+ key: index,
894
+ class: "nut-calendar__month"
895
895
  }, [
896
896
  createElementVNode("view", _hoisted_7, toDisplayString(month.title), 1),
897
897
  createElementVNode("view", _hoisted_8, [
@@ -9,7 +9,9 @@
9
9
 
10
10
  &__hover {
11
11
  stroke: $circleprogress-primary-color;
12
- transition: stroke-dasharray 0.6s ease 0s, stroke 0.6s ease 0s;
12
+ transition:
13
+ stroke-dasharray 0.6s ease 0s,
14
+ stroke 0.6s ease 0s;
13
15
  }
14
16
 
15
17
  &__path {
@@ -37,12 +37,14 @@
37
37
  font-size: $form-item-label-font-size;
38
38
  font-weight: normal;
39
39
  width: $form-item-label-width;
40
- min-width: auto;
41
40
  margin-right: $form-item-label-margin-right;
42
41
  flex: none !important;
43
42
  display: inline-block !important;
44
43
  word-wrap: break-word;
45
44
  text-align: $form-item-label-text-align;
45
+ &.nut-cell__title {
46
+ min-width: auto;
47
+ }
46
48
  &.required {
47
49
  &::before {
48
50
  content: '*';
@@ -96,7 +96,9 @@
96
96
  color: #333;
97
97
  box-shadow: 0 2px 12px #3232331f;
98
98
  opacity: 1;
99
- transition: opacity 0.15s, transform 0.15s;
99
+ transition:
100
+ opacity 0.15s,
101
+ transform 0.15s;
100
102
  max-height: initial;
101
103
  overflow-y: initial;
102
104
 
@@ -37,7 +37,10 @@
37
37
  border: 0;
38
38
  background-color: rgba(0, 0, 0, 0.45);
39
39
  color: #fff;
40
- transition: border-color 0.4s, outline 0.4s, background-color 0.4s;
40
+ transition:
41
+ border-color 0.4s,
42
+ outline 0.4s,
43
+ background-color 0.4s;
41
44
  position: absolute;
42
45
  top: 50%;
43
46
  left: 50%;
@@ -2,7 +2,7 @@
2
2
  "$schema": "https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json",
3
3
  "framework": "vue",
4
4
  "name": "NutUI",
5
- "version": "4.1.3",
5
+ "version": "4.1.5-beta.1",
6
6
  "contributions": {
7
7
  "html": {
8
8
  "tags": [
@@ -3968,6 +3968,15 @@
3968
3968
  "kind": "expression"
3969
3969
  }
3970
3970
  },
3971
+ {
3972
+ "name": "field-names",
3973
+ "default": "`{ text: 'text', value: 'value', children: 'children' }`",
3974
+ "description": "自定义 columns 中的字段",
3975
+ "value": {
3976
+ "type": "object",
3977
+ "kind": "expression"
3978
+ }
3979
+ },
3971
3980
  {
3972
3981
  "name": "title",
3973
3982
  "default": "-",
@@ -3997,7 +4006,7 @@
3997
4006
  },
3998
4007
  {
3999
4008
  "name": "three-dimensional",
4000
- "default": "`true`",
4009
+ "default": "`false`",
4001
4010
  "description": "是否开启 3D 效果",
4002
4011
  "value": {
4003
4012
  "type": "boolean",