@nutui/nutui 3.1.23-beta.6 → 3.2.2-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +63 -1
- package/dist/nutui.es.js +1475 -1070
- package/dist/nutui.umd.js +1468 -1063
- package/dist/packages/_es/ActionSheet.js +4 -22
- package/dist/packages/_es/Address.js +79 -71
- package/dist/packages/_es/AddressList.js +7 -5
- package/dist/packages/_es/Animate.js +2 -21
- package/dist/packages/_es/Audio.js +39 -68
- package/dist/packages/_es/AudioOperate.js +3 -24
- package/dist/packages/_es/Avatar.js +8 -24
- package/dist/packages/_es/AvatarGroup.js +1 -1
- package/dist/packages/_es/BackTop.js +1 -1
- package/dist/packages/_es/Badge.js +1 -1
- package/dist/packages/_es/Barrage.js +7 -4
- package/dist/packages/_es/Button.js +6 -5
- package/dist/packages/_es/Calendar.js +10 -4
- package/dist/packages/_es/CalendarItem.js +1 -1
- package/dist/packages/_es/Card.js +1 -1
- package/dist/packages/_es/Cascader.js +51 -65
- package/dist/packages/_es/Category.js +2 -2
- package/dist/packages/_es/CategoryPane.js +10 -10
- package/dist/packages/_es/Cell.js +8 -9
- package/dist/packages/_es/CellGroup.js +1 -1
- package/dist/packages/_es/Checkbox.js +31 -17
- package/dist/packages/_es/CheckboxGroup.js +14 -7
- package/dist/packages/_es/CircleProgress.js +1 -1
- package/dist/packages/_es/Col.js +5 -11
- package/dist/packages/_es/Collapse.js +22 -19
- package/dist/packages/_es/CollapseItem.js +30 -42
- package/dist/packages/_es/Comment.js +13 -9
- package/dist/packages/_es/ConfigProvider.js +8 -4
- package/dist/packages/_es/CountDown.js +40 -46
- package/dist/packages/_es/CountUp.js +39 -40
- package/dist/packages/_es/DatePicker.js +25 -33
- package/dist/packages/_es/Dialog.js +12 -27
- package/dist/packages/_es/Divider.js +7 -24
- package/dist/packages/_es/Drag.js +1 -1
- package/dist/packages/_es/Ecard.js +7 -4
- package/dist/packages/_es/Elevator.js +25 -38
- package/dist/packages/_es/Ellipsis.js +14 -28
- package/dist/packages/_es/Empty.js +1 -1
- package/dist/packages/_es/FixedNav.js +18 -14
- package/dist/packages/_es/Form.js +8 -4
- package/dist/packages/_es/FormItem.js +1 -1
- package/dist/packages/_es/Grid.js +1 -1
- package/dist/packages/_es/GridItem.js +6 -5
- package/dist/packages/_es/Icon.js +15 -11
- package/dist/packages/_es/Image.js +8 -24
- package/dist/packages/_es/ImagePreview.js +24 -39
- package/dist/packages/_es/Indicator.js +1 -1
- package/dist/packages/_es/InfiniteLoading.js +8 -33
- package/dist/packages/_es/Input.js +75 -69
- package/dist/packages/_es/InputNumber.js +20 -14
- package/dist/packages/_es/Layout.js +1 -1
- package/dist/packages/_es/List.js +10 -25
- package/dist/packages/_es/Menu.js +17 -10
- package/dist/packages/_es/MenuItem.js +5 -26
- package/dist/packages/_es/Navbar.js +10 -8
- package/dist/packages/_es/NoticeBar.js +20 -31
- package/dist/packages/_es/Notify.js +16 -32
- package/dist/packages/_es/NumberKeyboard.js +21 -16
- package/dist/packages/_es/OldPicker.js +47 -46
- package/dist/packages/_es/OverLay.js +11 -23
- package/dist/packages/_es/Pagination.js +1 -1
- package/dist/packages/_es/Picker.js +81 -59
- package/dist/packages/_es/Popover.js +58 -58
- package/dist/packages/_es/Popup.js +38 -43
- package/dist/packages/_es/Price.js +1 -1
- package/dist/packages/_es/Progress.js +4 -5
- package/dist/packages/_es/PullRefresh.js +5 -20
- package/dist/packages/_es/Radio.js +25 -13
- package/dist/packages/_es/RadioGroup.js +12 -5
- package/dist/packages/_es/Range.js +20 -33
- package/dist/packages/_es/Rate.js +5 -24
- package/dist/packages/_es/Row.js +5 -11
- package/dist/packages/_es/SearchBar.js +5 -24
- package/dist/packages/_es/ShortPassword.js +18 -11
- package/dist/packages/_es/SideNavBar.js +4 -22
- package/dist/packages/_es/SideNavBarItem.js +1 -1
- package/dist/packages/_es/Signature.js +15 -23
- package/dist/packages/_es/Skeleton.js +1 -1
- package/dist/packages/_es/Sku.js +24 -32
- package/dist/packages/_es/Step.js +9 -26
- package/dist/packages/_es/Steps.js +8 -4
- package/dist/packages/_es/Sticky.js +23 -12
- package/dist/packages/_es/SubSideNavBar.js +4 -22
- package/dist/packages/_es/Swipe.js +5 -24
- package/dist/packages/_es/Swiper.js +23 -14
- package/dist/packages/_es/SwiperItem.js +1 -1
- package/dist/packages/_es/Switch.js +15 -11
- package/dist/packages/_es/TabPane.js +1 -1
- package/dist/packages/_es/Tabbar.js +7 -4
- package/dist/packages/_es/TabbarItem.js +13 -14
- package/dist/packages/_es/Table.js +10 -25
- package/dist/packages/_es/Tabs.js +20 -29
- package/dist/packages/_es/Tag.js +11 -15
- package/dist/packages/_es/TextArea.js +8 -5
- package/dist/packages/_es/TimeDetail.js +5 -24
- package/dist/packages/_es/TimePannel.js +4 -22
- package/dist/packages/_es/TimeSelect.js +1 -1
- package/dist/packages/_es/Toast.js +22 -39
- package/dist/packages/_es/Uploader.js +54 -54
- package/dist/packages/_es/Video.js +22 -33
- package/dist/packages/_es/WaterMark.js +31 -44
- package/dist/packages/_es/common.js +21 -11
- package/dist/packages/_es/component.js +5 -5
- package/dist/packages/_es/index.js +1 -1
- package/dist/packages/_es/index2.js +1 -1
- package/dist/packages/_es/index3.js +1 -1
- package/dist/packages/_es/index4.js +1 -1
- package/dist/packages/_es/index5.js +26 -35
- 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 +1 -111
- package/dist/packages/actionsheet/index.scss +17 -0
- package/dist/packages/address/index.scss +60 -0
- package/dist/packages/addresslist/index.scss +57 -17
- package/dist/packages/audio/index.scss +8 -0
- package/dist/packages/barrage/index.scss +7 -0
- package/dist/packages/button/index.scss +1 -0
- package/dist/packages/card/index.scss +8 -1
- package/dist/packages/category/index.scss +25 -4
- package/dist/packages/categorypane/index.scss +18 -65
- package/dist/packages/circleprogress/index.scss +6 -0
- package/dist/packages/collapseitem/index.scss +21 -0
- package/dist/packages/comment/index.scss +37 -0
- package/dist/packages/countup/index.scss +24 -3
- package/dist/packages/ecard/index.scss +31 -1
- package/dist/packages/elevator/index.scss +16 -0
- package/dist/packages/empty/index.scss +6 -0
- package/dist/packages/fixednav/index.scss +7 -0
- package/dist/packages/image/index.scss +12 -0
- package/dist/packages/infiniteloading/index.scss +18 -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/menu/index.scss +14 -2
- package/dist/packages/menuitem/index.scss +8 -0
- package/dist/packages/noticebar/index.scss +13 -0
- package/dist/packages/numberkeyboard/index.scss +10 -0
- package/dist/packages/picker/index.scss +33 -0
- package/dist/packages/popup/index.scss +10 -0
- package/dist/packages/radio/index.scss +1 -0
- package/dist/packages/shortpassword/index.scss +20 -0
- package/dist/packages/sidenavbaritem/index.scss +9 -0
- package/dist/packages/sku/index.scss +40 -0
- package/dist/packages/step/index.scss +52 -0
- package/dist/packages/subsidenavbar/index.scss +12 -0
- package/dist/packages/swiper/index.scss +2 -0
- package/dist/packages/swiperitem/index.scss +3 -0
- package/dist/packages/tag/index.scss +20 -0
- package/dist/packages/watermark/index.scss +1 -1
- package/dist/smartips/attributes.json +38 -2
- package/dist/smartips/tags.json +14 -4
- package/dist/smartips/web-types.json +86 -4
- package/dist/style.css +1 -1
- package/dist/styles/themes/default.scss +51 -51
- package/dist/styles/themes/jdb.scss +51 -51
- package/dist/styles/themes/jdt.scss +51 -51
- package/dist/styles/variables-jdb.scss +28 -7
- package/dist/styles/variables-jdt.scss +28 -7
- package/dist/styles/variables.scss +27 -7
- package/dist/types/__VUE/actionsheet/index.vue.d.ts +1 -1
- package/dist/types/__VUE/address/index.vue.d.ts +1 -1
- package/dist/types/__VUE/addresslist/index.vue.d.ts +1 -1
- package/dist/types/__VUE/audio/index.vue.d.ts +4 -1
- package/dist/types/__VUE/audiooperate/index.vue.d.ts +15 -72
- package/dist/types/__VUE/avatargroup/index.vue.d.ts +1 -1
- package/dist/types/__VUE/backtop/index.vue.d.ts +1 -1
- package/dist/types/__VUE/calendar/index.vue.d.ts +7 -0
- package/dist/types/__VUE/calendaritem/index.vue.d.ts +2 -2
- package/dist/types/__VUE/categorypane/index.vue.d.ts +1 -1
- package/dist/types/__VUE/cell/index.vue.d.ts +9 -2
- package/dist/types/__VUE/cellgroup/index.vue.d.ts +1 -1
- package/dist/types/__VUE/checkboxgroup/index.vue.d.ts +1 -1
- package/dist/types/__VUE/circleprogress/index.vue.d.ts +1 -1
- package/dist/types/__VUE/col/index.vue.d.ts +2 -5
- package/dist/types/__VUE/collapse/index.vue.d.ts +2 -2
- package/dist/types/__VUE/collapseitem/index.vue.d.ts +1 -1
- package/dist/types/__VUE/configprovider/index.vue.d.ts +1 -1
- package/dist/types/__VUE/countdown/index.vue.d.ts +1 -1
- package/dist/types/__VUE/countup/index.vue.d.ts +1 -1
- package/dist/types/__VUE/datepicker/index.vue.d.ts +1 -1
- package/dist/types/__VUE/fixednav/common.d.ts +56 -0
- package/dist/types/__VUE/fixednav/index.vue.d.ts +17 -9
- package/dist/types/__VUE/formitem/index.vue.d.ts +1 -1
- package/dist/types/__VUE/griditem/index.vue.d.ts +1 -1
- package/dist/types/__VUE/imagepreview/imagePreviewItem.vue.d.ts +1 -1
- package/dist/types/__VUE/imagepreview/index.d.ts +7 -6
- package/dist/types/__VUE/imagepreview/index.vue.d.ts +4 -4
- package/dist/types/__VUE/imagepreview/types.d.ts +7 -0
- package/dist/types/__VUE/infiniteloading/index.vue.d.ts +1 -1
- package/dist/types/__VUE/input/index.vue.d.ts +4 -9
- package/dist/types/__VUE/inputnumber/index.vue.d.ts +15 -1
- package/dist/types/__VUE/menu/index.vue.d.ts +3 -0
- package/dist/types/__VUE/menuitem/index.vue.d.ts +1 -4
- package/dist/types/__VUE/noticebar/index.vue.d.ts +4 -4
- package/dist/types/__VUE/numberkeyboard/index.vue.d.ts +1 -1
- package/dist/types/__VUE/oldpicker/Column.vue.d.ts +1 -1
- package/dist/types/__VUE/oldpicker/index.vue.d.ts +1 -1
- package/dist/types/__VUE/overlay/index.vue.d.ts +1 -1
- package/dist/types/__VUE/picker/Column.vue.d.ts +8 -0
- package/dist/types/__VUE/picker/index.vue.d.ts +28 -13
- package/dist/types/__VUE/popover/index.vue.d.ts +2 -2
- package/dist/types/__VUE/pullrefresh/index.vue.d.ts +1 -1
- package/dist/types/__VUE/radiogroup/index.vue.d.ts +1 -1
- package/dist/types/__VUE/row/index.vue.d.ts +2 -5
- package/dist/types/__VUE/searchbar/index.vue.d.ts +1 -1
- package/dist/types/__VUE/shortpassword/index.vue.d.ts +1 -1
- package/dist/types/__VUE/sidenavbar/index.vue.d.ts +1 -1
- package/dist/types/__VUE/sidenavbaritem/index.vue.d.ts +1 -1
- package/dist/types/__VUE/signature/index.vue.d.ts +5 -2
- package/dist/types/__VUE/subsidenavbar/index.vue.d.ts +1 -1
- package/dist/types/__VUE/swiperitem/index.vue.d.ts +1 -1
- package/dist/types/__VUE/switch/index.vue.d.ts +2 -2
- package/dist/types/__VUE/tabbaritem/index.vue.d.ts +1 -1
- package/dist/types/__VUE/tabpane/index.vue.d.ts +1 -1
- package/dist/types/__VUE/textarea/index.vue.d.ts +1 -1
- package/dist/types/__VUE/timedetail/index.vue.d.ts +1 -1
- package/dist/types/__VUE/timepannel/index.vue.d.ts +1 -1
- package/dist/types/__VUE/timeselect/index.vue.d.ts +1 -1
- package/dist/types/__VUE/uploader/index.vue.d.ts +7 -0
- package/dist/types/__VUE/uploader/uploader.d.ts +1 -0
- package/dist/types/__VUE/watermark/index.vue.d.ts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/package.json +2 -1
- package/dist/packages/index.d.ts +0 -3
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.
|
|
2
|
+
* @nutui/nutui v3.2.2-beta.1 Mon Aug 22 2022 15:19:47 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
|
-
import { ref, reactive, computed, watch, onMounted, resolveComponent, openBlock, createElementBlock, normalizeClass, Fragment, normalizeStyle, createElementVNode, toDisplayString, createCommentVNode, renderSlot, createVNode, withDirectives, createBlock, vShow, createTextVNode } from "vue";
|
|
6
|
+
import { ref, reactive, computed, watch, onMounted, resolveComponent, openBlock, createElementBlock, normalizeClass, Fragment, normalizeStyle, createElementVNode, toDisplayString, createCommentVNode, renderSlot, createVNode, mergeProps, withDirectives, createBlock, vShow, createTextVNode } from "vue";
|
|
7
7
|
import { c as createComponent } from "./component.js";
|
|
8
8
|
import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
|
|
9
9
|
import "../locale/lang";
|
|
@@ -270,6 +270,8 @@ const _sfc_main = create({
|
|
|
270
270
|
emit("blur", value, event);
|
|
271
271
|
};
|
|
272
272
|
const clear = (event) => {
|
|
273
|
+
if (props.disabled)
|
|
274
|
+
return;
|
|
273
275
|
emit("update:modelValue", "", event);
|
|
274
276
|
emit("change", "", event);
|
|
275
277
|
emit("clear", "", event);
|
|
@@ -304,10 +306,13 @@ const _sfc_main = create({
|
|
|
304
306
|
return;
|
|
305
307
|
}
|
|
306
308
|
};
|
|
307
|
-
watch(
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
309
|
+
watch(
|
|
310
|
+
() => props.modelValue,
|
|
311
|
+
() => {
|
|
312
|
+
updateValue(getModelValue());
|
|
313
|
+
resetValidation();
|
|
314
|
+
}
|
|
315
|
+
);
|
|
311
316
|
onMounted(() => {
|
|
312
317
|
updateValue(getModelValue(), props.formatTrigger);
|
|
313
318
|
});
|
|
@@ -334,18 +339,21 @@ const _hoisted_1 = { class: "label-string" };
|
|
|
334
339
|
const _hoisted_2 = { class: "nut-input-value" };
|
|
335
340
|
const _hoisted_3 = { class: "label-string" };
|
|
336
341
|
const _hoisted_4 = { class: "nut-input-value" };
|
|
337
|
-
const _hoisted_5 =
|
|
338
|
-
const _hoisted_6 =
|
|
339
|
-
const _hoisted_7 =
|
|
342
|
+
const _hoisted_5 = { class: "nut-input-inner" };
|
|
343
|
+
const _hoisted_6 = { class: "nut-input-box" };
|
|
344
|
+
const _hoisted_7 = ["maxlength", "placeholder", "disabled", "readonly", "value", "formatTrigger", "autofocus"];
|
|
345
|
+
const _hoisted_8 = ["type", "maxlength", "placeholder", "disabled", "readonly", "value", "formatTrigger", "autofocus"];
|
|
346
|
+
const _hoisted_9 = { class: "nut-input-clear-box" };
|
|
347
|
+
const _hoisted_10 = {
|
|
340
348
|
key: 0,
|
|
341
349
|
class: "nut-input-word-limit"
|
|
342
350
|
};
|
|
343
|
-
const
|
|
351
|
+
const _hoisted_11 = { class: "nut-input-word-num" };
|
|
344
352
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
345
353
|
const _component_nut_icon = resolveComponent("nut-icon");
|
|
346
354
|
return openBlock(), createElementBlock("view", {
|
|
347
355
|
class: normalizeClass(_ctx.classes),
|
|
348
|
-
onClick: _cache[
|
|
356
|
+
onClick: _cache[11] || (_cache[11] = (...args) => _ctx.onClick && _ctx.onClick(...args))
|
|
349
357
|
}, [
|
|
350
358
|
_ctx.$slots.input ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
351
359
|
_ctx.label ? (openBlock(), createElementBlock("view", {
|
|
@@ -372,10 +380,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
372
380
|
class: "nut-input-left-icon",
|
|
373
381
|
onClick: _cache[1] || (_cache[1] = (...args) => _ctx.onClickLeftIcon && _ctx.onClickLeftIcon(...args))
|
|
374
382
|
}, [
|
|
375
|
-
createVNode(_component_nut_icon, {
|
|
376
|
-
name: _ctx.leftIcon,
|
|
377
|
-
size: _ctx.leftIconSize
|
|
378
|
-
}, null, 8, ["name", "size"])
|
|
383
|
+
createVNode(_component_nut_icon, mergeProps({ name: _ctx.leftIcon }, _ctx.$attrs, { size: _ctx.leftIconSize }), null, 16, ["name", "size"])
|
|
379
384
|
])) : createCommentVNode("", true),
|
|
380
385
|
_ctx.label ? (openBlock(), createElementBlock("view", {
|
|
381
386
|
key: 1,
|
|
@@ -388,68 +393,69 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
388
393
|
createElementVNode("view", _hoisted_3, toDisplayString(_ctx.label) + " " + toDisplayString(_ctx.colon ? ":" : ""), 1)
|
|
389
394
|
], 6)) : createCommentVNode("", true),
|
|
390
395
|
createElementVNode("view", _hoisted_4, [
|
|
391
|
-
createElementVNode("view",
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
396
|
+
createElementVNode("view", _hoisted_5, [
|
|
397
|
+
createElementVNode("view", _hoisted_6, [
|
|
398
|
+
_ctx.type == "textarea" ? (openBlock(), createElementBlock("textarea", {
|
|
399
|
+
key: 0,
|
|
400
|
+
class: "input-text",
|
|
401
|
+
ref: "inputRef",
|
|
402
|
+
style: normalizeStyle(_ctx.stylesTextarea),
|
|
403
|
+
maxlength: _ctx.maxLength,
|
|
404
|
+
placeholder: _ctx.placeholder || _ctx.translate("placeholder"),
|
|
405
|
+
disabled: _ctx.disabled,
|
|
406
|
+
readonly: _ctx.readonly,
|
|
407
|
+
value: _ctx.modelValue,
|
|
408
|
+
formatTrigger: _ctx.formatTrigger,
|
|
409
|
+
autofocus: _ctx.autofocus,
|
|
410
|
+
onInput: _cache[2] || (_cache[2] = (...args) => _ctx.onInput && _ctx.onInput(...args)),
|
|
411
|
+
onFocus: _cache[3] || (_cache[3] = (...args) => _ctx.onFocus && _ctx.onFocus(...args)),
|
|
412
|
+
onBlur: _cache[4] || (_cache[4] = (...args) => _ctx.onBlur && _ctx.onBlur(...args)),
|
|
413
|
+
onClick: _cache[5] || (_cache[5] = (...args) => _ctx.onClickInput && _ctx.onClickInput(...args))
|
|
414
|
+
}, null, 44, _hoisted_7)) : (openBlock(), createElementBlock("input", {
|
|
415
|
+
key: 1,
|
|
416
|
+
class: "input-text",
|
|
417
|
+
ref: "inputRef",
|
|
418
|
+
style: normalizeStyle(_ctx.styles),
|
|
419
|
+
type: _ctx.inputType(_ctx.type),
|
|
420
|
+
maxlength: _ctx.maxLength,
|
|
421
|
+
placeholder: _ctx.placeholder || _ctx.translate("placeholder"),
|
|
422
|
+
disabled: _ctx.disabled,
|
|
423
|
+
readonly: _ctx.readonly,
|
|
424
|
+
value: _ctx.modelValue,
|
|
425
|
+
formatTrigger: _ctx.formatTrigger,
|
|
426
|
+
autofocus: _ctx.autofocus,
|
|
427
|
+
onInput: _cache[6] || (_cache[6] = (...args) => _ctx.onInput && _ctx.onInput(...args)),
|
|
428
|
+
onFocus: _cache[7] || (_cache[7] = (...args) => _ctx.onFocus && _ctx.onFocus(...args)),
|
|
429
|
+
onBlur: _cache[8] || (_cache[8] = (...args) => _ctx.onBlur && _ctx.onBlur(...args)),
|
|
430
|
+
onClick: _cache[9] || (_cache[9] = (...args) => _ctx.onClickInput && _ctx.onClickInput(...args))
|
|
431
|
+
}, null, 44, _hoisted_8))
|
|
432
|
+
]),
|
|
433
|
+
createElementVNode("view", _hoisted_9, [
|
|
434
|
+
_ctx.clearable && !_ctx.readonly ? withDirectives((openBlock(), createBlock(_component_nut_icon, mergeProps({
|
|
435
|
+
key: 0,
|
|
436
|
+
class: "nut-input-clear",
|
|
437
|
+
name: _ctx.clearIcon
|
|
438
|
+
}, _ctx.$attrs, {
|
|
439
|
+
size: _ctx.clearSize,
|
|
440
|
+
onClick: _ctx.clear
|
|
441
|
+
}), null, 16, ["name", "size", "onClick"])), [
|
|
442
|
+
[vShow, _ctx.active && _ctx.modelValue.length > 0]
|
|
443
|
+
]) : createCommentVNode("", true)
|
|
444
|
+
]),
|
|
436
445
|
_ctx.rightIcon && _ctx.rightIcon.length > 0 ? (openBlock(), createElementBlock("view", {
|
|
437
|
-
key:
|
|
446
|
+
key: 0,
|
|
438
447
|
class: "nut-input-right-icon",
|
|
439
|
-
onClick: _cache[
|
|
448
|
+
onClick: _cache[10] || (_cache[10] = (...args) => _ctx.onClickRightIcon && _ctx.onClickRightIcon(...args))
|
|
440
449
|
}, [
|
|
441
|
-
createVNode(_component_nut_icon, {
|
|
442
|
-
name: _ctx.rightIcon,
|
|
443
|
-
size: _ctx.rightIconSize
|
|
444
|
-
}, null, 8, ["name", "size"])
|
|
450
|
+
createVNode(_component_nut_icon, mergeProps({ name: _ctx.rightIcon }, _ctx.$attrs, { size: _ctx.rightIconSize }), null, 16, ["name", "size"])
|
|
445
451
|
])) : createCommentVNode("", true),
|
|
446
452
|
_ctx.$slots.button ? renderSlot(_ctx.$slots, "button", {
|
|
447
|
-
key:
|
|
453
|
+
key: 1,
|
|
448
454
|
class: "nut-input-button"
|
|
449
455
|
}) : createCommentVNode("", true)
|
|
450
456
|
]),
|
|
451
|
-
_ctx.showWordLimit && _ctx.maxLength ? (openBlock(), createElementBlock("view",
|
|
452
|
-
createElementVNode("span",
|
|
457
|
+
_ctx.showWordLimit && _ctx.maxLength ? (openBlock(), createElementBlock("view", _hoisted_10, [
|
|
458
|
+
createElementVNode("span", _hoisted_11, toDisplayString(_ctx.modelValue ? _ctx.modelValue.length : 0), 1),
|
|
453
459
|
createTextVNode("/" + toDisplayString(_ctx.maxLength), 1)
|
|
454
460
|
])) : createCommentVNode("", true),
|
|
455
461
|
_ctx.errorMessage ? (openBlock(), createElementBlock("view", {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.
|
|
2
|
+
* @nutui/nutui v3.2.2-beta.1 Mon Aug 22 2022 15:19:47 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
|
-
import { computed, resolveComponent, openBlock, createElementBlock, normalizeClass, normalizeStyle, createVNode, createElementVNode } from "vue";
|
|
6
|
+
import { computed, resolveComponent, openBlock, createElementBlock, normalizeClass, normalizeStyle, createVNode, mergeProps, createElementVNode } from "vue";
|
|
7
7
|
import { c as createComponent } from "./component.js";
|
|
8
8
|
import { p as pxCheck } from "./pxCheck.js";
|
|
9
9
|
import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
|
|
@@ -46,6 +46,14 @@ const _sfc_main = create({
|
|
|
46
46
|
readonly: {
|
|
47
47
|
type: Boolean,
|
|
48
48
|
default: false
|
|
49
|
+
},
|
|
50
|
+
iconLeft: {
|
|
51
|
+
type: String,
|
|
52
|
+
default: "minus"
|
|
53
|
+
},
|
|
54
|
+
iconRight: {
|
|
55
|
+
type: String,
|
|
56
|
+
default: "plus"
|
|
49
57
|
}
|
|
50
58
|
},
|
|
51
59
|
emits: ["update:modelValue", "change", "blur", "focus", "reduce", "add", "overlimit"],
|
|
@@ -135,12 +143,11 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
135
143
|
class: normalizeClass(_ctx.classes),
|
|
136
144
|
style: normalizeStyle({ height: _ctx.pxCheck(_ctx.buttonSize) })
|
|
137
145
|
}, [
|
|
138
|
-
createVNode(_component_nut_icon, {
|
|
139
|
-
name:
|
|
140
|
-
class:
|
|
141
|
-
size: _ctx.buttonSize
|
|
142
|
-
|
|
143
|
-
}, null, 8, ["class", "size", "onClick"]),
|
|
146
|
+
createVNode(_component_nut_icon, mergeProps({
|
|
147
|
+
name: _ctx.iconLeft,
|
|
148
|
+
class: ["nut-inputnumber__icon", { "nut-inputnumber__icon--disabled": !_ctx.reduceAllow() }],
|
|
149
|
+
size: _ctx.buttonSize
|
|
150
|
+
}, _ctx.$attrs, { onClick: _ctx.reduce }), null, 16, ["name", "class", "size", "onClick"]),
|
|
144
151
|
createElementVNode("input", {
|
|
145
152
|
type: "number",
|
|
146
153
|
min: _ctx.min,
|
|
@@ -153,12 +160,11 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
153
160
|
onBlur: _cache[1] || (_cache[1] = (...args) => _ctx.blur && _ctx.blur(...args)),
|
|
154
161
|
onFocus: _cache[2] || (_cache[2] = (...args) => _ctx.focus && _ctx.focus(...args))
|
|
155
162
|
}, null, 44, _hoisted_1),
|
|
156
|
-
createVNode(_component_nut_icon, {
|
|
157
|
-
name:
|
|
158
|
-
class:
|
|
159
|
-
size: _ctx.buttonSize
|
|
160
|
-
|
|
161
|
-
}, null, 8, ["class", "size", "onClick"])
|
|
163
|
+
createVNode(_component_nut_icon, mergeProps({
|
|
164
|
+
name: _ctx.iconRight,
|
|
165
|
+
class: ["nut-inputnumber__icon", { "nut-inputnumber__icon--disabled": !_ctx.addAllow() }],
|
|
166
|
+
size: _ctx.buttonSize
|
|
167
|
+
}, _ctx.$attrs, { onClick: _ctx.add }), null, 16, ["name", "class", "size", "onClick"])
|
|
162
168
|
], 6);
|
|
163
169
|
}
|
|
164
170
|
var index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
@@ -1,24 +1,5 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
var __defProps = Object.defineProperties;
|
|
3
|
-
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
4
|
-
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
7
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
8
|
-
var __spreadValues = (a, b) => {
|
|
9
|
-
for (var prop in b || (b = {}))
|
|
10
|
-
if (__hasOwnProp.call(b, prop))
|
|
11
|
-
__defNormalProp(a, prop, b[prop]);
|
|
12
|
-
if (__getOwnPropSymbols)
|
|
13
|
-
for (var prop of __getOwnPropSymbols(b)) {
|
|
14
|
-
if (__propIsEnum.call(b, prop))
|
|
15
|
-
__defNormalProp(a, prop, b[prop]);
|
|
16
|
-
}
|
|
17
|
-
return a;
|
|
18
|
-
};
|
|
19
|
-
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
1
|
/*!
|
|
21
|
-
* @nutui/nutui v3.
|
|
2
|
+
* @nutui/nutui v3.2.2-beta.1 Mon Aug 22 2022 15:19:47 GMT+0800 (中国标准时间)
|
|
22
3
|
* (c) 2022 @jdf2e.
|
|
23
4
|
* Released under the MIT License.
|
|
24
5
|
*/
|
|
@@ -83,17 +64,21 @@ const _sfc_main = create({
|
|
|
83
64
|
}
|
|
84
65
|
state.startOffset = scrollTop - scrollTop % props.height;
|
|
85
66
|
};
|
|
86
|
-
watch(
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
67
|
+
watch(
|
|
68
|
+
() => props.listData,
|
|
69
|
+
() => {
|
|
70
|
+
state.list = props.listData.slice();
|
|
71
|
+
}
|
|
72
|
+
);
|
|
73
|
+
return {
|
|
74
|
+
...toRefs(state),
|
|
90
75
|
list,
|
|
91
76
|
getTransform,
|
|
92
77
|
listHeight,
|
|
93
78
|
visibleData,
|
|
94
79
|
classes,
|
|
95
80
|
handleScrollEvent
|
|
96
|
-
}
|
|
81
|
+
};
|
|
97
82
|
}
|
|
98
83
|
});
|
|
99
84
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.
|
|
2
|
+
* @nutui/nutui v3.2.2-beta.1 Mon Aug 22 2022 15:19:47 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
|
-
import { ref, computed, onMounted, onUnmounted, reactive,
|
|
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
8
|
import { u as useRect } from "./index2.js";
|
|
9
9
|
import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
|
|
@@ -27,6 +27,7 @@ const _sfc_main = create({
|
|
|
27
27
|
type: [Number, String],
|
|
28
28
|
default: 0
|
|
29
29
|
},
|
|
30
|
+
titleIcon: String,
|
|
30
31
|
closeOnClickOverlay: {
|
|
31
32
|
type: Boolean,
|
|
32
33
|
default: true
|
|
@@ -55,11 +56,17 @@ const _sfc_main = create({
|
|
|
55
56
|
publicChildren.push(child.proxy);
|
|
56
57
|
}
|
|
57
58
|
};
|
|
58
|
-
provide(
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
59
|
+
provide(
|
|
60
|
+
"menuParent",
|
|
61
|
+
Object.assign(
|
|
62
|
+
{
|
|
63
|
+
link,
|
|
64
|
+
children: publicChildren,
|
|
65
|
+
internalChildren
|
|
66
|
+
},
|
|
67
|
+
value
|
|
68
|
+
)
|
|
69
|
+
);
|
|
63
70
|
};
|
|
64
71
|
return {
|
|
65
72
|
children: publicChildren,
|
|
@@ -159,11 +166,11 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
159
166
|
class: normalizeClass(["nut-menu__title", _ctx.getClasses(item.state.showPopup)])
|
|
160
167
|
}, [
|
|
161
168
|
createElementVNode("view", _hoisted_2, toDisplayString(item.renderTitle()), 1),
|
|
162
|
-
createVNode(_component_nut_icon, {
|
|
163
|
-
name:
|
|
169
|
+
createVNode(_component_nut_icon, mergeProps(_ctx.$attrs, {
|
|
170
|
+
name: _ctx.titleIcon || (_ctx.direction === "up" ? "arrow-up" : "down-arrow"),
|
|
164
171
|
size: "10",
|
|
165
172
|
class: "nut-menu__title-icon"
|
|
166
|
-
}, null,
|
|
173
|
+
}), null, 16, ["name"])
|
|
167
174
|
], 2)
|
|
168
175
|
], 14, _hoisted_1);
|
|
169
176
|
}), 128))
|
|
@@ -1,24 +1,5 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
var __defProps = Object.defineProperties;
|
|
3
|
-
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
4
|
-
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
7
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
8
|
-
var __spreadValues = (a, b) => {
|
|
9
|
-
for (var prop in b || (b = {}))
|
|
10
|
-
if (__hasOwnProp.call(b, prop))
|
|
11
|
-
__defNormalProp(a, prop, b[prop]);
|
|
12
|
-
if (__getOwnPropSymbols)
|
|
13
|
-
for (var prop of __getOwnPropSymbols(b)) {
|
|
14
|
-
if (__propIsEnum.call(b, prop))
|
|
15
|
-
__defNormalProp(a, prop, b[prop]);
|
|
16
|
-
}
|
|
17
|
-
return a;
|
|
18
|
-
};
|
|
19
|
-
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
1
|
/*!
|
|
21
|
-
* @nutui/nutui v3.
|
|
2
|
+
* @nutui/nutui v3.2.2-beta.1 Mon Aug 22 2022 15:19:47 GMT+0800 (中国标准时间)
|
|
22
3
|
* (c) 2022 @jdf2e.
|
|
23
4
|
* Released under the MIT License.
|
|
24
5
|
*/
|
|
@@ -47,7 +28,6 @@ const _sfc_main = create({
|
|
|
47
28
|
type: Number,
|
|
48
29
|
default: 1
|
|
49
30
|
},
|
|
50
|
-
titleIcon: String,
|
|
51
31
|
activeTitleClass: String,
|
|
52
32
|
inactiveTitleClass: String,
|
|
53
33
|
optionIcon: {
|
|
@@ -90,7 +70,7 @@ const _sfc_main = create({
|
|
|
90
70
|
if (parent.props.direction === "down") {
|
|
91
71
|
return heightStyle;
|
|
92
72
|
} else {
|
|
93
|
-
return
|
|
73
|
+
return { ...heightStyle, top: "auto" };
|
|
94
74
|
}
|
|
95
75
|
});
|
|
96
76
|
const toggle = (show = !state.showPopup, options = {}) => {
|
|
@@ -179,12 +159,11 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
179
159
|
style: normalizeStyle({ "flex-basis": 100 / _ctx.cols + "%" }),
|
|
180
160
|
onClick: ($event) => _ctx.onClick(option)
|
|
181
161
|
}, [
|
|
182
|
-
option.value === _ctx.modelValue ? (openBlock(), createBlock(_component_nut_icon, {
|
|
183
|
-
|
|
184
|
-
class: normalizeClass({ activeTitleClass: option.value === _ctx.modelValue, inactiveTitleClass: option.value !== _ctx.modelValue }),
|
|
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 },
|
|
185
164
|
name: _ctx.optionIcon,
|
|
186
165
|
color: _ctx.parent.props.activeColor
|
|
187
|
-
}, null,
|
|
166
|
+
}), null, 16, ["class", "name", "color"])) : createCommentVNode("", true),
|
|
188
167
|
createElementVNode("view", {
|
|
189
168
|
class: normalizeClass({ activeTitleClass: option.value === _ctx.modelValue, inactiveTitleClass: option.value !== _ctx.modelValue }),
|
|
190
169
|
style: normalizeStyle({ color: option.value === _ctx.modelValue ? _ctx.parent.props.activeColor : "" })
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.
|
|
2
|
+
* @nutui/nutui v3.2.2-beta.1 Mon Aug 22 2022 15:19:47 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
|
-
import { toRefs, ref, computed, onMounted, nextTick, resolveComponent, openBlock, createElementBlock, createElementVNode, normalizeClass, normalizeStyle, createBlock, createCommentVNode, toDisplayString, renderSlot } from "vue";
|
|
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
8
|
import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
|
|
9
9
|
import "../locale/lang";
|
|
@@ -138,12 +138,13 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
138
138
|
class: "title",
|
|
139
139
|
onClick: _cache[1] || (_cache[1] = (...args) => _ctx.handleCenter && _ctx.handleCenter(...args))
|
|
140
140
|
}, toDisplayString(_ctx.title), 1)) : createCommentVNode("", true),
|
|
141
|
-
_ctx.titIcon ? (openBlock(), createBlock(_component_nut_icon, {
|
|
141
|
+
_ctx.titIcon ? (openBlock(), createBlock(_component_nut_icon, mergeProps({
|
|
142
142
|
key: 1,
|
|
143
|
-
class: "icon"
|
|
143
|
+
class: "icon"
|
|
144
|
+
}, _ctx.$attrs, {
|
|
144
145
|
name: _ctx.titIcon,
|
|
145
146
|
onClick: _ctx.handleCenterIcon
|
|
146
|
-
}, null,
|
|
147
|
+
}), null, 16, ["name", "onClick"])) : createCommentVNode("", true),
|
|
147
148
|
renderSlot(_ctx.$slots, "content")
|
|
148
149
|
]),
|
|
149
150
|
createElementVNode("view", {
|
|
@@ -177,12 +178,13 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
177
178
|
class: "title",
|
|
178
179
|
onClick: _cache[4] || (_cache[4] = (...args) => _ctx.handleCenter && _ctx.handleCenter(...args))
|
|
179
180
|
}, toDisplayString(_ctx.title), 1)) : createCommentVNode("", true),
|
|
180
|
-
_ctx.titIcon ? (openBlock(), createBlock(_component_nut_icon, {
|
|
181
|
+
_ctx.titIcon ? (openBlock(), createBlock(_component_nut_icon, mergeProps({
|
|
181
182
|
key: 1,
|
|
182
|
-
class: "icon"
|
|
183
|
+
class: "icon"
|
|
184
|
+
}, _ctx.$attrs, {
|
|
183
185
|
name: _ctx.titIcon,
|
|
184
186
|
onClick: _ctx.handleCenterIcon
|
|
185
|
-
}, null,
|
|
187
|
+
}), null, 16, ["name", "onClick"])) : createCommentVNode("", true),
|
|
186
188
|
renderSlot(_ctx.$slots, "content")
|
|
187
189
|
]),
|
|
188
190
|
createElementVNode("view", {
|
|
@@ -1,28 +1,9 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
var __defProps = Object.defineProperties;
|
|
3
|
-
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
4
|
-
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
7
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
8
|
-
var __spreadValues = (a, b) => {
|
|
9
|
-
for (var prop in b || (b = {}))
|
|
10
|
-
if (__hasOwnProp.call(b, prop))
|
|
11
|
-
__defNormalProp(a, prop, b[prop]);
|
|
12
|
-
if (__getOwnPropSymbols)
|
|
13
|
-
for (var prop of __getOwnPropSymbols(b)) {
|
|
14
|
-
if (__propIsEnum.call(b, prop))
|
|
15
|
-
__defNormalProp(a, prop, b[prop]);
|
|
16
|
-
}
|
|
17
|
-
return a;
|
|
18
|
-
};
|
|
19
|
-
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
1
|
/*!
|
|
21
|
-
* @nutui/nutui v3.
|
|
2
|
+
* @nutui/nutui v3.2.2-beta.1 Mon Aug 22 2022 15:19:47 GMT+0800 (中国标准时间)
|
|
22
3
|
* (c) 2022 @jdf2e.
|
|
23
4
|
* Released under the MIT License.
|
|
24
5
|
*/
|
|
25
|
-
import { h, ref, reactive, computed, watch, onMounted, onActivated, onDeactivated, onUnmounted, toRefs, resolveComponent, openBlock, createElementBlock, normalizeClass, withDirectives, normalizeStyle, renderSlot, createBlock, createCommentVNode, createElementVNode, createTextVNode, toDisplayString, withModifiers, createVNode, vShow, Fragment, renderList } from "vue";
|
|
6
|
+
import { h, ref, reactive, computed, watch, onMounted, onActivated, onDeactivated, onUnmounted, toRefs, resolveComponent, openBlock, createElementBlock, normalizeClass, withDirectives, normalizeStyle, renderSlot, createBlock, createCommentVNode, createElementVNode, createTextVNode, toDisplayString, withModifiers, createVNode, mergeProps, vShow, Fragment, renderList } from "vue";
|
|
26
7
|
import { c as createComponent } from "./component.js";
|
|
27
8
|
import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
|
|
28
9
|
import "../locale/lang";
|
|
@@ -171,12 +152,18 @@ const _sfc_main = create({
|
|
|
171
152
|
}
|
|
172
153
|
return styles;
|
|
173
154
|
});
|
|
174
|
-
watch(
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
155
|
+
watch(
|
|
156
|
+
() => props.text,
|
|
157
|
+
(value) => {
|
|
158
|
+
initScrollWrap();
|
|
159
|
+
}
|
|
160
|
+
);
|
|
161
|
+
watch(
|
|
162
|
+
() => props.list,
|
|
163
|
+
(value) => {
|
|
164
|
+
state.scrollList = [].concat(value);
|
|
165
|
+
}
|
|
166
|
+
);
|
|
180
167
|
const initScrollWrap = (value) => {
|
|
181
168
|
if (state.showNoticeBar == false) {
|
|
182
169
|
return;
|
|
@@ -277,7 +264,9 @@ const _sfc_main = create({
|
|
|
277
264
|
onUnmounted(() => {
|
|
278
265
|
clearInterval(state.timer);
|
|
279
266
|
});
|
|
280
|
-
return
|
|
267
|
+
return {
|
|
268
|
+
...toRefs(props),
|
|
269
|
+
...toRefs(state),
|
|
281
270
|
isEllipsis,
|
|
282
271
|
classes,
|
|
283
272
|
iconShow,
|
|
@@ -293,7 +282,7 @@ const _sfc_main = create({
|
|
|
293
282
|
go,
|
|
294
283
|
handleClickIcon,
|
|
295
284
|
slots
|
|
296
|
-
}
|
|
285
|
+
};
|
|
297
286
|
}
|
|
298
287
|
});
|
|
299
288
|
const _hoisted_1 = {
|
|
@@ -346,10 +335,10 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
346
335
|
onClick: _cache[2] || (_cache[2] = withModifiers((...args) => _ctx.onClickIcon && _ctx.onClickIcon(...args), ["stop"]))
|
|
347
336
|
}, [
|
|
348
337
|
renderSlot(_ctx.$slots, "right-icon", {}, () => [
|
|
349
|
-
createVNode(_component_nut_icon, {
|
|
338
|
+
createVNode(_component_nut_icon, mergeProps(_ctx.$attrs, {
|
|
350
339
|
name: _ctx.rightIcon ? _ctx.rightIcon : "close",
|
|
351
340
|
color: _ctx.color
|
|
352
|
-
}, null,
|
|
341
|
+
}), null, 16, ["name", "color"])
|
|
353
342
|
])
|
|
354
343
|
])) : createCommentVNode("", true)
|
|
355
344
|
], 6)), [
|