@nutui/nutui 3.2.5-beta.1 → 3.2.6-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -0
- package/dist/nutui.es.js +4214 -4444
- package/dist/nutui.umd.js +4213 -4543
- package/dist/packages/_es/ActionSheet.js +18 -19
- package/dist/packages/_es/Address.js +94 -85
- package/dist/packages/_es/AddressList.js +25 -12
- package/dist/packages/_es/Animate.js +3 -3
- package/dist/packages/_es/Audio.js +9 -2
- package/dist/packages/_es/AudioOperate.js +5 -1
- package/dist/packages/_es/Avatar.js +10 -10
- package/dist/packages/_es/AvatarGroup.js +5 -5
- package/dist/packages/_es/BackTop.js +55 -108
- package/dist/packages/_es/Badge.js +6 -4
- package/dist/packages/_es/Barrage.js +79 -103
- package/dist/packages/_es/Button.js +5 -3
- package/dist/packages/_es/Calendar.js +36 -23
- package/dist/packages/_es/CalendarItem.js +4 -3
- package/dist/packages/_es/Card.js +15 -5
- package/dist/packages/_es/Cascader.js +12 -11
- package/dist/packages/_es/Category.js +13 -12
- package/dist/packages/_es/CategoryPane.js +17 -13
- package/dist/packages/_es/Cell.js +9 -12
- package/dist/packages/_es/CellGroup.js +4 -2
- package/dist/packages/_es/Checkbox.js +1 -1
- package/dist/packages/_es/CheckboxGroup.js +2 -2
- package/dist/packages/_es/CircleProgress.js +98 -82
- package/dist/packages/_es/Col.js +1 -1
- package/dist/packages/_es/Collapse.js +65 -34
- package/dist/packages/_es/CollapseItem.js +93 -60
- package/dist/packages/_es/Comment.js +43 -19
- package/dist/packages/_es/ConfigProvider.js +1 -1
- package/dist/packages/_es/CountDown.js +3 -3
- package/dist/packages/_es/CountUp.js +47 -52
- package/dist/packages/_es/DatePicker.js +37 -54
- package/dist/packages/_es/Dialog.js +9 -88
- package/dist/packages/_es/Divider.js +3 -3
- package/dist/packages/_es/Drag.js +75 -49
- package/dist/packages/_es/Ecard.js +20 -18
- package/dist/packages/_es/Elevator.js +101 -76
- package/dist/packages/_es/Ellipsis.js +140 -100
- package/dist/packages/_es/Empty.js +6 -4
- package/dist/packages/_es/FixedNav.js +11 -6
- package/dist/packages/_es/Form.js +4 -4
- package/dist/packages/_es/FormItem.js +3 -1
- package/dist/packages/_es/Grid.js +1 -1
- package/dist/packages/_es/GridItem.js +10 -27
- package/dist/packages/_es/Icon.js +1 -1
- package/dist/packages/_es/Image.js +13 -114
- package/dist/packages/_es/ImagePreview.js +154 -400
- package/dist/packages/_es/Indicator.js +3 -3
- package/dist/packages/_es/InfiniteLoading.js +103 -115
- package/dist/packages/_es/Input.js +54 -26
- package/dist/packages/_es/InputNumber.js +25 -16
- package/dist/packages/_es/Invoice.js +6 -5
- package/dist/packages/_es/Layout.js +1 -1
- package/dist/packages/_es/List.js +47 -34
- package/dist/packages/_es/Menu.js +35 -35
- package/dist/packages/_es/MenuItem.js +56 -29
- package/dist/packages/_es/Navbar.js +49 -39
- package/dist/packages/_es/NoticeBar.js +52 -41
- package/dist/packages/_es/Notify.js +37 -166
- package/dist/packages/_es/NumberKeyboard.js +15 -20
- package/dist/packages/_es/OldPicker.js +130 -116
- package/dist/packages/_es/OverLay.js +5 -28
- package/dist/packages/_es/Pagination.js +8 -5
- package/dist/packages/_es/Picker.js +196 -65
- package/dist/packages/_es/Popover.js +201 -881
- package/dist/packages/_es/Popup.js +28 -84
- package/dist/packages/_es/Price.js +22 -6
- package/dist/packages/_es/Progress.js +18 -11
- package/dist/packages/_es/PullRefresh.js +4 -2
- package/dist/packages/_es/Radio.js +3 -3
- package/dist/packages/_es/RadioGroup.js +1 -1
- package/dist/packages/_es/Range.js +48 -34
- package/dist/packages/_es/Rate.js +15 -14
- package/dist/packages/_es/Row.js +1 -1
- package/dist/packages/_es/SearchBar.js +39 -36
- package/dist/packages/_es/ShortPassword.js +97 -66
- package/dist/packages/_es/SideNavBar.js +7 -18
- package/dist/packages/_es/SideNavBarItem.js +1 -1
- package/dist/packages/_es/Signature.js +113 -80
- package/dist/packages/_es/Skeleton.js +12 -11
- package/dist/packages/_es/Sku.js +63 -38
- package/dist/packages/_es/Step.js +7 -2
- package/dist/packages/_es/Steps.js +1 -1
- package/dist/packages/_es/Sticky.js +33 -23
- package/dist/packages/_es/SubSideNavBar.js +4 -2
- package/dist/packages/_es/Swipe.js +41 -26
- package/dist/packages/_es/Swiper.js +38 -21
- 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 +40 -9
- package/dist/packages/_es/TabbarItem.js +24 -30
- package/dist/packages/_es/Table.js +22 -17
- package/dist/packages/_es/Tabs.js +49 -16
- package/dist/packages/_es/Tag.js +6 -5
- package/dist/packages/_es/TextArea.js +114 -49
- package/dist/packages/_es/TimeDetail.js +4 -3
- package/dist/packages/_es/TimePannel.js +3 -3
- package/dist/packages/_es/TimeSelect.js +12 -10
- package/dist/packages/_es/Toast.js +53 -164
- package/dist/packages/_es/TrendArrow.js +6 -4
- package/dist/packages/_es/Uploader.js +141 -140
- package/dist/packages/_es/Video.js +72 -5
- package/dist/packages/_es/WaterMark.js +22 -14
- package/dist/packages/_es/common.js +1 -1
- package/dist/packages/_es/component.js +1 -1
- package/dist/packages/_es/index.js +44 -6
- package/dist/packages/_es/{index5.js → index.taro.js} +167 -154
- package/dist/packages/_es/index2.js +8 -31
- package/dist/packages/_es/index3.js +64 -7
- package/dist/packages/_es/index4.js +424 -62
- 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 +21 -3
- package/dist/packages/_es/use-lock-scroll.js +23 -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/signature/index.scss +4 -1
- package/dist/packages/swiperitem/index.scss +1 -1
- package/dist/smartips/attributes.json +4 -0
- package/dist/smartips/tags.json +2 -1
- package/dist/smartips/web-types.json +10 -1
- package/dist/style.css +1 -1
- package/dist/styles/themes/default.scss +44 -44
- package/dist/styles/themes/jdb.scss +44 -44
- package/dist/styles/themes/jddkh.scss +44 -44
- package/dist/styles/themes/jdt.scss +44 -44
- package/dist/types/__VUE/actionsheet/{index.vue.d.ts → index.taro.vue.d.ts} +9 -9
- package/dist/types/__VUE/address/{index.vue.d.ts → index.taro.vue.d.ts} +73 -33
- package/dist/types/__VUE/addresslist/{index.vue.d.ts → index.taro.vue.d.ts} +0 -0
- package/dist/types/__VUE/animate/{index.vue.d.ts → index.taro.vue.d.ts} +0 -0
- package/dist/types/__VUE/avatar/{index.vue.d.ts → index.taro.vue.d.ts} +6 -6
- package/dist/types/__VUE/avatargroup/{index.vue.d.ts → index.taro.vue.d.ts} +0 -0
- package/dist/types/__VUE/backtop/{index.vue.d.ts → index.taro.vue.d.ts} +15 -37
- package/dist/types/__VUE/badge/{index.vue.d.ts → index.taro.vue.d.ts} +0 -0
- package/dist/types/__VUE/barrage/{index.vue.d.ts → index.taro.vue.d.ts} +2 -2
- package/dist/types/__VUE/button/index.taro.vue.d.ts +116 -0
- package/dist/types/__VUE/button/index.vue.d.ts +1 -1
- package/dist/types/__VUE/calendar/{index.vue.d.ts → index.taro.vue.d.ts} +13 -1
- package/dist/types/__VUE/calendaritem/{index.vue.d.ts → index.taro.vue.d.ts} +17 -17
- package/dist/types/__VUE/card/{index.vue.d.ts → index.taro.vue.d.ts} +0 -0
- package/dist/types/__VUE/cascader/{index.vue.d.ts → index.taro.vue.d.ts} +1 -1
- package/dist/types/__VUE/category/{index.vue.d.ts → index.taro.vue.d.ts} +0 -0
- package/dist/types/__VUE/categorypane/{index.vue.d.ts → index.taro.vue.d.ts} +0 -0
- package/dist/types/__VUE/cell/{index.vue.d.ts → index.taro.vue.d.ts} +13 -6
- package/dist/types/__VUE/checkbox/{index.vue.d.ts → index.taro.vue.d.ts} +0 -0
- package/dist/types/__VUE/circleprogress/{index.vue.d.ts → index.taro.vue.d.ts} +14 -15
- package/dist/types/__VUE/collapse/{index.vue.d.ts → index.taro.vue.d.ts} +1 -1
- package/dist/types/__VUE/collapseitem/{index.vue.d.ts → index.taro.vue.d.ts} +2 -10
- package/dist/types/__VUE/comment/{index.vue.d.ts → index.taro.vue.d.ts} +1 -2
- package/dist/types/__VUE/configprovider/{index.vue.d.ts → index.taro.vue.d.ts} +0 -0
- package/dist/types/__VUE/countdown/{index.vue.d.ts → index.taro.vue.d.ts} +0 -0
- package/dist/types/__VUE/countup/{index.vue.d.ts → index.taro.vue.d.ts} +5 -7
- package/dist/types/__VUE/datepicker/{index.vue.d.ts → index.taro.vue.d.ts} +5 -5
- package/dist/types/__VUE/dialog/{index.vue.d.ts → index.taro.vue.d.ts} +9 -12
- package/dist/types/__VUE/divider/{index.vue.d.ts → index.taro.vue.d.ts} +1 -1
- package/dist/types/__VUE/drag/{index.vue.d.ts → index.taro.vue.d.ts} +2 -1
- package/dist/types/__VUE/ecard/{index.vue.d.ts → index.taro.vue.d.ts} +3 -3
- package/dist/types/__VUE/elevator/{index.vue.d.ts → index.taro.vue.d.ts} +11 -2
- package/dist/types/__VUE/ellipsis/{index.vue.d.ts → index.taro.vue.d.ts} +4 -0
- package/dist/types/__VUE/empty/{index.vue.d.ts → index.taro.vue.d.ts} +0 -0
- package/dist/types/__VUE/fixednav/{index.vue.d.ts → index.taro.vue.d.ts} +0 -0
- package/dist/types/__VUE/form/{index.vue.d.ts → index.taro.vue.d.ts} +0 -0
- package/dist/types/__VUE/grid/{index.vue.d.ts → index.taro.vue.d.ts} +1 -1
- package/dist/types/__VUE/griditem/{index.vue.d.ts → index.taro.vue.d.ts} +2 -27
- package/dist/types/__VUE/icon/index.taro.vue.d.ts +74 -0
- package/dist/types/__VUE/image/index.taro.vue.d.ts +33 -0
- package/dist/types/__VUE/imagepreview/{index.vue.d.ts → index.taro.vue.d.ts} +40 -42
- package/dist/types/__VUE/indicator/{index.vue.d.ts → index.taro.vue.d.ts} +0 -0
- package/dist/types/__VUE/infiniteloading/{index.vue.d.ts → index.taro.vue.d.ts} +15 -8
- package/dist/types/__VUE/input/{index.vue.d.ts → index.taro.vue.d.ts} +34 -16
- package/dist/types/__VUE/inputnumber/{index.vue.d.ts → index.taro.vue.d.ts} +2 -2
- package/dist/types/__VUE/invoice/{index.vue.d.ts → index.taro.vue.d.ts} +0 -0
- package/dist/types/__VUE/layout/{index.vue.d.ts → index.taro.vue.d.ts} +0 -0
- package/dist/types/__VUE/list/{index.vue.d.ts → index.taro.vue.d.ts} +2 -2
- package/dist/types/__VUE/menu/{index.vue.d.ts → index.taro.vue.d.ts} +1 -0
- package/dist/types/__VUE/menuitem/{index.vue.d.ts → index.taro.vue.d.ts} +0 -0
- package/dist/types/__VUE/navbar/{index.vue.d.ts → index.taro.vue.d.ts} +1 -2
- package/dist/types/__VUE/noticebar/{index.vue.d.ts → index.taro.vue.d.ts} +4 -3
- package/dist/types/__VUE/notify/{index.vue.d.ts → index.taro.vue.d.ts} +10 -25
- package/dist/types/__VUE/numberkeyboard/{index.vue.d.ts → index.taro.vue.d.ts} +5 -29
- package/dist/types/__VUE/oldpicker/{Column.vue.d.ts → ColumnTaro.vue.d.ts} +28 -17
- package/dist/types/__VUE/oldpicker/{index.vue.d.ts → index.taro.vue.d.ts} +64 -44
- package/dist/types/__VUE/overlay/index.taro.vue.d.ts +85 -0
- package/dist/types/__VUE/pagination/{index.vue.d.ts → index.taro.vue.d.ts} +0 -0
- package/dist/types/__VUE/picker/{Column.vue.d.ts → ColumnTaro.vue.d.ts} +16 -4
- package/dist/types/__VUE/picker/{index.vue.d.ts → index.taro.vue.d.ts} +53 -28
- package/dist/types/__VUE/popover/{index.vue.d.ts → index.taro.vue.d.ts} +15 -13
- package/dist/types/__VUE/popup/index.taro.vue.d.ts +1728 -0
- package/dist/types/__VUE/popup/index.vue.d.ts +1 -1
- package/dist/types/__VUE/price/{index.vue.d.ts → index.taro.vue.d.ts} +1 -0
- package/dist/types/__VUE/progress/{index.vue.d.ts → index.taro.vue.d.ts} +1 -1
- package/dist/types/__VUE/radio/{index.vue.d.ts → index.taro.vue.d.ts} +0 -0
- package/dist/types/__VUE/range/{index.vue.d.ts → index.taro.vue.d.ts} +8 -7
- package/dist/types/__VUE/rate/{index.vue.d.ts → index.taro.vue.d.ts} +0 -0
- package/dist/types/__VUE/searchbar/{index.vue.d.ts → index.taro.vue.d.ts} +19 -19
- package/dist/types/__VUE/shortpassword/{index.vue.d.ts → index.taro.vue.d.ts} +6 -21
- package/dist/types/__VUE/sidenavbar/{index.vue.d.ts → index.taro.vue.d.ts} +0 -5
- package/dist/types/__VUE/signature/{index.vue.d.ts → index.taro.vue.d.ts} +8 -5
- package/dist/types/__VUE/skeleton/{index.vue.d.ts → index.taro.vue.d.ts} +0 -0
- package/dist/types/__VUE/sku/{index.vue.d.ts → index.taro.vue.d.ts} +54 -182
- package/dist/types/__VUE/step/index.vue.d.ts +1 -1
- package/dist/types/__VUE/steps/{index.vue.d.ts → index.taro.vue.d.ts} +0 -0
- package/dist/types/__VUE/sticky/{index.vue.d.ts → index.taro.vue.d.ts} +0 -0
- package/dist/types/__VUE/swipe/{index.vue.d.ts → index.taro.vue.d.ts} +2 -1
- package/dist/types/__VUE/swiper/{index.vue.d.ts → index.taro.vue.d.ts} +2 -1
- package/dist/types/__VUE/swiperitem/{index.vue.d.ts → index.taro.vue.d.ts} +0 -0
- package/dist/types/__VUE/switch/{index.vue.d.ts → index.taro.vue.d.ts} +0 -0
- package/dist/types/__VUE/tabbar/{index.vue.d.ts → index.taro.vue.d.ts} +10 -0
- package/dist/types/__VUE/tabbaritem/{index.vue.d.ts → index.taro.vue.d.ts} +9 -9
- package/dist/types/__VUE/table/{index.vue.d.ts → index.taro.vue.d.ts} +0 -0
- package/dist/types/__VUE/tabs/{index.vue.d.ts → index.taro.vue.d.ts} +0 -0
- package/dist/types/__VUE/tag/{index.vue.d.ts → index.taro.vue.d.ts} +4 -4
- package/dist/types/__VUE/textarea/{index.vue.d.ts → index.taro.vue.d.ts} +5 -3
- package/dist/types/__VUE/timedetail/{index.vue.d.ts → index.taro.vue.d.ts} +0 -0
- package/dist/types/__VUE/timepannel/{index.vue.d.ts → index.taro.vue.d.ts} +0 -0
- package/dist/types/__VUE/timeselect/{index.vue.d.ts → index.taro.vue.d.ts} +7 -8
- package/dist/types/__VUE/toast/{index.vue.d.ts → index.taro.vue.d.ts} +44 -22
- package/dist/types/__VUE/trendarrow/{index.vue.d.ts → index.taro.vue.d.ts} +0 -0
- package/dist/types/__VUE/uploader/{index.vue.d.ts → index.taro.vue.d.ts} +22 -13
- package/dist/types/__VUE/video/index.vue.d.ts +3 -1
- package/dist/types/__VUE/watermark/{index.vue.d.ts → index.taro.vue.d.ts} +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/nutui.d.ts +89 -89
- package/package.json +1 -1
- package/dist/types/__VUE/dialog/index.d.ts +0 -48
- package/dist/types/__VUE/image/index.vue.d.ts +0 -117
- package/dist/types/__VUE/image/type.d.ts +0 -6
- package/dist/types/__VUE/imagepreview/imagePreviewItem.vue.d.ts +0 -108
- package/dist/types/__VUE/imagepreview/index.d.ts +0 -25
- package/dist/types/__VUE/notify/index.d.ts +0 -26
- package/dist/types/__VUE/tag/type.d.ts +0 -5
- package/dist/types/__VUE/toast/index.d.ts +0 -16
|
@@ -1,19 +1,20 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.2.
|
|
2
|
+
* @nutui/nutui v3.2.6-beta.1 Mon Oct 31 2022 19:38:22 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
|
-
import { ref, reactive, computed, watch, toRefs, openBlock,
|
|
6
|
+
import { ref, reactive, computed, watch, toRefs, resolveComponent, openBlock, createBlock, normalizeClass, normalizeStyle, withCtx, createElementVNode, createTextVNode, createElementBlock, Fragment, renderList, renderSlot } from "vue";
|
|
7
7
|
import { c as createComponent } from "./component.js";
|
|
8
|
+
import Taro from "@tarojs/taro";
|
|
8
9
|
import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
|
|
9
10
|
import "../locale/lang";
|
|
10
11
|
const { componentName, create } = createComponent("list");
|
|
11
|
-
const clientHeight =
|
|
12
|
+
const clientHeight = Taro.getSystemInfoSync().windowHeight || 667;
|
|
12
13
|
const _sfc_main = create({
|
|
13
14
|
props: {
|
|
14
15
|
height: {
|
|
15
16
|
type: [Number],
|
|
16
|
-
default:
|
|
17
|
+
default: 0
|
|
17
18
|
},
|
|
18
19
|
listData: {
|
|
19
20
|
type: Array,
|
|
@@ -58,9 +59,8 @@ const _sfc_main = create({
|
|
|
58
59
|
const visibleData = computed(() => {
|
|
59
60
|
return state.list.slice(state.start, Math.min(end.value, state.list.length));
|
|
60
61
|
});
|
|
61
|
-
const handleScrollEvent = () => {
|
|
62
|
-
|
|
63
|
-
const scrollTop = (_a = list.value) == null ? void 0 : _a.scrollTop;
|
|
62
|
+
const handleScrollEvent = async (e) => {
|
|
63
|
+
const scrollTop = e.detail ? e.detail.scrollTop : e.target.scrollTop;
|
|
64
64
|
state.start = Math.floor(scrollTop / props.height);
|
|
65
65
|
if (end.value > state.list.length) {
|
|
66
66
|
emit("scroll");
|
|
@@ -87,34 +87,47 @@ const _sfc_main = create({
|
|
|
87
87
|
}
|
|
88
88
|
});
|
|
89
89
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
90
|
-
|
|
90
|
+
const _component_scroll_view = resolveComponent(function() {
|
|
91
|
+
if (process.env.TARO_ENV === "h5") {
|
|
92
|
+
return "taro-scroll-view";
|
|
93
|
+
} else {
|
|
94
|
+
return "scroll-view";
|
|
95
|
+
}
|
|
96
|
+
}());
|
|
97
|
+
return openBlock(), createBlock(_component_scroll_view, {
|
|
91
98
|
class: normalizeClass(_ctx.classes),
|
|
99
|
+
"scroll-y": true,
|
|
92
100
|
style: normalizeStyle({ height: `${_ctx.getContainerHeight}px` }),
|
|
93
|
-
|
|
101
|
+
"scroll-top": "0",
|
|
102
|
+
onScroll: _ctx.handleScrollEvent,
|
|
94
103
|
ref: "list"
|
|
95
|
-
},
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
104
|
+
}, {
|
|
105
|
+
default: withCtx(() => [
|
|
106
|
+
createElementVNode("div", {
|
|
107
|
+
class: "nut-list-phantom",
|
|
108
|
+
style: normalizeStyle({ height: _ctx.listHeight + "px" })
|
|
109
|
+
}, null, 4),
|
|
110
|
+
createTextVNode(),
|
|
111
|
+
createElementVNode("div", {
|
|
112
|
+
class: "nut-list-container",
|
|
113
|
+
style: normalizeStyle({ transform: _ctx.getTransform })
|
|
114
|
+
}, [
|
|
115
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.visibleData, (item, index) => {
|
|
116
|
+
return openBlock(), createElementBlock("div", {
|
|
117
|
+
class: "nut-list-item",
|
|
118
|
+
style: normalizeStyle({ height: _ctx.height + "px" }),
|
|
119
|
+
key: item
|
|
120
|
+
}, [
|
|
121
|
+
renderSlot(_ctx.$slots, "default", {
|
|
122
|
+
item,
|
|
123
|
+
index
|
|
124
|
+
})
|
|
125
|
+
], 4);
|
|
126
|
+
}), 128))
|
|
127
|
+
], 4)
|
|
128
|
+
]),
|
|
129
|
+
_: 3
|
|
130
|
+
}, 8, ["class", "style", "onScroll"]);
|
|
118
131
|
}
|
|
119
|
-
var
|
|
120
|
-
export {
|
|
132
|
+
var index_taro = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
133
|
+
export { index_taro as default };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.2.
|
|
2
|
+
* @nutui/nutui v3.2.6-beta.1 Mon Oct 31 2022 19:38:22 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
|
-
import { ref, computed,
|
|
6
|
+
import { ref, computed, reactive, resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, Fragment, renderList, normalizeStyle, toDisplayString, createTextVNode, createVNode, mergeProps, renderSlot, provide } from "vue";
|
|
7
7
|
import { c as createComponent } from "./component.js";
|
|
8
|
-
import {
|
|
8
|
+
import Taro, { usePageScroll } from "@tarojs/taro";
|
|
9
9
|
import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
|
|
10
10
|
import "../locale/lang";
|
|
11
11
|
const { componentName, create } = createComponent("menu");
|
|
@@ -25,7 +25,7 @@ const _sfc_main = create({
|
|
|
25
25
|
},
|
|
26
26
|
duration: {
|
|
27
27
|
type: [Number, String],
|
|
28
|
-
default: 0
|
|
28
|
+
default: 0.3
|
|
29
29
|
},
|
|
30
30
|
titleIcon: String,
|
|
31
31
|
closeOnClickOverlay: {
|
|
@@ -42,7 +42,7 @@ const _sfc_main = create({
|
|
|
42
42
|
},
|
|
43
43
|
titleClass: [String]
|
|
44
44
|
},
|
|
45
|
-
setup(props
|
|
45
|
+
setup(props) {
|
|
46
46
|
const barRef = ref();
|
|
47
47
|
const offset = ref(0);
|
|
48
48
|
const isScrollFixed = ref(false);
|
|
@@ -82,33 +82,36 @@ const _sfc_main = create({
|
|
|
82
82
|
"scroll-fixed": isScrollFixed.value
|
|
83
83
|
};
|
|
84
84
|
});
|
|
85
|
-
const
|
|
85
|
+
const offsetSignal = ref(false);
|
|
86
|
+
const updateOffset = (item) => {
|
|
86
87
|
if (barRef.value) {
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
offset.
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
88
|
+
offsetSignal.value = true;
|
|
89
|
+
setTimeout(() => {
|
|
90
|
+
Taro.createSelectorQuery().select(".nut-menu__bar.offset-signal").boundingClientRect((rect) => {
|
|
91
|
+
if (props.direction === "down") {
|
|
92
|
+
offset.value = rect.bottom;
|
|
93
|
+
} else {
|
|
94
|
+
offset.value = Taro.getSystemInfoSync().windowHeight - rect.top;
|
|
95
|
+
}
|
|
96
|
+
offsetSignal.value = false;
|
|
97
|
+
item.toggle();
|
|
98
|
+
}).exec();
|
|
99
|
+
}, 100);
|
|
93
100
|
}
|
|
94
101
|
};
|
|
95
102
|
linkChildren({ props, offset });
|
|
96
103
|
const toggleItem = (active) => {
|
|
97
|
-
children.forEach((item,
|
|
98
|
-
if (
|
|
99
|
-
updateOffset();
|
|
100
|
-
item.toggle();
|
|
104
|
+
children.forEach((item, index) => {
|
|
105
|
+
if (index === active) {
|
|
106
|
+
updateOffset(item);
|
|
101
107
|
} else if (item.state.showPopup) {
|
|
102
108
|
item.toggle(false, { immediate: true });
|
|
103
109
|
}
|
|
104
110
|
});
|
|
105
111
|
};
|
|
106
|
-
const
|
|
107
|
-
return Math.max(0, "scrollTop" in el ? el.scrollTop : el.pageYOffset);
|
|
108
|
-
};
|
|
109
|
-
const onScroll = () => {
|
|
112
|
+
const onScroll = (res) => {
|
|
110
113
|
const { scrollFixed } = props;
|
|
111
|
-
const scrollTop =
|
|
114
|
+
const scrollTop = res.scrollTop;
|
|
112
115
|
isScrollFixed.value = scrollTop > (typeof scrollFixed === "boolean" ? 30 : Number(scrollFixed));
|
|
113
116
|
};
|
|
114
117
|
const getClasses = (showPopup) => {
|
|
@@ -122,22 +125,17 @@ const _sfc_main = create({
|
|
|
122
125
|
}
|
|
123
126
|
return str;
|
|
124
127
|
};
|
|
125
|
-
|
|
126
|
-
const { scrollFixed } = props;
|
|
127
|
-
if (scrollFixed) {
|
|
128
|
-
window.addEventListener("scroll", onScroll);
|
|
129
|
-
}
|
|
130
|
-
});
|
|
131
|
-
onUnmounted(() => {
|
|
128
|
+
usePageScroll((res) => {
|
|
132
129
|
const { scrollFixed } = props;
|
|
133
130
|
if (scrollFixed) {
|
|
134
|
-
|
|
131
|
+
onScroll(res);
|
|
135
132
|
}
|
|
136
133
|
});
|
|
137
134
|
return {
|
|
138
135
|
toggleItem,
|
|
139
136
|
children,
|
|
140
137
|
opened,
|
|
138
|
+
offsetSignal,
|
|
141
139
|
classes,
|
|
142
140
|
barRef,
|
|
143
141
|
getClasses
|
|
@@ -152,20 +150,21 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
152
150
|
class: normalizeClass(_ctx.classes)
|
|
153
151
|
}, [
|
|
154
152
|
createElementVNode("view", {
|
|
155
|
-
class: normalizeClass(["nut-menu__bar", { opened: _ctx.opened }]),
|
|
153
|
+
class: normalizeClass(["nut-menu__bar", { opened: _ctx.opened, "offset-signal": _ctx.offsetSignal }]),
|
|
156
154
|
ref: "barRef"
|
|
157
155
|
}, [
|
|
158
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.children, (item,
|
|
156
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.children, (item, index) => {
|
|
159
157
|
return openBlock(), createElementBlock("view", {
|
|
160
|
-
key:
|
|
158
|
+
key: index,
|
|
161
159
|
class: normalizeClass(["nut-menu__item", { disabled: item.disabled, active: item.state.showPopup }]),
|
|
162
|
-
onClick: ($event) => !item.disabled && _ctx.toggleItem(
|
|
160
|
+
onClick: ($event) => !item.disabled && _ctx.toggleItem(index),
|
|
163
161
|
style: normalizeStyle({ color: item.state.showPopup ? _ctx.activeColor : "" })
|
|
164
162
|
}, [
|
|
165
163
|
createElementVNode("view", {
|
|
166
164
|
class: normalizeClass(["nut-menu__title", _ctx.getClasses(item.state.showPopup)])
|
|
167
165
|
}, [
|
|
168
166
|
createElementVNode("view", _hoisted_2, toDisplayString(item.renderTitle()), 1),
|
|
167
|
+
createTextVNode(),
|
|
169
168
|
createVNode(_component_nut_icon, mergeProps(_ctx.$attrs, {
|
|
170
169
|
name: _ctx.titleIcon || (_ctx.direction === "up" ? "arrow-up" : "down-arrow"),
|
|
171
170
|
size: "10",
|
|
@@ -175,8 +174,9 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
175
174
|
], 14, _hoisted_1);
|
|
176
175
|
}), 128))
|
|
177
176
|
], 2),
|
|
177
|
+
createTextVNode(),
|
|
178
178
|
renderSlot(_ctx.$slots, "default")
|
|
179
179
|
], 2);
|
|
180
180
|
}
|
|
181
|
-
var
|
|
182
|
-
export {
|
|
181
|
+
var index_taro = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
182
|
+
export { index_taro as default };
|
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.2.
|
|
2
|
+
* @nutui/nutui v3.2.6-beta.1 Mon Oct 31 2022 19:38:22 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
|
-
import { reactive, computed, inject, getCurrentInstance, resolveComponent, withDirectives, openBlock, createElementBlock, normalizeClass, createElementVNode, normalizeStyle, vShow, createVNode, mergeProps, withCtx, Fragment, renderList, createBlock, createCommentVNode, toDisplayString, renderSlot } from "vue";
|
|
6
|
+
import { reactive, computed, inject, getCurrentInstance, resolveComponent, withDirectives, openBlock, createElementBlock, normalizeClass, createElementVNode, normalizeStyle, vShow, createTextVNode, createVNode, mergeProps, withCtx, Fragment, renderList, createBlock, createCommentVNode, toDisplayString, renderSlot } from "vue";
|
|
7
7
|
import { c as createComponent } from "./component.js";
|
|
8
8
|
import _sfc_main$1 from "./Icon.js";
|
|
9
9
|
import Popup from "./Popup.js";
|
|
10
10
|
import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
|
|
11
11
|
import "../locale/lang";
|
|
12
12
|
import "./pxCheck.js";
|
|
13
|
+
import "./use-lock-scroll.js";
|
|
13
14
|
import "./OverLay.js";
|
|
14
15
|
const { componentName, create } = createComponent("menu-item");
|
|
15
16
|
const _sfc_main = create({
|
|
@@ -119,10 +120,17 @@ const _sfc_main = create({
|
|
|
119
120
|
};
|
|
120
121
|
}
|
|
121
122
|
});
|
|
122
|
-
const _hoisted_1 = { class: "nut-menu-item__content
|
|
123
|
+
const _hoisted_1 = { class: "nut-menu-item__content" };
|
|
123
124
|
const _hoisted_2 = ["onClick"];
|
|
124
125
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
125
126
|
const _component_nut_icon = resolveComponent("nut-icon");
|
|
127
|
+
const _component_scroll_view = resolveComponent(function() {
|
|
128
|
+
if (process.env.TARO_ENV === "h5") {
|
|
129
|
+
return "taro-scroll-view";
|
|
130
|
+
} else {
|
|
131
|
+
return "scroll-view";
|
|
132
|
+
}
|
|
133
|
+
}());
|
|
126
134
|
const _component_nut_popup = resolveComponent("nut-popup");
|
|
127
135
|
return withDirectives((openBlock(), createElementBlock("view", {
|
|
128
136
|
class: normalizeClass(_ctx.classes)
|
|
@@ -134,6 +142,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
134
142
|
}, null, 6), [
|
|
135
143
|
[vShow, _ctx.state.isShowPlaceholderElement]
|
|
136
144
|
]),
|
|
145
|
+
createTextVNode(),
|
|
137
146
|
createVNode(_component_nut_popup, mergeProps({
|
|
138
147
|
style: _ctx.parent.props.direction === "down" ? { top: _ctx.parent.offset.value + "px" } : { bottom: _ctx.parent.offset.value + "px" },
|
|
139
148
|
overlayStyle: _ctx.parent.props.direction === "down" ? { top: _ctx.parent.offset.value + "px" } : { bottom: _ctx.parent.offset.value + "px" }
|
|
@@ -143,41 +152,59 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
143
152
|
position: _ctx.parent.props.direction === "down" ? "top" : "bottom",
|
|
144
153
|
duration: _ctx.parent.props.duration,
|
|
145
154
|
"pop-class": "nut-menu__pop",
|
|
155
|
+
transition: "transition-none",
|
|
146
156
|
overlayClass: "nut-menu__overlay",
|
|
147
157
|
overlay: _ctx.parent.props.overlay,
|
|
148
|
-
onClosed: _ctx.handleClose,
|
|
149
158
|
lockScroll: _ctx.parent.props.lockScroll,
|
|
150
|
-
|
|
159
|
+
onClosed: _ctx.handleClose,
|
|
151
160
|
"close-on-click-overlay": _ctx.parent.props.closeOnClickOverlay
|
|
152
161
|
}), {
|
|
153
162
|
default: withCtx(() => [
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
163
|
+
createVNode(_component_scroll_view, {
|
|
164
|
+
"scroll-y": true,
|
|
165
|
+
style: { "height": "100%" }
|
|
166
|
+
}, {
|
|
167
|
+
default: withCtx(() => [
|
|
168
|
+
createElementVNode("view", _hoisted_1, [
|
|
169
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.options, (option, index) => {
|
|
170
|
+
return openBlock(), createElementBlock("view", {
|
|
171
|
+
key: index,
|
|
172
|
+
class: normalizeClass(["nut-menu-item__option", [{ active: option.value === _ctx.modelValue }]]),
|
|
173
|
+
style: normalizeStyle({ "flex-basis": 100 / _ctx.cols + "%" }),
|
|
174
|
+
onClick: ($event) => _ctx.onClick(option)
|
|
175
|
+
}, [
|
|
176
|
+
option.value === _ctx.modelValue ? (openBlock(), createBlock(_component_nut_icon, mergeProps({
|
|
177
|
+
key: 0,
|
|
178
|
+
class: {
|
|
179
|
+
activeTitleClass: option.value === _ctx.modelValue,
|
|
180
|
+
inactiveTitleClass: option.value !== _ctx.modelValue
|
|
181
|
+
},
|
|
182
|
+
name: _ctx.optionIcon
|
|
183
|
+
}, _ctx.$attrs, {
|
|
184
|
+
color: _ctx.parent.props.activeColor
|
|
185
|
+
}), null, 16, ["class", "name", "color"])) : createCommentVNode("", true),
|
|
186
|
+
createTextVNode(),
|
|
187
|
+
createElementVNode("view", {
|
|
188
|
+
class: normalizeClass({
|
|
189
|
+
activeTitleClass: option.value === _ctx.modelValue,
|
|
190
|
+
inactiveTitleClass: option.value !== _ctx.modelValue
|
|
191
|
+
}),
|
|
192
|
+
style: normalizeStyle({ color: option.value === _ctx.modelValue ? _ctx.parent.props.activeColor : "" })
|
|
193
|
+
}, toDisplayString(option.text), 7)
|
|
194
|
+
], 14, _hoisted_2);
|
|
195
|
+
}), 128)),
|
|
196
|
+
createTextVNode(),
|
|
197
|
+
renderSlot(_ctx.$slots, "default")
|
|
198
|
+
])
|
|
199
|
+
]),
|
|
200
|
+
_: 3
|
|
201
|
+
})
|
|
175
202
|
]),
|
|
176
203
|
_: 3
|
|
177
|
-
}, 16, ["style", "overlayStyle", "visible", "position", "duration", "overlay", "
|
|
204
|
+
}, 16, ["style", "overlayStyle", "visible", "position", "duration", "overlay", "lockScroll", "onClosed", "close-on-click-overlay"])
|
|
178
205
|
], 2)), [
|
|
179
206
|
[vShow, _ctx.state.showWrapper]
|
|
180
207
|
]);
|
|
181
208
|
}
|
|
182
|
-
var
|
|
183
|
-
export {
|
|
209
|
+
var index_taro = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
210
|
+
export { index_taro as default };
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.2.
|
|
2
|
+
* @nutui/nutui v3.2.6-beta.1 Mon Oct 31 2022 19:38:22 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
|
-
import { toRefs, ref, computed, onMounted,
|
|
6
|
+
import { toRefs, ref, computed, onMounted, resolveComponent, openBlock, createElementBlock, normalizeStyle, createElementVNode, normalizeClass, createBlock, createCommentVNode, createTextVNode, toDisplayString, renderSlot, mergeProps } from "vue";
|
|
7
7
|
import { c as createComponent } from "./component.js";
|
|
8
|
+
import Taro from "@tarojs/taro";
|
|
8
9
|
import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
|
|
9
10
|
import "../locale/lang";
|
|
10
11
|
const { componentName, create } = createComponent("navbar");
|
|
@@ -39,8 +40,6 @@ const _sfc_main = create({
|
|
|
39
40
|
emits: ["on-click-back", "on-click-title", "on-click-icon", "on-click-right"],
|
|
40
41
|
setup(props, { emit }) {
|
|
41
42
|
const { border, fixed, safeAreaInsetTop, placeholder, zIndex } = toRefs(props);
|
|
42
|
-
const navBarWrap = ref(null);
|
|
43
|
-
const navBarHtml = ref(null);
|
|
44
43
|
let navHeight = ref(0);
|
|
45
44
|
const classes = computed(() => {
|
|
46
45
|
const prefixCls = componentName;
|
|
@@ -58,11 +57,13 @@ const _sfc_main = create({
|
|
|
58
57
|
});
|
|
59
58
|
onMounted(() => {
|
|
60
59
|
if (fixed.value && placeholder.value) {
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
60
|
+
setTimeout(() => {
|
|
61
|
+
const query = Taro.createSelectorQuery();
|
|
62
|
+
query.select(".navBarHtml").boundingClientRect();
|
|
63
|
+
query.exec((res) => {
|
|
64
|
+
navHeight.value = res[0].height;
|
|
65
|
+
});
|
|
66
|
+
}, 500);
|
|
66
67
|
}
|
|
67
68
|
});
|
|
68
69
|
function handleLeft() {
|
|
@@ -78,8 +79,7 @@ const _sfc_main = create({
|
|
|
78
79
|
emit("on-click-right");
|
|
79
80
|
}
|
|
80
81
|
return {
|
|
81
|
-
|
|
82
|
-
navBarHtml,
|
|
82
|
+
navHeight,
|
|
83
83
|
classes,
|
|
84
84
|
styles,
|
|
85
85
|
handleLeft,
|
|
@@ -90,35 +90,33 @@ const _sfc_main = create({
|
|
|
90
90
|
}
|
|
91
91
|
});
|
|
92
92
|
const _hoisted_1 = {
|
|
93
|
-
key: 0,
|
|
94
|
-
class: "nut-navbar--placeholder",
|
|
95
|
-
ref: "navBarWrap"
|
|
96
|
-
};
|
|
97
|
-
const _hoisted_2 = {
|
|
98
93
|
key: 1,
|
|
99
94
|
class: "nut-navbar__text"
|
|
100
95
|
};
|
|
101
|
-
const
|
|
102
|
-
const
|
|
96
|
+
const _hoisted_2 = { class: "nut-navbar__title" };
|
|
97
|
+
const _hoisted_3 = {
|
|
103
98
|
key: 0,
|
|
104
99
|
class: "nut-navbar__text"
|
|
105
100
|
};
|
|
106
|
-
const
|
|
101
|
+
const _hoisted_4 = {
|
|
107
102
|
key: 1,
|
|
108
103
|
class: "nut-navbar__text"
|
|
109
104
|
};
|
|
110
|
-
const
|
|
111
|
-
const
|
|
105
|
+
const _hoisted_5 = { class: "nut-navbar__title" };
|
|
106
|
+
const _hoisted_6 = {
|
|
112
107
|
key: 0,
|
|
113
108
|
class: "nut-navbar__text"
|
|
114
109
|
};
|
|
115
110
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
116
111
|
const _component_nut_icon = resolveComponent("nut-icon");
|
|
117
|
-
return _ctx.fixed && _ctx.placeholder ? (openBlock(), createElementBlock("view",
|
|
112
|
+
return _ctx.fixed && _ctx.placeholder ? (openBlock(), createElementBlock("view", {
|
|
113
|
+
key: 0,
|
|
114
|
+
class: "nut-navbar--placeholder",
|
|
115
|
+
style: normalizeStyle({ height: _ctx.navHeight + "px" })
|
|
116
|
+
}, [
|
|
118
117
|
createElementVNode("view", {
|
|
119
|
-
class: normalizeClass(_ctx.classes),
|
|
120
|
-
style: normalizeStyle(_ctx.styles)
|
|
121
|
-
ref: "navBarHtml"
|
|
118
|
+
class: normalizeClass([_ctx.classes, "navBarHtml"]),
|
|
119
|
+
style: normalizeStyle(_ctx.styles)
|
|
122
120
|
}, [
|
|
123
121
|
createElementVNode("view", {
|
|
124
122
|
class: "nut-navbar__left",
|
|
@@ -129,15 +127,19 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
129
127
|
color: "#979797",
|
|
130
128
|
name: "left"
|
|
131
129
|
})) : createCommentVNode("", true),
|
|
132
|
-
|
|
130
|
+
createTextVNode(),
|
|
131
|
+
_ctx.leftText ? (openBlock(), createElementBlock("view", _hoisted_1, toDisplayString(_ctx.leftText), 1)) : createCommentVNode("", true),
|
|
132
|
+
createTextVNode(),
|
|
133
133
|
renderSlot(_ctx.$slots, "left")
|
|
134
134
|
]),
|
|
135
|
-
|
|
135
|
+
createTextVNode(),
|
|
136
|
+
createElementVNode("view", _hoisted_2, [
|
|
136
137
|
_ctx.title ? (openBlock(), createElementBlock("view", {
|
|
137
138
|
key: 0,
|
|
138
139
|
class: "title",
|
|
139
140
|
onClick: _cache[1] || (_cache[1] = (...args) => _ctx.handleCenter && _ctx.handleCenter(...args))
|
|
140
141
|
}, toDisplayString(_ctx.title), 1)) : createCommentVNode("", true),
|
|
142
|
+
createTextVNode(),
|
|
141
143
|
_ctx.titIcon ? (openBlock(), createBlock(_component_nut_icon, mergeProps({
|
|
142
144
|
key: 1,
|
|
143
145
|
class: "icon"
|
|
@@ -145,17 +147,20 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
145
147
|
name: _ctx.titIcon,
|
|
146
148
|
onClick: _ctx.handleCenterIcon
|
|
147
149
|
}), null, 16, ["name", "onClick"])) : createCommentVNode("", true),
|
|
150
|
+
createTextVNode(),
|
|
148
151
|
renderSlot(_ctx.$slots, "content")
|
|
149
152
|
]),
|
|
153
|
+
createTextVNode(),
|
|
150
154
|
createElementVNode("view", {
|
|
151
155
|
class: "nut-navbar__right",
|
|
152
156
|
onClick: _cache[2] || (_cache[2] = (...args) => _ctx.handleRight && _ctx.handleRight(...args))
|
|
153
157
|
}, [
|
|
154
|
-
_ctx.desc ? (openBlock(), createElementBlock("view",
|
|
158
|
+
_ctx.desc ? (openBlock(), createElementBlock("view", _hoisted_3, toDisplayString(_ctx.desc), 1)) : createCommentVNode("", true),
|
|
159
|
+
createTextVNode(),
|
|
155
160
|
renderSlot(_ctx.$slots, "right")
|
|
156
161
|
])
|
|
157
162
|
], 6)
|
|
158
|
-
],
|
|
163
|
+
], 4)) : (openBlock(), createElementBlock("view", {
|
|
159
164
|
key: 1,
|
|
160
165
|
class: normalizeClass(_ctx.classes),
|
|
161
166
|
style: normalizeStyle(_ctx.styles)
|
|
@@ -169,32 +174,37 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
169
174
|
color: "#979797",
|
|
170
175
|
name: "left"
|
|
171
176
|
})) : createCommentVNode("", true),
|
|
172
|
-
|
|
177
|
+
createTextVNode(),
|
|
178
|
+
_ctx.leftText ? (openBlock(), createElementBlock("view", _hoisted_4, toDisplayString(_ctx.leftText), 1)) : createCommentVNode("", true),
|
|
179
|
+
createTextVNode(),
|
|
173
180
|
renderSlot(_ctx.$slots, "left")
|
|
174
181
|
]),
|
|
175
|
-
|
|
182
|
+
createTextVNode(),
|
|
183
|
+
createElementVNode("view", _hoisted_5, [
|
|
176
184
|
_ctx.title ? (openBlock(), createElementBlock("view", {
|
|
177
185
|
key: 0,
|
|
178
186
|
class: "title",
|
|
179
187
|
onClick: _cache[4] || (_cache[4] = (...args) => _ctx.handleCenter && _ctx.handleCenter(...args))
|
|
180
188
|
}, toDisplayString(_ctx.title), 1)) : createCommentVNode("", true),
|
|
189
|
+
createTextVNode(),
|
|
181
190
|
_ctx.titIcon ? (openBlock(), createBlock(_component_nut_icon, mergeProps({
|
|
182
191
|
key: 1,
|
|
183
|
-
class: "icon"
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
}), null, 16, ["name", "onClick"])) : createCommentVNode("", true),
|
|
192
|
+
class: "icon",
|
|
193
|
+
name: _ctx.titIcon
|
|
194
|
+
}, _ctx.$attrs, { onClick: _ctx.handleCenterIcon }), null, 16, ["name", "onClick"])) : createCommentVNode("", true),
|
|
195
|
+
createTextVNode(),
|
|
188
196
|
renderSlot(_ctx.$slots, "content")
|
|
189
197
|
]),
|
|
198
|
+
createTextVNode(),
|
|
190
199
|
createElementVNode("view", {
|
|
191
200
|
class: "nut-navbar__right",
|
|
192
201
|
onClick: _cache[5] || (_cache[5] = (...args) => _ctx.handleRight && _ctx.handleRight(...args))
|
|
193
202
|
}, [
|
|
194
|
-
_ctx.desc ? (openBlock(), createElementBlock("view",
|
|
203
|
+
_ctx.desc ? (openBlock(), createElementBlock("view", _hoisted_6, toDisplayString(_ctx.desc), 1)) : createCommentVNode("", true),
|
|
204
|
+
createTextVNode(),
|
|
195
205
|
renderSlot(_ctx.$slots, "right")
|
|
196
206
|
])
|
|
197
207
|
], 6));
|
|
198
208
|
}
|
|
199
|
-
var
|
|
200
|
-
export {
|
|
209
|
+
var index_taro = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
210
|
+
export { index_taro as default };
|