@nutui/nutui 4.0.0 → 4.0.1-2.beta-1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (285) hide show
  1. package/CHANGELOG.md +226 -0
  2. package/README.md +34 -65
  3. package/dist/nutui.es.js +10 -17
  4. package/dist/nutui.js +16202 -0
  5. package/dist/nutui.umd.js +1 -7
  6. package/dist/packages/_es/ActionSheet.js +79 -94
  7. package/dist/packages/_es/Address.js +260 -345
  8. package/dist/packages/_es/AddressList.js +269 -354
  9. package/dist/packages/_es/Animate.js +46 -38
  10. package/dist/packages/_es/Audio.js +128 -180
  11. package/dist/packages/_es/AudioOperate.js +60 -52
  12. package/dist/packages/_es/Avatar.js +67 -75
  13. package/dist/packages/_es/AvatarGroup.js +23 -31
  14. package/dist/packages/_es/Backtop.js +59 -99
  15. package/dist/packages/_es/Badge.js +39 -46
  16. package/dist/packages/_es/Barrage.js +68 -145
  17. package/dist/packages/_es/Button.js +47 -66
  18. package/dist/packages/_es/Calendar.js +135 -152
  19. package/dist/packages/_es/CalendarItem.js +6 -6
  20. package/dist/packages/_es/Card.js +42 -56
  21. package/dist/packages/_es/Cascader.js +323 -433
  22. package/dist/packages/_es/Category.js +29 -39
  23. package/dist/packages/_es/CategoryPane.js +57 -83
  24. package/dist/packages/_es/Cell.js +56 -71
  25. package/dist/packages/_es/CellGroup.js +19 -27
  26. package/dist/packages/_es/Checkbox.js +109 -138
  27. package/dist/packages/_es/CheckboxGroup.js +38 -61
  28. package/dist/packages/_es/CircleProgress.js +67 -96
  29. package/dist/packages/_es/Col.js +23 -31
  30. package/dist/packages/_es/Collapse.js +37 -67
  31. package/dist/packages/_es/CollapseItem.js +91 -184
  32. package/dist/packages/_es/Comment.js +207 -279
  33. package/dist/packages/_es/ConfigProvider.js +38 -56
  34. package/dist/packages/_es/Countdown.js +100 -194
  35. package/dist/packages/_es/Countup.js +232 -428
  36. package/dist/packages/_es/DatePicker.js +169 -245
  37. package/dist/packages/_es/Dialog.js +163 -188
  38. package/dist/packages/_es/Divider.js +42 -40
  39. package/dist/packages/_es/Drag.js +70 -153
  40. package/dist/packages/_es/Ecard.js +64 -104
  41. package/dist/packages/_es/Elevator.js +144 -201
  42. package/dist/packages/_es/Ellipsis.js +95 -159
  43. package/dist/packages/_es/Empty.js +23 -39
  44. package/dist/packages/_es/FixedNav.js +93 -116
  45. package/dist/packages/_es/Form.js +108 -164
  46. package/dist/packages/_es/FormItem.js +48 -61
  47. package/dist/packages/_es/Grid.js +5 -6
  48. package/dist/packages/_es/GridItem.js +58 -84
  49. package/dist/packages/_es/Image.js +98 -88
  50. package/dist/packages/_es/ImagePreview.js +262 -392
  51. package/dist/packages/_es/Indicator.js +30 -34
  52. package/dist/packages/_es/InfiniteLoading.js +83 -117
  53. package/dist/packages/_es/Input.js +176 -223
  54. package/dist/packages/_es/InputNumber.js +81 -117
  55. package/dist/packages/_es/Interceptor-6e26b757.js +18 -0
  56. package/dist/packages/_es/Invoice.js +105 -113
  57. package/dist/packages/_es/Layout.js +3 -4
  58. package/dist/packages/_es/List.js +147 -89
  59. package/dist/packages/_es/Menu.js +96 -152
  60. package/dist/packages/_es/MenuItem.js +117 -153
  61. package/dist/packages/_es/Navbar.js +103 -119
  62. package/dist/packages/_es/Noticebar.js +207 -273
  63. package/dist/packages/_es/Notify.js +110 -147
  64. package/dist/packages/_es/NumberKeyboard.js +127 -202
  65. package/dist/packages/_es/Overlay.js +53 -66
  66. package/dist/packages/_es/Pagination.js +70 -100
  67. package/dist/packages/_es/Picker.js +276 -425
  68. package/dist/packages/_es/Popover.js +122 -225
  69. package/dist/packages/_es/Popup.js +4 -4
  70. package/dist/packages/_es/Price.js +47 -80
  71. package/dist/packages/_es/Progress.js +63 -79
  72. package/dist/packages/_es/PullRefresh.js +96 -157
  73. package/dist/packages/_es/Radio.js +4 -4
  74. package/dist/packages/_es/RadioGroup.js +3 -3
  75. package/dist/packages/_es/Range.js +205 -329
  76. package/dist/packages/_es/Rate.js +93 -122
  77. package/dist/packages/_es/Row.js +21 -27
  78. package/dist/packages/_es/Searchbar.js +130 -160
  79. package/dist/packages/_es/ShortPassword.js +69 -93
  80. package/dist/packages/_es/SideNavbar.js +49 -59
  81. package/dist/packages/_es/SideNavbarItem.js +22 -32
  82. package/dist/packages/_es/Signature.js +83 -128
  83. package/dist/packages/_es/Skeleton.js +110 -130
  84. package/dist/packages/_es/Sku.js +251 -326
  85. package/dist/packages/_es/Step.js +60 -69
  86. package/dist/packages/_es/Steps.js +26 -31
  87. package/dist/packages/_es/Sticky.js +4 -4
  88. package/dist/packages/_es/SubSideNavbar.js +52 -56
  89. package/dist/packages/_es/Swipe.js +84 -137
  90. package/dist/packages/_es/Swiper.js +175 -310
  91. package/dist/packages/_es/SwiperItem.js +28 -44
  92. package/dist/packages/_es/Switch.js +55 -67
  93. package/dist/packages/_es/TabPane.js +32 -20
  94. package/dist/packages/_es/Tabbar.js +41 -52
  95. package/dist/packages/_es/TabbarItem.js +61 -81
  96. package/dist/packages/_es/Table.js +110 -148
  97. package/dist/packages/_es/Tabs.js +284 -205
  98. package/dist/packages/_es/Tag.js +44 -61
  99. package/dist/packages/_es/Textarea.js +80 -124
  100. package/dist/packages/_es/TimeDetail.js +49 -57
  101. package/dist/packages/_es/TimePannel.js +35 -31
  102. package/dist/packages/_es/TimeSelect.js +47 -68
  103. package/dist/packages/_es/Toast.js +150 -203
  104. package/dist/packages/_es/Tour.js +139 -175
  105. package/dist/packages/_es/TrendArrow.js +57 -58
  106. package/dist/packages/_es/Uploader.js +235 -359
  107. package/dist/packages/_es/Video.js +191 -298
  108. package/dist/packages/_es/Watermark.js +84 -98
  109. package/dist/packages/_es/_plugin-vue_export-helper-dad06003.js +9 -0
  110. package/dist/packages/_es/common-d218746f.js +116 -0
  111. package/dist/packages/_es/component-234624bc.js +89 -0
  112. package/dist/packages/_es/index-14dfadc4.js +561 -0
  113. package/dist/packages/_es/index-192a3ef6.js +29 -0
  114. package/dist/packages/_es/index-360c5092.js +210 -0
  115. package/dist/packages/_es/index-496e6e05.js +24 -0
  116. package/dist/packages/_es/index-50eed3d9.js +7 -0
  117. package/dist/packages/_es/index-53ec2d4d.js +34 -0
  118. package/dist/packages/_es/index-fadb0974.js +8 -0
  119. package/dist/packages/_es/index.vue_vue_type_script_lang-1139b29a.js +43 -0
  120. package/dist/packages/_es/index.vue_vue_type_script_lang-43b774dd.js +77 -0
  121. package/dist/packages/_es/index.vue_vue_type_script_lang-f44c159d.js +110 -0
  122. package/dist/packages/_es/mountComponent-6d4ff200.js +23 -0
  123. package/dist/packages/_es/pxCheck-38173291.js +4 -0
  124. package/dist/packages/_es/raf-a74f1a06.js +16 -0
  125. package/dist/packages/_es/renderIcon-47498b32.js +5 -0
  126. package/dist/packages/actionsheet/index.scss +2 -0
  127. package/dist/packages/actionsheet/style.mjs +0 -2
  128. package/dist/packages/address/index.scss +5 -2
  129. package/dist/packages/address/style.mjs +0 -3
  130. package/dist/packages/addresslist/index.scss +3 -0
  131. package/dist/packages/addresslist/style.mjs +0 -2
  132. package/dist/packages/audio/index.scss +2 -0
  133. package/dist/packages/audio/style.mjs +0 -1
  134. package/dist/packages/audiooperate/index.scss +2 -0
  135. package/dist/packages/audiooperate/style.mjs +0 -1
  136. package/dist/packages/badge/index.scss +3 -0
  137. package/dist/packages/button/index.scss +1 -1
  138. package/dist/packages/calendar/index.scss +3 -0
  139. package/dist/packages/calendar/style.mjs +0 -3
  140. package/dist/packages/card/index.scss +3 -0
  141. package/dist/packages/card/style.mjs +0 -2
  142. package/dist/packages/cascader/index.scss +4 -0
  143. package/dist/packages/cascader/style.mjs +0 -5
  144. package/dist/packages/cellgroup/index.scss +1 -1
  145. package/dist/packages/checkbox/index.scss +41 -0
  146. package/dist/packages/col/index.scss +2 -2
  147. package/dist/packages/comment/index.scss +2 -0
  148. package/dist/packages/comment/style.mjs +0 -1
  149. package/dist/packages/datepicker/index.scss +1 -2
  150. package/dist/packages/datepicker/style.mjs +0 -3
  151. package/dist/packages/dialog/index.scss +11 -0
  152. package/dist/packages/dialog/style.mjs +0 -3
  153. package/dist/packages/ecard/index.scss +2 -0
  154. package/dist/packages/ecard/style.mjs +0 -1
  155. package/dist/packages/fixednav/index.scss +2 -0
  156. package/dist/packages/fixednav/style.mjs +0 -1
  157. package/dist/packages/form/index.scss +1 -2
  158. package/dist/packages/form/style.mjs +0 -1
  159. package/dist/packages/formitem/index.scss +3 -0
  160. package/dist/packages/formitem/style.mjs +0 -1
  161. package/dist/packages/imagepreview/index.scss +5 -5
  162. package/dist/packages/imagepreview/style.mjs +0 -5
  163. package/dist/packages/input/index.scss +13 -13
  164. package/dist/packages/invoice/index.scss +6 -0
  165. package/dist/packages/invoice/style.mjs +0 -7
  166. package/dist/packages/list/index.scss +8 -8
  167. package/dist/packages/menuitem/index.scss +9 -10
  168. package/dist/packages/menuitem/style.mjs +0 -2
  169. package/dist/packages/navbar/index.scss +0 -1
  170. package/dist/packages/noticebar/index.scss +12 -2
  171. package/dist/packages/notify/index.scss +2 -0
  172. package/dist/packages/notify/style.mjs +0 -2
  173. package/dist/packages/numberkeyboard/index.scss +2 -0
  174. package/dist/packages/numberkeyboard/style.mjs +0 -2
  175. package/dist/packages/picker/index.scss +4 -9
  176. package/dist/packages/picker/style.mjs +0 -2
  177. package/dist/packages/popover/index.scss +2 -0
  178. package/dist/packages/popover/style.mjs +0 -2
  179. package/dist/packages/popup/index.scss +2 -0
  180. package/dist/packages/popup/style.mjs +0 -1
  181. package/dist/packages/price/index.scss +5 -10
  182. package/dist/packages/rate/index.scss +6 -9
  183. package/dist/packages/searchbar/index.scss +4 -0
  184. package/dist/packages/shortpassword/index.scss +18 -0
  185. package/dist/packages/shortpassword/style.mjs +0 -2
  186. package/dist/packages/signature/index.scss +2 -0
  187. package/dist/packages/signature/style.mjs +0 -1
  188. package/dist/packages/skeleton/index.scss +2 -0
  189. package/dist/packages/skeleton/style.mjs +0 -1
  190. package/dist/packages/sku/index.scss +4 -0
  191. package/dist/packages/sku/style.mjs +0 -4
  192. package/dist/packages/tabbaritem/index.scss +2 -0
  193. package/dist/packages/tabbaritem/style.mjs +0 -1
  194. package/dist/packages/tabs/index.scss +36 -2
  195. package/dist/packages/tabs/style.mjs +0 -1
  196. package/dist/packages/textarea/index.scss +2 -0
  197. package/dist/packages/timeselect/index.scss +2 -0
  198. package/dist/packages/timeselect/style.mjs +0 -2
  199. package/dist/packages/tour/index.scss +2 -0
  200. package/dist/packages/tour/style.mjs +0 -3
  201. package/dist/packages/uploader/index.scss +10 -2
  202. package/dist/packages/uploader/style.mjs +0 -2
  203. package/dist/resolver/index.d.ts +6 -0
  204. package/dist/resolver/index.js +1 -0
  205. package/dist/resolver/index.mjs +24 -0
  206. package/dist/resolver/package.json +20 -0
  207. package/dist/smartips/web-types.json +114 -15
  208. package/dist/style.css +1 -1
  209. package/dist/styles/themes/default.scss +155 -52
  210. package/dist/styles/themes/jdb.scss +155 -52
  211. package/dist/styles/themes/jddkh.scss +155 -52
  212. package/dist/styles/themes/jdt.scss +155 -52
  213. package/dist/styles/variables-jdb.scss +9 -1
  214. package/dist/styles/variables-jddkh.scss +9 -1
  215. package/dist/styles/variables-jdt.scss +9 -1
  216. package/dist/styles/variables.scss +8 -0
  217. package/dist/types/__VUE/address/index.vue.d.ts +2 -1
  218. package/dist/types/__VUE/addresslist/components/GeneralShell.vue.d.ts +1 -1
  219. package/dist/types/__VUE/addresslist/components/ItemContents.vue.d.ts +1 -1
  220. package/dist/types/__VUE/addresslist/index.vue.d.ts +1 -1
  221. package/dist/types/__VUE/animate/index.vue.d.ts +6 -0
  222. package/dist/types/__VUE/audiooperate/index.vue.d.ts +4 -4
  223. package/dist/types/__VUE/badge/index.vue.d.ts +9 -0
  224. package/dist/types/__VUE/button/type.d.ts +1 -0
  225. package/dist/types/__VUE/calendaritem/type.d.ts +1 -0
  226. package/dist/types/__VUE/collapse/index.vue.d.ts +31 -5
  227. package/dist/types/__VUE/collapseitem/index.vue.d.ts +117 -11
  228. package/dist/types/__VUE/configprovider/index.vue.d.ts +2 -2
  229. package/dist/types/__VUE/datepicker/index.vue.d.ts +1 -1
  230. package/dist/types/__VUE/dialog/index.d.ts +1 -0
  231. package/dist/types/__VUE/dialog/index.vue.d.ts +1 -0
  232. package/dist/types/__VUE/grid/index.vue.d.ts +1 -1
  233. package/dist/types/__VUE/image/index.vue.d.ts +14 -3
  234. package/dist/types/__VUE/imagepreview/imagePreviewItem.vue.d.ts +9 -0
  235. package/dist/types/__VUE/imagepreview/index.vue.d.ts +1 -1
  236. package/dist/types/__VUE/input/index.vue.d.ts +27 -2
  237. package/dist/types/__VUE/list/index.vue.d.ts +42 -13
  238. package/dist/types/__VUE/list/type.d.ts +13 -0
  239. package/dist/types/__VUE/menu/index.vue.d.ts +0 -2
  240. package/dist/types/__VUE/menuitem/index.vue.d.ts +9 -17
  241. package/dist/types/__VUE/navbar/index.vue.d.ts +1 -1
  242. package/dist/types/__VUE/noticebar/index.vue.d.ts +5 -2
  243. package/dist/types/__VUE/picker/common.d.ts +2 -0
  244. package/dist/types/__VUE/picker/usePicker.d.ts +1 -1
  245. package/dist/types/__VUE/price/index.vue.d.ts +9 -0
  246. package/dist/types/__VUE/rate/index.vue.d.ts +110 -3
  247. package/dist/types/__VUE/row/index.vue.d.ts +1 -1
  248. package/dist/types/__VUE/searchbar/index.vue.d.ts +121 -5
  249. package/dist/types/__VUE/skeleton/index.vue.d.ts +2 -2
  250. package/dist/types/__VUE/swiper/index.vue.d.ts +9 -2
  251. package/dist/types/__VUE/switch/index.vue.d.ts +1 -0
  252. package/dist/types/__VUE/table/common.d.ts +55 -2
  253. package/dist/types/__VUE/tabpane/index.vue.d.ts +1 -4
  254. package/dist/types/__VUE/tabs/hooks.d.ts +12 -0
  255. package/dist/types/__VUE/tabs/index.vue.d.ts +35 -5
  256. package/dist/types/__VUE/tabs/types.d.ts +12 -0
  257. package/dist/types/__VUE/timeselect/index.vue.d.ts +1 -1
  258. package/dist/types/__VUE/toast/index.vue.d.ts +11 -4
  259. package/dist/types/__VUE/uploader/type.d.ts +2 -1
  260. package/dist/types/__VUE/watermark/index.vue.d.ts +1 -1
  261. package/dist/types/index.d.ts +1 -2
  262. package/dist/types/resolver/index.d.ts +6 -0
  263. package/dist/types/utils/date.d.ts +4 -0
  264. package/dist/types/utils/useTaroRect/index.d.ts +1 -1
  265. package/dist/types/utils/util.d.ts +1 -1
  266. package/package.json +13 -6
  267. package/dist/packages/_es/_plugin-vue_export-helper-cc2b3d55.js +0 -10
  268. package/dist/packages/_es/common-b9a5e726.js +0 -145
  269. package/dist/packages/_es/component-81a4c1d0.js +0 -145
  270. package/dist/packages/_es/index-29892cda.js +0 -33
  271. package/dist/packages/_es/index-2ae3ae87.js +0 -846
  272. package/dist/packages/_es/index-43c34ac6.js +0 -30
  273. package/dist/packages/_es/index-54d03fc1.js +0 -8
  274. package/dist/packages/_es/index-79c5dc33.js +0 -10
  275. package/dist/packages/_es/index-7a7385e4.js +0 -67
  276. package/dist/packages/_es/index-991c279f.js +0 -244
  277. package/dist/packages/_es/index.vue_vue_type_script_lang-22dfc112.js +0 -46
  278. package/dist/packages/_es/index.vue_vue_type_script_lang-442e4704.js +0 -98
  279. package/dist/packages/_es/index.vue_vue_type_script_lang-cc5c4086.js +0 -151
  280. package/dist/packages/_es/interceptor-956b24fc.js +0 -29
  281. package/dist/packages/_es/mountComponent-1ece4110.js +0 -39
  282. package/dist/packages/_es/pxCheck-c6b9f6b7.js +0 -6
  283. package/dist/packages/_es/raf-729dad54.js +0 -25
  284. package/dist/packages/_es/renderIcon-3d0fd47c.js +0 -9
  285. /package/dist/types/utils/{interceptor.d.ts → Interceptor.d.ts} +0 -0
@@ -1,15 +1,26 @@
1
- import { resolveComponent, openBlock, createElementBlock, createElementVNode, renderSlot, createBlock, createCommentVNode, toDisplayString, ref, watch, onMounted, Fragment, renderList, normalizeClass, createVNode, withCtx, createSlots } from "vue";
2
- import Price from "./Price.js";
3
- import { c as createComponent, T as TypeOfFun } from "./component-81a4c1d0.js";
4
- import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
5
- import InputNumber from "./InputNumber.js";
6
- import { p as popupProps, P as Popup } from "./index-991c279f.js";
1
+ var H = Object.defineProperty, j = Object.defineProperties;
2
+ var U = Object.getOwnPropertyDescriptors;
3
+ var E = Object.getOwnPropertySymbols;
4
+ var z = Object.prototype.hasOwnProperty, q = Object.prototype.propertyIsEnumerable;
5
+ var M = (e, t, s) => t in e ? H(e, t, { enumerable: !0, configurable: !0, writable: !0, value: s }) : e[t] = s, P = (e, t) => {
6
+ for (var s in t || (t = {}))
7
+ z.call(t, s) && M(e, s, t[s]);
8
+ if (E)
9
+ for (var s of E(t))
10
+ q.call(t, s) && M(e, s, t[s]);
11
+ return e;
12
+ }, _ = (e, t) => j(e, U(t));
13
+ import { resolveComponent as f, openBlock as a, createElementBlock as i, createElementVNode as k, renderSlot as c, createBlock as S, createCommentVNode as m, toDisplayString as h, ref as C, watch as O, onMounted as N, Fragment as w, renderList as B, normalizeClass as A, createVNode as F, withCtx as T, createSlots as D } from "vue";
14
+ import L from "./Price.js";
15
+ import { c as v, T as G } from "./component-234624bc.js";
16
+ import { _ as y } from "./_plugin-vue_export-helper-dad06003.js";
17
+ import I from "./InputNumber.js";
18
+ import { p as J, P as V } from "./index-360c5092.js";
7
19
  import "../locale/lang";
8
- import "./pxCheck-c6b9f6b7.js";
20
+ import "./pxCheck-38173291.js";
9
21
  import "@nutui/icons-vue";
10
22
  import "./Overlay.js";
11
- const { componentName: componentName$4, create: create$4, translate: translate$1 } = createComponent("sku-header");
12
- const _sfc_main$4 = create$4({
23
+ const { componentName: ze, create: K, translate: Q } = v("sku-header"), W = K({
13
24
  props: {
14
25
  goods: {
15
26
  type: Object,
@@ -18,45 +29,38 @@ const _sfc_main$4 = create$4({
18
29
  },
19
30
  emits: [],
20
31
  components: {
21
- [Price.name]: Price
32
+ [L.name]: L
22
33
  },
23
- setup(props, { emit, slots }) {
24
- const getSlots = (name) => slots[name];
34
+ setup(e, { emit: t, slots: s }) {
25
35
  return {
26
- getSlots,
27
- translate: translate$1
36
+ getSlots: (p) => s[p],
37
+ translate: Q
28
38
  };
29
39
  }
30
- });
31
- const _hoisted_1$4 = { class: "nut-sku-header" };
32
- const _hoisted_2$4 = ["src"];
33
- const _hoisted_3$3 = { class: "nut-sku-header-right" };
34
- const _hoisted_4$3 = {
40
+ }), X = { class: "nut-sku-header" }, Y = ["src"], Z = { class: "nut-sku-header-right" }, ee = {
35
41
  key: 3,
36
42
  class: "nut-sku-header-right-extra"
37
43
  };
38
- function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
39
- const _component_nut_price = resolveComponent("nut-price");
40
- return openBlock(), createElementBlock("view", _hoisted_1$4, [
41
- createElementVNode("img", {
44
+ function te(e, t, s, u, p, d) {
45
+ const n = f("nut-price");
46
+ return a(), i("view", X, [
47
+ k("img", {
42
48
  class: "nut-sku-header-img",
43
- src: _ctx.goods.imagePath
44
- }, null, 8, _hoisted_2$4),
45
- createElementVNode("view", _hoisted_3$3, [
46
- _ctx.getSlots("sku-header-price") ? renderSlot(_ctx.$slots, "sku-header-price", { key: 0 }) : (openBlock(), createBlock(_component_nut_price, {
49
+ src: e.goods.imagePath
50
+ }, null, 8, Y),
51
+ k("view", Z, [
52
+ e.getSlots("sku-header-price") ? c(e.$slots, "sku-header-price", { key: 0 }) : (a(), S(n, {
47
53
  key: 1,
48
- price: _ctx.goods.price,
49
- needSymbol: true,
50
- thousands: false
54
+ price: e.goods.price,
55
+ needSymbol: !0,
56
+ thousands: !1
51
57
  }, null, 8, ["price"])),
52
- _ctx.getSlots("sku-header-extra") ? renderSlot(_ctx.$slots, "sku-header-extra", { key: 2 }) : createCommentVNode("", true),
53
- _ctx.goods.skuId && !_ctx.getSlots("sku-header-extra") ? (openBlock(), createElementBlock("view", _hoisted_4$3, toDisplayString(_ctx.translate("skuId")) + " : " + toDisplayString(_ctx.goods.skuId), 1)) : createCommentVNode("", true)
58
+ e.getSlots("sku-header-extra") ? c(e.$slots, "sku-header-extra", { key: 2 }) : m("", !0),
59
+ e.goods.skuId && !e.getSlots("sku-header-extra") ? (a(), i("view", ee, h(e.translate("skuId")) + " : " + h(e.goods.skuId), 1)) : m("", !0)
54
60
  ])
55
61
  ]);
56
62
  }
57
- const SkuHeader = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["render", _sfc_render$4]]);
58
- const { componentName: componentName$3, create: create$3 } = createComponent("sku-select");
59
- const _sfc_main$3 = create$3({
63
+ const se = /* @__PURE__ */ y(W, [["render", te]]), { componentName: qe, create: ne } = v("sku-select"), oe = ne({
60
64
  props: {
61
65
  sku: {
62
66
  type: Array,
@@ -64,65 +68,47 @@ const _sfc_main$3 = create$3({
64
68
  }
65
69
  },
66
70
  emits: ["selectSku"],
67
- setup(props, { emit }) {
68
- const skuInfo = ref([]);
69
- watch(
70
- () => props.sku,
71
- (value) => {
72
- skuInfo.value = [].slice.call(value);
71
+ setup(e, { emit: t }) {
72
+ const s = C([]);
73
+ return O(
74
+ () => e.sku,
75
+ (p) => {
76
+ s.value = [].slice.call(p);
73
77
  },
74
- { deep: true }
75
- );
76
- onMounted(() => {
77
- if (props.sku.length > 0) {
78
- skuInfo.value = [].slice.call(props.sku);
78
+ { deep: !0 }
79
+ ), N(() => {
80
+ e.sku.length > 0 && (s.value = [].slice.call(e.sku));
81
+ }), {
82
+ skuInfo: s,
83
+ changeSaleChild: (p, d, n, l) => {
84
+ p.checkFlag || p.disable || t("selectSku", {
85
+ sku: p,
86
+ skuIndex: d,
87
+ parentSku: n,
88
+ parentIndex: l
89
+ });
79
90
  }
80
- });
81
- const changeSaleChild = (attrItem, index2, parentItem, parentIndex) => {
82
- if (attrItem.checkFlag || attrItem.disable) {
83
- return;
84
- }
85
- emit("selectSku", {
86
- sku: attrItem,
87
- skuIndex: index2,
88
- parentSku: parentItem,
89
- parentIndex
90
- });
91
- };
92
- return {
93
- skuInfo,
94
- changeSaleChild
95
91
  };
96
92
  }
97
- });
98
- const _hoisted_1$3 = { class: "nut-sku-select" };
99
- const _hoisted_2$3 = { class: "nut-sku-select-item-title" };
100
- const _hoisted_3$2 = { class: "nut-sku-select-item-skus" };
101
- const _hoisted_4$2 = ["onClick"];
102
- function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
103
- return openBlock(), createElementBlock("view", _hoisted_1$3, [
104
- (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.skuInfo, (item, index2) => {
105
- return openBlock(), createElementBlock("view", {
106
- class: "nut-sku-select-item",
107
- key: item.id
108
- }, [
109
- createElementVNode("view", _hoisted_2$3, toDisplayString(item.name), 1),
110
- createElementVNode("view", _hoisted_3$2, [
111
- (openBlock(true), createElementBlock(Fragment, null, renderList(item.list, (itemAttr, itemAttrIndex) => {
112
- return openBlock(), createElementBlock("view", {
113
- class: normalizeClass(["nut-sku-select-item-skus-sku", [{ active: !itemAttr.disable && itemAttr.active }, { disable: itemAttr.disable }]]),
114
- onClick: ($event) => _ctx.changeSaleChild(itemAttr, itemAttrIndex, item, index2),
115
- key: itemAttr.name
116
- }, toDisplayString(itemAttr.name), 11, _hoisted_4$2);
117
- }), 128))
118
- ])
119
- ]);
120
- }), 128))
93
+ }), re = { class: "nut-sku-select" }, ae = { class: "nut-sku-select-item-title" }, pe = { class: "nut-sku-select-item-skus" }, ue = ["onClick"];
94
+ function le(e, t, s, u, p, d) {
95
+ return a(), i("view", re, [
96
+ (a(!0), i(w, null, B(e.skuInfo, (n, l) => (a(), i("view", {
97
+ class: "nut-sku-select-item",
98
+ key: n.id
99
+ }, [
100
+ k("view", ae, h(n.name), 1),
101
+ k("view", pe, [
102
+ (a(!0), i(w, null, B(n.list, (o, g) => (a(), i("view", {
103
+ class: A(["nut-sku-select-item-skus-sku", [{ active: !o.disable && o.active }, { disable: o.disable }]]),
104
+ onClick: (b) => e.changeSaleChild(o, g, n, l),
105
+ key: o.name
106
+ }, h(o.name), 11, ue))), 128))
107
+ ])
108
+ ]))), 128))
121
109
  ]);
122
110
  }
123
- const SkuSelect = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["render", _sfc_render$3]]);
124
- const { componentName: componentName$2, create: create$2 } = createComponent("sku-stepper");
125
- const _sfc_main$2 = create$2({
111
+ const ie = /* @__PURE__ */ y(oe, [["render", le]]), { componentName: Ge, create: ce } = v("sku-stepper"), de = ce({
126
112
  props: {
127
113
  // 购买数量最大值
128
114
  stepperMax: {
@@ -136,7 +122,7 @@ const _sfc_main$2 = create$2({
136
122
  // stepper 前文案提示
137
123
  stepperExtraText: {
138
124
  type: [Function, Boolean],
139
- default: false
125
+ default: !1
140
126
  },
141
127
  // 数量选择左侧文案
142
128
  stepperTitle: {
@@ -146,76 +132,59 @@ const _sfc_main$2 = create$2({
146
132
  },
147
133
  emits: ["click", "changeSku", "changeStepper", "clickBtnOptions", "overLimit", "reduce", "add"],
148
134
  components: {
149
- [InputNumber.name]: InputNumber
135
+ [I.name]: I
150
136
  },
151
- setup(props, { emit }) {
152
- const goodsCount = ref(props.stepperMin);
153
- onMounted(() => {
154
- goodsCount.value = props.stepperMin;
155
- });
156
- const getExtraText = () => {
157
- const { stepperExtraText } = props;
158
- if (stepperExtraText && TypeOfFun(stepperExtraText) == "function") {
159
- return stepperExtraText();
160
- } else {
161
- return "";
137
+ setup(e, { emit: t }) {
138
+ const s = C(e.stepperMin);
139
+ return N(() => {
140
+ s.value = e.stepperMin;
141
+ }), {
142
+ goodsCount: s,
143
+ add: (o) => {
144
+ t("add", o);
145
+ },
146
+ reduce: (o) => {
147
+ t("reduce", o);
148
+ },
149
+ overlimit: (o, g) => {
150
+ t("overLimit", {
151
+ action: g,
152
+ value: parseInt(s.value + "")
153
+ });
154
+ },
155
+ getExtraText: () => {
156
+ const { stepperExtraText: o } = e;
157
+ return o && G(o) == "function" ? o() : "";
158
+ },
159
+ changeStepper: (o) => {
160
+ s.value = o, t("changeStepper", o);
162
161
  }
163
162
  };
164
- const add = (value) => {
165
- emit("add", value);
166
- };
167
- const reduce = (value) => {
168
- emit("reduce", value);
169
- };
170
- const overlimit = (e, action) => {
171
- emit("overLimit", {
172
- action,
173
- value: parseInt(goodsCount.value + "")
174
- });
175
- };
176
- const changeStepper = (value) => {
177
- goodsCount.value = value;
178
- emit("changeStepper", value);
179
- };
180
- return {
181
- goodsCount,
182
- add,
183
- reduce,
184
- overlimit,
185
- getExtraText,
186
- changeStepper
187
- };
188
163
  }
189
- });
190
- const _hoisted_1$2 = { class: "nut-sku-stepper" };
191
- const _hoisted_2$2 = { class: "nut-sku-stepper-title" };
192
- const _hoisted_3$1 = ["innerHTML"];
193
- const _hoisted_4$1 = { class: "nut-sku-stepper-count" };
194
- function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
195
- const _component_nut_input_number = resolveComponent("nut-input-number");
196
- return openBlock(), createElementBlock("view", _hoisted_1$2, [
197
- createElementVNode("view", _hoisted_2$2, toDisplayString(_ctx.stepperTitle), 1),
198
- createElementVNode("view", {
164
+ }), ke = { class: "nut-sku-stepper" }, me = { class: "nut-sku-stepper-title" }, ge = ["innerHTML"], fe = { class: "nut-sku-stepper-count" };
165
+ function he(e, t, s, u, p, d) {
166
+ const n = f("nut-input-number");
167
+ return a(), i("view", ke, [
168
+ k("view", me, h(e.stepperTitle), 1),
169
+ k("view", {
199
170
  class: "nut-sku-stepper-limit",
200
- innerHTML: _ctx.getExtraText()
201
- }, null, 8, _hoisted_3$1),
202
- createElementVNode("view", _hoisted_4$1, [
203
- createVNode(_component_nut_input_number, {
204
- modelValue: _ctx.goodsCount,
205
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.goodsCount = $event),
206
- min: _ctx.stepperMin,
207
- max: _ctx.stepperMax,
208
- onAdd: _ctx.add,
209
- onReduce: _ctx.reduce,
210
- onOverlimit: _ctx.overlimit,
211
- onChange: _ctx.changeStepper
171
+ innerHTML: e.getExtraText()
172
+ }, null, 8, ge),
173
+ k("view", fe, [
174
+ F(n, {
175
+ modelValue: e.goodsCount,
176
+ "onUpdate:modelValue": t[0] || (t[0] = (l) => e.goodsCount = l),
177
+ min: e.stepperMin,
178
+ max: e.stepperMax,
179
+ onAdd: e.add,
180
+ onReduce: e.reduce,
181
+ onOverlimit: e.overlimit,
182
+ onChange: e.changeStepper
212
183
  }, null, 8, ["modelValue", "min", "max", "onAdd", "onReduce", "onOverlimit", "onChange"])
213
184
  ])
214
185
  ]);
215
186
  }
216
- const SkuStepper = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["render", _sfc_render$2]]);
217
- const { componentName: componentName$1, create: create$1 } = createComponent("sku-operate");
218
- const _sfc_main$1 = create$1({
187
+ const $e = /* @__PURE__ */ y(de, [["render", he]]), { componentName: Je, create: Se } = v("sku-operate"), ve = Se({
219
188
  props: {
220
189
  // 底部按钮配置 confirm cart buy
221
190
  btnOptions: {
@@ -242,59 +211,44 @@ const _sfc_main$1 = create$1({
242
211
  }
243
212
  },
244
213
  emits: ["click", "changeSku", "changeBuyCount", "clickBtnOperate"],
245
- setup(props, { emit, slots }) {
246
- const getBtnDesc = (type) => {
247
- let mapD = {
248
- confirm: props.confirmText,
249
- cart: props.addCartText,
250
- buy: props.buyText
251
- };
252
- return mapD[type];
253
- };
254
- const getSlots = (name) => slots[name];
255
- const clickBtnOperate = (btn) => {
256
- emit("clickBtnOperate", btn);
257
- };
214
+ setup(e, { emit: t, slots: s }) {
258
215
  return {
259
- getBtnDesc,
260
- clickBtnOperate,
261
- getSlots
216
+ getBtnDesc: (n) => ({
217
+ confirm: e.confirmText,
218
+ cart: e.addCartText,
219
+ buy: e.buyText
220
+ })[n],
221
+ clickBtnOperate: (n) => {
222
+ t("clickBtnOperate", n);
223
+ },
224
+ getSlots: (n) => s[n]
262
225
  };
263
226
  }
264
- });
265
- const _hoisted_1$1 = {
227
+ }), ye = {
266
228
  key: 0,
267
229
  class: "nut-sku-operate"
268
- };
269
- const _hoisted_2$1 = {
230
+ }, be = {
270
231
  key: 0,
271
232
  class: "nut-sku-operate-desc"
272
- };
273
- const _hoisted_3 = {
233
+ }, Te = {
274
234
  key: 1,
275
235
  class: "nut-sku-operate-btn"
276
- };
277
- const _hoisted_4 = ["onClick"];
278
- function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
279
- return _ctx.btnOptions.length > 0 ? (openBlock(), createElementBlock("view", _hoisted_1$1, [
280
- _ctx.btnExtraText ? (openBlock(), createElementBlock("view", _hoisted_2$1, toDisplayString(_ctx.btnExtraText), 1)) : createCommentVNode("", true),
281
- renderSlot(_ctx.$slots, "operate-btn"),
282
- !_ctx.getSlots("operate-btn") ? (openBlock(), createElementBlock("view", _hoisted_3, [
283
- (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.btnOptions, (btn, i) => {
284
- return openBlock(), createElementBlock("view", {
285
- class: normalizeClass([`nut-sku-operate-btn-${btn}`, "nut-sku-operate-btn-item"]),
286
- key: i,
287
- onClick: ($event) => _ctx.clickBtnOperate(btn)
288
- }, toDisplayString(_ctx.getBtnDesc(btn)), 11, _hoisted_4);
289
- }), 128))
290
- ])) : createCommentVNode("", true)
291
- ])) : createCommentVNode("", true);
236
+ }, Ce = ["onClick"];
237
+ function Oe(e, t, s, u, p, d) {
238
+ return e.btnOptions.length > 0 ? (a(), i("view", ye, [
239
+ e.btnExtraText ? (a(), i("view", be, h(e.btnExtraText), 1)) : m("", !0),
240
+ c(e.$slots, "operate-btn"),
241
+ e.getSlots("operate-btn") ? m("", !0) : (a(), i("view", Te, [
242
+ (a(!0), i(w, null, B(e.btnOptions, (n, l) => (a(), i("view", {
243
+ class: A([`nut-sku-operate-btn-${n}`, "nut-sku-operate-btn-item"]),
244
+ key: l,
245
+ onClick: (o) => e.clickBtnOperate(n)
246
+ }, h(e.getBtnDesc(n)), 11, Ce))), 128))
247
+ ]))
248
+ ])) : m("", !0);
292
249
  }
293
- const SkuOperate = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render$1]]);
294
- const { componentName, create, translate } = createComponent("sku");
295
- const _sfc_main = create({
296
- props: {
297
- ...popupProps,
250
+ const we = /* @__PURE__ */ y(ve, [["render", Oe]]), { componentName: Ke, create: Be, translate: Ne } = v("sku"), Ee = Be({
251
+ props: _(P({}, J), {
298
252
  sku: {
299
253
  type: Array,
300
254
  default: []
@@ -326,7 +280,7 @@ const _sfc_main = create({
326
280
  // stepper 前面文案
327
281
  stepperExtraText: {
328
282
  type: [Function, Boolean],
329
- default: false
283
+ default: !1
330
284
  },
331
285
  btnExtraText: {
332
286
  type: String,
@@ -347,7 +301,7 @@ const _sfc_main = create({
347
301
  type: String,
348
302
  default: ""
349
303
  }
350
- },
304
+ }),
351
305
  emits: [
352
306
  "update:visible",
353
307
  "select-sku",
@@ -361,161 +315,132 @@ const _sfc_main = create({
361
315
  "over-limit"
362
316
  ],
363
317
  components: {
364
- SkuHeader,
365
- SkuSelect,
366
- SkuStepper,
367
- SkuOperate,
368
- [Popup.name]: Popup
318
+ SkuHeader: se,
319
+ SkuSelect: ie,
320
+ SkuStepper: $e,
321
+ SkuOperate: we,
322
+ [V.name]: V
369
323
  },
370
- setup(props, { emit, slots }) {
371
- const showPopup = ref(props.visible);
372
- const goodsCount = ref(props.stepperMin);
373
- watch(
374
- () => props.visible,
375
- (value) => {
376
- showPopup.value = value;
324
+ setup(e, { emit: t, slots: s }) {
325
+ const u = C(e.visible), p = C(e.stepperMin);
326
+ O(
327
+ () => e.visible,
328
+ (r) => {
329
+ u.value = r;
377
330
  }
378
- );
379
- watch(
380
- () => showPopup.value,
381
- (value) => {
382
- if (value == false) {
383
- close();
384
- }
331
+ ), O(
332
+ () => u.value,
333
+ (r) => {
334
+ r == !1 && R();
385
335
  }
386
- );
387
- onMounted(() => {
336
+ ), N(() => {
388
337
  });
389
- const getSlots = (name) => slots[name];
390
- const selectSku = (skus) => {
391
- emit("select-sku", skus);
392
- };
393
- const changeStepper = (value) => {
394
- goodsCount.value = value;
395
- emit("change-stepper", value);
396
- };
397
- const add = (value) => {
398
- emit("add", value);
399
- };
400
- const reduce = (value) => {
401
- emit("reduce", value);
402
- };
403
- const stepperOverLimit = (count) => {
404
- emit("over-limit", count);
405
- };
406
- const clickBtnOperate = (btn) => {
407
- emit("click-btn-operate", {
408
- type: btn,
409
- value: goodsCount.value
338
+ const d = (r) => s[r], n = (r) => {
339
+ t("select-sku", r);
340
+ }, l = (r) => {
341
+ p.value = r, t("change-stepper", r);
342
+ }, o = (r) => {
343
+ t("add", r);
344
+ }, g = (r) => {
345
+ t("reduce", r);
346
+ }, b = (r) => {
347
+ t("over-limit", r);
348
+ }, $ = (r) => {
349
+ t("click-btn-operate", {
350
+ type: r,
351
+ value: p.value
410
352
  });
411
- };
412
- const closePopup = (type) => {
413
- if (type == "icon") {
414
- emit("click-close-icon");
415
- }
416
- if (type == "overlay") {
417
- emit("click-overlay");
418
- }
419
- if (type == "close") {
420
- emit("close");
421
- }
422
- showPopup.value = false;
423
- };
424
- const close = () => {
425
- emit("update:visible", false);
353
+ }, x = (r) => {
354
+ r == "icon" && t("click-close-icon"), r == "overlay" && t("click-overlay"), r == "close" && t("close"), u.value = !1;
355
+ }, R = () => {
356
+ t("update:visible", !1);
426
357
  };
427
358
  return {
428
- showPopup,
429
- closePopup,
430
- selectSku,
431
- changeStepper,
432
- stepperOverLimit,
433
- clickBtnOperate,
434
- add,
435
- reduce,
436
- getSlots,
437
- translate
359
+ showPopup: u,
360
+ closePopup: x,
361
+ selectSku: n,
362
+ changeStepper: l,
363
+ stepperOverLimit: b,
364
+ clickBtnOperate: $,
365
+ add: o,
366
+ reduce: g,
367
+ getSlots: d,
368
+ translate: Ne
438
369
  };
439
370
  }
440
- });
441
- const _hoisted_1 = { class: "nut-sku" };
442
- const _hoisted_2 = { class: "nut-sku-content" };
443
- function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
444
- const _component_sku_header = resolveComponent("sku-header");
445
- const _component_SkuSelect = resolveComponent("SkuSelect");
446
- const _component_sku_stepper = resolveComponent("sku-stepper");
447
- const _component_sku_operate = resolveComponent("sku-operate");
448
- const _component_nut_popup = resolveComponent("nut-popup");
449
- return openBlock(), createBlock(_component_nut_popup, {
371
+ }), Me = { class: "nut-sku" }, Pe = { class: "nut-sku-content" };
372
+ function _e(e, t, s, u, p, d) {
373
+ const n = f("sku-header"), l = f("SkuSelect"), o = f("sku-stepper"), g = f("sku-operate"), b = f("nut-popup");
374
+ return a(), S(b, {
450
375
  position: "bottom",
451
376
  closeable: "",
452
377
  round: "",
453
- visible: _ctx.showPopup,
454
- "onUpdate:visible": _cache[0] || (_cache[0] = ($event) => _ctx.showPopup = $event),
455
- onClickCloseIcon: _cache[1] || (_cache[1] = ($event) => _ctx.closePopup("icon")),
456
- onClickOverlay: _cache[2] || (_cache[2] = ($event) => _ctx.closePopup("overlay")),
457
- onClose: _cache[3] || (_cache[3] = ($event) => _ctx.closePopup("close")),
458
- style: { "height": "75%" },
459
- teleportDisable: _ctx.teleportDisable,
460
- teleport: _ctx.teleport
378
+ visible: e.showPopup,
379
+ "onUpdate:visible": t[0] || (t[0] = ($) => e.showPopup = $),
380
+ onClickCloseIcon: t[1] || (t[1] = ($) => e.closePopup("icon")),
381
+ onClickOverlay: t[2] || (t[2] = ($) => e.closePopup("overlay")),
382
+ onClose: t[3] || (t[3] = ($) => e.closePopup("close")),
383
+ style: { height: "75%" },
384
+ teleportDisable: e.teleportDisable,
385
+ teleport: e.teleport
461
386
  }, {
462
- default: withCtx(() => [
463
- createElementVNode("view", _hoisted_1, [
464
- renderSlot(_ctx.$slots, "sku-header"),
465
- !_ctx.getSlots("sku-header") ? (openBlock(), createBlock(_component_sku_header, {
387
+ default: T(() => [
388
+ k("view", Me, [
389
+ c(e.$slots, "sku-header"),
390
+ e.getSlots("sku-header") ? m("", !0) : (a(), S(n, {
466
391
  key: 0,
467
- goods: _ctx.goods
468
- }, createSlots({ _: 2 }, [
469
- _ctx.getSlots("sku-header-price") ? {
392
+ goods: e.goods
393
+ }, D({ _: 2 }, [
394
+ e.getSlots("sku-header-price") ? {
470
395
  name: "sku-header-price",
471
- fn: withCtx(() => [
472
- renderSlot(_ctx.$slots, "sku-header-price")
396
+ fn: T(() => [
397
+ c(e.$slots, "sku-header-price")
473
398
  ]),
474
399
  key: "0"
475
400
  } : void 0,
476
- _ctx.getSlots("sku-header-extra") ? {
401
+ e.getSlots("sku-header-extra") ? {
477
402
  name: "sku-header-extra",
478
- fn: withCtx(() => [
479
- renderSlot(_ctx.$slots, "sku-header-extra")
403
+ fn: T(() => [
404
+ c(e.$slots, "sku-header-extra")
480
405
  ]),
481
406
  key: "1"
482
407
  } : void 0
483
- ]), 1032, ["goods"])) : createCommentVNode("", true),
484
- createElementVNode("view", _hoisted_2, [
485
- renderSlot(_ctx.$slots, "sku-select-top"),
486
- renderSlot(_ctx.$slots, "sku-select"),
487
- !_ctx.getSlots("sku-select") ? (openBlock(), createBlock(_component_SkuSelect, {
408
+ ]), 1032, ["goods"])),
409
+ k("view", Pe, [
410
+ c(e.$slots, "sku-select-top"),
411
+ c(e.$slots, "sku-select"),
412
+ e.getSlots("sku-select") ? m("", !0) : (a(), S(l, {
488
413
  key: 0,
489
- sku: _ctx.sku,
490
- onSelectSku: _ctx.selectSku
491
- }, null, 8, ["sku", "onSelectSku"])) : createCommentVNode("", true),
492
- renderSlot(_ctx.$slots, "sku-stepper"),
493
- !_ctx.getSlots("sku-stepper") ? (openBlock(), createBlock(_component_sku_stepper, {
414
+ sku: e.sku,
415
+ onSelectSku: e.selectSku
416
+ }, null, 8, ["sku", "onSelectSku"])),
417
+ c(e.$slots, "sku-stepper"),
418
+ e.getSlots("sku-stepper") ? m("", !0) : (a(), S(o, {
494
419
  key: 1,
495
- goods: _ctx.goods,
496
- stepperTitle: _ctx.stepperTitle || _ctx.translate("buyNumber"),
497
- stepperMax: _ctx.stepperMax,
498
- stepperMin: _ctx.stepperMin,
499
- stepperExtraText: _ctx.stepperExtraText,
500
- onAdd: _ctx.add,
501
- onReduce: _ctx.reduce,
502
- onChangeStepper: _ctx.changeStepper,
503
- onOverLimit: _ctx.stepperOverLimit
504
- }, null, 8, ["goods", "stepperTitle", "stepperMax", "stepperMin", "stepperExtraText", "onAdd", "onReduce", "onChangeStepper", "onOverLimit"])) : createCommentVNode("", true),
505
- renderSlot(_ctx.$slots, "sku-stepper-bottom")
420
+ goods: e.goods,
421
+ stepperTitle: e.stepperTitle || e.translate("buyNumber"),
422
+ stepperMax: e.stepperMax,
423
+ stepperMin: e.stepperMin,
424
+ stepperExtraText: e.stepperExtraText,
425
+ onAdd: e.add,
426
+ onReduce: e.reduce,
427
+ onChangeStepper: e.changeStepper,
428
+ onOverLimit: e.stepperOverLimit
429
+ }, null, 8, ["goods", "stepperTitle", "stepperMax", "stepperMin", "stepperExtraText", "onAdd", "onReduce", "onChangeStepper", "onOverLimit"])),
430
+ c(e.$slots, "sku-stepper-bottom")
506
431
  ]),
507
- createVNode(_component_sku_operate, {
508
- btnOptions: _ctx.btnOptions,
509
- btnExtraText: _ctx.btnExtraText,
510
- buyText: _ctx.buyText || _ctx.translate("buyNow"),
511
- addCartText: _ctx.addCartText || _ctx.translate("addToCart"),
512
- confirmText: _ctx.confirmText || _ctx.translate("confirm"),
513
- onClickBtnOperate: _ctx.clickBtnOperate
514
- }, createSlots({ _: 2 }, [
515
- _ctx.getSlots("sku-operate") ? {
432
+ F(g, {
433
+ btnOptions: e.btnOptions,
434
+ btnExtraText: e.btnExtraText,
435
+ buyText: e.buyText || e.translate("buyNow"),
436
+ addCartText: e.addCartText || e.translate("addToCart"),
437
+ confirmText: e.confirmText || e.translate("confirm"),
438
+ onClickBtnOperate: e.clickBtnOperate
439
+ }, D({ _: 2 }, [
440
+ e.getSlots("sku-operate") ? {
516
441
  name: "operate-btn",
517
- fn: withCtx(() => [
518
- renderSlot(_ctx.$slots, "sku-operate")
442
+ fn: T(() => [
443
+ c(e.$slots, "sku-operate")
519
444
  ]),
520
445
  key: "0"
521
446
  } : void 0
@@ -525,7 +450,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
525
450
  _: 3
526
451
  }, 8, ["visible", "teleportDisable", "teleport"]);
527
452
  }
528
- const index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
453
+ const Qe = /* @__PURE__ */ y(Ee, [["render", _e]]);
529
454
  export {
530
- index as default
455
+ Qe as default
531
456
  };