@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,5 +1,5 @@
|
|
|
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
|
*/
|
|
@@ -78,9 +78,9 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
78
78
|
ref: "formRef"
|
|
79
79
|
}, {
|
|
80
80
|
default: withCtx(() => [
|
|
81
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.list, (item,
|
|
81
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.list, (item, index2) => {
|
|
82
82
|
return openBlock(), createBlock(_component_nut_form_item, {
|
|
83
|
-
key:
|
|
83
|
+
key: index2,
|
|
84
84
|
label: item.label,
|
|
85
85
|
required: item.required,
|
|
86
86
|
rules: item.rules,
|
|
@@ -123,7 +123,6 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
123
123
|
]),
|
|
124
124
|
_: 1
|
|
125
125
|
}, 8, ["model-value"]),
|
|
126
|
-
createTextVNode(),
|
|
127
126
|
_ctx.submit ? (openBlock(), createElementBlock("div", _hoisted_2, [
|
|
128
127
|
createVNode(_component_nut_button, {
|
|
129
128
|
type: "primary",
|
|
@@ -138,5 +137,5 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
138
137
|
])) : createCommentVNode("", true)
|
|
139
138
|
], 2);
|
|
140
139
|
}
|
|
141
|
-
var
|
|
142
|
-
export {
|
|
140
|
+
var index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
141
|
+
export { index as default };
|
|
@@ -1,20 +1,19 @@
|
|
|
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, toRefs,
|
|
6
|
+
import { ref, reactive, computed, watch, toRefs, openBlock, createElementBlock, normalizeClass, normalizeStyle, createElementVNode, Fragment, renderList, 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 { componentName, create } = createComponent("list");
|
|
12
|
-
const clientHeight =
|
|
11
|
+
const clientHeight = document.documentElement.clientHeight || document.body.clientHeight || 667;
|
|
13
12
|
const _sfc_main = create({
|
|
14
13
|
props: {
|
|
15
14
|
height: {
|
|
16
15
|
type: [Number],
|
|
17
|
-
default:
|
|
16
|
+
default: 50
|
|
18
17
|
},
|
|
19
18
|
listData: {
|
|
20
19
|
type: Array,
|
|
@@ -59,8 +58,9 @@ const _sfc_main = create({
|
|
|
59
58
|
const visibleData = computed(() => {
|
|
60
59
|
return state.list.slice(state.start, Math.min(end.value, state.list.length));
|
|
61
60
|
});
|
|
62
|
-
const handleScrollEvent =
|
|
63
|
-
|
|
61
|
+
const handleScrollEvent = () => {
|
|
62
|
+
var _a;
|
|
63
|
+
const scrollTop = (_a = list.value) == null ? void 0 : _a.scrollTop;
|
|
64
64
|
state.start = Math.floor(scrollTop / props.height);
|
|
65
65
|
if (end.value > state.list.length) {
|
|
66
66
|
emit("scroll");
|
|
@@ -87,47 +87,34 @@ const _sfc_main = create({
|
|
|
87
87
|
}
|
|
88
88
|
});
|
|
89
89
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
90
|
-
|
|
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, {
|
|
90
|
+
return openBlock(), createElementBlock("div", {
|
|
98
91
|
class: normalizeClass(_ctx.classes),
|
|
99
|
-
"scroll-y": true,
|
|
100
92
|
style: normalizeStyle({ height: `${_ctx.getContainerHeight}px` }),
|
|
101
|
-
|
|
102
|
-
onScroll: _ctx.handleScrollEvent,
|
|
93
|
+
onScrollPassive: _cache[0] || (_cache[0] = (...args) => _ctx.handleScrollEvent && _ctx.handleScrollEvent(...args)),
|
|
103
94
|
ref: "list"
|
|
104
|
-
},
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
], 4)
|
|
128
|
-
]),
|
|
129
|
-
_: 3
|
|
130
|
-
}, 8, ["class", "style", "onScroll"]);
|
|
95
|
+
}, [
|
|
96
|
+
createElementVNode("div", {
|
|
97
|
+
class: "nut-list-phantom",
|
|
98
|
+
style: normalizeStyle({ height: _ctx.listHeight + "px" })
|
|
99
|
+
}, null, 4),
|
|
100
|
+
createElementVNode("div", {
|
|
101
|
+
class: "nut-list-container",
|
|
102
|
+
style: normalizeStyle({ transform: _ctx.getTransform })
|
|
103
|
+
}, [
|
|
104
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.visibleData, (item, index2) => {
|
|
105
|
+
return openBlock(), createElementBlock("div", {
|
|
106
|
+
class: "nut-list-item",
|
|
107
|
+
style: normalizeStyle({ height: _ctx.height + "px" }),
|
|
108
|
+
key: item
|
|
109
|
+
}, [
|
|
110
|
+
renderSlot(_ctx.$slots, "default", {
|
|
111
|
+
item,
|
|
112
|
+
index: index2
|
|
113
|
+
})
|
|
114
|
+
], 4);
|
|
115
|
+
}), 128))
|
|
116
|
+
], 4)
|
|
117
|
+
], 38);
|
|
131
118
|
}
|
|
132
|
-
var
|
|
133
|
-
export {
|
|
119
|
+
var index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
120
|
+
export { index 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
|
-
import { ref, computed, reactive, resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, Fragment, renderList, normalizeStyle, toDisplayString,
|
|
6
|
+
import { ref, computed, onMounted, onUnmounted, reactive, resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, Fragment, renderList, normalizeStyle, toDisplayString, createVNode, mergeProps, renderSlot, provide } from "vue";
|
|
7
7
|
import { c as createComponent } from "./component.js";
|
|
8
|
-
import
|
|
8
|
+
import { u as useRect } from "./index2.js";
|
|
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
|
|
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, { emit, slots }) {
|
|
46
46
|
const barRef = ref();
|
|
47
47
|
const offset = ref(0);
|
|
48
48
|
const isScrollFixed = ref(false);
|
|
@@ -82,36 +82,33 @@ const _sfc_main = create({
|
|
|
82
82
|
"scroll-fixed": isScrollFixed.value
|
|
83
83
|
};
|
|
84
84
|
});
|
|
85
|
-
const
|
|
86
|
-
const updateOffset = (item) => {
|
|
85
|
+
const updateOffset = () => {
|
|
87
86
|
if (barRef.value) {
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
offset.value = Taro.getSystemInfoSync().windowHeight - rect.top;
|
|
95
|
-
}
|
|
96
|
-
offsetSignal.value = false;
|
|
97
|
-
item.toggle();
|
|
98
|
-
}).exec();
|
|
99
|
-
}, 100);
|
|
87
|
+
const rect = useRect(barRef);
|
|
88
|
+
if (props.direction === "down") {
|
|
89
|
+
offset.value = rect.bottom;
|
|
90
|
+
} else {
|
|
91
|
+
offset.value = window.innerHeight - rect.top;
|
|
92
|
+
}
|
|
100
93
|
}
|
|
101
94
|
};
|
|
102
95
|
linkChildren({ props, offset });
|
|
103
96
|
const toggleItem = (active) => {
|
|
104
|
-
children.forEach((item,
|
|
105
|
-
if (
|
|
106
|
-
updateOffset(
|
|
97
|
+
children.forEach((item, index2) => {
|
|
98
|
+
if (index2 === active) {
|
|
99
|
+
updateOffset();
|
|
100
|
+
item.toggle();
|
|
107
101
|
} else if (item.state.showPopup) {
|
|
108
102
|
item.toggle(false, { immediate: true });
|
|
109
103
|
}
|
|
110
104
|
});
|
|
111
105
|
};
|
|
112
|
-
const
|
|
106
|
+
const getScrollTop = (el) => {
|
|
107
|
+
return Math.max(0, "scrollTop" in el ? el.scrollTop : el.pageYOffset);
|
|
108
|
+
};
|
|
109
|
+
const onScroll = () => {
|
|
113
110
|
const { scrollFixed } = props;
|
|
114
|
-
const scrollTop =
|
|
111
|
+
const scrollTop = getScrollTop(window);
|
|
115
112
|
isScrollFixed.value = scrollTop > (typeof scrollFixed === "boolean" ? 30 : Number(scrollFixed));
|
|
116
113
|
};
|
|
117
114
|
const getClasses = (showPopup) => {
|
|
@@ -125,17 +122,22 @@ const _sfc_main = create({
|
|
|
125
122
|
}
|
|
126
123
|
return str;
|
|
127
124
|
};
|
|
128
|
-
|
|
125
|
+
onMounted(() => {
|
|
126
|
+
const { scrollFixed } = props;
|
|
127
|
+
if (scrollFixed) {
|
|
128
|
+
window.addEventListener("scroll", onScroll);
|
|
129
|
+
}
|
|
130
|
+
});
|
|
131
|
+
onUnmounted(() => {
|
|
129
132
|
const { scrollFixed } = props;
|
|
130
133
|
if (scrollFixed) {
|
|
131
|
-
onScroll
|
|
134
|
+
window.removeEventListener("scroll", onScroll);
|
|
132
135
|
}
|
|
133
136
|
});
|
|
134
137
|
return {
|
|
135
138
|
toggleItem,
|
|
136
139
|
children,
|
|
137
140
|
opened,
|
|
138
|
-
offsetSignal,
|
|
139
141
|
classes,
|
|
140
142
|
barRef,
|
|
141
143
|
getClasses
|
|
@@ -150,21 +152,20 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
150
152
|
class: normalizeClass(_ctx.classes)
|
|
151
153
|
}, [
|
|
152
154
|
createElementVNode("view", {
|
|
153
|
-
class: normalizeClass(["nut-menu__bar", { opened: _ctx.opened
|
|
155
|
+
class: normalizeClass(["nut-menu__bar", { opened: _ctx.opened }]),
|
|
154
156
|
ref: "barRef"
|
|
155
157
|
}, [
|
|
156
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.children, (item,
|
|
158
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.children, (item, index2) => {
|
|
157
159
|
return openBlock(), createElementBlock("view", {
|
|
158
|
-
key:
|
|
160
|
+
key: index2,
|
|
159
161
|
class: normalizeClass(["nut-menu__item", { disabled: item.disabled, active: item.state.showPopup }]),
|
|
160
|
-
onClick: ($event) => !item.disabled && _ctx.toggleItem(
|
|
162
|
+
onClick: ($event) => !item.disabled && _ctx.toggleItem(index2),
|
|
161
163
|
style: normalizeStyle({ color: item.state.showPopup ? _ctx.activeColor : "" })
|
|
162
164
|
}, [
|
|
163
165
|
createElementVNode("view", {
|
|
164
166
|
class: normalizeClass(["nut-menu__title", _ctx.getClasses(item.state.showPopup)])
|
|
165
167
|
}, [
|
|
166
168
|
createElementVNode("view", _hoisted_2, toDisplayString(item.renderTitle()), 1),
|
|
167
|
-
createTextVNode(),
|
|
168
169
|
createVNode(_component_nut_icon, mergeProps(_ctx.$attrs, {
|
|
169
170
|
name: _ctx.titleIcon || (_ctx.direction === "up" ? "arrow-up" : "down-arrow"),
|
|
170
171
|
size: "10",
|
|
@@ -174,9 +175,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
174
175
|
], 14, _hoisted_1);
|
|
175
176
|
}), 128))
|
|
176
177
|
], 2),
|
|
177
|
-
createTextVNode(),
|
|
178
178
|
renderSlot(_ctx.$slots, "default")
|
|
179
179
|
], 2);
|
|
180
180
|
}
|
|
181
|
-
var
|
|
182
|
-
export {
|
|
181
|
+
var index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
182
|
+
export { index as default };
|
|
@@ -1,16 +1,15 @@
|
|
|
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, inject, getCurrentInstance, resolveComponent, withDirectives, openBlock, createElementBlock, normalizeClass, createElementVNode, normalizeStyle, vShow,
|
|
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";
|
|
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";
|
|
14
13
|
import "./OverLay.js";
|
|
15
14
|
const { componentName, create } = createComponent("menu-item");
|
|
16
15
|
const _sfc_main = create({
|
|
@@ -120,17 +119,10 @@ const _sfc_main = create({
|
|
|
120
119
|
};
|
|
121
120
|
}
|
|
122
121
|
});
|
|
123
|
-
const _hoisted_1 = { class: "nut-menu-item__content" };
|
|
122
|
+
const _hoisted_1 = { class: "nut-menu-item__content nut-menu-item__overflow" };
|
|
124
123
|
const _hoisted_2 = ["onClick"];
|
|
125
124
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
126
125
|
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
|
-
}());
|
|
134
126
|
const _component_nut_popup = resolveComponent("nut-popup");
|
|
135
127
|
return withDirectives((openBlock(), createElementBlock("view", {
|
|
136
128
|
class: normalizeClass(_ctx.classes)
|
|
@@ -142,7 +134,6 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
142
134
|
}, null, 6), [
|
|
143
135
|
[vShow, _ctx.state.isShowPlaceholderElement]
|
|
144
136
|
]),
|
|
145
|
-
createTextVNode(),
|
|
146
137
|
createVNode(_component_nut_popup, mergeProps({
|
|
147
138
|
style: _ctx.parent.props.direction === "down" ? { top: _ctx.parent.offset.value + "px" } : { bottom: _ctx.parent.offset.value + "px" },
|
|
148
139
|
overlayStyle: _ctx.parent.props.direction === "down" ? { top: _ctx.parent.offset.value + "px" } : { bottom: _ctx.parent.offset.value + "px" }
|
|
@@ -152,59 +143,41 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
152
143
|
position: _ctx.parent.props.direction === "down" ? "top" : "bottom",
|
|
153
144
|
duration: _ctx.parent.props.duration,
|
|
154
145
|
"pop-class": "nut-menu__pop",
|
|
155
|
-
transition: "transition-none",
|
|
156
146
|
overlayClass: "nut-menu__overlay",
|
|
157
147
|
overlay: _ctx.parent.props.overlay,
|
|
158
|
-
lockScroll: _ctx.parent.props.lockScroll,
|
|
159
148
|
onClosed: _ctx.handleClose,
|
|
149
|
+
lockScroll: _ctx.parent.props.lockScroll,
|
|
150
|
+
isWrapTeleport: false,
|
|
160
151
|
"close-on-click-overlay": _ctx.parent.props.closeOnClickOverlay
|
|
161
152
|
}), {
|
|
162
153
|
default: withCtx(() => [
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
(
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
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
|
-
})
|
|
154
|
+
createElementVNode("view", _hoisted_1, [
|
|
155
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.options, (option, index2) => {
|
|
156
|
+
return openBlock(), createElementBlock("view", {
|
|
157
|
+
key: index2,
|
|
158
|
+
class: normalizeClass(["nut-menu-item__option", [{ active: option.value === _ctx.modelValue }]]),
|
|
159
|
+
style: normalizeStyle({ "flex-basis": 100 / _ctx.cols + "%" }),
|
|
160
|
+
onClick: ($event) => _ctx.onClick(option)
|
|
161
|
+
}, [
|
|
162
|
+
option.value === _ctx.modelValue ? (openBlock(), createBlock(_component_nut_icon, mergeProps({ key: 0 }, _ctx.$attrs, {
|
|
163
|
+
class: { activeTitleClass: option.value === _ctx.modelValue, inactiveTitleClass: option.value !== _ctx.modelValue },
|
|
164
|
+
name: _ctx.optionIcon,
|
|
165
|
+
color: _ctx.parent.props.activeColor
|
|
166
|
+
}), null, 16, ["class", "name", "color"])) : createCommentVNode("", true),
|
|
167
|
+
createElementVNode("view", {
|
|
168
|
+
class: normalizeClass({ activeTitleClass: option.value === _ctx.modelValue, inactiveTitleClass: option.value !== _ctx.modelValue }),
|
|
169
|
+
style: normalizeStyle({ color: option.value === _ctx.modelValue ? _ctx.parent.props.activeColor : "" })
|
|
170
|
+
}, toDisplayString(option.text), 7)
|
|
171
|
+
], 14, _hoisted_2);
|
|
172
|
+
}), 128)),
|
|
173
|
+
renderSlot(_ctx.$slots, "default")
|
|
174
|
+
])
|
|
202
175
|
]),
|
|
203
176
|
_: 3
|
|
204
|
-
}, 16, ["style", "overlayStyle", "visible", "position", "duration", "overlay", "
|
|
177
|
+
}, 16, ["style", "overlayStyle", "visible", "position", "duration", "overlay", "onClosed", "lockScroll", "close-on-click-overlay"])
|
|
205
178
|
], 2)), [
|
|
206
179
|
[vShow, _ctx.state.showWrapper]
|
|
207
180
|
]);
|
|
208
181
|
}
|
|
209
|
-
var
|
|
210
|
-
export {
|
|
182
|
+
var index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
183
|
+
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, ref, computed, onMounted, resolveComponent, openBlock, createElementBlock,
|
|
6
|
+
import { toRefs, ref, computed, onMounted, nextTick, resolveComponent, openBlock, createElementBlock, createElementVNode, normalizeClass, normalizeStyle, createBlock, createCommentVNode, toDisplayString, renderSlot, mergeProps } 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 { componentName, create } = createComponent("navbar");
|
|
@@ -40,6 +39,8 @@ const _sfc_main = create({
|
|
|
40
39
|
emits: ["on-click-back", "on-click-title", "on-click-icon", "on-click-right"],
|
|
41
40
|
setup(props, { emit }) {
|
|
42
41
|
const { border, fixed, safeAreaInsetTop, placeholder, zIndex } = toRefs(props);
|
|
42
|
+
const navBarWrap = ref(null);
|
|
43
|
+
const navBarHtml = ref(null);
|
|
43
44
|
let navHeight = ref(0);
|
|
44
45
|
const classes = computed(() => {
|
|
45
46
|
const prefixCls = componentName;
|
|
@@ -57,13 +58,11 @@ const _sfc_main = create({
|
|
|
57
58
|
});
|
|
58
59
|
onMounted(() => {
|
|
59
60
|
if (fixed.value && placeholder.value) {
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
});
|
|
66
|
-
}, 500);
|
|
61
|
+
nextTick(() => {
|
|
62
|
+
var _a;
|
|
63
|
+
navHeight = (_a = navBarHtml == null ? void 0 : navBarHtml.value) == null ? void 0 : _a.getBoundingClientRect().height;
|
|
64
|
+
navBarWrap.value.style.height = navHeight + "px";
|
|
65
|
+
});
|
|
67
66
|
}
|
|
68
67
|
});
|
|
69
68
|
function handleLeft() {
|
|
@@ -79,7 +78,8 @@ const _sfc_main = create({
|
|
|
79
78
|
emit("on-click-right");
|
|
80
79
|
}
|
|
81
80
|
return {
|
|
82
|
-
|
|
81
|
+
navBarWrap,
|
|
82
|
+
navBarHtml,
|
|
83
83
|
classes,
|
|
84
84
|
styles,
|
|
85
85
|
handleLeft,
|
|
@@ -90,33 +90,35 @@ 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 = {
|
|
93
98
|
key: 1,
|
|
94
99
|
class: "nut-navbar__text"
|
|
95
100
|
};
|
|
96
|
-
const
|
|
97
|
-
const
|
|
101
|
+
const _hoisted_3 = { class: "nut-navbar__title" };
|
|
102
|
+
const _hoisted_4 = {
|
|
98
103
|
key: 0,
|
|
99
104
|
class: "nut-navbar__text"
|
|
100
105
|
};
|
|
101
|
-
const
|
|
106
|
+
const _hoisted_5 = {
|
|
102
107
|
key: 1,
|
|
103
108
|
class: "nut-navbar__text"
|
|
104
109
|
};
|
|
105
|
-
const
|
|
106
|
-
const
|
|
110
|
+
const _hoisted_6 = { class: "nut-navbar__title" };
|
|
111
|
+
const _hoisted_7 = {
|
|
107
112
|
key: 0,
|
|
108
113
|
class: "nut-navbar__text"
|
|
109
114
|
};
|
|
110
115
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
111
116
|
const _component_nut_icon = resolveComponent("nut-icon");
|
|
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
|
-
}, [
|
|
117
|
+
return _ctx.fixed && _ctx.placeholder ? (openBlock(), createElementBlock("view", _hoisted_1, [
|
|
117
118
|
createElementVNode("view", {
|
|
118
|
-
class: normalizeClass(
|
|
119
|
-
style: normalizeStyle(_ctx.styles)
|
|
119
|
+
class: normalizeClass(_ctx.classes),
|
|
120
|
+
style: normalizeStyle(_ctx.styles),
|
|
121
|
+
ref: "navBarHtml"
|
|
120
122
|
}, [
|
|
121
123
|
createElementVNode("view", {
|
|
122
124
|
class: "nut-navbar__left",
|
|
@@ -127,19 +129,15 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
127
129
|
color: "#979797",
|
|
128
130
|
name: "left"
|
|
129
131
|
})) : createCommentVNode("", true),
|
|
130
|
-
|
|
131
|
-
_ctx.leftText ? (openBlock(), createElementBlock("view", _hoisted_1, toDisplayString(_ctx.leftText), 1)) : createCommentVNode("", true),
|
|
132
|
-
createTextVNode(),
|
|
132
|
+
_ctx.leftText ? (openBlock(), createElementBlock("view", _hoisted_2, toDisplayString(_ctx.leftText), 1)) : createCommentVNode("", true),
|
|
133
133
|
renderSlot(_ctx.$slots, "left")
|
|
134
134
|
]),
|
|
135
|
-
|
|
136
|
-
createElementVNode("view", _hoisted_2, [
|
|
135
|
+
createElementVNode("view", _hoisted_3, [
|
|
137
136
|
_ctx.title ? (openBlock(), createElementBlock("view", {
|
|
138
137
|
key: 0,
|
|
139
138
|
class: "title",
|
|
140
139
|
onClick: _cache[1] || (_cache[1] = (...args) => _ctx.handleCenter && _ctx.handleCenter(...args))
|
|
141
140
|
}, toDisplayString(_ctx.title), 1)) : createCommentVNode("", true),
|
|
142
|
-
createTextVNode(),
|
|
143
141
|
_ctx.titIcon ? (openBlock(), createBlock(_component_nut_icon, mergeProps({
|
|
144
142
|
key: 1,
|
|
145
143
|
class: "icon"
|
|
@@ -147,20 +145,17 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
147
145
|
name: _ctx.titIcon,
|
|
148
146
|
onClick: _ctx.handleCenterIcon
|
|
149
147
|
}), null, 16, ["name", "onClick"])) : createCommentVNode("", true),
|
|
150
|
-
createTextVNode(),
|
|
151
148
|
renderSlot(_ctx.$slots, "content")
|
|
152
149
|
]),
|
|
153
|
-
createTextVNode(),
|
|
154
150
|
createElementVNode("view", {
|
|
155
151
|
class: "nut-navbar__right",
|
|
156
152
|
onClick: _cache[2] || (_cache[2] = (...args) => _ctx.handleRight && _ctx.handleRight(...args))
|
|
157
153
|
}, [
|
|
158
|
-
_ctx.desc ? (openBlock(), createElementBlock("view",
|
|
159
|
-
createTextVNode(),
|
|
154
|
+
_ctx.desc ? (openBlock(), createElementBlock("view", _hoisted_4, toDisplayString(_ctx.desc), 1)) : createCommentVNode("", true),
|
|
160
155
|
renderSlot(_ctx.$slots, "right")
|
|
161
156
|
])
|
|
162
157
|
], 6)
|
|
163
|
-
],
|
|
158
|
+
], 512)) : (openBlock(), createElementBlock("view", {
|
|
164
159
|
key: 1,
|
|
165
160
|
class: normalizeClass(_ctx.classes),
|
|
166
161
|
style: normalizeStyle(_ctx.styles)
|
|
@@ -174,37 +169,32 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
174
169
|
color: "#979797",
|
|
175
170
|
name: "left"
|
|
176
171
|
})) : createCommentVNode("", true),
|
|
177
|
-
|
|
178
|
-
_ctx.leftText ? (openBlock(), createElementBlock("view", _hoisted_4, toDisplayString(_ctx.leftText), 1)) : createCommentVNode("", true),
|
|
179
|
-
createTextVNode(),
|
|
172
|
+
_ctx.leftText ? (openBlock(), createElementBlock("view", _hoisted_5, toDisplayString(_ctx.leftText), 1)) : createCommentVNode("", true),
|
|
180
173
|
renderSlot(_ctx.$slots, "left")
|
|
181
174
|
]),
|
|
182
|
-
|
|
183
|
-
createElementVNode("view", _hoisted_5, [
|
|
175
|
+
createElementVNode("view", _hoisted_6, [
|
|
184
176
|
_ctx.title ? (openBlock(), createElementBlock("view", {
|
|
185
177
|
key: 0,
|
|
186
178
|
class: "title",
|
|
187
179
|
onClick: _cache[4] || (_cache[4] = (...args) => _ctx.handleCenter && _ctx.handleCenter(...args))
|
|
188
180
|
}, toDisplayString(_ctx.title), 1)) : createCommentVNode("", true),
|
|
189
|
-
createTextVNode(),
|
|
190
181
|
_ctx.titIcon ? (openBlock(), createBlock(_component_nut_icon, mergeProps({
|
|
191
182
|
key: 1,
|
|
192
|
-
class: "icon"
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
183
|
+
class: "icon"
|
|
184
|
+
}, _ctx.$attrs, {
|
|
185
|
+
name: _ctx.titIcon,
|
|
186
|
+
onClick: _ctx.handleCenterIcon
|
|
187
|
+
}), null, 16, ["name", "onClick"])) : createCommentVNode("", true),
|
|
196
188
|
renderSlot(_ctx.$slots, "content")
|
|
197
189
|
]),
|
|
198
|
-
createTextVNode(),
|
|
199
190
|
createElementVNode("view", {
|
|
200
191
|
class: "nut-navbar__right",
|
|
201
192
|
onClick: _cache[5] || (_cache[5] = (...args) => _ctx.handleRight && _ctx.handleRight(...args))
|
|
202
193
|
}, [
|
|
203
|
-
_ctx.desc ? (openBlock(), createElementBlock("view",
|
|
204
|
-
createTextVNode(),
|
|
194
|
+
_ctx.desc ? (openBlock(), createElementBlock("view", _hoisted_7, toDisplayString(_ctx.desc), 1)) : createCommentVNode("", true),
|
|
205
195
|
renderSlot(_ctx.$slots, "right")
|
|
206
196
|
])
|
|
207
197
|
], 6));
|
|
208
198
|
}
|
|
209
|
-
var
|
|
210
|
-
export {
|
|
199
|
+
var index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
200
|
+
export { index as default };
|