@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.
- package/CHANGELOG.md +31 -0
- package/README.md +18 -4
- package/dist/nutui.es.js +4461 -4135
- package/dist/nutui.umd.js +4559 -4133
- package/dist/packages/_es/ActionSheet.js +19 -18
- package/dist/packages/_es/Address.js +85 -94
- package/dist/packages/_es/AddressList.js +12 -25
- package/dist/packages/_es/Animate.js +3 -3
- package/dist/packages/_es/Audio.js +2 -9
- package/dist/packages/_es/AudioOperate.js +1 -5
- package/dist/packages/_es/Avatar.js +10 -10
- package/dist/packages/_es/AvatarGroup.js +5 -5
- package/dist/packages/_es/BackTop.js +108 -55
- package/dist/packages/_es/Badge.js +12 -10
- package/dist/packages/_es/Barrage.js +103 -79
- package/dist/packages/_es/Button.js +3 -5
- package/dist/packages/_es/Calendar.js +23 -36
- package/dist/packages/_es/CalendarItem.js +3 -4
- package/dist/packages/_es/Card.js +5 -15
- package/dist/packages/_es/Cascader.js +11 -12
- package/dist/packages/_es/Category.js +12 -13
- package/dist/packages/_es/CategoryPane.js +13 -17
- package/dist/packages/_es/Cell.js +12 -9
- package/dist/packages/_es/CellGroup.js +2 -4
- package/dist/packages/_es/Checkbox.js +1 -1
- package/dist/packages/_es/CheckboxGroup.js +2 -2
- package/dist/packages/_es/CircleProgress.js +82 -98
- package/dist/packages/_es/Col.js +1 -1
- package/dist/packages/_es/Collapse.js +34 -65
- package/dist/packages/_es/CollapseItem.js +60 -93
- package/dist/packages/_es/Comment.js +19 -43
- package/dist/packages/_es/ConfigProvider.js +1 -1
- package/dist/packages/_es/CountDown.js +3 -3
- package/dist/packages/_es/CountUp.js +52 -47
- package/dist/packages/_es/DatePicker.js +54 -37
- package/dist/packages/_es/Dialog.js +88 -9
- package/dist/packages/_es/Divider.js +3 -3
- package/dist/packages/_es/Drag.js +49 -75
- package/dist/packages/_es/Ecard.js +18 -20
- package/dist/packages/_es/Elevator.js +76 -101
- package/dist/packages/_es/Ellipsis.js +100 -140
- package/dist/packages/_es/Empty.js +4 -6
- package/dist/packages/_es/FixedNav.js +6 -11
- package/dist/packages/_es/Form.js +4 -4
- package/dist/packages/_es/FormItem.js +1 -3
- package/dist/packages/_es/Grid.js +1 -1
- package/dist/packages/_es/GridItem.js +27 -10
- package/dist/packages/_es/Icon.js +1 -1
- package/dist/packages/_es/Image.js +114 -13
- package/dist/packages/_es/ImagePreview.js +411 -149
- package/dist/packages/_es/Indicator.js +3 -3
- package/dist/packages/_es/InfiniteLoading.js +115 -103
- package/dist/packages/_es/Input.js +32 -56
- package/dist/packages/_es/InputNumber.js +16 -25
- package/dist/packages/_es/Invoice.js +5 -6
- package/dist/packages/_es/Layout.js +1 -1
- package/dist/packages/_es/List.js +34 -47
- package/dist/packages/_es/Menu.js +35 -35
- package/dist/packages/_es/MenuItem.js +29 -56
- package/dist/packages/_es/Navbar.js +39 -49
- package/dist/packages/_es/NoticeBar.js +45 -54
- package/dist/packages/_es/Notify.js +162 -44
- package/dist/packages/_es/NumberKeyboard.js +20 -15
- package/dist/packages/_es/OldPicker.js +116 -130
- package/dist/packages/_es/OverLay.js +28 -5
- package/dist/packages/_es/Pagination.js +5 -8
- package/dist/packages/_es/Picker.js +74 -198
- package/dist/packages/_es/Popover.js +881 -201
- package/dist/packages/_es/Popup.js +84 -28
- package/dist/packages/_es/Price.js +6 -22
- package/dist/packages/_es/Progress.js +11 -18
- package/dist/packages/_es/PullRefresh.js +2 -4
- package/dist/packages/_es/Radio.js +3 -3
- package/dist/packages/_es/RadioGroup.js +1 -1
- package/dist/packages/_es/Range.js +34 -48
- package/dist/packages/_es/Rate.js +14 -15
- package/dist/packages/_es/Row.js +1 -1
- package/dist/packages/_es/SearchBar.js +36 -39
- package/dist/packages/_es/ShortPassword.js +66 -97
- package/dist/packages/_es/SideNavBar.js +18 -7
- package/dist/packages/_es/SideNavBarItem.js +1 -1
- package/dist/packages/_es/Signature.js +80 -113
- package/dist/packages/_es/Skeleton.js +11 -12
- package/dist/packages/_es/Sku.js +38 -63
- package/dist/packages/_es/Step.js +2 -7
- package/dist/packages/_es/Steps.js +1 -1
- package/dist/packages/_es/Sticky.js +23 -33
- package/dist/packages/_es/SubSideNavBar.js +2 -4
- package/dist/packages/_es/Swipe.js +26 -41
- package/dist/packages/_es/Swiper.js +21 -38
- package/dist/packages/_es/SwiperItem.js +2 -2
- package/dist/packages/_es/Switch.js +8 -8
- package/dist/packages/_es/TabPane.js +1 -1
- package/dist/packages/_es/Tabbar.js +13 -15
- package/dist/packages/_es/TabbarItem.js +30 -24
- package/dist/packages/_es/Table.js +17 -22
- package/dist/packages/_es/Tabs.js +16 -49
- package/dist/packages/_es/Tag.js +5 -6
- package/dist/packages/_es/TextArea.js +49 -114
- package/dist/packages/_es/TimeDetail.js +3 -4
- package/dist/packages/_es/TimePannel.js +3 -3
- package/dist/packages/_es/TimeSelect.js +10 -12
- package/dist/packages/_es/Toast.js +164 -53
- package/dist/packages/_es/TrendArrow.js +4 -6
- package/dist/packages/_es/Uploader.js +140 -141
- package/dist/packages/_es/Video.js +18 -39
- package/dist/packages/_es/WaterMark.js +14 -22
- package/dist/packages/_es/common.js +1 -1
- package/dist/packages/_es/component.js +1 -1
- package/dist/packages/_es/index.js +6 -44
- package/dist/packages/_es/index2.js +31 -8
- package/dist/packages/_es/index3.js +7 -64
- package/dist/packages/_es/index4.js +62 -424
- package/dist/packages/_es/{index.taro.js → index5.js} +154 -167
- 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 +1 -1
- package/dist/packages/_es/style.css +3 -21
- package/dist/packages/checkbox/index.scss +1 -0
- package/dist/packages/locale/lang/baseLang.js +1 -1
- package/dist/packages/locale/lang/en-US.js +1 -1
- package/dist/packages/locale/lang/id-ID.js +1 -1
- package/dist/packages/locale/lang/index.js +1 -1
- package/dist/packages/locale/lang/zh-CN.js +1 -1
- package/dist/packages/locale/lang/zh-TW.js +1 -1
- package/dist/packages/menuitem/index.scss +12 -3
- package/dist/smartips/attributes.json +5 -1
- package/dist/smartips/tags.json +1 -0
- package/dist/smartips/web-types.json +11 -2
- package/dist/style.css +1 -1
- package/dist/styles/themes/default.scss +49 -49
- package/dist/styles/themes/jdb.scss +49 -49
- package/dist/styles/themes/jddkh.scss +49 -49
- package/dist/styles/themes/jdt.scss +49 -49
- package/dist/types/__VUE/actionsheet/{index.taro.vue.d.ts → index.vue.d.ts} +9 -9
- package/dist/types/__VUE/address/{index.taro.vue.d.ts → index.vue.d.ts} +32 -72
- package/dist/types/__VUE/addresslist/{index.taro.vue.d.ts → index.vue.d.ts} +0 -0
- package/dist/types/__VUE/animate/{index.taro.vue.d.ts → index.vue.d.ts} +0 -0
- package/dist/types/__VUE/avatar/{index.taro.vue.d.ts → index.vue.d.ts} +6 -6
- package/dist/types/__VUE/avatargroup/{index.taro.vue.d.ts → index.vue.d.ts} +0 -0
- package/dist/types/__VUE/backtop/{index.taro.vue.d.ts → index.vue.d.ts} +37 -15
- package/dist/types/__VUE/badge/{index.taro.vue.d.ts → index.vue.d.ts} +0 -0
- package/dist/types/__VUE/barrage/{index.taro.vue.d.ts → index.vue.d.ts} +2 -2
- package/dist/types/__VUE/button/index.vue.d.ts +1 -1
- package/dist/types/__VUE/calendar/{index.taro.vue.d.ts → index.vue.d.ts} +1 -13
- package/dist/types/__VUE/calendaritem/{index.taro.vue.d.ts → index.vue.d.ts} +17 -17
- package/dist/types/__VUE/card/{index.taro.vue.d.ts → index.vue.d.ts} +0 -0
- package/dist/types/__VUE/cascader/{index.taro.vue.d.ts → index.vue.d.ts} +1 -1
- package/dist/types/__VUE/category/{index.taro.vue.d.ts → index.vue.d.ts} +0 -0
- package/dist/types/__VUE/categorypane/{index.taro.vue.d.ts → index.vue.d.ts} +0 -0
- package/dist/types/__VUE/cell/{index.taro.vue.d.ts → index.vue.d.ts} +6 -13
- package/dist/types/__VUE/checkbox/{index.taro.vue.d.ts → index.vue.d.ts} +0 -0
- package/dist/types/__VUE/circleprogress/{index.taro.vue.d.ts → index.vue.d.ts} +15 -14
- package/dist/types/__VUE/collapse/{index.taro.vue.d.ts → index.vue.d.ts} +1 -1
- package/dist/types/__VUE/collapseitem/{index.taro.vue.d.ts → index.vue.d.ts} +10 -2
- package/dist/types/__VUE/comment/{index.taro.vue.d.ts → index.vue.d.ts} +2 -1
- package/dist/types/__VUE/configprovider/{index.taro.vue.d.ts → index.vue.d.ts} +0 -0
- package/dist/types/__VUE/countdown/{index.taro.vue.d.ts → index.vue.d.ts} +0 -0
- package/dist/types/__VUE/countup/{index.taro.vue.d.ts → index.vue.d.ts} +7 -5
- package/dist/types/__VUE/datepicker/{index.taro.vue.d.ts → index.vue.d.ts} +5 -5
- package/dist/types/__VUE/dialog/index.d.ts +48 -0
- package/dist/types/__VUE/dialog/{index.taro.vue.d.ts → index.vue.d.ts} +12 -9
- package/dist/types/__VUE/divider/{index.taro.vue.d.ts → index.vue.d.ts} +0 -0
- package/dist/types/__VUE/drag/{index.taro.vue.d.ts → index.vue.d.ts} +1 -2
- package/dist/types/__VUE/ecard/{index.taro.vue.d.ts → index.vue.d.ts} +3 -3
- package/dist/types/__VUE/elevator/{index.taro.vue.d.ts → index.vue.d.ts} +2 -11
- package/dist/types/__VUE/ellipsis/{index.taro.vue.d.ts → index.vue.d.ts} +0 -4
- package/dist/types/__VUE/empty/{index.taro.vue.d.ts → index.vue.d.ts} +0 -0
- package/dist/types/__VUE/fixednav/{index.taro.vue.d.ts → index.vue.d.ts} +0 -0
- package/dist/types/__VUE/form/{index.taro.vue.d.ts → index.vue.d.ts} +0 -0
- package/dist/types/__VUE/grid/{index.taro.vue.d.ts → index.vue.d.ts} +1 -1
- package/dist/types/__VUE/griditem/{index.taro.vue.d.ts → index.vue.d.ts} +27 -2
- package/dist/types/__VUE/image/index.vue.d.ts +117 -0
- package/dist/types/__VUE/image/type.d.ts +6 -0
- package/dist/types/__VUE/imagepreview/imagePreviewItem.vue.d.ts +109 -0
- package/dist/types/__VUE/imagepreview/index.d.ts +25 -0
- package/dist/types/__VUE/imagepreview/{index.taro.vue.d.ts → index.vue.d.ts} +44 -33
- package/dist/types/__VUE/indicator/{index.taro.vue.d.ts → index.vue.d.ts} +0 -0
- package/dist/types/__VUE/infiniteloading/{index.taro.vue.d.ts → index.vue.d.ts} +8 -15
- package/dist/types/__VUE/input/{index.taro.vue.d.ts → index.vue.d.ts} +16 -34
- package/dist/types/__VUE/inputnumber/{index.taro.vue.d.ts → index.vue.d.ts} +2 -2
- package/dist/types/__VUE/invoice/{index.taro.vue.d.ts → index.vue.d.ts} +0 -0
- package/dist/types/__VUE/layout/{index.taro.vue.d.ts → index.vue.d.ts} +0 -0
- package/dist/types/__VUE/list/{index.taro.vue.d.ts → index.vue.d.ts} +2 -2
- package/dist/types/__VUE/menu/{index.taro.vue.d.ts → index.vue.d.ts} +0 -1
- package/dist/types/__VUE/menuitem/{index.taro.vue.d.ts → index.vue.d.ts} +0 -0
- package/dist/types/__VUE/navbar/{index.taro.vue.d.ts → index.vue.d.ts} +2 -1
- package/dist/types/__VUE/noticebar/{index.taro.vue.d.ts → index.vue.d.ts} +4 -4
- package/dist/types/__VUE/notify/index.d.ts +26 -0
- package/dist/types/__VUE/notify/{index.taro.vue.d.ts → index.vue.d.ts} +18 -5
- package/dist/types/__VUE/numberkeyboard/{index.taro.vue.d.ts → index.vue.d.ts} +29 -5
- package/dist/types/__VUE/oldpicker/{ColumnTaro.vue.d.ts → Column.vue.d.ts} +17 -28
- package/dist/types/__VUE/oldpicker/{index.taro.vue.d.ts → index.vue.d.ts} +44 -64
- package/dist/types/__VUE/pagination/{index.taro.vue.d.ts → index.vue.d.ts} +0 -0
- package/dist/types/__VUE/picker/{ColumnTaro.vue.d.ts → Column.vue.d.ts} +4 -16
- package/dist/types/__VUE/picker/{index.taro.vue.d.ts → index.vue.d.ts} +28 -53
- package/dist/types/__VUE/popover/{index.taro.vue.d.ts → index.vue.d.ts} +12 -14
- package/dist/types/__VUE/popup/index.vue.d.ts +1 -1
- package/dist/types/__VUE/price/{index.taro.vue.d.ts → index.vue.d.ts} +0 -1
- package/dist/types/__VUE/progress/{index.taro.vue.d.ts → index.vue.d.ts} +1 -1
- package/dist/types/__VUE/radio/{index.taro.vue.d.ts → index.vue.d.ts} +0 -0
- package/dist/types/__VUE/range/{index.taro.vue.d.ts → index.vue.d.ts} +6 -7
- package/dist/types/__VUE/rate/{index.taro.vue.d.ts → index.vue.d.ts} +0 -0
- package/dist/types/__VUE/searchbar/{index.taro.vue.d.ts → index.vue.d.ts} +19 -19
- package/dist/types/__VUE/shortpassword/{index.taro.vue.d.ts → index.vue.d.ts} +21 -6
- package/dist/types/__VUE/sidenavbar/{index.taro.vue.d.ts → index.vue.d.ts} +5 -0
- package/dist/types/__VUE/signature/{index.taro.vue.d.ts → index.vue.d.ts} +5 -8
- package/dist/types/__VUE/skeleton/{index.taro.vue.d.ts → index.vue.d.ts} +0 -0
- package/dist/types/__VUE/sku/index.vue.d.ts +310 -0
- package/dist/types/__VUE/step/index.vue.d.ts +1 -1
- package/dist/types/__VUE/steps/{index.taro.vue.d.ts → index.vue.d.ts} +0 -0
- package/dist/types/__VUE/sticky/{index.taro.vue.d.ts → index.vue.d.ts} +0 -0
- package/dist/types/__VUE/swipe/{index.taro.vue.d.ts → index.vue.d.ts} +1 -2
- package/dist/types/__VUE/swiper/{index.taro.vue.d.ts → index.vue.d.ts} +1 -2
- package/dist/types/__VUE/swiperitem/{index.taro.vue.d.ts → index.vue.d.ts} +0 -0
- package/dist/types/__VUE/switch/{index.taro.vue.d.ts → index.vue.d.ts} +0 -0
- package/dist/types/__VUE/tabbar/{index.taro.vue.d.ts → index.vue.d.ts} +2 -1
- package/dist/types/__VUE/tabbaritem/{index.taro.vue.d.ts → index.vue.d.ts} +9 -9
- package/dist/types/__VUE/table/{index.taro.vue.d.ts → index.vue.d.ts} +0 -0
- package/dist/types/__VUE/tabs/{index.taro.vue.d.ts → index.vue.d.ts} +0 -0
- package/dist/types/__VUE/tag/{index.taro.vue.d.ts → index.vue.d.ts} +4 -4
- package/dist/types/__VUE/tag/type.d.ts +5 -0
- package/dist/types/__VUE/textarea/{index.taro.vue.d.ts → index.vue.d.ts} +3 -5
- package/dist/types/__VUE/timedetail/{index.taro.vue.d.ts → index.vue.d.ts} +0 -0
- package/dist/types/__VUE/timepannel/{index.taro.vue.d.ts → index.vue.d.ts} +0 -0
- package/dist/types/__VUE/timeselect/{index.taro.vue.d.ts → index.vue.d.ts} +8 -7
- package/dist/types/__VUE/toast/index.d.ts +16 -0
- package/dist/types/__VUE/toast/{index.taro.vue.d.ts → index.vue.d.ts} +22 -44
- package/dist/types/__VUE/trendarrow/{index.taro.vue.d.ts → index.vue.d.ts} +0 -0
- package/dist/types/__VUE/uploader/{index.taro.vue.d.ts → index.vue.d.ts} +11 -20
- package/dist/types/__VUE/watermark/{index.taro.vue.d.ts → index.vue.d.ts} +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/nutui.d.ts +89 -89
- package/package.json +3 -2
- package/dist/packages/_es/use-lock-scroll.js +0 -23
- package/dist/types/__VUE/button/index.taro.vue.d.ts +0 -116
- package/dist/types/__VUE/icon/index.taro.vue.d.ts +0 -74
- package/dist/types/__VUE/image/index.taro.vue.d.ts +0 -33
- package/dist/types/__VUE/overlay/index.taro.vue.d.ts +0 -85
- package/dist/types/__VUE/popup/index.taro.vue.d.ts +0 -1728
- package/dist/types/__VUE/sku/index.taro.vue.d.ts +0 -182
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.2.6
|
|
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 { ref, reactive, computed, watch, h, unref } from "vue";
|
|
7
|
-
import Taro, { usePageScroll, useReady } 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
|
import "../locale/lang";
|
|
11
10
|
const { componentName, create } = createComponent("sticky");
|
|
12
11
|
const _sfc_main = create({
|
|
@@ -34,8 +33,6 @@ const _sfc_main = create({
|
|
|
34
33
|
emits: ["change", "scroll"],
|
|
35
34
|
setup(props, { emit, slots }) {
|
|
36
35
|
const root = ref();
|
|
37
|
-
const query = Taro.createSelectorQuery();
|
|
38
|
-
const refRandomId = Math.random().toString(36).slice(-8);
|
|
39
36
|
const state = reactive({
|
|
40
37
|
width: 0,
|
|
41
38
|
height: 0,
|
|
@@ -71,25 +68,19 @@ const _sfc_main = create({
|
|
|
71
68
|
const el = unref(elementRef);
|
|
72
69
|
if (!el)
|
|
73
70
|
return false;
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
},
|
|
79
|
-
(res) => {
|
|
80
|
-
const hidden = res.display === "none";
|
|
81
|
-
const parentHidden = el.offsetParent === null && res.position !== "fixed";
|
|
82
|
-
resolve(hidden || parentHidden);
|
|
83
|
-
}
|
|
84
|
-
).exec();
|
|
85
|
-
});
|
|
71
|
+
const style = window.getComputedStyle(el);
|
|
72
|
+
const hidden = style.display === "none";
|
|
73
|
+
const parentHidden = el.offsetParent === null && style.position !== "fixed";
|
|
74
|
+
return hidden || parentHidden;
|
|
86
75
|
};
|
|
87
|
-
const isExistRoot =
|
|
88
|
-
|
|
89
|
-
if (!root.value || hidden)
|
|
76
|
+
const isExistRoot = () => {
|
|
77
|
+
if (!root.value || isHidden(root))
|
|
90
78
|
return false;
|
|
91
79
|
return true;
|
|
92
80
|
};
|
|
81
|
+
const getScrollTop = (el) => {
|
|
82
|
+
return Math.max(0, "scrollTop" in el ? el.scrollTop : el.pageYOffset);
|
|
83
|
+
};
|
|
93
84
|
const renderFixed = () => {
|
|
94
85
|
var _a;
|
|
95
86
|
return h(
|
|
@@ -101,18 +92,19 @@ const _sfc_main = create({
|
|
|
101
92
|
(_a = slots.default) == null ? void 0 : _a.call(slots)
|
|
102
93
|
);
|
|
103
94
|
};
|
|
104
|
-
const onScroll =
|
|
95
|
+
const onScroll = () => {
|
|
105
96
|
if (!isExistRoot())
|
|
106
97
|
return;
|
|
107
98
|
const { container, position } = props;
|
|
108
|
-
const
|
|
99
|
+
const scrollTop = getScrollTop(window);
|
|
100
|
+
const rootRect = useRect(root);
|
|
109
101
|
if (rootRect.width || rootRect.height) {
|
|
110
102
|
state.width = rootRect.width;
|
|
111
103
|
state.height = rootRect.height;
|
|
112
104
|
}
|
|
113
105
|
if (position === "top") {
|
|
114
106
|
if (container) {
|
|
115
|
-
const containerRect =
|
|
107
|
+
const containerRect = useRect(container);
|
|
116
108
|
const diff = containerRect.bottom - +offset.value - state.height;
|
|
117
109
|
state.fixed = +offset.value > rootRect.top && containerRect.bottom > 0;
|
|
118
110
|
state.transform = diff < 0 ? diff : 0;
|
|
@@ -120,9 +112,9 @@ const _sfc_main = create({
|
|
|
120
112
|
state.fixed = offset.value > rootRect.top;
|
|
121
113
|
}
|
|
122
114
|
} else if (position === "bottom") {
|
|
123
|
-
const clientHeight =
|
|
115
|
+
const clientHeight = document.documentElement.clientHeight;
|
|
124
116
|
if (container) {
|
|
125
|
-
const containerRect =
|
|
117
|
+
const containerRect = useRect(container);
|
|
126
118
|
const diff = clientHeight - containerRect.top - +offset.value - state.height;
|
|
127
119
|
state.fixed = clientHeight - +offset.value < rootRect.bottom && clientHeight > containerRect.top;
|
|
128
120
|
state.transform = diff < 0 ? -diff : 0;
|
|
@@ -141,20 +133,18 @@ const _sfc_main = create({
|
|
|
141
133
|
emit("change", val);
|
|
142
134
|
}
|
|
143
135
|
);
|
|
144
|
-
|
|
145
|
-
onScroll
|
|
136
|
+
onMounted(() => {
|
|
137
|
+
window.addEventListener("scroll", onScroll);
|
|
138
|
+
onScroll();
|
|
146
139
|
});
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
onScroll(0);
|
|
150
|
-
});
|
|
140
|
+
onUnmounted(() => {
|
|
141
|
+
window.removeEventListener("scroll", onScroll);
|
|
151
142
|
});
|
|
152
143
|
return () => {
|
|
153
144
|
return h(
|
|
154
145
|
"view",
|
|
155
146
|
{
|
|
156
147
|
style: rootStyle.value,
|
|
157
|
-
id: `root-${refRandomId}`,
|
|
158
148
|
ref: root
|
|
159
149
|
},
|
|
160
150
|
[renderFixed()]
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.2.6
|
|
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 { reactive, computed, onMounted, toRefs, resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, withModifiers, toDisplayString,
|
|
6
|
+
import { reactive, computed, onMounted, toRefs, resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, withModifiers, toDisplayString, createVNode, normalizeStyle, 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";
|
|
@@ -68,7 +68,6 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
68
68
|
onClick: _cache[0] || (_cache[0] = withModifiers((...args) => _ctx.handleClick && _ctx.handleClick(...args), ["stop"]))
|
|
69
69
|
}, [
|
|
70
70
|
createElementVNode("span", _hoisted_2, toDisplayString(_ctx.title), 1),
|
|
71
|
-
createTextVNode(),
|
|
72
71
|
createElementVNode("span", _hoisted_3, [
|
|
73
72
|
createVNode(_component_nut_icon, {
|
|
74
73
|
name: "down-arrow",
|
|
@@ -76,7 +75,6 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
76
75
|
}, null, 8, ["class"])
|
|
77
76
|
])
|
|
78
77
|
]),
|
|
79
|
-
createTextVNode(),
|
|
80
78
|
createElementVNode("view", {
|
|
81
79
|
class: normalizeClass(["nut-subsidenavbar__list", !_ctx.direction ? "nutFadeIn" : "nutFadeOut"]),
|
|
82
80
|
style: normalizeStyle(_ctx.style)
|
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.2.6
|
|
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
|
|
7
|
-
import {
|
|
8
|
-
import { computed, ref, onMounted, reactive, openBlock, createElementBlock, normalizeClass, normalizeStyle, createElementVNode, renderSlot, createTextVNode } from "vue";
|
|
6
|
+
import { u as useTouch } from "./index4.js";
|
|
7
|
+
import { computed, ref, reactive, openBlock, createElementBlock, normalizeClass, normalizeStyle, createElementVNode, renderSlot } from "vue";
|
|
9
8
|
import { c as createComponent } from "./component.js";
|
|
10
|
-
import { u as useTaroRect } from "./index.js";
|
|
11
9
|
import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
|
|
12
10
|
import "../locale/lang";
|
|
13
11
|
const { componentName, create } = createComponent("swipe");
|
|
@@ -32,29 +30,21 @@ const _sfc_main = create({
|
|
|
32
30
|
},
|
|
33
31
|
emits: ["open", "close"],
|
|
34
32
|
setup(props, { emit }) {
|
|
35
|
-
const refRandomId = Math.random().toString(36).slice(-8);
|
|
36
33
|
const classes = computed(() => {
|
|
37
34
|
const prefixCls = componentName;
|
|
38
35
|
return {
|
|
39
36
|
[prefixCls]: true
|
|
40
37
|
};
|
|
41
38
|
});
|
|
42
|
-
const getRefWidth =
|
|
43
|
-
|
|
44
|
-
return
|
|
39
|
+
const getRefWidth = (ref2) => {
|
|
40
|
+
var _a;
|
|
41
|
+
return ((_a = ref2.value) == null ? void 0 : _a.clientWidth) || 0;
|
|
45
42
|
};
|
|
46
|
-
const leftRef = ref()
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
const
|
|
50
|
-
|
|
51
|
-
leftRefWidth.value = await getRefWidth(leftRef);
|
|
52
|
-
rightRefWidth.value = await getRefWidth(rightRef);
|
|
53
|
-
};
|
|
54
|
-
onMounted(() => {
|
|
55
|
-
setTimeout(() => {
|
|
56
|
-
initWidth();
|
|
57
|
-
}, 100);
|
|
43
|
+
const leftRef = ref(), leftRefWidth = computed(() => {
|
|
44
|
+
return getRefWidth(leftRef);
|
|
45
|
+
});
|
|
46
|
+
const rightRef = ref(), rightRefWidth = computed(() => {
|
|
47
|
+
return getRefWidth(rightRef);
|
|
58
48
|
});
|
|
59
49
|
let opened = false;
|
|
60
50
|
let position = "";
|
|
@@ -114,7 +104,7 @@ const _sfc_main = create({
|
|
|
114
104
|
return;
|
|
115
105
|
touch.start(event);
|
|
116
106
|
},
|
|
117
|
-
|
|
107
|
+
onTouchMove(event) {
|
|
118
108
|
if (props.disabled)
|
|
119
109
|
return;
|
|
120
110
|
touch.move(event);
|
|
@@ -160,15 +150,20 @@ const _sfc_main = create({
|
|
|
160
150
|
...touchMethods,
|
|
161
151
|
leftRef,
|
|
162
152
|
rightRef,
|
|
163
|
-
refRandomId,
|
|
164
153
|
open,
|
|
165
154
|
close
|
|
166
155
|
};
|
|
167
156
|
}
|
|
168
157
|
});
|
|
169
|
-
const _hoisted_1 =
|
|
158
|
+
const _hoisted_1 = {
|
|
159
|
+
class: "nut-swipe__left",
|
|
160
|
+
ref: "leftRef"
|
|
161
|
+
};
|
|
170
162
|
const _hoisted_2 = { class: "nut-swipe__content" };
|
|
171
|
-
const _hoisted_3 =
|
|
163
|
+
const _hoisted_3 = {
|
|
164
|
+
class: "nut-swipe__right",
|
|
165
|
+
ref: "rightRef"
|
|
166
|
+
};
|
|
172
167
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
173
168
|
return openBlock(), createElementBlock("view", {
|
|
174
169
|
class: normalizeClass(_ctx.classes),
|
|
@@ -178,26 +173,16 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
178
173
|
onTouchend: _cache[2] || (_cache[2] = (...args) => _ctx.onTouchEnd && _ctx.onTouchEnd(...args)),
|
|
179
174
|
onTouchcancel: _cache[3] || (_cache[3] = (...args) => _ctx.onTouchEnd && _ctx.onTouchEnd(...args))
|
|
180
175
|
}, [
|
|
181
|
-
createElementVNode("view",
|
|
182
|
-
class: "nut-swipe__left",
|
|
183
|
-
ref: "leftRef",
|
|
184
|
-
id: "leftRef-" + _ctx.refRandomId
|
|
185
|
-
}, [
|
|
176
|
+
createElementVNode("view", _hoisted_1, [
|
|
186
177
|
renderSlot(_ctx.$slots, "left")
|
|
187
|
-
],
|
|
188
|
-
createTextVNode(),
|
|
178
|
+
], 512),
|
|
189
179
|
createElementVNode("view", _hoisted_2, [
|
|
190
180
|
renderSlot(_ctx.$slots, "default")
|
|
191
181
|
]),
|
|
192
|
-
|
|
193
|
-
createElementVNode("view", {
|
|
194
|
-
class: "nut-swipe__right",
|
|
195
|
-
ref: "rightRef",
|
|
196
|
-
id: "rightRef-" + _ctx.refRandomId
|
|
197
|
-
}, [
|
|
182
|
+
createElementVNode("view", _hoisted_3, [
|
|
198
183
|
renderSlot(_ctx.$slots, "right")
|
|
199
|
-
],
|
|
184
|
+
], 512)
|
|
200
185
|
], 38);
|
|
201
186
|
}
|
|
202
|
-
var
|
|
203
|
-
export {
|
|
187
|
+
var index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
188
|
+
export { index as default };
|
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.2.6
|
|
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 { reactive, ref, computed, provide, onDeactivated, onBeforeUnmount, watch, openBlock, createElementBlock, normalizeClass, createElementVNode, normalizeStyle, renderSlot,
|
|
6
|
+
import { reactive, ref, computed, provide, onDeactivated, onBeforeUnmount, watch, nextTick, 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
|
import "../locale/lang";
|
|
13
11
|
const DISTANCE = 5;
|
|
@@ -117,7 +115,6 @@ const _sfc_main = create({
|
|
|
117
115
|
emits: ["change"],
|
|
118
116
|
setup(props, { emit, slots }) {
|
|
119
117
|
const container = ref();
|
|
120
|
-
const refRandomId = Math.random().toString(36).slice(-8);
|
|
121
118
|
const state = reactive({
|
|
122
119
|
active: 0,
|
|
123
120
|
num: 0,
|
|
@@ -208,7 +205,7 @@ const _sfc_main = create({
|
|
|
208
205
|
return Math.min(Math.max(num, min), max);
|
|
209
206
|
};
|
|
210
207
|
const requestFrame = (fn) => {
|
|
211
|
-
requestAnimationFrame.call(
|
|
208
|
+
window.requestAnimationFrame.call(window, fn);
|
|
212
209
|
};
|
|
213
210
|
const getOffset = (active, offset = 0) => {
|
|
214
211
|
let currentPosition = active * size.value;
|
|
@@ -320,21 +317,21 @@ const _sfc_main = create({
|
|
|
320
317
|
autoplay();
|
|
321
318
|
}, Number(props.autoPlay));
|
|
322
319
|
};
|
|
323
|
-
const init =
|
|
320
|
+
const init = (active = +props.initPage) => {
|
|
324
321
|
stopAutoPlay();
|
|
325
|
-
state.rect =
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
autoplay();
|
|
335
|
-
}
|
|
322
|
+
state.rect = container.value.getBoundingClientRect();
|
|
323
|
+
active = Math.min(childCount.value - 1, active);
|
|
324
|
+
state.width = props.width ? +props.width : state.rect.width;
|
|
325
|
+
state.height = props.height ? +props.height : state.rect.height;
|
|
326
|
+
state.active = active;
|
|
327
|
+
state.offset = getOffset(state.active);
|
|
328
|
+
state.moving = true;
|
|
329
|
+
getStyle();
|
|
330
|
+
autoplay();
|
|
336
331
|
};
|
|
337
332
|
const onTouchStart = (e) => {
|
|
333
|
+
if (props.isPreventDefault)
|
|
334
|
+
e.preventDefault();
|
|
338
335
|
if (props.isStopPropagation)
|
|
339
336
|
e.stopPropagation();
|
|
340
337
|
if (!props.touchable)
|
|
@@ -397,25 +394,17 @@ const _sfc_main = create({
|
|
|
397
394
|
watch(
|
|
398
395
|
() => props.initPage,
|
|
399
396
|
(val) => {
|
|
400
|
-
|
|
401
|
-
init(
|
|
402
|
-
});
|
|
403
|
-
eventCenter.once(getCurrentInstance().router.onReady, () => {
|
|
404
|
-
init(+val);
|
|
397
|
+
nextTick(() => {
|
|
398
|
+
init(Number(val));
|
|
405
399
|
});
|
|
406
400
|
}
|
|
407
401
|
);
|
|
408
402
|
watch(
|
|
409
403
|
() => state.children.length,
|
|
410
404
|
() => {
|
|
411
|
-
|
|
405
|
+
nextTick(() => {
|
|
412
406
|
init();
|
|
413
407
|
});
|
|
414
|
-
eventCenter.once(getCurrentInstance().router.onReady, () => {
|
|
415
|
-
Taro.nextTick(() => {
|
|
416
|
-
init();
|
|
417
|
-
});
|
|
418
|
-
});
|
|
419
408
|
}
|
|
420
409
|
);
|
|
421
410
|
watch(
|
|
@@ -426,7 +415,6 @@ const _sfc_main = create({
|
|
|
426
415
|
);
|
|
427
416
|
return {
|
|
428
417
|
state,
|
|
429
|
-
refRandomId,
|
|
430
418
|
classes,
|
|
431
419
|
container,
|
|
432
420
|
componentName,
|
|
@@ -439,17 +427,14 @@ const _sfc_main = create({
|
|
|
439
427
|
};
|
|
440
428
|
}
|
|
441
429
|
});
|
|
442
|
-
const _hoisted_1 = ["id", "catch-move"];
|
|
443
430
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
444
431
|
return openBlock(), createElementBlock("view", {
|
|
445
432
|
ref: "container",
|
|
446
|
-
id: "container-" + _ctx.refRandomId,
|
|
447
433
|
class: normalizeClass(_ctx.classes),
|
|
448
434
|
onTouchstart: _cache[0] || (_cache[0] = (...args) => _ctx.onTouchStart && _ctx.onTouchStart(...args)),
|
|
449
435
|
onTouchmove: _cache[1] || (_cache[1] = (...args) => _ctx.onTouchMove && _ctx.onTouchMove(...args)),
|
|
450
436
|
onTouchend: _cache[2] || (_cache[2] = (...args) => _ctx.onTouchEnd && _ctx.onTouchEnd(...args)),
|
|
451
|
-
onTouchcancel: _cache[3] || (_cache[3] = (...args) => _ctx.onTouchEnd && _ctx.onTouchEnd(...args))
|
|
452
|
-
"catch-move": _ctx.isPreventDefault
|
|
437
|
+
onTouchcancel: _cache[3] || (_cache[3] = (...args) => _ctx.onTouchEnd && _ctx.onTouchEnd(...args))
|
|
453
438
|
}, [
|
|
454
439
|
createElementVNode("view", {
|
|
455
440
|
class: normalizeClass({
|
|
@@ -460,9 +445,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
460
445
|
}, [
|
|
461
446
|
renderSlot(_ctx.$slots, "default")
|
|
462
447
|
], 6),
|
|
463
|
-
createTextVNode(),
|
|
464
448
|
renderSlot(_ctx.$slots, "page"),
|
|
465
|
-
createTextVNode(),
|
|
466
449
|
_ctx.paginationVisible && !_ctx.slots.page ? (openBlock(), createElementBlock("view", {
|
|
467
450
|
key: 0,
|
|
468
451
|
class: normalizeClass({
|
|
@@ -480,7 +463,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
480
463
|
}, null, 6);
|
|
481
464
|
}), 128))
|
|
482
465
|
], 2)) : createCommentVNode("", true)
|
|
483
|
-
],
|
|
466
|
+
], 34);
|
|
484
467
|
}
|
|
485
468
|
var Swiper = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
486
469
|
export { Swiper as default };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.2.6
|
|
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 { inject, getCurrentInstance, reactive, computed, onUnmounted, 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
|
import "../locale/lang";
|
|
11
11
|
const { create, componentName } = createComponent("swiper-item");
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.2.6
|
|
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 { computed, watch, resolveComponent, openBlock, createElementBlock, normalizeClass, normalizeStyle, createElementVNode, createBlock, mergeProps, createCommentVNode,
|
|
6
|
+
import { computed, watch, resolveComponent, openBlock, createElementBlock, normalizeClass, normalizeStyle, createElementVNode, createBlock, mergeProps, createCommentVNode, Fragment, withDirectives, toDisplayString, vShow } 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";
|
|
@@ -111,17 +111,17 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
111
111
|
style: normalizeStyle(_ctx.style)
|
|
112
112
|
}, [
|
|
113
113
|
createElementVNode("view", _hoisted_1, [
|
|
114
|
-
_ctx.loading ? (openBlock(), createBlock(_component_nut_icon, mergeProps({
|
|
115
|
-
|
|
114
|
+
_ctx.loading ? (openBlock(), createBlock(_component_nut_icon, mergeProps({
|
|
115
|
+
key: 0,
|
|
116
|
+
name: _ctx.name
|
|
117
|
+
}, _ctx.$attrs, {
|
|
116
118
|
size: _ctx.size,
|
|
117
119
|
color: _ctx.color
|
|
118
120
|
}), null, 16, ["name", "size", "color"])) : createCommentVNode("", true),
|
|
119
|
-
createTextVNode(),
|
|
120
121
|
_ctx.activeText ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
121
122
|
withDirectives(createElementVNode("view", { class: "nut-switch-label open" }, toDisplayString(_ctx.activeText), 513), [
|
|
122
123
|
[vShow, _ctx.modelValue]
|
|
123
124
|
]),
|
|
124
|
-
createTextVNode(),
|
|
125
125
|
withDirectives(createElementVNode("view", { class: "nut-switch-label close" }, toDisplayString(_ctx.inactiveText), 513), [
|
|
126
126
|
[vShow, !_ctx.modelValue]
|
|
127
127
|
])
|
|
@@ -129,5 +129,5 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
129
129
|
])
|
|
130
130
|
], 6);
|
|
131
131
|
}
|
|
132
|
-
var
|
|
133
|
-
export {
|
|
132
|
+
var index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
133
|
+
export { index as default };
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.2.6
|
|
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 { toRefs,
|
|
6
|
+
import { toRefs, ref, reactive, provide, watch, onMounted, nextTick, openBlock, createElementBlock, normalizeStyle, createElementVNode, normalizeClass, renderSlot } from "vue";
|
|
7
7
|
import { c as createComponent } from "./component.js";
|
|
8
|
-
import Taro from "@tarojs/taro";
|
|
9
8
|
import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
|
|
10
9
|
import "../locale/lang";
|
|
11
10
|
const { create } = createComponent("tabbar");
|
|
@@ -47,15 +46,16 @@ const _sfc_main = create({
|
|
|
47
46
|
emits: ["tab-switch", "update:visible"],
|
|
48
47
|
setup(props, { emit, slots }) {
|
|
49
48
|
const { bottom, placeholder } = toRefs(props);
|
|
49
|
+
const height = ref();
|
|
50
50
|
const mdValue = reactive({
|
|
51
51
|
val: props.visible,
|
|
52
52
|
children: []
|
|
53
53
|
});
|
|
54
|
-
const
|
|
55
|
-
function changeIndex(
|
|
54
|
+
const nutTabbar = ref(null);
|
|
55
|
+
function changeIndex(index2, active) {
|
|
56
56
|
emit("update:visible", active);
|
|
57
57
|
parentData.modelValue = active;
|
|
58
|
-
emit("tab-switch", parentData.children[
|
|
58
|
+
emit("tab-switch", parentData.children[index2], active);
|
|
59
59
|
}
|
|
60
60
|
let parentData = reactive({
|
|
61
61
|
children: mdValue.children,
|
|
@@ -74,17 +74,15 @@ const _sfc_main = create({
|
|
|
74
74
|
);
|
|
75
75
|
onMounted(() => {
|
|
76
76
|
if (bottom.value && placeholder.value) {
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
height.value = res[0].height;
|
|
82
|
-
});
|
|
83
|
-
}, 500);
|
|
77
|
+
nextTick(() => {
|
|
78
|
+
var _a;
|
|
79
|
+
height.value = (_a = nutTabbar == null ? void 0 : nutTabbar.value) == null ? void 0 : _a.getBoundingClientRect().height;
|
|
80
|
+
});
|
|
84
81
|
}
|
|
85
82
|
});
|
|
86
83
|
return {
|
|
87
84
|
changeIndex,
|
|
85
|
+
nutTabbar,
|
|
88
86
|
height
|
|
89
87
|
};
|
|
90
88
|
}
|
|
@@ -108,5 +106,5 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
108
106
|
renderSlot(_ctx.$slots, "default")
|
|
109
107
|
], 2));
|
|
110
108
|
}
|
|
111
|
-
var
|
|
112
|
-
export {
|
|
109
|
+
var index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
110
|
+
export { index as default };
|