@nutui/nutui 3.2.6-beta.1 → 3.2.6

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 (241) hide show
  1. package/CHANGELOG.md +31 -0
  2. package/README.md +18 -4
  3. package/dist/nutui.es.js +4461 -4135
  4. package/dist/nutui.umd.js +4559 -4133
  5. package/dist/packages/_es/ActionSheet.js +19 -18
  6. package/dist/packages/_es/Address.js +85 -94
  7. package/dist/packages/_es/AddressList.js +12 -25
  8. package/dist/packages/_es/Animate.js +3 -3
  9. package/dist/packages/_es/Audio.js +2 -9
  10. package/dist/packages/_es/AudioOperate.js +1 -5
  11. package/dist/packages/_es/Avatar.js +10 -10
  12. package/dist/packages/_es/AvatarGroup.js +5 -5
  13. package/dist/packages/_es/BackTop.js +108 -55
  14. package/dist/packages/_es/Badge.js +12 -10
  15. package/dist/packages/_es/Barrage.js +103 -79
  16. package/dist/packages/_es/Button.js +3 -5
  17. package/dist/packages/_es/Calendar.js +23 -36
  18. package/dist/packages/_es/CalendarItem.js +3 -4
  19. package/dist/packages/_es/Card.js +5 -15
  20. package/dist/packages/_es/Cascader.js +11 -12
  21. package/dist/packages/_es/Category.js +12 -13
  22. package/dist/packages/_es/CategoryPane.js +13 -17
  23. package/dist/packages/_es/Cell.js +12 -9
  24. package/dist/packages/_es/CellGroup.js +2 -4
  25. package/dist/packages/_es/Checkbox.js +1 -1
  26. package/dist/packages/_es/CheckboxGroup.js +2 -2
  27. package/dist/packages/_es/CircleProgress.js +82 -98
  28. package/dist/packages/_es/Col.js +1 -1
  29. package/dist/packages/_es/Collapse.js +34 -65
  30. package/dist/packages/_es/CollapseItem.js +60 -93
  31. package/dist/packages/_es/Comment.js +19 -43
  32. package/dist/packages/_es/ConfigProvider.js +1 -1
  33. package/dist/packages/_es/CountDown.js +3 -3
  34. package/dist/packages/_es/CountUp.js +52 -47
  35. package/dist/packages/_es/DatePicker.js +54 -37
  36. package/dist/packages/_es/Dialog.js +88 -9
  37. package/dist/packages/_es/Divider.js +3 -3
  38. package/dist/packages/_es/Drag.js +49 -75
  39. package/dist/packages/_es/Ecard.js +18 -20
  40. package/dist/packages/_es/Elevator.js +76 -101
  41. package/dist/packages/_es/Ellipsis.js +100 -140
  42. package/dist/packages/_es/Empty.js +4 -6
  43. package/dist/packages/_es/FixedNav.js +6 -11
  44. package/dist/packages/_es/Form.js +4 -4
  45. package/dist/packages/_es/FormItem.js +1 -3
  46. package/dist/packages/_es/Grid.js +1 -1
  47. package/dist/packages/_es/GridItem.js +27 -10
  48. package/dist/packages/_es/Icon.js +1 -1
  49. package/dist/packages/_es/Image.js +114 -13
  50. package/dist/packages/_es/ImagePreview.js +411 -149
  51. package/dist/packages/_es/Indicator.js +3 -3
  52. package/dist/packages/_es/InfiniteLoading.js +115 -103
  53. package/dist/packages/_es/Input.js +32 -56
  54. package/dist/packages/_es/InputNumber.js +16 -25
  55. package/dist/packages/_es/Invoice.js +5 -6
  56. package/dist/packages/_es/Layout.js +1 -1
  57. package/dist/packages/_es/List.js +34 -47
  58. package/dist/packages/_es/Menu.js +35 -35
  59. package/dist/packages/_es/MenuItem.js +29 -56
  60. package/dist/packages/_es/Navbar.js +39 -49
  61. package/dist/packages/_es/NoticeBar.js +45 -54
  62. package/dist/packages/_es/Notify.js +162 -44
  63. package/dist/packages/_es/NumberKeyboard.js +20 -15
  64. package/dist/packages/_es/OldPicker.js +116 -130
  65. package/dist/packages/_es/OverLay.js +28 -5
  66. package/dist/packages/_es/Pagination.js +5 -8
  67. package/dist/packages/_es/Picker.js +74 -198
  68. package/dist/packages/_es/Popover.js +881 -201
  69. package/dist/packages/_es/Popup.js +84 -28
  70. package/dist/packages/_es/Price.js +6 -22
  71. package/dist/packages/_es/Progress.js +11 -18
  72. package/dist/packages/_es/PullRefresh.js +2 -4
  73. package/dist/packages/_es/Radio.js +3 -3
  74. package/dist/packages/_es/RadioGroup.js +1 -1
  75. package/dist/packages/_es/Range.js +34 -48
  76. package/dist/packages/_es/Rate.js +14 -15
  77. package/dist/packages/_es/Row.js +1 -1
  78. package/dist/packages/_es/SearchBar.js +36 -39
  79. package/dist/packages/_es/ShortPassword.js +66 -97
  80. package/dist/packages/_es/SideNavBar.js +18 -7
  81. package/dist/packages/_es/SideNavBarItem.js +1 -1
  82. package/dist/packages/_es/Signature.js +80 -113
  83. package/dist/packages/_es/Skeleton.js +11 -12
  84. package/dist/packages/_es/Sku.js +38 -63
  85. package/dist/packages/_es/Step.js +2 -7
  86. package/dist/packages/_es/Steps.js +1 -1
  87. package/dist/packages/_es/Sticky.js +23 -33
  88. package/dist/packages/_es/SubSideNavBar.js +2 -4
  89. package/dist/packages/_es/Swipe.js +26 -41
  90. package/dist/packages/_es/Swiper.js +21 -38
  91. package/dist/packages/_es/SwiperItem.js +2 -2
  92. package/dist/packages/_es/Switch.js +8 -8
  93. package/dist/packages/_es/TabPane.js +1 -1
  94. package/dist/packages/_es/Tabbar.js +13 -15
  95. package/dist/packages/_es/TabbarItem.js +30 -24
  96. package/dist/packages/_es/Table.js +17 -22
  97. package/dist/packages/_es/Tabs.js +16 -49
  98. package/dist/packages/_es/Tag.js +5 -6
  99. package/dist/packages/_es/TextArea.js +49 -114
  100. package/dist/packages/_es/TimeDetail.js +3 -4
  101. package/dist/packages/_es/TimePannel.js +3 -3
  102. package/dist/packages/_es/TimeSelect.js +10 -12
  103. package/dist/packages/_es/Toast.js +164 -53
  104. package/dist/packages/_es/TrendArrow.js +4 -6
  105. package/dist/packages/_es/Uploader.js +140 -141
  106. package/dist/packages/_es/Video.js +18 -39
  107. package/dist/packages/_es/WaterMark.js +14 -22
  108. package/dist/packages/_es/common.js +1 -1
  109. package/dist/packages/_es/component.js +1 -1
  110. package/dist/packages/_es/index.js +6 -44
  111. package/dist/packages/_es/index2.js +31 -8
  112. package/dist/packages/_es/index3.js +7 -64
  113. package/dist/packages/_es/index4.js +62 -424
  114. package/dist/packages/_es/{index.taro.js → index5.js} +154 -167
  115. package/dist/packages/_es/plugin-vue_export-helper.js +1 -1
  116. package/dist/packages/_es/pxCheck.js +1 -1
  117. package/dist/packages/_es/raf.js +1 -1
  118. package/dist/packages/_es/style.css +3 -21
  119. package/dist/packages/checkbox/index.scss +1 -0
  120. package/dist/packages/locale/lang/baseLang.js +1 -1
  121. package/dist/packages/locale/lang/en-US.js +1 -1
  122. package/dist/packages/locale/lang/id-ID.js +1 -1
  123. package/dist/packages/locale/lang/index.js +1 -1
  124. package/dist/packages/locale/lang/zh-CN.js +1 -1
  125. package/dist/packages/locale/lang/zh-TW.js +1 -1
  126. package/dist/packages/menuitem/index.scss +12 -3
  127. package/dist/smartips/attributes.json +5 -1
  128. package/dist/smartips/tags.json +1 -0
  129. package/dist/smartips/web-types.json +11 -2
  130. package/dist/style.css +1 -1
  131. package/dist/styles/themes/default.scss +49 -49
  132. package/dist/styles/themes/jdb.scss +49 -49
  133. package/dist/styles/themes/jddkh.scss +49 -49
  134. package/dist/styles/themes/jdt.scss +49 -49
  135. package/dist/types/__VUE/actionsheet/{index.taro.vue.d.ts → index.vue.d.ts} +9 -9
  136. package/dist/types/__VUE/address/{index.taro.vue.d.ts → index.vue.d.ts} +32 -72
  137. package/dist/types/__VUE/addresslist/{index.taro.vue.d.ts → index.vue.d.ts} +0 -0
  138. package/dist/types/__VUE/animate/{index.taro.vue.d.ts → index.vue.d.ts} +0 -0
  139. package/dist/types/__VUE/avatar/{index.taro.vue.d.ts → index.vue.d.ts} +6 -6
  140. package/dist/types/__VUE/avatargroup/{index.taro.vue.d.ts → index.vue.d.ts} +0 -0
  141. package/dist/types/__VUE/backtop/{index.taro.vue.d.ts → index.vue.d.ts} +37 -15
  142. package/dist/types/__VUE/badge/{index.taro.vue.d.ts → index.vue.d.ts} +0 -0
  143. package/dist/types/__VUE/barrage/{index.taro.vue.d.ts → index.vue.d.ts} +2 -2
  144. package/dist/types/__VUE/button/index.vue.d.ts +1 -1
  145. package/dist/types/__VUE/calendar/{index.taro.vue.d.ts → index.vue.d.ts} +1 -13
  146. package/dist/types/__VUE/calendaritem/{index.taro.vue.d.ts → index.vue.d.ts} +17 -17
  147. package/dist/types/__VUE/card/{index.taro.vue.d.ts → index.vue.d.ts} +0 -0
  148. package/dist/types/__VUE/cascader/{index.taro.vue.d.ts → index.vue.d.ts} +1 -1
  149. package/dist/types/__VUE/category/{index.taro.vue.d.ts → index.vue.d.ts} +0 -0
  150. package/dist/types/__VUE/categorypane/{index.taro.vue.d.ts → index.vue.d.ts} +0 -0
  151. package/dist/types/__VUE/cell/{index.taro.vue.d.ts → index.vue.d.ts} +6 -13
  152. package/dist/types/__VUE/checkbox/{index.taro.vue.d.ts → index.vue.d.ts} +0 -0
  153. package/dist/types/__VUE/circleprogress/{index.taro.vue.d.ts → index.vue.d.ts} +15 -14
  154. package/dist/types/__VUE/collapse/{index.taro.vue.d.ts → index.vue.d.ts} +1 -1
  155. package/dist/types/__VUE/collapseitem/{index.taro.vue.d.ts → index.vue.d.ts} +10 -2
  156. package/dist/types/__VUE/comment/{index.taro.vue.d.ts → index.vue.d.ts} +2 -1
  157. package/dist/types/__VUE/configprovider/{index.taro.vue.d.ts → index.vue.d.ts} +0 -0
  158. package/dist/types/__VUE/countdown/{index.taro.vue.d.ts → index.vue.d.ts} +0 -0
  159. package/dist/types/__VUE/countup/{index.taro.vue.d.ts → index.vue.d.ts} +7 -5
  160. package/dist/types/__VUE/datepicker/{index.taro.vue.d.ts → index.vue.d.ts} +5 -5
  161. package/dist/types/__VUE/dialog/index.d.ts +48 -0
  162. package/dist/types/__VUE/dialog/{index.taro.vue.d.ts → index.vue.d.ts} +12 -9
  163. package/dist/types/__VUE/divider/{index.taro.vue.d.ts → index.vue.d.ts} +0 -0
  164. package/dist/types/__VUE/drag/{index.taro.vue.d.ts → index.vue.d.ts} +1 -2
  165. package/dist/types/__VUE/ecard/{index.taro.vue.d.ts → index.vue.d.ts} +3 -3
  166. package/dist/types/__VUE/elevator/{index.taro.vue.d.ts → index.vue.d.ts} +2 -11
  167. package/dist/types/__VUE/ellipsis/{index.taro.vue.d.ts → index.vue.d.ts} +0 -4
  168. package/dist/types/__VUE/empty/{index.taro.vue.d.ts → index.vue.d.ts} +0 -0
  169. package/dist/types/__VUE/fixednav/{index.taro.vue.d.ts → index.vue.d.ts} +0 -0
  170. package/dist/types/__VUE/form/{index.taro.vue.d.ts → index.vue.d.ts} +0 -0
  171. package/dist/types/__VUE/grid/{index.taro.vue.d.ts → index.vue.d.ts} +1 -1
  172. package/dist/types/__VUE/griditem/{index.taro.vue.d.ts → index.vue.d.ts} +27 -2
  173. package/dist/types/__VUE/image/index.vue.d.ts +117 -0
  174. package/dist/types/__VUE/image/type.d.ts +6 -0
  175. package/dist/types/__VUE/imagepreview/imagePreviewItem.vue.d.ts +109 -0
  176. package/dist/types/__VUE/imagepreview/index.d.ts +25 -0
  177. package/dist/types/__VUE/imagepreview/{index.taro.vue.d.ts → index.vue.d.ts} +44 -33
  178. package/dist/types/__VUE/indicator/{index.taro.vue.d.ts → index.vue.d.ts} +0 -0
  179. package/dist/types/__VUE/infiniteloading/{index.taro.vue.d.ts → index.vue.d.ts} +8 -15
  180. package/dist/types/__VUE/input/{index.taro.vue.d.ts → index.vue.d.ts} +16 -34
  181. package/dist/types/__VUE/inputnumber/{index.taro.vue.d.ts → index.vue.d.ts} +2 -2
  182. package/dist/types/__VUE/invoice/{index.taro.vue.d.ts → index.vue.d.ts} +0 -0
  183. package/dist/types/__VUE/layout/{index.taro.vue.d.ts → index.vue.d.ts} +0 -0
  184. package/dist/types/__VUE/list/{index.taro.vue.d.ts → index.vue.d.ts} +2 -2
  185. package/dist/types/__VUE/menu/{index.taro.vue.d.ts → index.vue.d.ts} +0 -1
  186. package/dist/types/__VUE/menuitem/{index.taro.vue.d.ts → index.vue.d.ts} +0 -0
  187. package/dist/types/__VUE/navbar/{index.taro.vue.d.ts → index.vue.d.ts} +2 -1
  188. package/dist/types/__VUE/noticebar/{index.taro.vue.d.ts → index.vue.d.ts} +4 -4
  189. package/dist/types/__VUE/notify/index.d.ts +26 -0
  190. package/dist/types/__VUE/notify/{index.taro.vue.d.ts → index.vue.d.ts} +18 -5
  191. package/dist/types/__VUE/numberkeyboard/{index.taro.vue.d.ts → index.vue.d.ts} +29 -5
  192. package/dist/types/__VUE/oldpicker/{ColumnTaro.vue.d.ts → Column.vue.d.ts} +17 -28
  193. package/dist/types/__VUE/oldpicker/{index.taro.vue.d.ts → index.vue.d.ts} +44 -64
  194. package/dist/types/__VUE/pagination/{index.taro.vue.d.ts → index.vue.d.ts} +0 -0
  195. package/dist/types/__VUE/picker/{ColumnTaro.vue.d.ts → Column.vue.d.ts} +4 -16
  196. package/dist/types/__VUE/picker/{index.taro.vue.d.ts → index.vue.d.ts} +28 -53
  197. package/dist/types/__VUE/popover/{index.taro.vue.d.ts → index.vue.d.ts} +12 -14
  198. package/dist/types/__VUE/popup/index.vue.d.ts +1 -1
  199. package/dist/types/__VUE/price/{index.taro.vue.d.ts → index.vue.d.ts} +0 -1
  200. package/dist/types/__VUE/progress/{index.taro.vue.d.ts → index.vue.d.ts} +1 -1
  201. package/dist/types/__VUE/radio/{index.taro.vue.d.ts → index.vue.d.ts} +0 -0
  202. package/dist/types/__VUE/range/{index.taro.vue.d.ts → index.vue.d.ts} +6 -7
  203. package/dist/types/__VUE/rate/{index.taro.vue.d.ts → index.vue.d.ts} +0 -0
  204. package/dist/types/__VUE/searchbar/{index.taro.vue.d.ts → index.vue.d.ts} +19 -19
  205. package/dist/types/__VUE/shortpassword/{index.taro.vue.d.ts → index.vue.d.ts} +21 -6
  206. package/dist/types/__VUE/sidenavbar/{index.taro.vue.d.ts → index.vue.d.ts} +5 -0
  207. package/dist/types/__VUE/signature/{index.taro.vue.d.ts → index.vue.d.ts} +5 -8
  208. package/dist/types/__VUE/skeleton/{index.taro.vue.d.ts → index.vue.d.ts} +0 -0
  209. package/dist/types/__VUE/sku/index.vue.d.ts +310 -0
  210. package/dist/types/__VUE/step/index.vue.d.ts +1 -1
  211. package/dist/types/__VUE/steps/{index.taro.vue.d.ts → index.vue.d.ts} +0 -0
  212. package/dist/types/__VUE/sticky/{index.taro.vue.d.ts → index.vue.d.ts} +0 -0
  213. package/dist/types/__VUE/swipe/{index.taro.vue.d.ts → index.vue.d.ts} +1 -2
  214. package/dist/types/__VUE/swiper/{index.taro.vue.d.ts → index.vue.d.ts} +1 -2
  215. package/dist/types/__VUE/swiperitem/{index.taro.vue.d.ts → index.vue.d.ts} +0 -0
  216. package/dist/types/__VUE/switch/{index.taro.vue.d.ts → index.vue.d.ts} +0 -0
  217. package/dist/types/__VUE/tabbar/{index.taro.vue.d.ts → index.vue.d.ts} +2 -1
  218. package/dist/types/__VUE/tabbaritem/{index.taro.vue.d.ts → index.vue.d.ts} +9 -9
  219. package/dist/types/__VUE/table/{index.taro.vue.d.ts → index.vue.d.ts} +0 -0
  220. package/dist/types/__VUE/tabs/{index.taro.vue.d.ts → index.vue.d.ts} +0 -0
  221. package/dist/types/__VUE/tag/{index.taro.vue.d.ts → index.vue.d.ts} +4 -4
  222. package/dist/types/__VUE/tag/type.d.ts +5 -0
  223. package/dist/types/__VUE/textarea/{index.taro.vue.d.ts → index.vue.d.ts} +3 -5
  224. package/dist/types/__VUE/timedetail/{index.taro.vue.d.ts → index.vue.d.ts} +0 -0
  225. package/dist/types/__VUE/timepannel/{index.taro.vue.d.ts → index.vue.d.ts} +0 -0
  226. package/dist/types/__VUE/timeselect/{index.taro.vue.d.ts → index.vue.d.ts} +8 -7
  227. package/dist/types/__VUE/toast/index.d.ts +16 -0
  228. package/dist/types/__VUE/toast/{index.taro.vue.d.ts → index.vue.d.ts} +22 -44
  229. package/dist/types/__VUE/trendarrow/{index.taro.vue.d.ts → index.vue.d.ts} +0 -0
  230. package/dist/types/__VUE/uploader/{index.taro.vue.d.ts → index.vue.d.ts} +11 -20
  231. package/dist/types/__VUE/watermark/{index.taro.vue.d.ts → index.vue.d.ts} +1 -1
  232. package/dist/types/index.d.ts +1 -1
  233. package/dist/types/nutui.d.ts +89 -89
  234. package/package.json +3 -2
  235. package/dist/packages/_es/use-lock-scroll.js +0 -23
  236. package/dist/types/__VUE/button/index.taro.vue.d.ts +0 -116
  237. package/dist/types/__VUE/icon/index.taro.vue.d.ts +0 -74
  238. package/dist/types/__VUE/image/index.taro.vue.d.ts +0 -33
  239. package/dist/types/__VUE/overlay/index.taro.vue.d.ts +0 -85
  240. package/dist/types/__VUE/popup/index.taro.vue.d.ts +0 -1728
  241. package/dist/types/__VUE/sku/index.taro.vue.d.ts +0 -182
@@ -1,10 +1,9 @@
1
1
  /*!
2
- * @nutui/nutui v3.2.6-beta.1 Mon Oct 31 2022 19:38:22 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.6 Fri Nov 04 2022 18:06:53 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
6
- import Taro from "@tarojs/taro";
7
- import { computed, ref, reactive, onMounted, resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, createTextVNode, createVNode, withCtx, toDisplayString } from "vue";
6
+ import { ref, computed, reactive, onMounted, toRefs, resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, withDirectives, vShow, toDisplayString, createCommentVNode, createVNode, withCtx, createTextVNode } from "vue";
8
7
  import { c as createComponent } from "./component.js";
9
8
  import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
10
9
  import "../locale/lang";
@@ -21,7 +20,15 @@ const _sfc_main = create({
21
20
  },
22
21
  strokeStyle: {
23
22
  type: String,
24
- default: "#000"
23
+ default: () => {
24
+ let bodyDom = document.getElementsByTagName("body");
25
+ let clsName = bodyDom[0]["className"];
26
+ if (clsName.indexOf("nut-theme-dark") == -1) {
27
+ return "#000";
28
+ } else {
29
+ return "#fff";
30
+ }
31
+ }
25
32
  },
26
33
  type: {
27
34
  type: String,
@@ -35,6 +42,8 @@ const _sfc_main = create({
35
42
  components: {},
36
43
  emits: ["start", "end", "signing", "confirm", "clear"],
37
44
  setup(props, { emit }) {
45
+ const canvas = ref(null);
46
+ const wrap = ref(null);
38
47
  const classes = computed(() => {
39
48
  const prefixCls = componentName;
40
49
  return {
@@ -42,164 +51,122 @@ const _sfc_main = create({
42
51
  [`${props.customClass}`]: props.customClass
43
52
  };
44
53
  });
45
- const spcanvas = ref(null);
46
54
  const state = reactive({
47
- canvas: null,
48
55
  canvasHeight: 0,
49
56
  canvasWidth: 0,
50
- ctx: null
57
+ ctx: null,
58
+ isSupportTouch: "ontouchstart" in window,
59
+ events: "ontouchstart" in window ? ["touchstart", "touchmove", "touchend", "touchleave"] : ["mousedown", "mousemove", "mouseup", "mouseleave"]
51
60
  });
61
+ const isCanvasSupported = () => {
62
+ let elem = document.createElement("canvas");
63
+ return !!(elem.getContext && elem.getContext("2d"));
64
+ };
65
+ const addEvent = () => {
66
+ canvas.value.addEventListener(state.events[0], startEventHandler, false);
67
+ };
52
68
  const startEventHandler = (event) => {
53
69
  event.preventDefault();
54
- if (!state.ctx) {
55
- return false;
56
- }
57
- emit("start");
58
70
  state.ctx.beginPath();
59
71
  state.ctx.lineWidth = props.lineWidth;
60
72
  state.ctx.strokeStyle = props.strokeStyle;
73
+ emit("start");
74
+ canvas.value.addEventListener(state.events[1], moveEventHandler, false);
75
+ canvas.value.addEventListener(state.events[2], endEventHandler, false);
76
+ canvas.value.addEventListener(state.events[3], leaveEventHandler, false);
61
77
  };
62
78
  const moveEventHandler = (event) => {
63
- var _a, _b;
64
79
  event.preventDefault();
65
- if (!state.ctx) {
66
- return false;
67
- }
68
- let evt = event.changedTouches[0];
80
+ let evt = state.isSupportTouch ? event.touches[0] : event;
69
81
  emit("signing", evt);
70
- let mouseX = evt.x || evt.clientX;
71
- let mouseY = evt.y || evt.clientY;
72
- if (Taro.getEnv() === "WEB") {
73
- let coverPos = spcanvas.value.getBoundingClientRect();
74
- mouseX = evt.clientX - coverPos.left;
75
- mouseY = evt.clientY - coverPos.top;
76
- }
77
- (_a = state.ctx) == null ? void 0 : _a.lineTo(mouseX, mouseY);
78
- (_b = state.ctx) == null ? void 0 : _b.stroke();
82
+ let coverPos = canvas.value.getBoundingClientRect();
83
+ let mouseX = evt.clientX - coverPos.left;
84
+ let mouseY = evt.clientY - coverPos.top;
85
+ state.ctx.lineTo(mouseX, mouseY);
86
+ state.ctx.stroke();
79
87
  };
80
88
  const endEventHandler = (event) => {
81
89
  event.preventDefault();
82
90
  emit("end");
91
+ canvas.value.removeEventListener(state.events[1], moveEventHandler, false);
92
+ canvas.value.removeEventListener(state.events[2], endEventHandler, false);
83
93
  };
84
94
  const leaveEventHandler = (event) => {
85
95
  event.preventDefault();
96
+ canvas.value.removeEventListener(state.events[1], moveEventHandler, false);
97
+ canvas.value.removeEventListener(state.events[2], endEventHandler, false);
86
98
  };
87
99
  const clear = () => {
100
+ canvas.value.addEventListener(state.events[2], endEventHandler, false);
88
101
  state.ctx.clearRect(0, 0, state.canvasWidth, state.canvasHeight);
89
102
  state.ctx.closePath();
90
103
  emit("clear");
91
104
  };
92
105
  const confirm = () => {
93
- onSave();
106
+ onSave(canvas.value);
94
107
  };
95
- const onSave = () => {
96
- if (!state.canvas) {
97
- return;
108
+ const onSave = (canvas2) => {
109
+ let dataurl;
110
+ switch (props.type) {
111
+ case "png":
112
+ dataurl = canvas2.toDataURL("image/png");
113
+ break;
114
+ case "jpg":
115
+ dataurl = canvas2.toDataURL("image/jpeg", 0.8);
116
+ break;
98
117
  }
99
- Taro.createSelectorQuery().select("#spcanvas").fields({
100
- node: true,
101
- size: true
102
- }).exec(async (res) => {
103
- Taro.canvasToTempFilePath({
104
- canvas: res[0].node,
105
- canvasId: "spcanvas",
106
- fileType: props.type,
107
- success: function(result) {
108
- emit("confirm", state.canvas, result.tempFilePath);
109
- },
110
- fail: function(result) {
111
- emit("confirm", result);
112
- }
113
- });
114
- });
118
+ clear();
119
+ emit("confirm", canvas2, dataurl);
115
120
  };
116
121
  onMounted(() => {
117
- Taro.nextTick(() => {
118
- setTimeout(() => {
119
- var _a;
120
- if (Taro.getEnv() === "WEAPP") {
121
- Taro.createSelectorQuery().select("#spcanvas").fields(
122
- {
123
- node: true,
124
- size: true
125
- },
126
- function(res) {
127
- const canvas = res.node;
128
- const ctx = canvas.getContext("2d");
129
- state.canvas = canvas;
130
- state.ctx = ctx;
131
- state.canvasWidth = res.width;
132
- state.canvasHeight = res.height;
133
- }
134
- ).exec();
135
- } else {
136
- console.log((_a = document.getElementById("spcanvas")) == null ? void 0 : _a.tagName);
137
- const canvasDom = document.getElementById("spcanvas");
138
- let canvas = canvasDom;
139
- if ((canvasDom == null ? void 0 : canvasDom.tagName) !== "CANVAS") {
140
- canvas = canvasDom == null ? void 0 : canvasDom.getElementsByTagName("canvas")[0];
141
- }
142
- const ctx = canvas.getContext("2d");
143
- state.canvas = canvas;
144
- state.ctx = ctx;
145
- state.canvasWidth = canvas.width;
146
- state.canvasHeight = canvas.height;
147
- }
148
- }, 1e3);
149
- });
122
+ if (isCanvasSupported()) {
123
+ state.ctx = canvas.value.getContext("2d");
124
+ state.canvasWidth = wrap.value.offsetWidth;
125
+ state.canvasHeight = wrap.value.offsetHeight;
126
+ addEvent();
127
+ }
150
128
  });
151
- return {
152
- taroEnv: Taro.getEnv(),
153
- spcanvas,
154
- confirm,
155
- clear,
156
- classes,
157
- startEventHandler,
158
- moveEventHandler,
159
- endEventHandler,
160
- leaveEventHandler,
161
- translate
162
- };
129
+ return { ...toRefs(state), canvas, wrap, isCanvasSupported, confirm, clear, classes, translate };
163
130
  }
164
131
  });
132
+ const _hoisted_1 = {
133
+ class: "nut-signature-inner",
134
+ ref: "wrap"
135
+ };
136
+ const _hoisted_2 = ["height", "width"];
137
+ const _hoisted_3 = {
138
+ key: 0,
139
+ class: "nut-signature-unsopport"
140
+ };
165
141
  function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
166
142
  const _component_nut_button = resolveComponent("nut-button");
167
143
  return openBlock(), createElementBlock("div", {
168
144
  class: normalizeClass(_ctx.classes)
169
145
  }, [
170
- createElementVNode("div", {
171
- class: normalizeClass(["nut-signature-inner", _ctx.taroEnv === "WEAPP" ? "spcanvas_WEAPP" : ""])
172
- }, [
173
- createElementVNode("canvas", {
174
- ref: "spcanvas",
175
- class: "spcanvas",
176
- id: "spcanvas",
177
- canvasId: "spcanvas",
178
- "canvas-id": "spcanvas",
179
- type: "2d",
180
- "disable-scroll": "true",
181
- onTouchstart: _cache[0] || (_cache[0] = (...args) => _ctx.startEventHandler && _ctx.startEventHandler(...args)),
182
- onTouchmove: _cache[1] || (_cache[1] = (...args) => _ctx.moveEventHandler && _ctx.moveEventHandler(...args)),
183
- onTouchend: _cache[2] || (_cache[2] = (...args) => _ctx.endEventHandler && _ctx.endEventHandler(...args)),
184
- onTouchleave: _cache[3] || (_cache[3] = (...args) => _ctx.leaveEventHandler && _ctx.leaveEventHandler(...args))
185
- }, null, 544)
186
- ], 2),
187
- createTextVNode(),
146
+ createElementVNode("div", _hoisted_1, [
147
+ withDirectives(createElementVNode("canvas", {
148
+ ref: "canvas",
149
+ height: _ctx.canvasHeight,
150
+ width: _ctx.canvasWidth
151
+ }, null, 8, _hoisted_2), [
152
+ [vShow, _ctx.isCanvasSupported()]
153
+ ]),
154
+ !_ctx.isCanvasSupported() ? (openBlock(), createElementBlock("p", _hoisted_3, toDisplayString(_ctx.unSupportTpl || _ctx.translate("unSupportTpl")), 1)) : createCommentVNode("", true)
155
+ ], 512),
188
156
  createVNode(_component_nut_button, {
189
157
  class: "nut-signature-btn",
190
158
  type: "default",
191
- onClick: _cache[4] || (_cache[4] = ($event) => _ctx.clear())
159
+ onClick: _cache[0] || (_cache[0] = ($event) => _ctx.clear())
192
160
  }, {
193
161
  default: withCtx(() => [
194
162
  createTextVNode(toDisplayString(_ctx.translate("reSign")), 1)
195
163
  ]),
196
164
  _: 1
197
165
  }),
198
- createTextVNode(),
199
166
  createVNode(_component_nut_button, {
200
167
  class: "nut-signature-btn",
201
168
  type: "primary",
202
- onClick: _cache[5] || (_cache[5] = ($event) => _ctx.confirm())
169
+ onClick: _cache[1] || (_cache[1] = ($event) => _ctx.confirm())
203
170
  }, {
204
171
  default: withCtx(() => [
205
172
  createTextVNode(toDisplayString(_ctx.translate("confirm")), 1)
@@ -208,5 +175,5 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
208
175
  })
209
176
  ], 2);
210
177
  }
211
- var index_taro = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
212
- export { index_taro as default };
178
+ var index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
179
+ export { index as default };
@@ -1,10 +1,10 @@
1
1
  /*!
2
- * @nutui/nutui v3.2.6-beta.1 Mon Oct 31 2022 19:38:22 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.6 Fri Nov 04 2022 18:06:53 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
6
6
  import { c as createComponent } from "./component.js";
7
- import { toRefs, computed, onMounted, resolveComponent, openBlock, createElementBlock, renderSlot, createTextVNode, createElementVNode, createBlock, normalizeClass, normalizeStyle, createCommentVNode, Fragment, renderList } from "vue";
7
+ import { toRefs, computed, onMounted, resolveComponent, openBlock, createElementBlock, renderSlot, createCommentVNode, createElementVNode, createBlock, normalizeClass, normalizeStyle, Fragment, renderList } from "vue";
8
8
  import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
9
9
  import "../locale/lang";
10
10
  const component = {
@@ -95,7 +95,10 @@ const _hoisted_2 = {
95
95
  key: 1,
96
96
  class: "skeleton"
97
97
  };
98
- const _hoisted_3 = /* @__PURE__ */ createElementVNode("view", { class: "skeleton-animation" }, null, -1);
98
+ const _hoisted_3 = {
99
+ key: 0,
100
+ class: "skeleton-animation"
101
+ };
99
102
  const _hoisted_4 = { class: "content" };
100
103
  const _hoisted_5 = { class: "content-line" };
101
104
  const _hoisted_6 = {
@@ -107,8 +110,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
107
110
  return !_ctx.loading ? (openBlock(), createElementBlock("view", _hoisted_1, [
108
111
  renderSlot(_ctx.$slots, "default")
109
112
  ])) : (openBlock(), createElementBlock("view", _hoisted_2, [
110
- _hoisted_3,
111
- createTextVNode(),
113
+ _ctx.animated ? (openBlock(), createElementBlock("view", _hoisted_3)) : createCommentVNode("", true),
112
114
  createElementVNode("view", _hoisted_4, [
113
115
  _ctx.avatar ? (openBlock(), createBlock(_component_nut_avatar, {
114
116
  key: 0,
@@ -117,19 +119,16 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
117
119
  style: normalizeStyle(_ctx.getStyle()),
118
120
  "bg-color": "rgb(239, 239, 239)"
119
121
  }, null, 8, ["class", "shape", "style"])) : createCommentVNode("", true),
120
- createTextVNode(),
121
122
  Number(_ctx.row) == 1 ? (openBlock(), createElementBlock("view", {
122
123
  key: 1,
123
124
  class: normalizeClass(_ctx.blockClass),
124
125
  style: normalizeStyle({ width: _ctx.width, height: _ctx.height })
125
126
  }, null, 6)) : createCommentVNode("", true),
126
- createTextVNode(),
127
127
  createElementVNode("view", _hoisted_5, [
128
128
  _ctx.title ? (openBlock(), createElementBlock("view", _hoisted_6)) : createCommentVNode("", true),
129
- createTextVNode(),
130
- (openBlock(true), createElementBlock(Fragment, null, renderList(Number(_ctx.row), (item, index) => {
129
+ (openBlock(true), createElementBlock(Fragment, null, renderList(Number(_ctx.row), (item, index2) => {
131
130
  return openBlock(), createElementBlock("view", {
132
- key: index,
131
+ key: index2,
133
132
  class: normalizeClass(_ctx.blockClass),
134
133
  style: normalizeStyle({ width: _ctx.width, height: _ctx.height })
135
134
  }, null, 6);
@@ -138,5 +137,5 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
138
137
  ])
139
138
  ]));
140
139
  }
141
- var index_taro = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
142
- export { index_taro as default };
140
+ var index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
141
+ export { index as default };
@@ -1,12 +1,16 @@
1
1
  /*!
2
- * @nutui/nutui v3.2.6-beta.1 Mon Oct 31 2022 19:38:22 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.6 Fri Nov 04 2022 18:06:53 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
6
- import { resolveComponent, openBlock, createElementBlock, createElementVNode, createTextVNode, renderSlot, createBlock, createCommentVNode, toDisplayString, ref, watch, onMounted, Fragment, renderList, normalizeClass, createVNode, withCtx, createSlots } from "vue";
6
+ import { resolveComponent, openBlock, createElementBlock, createElementVNode, renderSlot, createBlock, createCommentVNode, toDisplayString, ref, watch, onMounted, Fragment, renderList, normalizeClass, createVNode, withCtx, createSlots } from "vue";
7
7
  import { c as createComponent, T as TypeOfFun } from "./component.js";
8
8
  import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
9
+ import { popupProps } from "./Popup.js";
9
10
  import "../locale/lang";
11
+ import "./OverLay.js";
12
+ import "./Icon.js";
13
+ import "./pxCheck.js";
10
14
  const { componentName: componentName$4, create: create$4, translate: translate$1 } = createComponent("sku-header");
11
15
  const _sfc_main$4 = create$4({
12
16
  props: {
@@ -37,7 +41,6 @@ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
37
41
  createElementVNode("img", {
38
42
  src: _ctx.goods.imagePath
39
43
  }, null, 8, _hoisted_2$4),
40
- createTextVNode(),
41
44
  createElementVNode("view", _hoisted_3$3, [
42
45
  _ctx.getSlots("sku-header-price") ? renderSlot(_ctx.$slots, "sku-header-price", { key: 0 }) : (openBlock(), createBlock(_component_nut_price, {
43
46
  key: 1,
@@ -45,9 +48,7 @@ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
45
48
  needSymbol: true,
46
49
  thousands: false
47
50
  }, null, 8, ["price"])),
48
- createTextVNode(),
49
51
  _ctx.getSlots("sku-header-extra") ? renderSlot(_ctx.$slots, "sku-header-extra", { key: 2 }) : createCommentVNode("", true),
50
- createTextVNode(),
51
52
  _ctx.goods.skuId && !_ctx.getSlots("sku-header-extra") ? (openBlock(), createElementBlock("view", _hoisted_4$3, toDisplayString(_ctx.translate("skuId")) + "\xA0:\xA0" + toDisplayString(_ctx.goods.skuId), 1)) : createCommentVNode("", true)
52
53
  ])
53
54
  ]);
@@ -76,13 +77,13 @@ const _sfc_main$3 = create$3({
76
77
  skuInfo.value = [].slice.call(props.sku);
77
78
  }
78
79
  });
79
- const changeSaleChild = (attrItem, index, parentItem, parentIndex) => {
80
+ const changeSaleChild = (attrItem, index2, parentItem, parentIndex) => {
80
81
  if (attrItem.checkFlag || attrItem.disable) {
81
82
  return;
82
83
  }
83
84
  emit("selectSku", {
84
85
  sku: attrItem,
85
- skuIndex: index,
86
+ skuIndex: index2,
86
87
  parentSku: parentItem,
87
88
  parentIndex
88
89
  });
@@ -99,18 +100,17 @@ const _hoisted_3$2 = { class: "nut-sku-select-item-skus" };
99
100
  const _hoisted_4$2 = ["onClick"];
100
101
  function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
101
102
  return openBlock(), createElementBlock("view", _hoisted_1$3, [
102
- (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.skuInfo, (item, index) => {
103
+ (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.skuInfo, (item, index2) => {
103
104
  return openBlock(), createElementBlock("view", {
104
105
  class: "nut-sku-select-item",
105
106
  key: item.id
106
107
  }, [
107
108
  createElementVNode("view", _hoisted_2$3, toDisplayString(item.name), 1),
108
- createTextVNode(),
109
109
  createElementVNode("view", _hoisted_3$2, [
110
110
  (openBlock(true), createElementBlock(Fragment, null, renderList(item.list, (itemAttr, itemAttrIndex) => {
111
111
  return openBlock(), createElementBlock("view", {
112
112
  class: normalizeClass(["nut-sku-select-item-skus-sku", [{ active: !itemAttr.disable && itemAttr.active }, { disable: itemAttr.disable }]]),
113
- onClick: ($event) => _ctx.changeSaleChild(itemAttr, itemAttrIndex, item, index),
113
+ onClick: ($event) => _ctx.changeSaleChild(itemAttr, itemAttrIndex, item, index2),
114
114
  key: itemAttr.name
115
115
  }, toDisplayString(itemAttr.name), 11, _hoisted_4$2);
116
116
  }), 128))
@@ -188,12 +188,10 @@ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
188
188
  const _component_nut_inputnumber = resolveComponent("nut-inputnumber");
189
189
  return openBlock(), createElementBlock("view", _hoisted_1$2, [
190
190
  createElementVNode("view", _hoisted_2$2, toDisplayString(_ctx.stepperTitle), 1),
191
- createTextVNode(),
192
191
  createElementVNode("view", {
193
192
  class: "nut-sku-stepper-limit",
194
193
  innerHTML: _ctx.getExtraText()
195
194
  }, null, 8, _hoisted_3$1),
196
- createTextVNode(),
197
195
  createElementVNode("view", _hoisted_4$1, [
198
196
  createVNode(_component_nut_inputnumber, {
199
197
  modelValue: _ctx.goodsCount,
@@ -271,9 +269,7 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
271
269
  class: "nut-sku-operate-desc",
272
270
  innerHTML: _ctx.btnExtraText
273
271
  }, null, 8, _hoisted_2$1)) : createCommentVNode("", true),
274
- createTextVNode(),
275
272
  renderSlot(_ctx.$slots, "operate-btn"),
276
- createTextVNode(),
277
273
  !_ctx.getSlots("operate-btn") ? (openBlock(), createElementBlock("view", _hoisted_3, [
278
274
  (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.btnOptions, (btn, i) => {
279
275
  return openBlock(), createElementBlock("view", {
@@ -289,10 +285,7 @@ var SkuOperate = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_rende
289
285
  const { componentName, create, translate } = createComponent("sku");
290
286
  const _sfc_main = create({
291
287
  props: {
292
- visible: {
293
- type: Boolean,
294
- default: false
295
- },
288
+ ...popupProps,
296
289
  sku: {
297
290
  type: Array,
298
291
  default: []
@@ -301,10 +294,6 @@ const _sfc_main = create({
301
294
  type: Object,
302
295
  default: {}
303
296
  },
304
- showSaleLimit: {
305
- type: Boolean,
306
- default: false
307
- },
308
297
  stepperMax: {
309
298
  type: [Number, String],
310
299
  default: 99999
@@ -313,14 +302,6 @@ const _sfc_main = create({
313
302
  type: [Number, String],
314
303
  default: 1
315
304
  },
316
- purchased: {
317
- type: [Number, String],
318
- default: 0
319
- },
320
- showSaleLowest: {
321
- type: Boolean,
322
- default: false
323
- },
324
305
  btnOptions: {
325
306
  type: Array,
326
307
  default: () => ["confirm"]
@@ -329,17 +310,13 @@ const _sfc_main = create({
329
310
  type: String,
330
311
  default: ""
331
312
  },
332
- saleLowestText: {
333
- type: [Function, Boolean],
334
- default: false
335
- },
336
- saleLimitText: {
313
+ stepperExtraText: {
337
314
  type: [Function, Boolean],
338
315
  default: false
339
316
  },
340
- purchasedText: {
341
- type: [Function, Boolean],
342
- default: false
317
+ btnExtraText: {
318
+ type: String,
319
+ default: ""
343
320
  },
344
321
  buyText: {
345
322
  type: String,
@@ -364,7 +341,8 @@ const _sfc_main = create({
364
341
  "close",
365
342
  "reduce",
366
343
  "add",
367
- "overLimit"
344
+ "overLimit",
345
+ "clickOverlay"
368
346
  ],
369
347
  components: {
370
348
  SkuHeader,
@@ -389,6 +367,8 @@ const _sfc_main = create({
389
367
  }
390
368
  }
391
369
  );
370
+ onMounted(() => {
371
+ });
392
372
  const getSlots = (name) => slots[name];
393
373
  const selectSku = (skus) => {
394
374
  emit("selectSku", skus);
@@ -458,12 +438,13 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
458
438
  onClickCloseIcon: _cache[1] || (_cache[1] = ($event) => _ctx.closePopup("icon")),
459
439
  onClickOverlay: _cache[2] || (_cache[2] = ($event) => _ctx.closePopup("overlay")),
460
440
  onClose: _cache[3] || (_cache[3] = ($event) => _ctx.closePopup("close")),
461
- style: { "height": "75%" }
441
+ style: { "height": "75%" },
442
+ isWrapTeleport: _ctx.isWrapTeleport,
443
+ teleport: _ctx.teleport
462
444
  }, {
463
445
  default: withCtx(() => [
464
446
  createElementVNode("view", _hoisted_1, [
465
447
  renderSlot(_ctx.$slots, "sku-header"),
466
- createTextVNode(),
467
448
  !_ctx.getSlots("sku-header") ? (openBlock(), createBlock(_component_sku_header, {
468
449
  key: 0,
469
450
  goods: _ctx.goods
@@ -483,55 +464,49 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
483
464
  key: "1"
484
465
  } : void 0
485
466
  ]), 1032, ["goods"])) : createCommentVNode("", true),
486
- createTextVNode(),
487
467
  createElementVNode("view", _hoisted_2, [
488
468
  renderSlot(_ctx.$slots, "sku-select-top"),
489
- createTextVNode(),
490
469
  renderSlot(_ctx.$slots, "sku-select"),
491
- createTextVNode(),
492
470
  !_ctx.getSlots("sku-select") ? (openBlock(), createBlock(_component_SkuSelect, {
493
471
  key: 0,
494
472
  sku: _ctx.sku,
495
473
  onSelectSku: _ctx.selectSku
496
474
  }, null, 8, ["sku", "onSelectSku"])) : createCommentVNode("", true),
497
- createTextVNode(),
498
475
  renderSlot(_ctx.$slots, "sku-stepper"),
499
- createTextVNode(),
500
476
  !_ctx.getSlots("sku-stepper") ? (openBlock(), createBlock(_component_sku_stepper, {
501
477
  key: 1,
502
478
  goods: _ctx.goods,
503
479
  stepperTitle: _ctx.stepperTitle || _ctx.translate("buyNumber"),
504
480
  stepperMax: _ctx.stepperMax,
505
481
  stepperMin: _ctx.stepperMin,
506
- purchased: _ctx.purchased,
507
- showSaleLimit: _ctx.showSaleLimit,
508
- showSaleLowest: _ctx.showSaleLowest,
509
- saleLowestText: _ctx.saleLowestText,
510
- saleLimitText: _ctx.saleLimitText,
511
- purchasedText: _ctx.purchasedText,
482
+ stepperExtraText: _ctx.stepperExtraText,
512
483
  onAdd: _ctx.add,
513
484
  onReduce: _ctx.reduce,
514
485
  onChangeStepper: _ctx.changeStepper,
515
486
  onOverLimit: _ctx.stepperOverLimit
516
- }, null, 8, ["goods", "stepperTitle", "stepperMax", "stepperMin", "purchased", "showSaleLimit", "showSaleLowest", "saleLowestText", "saleLimitText", "purchasedText", "onAdd", "onReduce", "onChangeStepper", "onOverLimit"])) : createCommentVNode("", true),
517
- createTextVNode(),
487
+ }, null, 8, ["goods", "stepperTitle", "stepperMax", "stepperMin", "stepperExtraText", "onAdd", "onReduce", "onChangeStepper", "onOverLimit"])) : createCommentVNode("", true),
518
488
  renderSlot(_ctx.$slots, "sku-stepper-bottom")
519
489
  ]),
520
- createTextVNode(),
521
- renderSlot(_ctx.$slots, "sku-operate"),
522
- createTextVNode(),
523
- !_ctx.getSlots("sku-operate") ? (openBlock(), createBlock(_component_sku_operate, {
524
- key: 1,
490
+ createVNode(_component_sku_operate, {
525
491
  btnOptions: _ctx.btnOptions,
492
+ btnExtraText: _ctx.btnExtraText,
526
493
  buyText: _ctx.buyText || _ctx.translate("buyNow"),
527
494
  addCartText: _ctx.addCartText || _ctx.translate("addToCart"),
528
495
  confirmText: _ctx.confirmText || _ctx.translate("confirm"),
529
496
  onClickBtnOperate: _ctx.clickBtnOperate
530
- }, null, 8, ["btnOptions", "buyText", "addCartText", "confirmText", "onClickBtnOperate"])) : createCommentVNode("", true)
497
+ }, createSlots({ _: 2 }, [
498
+ _ctx.getSlots("sku-operate") ? {
499
+ name: "operate-btn",
500
+ fn: withCtx(() => [
501
+ renderSlot(_ctx.$slots, "sku-operate")
502
+ ]),
503
+ key: "0"
504
+ } : void 0
505
+ ]), 1032, ["btnOptions", "btnExtraText", "buyText", "addCartText", "confirmText", "onClickBtnOperate"])
531
506
  ])
532
507
  ]),
533
508
  _: 3
534
- }, 8, ["visible"]);
509
+ }, 8, ["visible", "isWrapTeleport", "teleport"]);
535
510
  }
536
- var index_taro = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
537
- export { index_taro as default };
511
+ var index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
512
+ export { index as default };
@@ -1,9 +1,9 @@
1
1
  /*!
2
- * @nutui/nutui v3.2.6-beta.1 Mon Oct 31 2022 19:38:22 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.6 Fri Nov 04 2022 18:06:53 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
6
- import { getCurrentInstance, inject, reactive, computed, toRefs, resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, createTextVNode, createBlock, mergeProps, Fragment, toDisplayString, createCommentVNode, renderSlot } from "vue";
6
+ import { getCurrentInstance, inject, reactive, computed, toRefs, resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, createBlock, mergeProps, Fragment, toDisplayString, createCommentVNode, renderSlot } 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
  import "../locale/lang";
@@ -89,7 +89,6 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
89
89
  }, [
90
90
  createElementVNode("view", _hoisted_1, [
91
91
  _hoisted_2,
92
- createTextVNode(),
93
92
  createElementVNode("view", {
94
93
  class: normalizeClass(["nut-step-icon", [!_ctx.dot ? _ctx.icon ? "is-icon" : "is-text" : ""]])
95
94
  }, [
@@ -103,20 +102,16 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
103
102
  }), null, 16, ["color", "name", "size"])) : _ctx.dot ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [], 64)) : (openBlock(), createElementBlock("view", _hoisted_3, toDisplayString(_ctx.index), 1))
104
103
  ], 2)
105
104
  ]),
106
- createTextVNode(),
107
105
  createElementVNode("view", _hoisted_4, [
108
106
  createElementVNode("view", _hoisted_5, [
109
107
  !_ctx.$slots.title ? (openBlock(), createElementBlock("span", _hoisted_6, toDisplayString(_ctx.title), 1)) : createCommentVNode("", true),
110
- createTextVNode(),
111
108
  renderSlot(_ctx.$slots, "title")
112
109
  ]),
113
- createTextVNode(),
114
110
  _ctx.content || _ctx.$slots.content ? (openBlock(), createElementBlock("view", _hoisted_7, [
115
111
  !_ctx.$slots.content ? (openBlock(), createElementBlock("span", {
116
112
  key: 0,
117
113
  innerHTML: _ctx.content
118
114
  }, null, 8, _hoisted_8)) : createCommentVNode("", true),
119
- createTextVNode(),
120
115
  renderSlot(_ctx.$slots, "content")
121
116
  ])) : createCommentVNode("", true)
122
117
  ])
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.2.6-beta.1 Mon Oct 31 2022 19:38:22 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.6 Fri Nov 04 2022 18:06:53 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */