@nutui/nutui 4.1.5-beta.1 → 4.1.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 (41) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/dist/nutui.es.js +1 -1
  3. package/dist/nutui.js +1575 -1543
  4. package/dist/nutui.umd.js +1 -1
  5. package/dist/packages/_es/ActionSheet.js +3 -2
  6. package/dist/packages/_es/Address.js +2 -2
  7. package/dist/packages/_es/AddressList.js +3 -3
  8. package/dist/packages/_es/AvatarGroup.js +2 -2
  9. package/dist/packages/_es/Calendar.js +7 -2
  10. package/dist/packages/_es/CalendarItem.js +1 -1
  11. package/dist/packages/_es/Cascader.js +4 -4
  12. package/dist/packages/_es/ConfigProvider.js +57 -66
  13. package/dist/packages/_es/Countdown.js +15 -1
  14. package/dist/packages/_es/DatePicker.js +8 -8
  15. package/dist/packages/_es/ImagePreview.js +8 -8
  16. package/dist/packages/_es/Input.js +2 -2
  17. package/dist/packages/_es/Invoice.js +7 -1
  18. package/dist/packages/_es/MenuItem.js +4 -4
  19. package/dist/packages/_es/Navbar.js +15 -1
  20. package/dist/packages/_es/Notify.js +2 -2
  21. package/dist/packages/_es/NumberKeyboard.js +8 -3
  22. package/dist/packages/_es/Popover.js +5 -5
  23. package/dist/packages/_es/ShortPassword.js +7 -2
  24. package/dist/packages/_es/Sku.js +15 -14
  25. package/dist/packages/_es/TimeSelect.js +2 -2
  26. package/dist/packages/_es/Tour.js +4 -4
  27. package/dist/packages/_es/{index-ae1af668.js → index-7fdbc8f1.js} +3 -0
  28. package/dist/smartips/web-types.json +2 -2
  29. package/dist/style.css +1 -1
  30. package/dist/styles/themes/default.scss +47 -47
  31. package/dist/styles/themes/jdb.scss +47 -47
  32. package/dist/styles/themes/jddkh.scss +47 -47
  33. package/dist/styles/themes/jdt.scss +47 -47
  34. package/dist/types/__VUE/calendar/index.vue.d.ts +9 -0
  35. package/dist/types/__VUE/configprovider/common.d.ts +19 -0
  36. package/dist/types/__VUE/countdown/index.vue.d.ts +4 -1
  37. package/dist/types/__VUE/invoice/index.vue.d.ts +2 -1
  38. package/dist/types/__VUE/navbar/index.vue.d.ts +5 -1
  39. package/dist/types/__VUE/numberkeyboard/index.vue.d.ts +9 -0
  40. package/dist/types/__VUE/shortpassword/index.vue.d.ts +9 -0
  41. package/package.json +1 -1
@@ -65,7 +65,7 @@ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
65
65
  _ctx.getSlots("sku-header-price") ? renderSlot(_ctx.$slots, "sku-header-price", { key: 0 }) : (openBlock(), createBlock(_component_nut_price, {
66
66
  key: 1,
67
67
  price: _ctx.goods.price,
68
- needSymbol: true,
68
+ "need-symbol": true,
69
69
  thousands: false
70
70
  }, null, 8, ["price"])),
71
71
  _ctx.getSlots("sku-header-extra") ? renderSlot(_ctx.$slots, "sku-header-extra", { key: 2 }) : createCommentVNode("", true),
@@ -471,7 +471,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
471
471
  closeable: "",
472
472
  round: "",
473
473
  style: { "height": "75%" },
474
- teleportDisable: _ctx.teleportDisable,
474
+ "lock-scroll": _ctx.lockScroll,
475
+ "teleport-disable": _ctx.teleportDisable,
475
476
  teleport: _ctx.teleport,
476
477
  onClickCloseIcon: _cache[1] || (_cache[1] = ($event) => _ctx.closePopup("icon")),
477
478
  onClickOverlay: _cache[2] || (_cache[2] = ($event) => _ctx.closePopup("overlay")),
@@ -511,23 +512,23 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
511
512
  !_ctx.getSlots("sku-stepper") ? (openBlock(), createBlock(_component_sku_stepper, {
512
513
  key: 1,
513
514
  goods: _ctx.goods,
514
- stepperTitle: _ctx.stepperTitle || _ctx.translate("buyNumber"),
515
- stepperMax: _ctx.stepperMax,
516
- stepperMin: _ctx.stepperMin,
517
- stepperExtraText: _ctx.stepperExtraText,
515
+ "stepper-title": _ctx.stepperTitle || _ctx.translate("buyNumber"),
516
+ "stepper-max": _ctx.stepperMax,
517
+ "stepper-min": _ctx.stepperMin,
518
+ "stepper-extra-text": _ctx.stepperExtraText,
518
519
  onAdd: _ctx.add,
519
520
  onReduce: _ctx.reduce,
520
521
  onChangeStepper: _ctx.changeStepper,
521
522
  onOverLimit: _ctx.stepperOverLimit
522
- }, null, 8, ["goods", "stepperTitle", "stepperMax", "stepperMin", "stepperExtraText", "onAdd", "onReduce", "onChangeStepper", "onOverLimit"])) : createCommentVNode("", true),
523
+ }, null, 8, ["goods", "stepper-title", "stepper-max", "stepper-min", "stepper-extra-text", "onAdd", "onReduce", "onChangeStepper", "onOverLimit"])) : createCommentVNode("", true),
523
524
  renderSlot(_ctx.$slots, "sku-stepper-bottom")
524
525
  ]),
525
526
  createVNode(_component_sku_operate, {
526
- btnOptions: _ctx.btnOptions,
527
- btnExtraText: _ctx.btnExtraText,
528
- buyText: _ctx.buyText || _ctx.translate("buyNow"),
529
- addCartText: _ctx.addCartText || _ctx.translate("addToCart"),
530
- confirmText: _ctx.confirmText || _ctx.translate("confirm"),
527
+ "btn-options": _ctx.btnOptions,
528
+ "btn-extra-text": _ctx.btnExtraText,
529
+ "buy-text": _ctx.buyText || _ctx.translate("buyNow"),
530
+ "add-cart-text": _ctx.addCartText || _ctx.translate("addToCart"),
531
+ "confirm-text": _ctx.confirmText || _ctx.translate("confirm"),
531
532
  onClickBtnOperate: _ctx.clickBtnOperate
532
533
  }, createSlots({ _: 2 }, [
533
534
  _ctx.getSlots("sku-operate") ? {
@@ -537,11 +538,11 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
537
538
  ]),
538
539
  key: "0"
539
540
  } : void 0
540
- ]), 1032, ["btnOptions", "btnExtraText", "buyText", "addCartText", "confirmText", "onClickBtnOperate"])
541
+ ]), 1032, ["btn-options", "btn-extra-text", "buy-text", "add-cart-text", "confirm-text", "onClickBtnOperate"])
541
542
  ])
542
543
  ]),
543
544
  _: 3
544
- }, 8, ["visible", "teleportDisable", "teleport"]);
545
+ }, 8, ["visible", "lock-scroll", "teleport-disable", "teleport"]);
545
546
  }
546
547
  const index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
547
548
  export {
@@ -85,7 +85,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
85
85
  position: "bottom",
86
86
  closeable: "",
87
87
  round: "",
88
- teleportDisable: _ctx.teleportDisable,
88
+ "teleport-disable": _ctx.teleportDisable,
89
89
  visible: _ctx.visible,
90
90
  style: normalizeStyle(_ctx.popStyle),
91
91
  "lock-scroll": _ctx.lockScroll,
@@ -112,7 +112,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
112
112
  ], 2)
113
113
  ]),
114
114
  _: 3
115
- }, 8, ["teleportDisable", "visible", "style", "lock-scroll", "onClickOverlay", "onClickCloseIcon"]);
115
+ }, 8, ["teleport-disable", "visible", "style", "lock-scroll", "onClickOverlay", "onClickCloseIcon"]);
116
116
  }
117
117
  const index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
118
118
  export {
@@ -223,12 +223,12 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
223
223
  visible: _ctx.showPopup,
224
224
  "onUpdate:visible": _cache[5] || (_cache[5] = ($event) => _ctx.showPopup = $event),
225
225
  location: step.location || _ctx.location,
226
- targetId: "nut-tour-popid",
227
- bgColor: _ctx.bgColor,
226
+ "target-id": "nut-tour-popid",
227
+ "bg-color": _ctx.bgColor,
228
228
  theme: _ctx.theme,
229
229
  "close-on-click-outside": false,
230
230
  offset: step.popoverOffset || [0, 12],
231
- arrowOffset: step.arrowOffset || 0
231
+ "arrow-offset": step.arrowOffset || 0
232
232
  }, {
233
233
  content: withCtx(() => [
234
234
  renderSlot(_ctx.$slots, "default", {}, () => [
@@ -272,7 +272,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
272
272
  ])
273
273
  ]),
274
274
  _: 2
275
- }, 1032, ["visible", "location", "bgColor", "theme", "offset", "arrowOffset"])
275
+ }, 1032, ["visible", "location", "bg-color", "theme", "offset", "arrow-offset"])
276
276
  ], 64)) : createCommentVNode("", true)
277
277
  ]);
278
278
  }), 128))
@@ -329,6 +329,9 @@ const _sfc_main = create({
329
329
  if (type == "range" && state.chooseData.length == 2 || type != "range") {
330
330
  let selectData = state.chooseData.slice(0);
331
331
  if (type == "week") {
332
+ if (state.chooseData.length !== 2) {
333
+ return;
334
+ }
332
335
  selectData = {
333
336
  weekDate: [handleWeekDate(state.chooseData[0]), handleWeekDate(state.chooseData[1])]
334
337
  };
@@ -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.5-beta.1",
5
+ "version": "4.1.5",
6
6
  "contributions": {
7
7
  "html": {
8
8
  "tags": [
@@ -1511,7 +1511,7 @@
1511
1511
  {
1512
1512
  "name": "time",
1513
1513
  "default": "`0`",
1514
- "description": "倒计时显示时间,单位是毫秒。`autoStart` 为 `false` 时生效",
1514
+ "description": "倒计时显示时间,单位是毫秒。`auto-start` 为 `false` 时生效",
1515
1515
  "value": {
1516
1516
  "type": "string | number",
1517
1517
  "kind": "expression"