@nutui/nutui 4.1.4 → 4.1.5-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/nutui.es.js +1 -1
- package/dist/nutui.js +2100 -2067
- package/dist/nutui.umd.js +1 -1
- package/dist/packages/_es/ActionSheet.js +6 -5
- package/dist/packages/_es/Address.js +17 -17
- package/dist/packages/_es/AddressList.js +3 -3
- 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 +3 -3
- package/dist/packages/_es/Badge.js +3 -3
- package/dist/packages/_es/Calendar.js +23 -18
- package/dist/packages/_es/CalendarItem.js +1 -1
- package/dist/packages/_es/Cascader.js +16 -16
- 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/ConfigProvider.js +57 -66
- package/dist/packages/_es/Countdown.js +20 -6
- package/dist/packages/_es/Countup.js +11 -11
- package/dist/packages/_es/DatePicker.js +11 -11
- 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 +18 -18
- package/dist/packages/_es/InfiniteLoading.js +5 -5
- package/dist/packages/_es/Input.js +5 -5
- package/dist/packages/_es/Invoice.js +11 -5
- package/dist/packages/_es/List.js +11 -11
- package/dist/packages/_es/Menu.js +4 -4
- package/dist/packages/_es/MenuItem.js +11 -12
- package/dist/packages/_es/Navbar.js +21 -7
- package/dist/packages/_es/Noticebar.js +20 -14
- package/dist/packages/_es/Notify.js +3 -3
- package/dist/packages/_es/NumberKeyboard.js +10 -5
- package/dist/packages/_es/Overlay.js +3 -3
- package/dist/packages/_es/Picker.js +3 -3
- package/dist/packages/_es/Popover.js +9 -9
- 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 +14 -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 +38 -37
- 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 +3 -3
- package/dist/packages/_es/Tour.js +7 -7
- 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-7fdbc8f1.js} +13 -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 +2 -2
- package/dist/style.css +1 -1
- package/dist/styles/themes/default.scss +42 -42
- package/dist/styles/themes/jdb.scss +42 -42
- package/dist/styles/themes/jddkh.scss +42 -42
- package/dist/styles/themes/jdt.scss +42 -42
- 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/calendar/index.vue.d.ts +9 -0
- 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/configprovider/common.d.ts +19 -0
- package/dist/types/__VUE/countdown/index.vue.d.ts +7 -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 +3 -2
- package/dist/types/__VUE/list/index.vue.d.ts +4 -4
- package/dist/types/__VUE/navbar/index.vue.d.ts +9 -5
- package/dist/types/__VUE/noticebar/index.vue.d.ts +3 -3
- package/dist/types/__VUE/numberkeyboard/index.vue.d.ts +13 -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/shortpassword/index.vue.d.ts +9 -0
- 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
|
@@ -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,15 +324,15 @@ 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,
|
|
332
332
|
disabled: _ctx.disabled,
|
|
333
333
|
readonly: _ctx.readonly,
|
|
334
334
|
value: _ctx.modelValue,
|
|
335
|
-
|
|
335
|
+
"format-trigger": _ctx.formatTrigger,
|
|
336
336
|
autofocus: _ctx.autofocus,
|
|
337
337
|
enterkeyhint: _ctx.confirmType,
|
|
338
338
|
onInput: _ctx.onInput,
|
|
@@ -342,7 +342,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
342
342
|
onChange: _ctx.endComposing,
|
|
343
343
|
onCompositionend: _ctx.endComposing,
|
|
344
344
|
onCompositionstart: _ctx.startComposing
|
|
345
|
-
}, null, 40, ["style", "maxlength", "placeholder", "disabled", "readonly", "value", "
|
|
345
|
+
}, null, 40, ["style", "maxlength", "placeholder", "disabled", "readonly", "value", "format-trigger", "autofocus", "enterkeyhint", "onInput", "onFocus", "onBlur", "onClick", "onChange", "onCompositionend", "onCompositionstart"])),
|
|
346
346
|
_ctx.showWordLimit && _ctx.maxLength ? (openBlock(), createElementBlock("view", _hoisted_5, [
|
|
347
347
|
createElementVNode("span", _hoisted_6, toDisplayString(_ctx.modelValue ? _ctx.modelValue.length : 0), 1),
|
|
348
348
|
createTextVNode("/" + toDisplayString(_ctx.maxLength), 1)
|
|
@@ -54,7 +54,12 @@ const _sfc_main = create({
|
|
|
54
54
|
default: true
|
|
55
55
|
}
|
|
56
56
|
},
|
|
57
|
-
emits: [
|
|
57
|
+
emits: [
|
|
58
|
+
"submit",
|
|
59
|
+
"scrollBottom",
|
|
60
|
+
// will be deprecated
|
|
61
|
+
"onSubmit"
|
|
62
|
+
],
|
|
58
63
|
setup(props, { emit }) {
|
|
59
64
|
const formRef = ref();
|
|
60
65
|
const list = ref([]);
|
|
@@ -75,6 +80,7 @@ const _sfc_main = create({
|
|
|
75
80
|
};
|
|
76
81
|
const submitFun = () => {
|
|
77
82
|
formRef.value.validate().then(({ valid, errors }) => {
|
|
83
|
+
emit("submit", valid, errors);
|
|
78
84
|
emit("onSubmit", valid, errors);
|
|
79
85
|
});
|
|
80
86
|
};
|
|
@@ -91,7 +97,7 @@ const _sfc_main = create({
|
|
|
91
97
|
});
|
|
92
98
|
}
|
|
93
99
|
});
|
|
94
|
-
const _hoisted_1 = ["
|
|
100
|
+
const _hoisted_1 = ["onUpdate:modelValue", "placeholder"];
|
|
95
101
|
const _hoisted_2 = {
|
|
96
102
|
key: 0,
|
|
97
103
|
class: "nut-invoice__submit"
|
|
@@ -106,8 +112,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
106
112
|
class: normalizeClass(_ctx.classes)
|
|
107
113
|
}, [
|
|
108
114
|
createVNode(_component_nut_form, {
|
|
109
|
-
"
|
|
110
|
-
|
|
115
|
+
ref: "formRef",
|
|
116
|
+
"model-value": _ctx.formValue
|
|
111
117
|
}, {
|
|
112
118
|
default: withCtx(() => [
|
|
113
119
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.list, (item, index2) => {
|
|
@@ -141,9 +147,9 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
141
147
|
_: 2
|
|
142
148
|
}, 1032, ["modelValue", "onUpdate:modelValue"])) : withDirectives((openBlock(), createElementBlock("input", {
|
|
143
149
|
key: 1,
|
|
150
|
+
"onUpdate:modelValue": ($event) => _ctx.formValue[item.formItemProp] = $event,
|
|
144
151
|
class: "nut-input-text",
|
|
145
152
|
placeholder: item.placeholder,
|
|
146
|
-
"onUpdate:modelValue": ($event) => _ctx.formValue[item.formItemProp] = $event,
|
|
147
153
|
type: "text"
|
|
148
154
|
}, null, 8, _hoisted_1)), [
|
|
149
155
|
[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
|
+
"overlay-style": { 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
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
156
|
+
"lock-scroll": _ctx.parent.props.lockScroll,
|
|
157
|
+
"teleport-disable": false,
|
|
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", "lock-scroll", "close-on-click-overlay", "onClosed"])
|
|
192
191
|
], 4)), [
|
|
193
192
|
[vShow, _ctx.state.showWrapper]
|
|
194
193
|
]);
|
|
@@ -39,7 +39,17 @@ const _sfc_main = create({
|
|
|
39
39
|
default: 10
|
|
40
40
|
}
|
|
41
41
|
},
|
|
42
|
-
emits: [
|
|
42
|
+
emits: [
|
|
43
|
+
"clickBack",
|
|
44
|
+
"clickTitle",
|
|
45
|
+
"clickIcon",
|
|
46
|
+
"clickRight",
|
|
47
|
+
// will be deprecated
|
|
48
|
+
"onClickBack",
|
|
49
|
+
"onClickTitle",
|
|
50
|
+
"onClickIcon",
|
|
51
|
+
"onClickRight"
|
|
52
|
+
],
|
|
43
53
|
setup(props, { emit }) {
|
|
44
54
|
const { border, fixed, safeAreaInsetTop, placeholder } = toRefs(props);
|
|
45
55
|
const navHeight = ref("auto");
|
|
@@ -75,16 +85,20 @@ const _sfc_main = create({
|
|
|
75
85
|
}
|
|
76
86
|
});
|
|
77
87
|
const handleLeft = () => {
|
|
78
|
-
emit("
|
|
88
|
+
emit("clickBack");
|
|
89
|
+
emit("onClickBack");
|
|
79
90
|
};
|
|
80
91
|
const handleCenter = () => {
|
|
81
|
-
emit("
|
|
92
|
+
emit("clickTitle");
|
|
93
|
+
emit("onClickTitle");
|
|
82
94
|
};
|
|
83
95
|
const handleCenterIcon = () => {
|
|
84
|
-
emit("
|
|
96
|
+
emit("clickIcon");
|
|
97
|
+
emit("onClickIcon");
|
|
85
98
|
};
|
|
86
99
|
const handleRight = () => {
|
|
87
|
-
emit("
|
|
100
|
+
emit("clickRight");
|
|
101
|
+
emit("onClickRight");
|
|
88
102
|
};
|
|
89
103
|
return {
|
|
90
104
|
navbarRef,
|
|
@@ -114,9 +128,9 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
114
128
|
style: normalizeStyle(_ctx.rootStyle)
|
|
115
129
|
}, [
|
|
116
130
|
createElementVNode("view", {
|
|
131
|
+
ref: "navbarRef",
|
|
117
132
|
class: normalizeClass(_ctx.classes),
|
|
118
|
-
style: normalizeStyle({ zIndex: _ctx.zIndex })
|
|
119
|
-
ref: "navbarRef"
|
|
133
|
+
style: normalizeStyle({ zIndex: _ctx.zIndex })
|
|
120
134
|
}, [
|
|
121
135
|
createElementVNode("view", {
|
|
122
136
|
class: "nut-navbar__left",
|
|
@@ -92,7 +92,7 @@ const _sfc_main = create({
|
|
|
92
92
|
Notice,
|
|
93
93
|
CircleClose
|
|
94
94
|
},
|
|
95
|
-
emits: ["click", "close", "
|
|
95
|
+
emits: ["click", "close", "acrossEnd"],
|
|
96
96
|
setup(props, { emit, slots }) {
|
|
97
97
|
const wrap = ref(null);
|
|
98
98
|
const content = ref(null);
|
|
@@ -208,7 +208,7 @@ const _sfc_main = create({
|
|
|
208
208
|
};
|
|
209
209
|
const onAnimationEnd = (event) => {
|
|
210
210
|
state.firstRound = false;
|
|
211
|
-
emit("
|
|
211
|
+
emit("acrossEnd", event);
|
|
212
212
|
setTimeout(() => {
|
|
213
213
|
state.duration = (state.offsetWidth + state.wrapWidth) / props.speed;
|
|
214
214
|
state.animationClass = "play-infinite";
|
|
@@ -220,19 +220,25 @@ const _sfc_main = create({
|
|
|
220
220
|
};
|
|
221
221
|
const showhorseLamp = () => {
|
|
222
222
|
state.animate = true;
|
|
223
|
-
setTimeout(
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
223
|
+
setTimeout(
|
|
224
|
+
() => {
|
|
225
|
+
state.scrollList.push(state.scrollList[0]);
|
|
226
|
+
state.scrollList.shift();
|
|
227
|
+
state.animate = false;
|
|
228
|
+
},
|
|
229
|
+
~~(props.height / props.speed / 4 * 1e3)
|
|
230
|
+
);
|
|
228
231
|
};
|
|
229
232
|
const startRoll = () => {
|
|
230
|
-
state.timer = setInterval(
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
233
|
+
state.timer = setInterval(
|
|
234
|
+
() => {
|
|
235
|
+
let chunk = 100;
|
|
236
|
+
for (let i = 0; i < chunk; i++) {
|
|
237
|
+
scroll(i, i < chunk - 1 ? false : true);
|
|
238
|
+
}
|
|
239
|
+
},
|
|
240
|
+
props.standTime + 100 * props.speed
|
|
241
|
+
);
|
|
236
242
|
};
|
|
237
243
|
const scroll = (n, last) => {
|
|
238
244
|
setTimeout(() => {
|
|
@@ -407,8 +413,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
407
413
|
}, [
|
|
408
414
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.scrollList, (item, index2) => {
|
|
409
415
|
return openBlock(), createElementBlock("li", {
|
|
410
|
-
class: "nut-noticebar__vertical-item",
|
|
411
416
|
key: index2,
|
|
417
|
+
class: "nut-noticebar__vertical-item",
|
|
412
418
|
style: normalizeStyle({ height: _ctx.pxCheck(_ctx.height), lineHeight: _ctx.pxCheck(_ctx.height) }),
|
|
413
419
|
onClick: ($event) => _ctx.go(item)
|
|
414
420
|
}, toDisplayString(item), 13, _hoisted_5);
|
|
@@ -19,7 +19,7 @@ var __spreadValues = (a, b) => {
|
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
20
|
import { ref, watch, resolveComponent, openBlock, createBlock, withCtx, createElementVNode, normalizeClass, normalizeStyle, renderSlot, createElementBlock, Fragment, createTextVNode, toDisplayString, createVNode, render, onMounted, h } 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 { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
24
24
|
import "../locale/lang";
|
|
25
25
|
import "@nutui/icons-vue";
|
|
@@ -102,7 +102,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
102
102
|
"onUpdate:visible": _cache[1] || (_cache[1] = ($event) => _ctx.isShowPopup = $event),
|
|
103
103
|
position: _ctx.position,
|
|
104
104
|
overlay: false,
|
|
105
|
-
|
|
105
|
+
"teleport-disable": _ctx.teleportDisable
|
|
106
106
|
}, {
|
|
107
107
|
default: withCtx(() => [
|
|
108
108
|
createElementVNode("div", {
|
|
@@ -116,7 +116,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
116
116
|
], 6)
|
|
117
117
|
]),
|
|
118
118
|
_: 3
|
|
119
|
-
}, 8, ["visible", "position", "
|
|
119
|
+
}, 8, ["visible", "position", "teleport-disable"]);
|
|
120
120
|
}
|
|
121
121
|
const Notify = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
122
122
|
const defaultOptions = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ref, computed, watch, resolveComponent, openBlock, createElementBlock, createVNode, withCtx, createElementVNode, toDisplayString, createCommentVNode, Fragment, renderList, normalizeClass, createTextVNode } from "vue";
|
|
2
2
|
import { c as createComponent } from "./component-0fbad28e.js";
|
|
3
|
-
import { P as Popup } from "./index-
|
|
3
|
+
import { P as Popup } from "./index-3032df15.js";
|
|
4
4
|
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
5
5
|
import "../locale/lang";
|
|
6
6
|
import "@nutui/icons-vue";
|
|
@@ -46,6 +46,10 @@ const _sfc_main = create({
|
|
|
46
46
|
popClass: {
|
|
47
47
|
type: String,
|
|
48
48
|
default: ""
|
|
49
|
+
},
|
|
50
|
+
lockScroll: {
|
|
51
|
+
type: Boolean,
|
|
52
|
+
default: true
|
|
49
53
|
}
|
|
50
54
|
},
|
|
51
55
|
emits: ["input", "delete", "close", "blur", "update:modelValue", "update:visible"],
|
|
@@ -137,7 +141,7 @@ const _sfc_main = create({
|
|
|
137
141
|
clickKeyIndex.value = item.id;
|
|
138
142
|
if (item.type == "number" || item.type == "custom") {
|
|
139
143
|
emit("input", item.id);
|
|
140
|
-
if (props.modelValue.length < props.maxlength) {
|
|
144
|
+
if (props.modelValue.length < +props.maxlength) {
|
|
141
145
|
emit("update:modelValue", props.modelValue + item.id);
|
|
142
146
|
}
|
|
143
147
|
}
|
|
@@ -210,9 +214,10 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
210
214
|
visible: _ctx.show,
|
|
211
215
|
"onUpdate:visible": _cache[7] || (_cache[7] = ($event) => _ctx.show = $event),
|
|
212
216
|
position: "bottom",
|
|
213
|
-
|
|
217
|
+
"pop-class": _ctx.popClass,
|
|
214
218
|
overlay: false,
|
|
215
|
-
|
|
219
|
+
"lock-scroll": _ctx.lockScroll,
|
|
220
|
+
"teleport-disable": false
|
|
216
221
|
}, {
|
|
217
222
|
default: withCtx(() => [
|
|
218
223
|
createElementVNode("div", _hoisted_2, [
|
|
@@ -278,7 +283,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
278
283
|
])
|
|
279
284
|
]),
|
|
280
285
|
_: 1
|
|
281
|
-
}, 8, ["visible", "
|
|
286
|
+
}, 8, ["visible", "pop-class", "lock-scroll"])
|
|
282
287
|
], 512);
|
|
283
288
|
}
|
|
284
289
|
const index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
@@ -14,7 +14,7 @@ var __spreadValues = (a, b) => {
|
|
|
14
14
|
}
|
|
15
15
|
return a;
|
|
16
16
|
};
|
|
17
|
-
import { computed, watchEffect, openBlock, createBlock, Transition, withCtx, withDirectives, createElementVNode, normalizeClass,
|
|
17
|
+
import { computed, watchEffect, openBlock, createBlock, Transition, withCtx, withDirectives, createElementVNode, normalizeClass, normalizeStyle, withModifiers, renderSlot, vShow } from "vue";
|
|
18
18
|
import { b as body, c as createComponent } from "./component-0fbad28e.js";
|
|
19
19
|
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
20
20
|
import "../locale/lang";
|
|
@@ -107,8 +107,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
107
107
|
default: withCtx(() => [
|
|
108
108
|
withDirectives(createElementVNode("view", {
|
|
109
109
|
class: normalizeClass(_ctx.classes),
|
|
110
|
-
|
|
111
|
-
|
|
110
|
+
style: normalizeStyle(_ctx.style),
|
|
111
|
+
onClick: _cache[0] || (_cache[0] = withModifiers((...args) => _ctx.onClick && _ctx.onClick(...args), ["stop"]))
|
|
112
112
|
}, [
|
|
113
113
|
renderSlot(_ctx.$slots, "default")
|
|
114
114
|
], 6), [
|
|
@@ -437,8 +437,8 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
437
437
|
onTouchend: _cache[3] || (_cache[3] = (...args) => _ctx.onTouchEnd && _ctx.onTouchEnd(...args))
|
|
438
438
|
}, [
|
|
439
439
|
createElementVNode("view", {
|
|
440
|
-
class: "nut-picker-roller",
|
|
441
440
|
ref: "roller",
|
|
441
|
+
class: "nut-picker-roller",
|
|
442
442
|
style: normalizeStyle(_ctx.threeDimensional ? _ctx.touchRollerStyle : _ctx.touchTileStyle),
|
|
443
443
|
onTransitionend: _cache[0] || (_cache[0] = (...args) => _ctx.stopMomentum && _ctx.stopMomentum(...args))
|
|
444
444
|
}, [
|
|
@@ -588,8 +588,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
588
588
|
}, [
|
|
589
589
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.columnsList, (column2, columnIndex) => {
|
|
590
590
|
return openBlock(), createElementBlock("view", {
|
|
591
|
-
|
|
592
|
-
|
|
591
|
+
key: columnIndex,
|
|
592
|
+
class: "nut-picker__columnitem"
|
|
593
593
|
}, [
|
|
594
594
|
createVNode(_component_nut_picker_column, {
|
|
595
595
|
ref_for: true,
|
|
@@ -2,7 +2,7 @@ import { ref, computed, onMounted, watch, resolveComponent, openBlock, createEle
|
|
|
2
2
|
import { i as isArray, c as createComponent } from "./component-0fbad28e.js";
|
|
3
3
|
import { r as renderIcon } from "./renderIcon-3d0fd47c.js";
|
|
4
4
|
import { u as useRect } from "./index-29892cda.js";
|
|
5
|
-
import { P as Popup } from "./index-
|
|
5
|
+
import { P as Popup } from "./index-3032df15.js";
|
|
6
6
|
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
7
7
|
import "../locale/lang";
|
|
8
8
|
import "@nutui/icons-vue";
|
|
@@ -223,9 +223,9 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
223
223
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
224
224
|
!_ctx.targetId ? (openBlock(), createElementBlock("div", {
|
|
225
225
|
key: 0,
|
|
226
|
+
ref: "popoverRef",
|
|
226
227
|
class: "nut-popover-wrapper",
|
|
227
|
-
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.openPopover && _ctx.openPopover(...args))
|
|
228
|
-
ref: "popoverRef"
|
|
228
|
+
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.openPopover && _ctx.openPopover(...args))
|
|
229
229
|
}, [
|
|
230
230
|
renderSlot(_ctx.$slots, "reference")
|
|
231
231
|
], 512)) : createCommentVNode("", true),
|
|
@@ -234,17 +234,17 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
234
234
|
style: normalizeStyle(_ctx.getRootPosition)
|
|
235
235
|
}, [
|
|
236
236
|
createVNode(_component_nut_popup, {
|
|
237
|
-
popClass: `nut-popover-content nut-popover-content--${_ctx.location}`,
|
|
238
|
-
style: normalizeStyle(_ctx.customStyle),
|
|
239
237
|
visible: _ctx.showPopup,
|
|
240
238
|
"onUpdate:visible": _cache[1] || (_cache[1] = ($event) => _ctx.showPopup = $event),
|
|
239
|
+
"pop-class": `nut-popover-content nut-popover-content--${_ctx.location}`,
|
|
240
|
+
style: normalizeStyle(_ctx.customStyle),
|
|
241
241
|
position: "",
|
|
242
242
|
transition: "nut-popover",
|
|
243
243
|
overlay: _ctx.overlay,
|
|
244
244
|
duration: _ctx.duration,
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
245
|
+
"overlay-style": _ctx.overlayStyle,
|
|
246
|
+
"overlay-class": _ctx.overlayClass,
|
|
247
|
+
"close-on-click-overlay": _ctx.closeOnClickOverlay
|
|
248
248
|
}, {
|
|
249
249
|
default: withCtx(() => [
|
|
250
250
|
createElementVNode("view", _hoisted_1, [
|
|
@@ -270,7 +270,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
270
270
|
], 512)
|
|
271
271
|
]),
|
|
272
272
|
_: 3
|
|
273
|
-
}, 8, ["
|
|
273
|
+
}, 8, ["visible", "pop-class", "style", "overlay", "duration", "overlay-style", "overlay-class", "close-on-click-overlay"])
|
|
274
274
|
], 6)
|
|
275
275
|
], 64);
|
|
276
276
|
}
|
|
@@ -199,8 +199,8 @@ const _hoisted_1 = { class: "nut-pull-refresh-container-topbox-text" };
|
|
|
199
199
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
200
200
|
const _component_Loading = resolveComponent("Loading");
|
|
201
201
|
return openBlock(), createElementBlock("div", {
|
|
202
|
-
class: normalizeClass(_ctx.classes),
|
|
203
202
|
ref: "scroller",
|
|
203
|
+
class: normalizeClass(_ctx.classes),
|
|
204
204
|
onTouchstart: _cache[0] || (_cache[0] = (...args) => _ctx.touchStart && _ctx.touchStart(...args)),
|
|
205
205
|
onTouchmove: _cache[1] || (_cache[1] = (...args) => _ctx.touchMove && _ctx.touchMove(...args)),
|
|
206
206
|
onTouchend: _cache[2] || (_cache[2] = (...args) => _ctx.touchEnd && _ctx.touchEnd(...args))
|
|
@@ -67,7 +67,7 @@ const _sfc_main = create({
|
|
|
67
67
|
default: 0
|
|
68
68
|
}
|
|
69
69
|
},
|
|
70
|
-
emits: ["change", "
|
|
70
|
+
emits: ["change", "dragEnd", "dragStart", "update:modelValue"],
|
|
71
71
|
setup(props, { emit }) {
|
|
72
72
|
const buttonIndex = ref(0);
|
|
73
73
|
let startValue;
|
|
@@ -78,7 +78,7 @@ const _sfc_main = create({
|
|
|
78
78
|
const marksList = computed(() => {
|
|
79
79
|
const { marks, max, min } = props;
|
|
80
80
|
const marksKeys = Object.keys(marks);
|
|
81
|
-
const list = marksKeys.map(parseFloat).sort((a, b) => a - b).filter((point) => point >= min && point <= max);
|
|
81
|
+
const list = marksKeys.map(parseFloat).sort((a, b) => a - b).filter((point) => point >= +min && point <= +max);
|
|
82
82
|
return list;
|
|
83
83
|
});
|
|
84
84
|
const scope = computed(() => Number(props.max) - Number(props.min));
|
|
@@ -152,7 +152,7 @@ const _sfc_main = create({
|
|
|
152
152
|
} else {
|
|
153
153
|
upperBound = modelValue;
|
|
154
154
|
}
|
|
155
|
-
let isActive = mark <= upperBound && mark >= lowerBound;
|
|
155
|
+
let isActive = mark <= +upperBound && mark >= lowerBound;
|
|
156
156
|
return {
|
|
157
157
|
[`${classPrefix}-text`]: true,
|
|
158
158
|
[`${classPrefix}-text-active`]: isActive
|
|
@@ -253,7 +253,7 @@ const _sfc_main = create({
|
|
|
253
253
|
return;
|
|
254
254
|
}
|
|
255
255
|
if (dragStatus.value === "start") {
|
|
256
|
-
emit("
|
|
256
|
+
emit("dragStart");
|
|
257
257
|
}
|
|
258
258
|
touch.move(event);
|
|
259
259
|
dragStatus.value = "draging";
|
|
@@ -281,7 +281,7 @@ const _sfc_main = create({
|
|
|
281
281
|
}
|
|
282
282
|
if (dragStatus.value === "draging") {
|
|
283
283
|
updateValue(currentValue, true);
|
|
284
|
-
emit("
|
|
284
|
+
emit("dragEnd");
|
|
285
285
|
}
|
|
286
286
|
dragStatus.value = "";
|
|
287
287
|
};
|
package/dist/packages/_es/Row.js
CHANGED
|
@@ -94,9 +94,9 @@ const _sfc_main = create({
|
|
|
94
94
|
"focus",
|
|
95
95
|
"clear",
|
|
96
96
|
"search",
|
|
97
|
-
"
|
|
98
|
-
"
|
|
99
|
-
"
|
|
97
|
+
"clickInput",
|
|
98
|
+
"clickLeftIcon",
|
|
99
|
+
"clickRightIcon"
|
|
100
100
|
],
|
|
101
101
|
setup(props, { emit }) {
|
|
102
102
|
const state = reactive({
|
|
@@ -150,13 +150,13 @@ const _sfc_main = create({
|
|
|
150
150
|
emit("search", props.modelValue);
|
|
151
151
|
};
|
|
152
152
|
const clickInput = (event) => {
|
|
153
|
-
emit("
|
|
153
|
+
emit("clickInput", event);
|
|
154
154
|
};
|
|
155
155
|
const leftIconClick = (event) => {
|
|
156
|
-
emit("
|
|
156
|
+
emit("clickLeftIcon", props.modelValue, event);
|
|
157
157
|
};
|
|
158
158
|
const rightIconClick = (event) => {
|
|
159
|
-
emit("
|
|
159
|
+
emit("clickRightIcon", props.modelValue, event);
|
|
160
160
|
};
|
|
161
161
|
const styleSearchbar = computed(() => {
|
|
162
162
|
const style = {
|
|
@@ -244,11 +244,11 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
244
244
|
value: _ctx.modelValue,
|
|
245
245
|
disabled: _ctx.disabled,
|
|
246
246
|
readonly: _ctx.readonly,
|
|
247
|
+
style: normalizeStyle(_ctx.styleSearchbar),
|
|
247
248
|
onClick: _cache[1] || (_cache[1] = (...args) => _ctx.clickInput && _ctx.clickInput(...args)),
|
|
248
249
|
onInput: _cache[2] || (_cache[2] = (...args) => _ctx.valueChange && _ctx.valueChange(...args)),
|
|
249
250
|
onFocus: _cache[3] || (_cache[3] = (...args) => _ctx.valueFocus && _ctx.valueFocus(...args)),
|
|
250
|
-
onBlur: _cache[4] || (_cache[4] = (...args) => _ctx.valueBlur && _ctx.valueBlur(...args))
|
|
251
|
-
style: normalizeStyle(_ctx.styleSearchbar)
|
|
251
|
+
onBlur: _cache[4] || (_cache[4] = (...args) => _ctx.valueBlur && _ctx.valueBlur(...args))
|
|
252
252
|
}, null, 46, _hoisted_3)
|
|
253
253
|
], 32)
|
|
254
254
|
], 2),
|
|
@@ -257,8 +257,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
257
257
|
}, [
|
|
258
258
|
_ctx.clearable ? withDirectives((openBlock(), createElementBlock("view", {
|
|
259
259
|
key: 0,
|
|
260
|
-
|
|
261
|
-
|
|
260
|
+
class: "nut-searchbar__search-icon nut-searchbar__input-clear",
|
|
261
|
+
onClick: _cache[6] || (_cache[6] = (...args) => _ctx.handleClear && _ctx.handleClear(...args))
|
|
262
262
|
}, [
|
|
263
263
|
_ctx.$slots["clear-icon"] ? renderSlot(_ctx.$slots, "clear-icon", { key: 0 }) : (openBlock(), createBlock(resolveDynamicComponent(_ctx.renderIcon(_ctx.clearIcon)), { key: 1 }))
|
|
264
264
|
], 512)), [
|