@nutui/nutui 4.1.4 → 4.1.5-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/README.md +1 -1
- package/dist/nutui.es.js +1 -1
- package/dist/nutui.js +643 -642
- package/dist/nutui.umd.js +1 -1
- package/dist/packages/_es/ActionSheet.js +5 -5
- package/dist/packages/_es/Address.js +17 -17
- package/dist/packages/_es/Animate.js +2 -2
- package/dist/packages/_es/Audio.js +7 -7
- package/dist/packages/_es/Avatar.js +2 -2
- package/dist/packages/_es/AvatarGroup.js +1 -1
- package/dist/packages/_es/Badge.js +3 -3
- package/dist/packages/_es/Calendar.js +17 -17
- package/dist/packages/_es/CalendarItem.js +1 -1
- package/dist/packages/_es/Cascader.js +14 -14
- package/dist/packages/_es/Category.js +2 -2
- package/dist/packages/_es/CategoryPane.js +3 -3
- package/dist/packages/_es/Collapse.js +2 -2
- package/dist/packages/_es/CollapseItem.js +7 -7
- package/dist/packages/_es/Comment.js +3 -3
- package/dist/packages/_es/Countdown.js +6 -6
- package/dist/packages/_es/Countup.js +11 -11
- package/dist/packages/_es/DatePicker.js +5 -5
- package/dist/packages/_es/Dialog.js +3 -3
- package/dist/packages/_es/Drag.js +1 -1
- package/dist/packages/_es/Ecard.js +3 -3
- package/dist/packages/_es/Elevator.js +8 -8
- package/dist/packages/_es/Ellipsis.js +2 -2
- package/dist/packages/_es/FormItem.js +0 -1
- package/dist/packages/_es/GridItem.js +1 -1
- package/dist/packages/_es/Image.js +2 -2
- package/dist/packages/_es/ImagePreview.js +12 -12
- package/dist/packages/_es/InfiniteLoading.js +5 -5
- package/dist/packages/_es/Input.js +3 -3
- package/dist/packages/_es/Invoice.js +5 -5
- package/dist/packages/_es/List.js +11 -11
- package/dist/packages/_es/Menu.js +4 -4
- package/dist/packages/_es/MenuItem.js +9 -10
- package/dist/packages/_es/Navbar.js +7 -7
- package/dist/packages/_es/Noticebar.js +20 -14
- package/dist/packages/_es/Notify.js +1 -1
- package/dist/packages/_es/NumberKeyboard.js +2 -2
- package/dist/packages/_es/Overlay.js +3 -3
- package/dist/packages/_es/Picker.js +3 -3
- package/dist/packages/_es/Popover.js +6 -6
- package/dist/packages/_es/Popup.js +1 -1
- package/dist/packages/_es/PullRefresh.js +1 -1
- package/dist/packages/_es/Range.js +5 -5
- package/dist/packages/_es/Row.js +0 -1
- package/dist/packages/_es/Searchbar.js +10 -10
- package/dist/packages/_es/ShortPassword.js +9 -9
- package/dist/packages/_es/SideNavbar.js +2 -3
- package/dist/packages/_es/SideNavbarItem.js +2 -2
- package/dist/packages/_es/Signature.js +2 -2
- package/dist/packages/_es/Sku.js +24 -24
- package/dist/packages/_es/Step.js +1 -1
- package/dist/packages/_es/Steps.js +2 -2
- package/dist/packages/_es/Sticky.js +2 -2
- package/dist/packages/_es/SubSideNavbar.js +2 -2
- package/dist/packages/_es/Swipe.js +2 -2
- package/dist/packages/_es/SwipeGroup.js +2 -2
- package/dist/packages/_es/Swiper.js +4 -4
- package/dist/packages/_es/Switch.js +2 -2
- package/dist/packages/_es/Tabbar.js +2 -2
- package/dist/packages/_es/Table.js +6 -6
- package/dist/packages/_es/Tabs.js +13 -13
- package/dist/packages/_es/Textarea.js +3 -3
- package/dist/packages/_es/TimeDetail.js +1 -1
- package/dist/packages/_es/TimeSelect.js +1 -1
- package/dist/packages/_es/Tour.js +3 -3
- package/dist/packages/_es/Uploader.js +11 -11
- package/dist/packages/_es/Video.js +11 -11
- package/dist/packages/_es/{index-7fe29a2f.js → index-3032df15.js} +8 -9
- package/dist/packages/_es/{index-66fff386.js → index-ae1af668.js} +10 -10
- package/dist/packages/circleprogress/index.scss +3 -1
- package/dist/packages/popover/index.scss +3 -1
- package/dist/packages/video/index.scss +4 -1
- package/dist/smartips/web-types.json +1 -1
- package/dist/style.css +1 -1
- package/dist/styles/themes/default.scss +48 -48
- package/dist/styles/themes/jdb.scss +48 -48
- package/dist/styles/themes/jddkh.scss +48 -48
- package/dist/styles/themes/jdt.scss +48 -48
- package/dist/styles/variables-jdb.scss +7 -1
- package/dist/styles/variables-jddkh.scss +7 -1
- package/dist/types/__VUE/actionsheet/index.vue.d.ts +1 -1
- package/dist/types/__VUE/address/index.vue.d.ts +3 -3
- package/dist/types/__VUE/addresslist/components/GeneralShell.vue.d.ts +60 -0
- package/dist/types/__VUE/addresslist/components/ItemContents.vue.d.ts +23 -0
- package/dist/types/__VUE/addresslist/index.vue.d.ts +2 -2
- package/dist/types/__VUE/audio/index.vue.d.ts +3 -3
- package/dist/types/__VUE/cascader/cascader-item.vue.d.ts +77 -0
- package/dist/types/__VUE/collapseitem/index.vue.d.ts +3 -3
- package/dist/types/__VUE/comment/components/CmtBottom.vue.d.ts +42 -0
- package/dist/types/__VUE/comment/components/CmtHeader.vue.d.ts +36 -0
- package/dist/types/__VUE/comment/components/CmtImages.vue.d.ts +59 -0
- package/dist/types/__VUE/comment/index.vue.d.ts +4 -4
- package/dist/types/__VUE/countdown/index.vue.d.ts +4 -4
- package/dist/types/__VUE/countup/index.vue.d.ts +3 -3
- package/dist/types/__VUE/datepicker/index.vue.d.ts +3 -3
- package/dist/types/__VUE/elevator/index.vue.d.ts +3 -3
- package/dist/types/__VUE/empty/index.vue.d.ts +1 -1
- package/dist/types/__VUE/formitem/index.vue.d.ts +2 -4
- package/dist/types/__VUE/grid/index.vue.d.ts +1 -1
- package/dist/types/__VUE/imagepreview/imagePreviewItem.vue.d.ts +126 -0
- package/dist/types/__VUE/imagepreview/index.vue.d.ts +3 -3
- package/dist/types/__VUE/indicator/index.vue.d.ts +1 -0
- package/dist/types/__VUE/infiniteloading/index.vue.d.ts +3 -3
- package/dist/types/__VUE/input/index.vue.d.ts +3 -3
- package/dist/types/__VUE/inputnumber/index.vue.d.ts +1 -1
- package/dist/types/__VUE/invoice/index.vue.d.ts +2 -2
- package/dist/types/__VUE/list/index.vue.d.ts +4 -4
- package/dist/types/__VUE/navbar/index.vue.d.ts +5 -5
- package/dist/types/__VUE/noticebar/index.vue.d.ts +3 -3
- package/dist/types/__VUE/numberkeyboard/index.vue.d.ts +4 -4
- package/dist/types/__VUE/picker/Column.vue.d.ts +134 -0
- package/dist/types/__VUE/picker/common.d.ts +484 -4
- package/dist/types/__VUE/picker/index.vue.d.ts +125 -5
- package/dist/types/__VUE/popover/index.vue.d.ts +1 -1
- package/dist/types/__VUE/popup/index.vue.d.ts +4 -4
- package/dist/types/__VUE/range/index.vue.d.ts +8 -7
- package/dist/types/__VUE/rate/index.vue.d.ts +5 -5
- package/dist/types/__VUE/row/index.vue.d.ts +2 -2
- package/dist/types/__VUE/searchbar/index.vue.d.ts +7 -7
- package/dist/types/__VUE/sidenavbar/index.vue.d.ts +2 -2
- package/dist/types/__VUE/signature/index.vue.d.ts +1 -1
- package/dist/types/__VUE/sku/components/SkuHeader.vue.d.ts +17 -0
- package/dist/types/__VUE/sku/components/SkuOperate.vue.d.ts +60 -0
- package/dist/types/__VUE/sku/components/SkuSelect.vue.d.ts +25 -0
- package/dist/types/__VUE/sku/components/SkuStepper.vue.d.ts +56 -0
- package/dist/types/__VUE/sku/index.vue.d.ts +9 -9
- package/dist/types/__VUE/step/index.vue.d.ts +2 -2
- package/dist/types/__VUE/steps/index.vue.d.ts +2 -2
- package/dist/types/__VUE/subsidenavbar/index.vue.d.ts +2 -2
- package/dist/types/__VUE/swiper/index.vue.d.ts +2 -2
- package/dist/types/__VUE/tabbar/index.vue.d.ts +2 -2
- package/dist/types/__VUE/tabbaritem/index.vue.d.ts +3 -3
- package/dist/types/__VUE/table/common.d.ts +1 -1
- package/dist/types/__VUE/tabs/index.vue.d.ts +1 -1
- package/dist/types/__VUE/tag/index.vue.d.ts +3 -0
- package/dist/types/__VUE/textarea/index.vue.d.ts +1 -1
- package/dist/types/__VUE/toast/index.vue.d.ts +4 -4
- package/dist/types/__VUE/uploader/index.vue.d.ts +2 -2
- package/dist/types/index.d.ts +1 -1
- package/package.json +1 -1
|
@@ -103,7 +103,7 @@ const _sfc_main = create({
|
|
|
103
103
|
}
|
|
104
104
|
},
|
|
105
105
|
components: {},
|
|
106
|
-
emits: ["click", "
|
|
106
|
+
emits: ["click", "scrollEnd"],
|
|
107
107
|
setup(props, { emit }) {
|
|
108
108
|
const runNumberImg = ref(null);
|
|
109
109
|
const numberItemRef = ref([]);
|
|
@@ -226,7 +226,7 @@ const _sfc_main = create({
|
|
|
226
226
|
if (Number(data.current) <= endNum || Number(data.current) <= speed) {
|
|
227
227
|
data.current = endNum.toFixed(toFixed);
|
|
228
228
|
clearInterval(countTimer);
|
|
229
|
-
emit("
|
|
229
|
+
emit("scrollEnd");
|
|
230
230
|
data.valFlag = false;
|
|
231
231
|
} else {
|
|
232
232
|
let num = parseFloat(String(data.current)) - parseFloat(String(speed));
|
|
@@ -236,7 +236,7 @@ const _sfc_main = create({
|
|
|
236
236
|
if (Number(data.current) >= endNum) {
|
|
237
237
|
data.current = endNum.toFixed(toFixed);
|
|
238
238
|
clearInterval(countTimer);
|
|
239
|
-
emit("
|
|
239
|
+
emit("scrollEnd");
|
|
240
240
|
data.valFlag = false;
|
|
241
241
|
} else {
|
|
242
242
|
let num = parseFloat(String(data.current)) + parseFloat(String(speed));
|
|
@@ -341,7 +341,7 @@ const _sfc_main = create({
|
|
|
341
341
|
data.totalCount = calculation(data.totalCount, m, "-");
|
|
342
342
|
if (data.totalCount <= 0) {
|
|
343
343
|
clearIntervalTime();
|
|
344
|
-
emit("
|
|
344
|
+
emit("scrollEnd");
|
|
345
345
|
data.valFlag = false;
|
|
346
346
|
}
|
|
347
347
|
}, props.during);
|
|
@@ -387,7 +387,7 @@ const _sfc_main = create({
|
|
|
387
387
|
const imgNumberScroll = () => {
|
|
388
388
|
nextTick(() => {
|
|
389
389
|
runNumberImg.value.addEventListener("webkitTransitionEnd", () => {
|
|
390
|
-
emit("
|
|
390
|
+
emit("scrollEnd");
|
|
391
391
|
data.valFlag = false;
|
|
392
392
|
});
|
|
393
393
|
});
|
|
@@ -452,10 +452,10 @@ const _sfc_main = create({
|
|
|
452
452
|
setTimeout(() => {
|
|
453
453
|
data.finshMachine = 0;
|
|
454
454
|
if (data.prizeLevelTrun < 0) {
|
|
455
|
-
emit("
|
|
455
|
+
emit("scrollEnd", false);
|
|
456
456
|
data.valFlag = false;
|
|
457
457
|
} else {
|
|
458
|
-
emit("
|
|
458
|
+
emit("scrollEnd", true);
|
|
459
459
|
data.valFlag = false;
|
|
460
460
|
}
|
|
461
461
|
}, 130);
|
|
@@ -493,8 +493,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
493
493
|
}, [
|
|
494
494
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.machineNum, (val, index2) => {
|
|
495
495
|
return openBlock(), createElementBlock("view", {
|
|
496
|
-
class: "nut-countup__machine-item",
|
|
497
496
|
key: "mImg" + index2,
|
|
497
|
+
class: "nut-countup__machine-item",
|
|
498
498
|
style: normalizeStyle({
|
|
499
499
|
width: _ctx.numWidth + "px",
|
|
500
500
|
height: _ctx.numHeight + "px",
|
|
@@ -511,8 +511,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
511
511
|
}, [
|
|
512
512
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.num_total_len, (val, index2) => {
|
|
513
513
|
return openBlock(), createElementBlock("view", {
|
|
514
|
-
class: "nut-countup__numberimg__item",
|
|
515
514
|
key: "cImg" + index2,
|
|
515
|
+
class: "nut-countup__numberimg__item",
|
|
516
516
|
style: normalizeStyle({
|
|
517
517
|
width: _ctx.numWidth + "px",
|
|
518
518
|
height: _ctx.numHeight + "px",
|
|
@@ -549,8 +549,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
549
549
|
return openBlock(), createElementBlock("view", {
|
|
550
550
|
ref_for: true,
|
|
551
551
|
ref: (el) => _ctx.setRef(el),
|
|
552
|
-
class: "nut-countup__number-item",
|
|
553
552
|
key: val,
|
|
553
|
+
class: "nut-countup__number-item",
|
|
554
554
|
style: normalizeStyle({
|
|
555
555
|
top: _ctx.topNumber(index2),
|
|
556
556
|
left: _ctx.numWidth * (index2 > _ctx.num_total_len - _ctx.pointNum - 1 ? index2 * 1.1 : index2) + "px"
|
|
@@ -559,8 +559,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
559
559
|
}, [
|
|
560
560
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.to0_10, (item, idx) => {
|
|
561
561
|
return openBlock(), createElementBlock("view", {
|
|
562
|
-
class: "nut-countup__number-item__span",
|
|
563
562
|
key: "dote" + idx,
|
|
563
|
+
class: "nut-countup__number-item__span",
|
|
564
564
|
style: normalizeStyle({
|
|
565
565
|
width: _ctx.numWidth + "px",
|
|
566
566
|
height: _ctx.numHeight + "px",
|
|
@@ -358,16 +358,16 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
358
358
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.selectedValue = $event),
|
|
359
359
|
okText: _ctx.okText,
|
|
360
360
|
cancelText: _ctx.cancelText,
|
|
361
|
-
onCancel: _ctx.closeHandler,
|
|
362
361
|
columns: _ctx.columns,
|
|
363
|
-
onChange: _ctx.changeHandler,
|
|
364
362
|
title: _ctx.title,
|
|
365
|
-
onConfirm: _ctx.confirm,
|
|
366
363
|
threeDimensional: _ctx.threeDimensional,
|
|
367
364
|
swipeDuration: _ctx.swipeDuration,
|
|
368
365
|
showToolbar: _ctx.showToolbar,
|
|
369
366
|
visibleOptionNum: _ctx.visibleOptionNum,
|
|
370
|
-
optionHeight: _ctx.optionHeight
|
|
367
|
+
optionHeight: _ctx.optionHeight,
|
|
368
|
+
onCancel: _ctx.closeHandler,
|
|
369
|
+
onChange: _ctx.changeHandler,
|
|
370
|
+
onConfirm: _ctx.confirm
|
|
371
371
|
}, {
|
|
372
372
|
top: withCtx(() => [
|
|
373
373
|
renderSlot(_ctx.$slots, "top")
|
|
@@ -376,7 +376,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
376
376
|
renderSlot(_ctx.$slots, "default")
|
|
377
377
|
]),
|
|
378
378
|
_: 3
|
|
379
|
-
}, 8, ["modelValue", "okText", "cancelText", "
|
|
379
|
+
}, 8, ["modelValue", "okText", "cancelText", "columns", "title", "threeDimensional", "swipeDuration", "showToolbar", "visibleOptionNum", "optionHeight", "onCancel", "onChange", "onConfirm"]);
|
|
380
380
|
}
|
|
381
381
|
const index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
382
382
|
export {
|
|
@@ -24,7 +24,7 @@ var __publicField = (obj, key, value) => {
|
|
|
24
24
|
import { ref, onMounted, watch, computed, resolveComponent, openBlock, createBlock, normalizeStyle, withCtx, createElementVNode, normalizeClass, createElementBlock, renderSlot, Fragment, createTextVNode, toDisplayString, createCommentVNode, resolveDynamicComponent, nextTick, h } from "vue";
|
|
25
25
|
import { c as createComponent } from "./component-0fbad28e.js";
|
|
26
26
|
import { f as funInterceptor } from "./Interceptor-c05a39f2.js";
|
|
27
|
-
import { P as Popup, p as popupProps } from "./index-
|
|
27
|
+
import { P as Popup, p as popupProps } from "./index-3032df15.js";
|
|
28
28
|
import Button from "./Button.js";
|
|
29
29
|
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
30
30
|
import Overlay from "./Overlay.js";
|
|
@@ -178,9 +178,9 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
178
178
|
const _component_nut_button = resolveComponent("nut-button");
|
|
179
179
|
const _component_nut_popup = resolveComponent("nut-popup");
|
|
180
180
|
return openBlock(), createBlock(_component_nut_popup, {
|
|
181
|
-
teleport: _ctx.teleport,
|
|
182
181
|
visible: _ctx.showPopup,
|
|
183
182
|
"onUpdate:visible": _cache[0] || (_cache[0] = ($event) => _ctx.showPopup = $event),
|
|
183
|
+
teleport: _ctx.teleport,
|
|
184
184
|
"close-on-click-overlay": false,
|
|
185
185
|
"lock-scroll": _ctx.lockScroll,
|
|
186
186
|
"pop-class": _ctx.popClass,
|
|
@@ -244,7 +244,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
244
244
|
], 2)
|
|
245
245
|
]),
|
|
246
246
|
_: 3
|
|
247
|
-
}, 8, ["
|
|
247
|
+
}, 8, ["visible", "teleport", "lock-scroll", "pop-class", "overlay-class", "overlay-style", "style", "onClickOverlay", "onClickCloseIcon"]);
|
|
248
248
|
}
|
|
249
249
|
const Dialog = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
250
250
|
class DialogOptions {
|
|
@@ -186,8 +186,8 @@ const _sfc_main = create({
|
|
|
186
186
|
});
|
|
187
187
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
188
188
|
return openBlock(), createElementBlock("view", {
|
|
189
|
-
class: normalizeClass(_ctx.classes),
|
|
190
189
|
ref: "myDrag",
|
|
190
|
+
class: normalizeClass(_ctx.classes),
|
|
191
191
|
onTouchstart: _cache[0] || (_cache[0] = ($event) => _ctx.touchStart($event)),
|
|
192
192
|
onTouchmove: _cache[1] || (_cache[1] = ($event) => _ctx.touchMove($event)),
|
|
193
193
|
onTouchend: _cache[2] || (_cache[2] = ($event) => _ctx.touchEnd($event))
|
|
@@ -138,11 +138,11 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
138
138
|
createElementVNode("view", null, toDisplayString(_ctx.otherValueText || _ctx.translate("otherValueText")), 1),
|
|
139
139
|
createElementVNode("view", _hoisted_5, [
|
|
140
140
|
withDirectives(createElementVNode("input", {
|
|
141
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.inputValue = $event),
|
|
141
142
|
class: "nut-ecard__list__input--input",
|
|
142
143
|
type: "text",
|
|
143
|
-
|
|
144
|
-
onInput: _cache[1] || (_cache[1] = (...args) => _ctx.change && _ctx.change(...args))
|
|
145
|
-
placeholder: _ctx.placeholder || _ctx.translate("placeholder")
|
|
144
|
+
placeholder: _ctx.placeholder || _ctx.translate("placeholder"),
|
|
145
|
+
onInput: _cache[1] || (_cache[1] = (...args) => _ctx.change && _ctx.change(...args))
|
|
146
146
|
}, null, 40, _hoisted_6), [
|
|
147
147
|
[vModelText, _ctx.inputValue]
|
|
148
148
|
]),
|
|
@@ -52,7 +52,7 @@ const _sfc_main = create({
|
|
|
52
52
|
default: 35
|
|
53
53
|
}
|
|
54
54
|
},
|
|
55
|
-
emits: ["
|
|
55
|
+
emits: ["clickItem", "clickIndex", "change"],
|
|
56
56
|
setup(props, context) {
|
|
57
57
|
const listview = ref(null);
|
|
58
58
|
const state = reactive({
|
|
@@ -137,12 +137,12 @@ const _sfc_main = create({
|
|
|
137
137
|
state.scrollStart = false;
|
|
138
138
|
};
|
|
139
139
|
const handleClickItem = (key, item) => {
|
|
140
|
-
context.emit("
|
|
140
|
+
context.emit("clickItem", key, item);
|
|
141
141
|
state.currentData = item;
|
|
142
142
|
state.currentKey = key;
|
|
143
143
|
};
|
|
144
144
|
const handleClickIndex = (key) => {
|
|
145
|
-
context.emit("
|
|
145
|
+
context.emit("clickIndex", key);
|
|
146
146
|
};
|
|
147
147
|
const listViewScroll = (e) => {
|
|
148
148
|
let target = e.target;
|
|
@@ -219,24 +219,24 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
219
219
|
class: normalizeClass(_ctx.classes)
|
|
220
220
|
}, [
|
|
221
221
|
createElementVNode("view", {
|
|
222
|
-
class: "nut-elevator__list",
|
|
223
222
|
ref: "listview",
|
|
223
|
+
class: "nut-elevator__list",
|
|
224
224
|
style: normalizeStyle({ height: isNaN(+_ctx.height) ? _ctx.height : `${_ctx.height}px` })
|
|
225
225
|
}, [
|
|
226
226
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.indexList, (item) => {
|
|
227
227
|
return openBlock(), createElementBlock("view", {
|
|
228
|
-
class: "nut-elevator__list__item",
|
|
229
228
|
key: item[_ctx.acceptKey],
|
|
230
229
|
ref_for: true,
|
|
231
|
-
ref: _ctx.setListGroup
|
|
230
|
+
ref: _ctx.setListGroup,
|
|
231
|
+
class: "nut-elevator__list__item"
|
|
232
232
|
}, [
|
|
233
233
|
createElementVNode("view", _hoisted_1, toDisplayString(item[_ctx.acceptKey]), 1),
|
|
234
234
|
(openBlock(true), createElementBlock(Fragment, null, renderList(item.list, (subitem) => {
|
|
235
235
|
return openBlock(), createElementBlock("view", {
|
|
236
|
+
key: subitem["id"],
|
|
236
237
|
class: normalizeClass(["nut-elevator__list__item__name", {
|
|
237
238
|
"nut-elevator__list__item__name--highcolor": _ctx.currentData.id === subitem.id && _ctx.currentKey === item[_ctx.acceptKey]
|
|
238
239
|
}]),
|
|
239
|
-
key: subitem["id"],
|
|
240
240
|
onClick: ($event) => _ctx.handleClickItem(item[_ctx.acceptKey], subitem)
|
|
241
241
|
}, [
|
|
242
242
|
!_ctx.$slots.default ? (openBlock(), createElementBlock("span", {
|
|
@@ -275,9 +275,9 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
275
275
|
createElementVNode("view", _hoisted_5, [
|
|
276
276
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.indexList, (item, index) => {
|
|
277
277
|
return openBlock(), createElementBlock("view", {
|
|
278
|
+
key: item[_ctx.acceptKey],
|
|
278
279
|
class: normalizeClass(["nut-elevator__bars__inner__item", { active: item[_ctx.acceptKey] === _ctx.indexList[_ctx.currentIndex][_ctx.acceptKey] }]),
|
|
279
280
|
"data-index": index,
|
|
280
|
-
key: item[_ctx.acceptKey],
|
|
281
281
|
onClick: ($event) => _ctx.handleClickIndex(item[_ctx.acceptKey])
|
|
282
282
|
}, toDisplayString(item[_ctx.acceptKey]), 11, _hoisted_6);
|
|
283
283
|
}), 128))
|
|
@@ -201,9 +201,9 @@ const _hoisted_2 = { key: 1 };
|
|
|
201
201
|
const _hoisted_3 = { key: 2 };
|
|
202
202
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
203
203
|
return openBlock(), createElementBlock("view", {
|
|
204
|
+
ref: "root",
|
|
204
205
|
class: normalizeClass(_ctx.classes),
|
|
205
|
-
onClick: _cache[2] || (_cache[2] = (...args) => _ctx.handleClick && _ctx.handleClick(...args))
|
|
206
|
-
ref: "root"
|
|
206
|
+
onClick: _cache[2] || (_cache[2] = (...args) => _ctx.handleClick && _ctx.handleClick(...args))
|
|
207
207
|
}, [
|
|
208
208
|
!_ctx.exceeded ? (openBlock(), createElementBlock("view", _hoisted_1, toDisplayString(_ctx.content), 1)) : createCommentVNode("", true),
|
|
209
209
|
_ctx.exceeded && !_ctx.expanded ? (openBlock(), createElementBlock("view", _hoisted_2, [
|
|
@@ -63,7 +63,7 @@ const _sfc_main = create({
|
|
|
63
63
|
style.paddingTop = `${100 / +parent.columnNum}%`;
|
|
64
64
|
} else if (parent.gutter) {
|
|
65
65
|
style.paddingRight = pxCheck(parent.gutter);
|
|
66
|
-
if (index2.value >= parent.columnNum) {
|
|
66
|
+
if (index2.value >= +parent.columnNum) {
|
|
67
67
|
style.marginTop = pxCheck(parent.gutter);
|
|
68
68
|
}
|
|
69
69
|
}
|
|
@@ -172,9 +172,9 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
172
172
|
src: _ctx.lazyLoad ? _ctx.show ? _ctx.src : void 0 : _ctx.src,
|
|
173
173
|
"date-src": _ctx.lazyLoad ? _ctx.show ? void 0 : _ctx.src : void 0,
|
|
174
174
|
alt: _ctx.alt,
|
|
175
|
+
style: normalizeStyle(_ctx.styles),
|
|
175
176
|
onLoad: _cache[0] || (_cache[0] = (...args) => _ctx.load && _ctx.load(...args)),
|
|
176
|
-
onError: _cache[1] || (_cache[1] = (...args) => _ctx.error && _ctx.error(...args))
|
|
177
|
-
style: normalizeStyle(_ctx.styles)
|
|
177
|
+
onError: _cache[1] || (_cache[1] = (...args) => _ctx.error && _ctx.error(...args))
|
|
178
178
|
}, null, 44, _hoisted_1),
|
|
179
179
|
_ctx.loading ? (openBlock(), createElementBlock("div", _hoisted_2, [
|
|
180
180
|
!_ctx.slotLoding ? (openBlock(), createBlock(_component_Image, {
|
|
@@ -30,7 +30,7 @@ import Video from "./Video.js";
|
|
|
30
30
|
import SwiperItem from "./SwiperItem.js";
|
|
31
31
|
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
32
32
|
import { CircleClose } from "@nutui/icons-vue";
|
|
33
|
-
import { P as Popup } from "./index-
|
|
33
|
+
import { P as Popup } from "./index-3032df15.js";
|
|
34
34
|
import Swiper from "./Swiper.js";
|
|
35
35
|
import { f as funInterceptor } from "./Interceptor-c05a39f2.js";
|
|
36
36
|
import "../locale/lang";
|
|
@@ -405,8 +405,8 @@ const _sfc_main = create({
|
|
|
405
405
|
}
|
|
406
406
|
});
|
|
407
407
|
const _hoisted_1 = {
|
|
408
|
-
|
|
409
|
-
|
|
408
|
+
ref: "swipeRef",
|
|
409
|
+
class: "nut-image-preview"
|
|
410
410
|
};
|
|
411
411
|
const _hoisted_2 = {
|
|
412
412
|
key: 0,
|
|
@@ -418,13 +418,13 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
418
418
|
const _component_CircleClose = resolveComponent("CircleClose");
|
|
419
419
|
const _component_nut_popup = resolveComponent("nut-popup");
|
|
420
420
|
return openBlock(), createBlock(_component_nut_popup, {
|
|
421
|
-
"pop-class": "nut-image-preview-custom-pop",
|
|
422
421
|
visible: _ctx.showPop,
|
|
423
422
|
"onUpdate:visible": _cache[1] || (_cache[1] = ($event) => _ctx.showPop = $event),
|
|
423
|
+
"pop-class": "nut-image-preview-custom-pop",
|
|
424
424
|
teleportDisable: _ctx.teleportDisable,
|
|
425
425
|
teleport: _ctx.teleport,
|
|
426
|
-
|
|
427
|
-
|
|
426
|
+
"lock-scroll": "",
|
|
427
|
+
onClosed: _ctx.onClose
|
|
428
428
|
}, {
|
|
429
429
|
default: withCtx(() => [
|
|
430
430
|
createElementVNode("view", _hoisted_1, [
|
|
@@ -435,10 +435,10 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
435
435
|
loop: _ctx.isLoop,
|
|
436
436
|
"is-preventDefault": false,
|
|
437
437
|
direction: "horizontal",
|
|
438
|
-
onChange: _ctx.setActive,
|
|
439
438
|
"init-page": _ctx.initNo,
|
|
440
439
|
"pagination-visible": _ctx.paginationVisible,
|
|
441
|
-
"pagination-color": _ctx.paginationColor
|
|
440
|
+
"pagination-color": _ctx.paginationColor,
|
|
441
|
+
onChange: _ctx.setActive
|
|
442
442
|
}, {
|
|
443
443
|
default: withCtx(() => [
|
|
444
444
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.mergeImages, (item, index) => {
|
|
@@ -450,15 +450,15 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
450
450
|
rootWidth: _ctx.rootWidth,
|
|
451
451
|
show: _ctx.showPop,
|
|
452
452
|
"init-no": _ctx.active + 1,
|
|
453
|
-
onClose: _ctx.onClose,
|
|
454
453
|
"content-close": _ctx.contentClose,
|
|
455
454
|
maxZoom: _ctx.maxZoom,
|
|
456
|
-
minZoom: _ctx.minZoom
|
|
457
|
-
|
|
455
|
+
minZoom: _ctx.minZoom,
|
|
456
|
+
onClose: _ctx.onClose
|
|
457
|
+
}, null, 8, ["video", "image", "rootHeight", "rootWidth", "show", "init-no", "content-close", "maxZoom", "minZoom", "onClose"]);
|
|
458
458
|
}), 128))
|
|
459
459
|
]),
|
|
460
460
|
_: 1
|
|
461
|
-
}, 8, ["auto-play", "loop", "
|
|
461
|
+
}, 8, ["auto-play", "loop", "init-page", "pagination-visible", "pagination-color", "onChange"])) : createCommentVNode("", true)
|
|
462
462
|
], 512),
|
|
463
463
|
_ctx.showIndex ? (openBlock(), createElementBlock("view", _hoisted_2, toDisplayString(_ctx.active + 1) + " / " + toDisplayString(_ctx.mergeImages.length), 1)) : createCommentVNode("", true),
|
|
464
464
|
_ctx.closeable ? (openBlock(), createElementBlock("view", {
|
|
@@ -52,7 +52,7 @@ const _sfc_main = create({
|
|
|
52
52
|
default: false
|
|
53
53
|
}
|
|
54
54
|
},
|
|
55
|
-
emits: ["
|
|
55
|
+
emits: ["scrollChange", "loadMore", "update:modelValue"],
|
|
56
56
|
components: {
|
|
57
57
|
Loading
|
|
58
58
|
},
|
|
@@ -96,7 +96,7 @@ const _sfc_main = create({
|
|
|
96
96
|
direction = "down";
|
|
97
97
|
}
|
|
98
98
|
state.beforeScrollTop = resScrollTop;
|
|
99
|
-
emit("
|
|
99
|
+
emit("scrollChange", resScrollTop);
|
|
100
100
|
return offsetDistance <= props.threshold && direction == "down";
|
|
101
101
|
};
|
|
102
102
|
const handleScroll = () => {
|
|
@@ -106,7 +106,7 @@ const _sfc_main = create({
|
|
|
106
106
|
} else {
|
|
107
107
|
state.isInfiniting = true;
|
|
108
108
|
emit("update:modelValue", true);
|
|
109
|
-
nextTick(() => emit("
|
|
109
|
+
nextTick(() => emit("loadMore"));
|
|
110
110
|
}
|
|
111
111
|
});
|
|
112
112
|
};
|
|
@@ -161,8 +161,8 @@ const _hoisted_5 = { class: "nut-infinite__bottom-tips" };
|
|
|
161
161
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
162
162
|
const _component_Loading = resolveComponent("Loading");
|
|
163
163
|
return openBlock(), createElementBlock("view", {
|
|
164
|
-
|
|
165
|
-
|
|
164
|
+
ref: "scroller",
|
|
165
|
+
class: normalizeClass(_ctx.classes)
|
|
166
166
|
}, [
|
|
167
167
|
createElementVNode("view", _hoisted_1, [
|
|
168
168
|
renderSlot(_ctx.$slots, "default")
|
|
@@ -124,7 +124,7 @@ const _sfc_main = create({
|
|
|
124
124
|
}
|
|
125
125
|
},
|
|
126
126
|
components: { MaskClose },
|
|
127
|
-
emits: ["update:modelValue", "blur", "focus", "clear", "keypress", "click", "
|
|
127
|
+
emits: ["update:modelValue", "blur", "focus", "clear", "keypress", "click", "clickInput"],
|
|
128
128
|
expose: ["focus", "blur", "select"],
|
|
129
129
|
setup(props, { emit }) {
|
|
130
130
|
const active = ref(false);
|
|
@@ -241,7 +241,7 @@ const _sfc_main = create({
|
|
|
241
241
|
if (props.disabled) {
|
|
242
242
|
return;
|
|
243
243
|
}
|
|
244
|
-
emit("
|
|
244
|
+
emit("clickInput", event);
|
|
245
245
|
};
|
|
246
246
|
const onClick = (event) => {
|
|
247
247
|
emit("click", event);
|
|
@@ -324,8 +324,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
324
324
|
])) : createCommentVNode("", true),
|
|
325
325
|
createElementVNode("view", _hoisted_4, [
|
|
326
326
|
(openBlock(), createBlock(resolveDynamicComponent(_ctx.renderInput(_ctx.type)), {
|
|
327
|
-
class: "input-text",
|
|
328
327
|
ref: "inputRef",
|
|
328
|
+
class: "input-text",
|
|
329
329
|
style: normalizeStyle(_ctx.styles),
|
|
330
330
|
maxlength: _ctx.maxLength,
|
|
331
331
|
placeholder: _ctx.placeholder,
|
|
@@ -54,7 +54,7 @@ const _sfc_main = create({
|
|
|
54
54
|
default: true
|
|
55
55
|
}
|
|
56
56
|
},
|
|
57
|
-
emits: ["onSubmit", "
|
|
57
|
+
emits: ["onSubmit", "scrollBottom"],
|
|
58
58
|
setup(props, { emit }) {
|
|
59
59
|
const formRef = ref();
|
|
60
60
|
const list = ref([]);
|
|
@@ -91,7 +91,7 @@ const _sfc_main = create({
|
|
|
91
91
|
});
|
|
92
92
|
}
|
|
93
93
|
});
|
|
94
|
-
const _hoisted_1 = ["
|
|
94
|
+
const _hoisted_1 = ["onUpdate:modelValue", "placeholder"];
|
|
95
95
|
const _hoisted_2 = {
|
|
96
96
|
key: 0,
|
|
97
97
|
class: "nut-invoice__submit"
|
|
@@ -106,8 +106,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
106
106
|
class: normalizeClass(_ctx.classes)
|
|
107
107
|
}, [
|
|
108
108
|
createVNode(_component_nut_form, {
|
|
109
|
-
"
|
|
110
|
-
|
|
109
|
+
ref: "formRef",
|
|
110
|
+
"model-value": _ctx.formValue
|
|
111
111
|
}, {
|
|
112
112
|
default: withCtx(() => [
|
|
113
113
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.list, (item, index2) => {
|
|
@@ -141,9 +141,9 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
141
141
|
_: 2
|
|
142
142
|
}, 1032, ["modelValue", "onUpdate:modelValue"])) : withDirectives((openBlock(), createElementBlock("input", {
|
|
143
143
|
key: 1,
|
|
144
|
+
"onUpdate:modelValue": ($event) => _ctx.formValue[item.formItemProp] = $event,
|
|
144
145
|
class: "nut-input-text",
|
|
145
146
|
placeholder: item.placeholder,
|
|
146
|
-
"onUpdate:modelValue": ($event) => _ctx.formValue[item.formItemProp] = $event,
|
|
147
147
|
type: "text"
|
|
148
148
|
}, null, 8, _hoisted_1)), [
|
|
149
149
|
[vModelText, _ctx.formValue[item.formItemProp]]
|
|
@@ -74,7 +74,7 @@ const _sfc_main = create({
|
|
|
74
74
|
default: 10
|
|
75
75
|
}
|
|
76
76
|
},
|
|
77
|
-
emits: ["
|
|
77
|
+
emits: ["scrollUp", "scrollDown", "scrollBottom"],
|
|
78
78
|
setup(props, { emit }) {
|
|
79
79
|
const list = ref(null);
|
|
80
80
|
const phantom = ref(null);
|
|
@@ -196,10 +196,10 @@ const _sfc_main = create({
|
|
|
196
196
|
state.originStartIndex = currentIndex;
|
|
197
197
|
state.start = Math.max(state.originStartIndex - props.bufferSize, 0);
|
|
198
198
|
if (end.value >= state.list.length - 1) {
|
|
199
|
-
emit("
|
|
199
|
+
emit("scrollBottom");
|
|
200
200
|
}
|
|
201
201
|
}
|
|
202
|
-
emit(scrollTop > state.scrollTop ? "
|
|
202
|
+
emit(scrollTop > state.scrollTop ? "scrollUp" : "scrollDown", scrollTop);
|
|
203
203
|
state.scrollTop = scrollTop;
|
|
204
204
|
};
|
|
205
205
|
watch(
|
|
@@ -237,25 +237,25 @@ const _sfc_main = create({
|
|
|
237
237
|
});
|
|
238
238
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
239
239
|
return openBlock(), createElementBlock("div", {
|
|
240
|
+
ref: "list",
|
|
240
241
|
class: normalizeClass(_ctx.classes),
|
|
241
242
|
style: normalizeStyle({ height: `${_ctx.getContainerHeight}px` }),
|
|
242
|
-
onScrollPassive: _cache[0] || (_cache[0] = (...args) => _ctx.handleScrollEvent && _ctx.handleScrollEvent(...args))
|
|
243
|
-
ref: "list"
|
|
243
|
+
onScrollPassive: _cache[0] || (_cache[0] = (...args) => _ctx.handleScrollEvent && _ctx.handleScrollEvent(...args))
|
|
244
244
|
}, [
|
|
245
245
|
createElementVNode("div", {
|
|
246
|
+
ref: "phantom",
|
|
246
247
|
class: "nut-list-phantom",
|
|
247
|
-
style: normalizeStyle({ height: _ctx.phantomHeight + "px" })
|
|
248
|
-
ref: "phantom"
|
|
248
|
+
style: normalizeStyle({ height: _ctx.phantomHeight + "px" })
|
|
249
249
|
}, null, 4),
|
|
250
250
|
createElementVNode("div", {
|
|
251
|
+
ref: "actualContent",
|
|
251
252
|
class: "nut-list-container",
|
|
252
|
-
style: normalizeStyle({ transform: _ctx.getTransform() })
|
|
253
|
-
ref: "actualContent"
|
|
253
|
+
style: normalizeStyle({ transform: _ctx.getTransform() })
|
|
254
254
|
}, [
|
|
255
255
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.visibleData, (item, index2) => {
|
|
256
256
|
return openBlock(), createElementBlock("div", {
|
|
257
|
-
|
|
258
|
-
|
|
257
|
+
key: item,
|
|
258
|
+
class: "nut-list-item"
|
|
259
259
|
}, [
|
|
260
260
|
renderSlot(_ctx.$slots, "default", {
|
|
261
261
|
item,
|
|
@@ -166,15 +166,15 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
166
166
|
class: normalizeClass(_ctx.classes)
|
|
167
167
|
}, [
|
|
168
168
|
createElementVNode("view", {
|
|
169
|
-
|
|
170
|
-
|
|
169
|
+
ref: "barRef",
|
|
170
|
+
class: normalizeClass(["nut-menu__bar", { opened: _ctx.opened }])
|
|
171
171
|
}, [
|
|
172
172
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.children, (item, index2) => {
|
|
173
173
|
return openBlock(), createElementBlock("view", {
|
|
174
174
|
key: index2,
|
|
175
175
|
class: normalizeClass(["nut-menu__item", { disabled: item.disabled, active: item.state.showPopup }]),
|
|
176
|
-
|
|
177
|
-
|
|
176
|
+
style: normalizeStyle({ color: item.state.showPopup ? _ctx.activeColor : "" }),
|
|
177
|
+
onClick: ($event) => !item.disabled && _ctx.toggleItem(index2)
|
|
178
178
|
}, [
|
|
179
179
|
createElementVNode("view", {
|
|
180
180
|
class: normalizeClass(["nut-menu__title", _ctx.getClasses(item.state.showPopup)])
|
|
@@ -19,7 +19,7 @@ var __spreadValues = (a, b) => {
|
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
20
|
import { reactive, computed, inject, getCurrentInstance, onUnmounted, resolveComponent, withDirectives, openBlock, createElementBlock, normalizeStyle, createElementVNode, vShow, createVNode, mergeProps, withCtx, Fragment, renderList, normalizeClass, renderSlot, createCommentVNode, toDisplayString } from "vue";
|
|
21
21
|
import { c as createComponent } from "./component-0fbad28e.js";
|
|
22
|
-
import { P as Popup } from "./index-
|
|
22
|
+
import { P as Popup } from "./index-3032df15.js";
|
|
23
23
|
import { Check } from "@nutui/icons-vue";
|
|
24
24
|
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
25
25
|
import "../locale/lang";
|
|
@@ -138,26 +138,25 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
138
138
|
style: normalizeStyle(_ctx.style)
|
|
139
139
|
}, [
|
|
140
140
|
withDirectives(createElementVNode("div", {
|
|
141
|
-
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.handleClickOutside && _ctx.handleClickOutside(...args)),
|
|
142
141
|
class: "nut-menu-item-placeholder-element",
|
|
143
|
-
style: normalizeStyle(_ctx.placeholderElementStyle)
|
|
142
|
+
style: normalizeStyle(_ctx.placeholderElementStyle),
|
|
143
|
+
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.handleClickOutside && _ctx.handleClickOutside(...args))
|
|
144
144
|
}, null, 4), [
|
|
145
145
|
[vShow, _ctx.state.showPopup]
|
|
146
146
|
]),
|
|
147
|
-
createVNode(_component_nut_popup, mergeProps({
|
|
148
|
-
style: { position: "absolute" },
|
|
149
|
-
overlayStyle: { position: "absolute" }
|
|
150
|
-
}, _ctx.$attrs, {
|
|
147
|
+
createVNode(_component_nut_popup, mergeProps(_ctx.$attrs, {
|
|
151
148
|
visible: _ctx.state.showPopup,
|
|
152
149
|
"onUpdate:visible": _cache[1] || (_cache[1] = ($event) => _ctx.state.showPopup = $event),
|
|
150
|
+
style: { position: "absolute" },
|
|
151
|
+
overlayStyle: { position: "absolute" },
|
|
153
152
|
position: _ctx.parent.props.direction === "down" ? "top" : "bottom",
|
|
154
153
|
duration: _ctx.parent.props.duration,
|
|
155
154
|
"destroy-on-close": false,
|
|
156
155
|
overlay: _ctx.parent.props.overlay,
|
|
157
|
-
onClosed: _ctx.handleClose,
|
|
158
156
|
lockScroll: _ctx.parent.props.lockScroll,
|
|
159
157
|
teleportDisable: false,
|
|
160
|
-
"close-on-click-overlay": _ctx.parent.props.closeOnClickOverlay
|
|
158
|
+
"close-on-click-overlay": _ctx.parent.props.closeOnClickOverlay,
|
|
159
|
+
onClosed: _ctx.handleClose
|
|
161
160
|
}), {
|
|
162
161
|
default: withCtx(() => [
|
|
163
162
|
createElementVNode("view", _hoisted_1, [
|
|
@@ -188,7 +187,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
188
187
|
])
|
|
189
188
|
]),
|
|
190
189
|
_: 3
|
|
191
|
-
}, 16, ["visible", "position", "duration", "overlay", "
|
|
190
|
+
}, 16, ["visible", "position", "duration", "overlay", "lockScroll", "close-on-click-overlay", "onClosed"])
|
|
192
191
|
], 4)), [
|
|
193
192
|
[vShow, _ctx.state.showWrapper]
|
|
194
193
|
]);
|
|
@@ -39,7 +39,7 @@ const _sfc_main = create({
|
|
|
39
39
|
default: 10
|
|
40
40
|
}
|
|
41
41
|
},
|
|
42
|
-
emits: ["
|
|
42
|
+
emits: ["onClickBack", "onClickTitle", "onClickIcon", "onClickRight"],
|
|
43
43
|
setup(props, { emit }) {
|
|
44
44
|
const { border, fixed, safeAreaInsetTop, placeholder } = toRefs(props);
|
|
45
45
|
const navHeight = ref("auto");
|
|
@@ -75,16 +75,16 @@ const _sfc_main = create({
|
|
|
75
75
|
}
|
|
76
76
|
});
|
|
77
77
|
const handleLeft = () => {
|
|
78
|
-
emit("
|
|
78
|
+
emit("onClickBack");
|
|
79
79
|
};
|
|
80
80
|
const handleCenter = () => {
|
|
81
|
-
emit("
|
|
81
|
+
emit("onClickTitle");
|
|
82
82
|
};
|
|
83
83
|
const handleCenterIcon = () => {
|
|
84
|
-
emit("
|
|
84
|
+
emit("onClickIcon");
|
|
85
85
|
};
|
|
86
86
|
const handleRight = () => {
|
|
87
|
-
emit("
|
|
87
|
+
emit("onClickRight");
|
|
88
88
|
};
|
|
89
89
|
return {
|
|
90
90
|
navbarRef,
|
|
@@ -114,9 +114,9 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
114
114
|
style: normalizeStyle(_ctx.rootStyle)
|
|
115
115
|
}, [
|
|
116
116
|
createElementVNode("view", {
|
|
117
|
+
ref: "navbarRef",
|
|
117
118
|
class: normalizeClass(_ctx.classes),
|
|
118
|
-
style: normalizeStyle({ zIndex: _ctx.zIndex })
|
|
119
|
-
ref: "navbarRef"
|
|
119
|
+
style: normalizeStyle({ zIndex: _ctx.zIndex })
|
|
120
120
|
}, [
|
|
121
121
|
createElementVNode("view", {
|
|
122
122
|
class: "nut-navbar__left",
|