@nutui/nutui 3.1.19-beta.1 → 3.1.19-beta.4
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.
- package/README.md +9 -8
- package/dist/nutui.es.js +3044 -3533
- package/dist/nutui.umd.js +3135 -3536
- package/dist/packages/_es/ActionSheet.js +64 -42
- package/dist/packages/_es/Address.js +69 -78
- package/dist/packages/_es/Audio.js +12 -12
- package/dist/packages/_es/AudioOperate.js +1 -1
- package/dist/packages/_es/Avatar.js +3 -3
- package/dist/packages/_es/BackTop.js +110 -68
- package/dist/packages/_es/Badge.js +3 -3
- package/dist/packages/_es/Barrage.js +55 -62
- package/dist/packages/_es/Button.js +2 -2
- package/dist/packages/_es/Calendar.js +27 -32
- package/dist/packages/_es/CalendarItem.js +3 -3
- package/dist/packages/_es/Card.js +5 -6
- package/dist/packages/_es/Cascader.js +9 -9
- package/dist/packages/_es/Cell.js +11 -4
- package/dist/packages/_es/CellGroup.js +1 -1
- package/dist/packages/_es/Checkbox.js +13 -3
- package/dist/packages/_es/CheckboxGroup.js +2 -2
- package/dist/packages/_es/CircleProgress.js +40 -149
- package/dist/packages/_es/Col.js +1 -1
- package/dist/packages/_es/Collapse.js +8 -34
- package/dist/packages/_es/CollapseItem.js +59 -90
- package/dist/packages/_es/CountDown.js +11 -10
- package/dist/packages/_es/CountUp.js +51 -43
- package/dist/packages/_es/DatePicker.js +22 -23
- package/dist/packages/_es/Dialog.js +91 -12
- package/dist/packages/_es/Divider.js +4 -4
- package/dist/packages/_es/Drag.js +54 -92
- package/dist/packages/_es/Ecard.js +153 -0
- package/dist/packages/_es/Elevator.js +50 -75
- package/dist/packages/_es/Empty.js +8 -7
- package/dist/packages/_es/FixedNav.js +10 -11
- package/dist/packages/_es/Form.js +5 -9
- package/dist/packages/_es/FormItem.js +1 -1
- package/dist/packages/_es/Grid.js +1 -1
- package/dist/packages/_es/GridItem.js +26 -8
- package/dist/packages/_es/Icon.js +1 -1
- package/dist/packages/_es/ImagePreview.js +83 -14
- package/dist/packages/_es/Indicator.js +3 -3
- package/dist/packages/_es/InfiniteLoading.js +107 -93
- package/dist/packages/_es/Input.js +21 -20
- package/dist/packages/_es/InputNumber.js +16 -23
- package/dist/packages/_es/Layout.js +1 -1
- package/dist/packages/_es/List.js +34 -41
- package/dist/packages/_es/Menu.js +12 -15
- package/dist/packages/_es/MenuItem.js +7 -7
- package/dist/packages/_es/Navbar.js +5 -4
- package/dist/packages/_es/NoticeBar.js +40 -47
- package/dist/packages/_es/Notify.js +166 -27
- package/dist/packages/_es/NumberKeyboard.js +22 -11
- package/dist/packages/_es/OldPicker.js +120 -122
- package/dist/packages/_es/OverLay.js +25 -5
- package/dist/packages/_es/Pagination.js +14 -13
- package/dist/packages/_es/Picker.js +23 -45
- package/dist/packages/_es/Popover.js +29 -154
- package/dist/packages/_es/Popup.js +69 -6
- package/dist/packages/_es/Price.js +5 -17
- package/dist/packages/_es/Progress.js +23 -19
- package/dist/packages/_es/PullRefresh.js +1 -1
- package/dist/packages/_es/Radio.js +14 -4
- package/dist/packages/_es/RadioGroup.js +1 -1
- package/dist/packages/_es/Range.js +33 -46
- package/dist/packages/_es/Rate.js +19 -16
- package/dist/packages/_es/Row.js +1 -1
- package/dist/packages/_es/SearchBar.js +11 -12
- package/dist/packages/_es/ShortPassword.js +75 -96
- package/dist/packages/_es/SideNavBar.js +16 -5
- package/dist/packages/_es/SideNavBarItem.js +1 -1
- package/dist/packages/_es/Signature.js +88 -69
- package/dist/packages/_es/Skeleton.js +11 -8
- package/dist/packages/_es/Sku.js +57 -49
- package/dist/packages/_es/Step.js +1 -1
- package/dist/packages/_es/Steps.js +1 -1
- package/dist/packages/_es/Sticky.js +23 -28
- package/dist/packages/_es/SubSideNavBar.js +1 -1
- package/dist/packages/_es/Swipe.js +26 -39
- package/dist/packages/_es/Swiper.js +14 -32
- package/dist/packages/_es/SwiperItem.js +2 -2
- package/dist/packages/_es/Switch.js +3 -3
- package/dist/packages/_es/TabPane.js +1 -1
- package/dist/packages/_es/Tabbar.js +3 -3
- package/dist/packages/_es/TabbarItem.js +21 -11
- package/dist/packages/_es/Table.js +18 -17
- package/dist/packages/_es/Tabs.js +20 -21
- package/dist/packages/_es/Tag.js +4 -4
- package/dist/packages/_es/TextArea.js +47 -48
- package/dist/packages/_es/TimeDetail.js +3 -4
- package/dist/packages/_es/TimePannel.js +3 -3
- package/dist/packages/_es/TimeSelect.js +7 -8
- package/dist/packages/_es/Toast.js +170 -41
- package/dist/packages/_es/Uploader.js +145 -116
- package/dist/packages/_es/Video.js +9 -8
- package/dist/packages/_es/common.js +1 -1
- package/dist/packages/_es/component.js +165 -3
- package/dist/packages/_es/index.js +6 -44
- package/dist/packages/_es/index2.js +31 -8
- package/dist/packages/_es/index3.js +7 -58
- package/dist/packages/_es/index4.js +56 -413
- package/dist/packages/_es/{index.taro.js → index5.js} +113 -140
- package/dist/packages/_es/plugin-vue_export-helper.js +1 -1
- package/dist/packages/_es/pxCheck.js +1 -1
- package/dist/packages/_es/raf.js +19 -0
- package/dist/packages/actionsheet/index.scss +8 -0
- package/dist/packages/ecard/index.scss +83 -0
- package/dist/style.css +1 -1
- package/dist/styles/themes/default.scss +48 -47
- package/dist/styles/themes/jdt.scss +48 -47
- package/dist/styles/variables-jdt.scss +3 -0
- package/dist/styles/variables.scss +3 -0
- package/dist/types/__VUE/actionsheet/index.d.ts +280 -0
- package/dist/types/__VUE/address/index.d.ts +386 -0
- package/dist/types/__VUE/audio/index.d.ts +92 -0
- package/dist/types/__VUE/audiooperate/index.d.ts +68 -0
- package/dist/types/__VUE/avatar/index.d.ts +66 -0
- package/dist/types/__VUE/backtop/index.d.ts +105 -0
- package/dist/types/__VUE/badge/index.d.ts +94 -0
- package/dist/types/__VUE/barrage/index.d.ts +80 -0
- package/dist/types/__VUE/button/index.d.ts +116 -0
- package/dist/types/__VUE/calendar/index.d.ts +155 -0
- package/dist/types/__VUE/calendaritem/index.d.ts +195 -0
- package/dist/types/__VUE/card/index.d.ts +81 -0
- package/dist/types/__VUE/cascader/cascader-item.d.ts +76 -0
- package/dist/types/__VUE/cascader/helper.d.ts +8 -0
- package/dist/types/__VUE/cascader/index.d.ts +76 -0
- package/dist/types/__VUE/cascader/tree.d.ts +17 -0
- package/dist/types/__VUE/cascader/types.d.ts +30 -0
- package/dist/types/__VUE/cell/index.d.ts +109 -0
- package/dist/types/__VUE/cellgroup/index.d.ts +38 -0
- package/dist/types/__VUE/checkbox/index.d.ts +102 -0
- package/dist/types/__VUE/checkboxgroup/index.d.ts +39 -0
- package/dist/types/__VUE/circleprogress/index.d.ts +66 -0
- package/dist/types/__VUE/col/index.d.ts +42 -0
- package/dist/types/__VUE/collapse/index.d.ts +104 -0
- package/dist/types/__VUE/collapseitem/index.d.ts +83 -0
- package/dist/types/__VUE/countdown/index.d.ts +91 -0
- package/dist/types/__VUE/countup/index.d.ts +216 -0
- package/dist/types/__VUE/datepicker/index.d.ts +347 -0
- package/dist/types/__VUE/datepicker/utils.d.ts +5 -0
- package/dist/types/__VUE/dialog/index.d.ts +306 -0
- package/dist/types/__VUE/divider/index.d.ts +47 -0
- package/dist/types/__VUE/drag/index.d.ts +61 -0
- package/dist/types/__VUE/ecard/index.d.ts +123 -0
- package/dist/types/__VUE/elevator/index.d.ts +71 -0
- package/dist/types/__VUE/empty/index.d.ts +47 -0
- package/dist/types/__VUE/fixednav/index.d.ts +96 -0
- package/dist/types/__VUE/form/common.d.ts +20 -0
- package/dist/types/__VUE/form/index.d.ts +32 -0
- package/dist/types/__VUE/form/types.d.ts +13 -0
- package/dist/types/__VUE/formitem/index.d.ts +120 -0
- package/dist/types/__VUE/formitem/types.d.ts +10 -0
- package/dist/types/__VUE/grid/common.d.ts +91 -0
- package/dist/types/__VUE/grid/index.d.ts +100 -0
- package/dist/types/__VUE/griditem/index.d.ts +80 -0
- package/dist/types/__VUE/icon/index.d.ts +74 -0
- package/dist/types/__VUE/imagepreview/index.d.ts +125 -0
- package/dist/types/__VUE/indicator/index.d.ts +70 -0
- package/dist/types/__VUE/infiniteloading/index.d.ts +140 -0
- package/dist/types/__VUE/input/index.d.ts +337 -0
- package/dist/types/__VUE/input/util.d.ts +5 -0
- package/dist/types/__VUE/inputnumber/index.d.ts +117 -0
- package/dist/types/__VUE/layout/index.d.ts +13 -0
- package/dist/types/__VUE/list/index.d.ts +48 -0
- package/dist/types/__VUE/menu/index.d.ts +51 -0
- package/dist/types/__VUE/menuitem/index.d.ts +77 -0
- package/dist/types/__VUE/navbar/index.d.ts +83 -0
- package/dist/types/__VUE/noticebar/index.d.ts +209 -0
- package/dist/types/__VUE/notify/index.d.ts +103 -0
- package/dist/types/__VUE/numberkeyboard/index.d.ts +124 -0
- package/dist/types/__VUE/oldpicker/Column.d.ts +96 -0
- package/dist/types/__VUE/oldpicker/commonProps.d.ts +22 -0
- package/dist/types/__VUE/oldpicker/index.d.ts +360 -0
- package/dist/types/__VUE/oldpicker/types.d.ts +24 -0
- package/dist/types/__VUE/overlay/index.d.ts +1614 -0
- package/dist/types/__VUE/pagination/index.d.ts +112 -0
- package/dist/types/__VUE/picker/Column.d.ts +90 -0
- package/dist/types/__VUE/picker/index.d.ts +343 -0
- package/dist/types/__VUE/picker/types.d.ts +26 -0
- package/dist/types/__VUE/popover/index.d.ts +233 -0
- package/dist/types/__VUE/popup/index.d.ts +1734 -0
- package/dist/types/__VUE/popup/use-lock-scroll.d.ts +5 -0
- package/dist/types/__VUE/price/index.d.ts +87 -0
- package/dist/types/__VUE/progress/index.d.ts +138 -0
- package/dist/types/__VUE/pullrefresh/index.d.ts +128 -0
- package/dist/types/__VUE/pullrefresh/use-touch.d.ts +20 -0
- package/dist/types/__VUE/pullrefresh/util.d.ts +6 -0
- package/dist/types/__VUE/radio/index.d.ts +90 -0
- package/dist/types/__VUE/radiogroup/index.d.ts +48 -0
- package/dist/types/__VUE/range/index.d.ts +156 -0
- package/dist/types/__VUE/rate/index.d.ts +142 -0
- package/dist/types/__VUE/row/index.d.ts +63 -0
- package/dist/types/__VUE/searchbar/index.d.ts +100 -0
- package/dist/types/__VUE/shortpassword/index.d.ts +137 -0
- package/dist/types/__VUE/sidenavbar/index.d.ts +36 -0
- package/dist/types/__VUE/sidenavbaritem/index.d.ts +41 -0
- package/dist/types/__VUE/signature/index.d.ts +73 -0
- package/dist/types/__VUE/skeleton/common.d.ts +63 -0
- package/dist/types/__VUE/skeleton/index.d.ts +117 -0
- package/dist/types/__VUE/sku/components/SkuHeader.d.ts +27 -0
- package/dist/types/__VUE/sku/components/SkuOperate.d.ts +70 -0
- package/dist/types/__VUE/sku/components/SkuSelect.d.ts +30 -0
- package/dist/types/__VUE/sku/components/SkuStepper.d.ts +67 -0
- package/dist/types/__VUE/sku/index.d.ts +300 -0
- package/dist/types/__VUE/step/index.d.ts +70 -0
- package/dist/types/__VUE/steps/index.d.ts +47 -0
- package/dist/types/__VUE/sticky/index.d.ts +63 -0
- package/dist/types/__VUE/subsidenavbar/index.d.ts +54 -0
- package/dist/types/__VUE/swipe/index.d.ts +69 -0
- package/dist/types/__VUE/swiper/index.d.ts +163 -0
- package/dist/types/__VUE/swiper/use-touch.d.ts +20 -0
- package/dist/types/__VUE/swiperitem/index.d.ts +24 -0
- package/dist/types/__VUE/switch/index.d.ts +136 -0
- package/dist/types/__VUE/tabbar/index.d.ts +84 -0
- package/dist/types/__VUE/tabbaritem/index.d.ts +108 -0
- package/dist/types/__VUE/table/common.d.ts +55 -0
- package/dist/types/__VUE/table/index.d.ts +76 -0
- package/dist/types/__VUE/table/renderColumn.d.ts +20 -0
- package/dist/types/__VUE/table/types.d.ts +19 -0
- package/dist/types/__VUE/tabpane/index.d.ts +47 -0
- package/dist/types/__VUE/tabs/index.d.ts +128 -0
- package/dist/types/__VUE/tag/index.d.ts +89 -0
- package/dist/types/__VUE/textarea/index.d.ts +121 -0
- package/dist/types/__VUE/timedetail/index.d.ts +48 -0
- package/dist/types/__VUE/timepannel/index.d.ts +43 -0
- package/dist/types/__VUE/timeselect/index.d.ts +82 -0
- package/dist/types/__VUE/toast/index.d.ts +149 -0
- package/dist/types/__VUE/uploader/index.d.ts +258 -0
- package/dist/types/__VUE/uploader/uploader.d.ts +25 -0
- package/dist/types/__VUE/video/index.d.ts +123 -0
- package/dist/{index.d.ts → types/index.d.ts} +0 -0
- package/dist/types/nutui.d.ts +93 -0
- package/package.json +14 -5
- package/dist/nutui.d.ts +0 -104
- package/dist/packages/_es/use-lock-scroll.js +0 -23
- package/dist/packages/_es/util.js +0 -47
package/dist/packages/_es/Sku.js
CHANGED
|
@@ -1,12 +1,34 @@
|
|
|
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.19-beta.
|
|
21
|
+
* @nutui/nutui v3.1.19-beta.4 Tue Apr 12 2022 17:39:20 GMT+0800 (中国标准时间)
|
|
3
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
|
-
import { c as createComponent } from "./component.js";
|
|
26
|
+
import { c as createComponent, T as TypeOfFun } from "./component.js";
|
|
8
27
|
import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
|
|
9
|
-
import {
|
|
28
|
+
import { popupProps } from "./Popup.js";
|
|
29
|
+
import "./OverLay.js";
|
|
30
|
+
import "./Icon.js";
|
|
31
|
+
import "./pxCheck.js";
|
|
10
32
|
const { componentName: componentName$4, create: create$4 } = createComponent("sku-header");
|
|
11
33
|
const _sfc_main$4 = create$4({
|
|
12
34
|
props: {
|
|
@@ -68,13 +90,13 @@ const _sfc_main$3 = create$3({
|
|
|
68
90
|
skuInfo.value = [].slice.call(props.sku);
|
|
69
91
|
}
|
|
70
92
|
});
|
|
71
|
-
const changeSaleChild = (attrItem,
|
|
93
|
+
const changeSaleChild = (attrItem, index2, parentItem, parentIndex) => {
|
|
72
94
|
if (attrItem.checkFlag || attrItem.disable) {
|
|
73
95
|
return;
|
|
74
96
|
}
|
|
75
97
|
emit("selectSku", {
|
|
76
98
|
sku: attrItem,
|
|
77
|
-
skuIndex:
|
|
99
|
+
skuIndex: index2,
|
|
78
100
|
parentSku: parentItem,
|
|
79
101
|
parentIndex
|
|
80
102
|
});
|
|
@@ -91,7 +113,7 @@ const _hoisted_3$2 = { class: "nut-sku-select-item-skus" };
|
|
|
91
113
|
const _hoisted_4$2 = ["onClick"];
|
|
92
114
|
function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
93
115
|
return openBlock(), createElementBlock("view", _hoisted_1$3, [
|
|
94
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.skuInfo, (item,
|
|
116
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.skuInfo, (item, index2) => {
|
|
95
117
|
return openBlock(), createElementBlock("view", {
|
|
96
118
|
class: "nut-sku-select-item",
|
|
97
119
|
key: item.id
|
|
@@ -101,7 +123,7 @@ function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
101
123
|
(openBlock(true), createElementBlock(Fragment, null, renderList(item.list, (itemAttr, itemAttrIndex) => {
|
|
102
124
|
return openBlock(), createElementBlock("view", {
|
|
103
125
|
class: normalizeClass(["nut-sku-select-item-skus-sku", [{ active: !itemAttr.disable && itemAttr.active }, { disable: itemAttr.disable }]]),
|
|
104
|
-
onClick: ($event) => _ctx.changeSaleChild(itemAttr, itemAttrIndex, item,
|
|
126
|
+
onClick: ($event) => _ctx.changeSaleChild(itemAttr, itemAttrIndex, item, index2),
|
|
105
127
|
key: itemAttr.name
|
|
106
128
|
}, toDisplayString(itemAttr.name), 11, _hoisted_4$2);
|
|
107
129
|
}), 128))
|
|
@@ -275,11 +297,7 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
275
297
|
var SkuOperate = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render$1]]);
|
|
276
298
|
const { componentName, create } = createComponent("sku");
|
|
277
299
|
const _sfc_main = create({
|
|
278
|
-
props: {
|
|
279
|
-
visible: {
|
|
280
|
-
type: Boolean,
|
|
281
|
-
default: false
|
|
282
|
-
},
|
|
300
|
+
props: __spreadProps(__spreadValues({}, popupProps), {
|
|
283
301
|
sku: {
|
|
284
302
|
type: Array,
|
|
285
303
|
default: []
|
|
@@ -288,10 +306,6 @@ const _sfc_main = create({
|
|
|
288
306
|
type: Object,
|
|
289
307
|
default: {}
|
|
290
308
|
},
|
|
291
|
-
showSaleLimit: {
|
|
292
|
-
type: Boolean,
|
|
293
|
-
default: false
|
|
294
|
-
},
|
|
295
309
|
stepperMax: {
|
|
296
310
|
type: [Number, String],
|
|
297
311
|
default: 99999
|
|
@@ -300,14 +314,6 @@ const _sfc_main = create({
|
|
|
300
314
|
type: [Number, String],
|
|
301
315
|
default: 1
|
|
302
316
|
},
|
|
303
|
-
purchased: {
|
|
304
|
-
type: [Number, String],
|
|
305
|
-
default: 0
|
|
306
|
-
},
|
|
307
|
-
showSaleLowest: {
|
|
308
|
-
type: Boolean,
|
|
309
|
-
default: false
|
|
310
|
-
},
|
|
311
317
|
btnOptions: {
|
|
312
318
|
type: Array,
|
|
313
319
|
default: () => ["confirm"]
|
|
@@ -316,17 +322,13 @@ const _sfc_main = create({
|
|
|
316
322
|
type: String,
|
|
317
323
|
default: "\u8D2D\u4E70\u6570\u91CF"
|
|
318
324
|
},
|
|
319
|
-
|
|
320
|
-
type: [Function, Boolean],
|
|
321
|
-
default: false
|
|
322
|
-
},
|
|
323
|
-
saleLimitText: {
|
|
325
|
+
stepperExtraText: {
|
|
324
326
|
type: [Function, Boolean],
|
|
325
327
|
default: false
|
|
326
328
|
},
|
|
327
|
-
|
|
328
|
-
type:
|
|
329
|
-
default:
|
|
329
|
+
btnExtraText: {
|
|
330
|
+
type: String,
|
|
331
|
+
default: ""
|
|
330
332
|
},
|
|
331
333
|
buyText: {
|
|
332
334
|
type: String,
|
|
@@ -340,7 +342,7 @@ const _sfc_main = create({
|
|
|
340
342
|
type: String,
|
|
341
343
|
default: "\u786E\u5B9A"
|
|
342
344
|
}
|
|
343
|
-
},
|
|
345
|
+
}),
|
|
344
346
|
emits: [
|
|
345
347
|
"update:visible",
|
|
346
348
|
"selectSku",
|
|
@@ -351,7 +353,8 @@ const _sfc_main = create({
|
|
|
351
353
|
"close",
|
|
352
354
|
"reduce",
|
|
353
355
|
"add",
|
|
354
|
-
"overLimit"
|
|
356
|
+
"overLimit",
|
|
357
|
+
"clickOverlay"
|
|
355
358
|
],
|
|
356
359
|
components: {
|
|
357
360
|
SkuHeader,
|
|
@@ -370,6 +373,8 @@ const _sfc_main = create({
|
|
|
370
373
|
close();
|
|
371
374
|
}
|
|
372
375
|
});
|
|
376
|
+
onMounted(() => {
|
|
377
|
+
});
|
|
373
378
|
const getSlots = (name) => slots[name];
|
|
374
379
|
const selectSku = (skus) => {
|
|
375
380
|
emit("selectSku", skus);
|
|
@@ -438,7 +443,9 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
438
443
|
onClickCloseIcon: _cache[1] || (_cache[1] = ($event) => _ctx.closePopup("icon")),
|
|
439
444
|
onClickOverlay: _cache[2] || (_cache[2] = ($event) => _ctx.closePopup("overlay")),
|
|
440
445
|
onClose: _cache[3] || (_cache[3] = ($event) => _ctx.closePopup("close")),
|
|
441
|
-
style: { "height": "75%" }
|
|
446
|
+
style: { "height": "75%" },
|
|
447
|
+
isWrapTeleport: _ctx.isWrapTeleport,
|
|
448
|
+
teleport: _ctx.teleport
|
|
442
449
|
}, {
|
|
443
450
|
default: withCtx(() => [
|
|
444
451
|
createElementVNode("view", _hoisted_1, [
|
|
@@ -475,32 +482,33 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
475
482
|
stepperTitle: _ctx.stepperTitle,
|
|
476
483
|
stepperMax: _ctx.stepperMax,
|
|
477
484
|
stepperMin: _ctx.stepperMin,
|
|
478
|
-
|
|
479
|
-
showSaleLimit: _ctx.showSaleLimit,
|
|
480
|
-
showSaleLowest: _ctx.showSaleLowest,
|
|
481
|
-
saleLowestText: _ctx.saleLowestText,
|
|
482
|
-
saleLimitText: _ctx.saleLimitText,
|
|
483
|
-
purchasedText: _ctx.purchasedText,
|
|
485
|
+
stepperExtraText: _ctx.stepperExtraText,
|
|
484
486
|
onAdd: _ctx.add,
|
|
485
487
|
onReduce: _ctx.reduce,
|
|
486
488
|
onChangeStepper: _ctx.changeStepper,
|
|
487
489
|
onOverLimit: _ctx.stepperOverLimit
|
|
488
|
-
}, null, 8, ["goods", "stepperTitle", "stepperMax", "stepperMin", "
|
|
490
|
+
}, null, 8, ["goods", "stepperTitle", "stepperMax", "stepperMin", "stepperExtraText", "onAdd", "onReduce", "onChangeStepper", "onOverLimit"])) : createCommentVNode("", true),
|
|
489
491
|
renderSlot(_ctx.$slots, "sku-stepper-bottom")
|
|
490
492
|
]),
|
|
491
|
-
|
|
492
|
-
!_ctx.getSlots("sku-operate") ? (openBlock(), createBlock(_component_sku_operate, {
|
|
493
|
-
key: 1,
|
|
493
|
+
createVNode(_component_sku_operate, {
|
|
494
494
|
btnOptions: _ctx.btnOptions,
|
|
495
|
+
btnExtraText: _ctx.btnExtraText,
|
|
495
496
|
buyText: _ctx.buyText,
|
|
496
497
|
addCartText: _ctx.addCartText,
|
|
497
498
|
confirmText: _ctx.confirmText,
|
|
498
499
|
onClickBtnOperate: _ctx.clickBtnOperate
|
|
499
|
-
},
|
|
500
|
+
}, createSlots({ _: 2 }, [
|
|
501
|
+
_ctx.getSlots("sku-operate") ? {
|
|
502
|
+
name: "operate-btn",
|
|
503
|
+
fn: withCtx(() => [
|
|
504
|
+
renderSlot(_ctx.$slots, "sku-operate")
|
|
505
|
+
])
|
|
506
|
+
} : void 0
|
|
507
|
+
]), 1032, ["btnOptions", "btnExtraText", "buyText", "addCartText", "confirmText", "onClickBtnOperate"])
|
|
500
508
|
])
|
|
501
509
|
]),
|
|
502
510
|
_: 3
|
|
503
|
-
}, 8, ["visible"]);
|
|
511
|
+
}, 8, ["visible", "isWrapTeleport", "teleport"]);
|
|
504
512
|
}
|
|
505
|
-
var
|
|
506
|
-
export {
|
|
513
|
+
var index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
514
|
+
export { index as default };
|
|
@@ -18,7 +18,7 @@ var __spreadValues = (a, b) => {
|
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
20
|
/*!
|
|
21
|
-
* @nutui/nutui v3.1.19-beta.
|
|
21
|
+
* @nutui/nutui v3.1.19-beta.4 Tue Apr 12 2022 17:39:20 GMT+0800 (中国标准时间)
|
|
22
22
|
* (c) 2022 @jdf2e.
|
|
23
23
|
* Released under the MIT License.
|
|
24
24
|
*/
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.1.19-beta.
|
|
2
|
+
* @nutui/nutui v3.1.19-beta.4 Tue Apr 12 2022 17:39:20 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
|
-
import { ref, reactive, computed, watch, h, unref } from "vue";
|
|
7
|
-
import Taro from "@tarojs/taro";
|
|
6
|
+
import { ref, reactive, computed, watch, onMounted, onUnmounted, h, unref } from "vue";
|
|
8
7
|
import { c as createComponent } from "./component.js";
|
|
9
|
-
import { u as
|
|
8
|
+
import { u as useRect } from "./index2.js";
|
|
10
9
|
const { componentName, create } = createComponent("sticky");
|
|
11
10
|
const _sfc_main = create({
|
|
12
11
|
props: {
|
|
@@ -33,8 +32,6 @@ const _sfc_main = create({
|
|
|
33
32
|
emits: ["change", "scroll"],
|
|
34
33
|
setup(props, { emit, slots }) {
|
|
35
34
|
const root = ref();
|
|
36
|
-
const query = Taro.createSelectorQuery();
|
|
37
|
-
const refRandomId = Math.random().toString(36).slice(-8);
|
|
38
35
|
const state = reactive({
|
|
39
36
|
width: 0,
|
|
40
37
|
height: 0,
|
|
@@ -70,22 +67,19 @@ const _sfc_main = create({
|
|
|
70
67
|
const el = unref(elementRef);
|
|
71
68
|
if (!el)
|
|
72
69
|
return false;
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
const hidden = res.display === "none";
|
|
78
|
-
const parentHidden = el.offsetParent === null && res.position !== "fixed";
|
|
79
|
-
resolve(hidden || parentHidden);
|
|
80
|
-
}).exec();
|
|
81
|
-
});
|
|
70
|
+
const style = window.getComputedStyle(el);
|
|
71
|
+
const hidden = style.display === "none";
|
|
72
|
+
const parentHidden = el.offsetParent === null && style.position !== "fixed";
|
|
73
|
+
return hidden || parentHidden;
|
|
82
74
|
};
|
|
83
|
-
const isExistRoot =
|
|
84
|
-
|
|
85
|
-
if (!root.value || hidden)
|
|
75
|
+
const isExistRoot = () => {
|
|
76
|
+
if (!root.value || isHidden(root))
|
|
86
77
|
return false;
|
|
87
78
|
return true;
|
|
88
79
|
};
|
|
80
|
+
const getScrollTop = (el) => {
|
|
81
|
+
return Math.max(0, "scrollTop" in el ? el.scrollTop : el.pageYOffset);
|
|
82
|
+
};
|
|
89
83
|
const renderFixed = () => {
|
|
90
84
|
var _a;
|
|
91
85
|
return h("view", {
|
|
@@ -93,18 +87,19 @@ const _sfc_main = create({
|
|
|
93
87
|
class: state.fixed ? `${componentName} nut-sticky--fixed` : componentName
|
|
94
88
|
}, (_a = slots.default) == null ? void 0 : _a.call(slots));
|
|
95
89
|
};
|
|
96
|
-
const onScroll =
|
|
90
|
+
const onScroll = () => {
|
|
97
91
|
if (!isExistRoot())
|
|
98
92
|
return;
|
|
99
93
|
const { container, position } = props;
|
|
100
|
-
const
|
|
94
|
+
const scrollTop = getScrollTop(window);
|
|
95
|
+
const rootRect = useRect(root);
|
|
101
96
|
if (rootRect.width || rootRect.height) {
|
|
102
97
|
state.width = rootRect.width;
|
|
103
98
|
state.height = rootRect.height;
|
|
104
99
|
}
|
|
105
100
|
if (position === "top") {
|
|
106
101
|
if (container) {
|
|
107
|
-
const containerRect =
|
|
102
|
+
const containerRect = useRect(container);
|
|
108
103
|
const diff = containerRect.bottom - +offset.value - state.height;
|
|
109
104
|
state.fixed = +offset.value > rootRect.top && containerRect.bottom > 0;
|
|
110
105
|
state.transform = diff < 0 ? diff : 0;
|
|
@@ -112,9 +107,9 @@ const _sfc_main = create({
|
|
|
112
107
|
state.fixed = offset.value > rootRect.top;
|
|
113
108
|
}
|
|
114
109
|
} else if (position === "bottom") {
|
|
115
|
-
const clientHeight =
|
|
110
|
+
const clientHeight = document.documentElement.clientHeight;
|
|
116
111
|
if (container) {
|
|
117
|
-
const containerRect =
|
|
112
|
+
const containerRect = useRect(container);
|
|
118
113
|
const diff = clientHeight - containerRect.top - +offset.value - state.height;
|
|
119
114
|
state.fixed = clientHeight - +offset.value < rootRect.bottom && clientHeight > containerRect.top;
|
|
120
115
|
state.transform = diff < 0 ? -diff : 0;
|
|
@@ -130,16 +125,16 @@ const _sfc_main = create({
|
|
|
130
125
|
watch(() => state.fixed, (val) => {
|
|
131
126
|
emit("change", val);
|
|
132
127
|
});
|
|
133
|
-
|
|
134
|
-
onScroll
|
|
128
|
+
onMounted(() => {
|
|
129
|
+
window.addEventListener("scroll", onScroll);
|
|
130
|
+
onScroll();
|
|
135
131
|
});
|
|
136
|
-
|
|
137
|
-
onScroll
|
|
132
|
+
onUnmounted(() => {
|
|
133
|
+
window.removeEventListener("scroll", onScroll);
|
|
138
134
|
});
|
|
139
135
|
return () => {
|
|
140
136
|
return h("view", {
|
|
141
137
|
style: rootStyle.value,
|
|
142
|
-
id: `root-${refRandomId}`,
|
|
143
138
|
ref: root
|
|
144
139
|
}, [renderFixed()]);
|
|
145
140
|
};
|
|
@@ -18,7 +18,7 @@ var __spreadValues = (a, b) => {
|
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
20
|
/*!
|
|
21
|
-
* @nutui/nutui v3.1.19-beta.
|
|
21
|
+
* @nutui/nutui v3.1.19-beta.4 Tue Apr 12 2022 17:39:20 GMT+0800 (中国标准时间)
|
|
22
22
|
* (c) 2022 @jdf2e.
|
|
23
23
|
* Released under the MIT License.
|
|
24
24
|
*/
|
|
@@ -18,15 +18,13 @@ var __spreadValues = (a, b) => {
|
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
20
|
/*!
|
|
21
|
-
* @nutui/nutui v3.1.19-beta.
|
|
21
|
+
* @nutui/nutui v3.1.19-beta.4 Tue Apr 12 2022 17:39:20 GMT+0800 (中国标准时间)
|
|
22
22
|
* (c) 2022 @jdf2e.
|
|
23
23
|
* Released under the MIT License.
|
|
24
24
|
*/
|
|
25
|
-
import
|
|
26
|
-
import {
|
|
27
|
-
import { computed, ref, onMounted, reactive, openBlock, createElementBlock, normalizeClass, normalizeStyle, createElementVNode, renderSlot } from "vue";
|
|
25
|
+
import { u as useTouch } from "./index4.js";
|
|
26
|
+
import { computed, ref, reactive, openBlock, createElementBlock, normalizeClass, normalizeStyle, createElementVNode, renderSlot } from "vue";
|
|
28
27
|
import { c as createComponent } from "./component.js";
|
|
29
|
-
import { u as useTaroRect } from "./index.js";
|
|
30
28
|
import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
|
|
31
29
|
const { componentName, create } = createComponent("swipe");
|
|
32
30
|
const _sfc_main = create({
|
|
@@ -50,29 +48,21 @@ const _sfc_main = create({
|
|
|
50
48
|
},
|
|
51
49
|
emits: ["open", "close"],
|
|
52
50
|
setup(props, { emit }) {
|
|
53
|
-
const refRandomId = Math.random().toString(36).slice(-8);
|
|
54
51
|
const classes = computed(() => {
|
|
55
52
|
const prefixCls = componentName;
|
|
56
53
|
return {
|
|
57
54
|
[prefixCls]: true
|
|
58
55
|
};
|
|
59
56
|
});
|
|
60
|
-
const getRefWidth =
|
|
61
|
-
|
|
62
|
-
return
|
|
57
|
+
const getRefWidth = (ref2) => {
|
|
58
|
+
var _a;
|
|
59
|
+
return ((_a = ref2.value) == null ? void 0 : _a.clientWidth) || 0;
|
|
63
60
|
};
|
|
64
|
-
const leftRef = ref()
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
const
|
|
68
|
-
|
|
69
|
-
leftRefWidth.value = await getRefWidth(leftRef);
|
|
70
|
-
rightRefWidth.value = await getRefWidth(rightRef);
|
|
71
|
-
};
|
|
72
|
-
onMounted(() => {
|
|
73
|
-
setTimeout(() => {
|
|
74
|
-
initWidth();
|
|
75
|
-
}, 100);
|
|
61
|
+
const leftRef = ref(), leftRefWidth = computed(() => {
|
|
62
|
+
return getRefWidth(leftRef);
|
|
63
|
+
});
|
|
64
|
+
const rightRef = ref(), rightRefWidth = computed(() => {
|
|
65
|
+
return getRefWidth(rightRef);
|
|
76
66
|
});
|
|
77
67
|
let opened = false;
|
|
78
68
|
let position = "";
|
|
@@ -132,7 +122,7 @@ const _sfc_main = create({
|
|
|
132
122
|
return;
|
|
133
123
|
touch.start(event);
|
|
134
124
|
},
|
|
135
|
-
|
|
125
|
+
onTouchMove(event) {
|
|
136
126
|
if (props.disabled)
|
|
137
127
|
return;
|
|
138
128
|
touch.move(event);
|
|
@@ -178,15 +168,20 @@ const _sfc_main = create({
|
|
|
178
168
|
}, touchMethods), {
|
|
179
169
|
leftRef,
|
|
180
170
|
rightRef,
|
|
181
|
-
refRandomId,
|
|
182
171
|
open,
|
|
183
172
|
close
|
|
184
173
|
});
|
|
185
174
|
}
|
|
186
175
|
});
|
|
187
|
-
const _hoisted_1 =
|
|
176
|
+
const _hoisted_1 = {
|
|
177
|
+
class: "nut-swipe__left",
|
|
178
|
+
ref: "leftRef"
|
|
179
|
+
};
|
|
188
180
|
const _hoisted_2 = { class: "nut-swipe__content" };
|
|
189
|
-
const _hoisted_3 =
|
|
181
|
+
const _hoisted_3 = {
|
|
182
|
+
class: "nut-swipe__right",
|
|
183
|
+
ref: "rightRef"
|
|
184
|
+
};
|
|
190
185
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
191
186
|
return openBlock(), createElementBlock("view", {
|
|
192
187
|
class: normalizeClass(_ctx.classes),
|
|
@@ -196,24 +191,16 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
196
191
|
onTouchend: _cache[2] || (_cache[2] = (...args) => _ctx.onTouchEnd && _ctx.onTouchEnd(...args)),
|
|
197
192
|
onTouchcancel: _cache[3] || (_cache[3] = (...args) => _ctx.onTouchEnd && _ctx.onTouchEnd(...args))
|
|
198
193
|
}, [
|
|
199
|
-
createElementVNode("view",
|
|
200
|
-
class: "nut-swipe__left",
|
|
201
|
-
ref: "leftRef",
|
|
202
|
-
id: "leftRef-" + _ctx.refRandomId
|
|
203
|
-
}, [
|
|
194
|
+
createElementVNode("view", _hoisted_1, [
|
|
204
195
|
renderSlot(_ctx.$slots, "left")
|
|
205
|
-
],
|
|
196
|
+
], 512),
|
|
206
197
|
createElementVNode("view", _hoisted_2, [
|
|
207
198
|
renderSlot(_ctx.$slots, "default")
|
|
208
199
|
]),
|
|
209
|
-
createElementVNode("view",
|
|
210
|
-
class: "nut-swipe__right",
|
|
211
|
-
ref: "rightRef",
|
|
212
|
-
id: "rightRef-" + _ctx.refRandomId
|
|
213
|
-
}, [
|
|
200
|
+
createElementVNode("view", _hoisted_3, [
|
|
214
201
|
renderSlot(_ctx.$slots, "right")
|
|
215
|
-
],
|
|
202
|
+
], 512)
|
|
216
203
|
], 38);
|
|
217
204
|
}
|
|
218
|
-
var
|
|
219
|
-
export {
|
|
205
|
+
var index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
206
|
+
export { index as default };
|
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.1.19-beta.
|
|
2
|
+
* @nutui/nutui v3.1.19-beta.4 Tue Apr 12 2022 17:39:20 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
|
-
import { reactive, ref, computed, provide, onMounted, onActivated, onDeactivated, onBeforeUnmount, watch, openBlock, createElementBlock, normalizeClass, createElementVNode, normalizeStyle, renderSlot, Fragment, renderList, createCommentVNode } from "vue";
|
|
6
|
+
import { reactive, ref, computed, provide, onMounted, nextTick, onActivated, onDeactivated, onBeforeUnmount, watch, openBlock, createElementBlock, normalizeClass, createElementVNode, normalizeStyle, renderSlot, Fragment, renderList, createCommentVNode } from "vue";
|
|
7
7
|
import { c as createComponent } from "./component.js";
|
|
8
|
-
import { u as
|
|
9
|
-
import { u as useExpose } from "./index2.js";
|
|
10
|
-
import Taro, { eventCenter, getCurrentInstance } from "@tarojs/taro";
|
|
8
|
+
import { u as useExpose } from "./index3.js";
|
|
11
9
|
import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
|
|
12
10
|
const DISTANCE = 5;
|
|
13
11
|
function useTouch() {
|
|
@@ -112,7 +110,6 @@ const _sfc_main = create({
|
|
|
112
110
|
emits: ["change"],
|
|
113
111
|
setup(props, { emit, slots }) {
|
|
114
112
|
const container = ref();
|
|
115
|
-
const refRandomId = Math.random().toString(36).slice(-8);
|
|
116
113
|
const state = reactive({
|
|
117
114
|
active: 0,
|
|
118
115
|
num: 0,
|
|
@@ -168,7 +165,7 @@ const _sfc_main = create({
|
|
|
168
165
|
return Math.min(Math.max(num, min), max);
|
|
169
166
|
};
|
|
170
167
|
const requestFrame = (fn) => {
|
|
171
|
-
requestAnimationFrame.call(
|
|
168
|
+
window.requestAnimationFrame.call(window, fn);
|
|
172
169
|
};
|
|
173
170
|
const getOffset = (active, offset = 0) => {
|
|
174
171
|
let currentPosition = active * size.value;
|
|
@@ -280,9 +277,9 @@ const _sfc_main = create({
|
|
|
280
277
|
autoplay();
|
|
281
278
|
}, Number(props.autoPlay));
|
|
282
279
|
};
|
|
283
|
-
const init =
|
|
280
|
+
const init = (active = +props.initPage) => {
|
|
284
281
|
stopAutoPlay();
|
|
285
|
-
state.rect =
|
|
282
|
+
state.rect = container.value.getBoundingClientRect();
|
|
286
283
|
active = Math.min(childCount.value - 1, active);
|
|
287
284
|
state.width = props.width ? +props.width : state.rect.width;
|
|
288
285
|
state.height = props.height ? +props.height : state.rect.height;
|
|
@@ -349,26 +346,14 @@ const _sfc_main = create({
|
|
|
349
346
|
to
|
|
350
347
|
});
|
|
351
348
|
onMounted(() => {
|
|
352
|
-
|
|
349
|
+
nextTick(() => {
|
|
353
350
|
init();
|
|
354
|
-
}
|
|
355
|
-
Taro.nextTick(async () => {
|
|
356
|
-
state.rect = await useTaroRect(container, Taro);
|
|
357
|
-
state.rect && init();
|
|
358
|
-
});
|
|
359
|
-
eventCenter.once(getCurrentInstance().router.onReady, () => {
|
|
360
|
-
init();
|
|
361
|
-
});
|
|
362
|
-
}
|
|
351
|
+
});
|
|
363
352
|
});
|
|
364
353
|
onActivated(() => {
|
|
365
|
-
|
|
354
|
+
nextTick(() => {
|
|
366
355
|
init();
|
|
367
|
-
}
|
|
368
|
-
eventCenter.once(getCurrentInstance().router.onReady, () => {
|
|
369
|
-
init();
|
|
370
|
-
});
|
|
371
|
-
}
|
|
356
|
+
});
|
|
372
357
|
});
|
|
373
358
|
onDeactivated(() => {
|
|
374
359
|
stopAutoPlay();
|
|
@@ -377,12 +362,12 @@ const _sfc_main = create({
|
|
|
377
362
|
stopAutoPlay();
|
|
378
363
|
});
|
|
379
364
|
watch(() => props.initPage, (val) => {
|
|
380
|
-
|
|
381
|
-
init(
|
|
365
|
+
nextTick(() => {
|
|
366
|
+
init(Number(val));
|
|
382
367
|
});
|
|
383
368
|
});
|
|
384
369
|
watch(() => state.children.length, () => {
|
|
385
|
-
|
|
370
|
+
nextTick(() => {
|
|
386
371
|
init(state.active);
|
|
387
372
|
});
|
|
388
373
|
});
|
|
@@ -391,7 +376,6 @@ const _sfc_main = create({
|
|
|
391
376
|
});
|
|
392
377
|
return {
|
|
393
378
|
state,
|
|
394
|
-
refRandomId,
|
|
395
379
|
classes,
|
|
396
380
|
container,
|
|
397
381
|
componentName,
|
|
@@ -404,11 +388,9 @@ const _sfc_main = create({
|
|
|
404
388
|
};
|
|
405
389
|
}
|
|
406
390
|
});
|
|
407
|
-
const _hoisted_1 = ["id"];
|
|
408
391
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
409
392
|
return openBlock(), createElementBlock("view", {
|
|
410
393
|
ref: "container",
|
|
411
|
-
id: "container-" + _ctx.refRandomId,
|
|
412
394
|
class: normalizeClass(_ctx.classes),
|
|
413
395
|
onTouchstart: _cache[0] || (_cache[0] = (...args) => _ctx.onTouchStart && _ctx.onTouchStart(...args)),
|
|
414
396
|
onTouchmove: _cache[1] || (_cache[1] = (...args) => _ctx.onTouchMove && _ctx.onTouchMove(...args)),
|
|
@@ -441,7 +423,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
441
423
|
}, null, 4);
|
|
442
424
|
}), 128))
|
|
443
425
|
], 2)) : createCommentVNode("", true)
|
|
444
|
-
],
|
|
426
|
+
], 34);
|
|
445
427
|
}
|
|
446
428
|
var Swiper = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
447
429
|
export { Swiper as default };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.1.19-beta.
|
|
2
|
+
* @nutui/nutui v3.1.19-beta.4 Tue Apr 12 2022 17:39:20 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
6
|
import { inject, getCurrentInstance, reactive, computed, openBlock, createElementBlock, normalizeClass, normalizeStyle, renderSlot } from "vue";
|
|
7
7
|
import { c as createComponent } from "./component.js";
|
|
8
|
-
import { u as useExpose } from "./
|
|
8
|
+
import { u as useExpose } from "./index3.js";
|
|
9
9
|
import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
|
|
10
10
|
const { create, componentName } = createComponent("swiper-item");
|
|
11
11
|
const _sfc_main = create({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.1.19-beta.
|
|
2
|
+
* @nutui/nutui v3.1.19-beta.4 Tue Apr 12 2022 17:39:20 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -116,5 +116,5 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
116
116
|
])
|
|
117
117
|
], 6);
|
|
118
118
|
}
|
|
119
|
-
var
|
|
120
|
-
export {
|
|
119
|
+
var index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
120
|
+
export { index as default };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.1.19-beta.
|
|
2
|
+
* @nutui/nutui v3.1.19-beta.4 Tue Apr 12 2022 17:39:20 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -73,5 +73,5 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
73
73
|
renderSlot(_ctx.$slots, "default")
|
|
74
74
|
], 2);
|
|
75
75
|
}
|
|
76
|
-
var
|
|
77
|
-
export {
|
|
76
|
+
var index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
77
|
+
export { index as default };
|