@nutui/nutui 4.1.0-beta.4 → 4.1.0-beta.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (141) hide show
  1. package/dist/nutui.es.js +1 -1
  2. package/dist/nutui.js +4332 -4341
  3. package/dist/nutui.umd.js +1 -1
  4. package/dist/packages/_es/ActionSheet.js +2 -2
  5. package/dist/packages/_es/Address.js +2 -2
  6. package/dist/packages/_es/AddressList.js +1 -1
  7. package/dist/packages/_es/Animate.js +1 -1
  8. package/dist/packages/_es/Audio.js +2 -2
  9. package/dist/packages/_es/AudioOperate.js +3 -3
  10. package/dist/packages/_es/Avatar.js +1 -1
  11. package/dist/packages/_es/AvatarGroup.js +3 -4
  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 +2 -2
  16. package/dist/packages/_es/Calendar.js +3 -3
  17. package/dist/packages/_es/CalendarItem.js +2 -2
  18. package/dist/packages/_es/Card.js +2 -2
  19. package/dist/packages/_es/Cascader.js +4 -3
  20. package/dist/packages/_es/Category.js +3 -3
  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 +2 -2
  25. package/dist/packages/_es/CheckboxGroup.js +1 -1
  26. package/dist/packages/_es/CircleProgress.js +1 -1
  27. package/dist/packages/_es/Col.js +1 -1
  28. package/dist/packages/_es/Collapse.js +1 -1
  29. package/dist/packages/_es/CollapseItem.js +1 -1
  30. package/dist/packages/_es/Comment.js +4 -4
  31. package/dist/packages/_es/ConfigProvider.js +4 -4
  32. package/dist/packages/_es/Countdown.js +4 -4
  33. package/dist/packages/_es/Countup.js +9 -12
  34. package/dist/packages/_es/DatePicker.js +3 -3
  35. package/dist/packages/_es/Dialog.js +4 -4
  36. package/dist/packages/_es/Divider.js +1 -1
  37. package/dist/packages/_es/Drag.js +1 -1
  38. package/dist/packages/_es/Ecard.js +1 -1
  39. package/dist/packages/_es/Elevator.js +1 -1
  40. package/dist/packages/_es/Ellipsis.js +1 -1
  41. package/dist/packages/_es/Empty.js +2 -2
  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 +3 -3
  45. package/dist/packages/_es/Grid.js +2 -2
  46. package/dist/packages/_es/GridItem.js +2 -2
  47. package/dist/packages/_es/Image.js +2 -2
  48. package/dist/packages/_es/ImagePreview.js +4 -4
  49. package/dist/packages/_es/Indicator.js +1 -1
  50. package/dist/packages/_es/InfiniteLoading.js +2 -2
  51. package/dist/packages/_es/Input.js +2 -4
  52. package/dist/packages/_es/InputNumber.js +1 -1
  53. package/dist/packages/_es/{Interceptor-5415601e.js → Interceptor-883a3078.js} +1 -1
  54. package/dist/packages/_es/Invoice.js +3 -3
  55. package/dist/packages/_es/Layout.js +1 -1
  56. package/dist/packages/_es/List.js +1 -1
  57. package/dist/packages/_es/Menu.js +2 -2
  58. package/dist/packages/_es/MenuItem.js +2 -2
  59. package/dist/packages/_es/Navbar.js +1 -1
  60. package/dist/packages/_es/Noticebar.js +5 -5
  61. package/dist/packages/_es/Notify.js +2 -2
  62. package/dist/packages/_es/NumberKeyboard.js +2 -2
  63. package/dist/packages/_es/Overlay.js +3 -1
  64. package/dist/packages/_es/Pagination.js +1 -1
  65. package/dist/packages/_es/Picker.js +7 -7
  66. package/dist/packages/_es/Popover.js +7 -7
  67. package/dist/packages/_es/Popup.js +2 -2
  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 +3 -2
  71. package/dist/packages/_es/Radio.js +2 -2
  72. package/dist/packages/_es/RadioGroup.js +2 -2
  73. package/dist/packages/_es/Range.js +1 -1
  74. package/dist/packages/_es/Rate.js +4 -4
  75. package/dist/packages/_es/Row.js +1 -1
  76. package/dist/packages/_es/Searchbar.js +1 -1
  77. package/dist/packages/_es/ShortPassword.js +2 -2
  78. package/dist/packages/_es/SideNavbar.js +1 -1
  79. package/dist/packages/_es/SideNavbarItem.js +1 -1
  80. package/dist/packages/_es/Signature.js +1 -1
  81. package/dist/packages/_es/Skeleton.js +1 -1
  82. package/dist/packages/_es/Sku.js +8 -8
  83. package/dist/packages/_es/Step.js +1 -1
  84. package/dist/packages/_es/Steps.js +1 -1
  85. package/dist/packages/_es/Sticky.js +125 -5
  86. package/dist/packages/_es/SubSideNavbar.js +1 -1
  87. package/dist/packages/_es/Swipe.js +1 -1
  88. package/dist/packages/_es/Swiper.js +2 -2
  89. package/dist/packages/_es/SwiperItem.js +2 -2
  90. package/dist/packages/_es/Switch.js +1 -1
  91. package/dist/packages/_es/TabPane.js +2 -2
  92. package/dist/packages/_es/Tabbar.js +2 -2
  93. package/dist/packages/_es/TabbarItem.js +2 -2
  94. package/dist/packages/_es/Table.js +12 -6
  95. package/dist/packages/_es/Tabs.js +5 -4
  96. package/dist/packages/_es/Tag.js +1 -1
  97. package/dist/packages/_es/Textarea.js +1 -1
  98. package/dist/packages/_es/TimeDetail.js +1 -1
  99. package/dist/packages/_es/TimePannel.js +1 -1
  100. package/dist/packages/_es/TimeSelect.js +2 -2
  101. package/dist/packages/_es/Toast.js +2 -2
  102. package/dist/packages/_es/Tour.js +2 -2
  103. package/dist/packages/_es/TrendArrow.js +1 -1
  104. package/dist/packages/_es/Uploader.js +5 -4
  105. package/dist/packages/_es/Video.js +1 -1
  106. package/dist/packages/_es/Watermark.js +2 -2
  107. package/dist/packages/_es/{common-21e9de3d.js → common-3cfd9c50.js} +1 -1
  108. package/dist/packages/_es/{component-8f0be7eb.js → component-470275dd.js} +1 -1
  109. package/dist/packages/_es/{index-c9b21ed1.js → index-02204c4b.js} +2 -1
  110. package/dist/packages/_es/{index-dc2ebe90.js → index-412323a0.js} +2 -2
  111. package/dist/packages/_es/{index-43c34ac6.js → index-97b44e6c.js} +1 -0
  112. package/dist/packages/_es/{index.vue_vue_type_script_lang-dba4283d.js → index.vue_vue_type_script_lang-0b4f12ed.js} +1 -1
  113. package/dist/packages/_es/{index.vue_vue_type_script_lang-7b265520.js → index.vue_vue_type_script_lang-9ebe2e75.js} +2 -2
  114. package/dist/packages/_es/{mountComponent-f2c53efb.js → mountComponent-f893becf.js} +1 -1
  115. package/dist/packages/sticky/index.scss +0 -10
  116. package/dist/smartips/web-types.json +4 -10
  117. package/dist/style.css +1 -1
  118. package/dist/styles/themes/default.scss +51 -51
  119. package/dist/styles/themes/jdb.scss +51 -51
  120. package/dist/styles/themes/jddkh.scss +51 -51
  121. package/dist/styles/themes/jdt.scss +51 -51
  122. package/dist/types/__VUE/calendaritem/type.d.ts +0 -7
  123. package/dist/types/__VUE/circleprogress/index.vue.d.ts +3 -3
  124. package/dist/types/__VUE/configprovider/index.vue.d.ts +3 -4
  125. package/dist/types/__VUE/formitem/types.d.ts +2 -2
  126. package/dist/types/__VUE/picker/common.d.ts +4 -4
  127. package/dist/types/__VUE/picker/index.vue.d.ts +9 -10
  128. package/dist/types/__VUE/pullrefresh/index.vue.d.ts +1 -1
  129. package/dist/types/__VUE/rate/index.vue.d.ts +2 -2
  130. package/dist/types/__VUE/sticky/index.vue.d.ts +11 -8
  131. package/dist/types/__VUE/swipe/index.vue.d.ts +2 -2
  132. package/dist/types/__VUE/swiper/index.vue.d.ts +1 -1
  133. package/dist/types/__VUE/table/common.d.ts +21 -6
  134. package/dist/types/__VUE/table/renderColumn.d.ts +20 -6
  135. package/dist/types/__VUE/tabs/hooks.d.ts +2 -2
  136. package/dist/types/__VUE/tabs/index.vue.d.ts +2 -2
  137. package/dist/types/__VUE/uploader/index.vue.d.ts +2 -2
  138. package/dist/types/utils/useTaroRect/index.d.ts +1 -1
  139. package/dist/types/utils/useTouch/index.d.ts +2 -2
  140. package/package.json +1 -1
  141. package/dist/packages/_es/index.vue_vue_type_script_lang-89366761.js +0 -151
@@ -19,15 +19,15 @@ var __spreadValues = (a, b) => {
19
19
  var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20
20
  import { resolveComponent, openBlock, createElementBlock, createElementVNode, renderSlot, createBlock, createCommentVNode, toDisplayString, ref, watch, onMounted, Fragment, renderList, normalizeClass, createVNode, withCtx, createSlots } from "vue";
21
21
  import Price from "./Price.js";
22
- import { c as createComponent, T as TypeOfFun } from "./component-8f0be7eb.js";
22
+ import { c as createComponent, T as TypeOfFun } from "./component-470275dd.js";
23
23
  import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
24
24
  import InputNumber from "./InputNumber.js";
25
- import { p as popupProps, P as Popup } from "./index-dc2ebe90.js";
25
+ import { p as popupProps, P as Popup } from "./index-412323a0.js";
26
26
  import "../locale/lang";
27
27
  import "./pxCheck-c6b9f6b7.js";
28
28
  import "@nutui/icons-vue";
29
29
  import "./Overlay.js";
30
- const { componentName: componentName$4, create: create$4, translate: translate$1 } = createComponent("sku-header");
30
+ const { create: create$4, translate: translate$1 } = createComponent("sku-header");
31
31
  const _sfc_main$4 = create$4({
32
32
  props: {
33
33
  goods: {
@@ -39,7 +39,7 @@ const _sfc_main$4 = create$4({
39
39
  components: {
40
40
  [Price.name]: Price
41
41
  },
42
- setup(props, { emit, slots }) {
42
+ setup(props, { slots }) {
43
43
  const getSlots = (name) => slots[name];
44
44
  return {
45
45
  getSlots,
@@ -74,7 +74,7 @@ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
74
74
  ]);
75
75
  }
76
76
  const SkuHeader = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["render", _sfc_render$4]]);
77
- const { componentName: componentName$3, create: create$3 } = createComponent("sku-select");
77
+ const { create: create$3 } = createComponent("sku-select");
78
78
  const _sfc_main$3 = create$3({
79
79
  props: {
80
80
  sku: {
@@ -140,7 +140,7 @@ function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
140
140
  ]);
141
141
  }
142
142
  const SkuSelect = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["render", _sfc_render$3]]);
143
- const { componentName: componentName$2, create: create$2 } = createComponent("sku-stepper");
143
+ const { create: create$2 } = createComponent("sku-stepper");
144
144
  const _sfc_main$2 = create$2({
145
145
  props: {
146
146
  // 购买数量最大值
@@ -233,7 +233,7 @@ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
233
233
  ]);
234
234
  }
235
235
  const SkuStepper = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["render", _sfc_render$2]]);
236
- const { componentName: componentName$1, create: create$1 } = createComponent("sku-operate");
236
+ const { create: create$1 } = createComponent("sku-operate");
237
237
  const _sfc_main$1 = create$1({
238
238
  props: {
239
239
  // 底部按钮配置 confirm cart buy
@@ -310,7 +310,7 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
310
310
  ])) : createCommentVNode("", true);
311
311
  }
312
312
  const SkuOperate = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render$1]]);
313
- const { componentName, create, translate } = createComponent("sku");
313
+ const { create, translate } = createComponent("sku");
314
314
  const _sfc_main = create({
315
315
  props: __spreadProps(__spreadValues({}, popupProps), {
316
316
  sku: {
@@ -18,7 +18,7 @@ var __spreadValues = (a, b) => {
18
18
  };
19
19
  var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20
20
  import { getCurrentInstance, inject, reactive, computed, toRefs, openBlock, createElementBlock, normalizeClass, createElementVNode, renderSlot, Fragment, toDisplayString, createCommentVNode } from "vue";
21
- import { c as createComponent } from "./component-8f0be7eb.js";
21
+ import { c as createComponent } from "./component-470275dd.js";
22
22
  import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
23
23
  import "../locale/lang";
24
24
  const { create, componentName } = createComponent("step");
@@ -1,5 +1,5 @@
1
1
  import { reactive, computed, provide, h } from "vue";
2
- import { c as createComponent } from "./component-8f0be7eb.js";
2
+ import { c as createComponent } from "./component-470275dd.js";
3
3
  import "../locale/lang";
4
4
  const { create, componentName } = createComponent("steps");
5
5
  const _sfc_main = create({
@@ -1,8 +1,128 @@
1
- import { _ as _sfc_main } from "./index.vue_vue_type_script_lang-89366761.js";
2
- import "vue";
3
- import "./component-8f0be7eb.js";
1
+ import { ref, reactive, computed, watch, onMounted, onUnmounted, openBlock, createElementBlock, normalizeStyle, createElementVNode, renderSlot } from "vue";
2
+ import { c as createComponent } from "./component-470275dd.js";
3
+ import { g as getScrollParent } from "./index-97b44e6c.js";
4
+ import { u as useRect } from "./index-29892cda.js";
5
+ import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
4
6
  import "../locale/lang";
5
- import "./index-29892cda.js";
7
+ const { create } = createComponent("sticky");
8
+ const _sfc_main = create({
9
+ props: {
10
+ position: {
11
+ type: String,
12
+ default: "top"
13
+ },
14
+ top: {
15
+ type: [Number, String],
16
+ default: 0
17
+ },
18
+ bottom: {
19
+ type: [Number, String],
20
+ default: 0
21
+ },
22
+ container: {
23
+ type: Object
24
+ },
25
+ zIndex: {
26
+ type: [Number, String],
27
+ default: 99
28
+ }
29
+ },
30
+ emits: ["change"],
31
+ setup(props, { emit }) {
32
+ const rootRef = ref();
33
+ const stickyRef = ref();
34
+ const state = reactive({
35
+ fixed: false,
36
+ height: 0,
37
+ transform: 0
38
+ });
39
+ const threshold = computed(() => {
40
+ return props.position === "top" ? Number(props.top) : Number(props.bottom);
41
+ });
42
+ const rootStyle = computed(() => {
43
+ if (state.fixed)
44
+ return { height: `${state.height}px` };
45
+ return {};
46
+ });
47
+ const stickyStyle = computed(() => {
48
+ if (!state.fixed)
49
+ return {};
50
+ return {
51
+ [props.position]: `${threshold.value}px`,
52
+ transform: state.transform ? `translate3d(0, ${state.transform}px, 0)` : void 0,
53
+ position: state.fixed ? "fixed" : void 0,
54
+ zIndex: Number(props.zIndex)
55
+ };
56
+ });
57
+ const handleScroll = () => {
58
+ const containerEle = props.container;
59
+ if (!rootRef.value && !containerEle)
60
+ return;
61
+ const rootRect = useRect(rootRef);
62
+ const stCurrent = stickyRef.value;
63
+ const stickyRect = useRect(stCurrent);
64
+ const containerRect = useRect(containerEle);
65
+ state.height = rootRect.height;
66
+ const getFixed = () => {
67
+ let fixed = false;
68
+ if (props.position === "top") {
69
+ fixed = containerEle ? threshold.value > rootRect.top && containerRect.bottom > 0 : threshold.value > rootRect.top;
70
+ } else {
71
+ const clientHeight = document.documentElement.clientHeight;
72
+ fixed = containerEle ? containerRect.bottom > 0 && clientHeight - threshold.value - stickyRect.height > containerRect.top : clientHeight - threshold.value < rootRect.bottom;
73
+ }
74
+ return fixed;
75
+ };
76
+ const getTransform = () => {
77
+ if (containerEle) {
78
+ if (props.position === "top") {
79
+ const diff = containerRect.bottom - threshold.value - stickyRect.height;
80
+ return diff < 0 ? diff : 0;
81
+ } else {
82
+ const clientHeight = document.documentElement.clientHeight;
83
+ const diff = containerRect.bottom - (clientHeight - threshold.value);
84
+ return diff < 0 ? diff : 0;
85
+ }
86
+ }
87
+ return 0;
88
+ };
89
+ state.transform = getTransform();
90
+ state.fixed = getFixed();
91
+ };
92
+ watch(
93
+ () => state.fixed,
94
+ (val) => {
95
+ emit("change", val);
96
+ }
97
+ );
98
+ onMounted(() => {
99
+ handleScroll();
100
+ const el = getScrollParent(rootRef.value);
101
+ el.addEventListener("scroll", handleScroll, true);
102
+ });
103
+ onUnmounted(() => {
104
+ const el = getScrollParent(rootRef.value);
105
+ el.removeEventListener("scroll", handleScroll);
106
+ });
107
+ return { rootRef, rootStyle, stickyRef, stickyStyle };
108
+ }
109
+ });
110
+ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
111
+ return openBlock(), createElementBlock("div", {
112
+ class: "nut-sticky",
113
+ ref: "rootRef",
114
+ style: normalizeStyle(_ctx.rootStyle)
115
+ }, [
116
+ createElementVNode("div", {
117
+ class: "nut-sticky__box",
118
+ ref: "stickyRef",
119
+ style: normalizeStyle(_ctx.stickyStyle)
120
+ }, [
121
+ renderSlot(_ctx.$slots, "default")
122
+ ], 4)
123
+ ], 4);
124
+ }
125
+ const Sticky = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
6
126
  export {
7
- _sfc_main as default
127
+ Sticky as default
8
128
  };
@@ -18,7 +18,7 @@ var __spreadValues = (a, b) => {
18
18
  };
19
19
  var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20
20
  import { reactive, computed, onMounted, toRefs, resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, withModifiers, toDisplayString, createBlock, withDirectives, normalizeStyle, renderSlot, vShow } from "vue";
21
- import { c as createComponent } from "./component-8f0be7eb.js";
21
+ import { c as createComponent } from "./component-470275dd.js";
22
22
  import { ArrowDown2, ArrowUp2 } from "@nutui/icons-vue";
23
23
  import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
24
24
  import "../locale/lang";
@@ -19,7 +19,7 @@ var __spreadValues = (a, b) => {
19
19
  var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20
20
  import { u as useTouch } from "./index-7a7385e4.js";
21
21
  import { computed, ref, reactive, openBlock, createElementBlock, normalizeClass, normalizeStyle, createElementVNode, renderSlot } from "vue";
22
- import { c as createComponent } from "./component-8f0be7eb.js";
22
+ import { c as createComponent } from "./component-470275dd.js";
23
23
  import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
24
24
  import "../locale/lang";
25
25
  const { componentName, create } = createComponent("swipe");
@@ -1,5 +1,5 @@
1
1
  import { ref, reactive, computed, provide, onDeactivated, onBeforeUnmount, watch, nextTick, openBlock, createElementBlock, normalizeClass, createElementVNode, normalizeStyle, renderSlot, Fragment, renderList, createCommentVNode } from "vue";
2
- import { c as createComponent, e as clamp } from "./component-8f0be7eb.js";
2
+ import { c as createComponent, e as clamp } from "./component-470275dd.js";
3
3
  import { u as useTouch } from "./index-7a7385e4.js";
4
4
  import { u as useExpose } from "./index-79c5dc33.js";
5
5
  import { r as requestAniFrame } from "./raf-729dad54.js";
@@ -294,7 +294,7 @@ const _sfc_main = create({
294
294
  }
295
295
  }
296
296
  };
297
- const onTouchEnd = (e) => {
297
+ const onTouchEnd = () => {
298
298
  if (!props.touchable || !state.moving)
299
299
  return;
300
300
  const speed = delTa.value / (Date.now() - state.touchTime);
@@ -1,11 +1,11 @@
1
1
  import { inject, getCurrentInstance, reactive, computed, onUnmounted, openBlock, createElementBlock, normalizeClass, normalizeStyle, renderSlot } from "vue";
2
- import { c as createComponent } from "./component-8f0be7eb.js";
2
+ import { c as createComponent } from "./component-470275dd.js";
3
3
  import { u as useExpose } from "./index-79c5dc33.js";
4
4
  import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
5
5
  import "../locale/lang";
6
6
  const { create, componentName } = createComponent("swiper-item");
7
7
  const _sfc_main = create({
8
- setup(props, { slots }) {
8
+ setup() {
9
9
  const parent = inject("parent");
10
10
  parent["relation"](getCurrentInstance());
11
11
  const state = reactive({
@@ -1,5 +1,5 @@
1
1
  import { computed, watch, resolveComponent, openBlock, createElementBlock, normalizeClass, normalizeStyle, createElementVNode, renderSlot, createVNode, createCommentVNode, Fragment, withDirectives, toDisplayString, vShow } from "vue";
2
- import { c as createComponent } from "./component-8f0be7eb.js";
2
+ import { c as createComponent } from "./component-470275dd.js";
3
3
  import { Loading1 } from "@nutui/icons-vue";
4
4
  import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
5
5
  import "../locale/lang";
@@ -18,7 +18,7 @@ var __spreadValues = (a, b) => {
18
18
  };
19
19
  var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20
20
  import { inject, computed, openBlock, createElementBlock, normalizeClass, normalizeStyle, renderSlot } from "vue";
21
- import { c as createComponent } from "./component-8f0be7eb.js";
21
+ import { c as createComponent } from "./component-470275dd.js";
22
22
  import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
23
23
  import "../locale/lang";
24
24
  const { create } = createComponent("tab-pane");
@@ -38,7 +38,7 @@ const _sfc_main = create({
38
38
  }
39
39
  },
40
40
  emits: ["click"],
41
- setup(props, { emit }) {
41
+ setup(props) {
42
42
  const parentOption = inject("tabsOpiton");
43
43
  const paneStyle = computed(() => {
44
44
  return {
@@ -1,5 +1,5 @@
1
1
  import { toRefs, ref, reactive, provide, watch, onMounted, nextTick, openBlock, createElementBlock, normalizeClass, normalizeStyle, createElementVNode, renderSlot } from "vue";
2
- import { c as createComponent } from "./component-8f0be7eb.js";
2
+ import { c as createComponent } from "./component-470275dd.js";
3
3
  import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
4
4
  import "../locale/lang";
5
5
  const { create } = createComponent("tabbar");
@@ -35,7 +35,7 @@ const _sfc_main = create({
35
35
  }
36
36
  },
37
37
  emits: ["tab-switch", "update:modelValue"],
38
- setup(props, { emit, slots }) {
38
+ setup(props, { emit }) {
39
39
  const { bottom, placeholder } = toRefs(props);
40
40
  const height = ref();
41
41
  const mdValue = reactive({
@@ -1,4 +1,4 @@
1
- import { c as createComponent } from "./component-8f0be7eb.js";
1
+ import { c as createComponent } from "./component-470275dd.js";
2
2
  import { r as renderIcon } from "./renderIcon-3d0fd47c.js";
3
3
  import { inject, reactive, getCurrentInstance, computed, resolveComponent, openBlock, createElementBlock, normalizeClass, normalizeStyle, createVNode, normalizeProps, guardReactiveProps, withCtx, createElementVNode, renderSlot, createCommentVNode, createBlock, resolveDynamicComponent, toDisplayString } from "vue";
4
4
  import { u as useRouter } from "./index-54d03fc1.js";
@@ -28,7 +28,7 @@ const _sfc_main = create({
28
28
  },
29
29
  to: [Object, String]
30
30
  },
31
- setup(props, { emit, slots }) {
31
+ setup(props, { slots }) {
32
32
  const isHaveSlot = (slot) => {
33
33
  return slots[slot];
34
34
  };
@@ -18,17 +18,23 @@ var __spreadValues = (a, b) => {
18
18
  };
19
19
  var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20
20
  import { defineComponent, h, reactive, computed, watch, toRefs, resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, Fragment, renderList, normalizeStyle, createTextVNode, toDisplayString, renderSlot, createBlock, createCommentVNode } from "vue";
21
- import { c as createComponent } from "./component-8f0be7eb.js";
21
+ import { c as createComponent } from "./component-470275dd.js";
22
22
  import { DownArrow } from "@nutui/icons-vue";
23
23
  import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
24
24
  import "../locale/lang";
25
25
  const RenderColumn = defineComponent({
26
+ props: {
27
+ slots: {
28
+ type: Array,
29
+ default: () => []
30
+ },
31
+ record: {
32
+ type: Object,
33
+ default: () => ({})
34
+ }
35
+ },
26
36
  setup(props) {
27
37
  return () => h(`view`, {}, props.slots[0] ? props.slots[0](props.record) : props.slots[1](props.record));
28
- },
29
- props: {
30
- slots: Array,
31
- record: Object
32
38
  }
33
39
  });
34
40
  const { componentName, create, translate } = createComponent("table");
@@ -64,7 +70,7 @@ const _sfc_main = create({
64
70
  }
65
71
  },
66
72
  emits: ["sorter"],
67
- setup(props, { emit, slots }) {
73
+ setup(props, { emit }) {
68
74
  const state = reactive({
69
75
  curData: props.data
70
76
  });
@@ -38,23 +38,24 @@ var __async = (__this, __arguments, generator) => {
38
38
  step((generator = generator.apply(__this, __arguments)).next());
39
39
  });
40
40
  };
41
- import { c as createComponent, T as TypeOfFun } from "./component-8f0be7eb.js";
41
+ import { c as createComponent, T as TypeOfFun } from "./component-470275dd.js";
42
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";
43
43
  import { p as pxCheck } from "./pxCheck-c6b9f6b7.js";
44
44
  import { u as useRect } from "./index-29892cda.js";
45
45
  import { r as requestAniFrame } from "./raf-729dad54.js";
46
- import { _ as _sfc_main$1 } from "./index.vue_vue_type_script_lang-89366761.js";
46
+ import Sticky from "./Sticky.js";
47
47
  import { JoySmile } from "@nutui/icons-vue";
48
48
  import { u as useTouch } from "./index-7a7385e4.js";
49
49
  import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
50
50
  import "../locale/lang";
51
+ import "./index-97b44e6c.js";
51
52
  const useTabContentTouch = (props, tabMethods, taro, useTaroRect) => {
52
53
  const tabsContentRef = ref();
53
54
  const tabsContentRefRect = ref({ width: 0, height: 0 });
54
55
  const initTaroWidth = () => __async(void 0, null, function* () {
55
56
  var _a, _b;
56
57
  if (taro && taro.getEnv() !== taro.ENV_TYPE.WEB) {
57
- let rect = yield useTaroRect(tabsContentRef, taro);
58
+ let rect = yield useTaroRect(tabsContentRef);
58
59
  tabsContentRefRect.value.width = rect.width || 0;
59
60
  tabsContentRefRect.value.height = rect.height || 0;
60
61
  } else {
@@ -159,7 +160,7 @@ class Title {
159
160
  }
160
161
  const { create } = createComponent("tabs");
161
162
  const _sfc_main = create({
162
- components: { [_sfc_main$1.name]: _sfc_main$1, JoySmile },
163
+ components: { [Sticky.name]: Sticky, JoySmile },
163
164
  props: {
164
165
  modelValue: {
165
166
  type: [String, Number],
@@ -1,5 +1,5 @@
1
1
  import { toRefs, computed, resolveComponent, openBlock, createElementBlock, normalizeClass, normalizeStyle, renderSlot, createBlock, createCommentVNode } from "vue";
2
- import { c as createComponent } from "./component-8f0be7eb.js";
2
+ import { c as createComponent } from "./component-470275dd.js";
3
3
  import { Close } from "@nutui/icons-vue";
4
4
  import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
5
5
  import "../locale/lang";
@@ -1,5 +1,5 @@
1
1
  import { ref, computed, onMounted, nextTick, watch, openBlock, createElementBlock, normalizeClass, createElementVNode, normalizeStyle, toDisplayString, createCommentVNode } from "vue";
2
- import { c as createComponent } from "./component-8f0be7eb.js";
2
+ import { c as createComponent } from "./component-470275dd.js";
3
3
  import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
4
4
  import "../locale/lang";
5
5
  const { componentName, create, translate } = createComponent("textarea");
@@ -18,7 +18,7 @@ var __spreadValues = (a, b) => {
18
18
  };
19
19
  var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20
20
  import { inject, reactive, computed, toRefs, openBlock, createElementBlock, normalizeClass, createElementVNode, Fragment, renderList, toDisplayString } from "vue";
21
- import { c as createComponent } from "./component-8f0be7eb.js";
21
+ import { c as createComponent } from "./component-470275dd.js";
22
22
  import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
23
23
  import "../locale/lang";
24
24
  const { componentName, create } = createComponent("time-detail");
@@ -18,7 +18,7 @@ var __spreadValues = (a, b) => {
18
18
  };
19
19
  var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20
20
  import { inject, reactive, computed, toRefs, openBlock, createElementBlock, normalizeClass, toDisplayString } from "vue";
21
- import { c as createComponent } from "./component-8f0be7eb.js";
21
+ import { c as createComponent } from "./component-470275dd.js";
22
22
  import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
23
23
  import "../locale/lang";
24
24
  const { componentName, create } = createComponent("time-pannel");
@@ -1,6 +1,6 @@
1
1
  import { computed, provide, resolveComponent, openBlock, createBlock, normalizeStyle, withCtx, createElementVNode, normalizeClass, createElementBlock, toDisplayString, renderSlot } from "vue";
2
- import { c as createComponent } from "./component-8f0be7eb.js";
3
- import { P as Popup } from "./index-dc2ebe90.js";
2
+ import { c as createComponent } from "./component-470275dd.js";
3
+ import { P as Popup } from "./index-412323a0.js";
4
4
  import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
5
5
  import "../locale/lang";
6
6
  import "./Overlay.js";
@@ -18,11 +18,11 @@ var __spreadValues = (a, b) => {
18
18
  };
19
19
  var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20
20
  import { reactive, onMounted, watch, computed, openBlock, createBlock, Transition, withCtx, withDirectives, createElementVNode, normalizeClass, normalizeStyle, createElementBlock, resolveDynamicComponent, createCommentVNode, toDisplayString, vShow, createVNode, render } from "vue";
21
- import { c as createComponent } from "./component-8f0be7eb.js";
21
+ import { c as createComponent } from "./component-470275dd.js";
22
22
  import { r as renderIcon } from "./renderIcon-3d0fd47c.js";
23
23
  import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
24
24
  import "../locale/lang";
25
- import { C as CreateComponent } from "./mountComponent-f2c53efb.js";
25
+ import { C as CreateComponent } from "./mountComponent-f893becf.js";
26
26
  import { Success, Failure, Tips, Loading } from "@nutui/icons-vue";
27
27
  const { create } = createComponent("toast");
28
28
  const _sfc_main = create({
@@ -18,14 +18,14 @@ var __spreadValues = (a, b) => {
18
18
  };
19
19
  var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20
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";
21
- import { c as createComponent } from "./component-8f0be7eb.js";
21
+ import { c as createComponent } from "./component-470275dd.js";
22
22
  import { u as useRect } from "./index-29892cda.js";
23
23
  import { Close } from "@nutui/icons-vue";
24
24
  import Popover from "./Popover.js";
25
25
  import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
26
26
  import "../locale/lang";
27
27
  import "./renderIcon-3d0fd47c.js";
28
- import "./index-dc2ebe90.js";
28
+ import "./index-412323a0.js";
29
29
  import "./Overlay.js";
30
30
  const { create } = createComponent("tour");
31
31
  const _sfc_main = create({
@@ -18,7 +18,7 @@ var __spreadValues = (a, b) => {
18
18
  };
19
19
  var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20
20
  import { reactive, computed, toRefs, resolveComponent, openBlock, createElementBlock, normalizeClass, normalizeStyle, toDisplayString, createCommentVNode, renderSlot, createVNode } from "vue";
21
- import { m as myFixed, c as createComponent } from "./component-8f0be7eb.js";
21
+ import { m as myFixed, c as createComponent } from "./component-470275dd.js";
22
22
  import { TriangleUp, TriangleDown } from "@nutui/icons-vue";
23
23
  import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
24
24
  import "../locale/lang";
@@ -5,8 +5,8 @@ var __publicField = (obj, key, value) => {
5
5
  return value;
6
6
  };
7
7
  import { reactive, computed, h, resolveComponent, openBlock, createElementBlock, normalizeClass, renderSlot, createBlock, resolveDynamicComponent, createCommentVNode, Fragment, renderList, createElementVNode, toDisplayString, createVNode } from "vue";
8
- import { c as createComponent } from "./component-8f0be7eb.js";
9
- import { f as funInterceptor } from "./Interceptor-5415601e.js";
8
+ import { c as createComponent } from "./component-470275dd.js";
9
+ import { f as funInterceptor } from "./Interceptor-883a3078.js";
10
10
  import Progress from "./Progress.js";
11
11
  import { Photograph, Failure, Loading, Del, Link } from "@nutui/icons-vue";
12
12
  import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
@@ -133,7 +133,7 @@ const _sfc_main = create({
133
133
  },
134
134
  beforeDelete: {
135
135
  type: Function,
136
- default: (file, files) => {
136
+ default: () => {
137
137
  return true;
138
138
  }
139
139
  },
@@ -191,6 +191,7 @@ const _sfc_main = create({
191
191
  try {
192
192
  uploadOption.sourceFile = fileItem.formData.get(props.name);
193
193
  } catch (error) {
194
+ console.warn("[NutUI] <Uploader> formData.get(name)", error);
194
195
  }
195
196
  uploadOption.onStart = (option) => {
196
197
  fileItem.status = "ready";
@@ -228,7 +229,7 @@ const _sfc_main = create({
228
229
  task.upload();
229
230
  } else {
230
231
  uploadQueue.push(
231
- new Promise((resolve, reject) => {
232
+ new Promise((resolve) => {
232
233
  resolve(task);
233
234
  })
234
235
  );
@@ -18,7 +18,7 @@ var __spreadValues = (a, b) => {
18
18
  };
19
19
  var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20
20
  import { reactive, ref, computed, watch, nextTick, onMounted, toRefs, openBlock, createElementBlock, createElementVNode, createCommentVNode, withDirectives, vShow, normalizeClass, toDisplayString, normalizeStyle, withModifiers } from "vue";
21
- import { c as createComponent } from "./component-8f0be7eb.js";
21
+ import { c as createComponent } from "./component-470275dd.js";
22
22
  import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
23
23
  import "../locale/lang";
24
24
  function throttle(fn, delay) {
@@ -18,7 +18,7 @@ var __spreadValues = (a, b) => {
18
18
  };
19
19
  var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20
20
  import { reactive, watch, computed, toRefs, openBlock, createElementBlock, normalizeClass, normalizeStyle } from "vue";
21
- import { c as createComponent } from "./component-8f0be7eb.js";
21
+ import { c as createComponent } from "./component-470275dd.js";
22
22
  import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
23
23
  import "../locale/lang";
24
24
  const { componentName, create } = createComponent("watermark");
@@ -94,7 +94,7 @@ const _sfc_main = create({
94
94
  }
95
95
  },
96
96
  emits: ["click"],
97
- setup(props, { emit }) {
97
+ setup(props) {
98
98
  const state = reactive({
99
99
  base64Url: ""
100
100
  });
@@ -1,5 +1,5 @@
1
1
  import { shallowReactive, getCurrentInstance, provide, markRaw, isVNode, computed, h } from "vue";
2
- import { c as createComponent } from "./component-8f0be7eb.js";
2
+ import { c as createComponent } from "./component-470275dd.js";
3
3
  import { p as pxCheck } from "./pxCheck-c6b9f6b7.js";
4
4
  function flattenVNodes(children, childName) {
5
5
  const result = [];
@@ -58,7 +58,7 @@ const floatData = (format, dataOp, mapOps) => {
58
58
  let mergeMapOps = Object.assign({}, mapOps);
59
59
  if (Object.keys(dataOp).length > 0) {
60
60
  Object.keys(mergeFormat).forEach((keys) => {
61
- if (mergeMapOps.hasOwnProperty(keys)) {
61
+ if (Object.prototype.hasOwnProperty.call(mergeMapOps, keys)) {
62
62
  const tof = TypeOfFun(mergeMapOps[keys]);
63
63
  if (tof == "function") {
64
64
  mergeFormat[keys] = mergeMapOps[keys](dataOp);
@@ -18,7 +18,7 @@ var __spreadValues = (a, b) => {
18
18
  };
19
19
  var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20
20
  import { ref, computed, reactive, watch, toRefs, openBlock, createElementBlock, normalizeClass, createElementVNode, toDisplayString, createCommentVNode, renderSlot, Fragment, renderList, normalizeStyle, createTextVNode } from "vue";
21
- import { c as createComponent } from "./component-8f0be7eb.js";
21
+ import { c as createComponent } from "./component-470275dd.js";
22
22
  import { r as requestAniFrame } from "./raf-729dad54.js";
23
23
  import { u as useExpose } from "./index-79c5dc33.js";
24
24
  import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
@@ -128,6 +128,7 @@ const Utils = {
128
128
  }
129
129
  return Math.ceil((d + remainder) / 7);
130
130
  },
131
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
131
132
  getYearWeek: function(year, month, date, firstDayOfWeek = 0) {
132
133
  const dateNow = new Date(Number(year), parseInt(month) - 1, Number(date));
133
134
  const dateFirst = new Date(Number(year), 0, 1);
@@ -17,7 +17,7 @@ var __spreadValues = (a, b) => {
17
17
  return a;
18
18
  };
19
19
  var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20
- import { c as createComponent } from "./component-8f0be7eb.js";
20
+ import { c as createComponent } from "./component-470275dd.js";
21
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";
22
22
  import Overlay from "./Overlay.js";
23
23
  import { Close } from "@nutui/icons-vue";
@@ -178,7 +178,7 @@ const component = (componentName2, components) => {
178
178
  };
179
179
  watch(
180
180
  () => props.visible,
181
- (val) => {
181
+ () => {
182
182
  props.visible ? open() : close();
183
183
  }
184
184
  );
@@ -26,5 +26,6 @@ function useScrollParent(el, root = defaultRoot) {
26
26
  return scrollParent;
27
27
  }
28
28
  export {
29
+ getScrollParent as g,
29
30
  useScrollParent as u
30
31
  };
@@ -1,5 +1,5 @@
1
1
  import { provide, readonly, computed, watch, h } from "vue";
2
- import { c as createComponent } from "./component-8f0be7eb.js";
2
+ import { c as createComponent } from "./component-470275dd.js";
3
3
  const { componentName, create } = createComponent("radio-group");
4
4
  const _sfc_main = create({
5
5
  props: {