@nutui/nutui 3.1.18-beta.0 → 3.1.18

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 (143) hide show
  1. package/CHANGELOG.md +41 -0
  2. package/LICENSE +1 -1
  3. package/README.md +6 -0
  4. package/dist/nutui.d.ts +3 -1
  5. package/dist/nutui.es.js +2230 -1192
  6. package/dist/nutui.umd.js +2240 -1201
  7. package/dist/packages/_es/ActionSheet.js +2 -2
  8. package/dist/packages/_es/Address.js +17 -11
  9. package/dist/packages/_es/Audio.js +2 -2
  10. package/dist/packages/_es/Avatar.js +2 -2
  11. package/dist/packages/_es/BackTop.js +5 -2
  12. package/dist/packages/_es/Badge.js +2 -2
  13. package/dist/packages/_es/Barrage.js +2 -2
  14. package/dist/packages/_es/Button.js +2 -2
  15. package/dist/packages/_es/Calendar.js +15 -16
  16. package/dist/packages/_es/Card.js +2 -2
  17. package/dist/packages/_es/Cascader.js +2 -2
  18. package/dist/packages/_es/Cell.js +24 -17
  19. package/dist/packages/_es/CellGroup.js +2 -2
  20. package/dist/packages/_es/Checkbox.js +4 -4
  21. package/dist/packages/_es/CheckboxGroup.js +3 -3
  22. package/dist/packages/_es/CircleProgress.js +2 -2
  23. package/dist/packages/_es/Col.js +2 -2
  24. package/dist/packages/_es/Collapse.js +2 -2
  25. package/dist/packages/_es/CollapseItem.js +28 -18
  26. package/dist/packages/_es/CountDown.js +4 -2
  27. package/dist/packages/_es/CountUp.js +25 -16
  28. package/dist/packages/_es/DatePicker.js +83 -47
  29. package/dist/packages/_es/Dialog.js +5 -3
  30. package/dist/packages/_es/Divider.js +2 -2
  31. package/dist/packages/_es/Drag.js +4 -4
  32. package/dist/packages/_es/Elevator.js +2 -2
  33. package/dist/packages/_es/Empty.js +2 -2
  34. package/dist/packages/_es/FixedNav.js +2 -2
  35. package/dist/packages/_es/Form.js +8 -6
  36. package/dist/packages/_es/FormItem.js +9 -6
  37. package/dist/packages/_es/Grid.js +2 -2
  38. package/dist/packages/_es/GridItem.js +2 -2
  39. package/dist/packages/_es/Icon.js +2 -2
  40. package/dist/packages/_es/ImagePreview.js +2 -2
  41. package/dist/packages/_es/Indicator.js +2 -2
  42. package/dist/packages/_es/InfiniteLoading.js +2 -2
  43. package/dist/packages/_es/Input.js +290 -66
  44. package/dist/packages/_es/InputNumber.js +2 -2
  45. package/dist/packages/_es/Layout.js +2 -2
  46. package/dist/packages/_es/List.js +124 -0
  47. package/dist/packages/_es/Menu.js +2 -2
  48. package/dist/packages/_es/MenuItem.js +2 -2
  49. package/dist/packages/_es/Navbar.js +16 -10
  50. package/dist/packages/_es/NoticeBar.js +6 -5
  51. package/dist/packages/_es/Notify.js +7 -3
  52. package/dist/packages/_es/NumberKeyboard.js +9 -4
  53. package/dist/packages/_es/OverLay.js +2 -2
  54. package/dist/packages/_es/Pagination.js +2 -2
  55. package/dist/packages/_es/Picker.js +163 -157
  56. package/dist/packages/_es/Popover.js +2 -2
  57. package/dist/packages/_es/Popup.js +2 -2
  58. package/dist/packages/_es/Price.js +2 -2
  59. package/dist/packages/_es/Progress.js +14 -22
  60. package/dist/packages/_es/Radio.js +3 -3
  61. package/dist/packages/_es/RadioGroup.js +2 -2
  62. package/dist/packages/_es/Range.js +129 -19
  63. package/dist/packages/_es/Rate.js +2 -2
  64. package/dist/packages/_es/Row.js +2 -2
  65. package/dist/packages/_es/SearchBar.js +2 -2
  66. package/dist/packages/_es/ShortPassword.js +2 -2
  67. package/dist/packages/_es/SideNavBar.js +2 -2
  68. package/dist/packages/_es/SideNavBarItem.js +2 -2
  69. package/dist/packages/_es/Signature.js +25 -6
  70. package/dist/packages/_es/Skeleton.js +2 -2
  71. package/dist/packages/_es/Sku.js +31 -13
  72. package/dist/packages/_es/Step.js +28 -12
  73. package/dist/packages/_es/Steps.js +8 -3
  74. package/dist/packages/_es/Sticky.js +2 -2
  75. package/dist/packages/_es/SubSideNavBar.js +2 -2
  76. package/dist/packages/_es/Swipe.js +2 -2
  77. package/dist/packages/_es/Swiper.js +2 -2
  78. package/dist/packages/_es/SwiperItem.js +2 -2
  79. package/dist/packages/_es/Switch.js +2 -2
  80. package/dist/packages/_es/TabPane.js +2 -2
  81. package/dist/packages/_es/Tabbar.js +2 -2
  82. package/dist/packages/_es/TabbarItem.js +17 -6
  83. package/dist/packages/_es/Table.js +2 -2
  84. package/dist/packages/_es/Tabs.js +8 -5
  85. package/dist/packages/_es/Tag.js +11 -5
  86. package/dist/packages/_es/TextArea.js +38 -6
  87. package/dist/packages/_es/TimeDetail.js +2 -2
  88. package/dist/packages/_es/TimePannel.js +2 -2
  89. package/dist/packages/_es/TimeSelect.js +2 -2
  90. package/dist/packages/_es/Toast.js +2 -2
  91. package/dist/packages/_es/Uploader.js +2 -4
  92. package/dist/packages/_es/Video.js +12 -8
  93. package/dist/packages/_es/common.js +2 -2
  94. package/dist/packages/_es/component.js +2 -2
  95. package/dist/packages/_es/index.js +2 -2
  96. package/dist/packages/_es/index2.js +2 -2
  97. package/dist/packages/_es/index3.js +2 -2
  98. package/dist/packages/_es/index4.js +2 -2
  99. package/dist/packages/_es/plugin-vue_export-helper.js +2 -2
  100. package/dist/packages/_es/pxCheck.js +2 -2
  101. package/dist/packages/_es/raf.js +2 -2
  102. package/dist/packages/_es/util.js +2 -2
  103. package/dist/packages/badge/index.scss +11 -13
  104. package/dist/packages/button/index.scss +1 -0
  105. package/dist/packages/calendar/index.scss +9 -4
  106. package/dist/packages/calendaritem/index.scss +0 -207
  107. package/dist/packages/cell/index.scss +6 -6
  108. package/dist/packages/checkbox/index.scss +4 -3
  109. package/dist/packages/collapseitem/index.scss +21 -11
  110. package/dist/packages/countdown/index.scss +3 -1
  111. package/dist/packages/divider/index.scss +8 -8
  112. package/dist/packages/elevator/index.scss +36 -36
  113. package/dist/packages/formitem/index.scss +15 -8
  114. package/dist/packages/indicator/index.scss +1 -1
  115. package/dist/packages/input/index.scss +70 -24
  116. package/dist/packages/inputnumber/index.scss +4 -2
  117. package/dist/packages/list/index.scss +24 -0
  118. package/dist/packages/menu/index.scss +3 -3
  119. package/dist/packages/navbar/index.scss +28 -8
  120. package/dist/packages/noticebar/index.scss +7 -8
  121. package/dist/packages/notify/index.scss +9 -0
  122. package/dist/packages/numberkeyboard/index.scss +22 -21
  123. package/dist/packages/oldpicker/index.scss +131 -0
  124. package/dist/packages/picker/index.scss +38 -32
  125. package/dist/packages/progress/index.scss +6 -5
  126. package/dist/packages/radio/index.scss +7 -6
  127. package/dist/packages/range/index.scss +109 -2
  128. package/dist/packages/searchbar/index.scss +7 -7
  129. package/dist/packages/sidenavbaritem/index.scss +5 -5
  130. package/dist/packages/step/index.scss +29 -29
  131. package/dist/packages/subsidenavbar/index.scss +10 -8
  132. package/dist/packages/tabbaritem/index.scss +15 -0
  133. package/dist/packages/timedetail/index.scss +13 -13
  134. package/dist/packages/timepannel/index.scss +7 -7
  135. package/dist/packages/timeselect/index.scss +3 -3
  136. package/dist/packages/uploader/index.scss +4 -4
  137. package/dist/style.css +1 -1
  138. package/dist/styles/themes/default.scss +39 -37
  139. package/dist/styles/themes/jdt.scss +91 -0
  140. package/dist/styles/variables-jdt.scss +727 -0
  141. package/dist/styles/variables.scss +250 -44
  142. package/package.json +2 -1
  143. package/dist/styles/themes/jdd.scss +0 -2
@@ -1,6 +1,6 @@
1
1
  /*!
2
- * @nutui/nutui v3.1.18-beta.0 Tue Mar 08 2022 10:41:31 GMT+0800 (中国标准时间)
3
- * (c) 2021 @jdf2e.
2
+ * @nutui/nutui v3.1.18 Fri Mar 25 2022 15:02:08 GMT+0800 (中国标准时间)
3
+ * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
6
6
  import { computed, openBlock, createElementBlock, normalizeClass, createCommentVNode, createElementVNode, toDisplayString } from "vue";
@@ -1,9 +1,9 @@
1
1
  /*!
2
- * @nutui/nutui v3.1.18-beta.0 Tue Mar 08 2022 10:41:31 GMT+0800 (中国标准时间)
3
- * (c) 2021 @jdf2e.
2
+ * @nutui/nutui v3.1.18 Fri Mar 25 2022 15:02:08 GMT+0800 (中国标准时间)
3
+ * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
6
- import { ref, computed, watch, onMounted, resolveComponent, openBlock, createElementBlock, createElementVNode, normalizeClass, normalizeStyle, toDisplayString, createCommentVNode, createBlock } from "vue";
6
+ import { ref, computed, onMounted, resolveComponent, openBlock, createElementBlock, createElementVNode, normalizeClass, normalizeStyle, toDisplayString, createCommentVNode, createBlock } from "vue";
7
7
  import { c as createComponent } from "./component.js";
8
8
  import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
9
9
  const { create } = createComponent("progress");
@@ -42,6 +42,10 @@ const _sfc_main = create({
42
42
  tyep: String,
43
43
  default: ""
44
44
  },
45
+ textBackground: {
46
+ tyep: String,
47
+ default: ""
48
+ },
45
49
  iconName: {
46
50
  type: String,
47
51
  default: "checked"
@@ -59,7 +63,6 @@ const _sfc_main = create({
59
63
  const height = ref(props.strokeWidth + "px");
60
64
  const progressOuter = ref();
61
65
  const insideText = ref();
62
- const left = ref();
63
66
  const bgStyle = computed(() => {
64
67
  return {
65
68
  width: props.percentage + "%",
@@ -71,30 +74,14 @@ const _sfc_main = create({
71
74
  color: props.textColor || ""
72
75
  };
73
76
  });
74
- const slideLeft = (values) => {
75
- if (props.textInside) {
76
- let offsetWidth = progressOuter.value.offsetWidth;
77
- let percentageWidth = progressOuter.value.offsetWidth * Number(values) * 0.01;
78
- let insideTextWidth = insideText.value.offsetWidth;
79
- left.value = percentageWidth - 5 + "px";
80
- if (offsetWidth == percentageWidth) {
81
- left.value = percentageWidth - insideTextWidth + "px";
82
- }
83
- }
84
- };
85
- watch(() => props.percentage, (values) => {
86
- slideLeft(values);
87
- });
88
77
  onMounted(() => {
89
- slideLeft(props.percentage);
90
78
  });
91
79
  return {
92
80
  height,
93
81
  bgStyle,
94
82
  textStyle,
95
83
  progressOuter,
96
- insideText,
97
- left
84
+ insideText
98
85
  };
99
86
  }
100
87
  });
@@ -115,7 +102,12 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
115
102
  key: 0,
116
103
  class: "nut-progress-text nut-progress-insidetext",
117
104
  ref: "insideText",
118
- style: normalizeStyle({ lineHeight: _ctx.height, left: _ctx.left })
105
+ style: normalizeStyle({
106
+ lineHeight: _ctx.height,
107
+ left: `${_ctx.percentage}%`,
108
+ transform: `translate(-${+_ctx.percentage}%,-50%)`,
109
+ background: _ctx.textBackground || _ctx.strokeColor
110
+ })
119
111
  }, [
120
112
  createElementVNode("span", {
121
113
  style: normalizeStyle(_ctx.textStyle)
@@ -1,6 +1,6 @@
1
1
  /*!
2
- * @nutui/nutui v3.1.18-beta.0 Tue Mar 08 2022 10:41:31 GMT+0800 (中国标准时间)
3
- * (c) 2021 @jdf2e.
2
+ * @nutui/nutui v3.1.18 Fri Mar 25 2022 15:02:08 GMT+0800 (中国标准时间)
3
+ * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
6
6
  import { inject, computed, h } from "vue";
@@ -32,7 +32,7 @@ const _sfc_main = create({
32
32
  },
33
33
  iconSize: {
34
34
  type: [String, Number],
35
- default: 18
35
+ default: ""
36
36
  }
37
37
  },
38
38
  setup(props, { emit, slots }) {
@@ -1,6 +1,6 @@
1
1
  /*!
2
- * @nutui/nutui v3.1.18-beta.0 Tue Mar 08 2022 10:41:31 GMT+0800 (中国标准时间)
3
- * (c) 2021 @jdf2e.
2
+ * @nutui/nutui v3.1.18 Fri Mar 25 2022 15:02:08 GMT+0800 (中国标准时间)
3
+ * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
6
6
  import { provide, readonly, computed, watch, h } from "vue";
@@ -18,11 +18,11 @@ var __spreadValues = (a, b) => {
18
18
  };
19
19
  var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20
20
  /*!
21
- * @nutui/nutui v3.1.18-beta.0 Tue Mar 08 2022 10:41:31 GMT+0800 (中国标准时间)
22
- * (c) 2021 @jdf2e.
21
+ * @nutui/nutui v3.1.18 Fri Mar 25 2022 15:02:08 GMT+0800 (中国标准时间)
22
+ * (c) 2022 @jdf2e.
23
23
  * Released under the MIT License.
24
24
  */
25
- import { ref, computed, toRefs, openBlock, createElementBlock, toDisplayString, createCommentVNode, createElementVNode, normalizeStyle, normalizeClass, withModifiers, Fragment, renderList, renderSlot } from "vue";
25
+ import { ref, computed, toRefs, openBlock, createElementBlock, normalizeClass, toDisplayString, createCommentVNode, createElementVNode, normalizeStyle, withModifiers, Fragment, renderList, createTextVNode, renderSlot } from "vue";
26
26
  import { c as createComponent } from "./component.js";
27
27
  import { u as useTouch } from "./index4.js";
28
28
  import { u as useRect } from "./index3.js";
@@ -38,6 +38,14 @@ const _sfc_main = create({
38
38
  activeColor: String,
39
39
  inactiveColor: String,
40
40
  buttonColor: String,
41
+ vertical: {
42
+ type: Boolean,
43
+ default: false
44
+ },
45
+ marks: {
46
+ type: Object,
47
+ default: {}
48
+ },
41
49
  hiddenRange: {
42
50
  type: Boolean,
43
51
  default: false
@@ -71,15 +79,29 @@ const _sfc_main = create({
71
79
  const root = ref();
72
80
  const dragStatus = ref();
73
81
  const touch = useTouch();
82
+ const marksList = computed(() => {
83
+ const { marks, max, min } = props;
84
+ const marksKeys = Object.keys(marks);
85
+ const list = marksKeys.map(parseFloat).sort((a, b) => a - b).filter((point) => point >= min && point <= max);
86
+ return list;
87
+ });
74
88
  const scope = computed(() => Number(props.max) - Number(props.min));
75
89
  const classes = computed(() => {
76
90
  const prefixCls = componentName;
77
91
  return {
78
92
  [prefixCls]: true,
79
93
  [`${prefixCls}-disabled`]: props.disabled,
94
+ [`${prefixCls}-vertical`]: props.vertical,
80
95
  [`${prefixCls}-show-number`]: !props.hiddenRange
81
96
  };
82
97
  });
98
+ const containerClasses = computed(() => {
99
+ const prefixCls = "nut-range-container";
100
+ return {
101
+ [prefixCls]: true,
102
+ [`${prefixCls}-vertical`]: props.vertical
103
+ };
104
+ });
83
105
  const wrapperStyle = computed(() => {
84
106
  return {
85
107
  background: props.inactiveColor
@@ -106,13 +128,67 @@ const _sfc_main = create({
106
128
  return `0%`;
107
129
  };
108
130
  const barStyle = computed(() => {
131
+ if (props.vertical) {
132
+ return {
133
+ height: calcMainAxis(),
134
+ top: calcOffset(),
135
+ background: props.activeColor,
136
+ transition: dragStatus.value ? "none" : void 0
137
+ };
138
+ } else {
139
+ return {
140
+ width: calcMainAxis(),
141
+ left: calcOffset(),
142
+ background: props.activeColor,
143
+ transition: dragStatus.value ? "none" : void 0
144
+ };
145
+ }
146
+ });
147
+ const markClassName = (mark) => {
148
+ const classPrefix = "nut-range-mark";
149
+ const { modelValue, max, min } = props;
150
+ let lowerBound = Number(min);
151
+ let upperBound = Number(max);
152
+ if (props.range) {
153
+ const [left, right] = modelValue;
154
+ lowerBound = left;
155
+ upperBound = right;
156
+ } else {
157
+ upperBound = modelValue;
158
+ }
159
+ let isActive = mark <= upperBound && mark >= lowerBound;
109
160
  return {
110
- width: calcMainAxis(),
111
- left: calcOffset(),
112
- background: props.activeColor,
113
- transition: dragStatus.value ? "none" : void 0
161
+ [`${classPrefix}-text`]: true,
162
+ [`${classPrefix}-text-active`]: isActive
114
163
  };
115
- });
164
+ };
165
+ const marksStyle = (mark) => {
166
+ const { max, min, vertical } = props;
167
+ let style = {
168
+ left: `${(mark - Number(min)) / scope.value * 100}%`
169
+ };
170
+ if (vertical) {
171
+ style = {
172
+ top: `${(mark - Number(min)) / scope.value * 100}%`
173
+ };
174
+ }
175
+ return style;
176
+ };
177
+ const tickStyle = (mark) => {
178
+ const { modelValue, max, min } = props;
179
+ let lowerBound = Number(min);
180
+ let upperBound = Number(max);
181
+ if (props.range) {
182
+ const [left, right] = modelValue;
183
+ lowerBound = left;
184
+ upperBound = right;
185
+ }
186
+ let isActive = mark <= upperBound && mark >= lowerBound;
187
+ let style = {
188
+ background: !isActive ? props.inactiveColor : props.activeColor
189
+ };
190
+ return style;
191
+ };
116
192
  const format = (value) => {
117
193
  const { min, max, step } = props;
118
194
  value = Math.max(+min, Math.min(value, +max));
@@ -144,8 +220,12 @@ const _sfc_main = create({
144
220
  }
145
221
  const { min, modelValue } = props;
146
222
  const rect = useRect(root);
147
- const delta = event.clientX - rect.left;
148
- const total = rect.width;
223
+ let delta = event.clientX - rect.left;
224
+ let total = rect.width;
225
+ if (props.vertical) {
226
+ delta = event.clientY - rect.top;
227
+ total = rect.height;
228
+ }
149
229
  const value = Number(min) + delta / total * scope.value;
150
230
  if (isRange(modelValue)) {
151
231
  const [left, right] = modelValue;
@@ -182,9 +262,14 @@ const _sfc_main = create({
182
262
  touch.move(event);
183
263
  dragStatus.value = "draging";
184
264
  const rect = useRect(root);
185
- const delta = touch.deltaX.value;
186
- const total = rect.width;
187
- const diff = delta / total * scope.value;
265
+ let delta = touch.deltaX.value;
266
+ let total = rect.width;
267
+ let diff = delta / total * scope.value;
268
+ if (props.vertical) {
269
+ delta = touch.deltaY.value;
270
+ total = rect.height;
271
+ diff = delta / total * scope.value;
272
+ }
188
273
  if (isRange(startValue)) {
189
274
  currentValue[buttonIndex.value] = startValue[buttonIndex.value] + diff;
190
275
  } else {
@@ -220,15 +305,23 @@ const _sfc_main = create({
220
305
  }, toRefs(props)), {
221
306
  barStyle,
222
307
  curValue,
223
- buttonIndex
308
+ buttonIndex,
309
+ containerClasses,
310
+ markClassName,
311
+ marksStyle,
312
+ marksList,
313
+ tickStyle
224
314
  });
225
315
  }
226
316
  });
227
- const _hoisted_1 = { class: "nut-range-container" };
228
- const _hoisted_2 = {
317
+ const _hoisted_1 = {
229
318
  key: 0,
230
319
  class: "min"
231
320
  };
321
+ const _hoisted_2 = {
322
+ key: 0,
323
+ class: "nut-range-mark"
324
+ };
232
325
  const _hoisted_3 = ["tabindex", "aria-valuemin", "aria-valuenow", "aria-valuemax", "onTouchstart"];
233
326
  const _hoisted_4 = {
234
327
  key: 0,
@@ -244,14 +337,31 @@ const _hoisted_7 = {
244
337
  class: "max"
245
338
  };
246
339
  function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
247
- return openBlock(), createElementBlock("view", _hoisted_1, [
248
- !_ctx.hiddenRange ? (openBlock(), createElementBlock("view", _hoisted_2, toDisplayString(+_ctx.min), 1)) : createCommentVNode("", true),
340
+ return openBlock(), createElementBlock("view", {
341
+ class: normalizeClass(_ctx.containerClasses)
342
+ }, [
343
+ !_ctx.hiddenRange ? (openBlock(), createElementBlock("view", _hoisted_1, toDisplayString(+_ctx.min), 1)) : createCommentVNode("", true),
249
344
  createElementVNode("view", {
250
345
  ref: "root",
251
346
  style: normalizeStyle(_ctx.wrapperStyle),
252
347
  class: normalizeClass(_ctx.classes),
253
348
  onClick: _cache[9] || (_cache[9] = withModifiers((...args) => _ctx.onClick && _ctx.onClick(...args), ["stop"]))
254
349
  }, [
350
+ _ctx.marksList.length > 0 ? (openBlock(), createElementBlock("view", _hoisted_2, [
351
+ (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.marksList, (marks) => {
352
+ return openBlock(), createElementBlock("span", {
353
+ key: marks,
354
+ class: normalizeClass(_ctx.markClassName(marks)),
355
+ style: normalizeStyle(_ctx.marksStyle(marks))
356
+ }, [
357
+ createTextVNode(toDisplayString(marks) + " ", 1),
358
+ createElementVNode("span", {
359
+ class: "nut-range-tick",
360
+ style: normalizeStyle(_ctx.tickStyle(marks))
361
+ }, null, 4)
362
+ ], 6);
363
+ }), 128))
364
+ ])) : createCommentVNode("", true),
255
365
  createElementVNode("view", {
256
366
  class: "nut-range-bar",
257
367
  style: normalizeStyle(_ctx.barStyle)
@@ -316,7 +426,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
316
426
  ], 4)
317
427
  ], 6),
318
428
  !_ctx.hiddenRange ? (openBlock(), createElementBlock("view", _hoisted_7, toDisplayString(+_ctx.max), 1)) : createCommentVNode("", true)
319
- ]);
429
+ ], 2);
320
430
  }
321
431
  var index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
322
432
  export { index as default };
@@ -1,6 +1,6 @@
1
1
  /*!
2
- * @nutui/nutui v3.1.18-beta.0 Tue Mar 08 2022 10:41:31 GMT+0800 (中国标准时间)
3
- * (c) 2021 @jdf2e.
2
+ * @nutui/nutui v3.1.18 Fri Mar 25 2022 15:02:08 GMT+0800 (中国标准时间)
3
+ * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
6
6
  import { computed, resolveComponent, openBlock, createElementBlock, normalizeClass, Fragment, renderList, normalizeStyle, createVNode, createBlock, createCommentVNode } from "vue";
@@ -1,6 +1,6 @@
1
1
  /*!
2
- * @nutui/nutui v3.1.18-beta.0 Tue Mar 08 2022 10:41:31 GMT+0800 (中国标准时间)
3
- * (c) 2021 @jdf2e.
2
+ * @nutui/nutui v3.1.18 Fri Mar 25 2022 15:02:08 GMT+0800 (中国标准时间)
3
+ * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
6
6
  import { provide, openBlock, createElementBlock, normalizeClass, renderSlot } from "vue";
@@ -18,8 +18,8 @@ var __spreadValues = (a, b) => {
18
18
  };
19
19
  var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20
20
  /*!
21
- * @nutui/nutui v3.1.18-beta.0 Tue Mar 08 2022 10:41:31 GMT+0800 (中国标准时间)
22
- * (c) 2021 @jdf2e.
21
+ * @nutui/nutui v3.1.18 Fri Mar 25 2022 15:02:08 GMT+0800 (中国标准时间)
22
+ * (c) 2022 @jdf2e.
23
23
  * Released under the MIT License.
24
24
  */
25
25
  import { reactive, computed, toRefs, resolveComponent, openBlock, createElementBlock, normalizeStyle, renderSlot, createCommentVNode, createElementVNode, withModifiers, withDirectives, createVNode, vShow } from "vue";
@@ -1,6 +1,6 @@
1
1
  /*!
2
- * @nutui/nutui v3.1.18-beta.0 Tue Mar 08 2022 10:41:31 GMT+0800 (中国标准时间)
3
- * (c) 2021 @jdf2e.
2
+ * @nutui/nutui v3.1.18 Fri Mar 25 2022 15:02:08 GMT+0800 (中国标准时间)
3
+ * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
6
6
  import { ref, computed, watch, resolveComponent, openBlock, createElementBlock, createVNode, withCtx, createElementVNode, toDisplayString, withDirectives, normalizeStyle, vModelText, Fragment, renderList, createCommentVNode } from "vue";
@@ -18,8 +18,8 @@ var __spreadValues = (a, b) => {
18
18
  };
19
19
  var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20
20
  /*!
21
- * @nutui/nutui v3.1.18-beta.0 Tue Mar 08 2022 10:41:31 GMT+0800 (中国标准时间)
22
- * (c) 2021 @jdf2e.
21
+ * @nutui/nutui v3.1.18 Fri Mar 25 2022 15:02:08 GMT+0800 (中国标准时间)
22
+ * (c) 2022 @jdf2e.
23
23
  * Released under the MIT License.
24
24
  */
25
25
  import { ref, reactive, computed, onMounted, toRefs, openBlock, createElementBlock, normalizeClass, createElementVNode, renderSlot } from "vue";
@@ -1,6 +1,6 @@
1
1
  /*!
2
- * @nutui/nutui v3.1.18-beta.0 Tue Mar 08 2022 10:41:31 GMT+0800 (中国标准时间)
3
- * (c) 2021 @jdf2e.
2
+ * @nutui/nutui v3.1.18 Fri Mar 25 2022 15:02:08 GMT+0800 (中国标准时间)
3
+ * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
6
6
  import { computed, openBlock, createElementBlock, withModifiers, createElementVNode, toDisplayString } from "vue";
@@ -1,9 +1,28 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __defProps = Object.defineProperties;
3
+ var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
4
+ var __getOwnPropSymbols = Object.getOwnPropertySymbols;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __propIsEnum = Object.prototype.propertyIsEnumerable;
7
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
8
+ var __spreadValues = (a, b) => {
9
+ for (var prop in b || (b = {}))
10
+ if (__hasOwnProp.call(b, prop))
11
+ __defNormalProp(a, prop, b[prop]);
12
+ if (__getOwnPropSymbols)
13
+ for (var prop of __getOwnPropSymbols(b)) {
14
+ if (__propIsEnum.call(b, prop))
15
+ __defNormalProp(a, prop, b[prop]);
16
+ }
17
+ return a;
18
+ };
19
+ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
1
20
  /*!
2
- * @nutui/nutui v3.1.18-beta.0 Tue Mar 08 2022 10:41:31 GMT+0800 (中国标准时间)
3
- * (c) 2021 @jdf2e.
21
+ * @nutui/nutui v3.1.18 Fri Mar 25 2022 15:02:08 GMT+0800 (中国标准时间)
22
+ * (c) 2022 @jdf2e.
4
23
  * Released under the MIT License.
5
24
  */
6
- import { ref, computed, reactive, onMounted, resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, toDisplayString, createVNode, withCtx, createTextVNode } from "vue";
25
+ import { ref, computed, reactive, onMounted, toRefs, resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, createVNode, withCtx, createTextVNode } from "vue";
7
26
  import { c as createComponent } from "./component.js";
8
27
  import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
9
28
  const { componentName, create } = createComponent("signature");
@@ -114,7 +133,7 @@ const _sfc_main = create({
114
133
  addEvent();
115
134
  }
116
135
  });
117
- return { canvas, wrap, isCanvasSupported, confirm, clear, classes };
136
+ return __spreadProps(__spreadValues({}, toRefs(state)), { canvas, wrap, isCanvasSupported, confirm, clear, classes });
118
137
  }
119
138
  });
120
139
  const _hoisted_1 = {
@@ -134,12 +153,12 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
134
153
  class: normalizeClass(_ctx.classes)
135
154
  }, [
136
155
  createElementVNode("div", _hoisted_1, [
137
- _ctx.isCanvasSupported ? (openBlock(), createElementBlock("canvas", {
156
+ (() => _ctx.isCanvasSupported()) ? (openBlock(), createElementBlock("canvas", {
138
157
  key: 0,
139
158
  ref: "canvas",
140
159
  height: _ctx.canvasHeight,
141
160
  width: _ctx.canvasWidth
142
- }, null, 8, _hoisted_2)) : (openBlock(), createElementBlock("p", _hoisted_3, toDisplayString(_ctx.unSupportTpl), 1))
161
+ }, null, 8, _hoisted_2)) : (openBlock(), createElementBlock("p", _hoisted_3, _toDisplayString(_ctx.unSupportTpl), 1))
143
162
  ], 512),
144
163
  createVNode(_component_nut_button, {
145
164
  class: "nut-signature-btn",
@@ -1,6 +1,6 @@
1
1
  /*!
2
- * @nutui/nutui v3.1.18-beta.0 Tue Mar 08 2022 10:41:31 GMT+0800 (中国标准时间)
3
- * (c) 2021 @jdf2e.
2
+ * @nutui/nutui v3.1.18 Fri Mar 25 2022 15:02:08 GMT+0800 (中国标准时间)
3
+ * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
6
6
  import { c as createComponent } from "./component.js";
@@ -1,12 +1,35 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __defProps = Object.defineProperties;
3
+ var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
4
+ var __getOwnPropSymbols = Object.getOwnPropertySymbols;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __propIsEnum = Object.prototype.propertyIsEnumerable;
7
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
8
+ var __spreadValues = (a, b) => {
9
+ for (var prop in b || (b = {}))
10
+ if (__hasOwnProp.call(b, prop))
11
+ __defNormalProp(a, prop, b[prop]);
12
+ if (__getOwnPropSymbols)
13
+ for (var prop of __getOwnPropSymbols(b)) {
14
+ if (__propIsEnum.call(b, prop))
15
+ __defNormalProp(a, prop, b[prop]);
16
+ }
17
+ return a;
18
+ };
19
+ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
1
20
  /*!
2
- * @nutui/nutui v3.1.18-beta.0 Tue Mar 08 2022 10:41:31 GMT+0800 (中国标准时间)
3
- * (c) 2021 @jdf2e.
21
+ * @nutui/nutui v3.1.18 Fri Mar 25 2022 15:02:08 GMT+0800 (中国标准时间)
22
+ * (c) 2022 @jdf2e.
4
23
  * Released under the MIT License.
5
24
  */
6
25
  import { resolveComponent, openBlock, createElementBlock, createElementVNode, renderSlot, createBlock, createCommentVNode, toDisplayString, ref, watch, onMounted, Fragment, renderList, normalizeClass, createVNode, withCtx, createSlots } from "vue";
7
26
  import { c as createComponent } from "./component.js";
8
27
  import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
9
28
  import { T as TypeOfFun } from "./util.js";
29
+ import { popupProps } from "./Popup.js";
30
+ import "./OverLay.js";
31
+ import "./Icon.js";
32
+ import "./pxCheck.js";
10
33
  const { componentName: componentName$4, create: create$4 } = createComponent("sku-header");
11
34
  const _sfc_main$4 = create$4({
12
35
  props: {
@@ -232,9 +255,6 @@ const _sfc_main$1 = create$1({
232
255
  };
233
256
  return mapD[type];
234
257
  };
235
- onMounted(() => {
236
- console.log(slots);
237
- });
238
258
  const getSlots = (name) => slots[name];
239
259
  const clickBtnOperate = (btn) => {
240
260
  emit("clickBtnOperate", btn);
@@ -278,11 +298,7 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
278
298
  var SkuOperate = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render$1]]);
279
299
  const { componentName, create } = createComponent("sku");
280
300
  const _sfc_main = create({
281
- props: {
282
- visible: {
283
- type: Boolean,
284
- default: false
285
- },
301
+ props: __spreadProps(__spreadValues({}, popupProps), {
286
302
  sku: {
287
303
  type: Array,
288
304
  default: []
@@ -327,7 +343,7 @@ const _sfc_main = create({
327
343
  type: String,
328
344
  default: "\u786E\u5B9A"
329
345
  }
330
- },
346
+ }),
331
347
  emits: [
332
348
  "update:visible",
333
349
  "selectSku",
@@ -428,7 +444,9 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
428
444
  onClickCloseIcon: _cache[1] || (_cache[1] = ($event) => _ctx.closePopup("icon")),
429
445
  onClickOverlay: _cache[2] || (_cache[2] = ($event) => _ctx.closePopup("overlay")),
430
446
  onClose: _cache[3] || (_cache[3] = ($event) => _ctx.closePopup("close")),
431
- style: { "height": "75%" }
447
+ style: { "height": "75%" },
448
+ isWrapTeleport: _ctx.isWrapTeleport,
449
+ teleport: _ctx.teleport
432
450
  }, {
433
451
  default: withCtx(() => [
434
452
  createElementVNode("view", _hoisted_1, [
@@ -491,7 +509,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
491
509
  ])
492
510
  ]),
493
511
  _: 3
494
- }, 8, ["visible"]);
512
+ }, 8, ["visible", "isWrapTeleport", "teleport"]);
495
513
  }
496
514
  var index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
497
515
  export { index as default };
@@ -18,11 +18,11 @@ var __spreadValues = (a, b) => {
18
18
  };
19
19
  var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20
20
  /*!
21
- * @nutui/nutui v3.1.18-beta.0 Tue Mar 08 2022 10:41:31 GMT+0800 (中国标准时间)
22
- * (c) 2021 @jdf2e.
21
+ * @nutui/nutui v3.1.18 Fri Mar 25 2022 15:02:08 GMT+0800 (中国标准时间)
22
+ * (c) 2022 @jdf2e.
23
23
  * Released under the MIT License.
24
24
  */
25
- import { getCurrentInstance, inject, reactive, computed, toRefs, resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, createBlock, Fragment, toDisplayString, createCommentVNode } from "vue";
25
+ import { getCurrentInstance, inject, reactive, computed, toRefs, resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, createBlock, Fragment, toDisplayString, createCommentVNode, renderSlot } from "vue";
26
26
  import { c as createComponent } from "./component.js";
27
27
  import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
28
28
  const { create, componentName } = createComponent("step");
@@ -49,6 +49,7 @@ const _sfc_main = create({
49
49
  default: "12px"
50
50
  }
51
51
  },
52
+ emits: ["click-step"],
52
53
  setup(props, { emit, slots }) {
53
54
  const { proxy } = getCurrentInstance();
54
55
  const parent = inject("parent");
@@ -73,9 +74,13 @@ const _sfc_main = create({
73
74
  [`${prefixCls}-${status.value}`]: true
74
75
  };
75
76
  });
77
+ const handleClickStep = () => {
78
+ parent["onEmit"](index2.value);
79
+ };
76
80
  return __spreadProps(__spreadValues({}, toRefs(state)), {
77
81
  index: index2,
78
- classes
82
+ classes,
83
+ handleClickStep
79
84
  });
80
85
  }
81
86
  });
@@ -87,11 +92,17 @@ const _hoisted_3 = {
87
92
  };
88
93
  const _hoisted_4 = { class: "nut-step-main" };
89
94
  const _hoisted_5 = { class: "nut-step-title" };
90
- const _hoisted_6 = ["innerHTML"];
95
+ const _hoisted_6 = { key: 0 };
96
+ const _hoisted_7 = {
97
+ key: 0,
98
+ class: "nut-step-content"
99
+ };
100
+ const _hoisted_8 = ["innerHTML"];
91
101
  function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
92
102
  const _component_nut_icon = resolveComponent("nut-icon");
93
103
  return openBlock(), createElementBlock("view", {
94
- class: normalizeClass(_ctx.classes)
104
+ class: normalizeClass(_ctx.classes),
105
+ onClick: _cache[0] || (_cache[0] = (...args) => _ctx.handleClickStep && _ctx.handleClickStep(...args))
95
106
  }, [
96
107
  createElementVNode("view", _hoisted_1, [
97
108
  _hoisted_2,
@@ -108,12 +119,17 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
108
119
  ], 2)
109
120
  ]),
110
121
  createElementVNode("view", _hoisted_4, [
111
- createElementVNode("view", _hoisted_5, toDisplayString(_ctx.title), 1),
112
- _ctx.content ? (openBlock(), createElementBlock("view", {
113
- key: 0,
114
- class: "nut-step-content",
115
- innerHTML: _ctx.content
116
- }, null, 8, _hoisted_6)) : createCommentVNode("", true)
122
+ createElementVNode("view", _hoisted_5, [
123
+ !_ctx.$slots.title ? (openBlock(), createElementBlock("span", _hoisted_6, toDisplayString(_ctx.title), 1)) : createCommentVNode("", true),
124
+ renderSlot(_ctx.$slots, "title")
125
+ ]),
126
+ _ctx.content || _ctx.$slots.content ? (openBlock(), createElementBlock("view", _hoisted_7, [
127
+ !_ctx.$slots.content ? (openBlock(), createElementBlock("span", {
128
+ key: 0,
129
+ innerHTML: _ctx.content
130
+ }, null, 8, _hoisted_8)) : createCommentVNode("", true),
131
+ renderSlot(_ctx.$slots, "content")
132
+ ])) : createCommentVNode("", true)
117
133
  ])
118
134
  ], 2);
119
135
  }