@nutui/nutui 4.1.3 → 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/CHANGELOG.md +17 -0
- package/README.md +1 -1
- package/dist/nutui.es.js +1 -1
- package/dist/nutui.js +3215 -3175
- package/dist/nutui.umd.js +1 -1
- package/dist/packages/_es/ActionSheet.js +9 -7
- 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 +21 -15
- 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 +96 -57
- 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/formitem/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 +11 -2
- 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/baseProps.d.ts +5 -1
- package/dist/types/__VUE/picker/common.d.ts +503 -11
- package/dist/types/__VUE/picker/doc.en.d.ts +4 -2
- package/dist/types/__VUE/picker/index.vue.d.ts +139 -8
- package/dist/types/__VUE/picker/types.d.ts +6 -0
- package/dist/types/__VUE/picker/usePicker.d.ts +7 -4
- 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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ref, computed, watch, resolveComponent, openBlock, createElementBlock, createVNode, withCtx, createElementVNode, toDisplayString, Fragment, renderList, createCommentVNode } 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 { Tips } from "@nutui/icons-vue";
|
|
5
5
|
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
6
6
|
import "../locale/lang";
|
|
@@ -110,19 +110,19 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
110
110
|
const _component_nut_popup = resolveComponent("nut-popup");
|
|
111
111
|
return openBlock(), createElementBlock("view", null, [
|
|
112
112
|
createVNode(_component_nut_popup, {
|
|
113
|
+
visible: _ctx.show,
|
|
114
|
+
"onUpdate:visible": _cache[2] || (_cache[2] = ($event) => _ctx.show = $event),
|
|
113
115
|
style: {
|
|
114
116
|
padding: "30px 24px 20px 24px",
|
|
115
117
|
borderRadius: "12px",
|
|
116
118
|
textAlign: "center",
|
|
117
119
|
top: "45%"
|
|
118
120
|
},
|
|
119
|
-
visible: _ctx.show,
|
|
120
|
-
"onUpdate:visible": _cache[2] || (_cache[2] = ($event) => _ctx.show = $event),
|
|
121
121
|
closeable: true,
|
|
122
|
-
onClickCloseIcon: _ctx.close,
|
|
123
122
|
"close-on-click-overlay": _ctx.closeOnClickOverlay,
|
|
124
|
-
|
|
125
|
-
|
|
123
|
+
teleportDisable: false,
|
|
124
|
+
onClickCloseIcon: _ctx.close,
|
|
125
|
+
onClickOverlay: _ctx.close
|
|
126
126
|
}, {
|
|
127
127
|
default: withCtx(() => [
|
|
128
128
|
createElementVNode("view", _hoisted_1, toDisplayString(_ctx.title || _ctx.translate("title")), 1),
|
|
@@ -134,8 +134,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
134
134
|
}, [
|
|
135
135
|
(openBlock(true), createElementBlock(Fragment, null, renderList(new Array(_ctx.comLen), (sublen, index2) => {
|
|
136
136
|
return openBlock(), createElementBlock("view", {
|
|
137
|
-
|
|
138
|
-
|
|
137
|
+
key: index2,
|
|
138
|
+
class: "nut-short-password__item"
|
|
139
139
|
}, [
|
|
140
140
|
String(_ctx.realInput).length > index2 ? (openBlock(), createElementBlock("view", _hoisted_4)) : createCommentVNode("", true)
|
|
141
141
|
]);
|
|
@@ -157,7 +157,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
157
157
|
])
|
|
158
158
|
]),
|
|
159
159
|
_: 1
|
|
160
|
-
}, 8, ["visible", "
|
|
160
|
+
}, 8, ["visible", "close-on-click-overlay", "onClickCloseIcon", "onClickOverlay"])
|
|
161
161
|
]);
|
|
162
162
|
}
|
|
163
163
|
const index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
@@ -29,7 +29,6 @@ const _sfc_main = create({
|
|
|
29
29
|
default: 15
|
|
30
30
|
}
|
|
31
31
|
},
|
|
32
|
-
emits: [],
|
|
33
32
|
setup: (props) => {
|
|
34
33
|
const list = ref(null);
|
|
35
34
|
const state = reactive({
|
|
@@ -85,8 +84,8 @@ const _sfc_main = create({
|
|
|
85
84
|
});
|
|
86
85
|
const _hoisted_1 = { class: "nut-side-navbar__content" };
|
|
87
86
|
const _hoisted_2 = {
|
|
88
|
-
|
|
89
|
-
|
|
87
|
+
ref: "list",
|
|
88
|
+
class: "nut-side-navbar__content__list"
|
|
90
89
|
};
|
|
91
90
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
92
91
|
return openBlock(), createElementBlock("view", {
|
|
@@ -36,8 +36,8 @@ const _hoisted_2 = { class: "nut-side-navbar-item__title" };
|
|
|
36
36
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
37
37
|
return openBlock(), createElementBlock("view", {
|
|
38
38
|
class: normalizeClass(_ctx.classes),
|
|
39
|
-
|
|
40
|
-
|
|
39
|
+
ikey: _ctx.ikey,
|
|
40
|
+
onClick: _cache[0] || (_cache[0] = withModifiers((...args) => _ctx.handleClick && _ctx.handleClick(...args), ["stop"]))
|
|
41
41
|
}, [
|
|
42
42
|
createElementVNode("span", _hoisted_2, toDisplayString(_ctx.title), 1)
|
|
43
43
|
], 10, _hoisted_1);
|
package/dist/packages/_es/Sku.js
CHANGED
|
@@ -22,7 +22,7 @@ import Price from "./Price.js";
|
|
|
22
22
|
import { c as createComponent, T as TypeOfFun } from "./component-0fbad28e.js";
|
|
23
23
|
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
24
24
|
import InputNumber from "./InputNumber.js";
|
|
25
|
-
import { p as popupProps, P as Popup } from "./index-
|
|
25
|
+
import { p as popupProps, P as Popup } from "./index-3032df15.js";
|
|
26
26
|
import "../locale/lang";
|
|
27
27
|
import "./pxCheck-c6b9f6b7.js";
|
|
28
28
|
import "@nutui/icons-vue";
|
|
@@ -122,16 +122,16 @@ function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
122
122
|
return openBlock(), createElementBlock("view", _hoisted_1$3, [
|
|
123
123
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.skuInfo, (item, index2) => {
|
|
124
124
|
return openBlock(), createElementBlock("view", {
|
|
125
|
-
|
|
126
|
-
|
|
125
|
+
key: item.id,
|
|
126
|
+
class: "nut-sku-select-item"
|
|
127
127
|
}, [
|
|
128
128
|
createElementVNode("view", _hoisted_2$3, toDisplayString(item.name), 1),
|
|
129
129
|
createElementVNode("view", _hoisted_3$2, [
|
|
130
130
|
(openBlock(true), createElementBlock(Fragment, null, renderList(item.list, (itemAttr, itemAttrIndex) => {
|
|
131
131
|
return openBlock(), createElementBlock("view", {
|
|
132
|
+
key: itemAttr.name,
|
|
132
133
|
class: normalizeClass(["nut-sku-select-item-skus-sku", [{ active: !itemAttr.disable && itemAttr.active }, { disable: itemAttr.disable }]]),
|
|
133
|
-
onClick: ($event) => _ctx.changeSaleChild(itemAttr, itemAttrIndex, item, index2)
|
|
134
|
-
key: itemAttr.name
|
|
134
|
+
onClick: ($event) => _ctx.changeSaleChild(itemAttr, itemAttrIndex, item, index2)
|
|
135
135
|
}, toDisplayString(itemAttr.name), 11, _hoisted_4$2);
|
|
136
136
|
}), 128))
|
|
137
137
|
])
|
|
@@ -301,8 +301,8 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
301
301
|
!_ctx.getSlots("operate-btn") ? (openBlock(), createElementBlock("view", _hoisted_3, [
|
|
302
302
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.btnOptions, (btn, i) => {
|
|
303
303
|
return openBlock(), createElementBlock("view", {
|
|
304
|
-
class: normalizeClass([`nut-sku-operate-btn-${btn}`, "nut-sku-operate-btn-item"]),
|
|
305
304
|
key: i,
|
|
305
|
+
class: normalizeClass([`nut-sku-operate-btn-${btn}`, "nut-sku-operate-btn-item"]),
|
|
306
306
|
onClick: ($event) => _ctx.clickBtnOperate(btn)
|
|
307
307
|
}, toDisplayString(_ctx.getBtnDesc(btn)), 11, _hoisted_4);
|
|
308
308
|
}), 128))
|
|
@@ -368,15 +368,15 @@ const _sfc_main = create({
|
|
|
368
368
|
}),
|
|
369
369
|
emits: [
|
|
370
370
|
"update:visible",
|
|
371
|
-
"
|
|
372
|
-
"
|
|
373
|
-
"
|
|
374
|
-
"
|
|
375
|
-
"
|
|
371
|
+
"selectSku",
|
|
372
|
+
"changeStepper",
|
|
373
|
+
"clickBtnOperate",
|
|
374
|
+
"clickCloseIcon",
|
|
375
|
+
"clickOverlay",
|
|
376
376
|
"close",
|
|
377
377
|
"reduce",
|
|
378
378
|
"add",
|
|
379
|
-
"
|
|
379
|
+
"overLimit"
|
|
380
380
|
],
|
|
381
381
|
components: {
|
|
382
382
|
SkuHeader,
|
|
@@ -406,11 +406,11 @@ const _sfc_main = create({
|
|
|
406
406
|
});
|
|
407
407
|
const getSlots = (name) => slots[name];
|
|
408
408
|
const selectSku = (skus) => {
|
|
409
|
-
emit("
|
|
409
|
+
emit("selectSku", skus);
|
|
410
410
|
};
|
|
411
411
|
const changeStepper = (value) => {
|
|
412
412
|
goodsCount.value = value;
|
|
413
|
-
emit("
|
|
413
|
+
emit("changeStepper", value);
|
|
414
414
|
};
|
|
415
415
|
const add = (value) => {
|
|
416
416
|
emit("add", value);
|
|
@@ -419,20 +419,20 @@ const _sfc_main = create({
|
|
|
419
419
|
emit("reduce", value);
|
|
420
420
|
};
|
|
421
421
|
const stepperOverLimit = (count) => {
|
|
422
|
-
emit("
|
|
422
|
+
emit("overLimit", count);
|
|
423
423
|
};
|
|
424
424
|
const clickBtnOperate = (btn) => {
|
|
425
|
-
emit("
|
|
425
|
+
emit("clickBtnOperate", {
|
|
426
426
|
type: btn,
|
|
427
427
|
value: goodsCount.value
|
|
428
428
|
});
|
|
429
429
|
};
|
|
430
430
|
const closePopup = (type) => {
|
|
431
431
|
if (type == "icon") {
|
|
432
|
-
emit("
|
|
432
|
+
emit("clickCloseIcon");
|
|
433
433
|
}
|
|
434
434
|
if (type == "overlay") {
|
|
435
|
-
emit("
|
|
435
|
+
emit("clickOverlay");
|
|
436
436
|
}
|
|
437
437
|
if (type == "close") {
|
|
438
438
|
emit("close");
|
|
@@ -465,17 +465,17 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
465
465
|
const _component_sku_operate = resolveComponent("sku-operate");
|
|
466
466
|
const _component_nut_popup = resolveComponent("nut-popup");
|
|
467
467
|
return openBlock(), createBlock(_component_nut_popup, {
|
|
468
|
+
visible: _ctx.showPopup,
|
|
469
|
+
"onUpdate:visible": _cache[0] || (_cache[0] = ($event) => _ctx.showPopup = $event),
|
|
468
470
|
position: "bottom",
|
|
469
471
|
closeable: "",
|
|
470
472
|
round: "",
|
|
471
|
-
visible: _ctx.showPopup,
|
|
472
|
-
"onUpdate:visible": _cache[0] || (_cache[0] = ($event) => _ctx.showPopup = $event),
|
|
473
|
-
onClickCloseIcon: _cache[1] || (_cache[1] = ($event) => _ctx.closePopup("icon")),
|
|
474
|
-
onClickOverlay: _cache[2] || (_cache[2] = ($event) => _ctx.closePopup("overlay")),
|
|
475
|
-
onClose: _cache[3] || (_cache[3] = ($event) => _ctx.closePopup("close")),
|
|
476
473
|
style: { "height": "75%" },
|
|
477
474
|
teleportDisable: _ctx.teleportDisable,
|
|
478
|
-
teleport: _ctx.teleport
|
|
475
|
+
teleport: _ctx.teleport,
|
|
476
|
+
onClickCloseIcon: _cache[1] || (_cache[1] = ($event) => _ctx.closePopup("icon")),
|
|
477
|
+
onClickOverlay: _cache[2] || (_cache[2] = ($event) => _ctx.closePopup("overlay")),
|
|
478
|
+
onClose: _cache[3] || (_cache[3] = ($event) => _ctx.closePopup("close"))
|
|
479
479
|
}, {
|
|
480
480
|
default: withCtx(() => [
|
|
481
481
|
createElementVNode("view", _hoisted_1, [
|
|
@@ -17,7 +17,7 @@ const _sfc_main = create({
|
|
|
17
17
|
default: false
|
|
18
18
|
}
|
|
19
19
|
},
|
|
20
|
-
emits: ["
|
|
20
|
+
emits: ["clickStep"],
|
|
21
21
|
setup(props, { emit, slots }) {
|
|
22
22
|
const state = reactive({
|
|
23
23
|
children: []
|
|
@@ -34,7 +34,7 @@ const _sfc_main = create({
|
|
|
34
34
|
child && state.children.push(child);
|
|
35
35
|
};
|
|
36
36
|
const onEmit = (index) => {
|
|
37
|
-
emit("
|
|
37
|
+
emit("clickStep", index);
|
|
38
38
|
};
|
|
39
39
|
provide("parent", {
|
|
40
40
|
relation,
|
|
@@ -113,13 +113,13 @@ const _sfc_main = create({
|
|
|
113
113
|
});
|
|
114
114
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
115
115
|
return openBlock(), createElementBlock("div", {
|
|
116
|
-
class: "nut-sticky",
|
|
117
116
|
ref: "rootRef",
|
|
117
|
+
class: "nut-sticky",
|
|
118
118
|
style: normalizeStyle(_ctx.rootStyle)
|
|
119
119
|
}, [
|
|
120
120
|
createElementVNode("div", {
|
|
121
|
-
class: "nut-sticky__box",
|
|
122
121
|
ref: "stickyRef",
|
|
122
|
+
class: "nut-sticky__box",
|
|
123
123
|
style: normalizeStyle(_ctx.stickyStyle)
|
|
124
124
|
}, [
|
|
125
125
|
renderSlot(_ctx.$slots, "default")
|
|
@@ -39,7 +39,7 @@ const _sfc_main = create({
|
|
|
39
39
|
}
|
|
40
40
|
},
|
|
41
41
|
components: { ArrowDown2, ArrowUp2 },
|
|
42
|
-
emits: ["
|
|
42
|
+
emits: ["titleClick"],
|
|
43
43
|
setup: (props, context) => {
|
|
44
44
|
const state = reactive({
|
|
45
45
|
direction: ""
|
|
@@ -56,7 +56,7 @@ const _sfc_main = create({
|
|
|
56
56
|
};
|
|
57
57
|
});
|
|
58
58
|
const handleClick = () => {
|
|
59
|
-
context.emit("
|
|
59
|
+
context.emit("titleClick");
|
|
60
60
|
state.direction = !state.direction ? "up" : "";
|
|
61
61
|
};
|
|
62
62
|
onMounted(() => {
|
|
@@ -202,8 +202,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
202
202
|
onTouchcancel: _cache[6] || (_cache[6] = (...args) => _ctx.onTouchEnd && _ctx.onTouchEnd(...args))
|
|
203
203
|
}, [
|
|
204
204
|
createElementVNode("view", {
|
|
205
|
-
class: "nut-swipe__left",
|
|
206
205
|
ref: "leftRef",
|
|
206
|
+
class: "nut-swipe__left",
|
|
207
207
|
onClick: _cache[0] || (_cache[0] = ($event) => _ctx.onClick($event, "left", true))
|
|
208
208
|
}, [
|
|
209
209
|
renderSlot(_ctx.$slots, "left")
|
|
@@ -215,8 +215,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
215
215
|
renderSlot(_ctx.$slots, "default")
|
|
216
216
|
]),
|
|
217
217
|
createElementVNode("view", {
|
|
218
|
-
class: "nut-swipe__right",
|
|
219
218
|
ref: "rightRef",
|
|
219
|
+
class: "nut-swipe__right",
|
|
220
220
|
onClick: _cache[2] || (_cache[2] = ($event) => _ctx.onClick($event, "right", true))
|
|
221
221
|
}, [
|
|
222
222
|
renderSlot(_ctx.$slots, "right")
|
|
@@ -25,8 +25,8 @@ const _sfc_main = create({
|
|
|
25
25
|
}
|
|
26
26
|
});
|
|
27
27
|
const _hoisted_1 = {
|
|
28
|
-
|
|
29
|
-
|
|
28
|
+
ref: "swipeGroupRef",
|
|
29
|
+
class: "nut-swipe-group"
|
|
30
30
|
};
|
|
31
31
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
32
32
|
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
@@ -252,7 +252,7 @@ const _sfc_main = create({
|
|
|
252
252
|
});
|
|
253
253
|
};
|
|
254
254
|
const autoplay = () => {
|
|
255
|
-
if (props.autoPlay <= 0 || childCount.value <= 1)
|
|
255
|
+
if (+props.autoPlay <= 0 || childCount.value <= 1)
|
|
256
256
|
return;
|
|
257
257
|
stopAutoPlay();
|
|
258
258
|
state.autoplayTimer = setTimeout(() => {
|
|
@@ -353,7 +353,7 @@ const _sfc_main = create({
|
|
|
353
353
|
watch(
|
|
354
354
|
() => props.autoPlay,
|
|
355
355
|
(val) => {
|
|
356
|
-
val > 0 ? autoplay() : stopAutoPlay();
|
|
356
|
+
+val > 0 ? autoplay() : stopAutoPlay();
|
|
357
357
|
}
|
|
358
358
|
);
|
|
359
359
|
return {
|
|
@@ -391,11 +391,11 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
391
391
|
}, [
|
|
392
392
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.state.children.length, (item, index) => {
|
|
393
393
|
return openBlock(), createElementBlock("i", {
|
|
394
|
+
key: index,
|
|
394
395
|
style: normalizeStyle({
|
|
395
396
|
backgroundColor: _ctx.activePagination === index ? _ctx.paginationColor : "#ddd"
|
|
396
397
|
}),
|
|
397
|
-
class: normalizeClass({ active: _ctx.activePagination === index })
|
|
398
|
-
key: index
|
|
398
|
+
class: normalizeClass({ active: _ctx.activePagination === index })
|
|
399
399
|
}, null, 6);
|
|
400
400
|
}), 128))
|
|
401
401
|
], 2)) : createCommentVNode("", true)
|
|
@@ -93,8 +93,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
93
93
|
const _component_Loading1 = resolveComponent("Loading1");
|
|
94
94
|
return openBlock(), createElementBlock("view", {
|
|
95
95
|
class: normalizeClass(_ctx.classes),
|
|
96
|
-
|
|
97
|
-
|
|
96
|
+
style: normalizeStyle(_ctx.style),
|
|
97
|
+
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.onClick && _ctx.onClick(...args))
|
|
98
98
|
}, [
|
|
99
99
|
createElementVNode("view", _hoisted_1, [
|
|
100
100
|
_ctx.loading ? renderSlot(_ctx.$slots, "icon", { key: 0 }, () => [
|
|
@@ -34,7 +34,7 @@ const _sfc_main = create({
|
|
|
34
34
|
default: false
|
|
35
35
|
}
|
|
36
36
|
},
|
|
37
|
-
emits: ["
|
|
37
|
+
emits: ["tabSwitch", "update:modelValue"],
|
|
38
38
|
setup(props, { emit }) {
|
|
39
39
|
const { bottom, placeholder } = toRefs(props);
|
|
40
40
|
const height = ref();
|
|
@@ -46,7 +46,7 @@ const _sfc_main = create({
|
|
|
46
46
|
function changeIndex(index2, active) {
|
|
47
47
|
emit("update:modelValue", active);
|
|
48
48
|
parentData.modelValue = active;
|
|
49
|
-
emit("
|
|
49
|
+
emit("tabSwitch", parentData.children[index2], active);
|
|
50
50
|
}
|
|
51
51
|
let parentData = reactive({
|
|
52
52
|
children: mdValue.children,
|
|
@@ -160,10 +160,10 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
160
160
|
createElementVNode("view", _hoisted_2, [
|
|
161
161
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.columns, (item) => {
|
|
162
162
|
return openBlock(), createElementBlock("span", {
|
|
163
|
-
class: normalizeClass(["nut-table__main__head__tr__th", _ctx.cellClasses(item)]),
|
|
164
163
|
key: item.key,
|
|
165
|
-
|
|
166
|
-
style: normalizeStyle(item.stylehead)
|
|
164
|
+
class: normalizeClass(["nut-table__main__head__tr__th", _ctx.cellClasses(item)]),
|
|
165
|
+
style: normalizeStyle(item.stylehead),
|
|
166
|
+
onClick: ($event) => _ctx.handleSorterClick(item)
|
|
167
167
|
}, [
|
|
168
168
|
createTextVNode(toDisplayString(item.title) + " ", 1),
|
|
169
169
|
renderSlot(_ctx.$slots, "icon"),
|
|
@@ -179,13 +179,13 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
179
179
|
createElementVNode("view", _hoisted_4, [
|
|
180
180
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.curData, (item) => {
|
|
181
181
|
return openBlock(), createElementBlock("view", {
|
|
182
|
-
|
|
183
|
-
|
|
182
|
+
key: item,
|
|
183
|
+
class: "nut-table__main__body__tr"
|
|
184
184
|
}, [
|
|
185
185
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.sortDataItem(), ([value, render]) => {
|
|
186
186
|
return openBlock(), createElementBlock("span", {
|
|
187
|
-
class: normalizeClass(["nut-table__main__body__tr__td", _ctx.cellClasses(_ctx.getColumnItem(value))]),
|
|
188
187
|
key: value,
|
|
188
|
+
class: normalizeClass(["nut-table__main__body__tr__td", _ctx.cellClasses(_ctx.getColumnItem(value))]),
|
|
189
189
|
style: normalizeStyle(_ctx.getColumnItemStyle(value))
|
|
190
190
|
}, [
|
|
191
191
|
typeof item[value] === "function" || typeof render === "function" ? (openBlock(), createBlock(_component_RenderColumn, {
|
|
@@ -438,8 +438,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
438
438
|
const _component_JoySmile = resolveComponent("JoySmile");
|
|
439
439
|
const _component_nut_sticky = resolveComponent("nut-sticky");
|
|
440
440
|
return openBlock(), createElementBlock("view", {
|
|
441
|
-
|
|
442
|
-
|
|
441
|
+
ref: "container",
|
|
442
|
+
class: normalizeClass(["nut-tabs", [_ctx.direction]])
|
|
443
443
|
}, [
|
|
444
444
|
_ctx.sticky ? (openBlock(), createBlock(_component_nut_sticky, {
|
|
445
445
|
key: 0,
|
|
@@ -449,16 +449,16 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
449
449
|
}, {
|
|
450
450
|
default: withCtx(() => [
|
|
451
451
|
createElementVNode("view", {
|
|
452
|
+
ref: "navRef",
|
|
452
453
|
class: normalizeClass(["nut-tabs__titles", { [_ctx.type]: _ctx.type, scrollable: _ctx.titleScroll, [_ctx.size]: _ctx.size }]),
|
|
453
|
-
style: normalizeStyle(_ctx.tabsNavStyle)
|
|
454
|
-
ref: "navRef"
|
|
454
|
+
style: normalizeStyle(_ctx.tabsNavStyle)
|
|
455
455
|
}, [
|
|
456
456
|
_ctx.$slots.titles ? renderSlot(_ctx.$slots, "titles", { key: 0 }) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(_ctx.titles, (item, index) => {
|
|
457
457
|
return openBlock(), createElementBlock("view", {
|
|
458
|
+
key: item.paneKey,
|
|
458
459
|
class: normalizeClass(["nut-tabs__titles-item", { active: item.paneKey == _ctx.modelValue, disabled: item.disabled }]),
|
|
459
460
|
style: normalizeStyle(_ctx.titleStyle),
|
|
460
|
-
onClick: ($event) => _ctx.tabChange(item, index)
|
|
461
|
-
key: item.paneKey
|
|
461
|
+
onClick: ($event) => _ctx.tabChange(item, index)
|
|
462
462
|
}, [
|
|
463
463
|
_ctx.type == "line" ? (openBlock(), createElementBlock("view", {
|
|
464
464
|
key: 0,
|
|
@@ -482,18 +482,18 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
482
482
|
_: 3
|
|
483
483
|
}, 8, ["top", "container", "onScroll"])) : (openBlock(), createElementBlock("view", {
|
|
484
484
|
key: 1,
|
|
485
|
+
ref: "navRef",
|
|
485
486
|
class: normalizeClass(["nut-tabs__titles", { [_ctx.type]: _ctx.type, scrollable: _ctx.titleScroll, "scroll-vertical": _ctx.getScrollY, [_ctx.size]: _ctx.size }]),
|
|
486
|
-
style: normalizeStyle(_ctx.tabsNavStyle)
|
|
487
|
-
ref: "navRef"
|
|
487
|
+
style: normalizeStyle(_ctx.tabsNavStyle)
|
|
488
488
|
}, [
|
|
489
489
|
_ctx.$slots.titles ? renderSlot(_ctx.$slots, "titles", { key: 0 }) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(_ctx.titles, (item, index) => {
|
|
490
490
|
return openBlock(), createElementBlock("view", {
|
|
491
|
-
class: normalizeClass(["nut-tabs__titles-item", { active: item.paneKey == _ctx.modelValue, disabled: item.disabled }]),
|
|
492
|
-
style: normalizeStyle(_ctx.titleStyle),
|
|
493
|
-
onClick: ($event) => _ctx.tabChange(item, index),
|
|
494
491
|
key: item.paneKey,
|
|
495
492
|
ref_for: true,
|
|
496
|
-
ref: (e) => _ctx.setTabItemRef(e, index)
|
|
493
|
+
ref: (e) => _ctx.setTabItemRef(e, index),
|
|
494
|
+
class: normalizeClass(["nut-tabs__titles-item", { active: item.paneKey == _ctx.modelValue, disabled: item.disabled }]),
|
|
495
|
+
style: normalizeStyle(_ctx.titleStyle),
|
|
496
|
+
onClick: ($event) => _ctx.tabChange(item, index)
|
|
497
497
|
}, [
|
|
498
498
|
_ctx.type == "line" ? (openBlock(), createElementBlock("view", {
|
|
499
499
|
key: 0,
|
|
@@ -514,8 +514,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
514
514
|
}), 128))
|
|
515
515
|
], 6)),
|
|
516
516
|
createElementVNode("view", {
|
|
517
|
-
class: "nut-tabs__content",
|
|
518
517
|
ref: "tabsContentRef",
|
|
518
|
+
class: "nut-tabs__content",
|
|
519
519
|
style: normalizeStyle(_ctx.contentStyle),
|
|
520
520
|
onTouchstart: _cache[0] || (_cache[0] = (...args) => _ctx.onTouchStart && _ctx.onTouchStart(...args)),
|
|
521
521
|
onTouchmove: _cache[1] || (_cache[1] = (...args) => _ctx.onTouchMove && _ctx.onTouchMove(...args)),
|
|
@@ -168,12 +168,12 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
168
168
|
disabled: _ctx.disabled,
|
|
169
169
|
readonly: _ctx.readonly,
|
|
170
170
|
value: _ctx.modelValue,
|
|
171
|
-
onInput: _cache[0] || (_cache[0] = (...args) => _ctx.change && _ctx.change(...args)),
|
|
172
|
-
onBlur: _cache[1] || (_cache[1] = (...args) => _ctx.blur && _ctx.blur(...args)),
|
|
173
|
-
onFocus: _cache[2] || (_cache[2] = (...args) => _ctx.focus && _ctx.focus(...args)),
|
|
174
171
|
maxlength: _ctx.maxLength,
|
|
175
172
|
placeholder: _ctx.placeholder || _ctx.translate("placeholder"),
|
|
176
173
|
autofocus: _ctx.autofocus,
|
|
174
|
+
onInput: _cache[0] || (_cache[0] = (...args) => _ctx.change && _ctx.change(...args)),
|
|
175
|
+
onBlur: _cache[1] || (_cache[1] = (...args) => _ctx.blur && _ctx.blur(...args)),
|
|
176
|
+
onFocus: _cache[2] || (_cache[2] = (...args) => _ctx.focus && _ctx.focus(...args)),
|
|
177
177
|
onChange: _cache[3] || (_cache[3] = (...args) => _ctx.endComposing && _ctx.endComposing(...args)),
|
|
178
178
|
onCompositionend: _cache[4] || (_cache[4] = (...args) => _ctx.endComposing && _ctx.endComposing(...args)),
|
|
179
179
|
onCompositionstart: _cache[5] || (_cache[5] = (...args) => _ctx.startComposing && _ctx.startComposing(...args))
|
|
@@ -81,8 +81,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
81
81
|
createElementVNode("view", _hoisted_2, [
|
|
82
82
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.renderData, (item) => {
|
|
83
83
|
return openBlock(), createElementBlock("view", {
|
|
84
|
-
class: normalizeClass(_ctx.getClass(item)),
|
|
85
84
|
key: item,
|
|
85
|
+
class: normalizeClass(_ctx.getClass(item)),
|
|
86
86
|
onClick: ($event) => _ctx.handleTime(item)
|
|
87
87
|
}, toDisplayString(item), 11, _hoisted_3);
|
|
88
88
|
}), 128))
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { computed, provide, resolveComponent, openBlock, createBlock, normalizeStyle, withCtx, createElementVNode, normalizeClass, createElementBlock, toDisplayString, renderSlot } 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";
|
|
@@ -25,7 +25,7 @@ import Popover from "./Popover.js";
|
|
|
25
25
|
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
26
26
|
import "../locale/lang";
|
|
27
27
|
import "./renderIcon-3d0fd47c.js";
|
|
28
|
-
import "./index-
|
|
28
|
+
import "./index-3032df15.js";
|
|
29
29
|
import "./Overlay.js";
|
|
30
30
|
const { create } = createComponent("tour");
|
|
31
31
|
const _sfc_main = create({
|
|
@@ -215,9 +215,9 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
215
215
|
i == _ctx.active ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
216
216
|
_ctx.showTour ? (openBlock(), createElementBlock("div", {
|
|
217
217
|
key: 0,
|
|
218
|
+
id: "nut-tour-popid",
|
|
218
219
|
class: normalizeClass(["nut-tour-mask", [_ctx.mask ? "" : "nut-tour-mask-none"]]),
|
|
219
|
-
style: normalizeStyle(_ctx.maskStyle)
|
|
220
|
-
id: "nut-tour-popid"
|
|
220
|
+
style: normalizeStyle(_ctx.maskStyle)
|
|
221
221
|
}, null, 6)) : createCommentVNode("", true),
|
|
222
222
|
createVNode(_component_nut_popover, {
|
|
223
223
|
visible: _ctx.showPopup,
|
|
@@ -148,7 +148,7 @@ const _sfc_main = create({
|
|
|
148
148
|
"change",
|
|
149
149
|
"delete",
|
|
150
150
|
"update:fileList",
|
|
151
|
-
"
|
|
151
|
+
"fileItemClick"
|
|
152
152
|
],
|
|
153
153
|
setup(props, { emit }) {
|
|
154
154
|
const fileList = ref(props.fileList);
|
|
@@ -176,7 +176,7 @@ const _sfc_main = create({
|
|
|
176
176
|
el.value = "";
|
|
177
177
|
};
|
|
178
178
|
const fileItemClick = (fileItem) => {
|
|
179
|
-
emit("
|
|
179
|
+
emit("fileItemClick", { fileItem });
|
|
180
180
|
};
|
|
181
181
|
const executeUpload = (fileItem, index2) => {
|
|
182
182
|
const uploadOption = new UploadOptions();
|
|
@@ -360,7 +360,7 @@ const _hoisted_4 = {
|
|
|
360
360
|
};
|
|
361
361
|
const _hoisted_5 = { class: "nut-uploader__preview__progress__msg" };
|
|
362
362
|
const _hoisted_6 = ["onClick"];
|
|
363
|
-
const _hoisted_7 = ["
|
|
363
|
+
const _hoisted_7 = ["src", "onClick"];
|
|
364
364
|
const _hoisted_8 = {
|
|
365
365
|
key: 3,
|
|
366
366
|
class: "nut-uploader__preview-img__file"
|
|
@@ -392,8 +392,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
392
392
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.fileList, (item, index2) => {
|
|
393
393
|
var _a;
|
|
394
394
|
return openBlock(), createElementBlock("view", {
|
|
395
|
-
|
|
396
|
-
|
|
395
|
+
key: item.uid,
|
|
396
|
+
class: normalizeClass(["nut-uploader__preview", [_ctx.listType]])
|
|
397
397
|
}, [
|
|
398
398
|
_ctx.listType == "picture" && !_ctx.$slots.default ? (openBlock(), createElementBlock("view", _hoisted_3, [
|
|
399
399
|
item.status != "success" ? (openBlock(), createElementBlock("view", _hoisted_4, [
|
|
@@ -421,12 +421,12 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
421
421
|
((_a = item == null ? void 0 : item.type) == null ? void 0 : _a.includes("image")) && item.url ? (openBlock(), createElementBlock("img", {
|
|
422
422
|
key: 2,
|
|
423
423
|
class: "nut-uploader__preview-img__c",
|
|
424
|
-
|
|
425
|
-
|
|
424
|
+
src: item.url,
|
|
425
|
+
onClick: ($event) => _ctx.fileItemClick(item)
|
|
426
426
|
}, null, 8, _hoisted_7)) : (openBlock(), createElementBlock("view", _hoisted_8, [
|
|
427
427
|
createElementVNode("view", {
|
|
428
|
-
|
|
429
|
-
|
|
428
|
+
class: "nut-uploader__preview-img__file__name",
|
|
429
|
+
onClick: ($event) => _ctx.fileItemClick(item)
|
|
430
430
|
}, [
|
|
431
431
|
createElementVNode("view", _hoisted_10, toDisplayString(item.name), 1)
|
|
432
432
|
], 8, _hoisted_9)
|
|
@@ -434,8 +434,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
434
434
|
createElementVNode("view", _hoisted_11, toDisplayString(item.name), 1)
|
|
435
435
|
])) : _ctx.listType == "list" ? (openBlock(), createElementBlock("view", _hoisted_12, [
|
|
436
436
|
createElementVNode("view", {
|
|
437
|
-
|
|
438
|
-
|
|
437
|
+
class: normalizeClass(["nut-uploader__preview-img__file__name", [item.status]]),
|
|
438
|
+
onClick: ($event) => _ctx.fileItemClick(item)
|
|
439
439
|
}, [
|
|
440
440
|
createVNode(_component_Link, { class: "nut-uploader__preview-img__file__link" }),
|
|
441
441
|
createElementVNode("view", _hoisted_14, toDisplayString(item.name), 1),
|