@nutui/nutui 4.0.8 → 4.0.9-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 (66) hide show
  1. package/dist/nutui.es.js +1 -1
  2. package/dist/nutui.umd.js +2 -2
  3. package/dist/packages/_es/ActionSheet.js +22 -4
  4. package/dist/packages/_es/Address.js +26 -8
  5. package/dist/packages/_es/Animate.js +20 -1
  6. package/dist/packages/_es/Audio.js +21 -4
  7. package/dist/packages/_es/AudioOperate.js +20 -1
  8. package/dist/packages/_es/Avatar.js +19 -4
  9. package/dist/packages/_es/Calendar.js +2 -2
  10. package/dist/packages/_es/CalendarItem.js +1 -1
  11. package/dist/packages/_es/Cascader.js +123 -76
  12. package/dist/packages/_es/Countdown.js +22 -4
  13. package/dist/packages/_es/Countup.js +21 -4
  14. package/dist/packages/_es/DatePicker.js +21 -3
  15. package/dist/packages/_es/Dialog.js +20 -4
  16. package/dist/packages/_es/Divider.js +23 -6
  17. package/dist/packages/_es/Elevator.js +23 -4
  18. package/dist/packages/_es/Ellipsis.js +20 -1
  19. package/dist/packages/_es/Form.js +16 -1
  20. package/dist/packages/_es/Image.js +20 -1
  21. package/dist/packages/_es/ImagePreview.js +30 -15
  22. package/dist/packages/_es/InfiniteLoading.js +23 -4
  23. package/dist/packages/_es/Input.js +23 -5
  24. package/dist/packages/_es/Invoice.js +21 -3
  25. package/dist/packages/_es/List.js +21 -3
  26. package/dist/packages/_es/MenuItem.js +21 -2
  27. package/dist/packages/_es/Noticebar.js +21 -4
  28. package/dist/packages/_es/Notify.js +28 -9
  29. package/dist/packages/_es/NumberKeyboard.js +1 -1
  30. package/dist/packages/_es/Overlay.js +19 -4
  31. package/dist/packages/_es/Picker.js +25 -8
  32. package/dist/packages/_es/Popover.js +1 -1
  33. package/dist/packages/_es/Popup.js +1 -1
  34. package/dist/packages/_es/PullRefresh.js +23 -4
  35. package/dist/packages/_es/Range.js +23 -4
  36. package/dist/packages/_es/Rate.js +23 -4
  37. package/dist/packages/_es/Searchbar.js +24 -5
  38. package/dist/packages/_es/ShortPassword.js +1 -1
  39. package/dist/packages/_es/SideNavbar.js +21 -3
  40. package/dist/packages/_es/Signature.js +20 -1
  41. package/dist/packages/_es/Sku.js +22 -4
  42. package/dist/packages/_es/Step.js +21 -3
  43. package/dist/packages/_es/SubSideNavbar.js +21 -3
  44. package/dist/packages/_es/Swipe.js +23 -4
  45. package/dist/packages/_es/TabPane.js +21 -3
  46. package/dist/packages/_es/TabbarItem.js +8 -7
  47. package/dist/packages/_es/Table.js +21 -3
  48. package/dist/packages/_es/Tabs.js +40 -8
  49. package/dist/packages/_es/TimeDetail.js +23 -4
  50. package/dist/packages/_es/TimePannel.js +21 -3
  51. package/dist/packages/_es/TimeSelect.js +1 -1
  52. package/dist/packages/_es/Toast.js +30 -11
  53. package/dist/packages/_es/Tour.js +22 -4
  54. package/dist/packages/_es/TrendArrow.js +20 -1
  55. package/dist/packages/_es/Video.js +23 -5
  56. package/dist/packages/_es/Watermark.js +20 -1
  57. package/dist/packages/_es/{index-f933fcf6.js → index-87422be8.js} +23 -5
  58. package/dist/packages/_es/{index-c55ad69e.js → index-da0a7662.js} +25 -10
  59. package/dist/smartips/web-types.json +1 -1
  60. package/dist/style.css +1 -1
  61. package/dist/styles/themes/default.scss +46 -46
  62. package/dist/styles/themes/jdb.scss +46 -46
  63. package/dist/styles/themes/jddkh.scss +46 -46
  64. package/dist/styles/themes/jdt.scss +46 -46
  65. package/dist/types/index.d.ts +1 -1
  66. package/package.json +1 -1
@@ -1,3 +1,22 @@
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
  import { inject, computed, openBlock, createElementBlock, normalizeClass, normalizeStyle, renderSlot } from "vue";
2
21
  import { c as createComponent } from "./component-81a4c1d0.js";
3
22
  import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
@@ -26,10 +45,9 @@ const _sfc_main = create({
26
45
  display: parentOption.animatedTime.value == 0 && props.paneKey != parentOption.activeKey.value ? "none" : void 0
27
46
  };
28
47
  });
29
- return {
30
- ...parentOption,
48
+ return __spreadProps(__spreadValues({}, parentOption), {
31
49
  paneStyle
32
- };
50
+ });
33
51
  }
34
52
  });
35
53
  function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
@@ -42,30 +42,31 @@ const _sfc_main = create({
42
42
  });
43
43
  const router = useRouter();
44
44
  const relation = (child) => {
45
+ var _a;
45
46
  if (child.proxy) {
46
47
  parent.children.push(child.proxy);
47
48
  const index2 = parent.children.indexOf(child.proxy);
48
- state.index = props.name ?? index2;
49
+ state.index = (_a = props.name) != null ? _a : index2;
49
50
  }
50
51
  };
51
52
  relation(getCurrentInstance());
52
53
  const active = computed(() => state.index === parent.modelValue);
53
54
  function change() {
54
- var _a, _b;
55
- let key = props.name ?? state.index;
55
+ var _a, _b, _c;
56
+ let key = (_a = props.name) != null ? _a : state.index;
56
57
  let indexValue = null;
57
58
  if (props.name) {
58
59
  indexValue = parent.children.findIndex((item) => {
59
60
  return item.name == key;
60
61
  });
61
62
  }
62
- parent.changeIndex(indexValue ?? key, state.index);
63
- let index2 = indexValue ?? key;
64
- if ((_a = parent.children[index2]) == null ? void 0 : _a.href) {
63
+ parent.changeIndex(indexValue != null ? indexValue : key, state.index);
64
+ let index2 = indexValue != null ? indexValue : key;
65
+ if ((_b = parent.children[index2]) == null ? void 0 : _b.href) {
65
66
  window.location.href = parent.children[index2].href;
66
67
  return;
67
68
  }
68
- if ((_b = parent.children[index2]) == null ? void 0 : _b.to) {
69
+ if ((_c = parent.children[index2]) == null ? void 0 : _c.to) {
69
70
  let to = parent.children[index2].to;
70
71
  if (to && router) {
71
72
  router.push(to);
@@ -1,3 +1,22 @@
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
  import { defineComponent, h, reactive, computed, watch, toRefs, resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, Fragment, renderList, normalizeStyle, createTextVNode, toDisplayString, renderSlot, createBlock, createCommentVNode } from "vue";
2
21
  import { c as createComponent } from "./component-81a4c1d0.js";
3
22
  import { DownArrow } from "@nutui/icons-vue";
@@ -91,8 +110,7 @@ const _sfc_main = create({
91
110
  state.curData = val.slice();
92
111
  }
93
112
  );
94
- return {
95
- ...toRefs(state),
113
+ return __spreadProps(__spreadValues({}, toRefs(state)), {
96
114
  classes,
97
115
  cellClasses,
98
116
  getColumnItem,
@@ -102,7 +120,7 @@ const _sfc_main = create({
102
120
  translate,
103
121
  stylehead,
104
122
  stylecolumn
105
- };
123
+ });
106
124
  }
107
125
  });
108
126
  const _hoisted_1 = { class: "nut-table__main__head" };
@@ -1,9 +1,43 @@
1
1
  var __defProp = Object.defineProperty;
2
+ var __getOwnPropSymbols = Object.getOwnPropertySymbols;
3
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
4
+ var __propIsEnum = Object.prototype.propertyIsEnumerable;
2
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
+ };
3
17
  var __publicField = (obj, key, value) => {
4
18
  __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
5
19
  return value;
6
20
  };
21
+ var __async = (__this, __arguments, generator) => {
22
+ return new Promise((resolve, reject) => {
23
+ var fulfilled = (value) => {
24
+ try {
25
+ step(generator.next(value));
26
+ } catch (e) {
27
+ reject(e);
28
+ }
29
+ };
30
+ var rejected = (value) => {
31
+ try {
32
+ step(generator.throw(value));
33
+ } catch (e) {
34
+ reject(e);
35
+ }
36
+ };
37
+ var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
38
+ step((generator = generator.apply(__this, __arguments)).next());
39
+ });
40
+ };
7
41
  import { c as createComponent, T as TypeOfFun } from "./component-81a4c1d0.js";
8
42
  import { ref, onMounted, reactive, provide, computed, watch, onActivated, nextTick, resolveComponent, openBlock, createElementBlock, normalizeClass, createBlock, withCtx, createElementVNode, normalizeStyle, renderSlot, Fragment, renderList, createCommentVNode, createVNode, toDisplayString } from "vue";
9
43
  import { p as pxCheck } from "./pxCheck-c6b9f6b7.js";
@@ -17,17 +51,17 @@ import "../locale/lang";
17
51
  const useTabContentTouch = (props, tabMethods, taro, useTaroRect) => {
18
52
  const tabsContentRef = ref();
19
53
  const tabsContentRefRect = ref({ width: 0, height: 0 });
20
- const initTaroWidth = async () => {
54
+ const initTaroWidth = () => __async(void 0, null, function* () {
21
55
  var _a, _b;
22
56
  if (taro && taro.getEnv() !== taro.ENV_TYPE.WEB) {
23
- let rect = await useTaroRect(tabsContentRef, taro);
57
+ let rect = yield useTaroRect(tabsContentRef, taro);
24
58
  tabsContentRefRect.value.width = rect.width || 0;
25
59
  tabsContentRefRect.value.height = rect.height || 0;
26
60
  } else {
27
61
  tabsContentRefRect.value.width = ((_a = tabsContentRef.value) == null ? void 0 : _a.clientWidth) || 0;
28
62
  tabsContentRefRect.value.height = ((_b = tabsContentRef.value) == null ? void 0 : _b.clientHeight) || 0;
29
63
  }
30
- };
64
+ });
31
65
  onMounted(() => {
32
66
  setTimeout(() => {
33
67
  initTaroWidth();
@@ -375,7 +409,7 @@ const _sfc_main = create({
375
409
  marginRight: pxCheck(props.titleGutter)
376
410
  };
377
411
  });
378
- return {
412
+ return __spreadValues(__spreadValues({
379
413
  navRef,
380
414
  tabsContentRef,
381
415
  titles,
@@ -385,10 +419,8 @@ const _sfc_main = create({
385
419
  tabsActiveStyle,
386
420
  container,
387
421
  getScrollY,
388
- onStickyScroll,
389
- ...tabMethods,
390
- ...touchMethods
391
- };
422
+ onStickyScroll
423
+ }, tabMethods), touchMethods);
392
424
  }
393
425
  });
394
426
  const _hoisted_1 = ["onClick"];
@@ -1,3 +1,22 @@
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
  import { inject, reactive, computed, toRefs, openBlock, createElementBlock, normalizeClass, createElementVNode, Fragment, renderList, toDisplayString } from "vue";
2
21
  import { c as createComponent } from "./component-81a4c1d0.js";
3
22
  import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
@@ -42,13 +61,13 @@ const _sfc_main = create({
42
61
  const handleTime = (time) => {
43
62
  context.emit("select", time);
44
63
  };
45
- return {
46
- classes,
47
- ...toRefs(state),
64
+ return __spreadProps(__spreadValues({
65
+ classes
66
+ }, toRefs(state)), {
48
67
  getClass,
49
68
  renderData,
50
69
  handleTime
51
- };
70
+ });
52
71
  }
53
72
  });
54
73
  const _hoisted_1 = { class: "nut-time-detail__detail nut-time-detail__detail--moring" };
@@ -1,3 +1,22 @@
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
  import { inject, reactive, computed, toRefs, openBlock, createElementBlock, normalizeClass, toDisplayString } from "vue";
2
21
  import { c as createComponent } from "./component-81a4c1d0.js";
3
22
  import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
@@ -31,11 +50,10 @@ const _sfc_main = create({
31
50
  const handlePannel = (pannelKey) => {
32
51
  context.emit("change", pannelKey);
33
52
  };
34
- return {
35
- ...toRefs(state),
53
+ return __spreadProps(__spreadValues({}, toRefs(state)), {
36
54
  classes,
37
55
  handlePannel
38
- };
56
+ });
39
57
  }
40
58
  });
41
59
  function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
@@ -1,6 +1,6 @@
1
1
  import { computed, provide, resolveComponent, openBlock, createBlock, normalizeStyle, withCtx, createElementVNode, normalizeClass, createElementBlock, toDisplayString, renderSlot } from "vue";
2
2
  import { c as createComponent } from "./component-81a4c1d0.js";
3
- import { P as Popup } from "./index-c55ad69e.js";
3
+ import { P as Popup } from "./index-da0a7662.js";
4
4
  import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
5
5
  import "../locale/lang";
6
6
  import "./Overlay.js";
@@ -1,3 +1,22 @@
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
  import { reactive, onMounted, watch, computed, openBlock, createBlock, Transition, withCtx, withDirectives, createElementVNode, normalizeClass, normalizeStyle, createElementBlock, resolveDynamicComponent, createCommentVNode, toDisplayString, vShow, createVNode, render } from "vue";
2
21
  import { c as createComponent } from "./component-81a4c1d0.js";
3
22
  import { r as renderIcon } from "./renderIcon-3d0fd47c.js";
@@ -249,9 +268,9 @@ const updateToast = (opts) => {
249
268
  if (container) {
250
269
  const currentOpt = optsMap.find((item) => item.id === opts.id);
251
270
  if (currentOpt) {
252
- opts = { ...defaultOptions, ...currentOpt, ...opts };
271
+ opts = __spreadValues(__spreadValues(__spreadValues({}, defaultOptions), currentOpt), opts);
253
272
  } else {
254
- opts = { ...defaultOptions, ...opts };
273
+ opts = __spreadValues(__spreadValues({}, defaultOptions), opts);
255
274
  }
256
275
  const instance = createVNode(Toast, opts);
257
276
  render(instance, container);
@@ -269,7 +288,7 @@ const mountToast = (opts) => {
269
288
  } else {
270
289
  _id = (/* @__PURE__ */ new Date()).getTime() + "";
271
290
  }
272
- opts = { ...defaultOptions, ...opts };
291
+ opts = __spreadValues(__spreadValues({}, defaultOptions), opts);
273
292
  opts.id = _id;
274
293
  idsMap.push(opts.id);
275
294
  optsMap.push(opts);
@@ -287,27 +306,27 @@ const errorMsg = (msg) => {
287
306
  const showToast = {
288
307
  text(msg, opts = {}) {
289
308
  errorMsg(msg);
290
- return mountToast({ ...opts, type: "text", msg });
309
+ return mountToast(__spreadProps(__spreadValues({}, opts), { type: "text", msg }));
291
310
  },
292
311
  success(msg, opts = {}) {
293
312
  errorMsg(msg);
294
- return mountToast({ icon: Success, ...opts, msg, type: "success" });
313
+ return mountToast(__spreadProps(__spreadValues({ icon: Success }, opts), { msg, type: "success" }));
295
314
  },
296
315
  fail(msg, opts = {}) {
297
316
  errorMsg(msg);
298
- return mountToast({ icon: Failure, ...opts, msg, type: "fail" });
317
+ return mountToast(__spreadProps(__spreadValues({ icon: Failure }, opts), { msg, type: "fail" }));
299
318
  },
300
319
  warn(msg, opts = {}) {
301
320
  errorMsg(msg);
302
- return mountToast({ icon: Tips, ...opts, msg, type: "warn" });
321
+ return mountToast(__spreadProps(__spreadValues({ icon: Tips }, opts), { msg, type: "warn" }));
303
322
  },
304
323
  loading(msg, opts = {}) {
305
- return mountToast({
306
- icon: Loading,
307
- ...opts,
324
+ return mountToast(__spreadProps(__spreadValues({
325
+ icon: Loading
326
+ }, opts), {
308
327
  msg,
309
328
  type: "loading"
310
- });
329
+ }));
311
330
  },
312
331
  hide(id) {
313
332
  clearToast(id);
@@ -1,3 +1,22 @@
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
  import { reactive, ref, computed, onMounted, watch, toRefs, nextTick, resolveComponent, openBlock, createElementBlock, normalizeClass, withDirectives, createElementVNode, vShow, Fragment, renderList, normalizeStyle, createCommentVNode, createVNode, withCtx, renderSlot, toDisplayString } from "vue";
2
21
  import { c as createComponent } from "./component-81a4c1d0.js";
3
22
  import { u as useRect } from "./index-29892cda.js";
@@ -6,7 +25,7 @@ import Popover from "./Popover.js";
6
25
  import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
7
26
  import "../locale/lang";
8
27
  import "./renderIcon-3d0fd47c.js";
9
- import "./index-c55ad69e.js";
28
+ import "./index-da0a7662.js";
10
29
  import "./Overlay.js";
11
30
  const { create } = createComponent("tour");
12
31
  const _sfc_main = create({
@@ -150,14 +169,13 @@ const _sfc_main = create({
150
169
  state.showPopup = val;
151
170
  }
152
171
  );
153
- return {
154
- ...toRefs(state),
172
+ return __spreadProps(__spreadValues({}, toRefs(state)), {
155
173
  classes,
156
174
  maskStyle,
157
175
  changeStep,
158
176
  close,
159
177
  handleClickMask
160
- };
178
+ });
161
179
  }
162
180
  });
163
181
  const _hoisted_1 = {
@@ -1,3 +1,22 @@
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
  import { reactive, computed, toRefs, resolveComponent, openBlock, createElementBlock, normalizeClass, normalizeStyle, toDisplayString, createCommentVNode, renderSlot, createVNode } from "vue";
2
21
  import { m as myFixed, c as createComponent } from "./component-81a4c1d0.js";
3
22
  import { TriangleUp, TriangleDown } from "@nutui/icons-vue";
@@ -74,7 +93,7 @@ const _sfc_main = create({
74
93
  };
75
94
  return style;
76
95
  });
77
- return { ...toRefs(state), classes, calcRate, calcStyle };
96
+ return __spreadProps(__spreadValues({}, toRefs(state)), { classes, calcRate, calcStyle });
78
97
  }
79
98
  });
80
99
  function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
@@ -1,3 +1,22 @@
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
  import { reactive, ref, computed, watch, nextTick, onMounted, toRefs, openBlock, createElementBlock, createElementVNode, createCommentVNode, withDirectives, vShow, normalizeClass, toDisplayString, normalizeStyle, withModifiers } from "vue";
2
21
  import { c as createComponent } from "./component-81a4c1d0.js";
3
22
  import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
@@ -281,10 +300,9 @@ const _sfc_main = create({
281
300
  onMounted(() => {
282
301
  init();
283
302
  });
284
- return {
285
- root,
286
- ...toRefs(props),
287
- ...toRefs(state),
303
+ return __spreadProps(__spreadValues(__spreadValues({
304
+ root
305
+ }, toRefs(props)), toRefs(state)), {
288
306
  handleError,
289
307
  isDisabled,
290
308
  play,
@@ -295,7 +313,7 @@ const _sfc_main = create({
295
313
  retry,
296
314
  fullScreen,
297
315
  translate
298
- };
316
+ });
299
317
  }
300
318
  });
301
319
  const _hoisted_1 = {
@@ -1,3 +1,22 @@
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
  import { reactive, watch, computed, toRefs, openBlock, createElementBlock, normalizeClass, normalizeStyle } from "vue";
2
21
  import { c as createComponent } from "./component-81a4c1d0.js";
3
22
  import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
@@ -171,7 +190,7 @@ const _sfc_main = create({
171
190
  [`${prefixCls}-full-page`]: props.fullPage
172
191
  };
173
192
  });
174
- return { ...toRefs(state), classes };
193
+ return __spreadProps(__spreadValues({}, toRefs(state)), { classes });
175
194
  }
176
195
  });
177
196
  function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
@@ -1,3 +1,22 @@
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
  import { ref, computed, reactive, watch, toRefs, openBlock, createElementBlock, normalizeClass, createElementVNode, toDisplayString, createCommentVNode, renderSlot, Fragment, renderList, normalizeStyle, createTextVNode } from "vue";
2
21
  import { c as createComponent } from "./component-81a4c1d0.js";
3
22
  import { r as requestAniFrame } from "./raf-729dad54.js";
@@ -759,7 +778,7 @@ const _sfc_main = create({
759
778
  }
760
779
  }
761
780
  );
762
- return {
781
+ return __spreadProps(__spreadValues(__spreadValues({
763
782
  weeks,
764
783
  compConthsData,
765
784
  showTopBtn,
@@ -776,11 +795,10 @@ const _sfc_main = create({
776
795
  monthsPanel,
777
796
  months,
778
797
  weeksPanel,
779
- viewArea,
780
- ...toRefs(state),
781
- ...toRefs(props),
798
+ viewArea
799
+ }, toRefs(state)), toRefs(props)), {
782
800
  translate
783
- };
801
+ });
784
802
  }
785
803
  });
786
804
  const _hoisted_1 = { class: "nut-calendar__header" };
@@ -1,3 +1,22 @@
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
  import { c as createComponent } from "./component-81a4c1d0.js";
2
21
  import { reactive, computed, watch, watchEffect, toRefs, resolveComponent, openBlock, createBlock, Teleport, mergeProps, createCommentVNode, createVNode, Transition, withCtx, withDirectives, createElementVNode, normalizeClass, normalizeStyle, renderSlot, createElementBlock, vShow } from "vue";
3
22
  import Overlay from "./Overlay.js";
@@ -90,9 +109,7 @@ let _zIndex = initIndex;
90
109
  const component = (componentName2, components) => {
91
110
  return {
92
111
  components,
93
- props: {
94
- ...popupProps
95
- },
112
+ props: __spreadValues({}, popupProps),
96
113
  emits: ["click-pop", "click-close-icon", "open", "close", "opend", "closed", "click-overlay", "update:visible"],
97
114
  setup(props, { emit }) {
98
115
  const state = reactive({
@@ -111,11 +128,10 @@ const component = (componentName2, components) => {
111
128
  };
112
129
  });
113
130
  const popStyle = computed(() => {
114
- return {
131
+ return __spreadValues({
115
132
  zIndex: state.zIndex,
116
- transitionDuration: `${props.duration}s`,
117
- ...props.style
118
- };
133
+ transitionDuration: `${props.duration}s`
134
+ }, props.style);
119
135
  });
120
136
  const transitionName = computed(() => {
121
137
  return props.transition ? props.transition : `nut-popup-slide-${props.position}`;
@@ -169,8 +185,7 @@ const component = (componentName2, components) => {
169
185
  watchEffect(() => {
170
186
  state.closed = props.closeable;
171
187
  });
172
- return {
173
- ...toRefs(state),
188
+ return __spreadProps(__spreadValues({}, toRefs(state)), {
174
189
  popStyle,
175
190
  transitionName,
176
191
  classes,
@@ -179,7 +194,7 @@ const component = (componentName2, components) => {
179
194
  onClickOverlay,
180
195
  onOpened,
181
196
  onClosed
182
- };
197
+ });
183
198
  }
184
199
  };
185
200
  };
@@ -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.0.8",
5
+ "version": "4.0.9-beta.1",
6
6
  "contributions": {
7
7
  "html": {
8
8
  "tags": [