@nutui/nutui 3.2.5 → 3.2.6-beta.2
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 +12 -0
- package/README.md +18 -4
- package/dist/nutui.es.js +305 -209
- package/dist/nutui.umd.js +305 -209
- package/dist/packages/_es/ActionSheet.js +1 -1
- package/dist/packages/_es/Address.js +1 -1
- package/dist/packages/_es/AddressList.js +1 -1
- package/dist/packages/_es/Animate.js +1 -1
- package/dist/packages/_es/Audio.js +1 -1
- package/dist/packages/_es/AudioOperate.js +1 -1
- package/dist/packages/_es/Avatar.js +1 -1
- package/dist/packages/_es/AvatarGroup.js +1 -1
- package/dist/packages/_es/BackTop.js +1 -1
- package/dist/packages/_es/Badge.js +10 -6
- package/dist/packages/_es/Barrage.js +1 -1
- package/dist/packages/_es/Button.js +1 -1
- package/dist/packages/_es/Calendar.js +1 -1
- package/dist/packages/_es/CalendarItem.js +1 -1
- package/dist/packages/_es/Card.js +1 -1
- package/dist/packages/_es/Cascader.js +1 -1
- package/dist/packages/_es/Category.js +1 -1
- package/dist/packages/_es/CategoryPane.js +1 -1
- package/dist/packages/_es/Cell.js +1 -1
- package/dist/packages/_es/CellGroup.js +1 -1
- package/dist/packages/_es/Checkbox.js +1 -1
- package/dist/packages/_es/CheckboxGroup.js +1 -1
- package/dist/packages/_es/CircleProgress.js +1 -1
- package/dist/packages/_es/Col.js +1 -1
- package/dist/packages/_es/Collapse.js +1 -1
- package/dist/packages/_es/CollapseItem.js +1 -1
- package/dist/packages/_es/Comment.js +1 -1
- package/dist/packages/_es/ConfigProvider.js +1 -1
- package/dist/packages/_es/CountDown.js +1 -1
- package/dist/packages/_es/CountUp.js +1 -1
- package/dist/packages/_es/DatePicker.js +1 -1
- package/dist/packages/_es/Dialog.js +1 -1
- package/dist/packages/_es/Divider.js +1 -1
- package/dist/packages/_es/Drag.js +1 -1
- package/dist/packages/_es/Ecard.js +1 -1
- package/dist/packages/_es/Elevator.js +1 -1
- package/dist/packages/_es/Ellipsis.js +1 -1
- package/dist/packages/_es/Empty.js +1 -1
- package/dist/packages/_es/FixedNav.js +1 -1
- package/dist/packages/_es/Form.js +1 -1
- package/dist/packages/_es/FormItem.js +1 -1
- package/dist/packages/_es/Grid.js +1 -1
- package/dist/packages/_es/GridItem.js +1 -1
- package/dist/packages/_es/Icon.js +1 -1
- package/dist/packages/_es/Image.js +1 -1
- package/dist/packages/_es/ImagePreview.js +35 -19
- package/dist/packages/_es/Indicator.js +1 -1
- package/dist/packages/_es/InfiniteLoading.js +1 -1
- package/dist/packages/_es/Input.js +8 -4
- package/dist/packages/_es/InputNumber.js +1 -1
- package/dist/packages/_es/Invoice.js +1 -1
- package/dist/packages/_es/Layout.js +1 -1
- package/dist/packages/_es/List.js +1 -1
- package/dist/packages/_es/Menu.js +1 -1
- package/dist/packages/_es/MenuItem.js +1 -1
- package/dist/packages/_es/Navbar.js +1 -1
- package/dist/packages/_es/NoticeBar.js +5 -3
- package/dist/packages/_es/Notify.js +25 -36
- package/dist/packages/_es/NumberKeyboard.js +1 -1
- package/dist/packages/_es/OldPicker.js +1 -1
- package/dist/packages/_es/OverLay.js +1 -1
- package/dist/packages/_es/Pagination.js +1 -1
- package/dist/packages/_es/Picker.js +13 -6
- package/dist/packages/_es/Popover.js +1 -1
- package/dist/packages/_es/Popup.js +1 -1
- package/dist/packages/_es/Price.js +1 -1
- package/dist/packages/_es/Progress.js +1 -1
- package/dist/packages/_es/PullRefresh.js +1 -1
- package/dist/packages/_es/Radio.js +1 -1
- package/dist/packages/_es/RadioGroup.js +1 -1
- package/dist/packages/_es/Range.js +1 -1
- package/dist/packages/_es/Rate.js +1 -1
- package/dist/packages/_es/Row.js +1 -1
- package/dist/packages/_es/SearchBar.js +1 -1
- package/dist/packages/_es/ShortPassword.js +1 -1
- package/dist/packages/_es/SideNavBar.js +1 -1
- package/dist/packages/_es/SideNavBarItem.js +1 -1
- package/dist/packages/_es/Signature.js +1 -1
- package/dist/packages/_es/Skeleton.js +1 -1
- package/dist/packages/_es/Sku.js +1 -1
- package/dist/packages/_es/Step.js +1 -1
- package/dist/packages/_es/Steps.js +1 -1
- package/dist/packages/_es/Sticky.js +1 -1
- package/dist/packages/_es/SubSideNavBar.js +1 -1
- package/dist/packages/_es/Swipe.js +1 -1
- package/dist/packages/_es/Swiper.js +1 -1
- package/dist/packages/_es/SwiperItem.js +1 -1
- package/dist/packages/_es/Switch.js +1 -1
- package/dist/packages/_es/TabPane.js +1 -1
- package/dist/packages/_es/Tabbar.js +34 -5
- package/dist/packages/_es/TabbarItem.js +1 -1
- package/dist/packages/_es/Table.js +1 -1
- package/dist/packages/_es/Tabs.js +1 -1
- package/dist/packages/_es/Tag.js +1 -1
- package/dist/packages/_es/TextArea.js +1 -1
- package/dist/packages/_es/TimeDetail.js +1 -1
- package/dist/packages/_es/TimePannel.js +1 -1
- package/dist/packages/_es/TimeSelect.js +1 -1
- package/dist/packages/_es/Toast.js +1 -1
- package/dist/packages/_es/TrendArrow.js +1 -1
- package/dist/packages/_es/Uploader.js +1 -1
- package/dist/packages/_es/Video.js +48 -2
- package/dist/packages/_es/WaterMark.js +1 -1
- package/dist/packages/_es/common.js +1 -1
- package/dist/packages/_es/component.js +1 -1
- package/dist/packages/_es/index.js +1 -1
- package/dist/packages/_es/index2.js +1 -1
- package/dist/packages/_es/index3.js +1 -1
- package/dist/packages/_es/index4.js +1 -1
- package/dist/packages/_es/index5.js +1 -1
- 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/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/packages/signature/index.scss +4 -1
- package/dist/packages/swiperitem/index.scss +1 -1
- package/dist/smartips/attributes.json +9 -1
- package/dist/smartips/tags.json +3 -1
- package/dist/smartips/web-types.json +20 -2
- package/dist/style.css +1 -1
- package/dist/styles/themes/default.scss +53 -53
- package/dist/styles/themes/jdb.scss +53 -53
- package/dist/styles/themes/jddkh.scss +53 -53
- package/dist/styles/themes/jdt.scss +53 -53
- package/dist/types/__VUE/actionsheet/index.vue.d.ts +2 -2
- package/dist/types/__VUE/address/index.vue.d.ts +2 -2
- package/dist/types/__VUE/avatar/index.vue.d.ts +2 -2
- package/dist/types/__VUE/avatargroup/index.vue.d.ts +1 -1
- package/dist/types/__VUE/backtop/index.vue.d.ts +1 -1
- package/dist/types/__VUE/badge/index.vue.d.ts +1 -1
- package/dist/types/__VUE/button/index.vue.d.ts +1 -1
- package/dist/types/__VUE/calendar/index.vue.d.ts +1 -1
- package/dist/types/__VUE/cascader/index.vue.d.ts +1 -1
- package/dist/types/__VUE/cell/index.vue.d.ts +3 -3
- package/dist/types/__VUE/collapseitem/index.vue.d.ts +1 -1
- package/dist/types/__VUE/datepicker/index.vue.d.ts +1 -1
- package/dist/types/__VUE/dialog/index.vue.d.ts +2 -2
- package/dist/types/__VUE/divider/index.vue.d.ts +1 -1
- package/dist/types/__VUE/fixednav/index.vue.d.ts +2 -2
- package/dist/types/__VUE/grid/index.vue.d.ts +1 -1
- package/dist/types/__VUE/image/index.vue.d.ts +4 -4
- package/dist/types/__VUE/imagepreview/imagePreviewItem.vue.d.ts +1 -0
- package/dist/types/__VUE/imagepreview/index.vue.d.ts +10 -1
- package/dist/types/__VUE/infiniteloading/index.vue.d.ts +4 -4
- package/dist/types/__VUE/input/index.vue.d.ts +3 -3
- package/dist/types/__VUE/menu/index.vue.d.ts +1 -1
- package/dist/types/__VUE/navbar/index.vue.d.ts +1 -1
- package/dist/types/__VUE/noticebar/index.vue.d.ts +4 -3
- package/dist/types/__VUE/notify/index.vue.d.ts +8 -10
- package/dist/types/__VUE/numberkeyboard/index.vue.d.ts +1 -1
- package/dist/types/__VUE/oldpicker/index.vue.d.ts +2 -2
- package/dist/types/__VUE/picker/index.vue.d.ts +2 -2
- package/dist/types/__VUE/popover/index.vue.d.ts +4 -4
- package/dist/types/__VUE/popup/index.vue.d.ts +3 -3
- package/dist/types/__VUE/range/index.vue.d.ts +1 -1
- package/dist/types/__VUE/shortpassword/index.vue.d.ts +1 -1
- package/dist/types/__VUE/sku/index.vue.d.ts +2 -2
- package/dist/types/__VUE/step/index.vue.d.ts +1 -1
- package/dist/types/__VUE/swipe/index.vue.d.ts +2 -2
- package/dist/types/__VUE/tabbar/index.vue.d.ts +11 -0
- package/dist/types/__VUE/tabbaritem/index.vue.d.ts +1 -1
- package/dist/types/__VUE/toast/index.vue.d.ts +1 -1
- package/dist/types/__VUE/uploader/index.vue.d.ts +1 -1
- package/dist/types/__VUE/video/index.vue.d.ts +4 -2
- package/dist/types/__VUE/watermark/index.vue.d.ts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/package.json +3 -2
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.2.
|
|
2
|
+
* @nutui/nutui v3.2.6-beta.2 Fri Nov 04 2022 17:24:29 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
6
|
import { h, ref, reactive, computed, watch, onMounted, onActivated, onDeactivated, onUnmounted, toRefs, resolveComponent, openBlock, createElementBlock, normalizeClass, withDirectives, normalizeStyle, renderSlot, createBlock, createCommentVNode, createElementVNode, createTextVNode, toDisplayString, withModifiers, createVNode, mergeProps, vShow, Fragment, renderList } from "vue";
|
|
7
7
|
import { c as createComponent } from "./component.js";
|
|
8
|
+
import { p as pxCheck } from "./pxCheck.js";
|
|
8
9
|
import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
|
|
9
10
|
import "../locale/lang";
|
|
10
11
|
const { componentName, create } = createComponent("noticebar");
|
|
@@ -281,7 +282,8 @@ const _sfc_main = create({
|
|
|
281
282
|
onAnimationEnd,
|
|
282
283
|
go,
|
|
283
284
|
handleClickIcon,
|
|
284
|
-
slots
|
|
285
|
+
slots,
|
|
286
|
+
pxCheck
|
|
285
287
|
};
|
|
286
288
|
}
|
|
287
289
|
});
|
|
@@ -370,7 +372,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
370
372
|
return openBlock(), createElementBlock("li", {
|
|
371
373
|
class: "horseLamp_list_item",
|
|
372
374
|
key: index2,
|
|
373
|
-
style: normalizeStyle({ height: _ctx.height }),
|
|
375
|
+
style: normalizeStyle({ height: _ctx.pxCheck(_ctx.height) }),
|
|
374
376
|
onClick: ($event) => _ctx.go(item)
|
|
375
377
|
}, toDisplayString(item), 13, _hoisted_2);
|
|
376
378
|
}), 128))
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.2.
|
|
2
|
+
* @nutui/nutui v3.2.6-beta.2 Fri Nov 04 2022 17:24:29 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
|
-
import {
|
|
6
|
+
import { ref, watch, resolveComponent, openBlock, createBlock, withCtx, createElementVNode, normalizeClass, normalizeStyle, renderSlot, createElementBlock, Fragment, createTextVNode, toDisplayString, createVNode, render, onMounted, h } from "vue";
|
|
7
7
|
import { c as createComponent } from "./component.js";
|
|
8
8
|
import Popup from "./Popup.js";
|
|
9
9
|
import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
|
|
@@ -30,7 +30,7 @@ const _sfc_main = create({
|
|
|
30
30
|
type: String,
|
|
31
31
|
default: "danger"
|
|
32
32
|
},
|
|
33
|
-
|
|
33
|
+
visible: {
|
|
34
34
|
type: Boolean,
|
|
35
35
|
default: false
|
|
36
36
|
},
|
|
@@ -46,58 +46,47 @@ const _sfc_main = create({
|
|
|
46
46
|
onClick: Function,
|
|
47
47
|
unmount: Function
|
|
48
48
|
},
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
const state = reactive({
|
|
52
|
-
mounted: false
|
|
53
|
-
});
|
|
54
|
-
onMounted(() => {
|
|
55
|
-
});
|
|
56
|
-
const showPopup = ref(props.modelVisible);
|
|
49
|
+
emits: ["update:visible"],
|
|
50
|
+
setup(props, { emit }) {
|
|
57
51
|
const clickCover = () => {
|
|
58
52
|
props.onClick && props.onClick();
|
|
59
53
|
};
|
|
54
|
+
let timer = null;
|
|
60
55
|
const clearTimer = () => {
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
timer = null;
|
|
64
|
-
}
|
|
56
|
+
timer && clearTimeout(timer);
|
|
57
|
+
timer = null;
|
|
65
58
|
};
|
|
66
59
|
const hide = () => {
|
|
67
|
-
|
|
60
|
+
emit("update:visible", false);
|
|
68
61
|
};
|
|
69
|
-
const
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
}
|
|
80
|
-
watch(
|
|
81
|
-
() => props.duration,
|
|
82
|
-
(val) => {
|
|
83
|
-
if (val) {
|
|
84
|
-
show();
|
|
62
|
+
const isShowPopup = ref(false);
|
|
63
|
+
const unWatch = watch(
|
|
64
|
+
() => props.visible,
|
|
65
|
+
(newVal) => {
|
|
66
|
+
isShowPopup.value = props.visible;
|
|
67
|
+
const DURATION = props.duration;
|
|
68
|
+
if (newVal && DURATION) {
|
|
69
|
+
timer = setTimeout(() => {
|
|
70
|
+
hide();
|
|
71
|
+
}, DURATION);
|
|
85
72
|
}
|
|
86
|
-
}
|
|
73
|
+
},
|
|
74
|
+
{ immediate: true }
|
|
87
75
|
);
|
|
88
76
|
const onAfterLeave = () => {
|
|
89
77
|
clearTimer();
|
|
78
|
+
unWatch && unWatch();
|
|
90
79
|
props.unmount && props.unmount(props.id);
|
|
91
80
|
props.onClose && props.onClose();
|
|
92
81
|
};
|
|
93
|
-
return {
|
|
82
|
+
return { onAfterLeave, clickCover, isShowPopup };
|
|
94
83
|
}
|
|
95
84
|
});
|
|
96
85
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
97
86
|
const _component_nut_popup = resolveComponent("nut-popup");
|
|
98
87
|
return openBlock(), createBlock(_component_nut_popup, {
|
|
99
|
-
visible: _ctx.
|
|
100
|
-
"onUpdate:visible": _cache[1] || (_cache[1] = ($event) => _ctx.
|
|
88
|
+
visible: _ctx.isShowPopup,
|
|
89
|
+
"onUpdate:visible": _cache[1] || (_cache[1] = ($event) => _ctx.isShowPopup = $event),
|
|
101
90
|
position: _ctx.position,
|
|
102
91
|
overlay: false,
|
|
103
92
|
isWrapTeleport: _ctx.isWrapTeleport
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.2.
|
|
2
|
+
* @nutui/nutui v3.2.6-beta.2 Fri Nov 04 2022 17:24:29 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -330,7 +330,9 @@ const _sfc_main = create({
|
|
|
330
330
|
show: false,
|
|
331
331
|
formattedColumns: props.columns
|
|
332
332
|
});
|
|
333
|
-
let defaultValues = ref(
|
|
333
|
+
let defaultValues = ref(
|
|
334
|
+
Array.isArray(props.modelValue) && props.modelValue.length > 0 ? props.modelValue : []
|
|
335
|
+
);
|
|
334
336
|
const pickerColumn = ref([]);
|
|
335
337
|
const swipeRef = (el) => {
|
|
336
338
|
if (el && pickerColumn.value.length < columnsList.value.length) {
|
|
@@ -369,7 +371,10 @@ const _sfc_main = create({
|
|
|
369
371
|
case "multiple":
|
|
370
372
|
return state.formattedColumns;
|
|
371
373
|
case "cascade":
|
|
372
|
-
return formatCascade(
|
|
374
|
+
return formatCascade(
|
|
375
|
+
state.formattedColumns,
|
|
376
|
+
defaultValues.value ? defaultValues.value : []
|
|
377
|
+
);
|
|
373
378
|
default:
|
|
374
379
|
return [state.formattedColumns];
|
|
375
380
|
}
|
|
@@ -403,6 +408,7 @@ const _sfc_main = create({
|
|
|
403
408
|
};
|
|
404
409
|
const changeHandler = (columnIndex, option) => {
|
|
405
410
|
if (option && Object.keys(option).length) {
|
|
411
|
+
defaultValues.value = defaultValues.value ? defaultValues.value : [];
|
|
406
412
|
if (columnsType.value === "cascade") {
|
|
407
413
|
defaultValues.value[columnIndex] = option.value ? option.value : "";
|
|
408
414
|
let index = columnIndex;
|
|
@@ -467,14 +473,15 @@ const _sfc_main = create({
|
|
|
467
473
|
emit("update:modelValue", newValues);
|
|
468
474
|
}
|
|
469
475
|
},
|
|
470
|
-
{
|
|
476
|
+
{ deep: true }
|
|
471
477
|
);
|
|
472
478
|
watch(
|
|
473
479
|
() => props.visible,
|
|
474
480
|
(val) => {
|
|
475
481
|
state.show = val;
|
|
476
|
-
if (val)
|
|
482
|
+
if (val) {
|
|
477
483
|
pickerColumn.value = [];
|
|
484
|
+
}
|
|
478
485
|
}
|
|
479
486
|
);
|
|
480
487
|
watch(
|
|
@@ -553,7 +560,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
553
560
|
column: column2,
|
|
554
561
|
readonly: _ctx.readonly,
|
|
555
562
|
columnsType: _ctx.columnsType,
|
|
556
|
-
value: _ctx.defaultValues[columnIndex],
|
|
563
|
+
value: _ctx.defaultValues && _ctx.defaultValues[columnIndex],
|
|
557
564
|
threeDimensional: _ctx.threeDimensional,
|
|
558
565
|
swipeDuration: _ctx.swipeDuration,
|
|
559
566
|
onChange: (option) => {
|
package/dist/packages/_es/Row.js
CHANGED
package/dist/packages/_es/Sku.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.2.
|
|
2
|
+
* @nutui/nutui v3.2.6-beta.2 Fri Nov 04 2022 17:24:29 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
|
-
import { reactive, provide, watch, openBlock, createElementBlock, normalizeClass, renderSlot } from "vue";
|
|
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
8
|
import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
|
|
9
9
|
import "../locale/lang";
|
|
@@ -37,14 +37,21 @@ const _sfc_main = create({
|
|
|
37
37
|
safeAreaInsetBottom: {
|
|
38
38
|
type: Boolean,
|
|
39
39
|
default: false
|
|
40
|
+
},
|
|
41
|
+
placeholder: {
|
|
42
|
+
type: Boolean,
|
|
43
|
+
default: false
|
|
40
44
|
}
|
|
41
45
|
},
|
|
42
46
|
emits: ["tab-switch", "update:visible"],
|
|
43
47
|
setup(props, { emit, slots }) {
|
|
48
|
+
const { bottom, placeholder } = toRefs(props);
|
|
49
|
+
const height = ref();
|
|
44
50
|
const mdValue = reactive({
|
|
45
51
|
val: props.visible,
|
|
46
52
|
children: []
|
|
47
53
|
});
|
|
54
|
+
const nutTabbar = ref(null);
|
|
48
55
|
function changeIndex(index2, active) {
|
|
49
56
|
emit("update:visible", active);
|
|
50
57
|
parentData.modelValue = active;
|
|
@@ -65,17 +72,39 @@ const _sfc_main = create({
|
|
|
65
72
|
parentData.modelValue = value;
|
|
66
73
|
}
|
|
67
74
|
);
|
|
75
|
+
onMounted(() => {
|
|
76
|
+
if (bottom.value && placeholder.value) {
|
|
77
|
+
nextTick(() => {
|
|
78
|
+
var _a;
|
|
79
|
+
height.value = (_a = nutTabbar == null ? void 0 : nutTabbar.value) == null ? void 0 : _a.getBoundingClientRect().height;
|
|
80
|
+
});
|
|
81
|
+
}
|
|
82
|
+
});
|
|
68
83
|
return {
|
|
69
|
-
changeIndex
|
|
84
|
+
changeIndex,
|
|
85
|
+
nutTabbar,
|
|
86
|
+
height
|
|
70
87
|
};
|
|
71
88
|
}
|
|
72
89
|
});
|
|
73
90
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
74
|
-
return openBlock(), createElementBlock("
|
|
91
|
+
return _ctx.bottom && _ctx.placeholder ? (openBlock(), createElementBlock("div", {
|
|
92
|
+
key: 0,
|
|
93
|
+
class: "nut-tabbar__placeholder",
|
|
94
|
+
style: normalizeStyle({ height: _ctx.height + "px" })
|
|
95
|
+
}, [
|
|
96
|
+
createElementVNode("view", {
|
|
97
|
+
ref: "nutTabbar",
|
|
98
|
+
class: normalizeClass(["nut-tabbar", { "nut-tabbar-bottom": _ctx.bottom, "nut-tabbar-safebottom": _ctx.safeAreaInsetBottom }])
|
|
99
|
+
}, [
|
|
100
|
+
renderSlot(_ctx.$slots, "default")
|
|
101
|
+
], 2)
|
|
102
|
+
], 4)) : (openBlock(), createElementBlock("view", {
|
|
103
|
+
key: 1,
|
|
75
104
|
class: normalizeClass(["nut-tabbar", { "nut-tabbar-bottom": _ctx.bottom, "nut-tabbar-safebottom": _ctx.safeAreaInsetBottom }])
|
|
76
105
|
}, [
|
|
77
106
|
renderSlot(_ctx.$slots, "default")
|
|
78
|
-
], 2);
|
|
107
|
+
], 2));
|
|
79
108
|
}
|
|
80
109
|
var index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
81
110
|
export { index as default };
|
package/dist/packages/_es/Tag.js
CHANGED