@nutui/nutui 4.1.2 → 4.1.4
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 +30 -0
- package/LICENSE +1 -1
- package/dist/nutui.es.js +1 -1
- package/dist/nutui.js +3334 -3293
- package/dist/nutui.umd.js +1 -1
- package/dist/packages/_es/ActionSheet.js +5 -3
- package/dist/packages/_es/Address.js +1 -1
- package/dist/packages/_es/Calendar.js +3 -3
- package/dist/packages/_es/CalendarItem.js +1 -1
- package/dist/packages/_es/Cascader.js +1 -1
- package/dist/packages/_es/Dialog.js +1 -1
- package/dist/packages/_es/FixedNav.js +67 -73
- package/dist/packages/_es/FormItem.js +1 -3
- package/dist/packages/_es/ImagePreview.js +1 -1
- package/dist/packages/_es/Input.js +8 -5
- package/dist/packages/_es/MenuItem.js +1 -1
- package/dist/packages/_es/Noticebar.js +1 -1
- package/dist/packages/_es/Notify.js +2 -2
- package/dist/packages/_es/NumberKeyboard.js +2 -2
- package/dist/packages/_es/Picker.js +93 -54
- package/dist/packages/_es/Popover.js +2 -2
- package/dist/packages/_es/Popup.js +3 -3
- package/dist/packages/_es/ShortPassword.js +1 -1
- package/dist/packages/_es/Skeleton.js +86 -91
- package/dist/packages/_es/Sku.js +1 -1
- package/dist/packages/_es/TimeSelect.js +2 -2
- package/dist/packages/_es/Tour.js +1 -1
- package/dist/packages/_es/{index-3a5098e4.js → index-66fff386.js} +19 -13
- package/dist/packages/_es/{index-5ffbc437.js → index-7fe29a2f.js} +96 -101
- package/dist/packages/calendar/index.scss +5 -8
- package/dist/packages/formitem/index.scss +3 -1
- package/dist/smartips/web-types.json +12 -3
- 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/types/__VUE/actionsheet/index.vue.d.ts +13 -13
- package/dist/types/__VUE/address/index.vue.d.ts +12 -12
- package/dist/types/__VUE/backtop/index.vue.d.ts +1 -1
- package/dist/types/__VUE/calendaritem/index.vue.d.ts +2 -2
- package/dist/types/__VUE/cascader/index.vue.d.ts +12 -12
- package/dist/types/__VUE/dialog/index.vue.d.ts +13 -13
- package/dist/types/__VUE/fixednav/index.vue.d.ts +6 -4
- package/dist/types/__VUE/formitem/index.vue.d.ts +4 -3
- package/dist/types/__VUE/image/index.vue.d.ts +1 -1
- package/dist/types/__VUE/menuitem/index.vue.d.ts +1 -1
- package/dist/types/__VUE/overlay/index.vue.d.ts +3 -3
- package/dist/types/__VUE/picker/baseProps.d.ts +5 -1
- package/dist/types/__VUE/picker/common.d.ts +19 -7
- package/dist/types/__VUE/picker/doc.en.d.ts +4 -2
- package/dist/types/__VUE/picker/index.vue.d.ts +14 -3
- 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 +2 -2
- package/dist/types/__VUE/popup/index.vue.d.ts +30 -21
- package/dist/types/__VUE/popup/props.d.ts +4 -5
- package/dist/types/__VUE/skeleton/index.vue.d.ts +8 -6
- package/dist/types/__VUE/sku/index.vue.d.ts +15 -15
- package/dist/types/__VUE/swipe/index.vue.d.ts +1 -1
- package/dist/types/__VUE/tabbar/index.vue.d.ts +1 -1
- package/dist/types/__VUE/tag/index.vue.d.ts +1 -1
- package/dist/types/__VUE/toast/index.vue.d.ts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/package.json +1 -1
- package/dist/types/__VUE/fixednav/common.d.ts +0 -53
- package/dist/types/__VUE/formitem/common.d.ts +0 -0
- package/dist/types/__VUE/popup/common.d.ts +0 -107
- package/dist/types/__VUE/skeleton/common.d.ts +0 -57
|
@@ -19,7 +19,7 @@ var __spreadValues = (a, b) => {
|
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
20
|
import { c as createComponent } from "./component-0fbad28e.js";
|
|
21
21
|
import { useSlots, computed, resolveComponent, openBlock, createBlock, withCtx, createElementVNode, normalizeClass, createElementBlock, toDisplayString, createCommentVNode, renderSlot, Fragment, renderList, normalizeStyle } from "vue";
|
|
22
|
-
import { P as Popup, p as popupProps } from "./index-
|
|
22
|
+
import { P as Popup, p as popupProps } from "./index-7fe29a2f.js";
|
|
23
23
|
import { Loading } from "@nutui/icons-vue";
|
|
24
24
|
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
25
25
|
import "../locale/lang";
|
|
@@ -91,8 +91,10 @@ const _sfc_main = create({
|
|
|
91
91
|
}
|
|
92
92
|
};
|
|
93
93
|
const close = (e) => {
|
|
94
|
-
|
|
95
|
-
|
|
94
|
+
if (props.closeAbled) {
|
|
95
|
+
emit("close", e);
|
|
96
|
+
emit("update:visible", false);
|
|
97
|
+
}
|
|
96
98
|
};
|
|
97
99
|
return {
|
|
98
100
|
slotDefault,
|
|
@@ -19,7 +19,7 @@ var __spreadValues = (a, b) => {
|
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
20
|
import { ref, reactive, computed, watch, toRefs, nextTick, resolveComponent, openBlock, createBlock, withCtx, createElementVNode, renderSlot, withDirectives, createVNode, vShow, toDisplayString, createElementBlock, Fragment, renderList, normalizeClass, createCommentVNode, normalizeStyle, createTextVNode } from "vue";
|
|
21
21
|
import { c as createComponent } from "./component-0fbad28e.js";
|
|
22
|
-
import { P as Popup, p as popupProps } from "./index-
|
|
22
|
+
import { P as Popup, p as popupProps } from "./index-7fe29a2f.js";
|
|
23
23
|
import Elevator from "./Elevator.js";
|
|
24
24
|
import { Location, Location2, Check, Close, Left } from "@nutui/icons-vue";
|
|
25
25
|
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { computed, ref, resolveComponent, openBlock, createBlock, mergeProps, withCtx, createVNode, createSlots, renderSlot } from "vue";
|
|
2
2
|
import { c as createComponent } from "./component-0fbad28e.js";
|
|
3
|
-
import { C as CalendarItem, U as Utils } from "./index-
|
|
4
|
-
import { P as Popup } from "./index-
|
|
3
|
+
import { C as CalendarItem, U as Utils } from "./index-66fff386.js";
|
|
4
|
+
import { P as Popup } from "./index-7fe29a2f.js";
|
|
5
5
|
import { u as useExpose } from "./index-79c5dc33.js";
|
|
6
6
|
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
7
7
|
import "../locale/lang";
|
|
8
8
|
import "./raf-729dad54.js";
|
|
9
|
-
import "./Overlay.js";
|
|
10
9
|
import "@nutui/icons-vue";
|
|
10
|
+
import "./Overlay.js";
|
|
11
11
|
const { create } = createComponent("calendar");
|
|
12
12
|
const _sfc_main = create({
|
|
13
13
|
components: {
|
|
@@ -55,7 +55,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
55
55
|
});
|
|
56
56
|
};
|
|
57
57
|
import { computed, ref, watch, resolveComponent, openBlock, createBlock, withCtx, createElementBlock, Fragment, renderList, createElementVNode, normalizeClass, toDisplayString, createCommentVNode, createVNode } from "vue";
|
|
58
|
-
import { P as Popup, p as popupProps } from "./index-
|
|
58
|
+
import { P as Popup, p as popupProps } from "./index-7fe29a2f.js";
|
|
59
59
|
import { c as createComponent } from "./component-0fbad28e.js";
|
|
60
60
|
import { Loading, Checklist } from "@nutui/icons-vue";
|
|
61
61
|
import Tabs from "./Tabs.js";
|
|
@@ -24,7 +24,7 @@ var __publicField = (obj, key, value) => {
|
|
|
24
24
|
import { ref, onMounted, watch, computed, resolveComponent, openBlock, createBlock, normalizeStyle, withCtx, createElementVNode, normalizeClass, createElementBlock, renderSlot, Fragment, createTextVNode, toDisplayString, createCommentVNode, resolveDynamicComponent, nextTick, h } from "vue";
|
|
25
25
|
import { c as createComponent } from "./component-0fbad28e.js";
|
|
26
26
|
import { f as funInterceptor } from "./Interceptor-c05a39f2.js";
|
|
27
|
-
import { P as Popup, p as popupProps } from "./index-
|
|
27
|
+
import { P as Popup, p as popupProps } from "./index-7fe29a2f.js";
|
|
28
28
|
import Button from "./Button.js";
|
|
29
29
|
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
30
30
|
import Overlay from "./Overlay.js";
|
|
@@ -1,84 +1,78 @@
|
|
|
1
|
-
import { c as createComponent } from "./component-0fbad28e.js";
|
|
2
1
|
import { computed, ref, resolveComponent, openBlock, createElementBlock, normalizeClass, normalizeStyle, createBlock, createCommentVNode, renderSlot, createElementVNode, Fragment, renderList, toDisplayString, createVNode } from "vue";
|
|
3
|
-
import Overlay from "./Overlay.js";
|
|
4
2
|
import { Left } from "@nutui/icons-vue";
|
|
3
|
+
import Overlay from "./Overlay.js";
|
|
4
|
+
import { c as createComponent } from "./component-0fbad28e.js";
|
|
5
5
|
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
6
6
|
import "../locale/lang";
|
|
7
|
-
const {
|
|
8
|
-
const
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
default: () => [],
|
|
22
|
-
type: Array
|
|
23
|
-
},
|
|
24
|
-
activeColor: {
|
|
25
|
-
default: "",
|
|
26
|
-
type: String
|
|
27
|
-
},
|
|
28
|
-
activeText: {
|
|
29
|
-
default: "",
|
|
30
|
-
type: String
|
|
31
|
-
},
|
|
32
|
-
unActiveText: {
|
|
33
|
-
default: "",
|
|
34
|
-
type: String
|
|
35
|
-
},
|
|
36
|
-
position: {
|
|
37
|
-
default: () => {
|
|
38
|
-
return {
|
|
39
|
-
top: "auto",
|
|
40
|
-
bottom: "auto"
|
|
41
|
-
};
|
|
42
|
-
},
|
|
43
|
-
type: Object
|
|
44
|
-
},
|
|
45
|
-
type: {
|
|
46
|
-
default: "right",
|
|
47
|
-
type: String
|
|
48
|
-
}
|
|
7
|
+
const { translate, create, componentName } = createComponent("fixed-nav");
|
|
8
|
+
const _sfc_main = create({
|
|
9
|
+
components: {
|
|
10
|
+
[Overlay.name]: Overlay,
|
|
11
|
+
Left
|
|
12
|
+
},
|
|
13
|
+
props: {
|
|
14
|
+
visible: {
|
|
15
|
+
type: Boolean,
|
|
16
|
+
default: false
|
|
17
|
+
},
|
|
18
|
+
overlay: {
|
|
19
|
+
type: Boolean,
|
|
20
|
+
default: true
|
|
49
21
|
},
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
22
|
+
navList: {
|
|
23
|
+
default: () => [],
|
|
24
|
+
type: Array
|
|
25
|
+
},
|
|
26
|
+
activeColor: {
|
|
27
|
+
default: "",
|
|
28
|
+
type: String
|
|
29
|
+
},
|
|
30
|
+
activeText: {
|
|
31
|
+
default: "",
|
|
32
|
+
type: String
|
|
33
|
+
},
|
|
34
|
+
unActiveText: {
|
|
35
|
+
default: "",
|
|
36
|
+
type: String
|
|
37
|
+
},
|
|
38
|
+
position: {
|
|
39
|
+
default: () => {
|
|
54
40
|
return {
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
[props.type]: true
|
|
41
|
+
top: "auto",
|
|
42
|
+
bottom: "auto"
|
|
58
43
|
};
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
emit("selected", {
|
|
66
|
-
item,
|
|
67
|
-
event
|
|
68
|
-
});
|
|
69
|
-
current.value = item.id;
|
|
70
|
-
};
|
|
71
|
-
return { classes, updateValue, selected, translate, current };
|
|
44
|
+
},
|
|
45
|
+
type: Object
|
|
46
|
+
},
|
|
47
|
+
type: {
|
|
48
|
+
default: "right",
|
|
49
|
+
type: String
|
|
72
50
|
}
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
const
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
51
|
+
},
|
|
52
|
+
emits: ["update:visible", "selected"],
|
|
53
|
+
setup(props, { emit }) {
|
|
54
|
+
const classes = computed(() => {
|
|
55
|
+
const prefixCls = componentName;
|
|
56
|
+
return {
|
|
57
|
+
[prefixCls]: true,
|
|
58
|
+
active: props.visible,
|
|
59
|
+
[props.type]: true
|
|
60
|
+
};
|
|
61
|
+
});
|
|
62
|
+
const current = ref(-1);
|
|
63
|
+
const updateValue = (value = !props.visible) => {
|
|
64
|
+
emit("update:visible", value);
|
|
65
|
+
};
|
|
66
|
+
const selected = (item, event) => {
|
|
67
|
+
emit("selected", {
|
|
68
|
+
item,
|
|
69
|
+
event
|
|
70
|
+
});
|
|
71
|
+
current.value = item.id;
|
|
72
|
+
};
|
|
73
|
+
return { classes, updateValue, selected, translate, current };
|
|
74
|
+
}
|
|
75
|
+
});
|
|
82
76
|
const _hoisted_1 = { class: "nut-fixed-nav__list" };
|
|
83
77
|
const _hoisted_2 = ["onClick"];
|
|
84
78
|
const _hoisted_3 = ["src"];
|
|
@@ -30,7 +30,7 @@ import Video from "./Video.js";
|
|
|
30
30
|
import SwiperItem from "./SwiperItem.js";
|
|
31
31
|
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
32
32
|
import { CircleClose } from "@nutui/icons-vue";
|
|
33
|
-
import { P as Popup } from "./index-
|
|
33
|
+
import { P as Popup } from "./index-7fe29a2f.js";
|
|
34
34
|
import Swiper from "./Swiper.js";
|
|
35
35
|
import { f as funInterceptor } from "./Interceptor-c05a39f2.js";
|
|
36
36
|
import "../locale/lang";
|
|
@@ -14,7 +14,7 @@ var __spreadValues = (a, b) => {
|
|
|
14
14
|
}
|
|
15
15
|
return a;
|
|
16
16
|
};
|
|
17
|
-
import { ref, reactive, computed, watch, onMounted, h, resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, renderSlot, createBlock, resolveDynamicComponent, normalizeStyle, toDisplayString, createTextVNode,
|
|
17
|
+
import { ref, reactive, computed, watch, onMounted, h, resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, renderSlot, createCommentVNode, createBlock, resolveDynamicComponent, normalizeStyle, toDisplayString, createTextVNode, withDirectives, createVNode, mergeProps, vShow } from "vue";
|
|
18
18
|
import { c as createComponent } from "./component-0fbad28e.js";
|
|
19
19
|
import { MaskClose } from "@nutui/icons-vue";
|
|
20
20
|
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
@@ -300,7 +300,10 @@ const _sfc_main = create({
|
|
|
300
300
|
});
|
|
301
301
|
const _hoisted_1 = { class: "nut-input-value" };
|
|
302
302
|
const _hoisted_2 = { class: "nut-input-inner" };
|
|
303
|
-
const _hoisted_3 = {
|
|
303
|
+
const _hoisted_3 = {
|
|
304
|
+
key: 0,
|
|
305
|
+
class: "nut-input-left-box"
|
|
306
|
+
};
|
|
304
307
|
const _hoisted_4 = { class: "nut-input-box" };
|
|
305
308
|
const _hoisted_5 = {
|
|
306
309
|
key: 0,
|
|
@@ -316,9 +319,9 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
316
319
|
}, [
|
|
317
320
|
createElementVNode("view", _hoisted_1, [
|
|
318
321
|
createElementVNode("view", _hoisted_2, [
|
|
319
|
-
|
|
322
|
+
_ctx.$slots.left ? (openBlock(), createElementBlock("view", _hoisted_3, [
|
|
320
323
|
renderSlot(_ctx.$slots, "left")
|
|
321
|
-
]),
|
|
324
|
+
])) : createCommentVNode("", true),
|
|
322
325
|
createElementVNode("view", _hoisted_4, [
|
|
323
326
|
(openBlock(), createBlock(resolveDynamicComponent(_ctx.renderInput(_ctx.type)), {
|
|
324
327
|
class: "input-text",
|
|
@@ -346,7 +349,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
346
349
|
])) : createCommentVNode("", true)
|
|
347
350
|
]),
|
|
348
351
|
_ctx.clearable && !_ctx.readonly ? withDirectives((openBlock(), createElementBlock("view", {
|
|
349
|
-
key:
|
|
352
|
+
key: 1,
|
|
350
353
|
class: "nut-input-clear-box",
|
|
351
354
|
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.clear && _ctx.clear(...args))
|
|
352
355
|
}, [
|
|
@@ -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-7fe29a2f.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";
|
|
@@ -360,7 +360,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
360
360
|
class: normalizeClass(_ctx.wrapContentClass),
|
|
361
361
|
style: normalizeStyle(_ctx.contentStyle),
|
|
362
362
|
onAnimationend: _cache[0] || (_cache[0] = (...args) => _ctx.onAnimationEnd && _ctx.onAnimationEnd(...args)),
|
|
363
|
-
|
|
363
|
+
onWebkitAnimationEnd: _cache[1] || (_cache[1] = (...args) => _ctx.onAnimationEnd && _ctx.onAnimationEnd(...args))
|
|
364
364
|
}, [
|
|
365
365
|
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
366
366
|
createTextVNode(toDisplayString(_ctx.text), 1)
|
|
@@ -19,11 +19,11 @@ 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-7fe29a2f.js";
|
|
23
23
|
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
24
24
|
import "../locale/lang";
|
|
25
|
-
import "./Overlay.js";
|
|
26
25
|
import "@nutui/icons-vue";
|
|
26
|
+
import "./Overlay.js";
|
|
27
27
|
const { create } = createComponent("notify");
|
|
28
28
|
const _sfc_main = create({
|
|
29
29
|
components: {
|
|
@@ -1,10 +1,10 @@
|
|
|
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-7fe29a2f.js";
|
|
4
4
|
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
5
5
|
import "../locale/lang";
|
|
6
|
-
import "./Overlay.js";
|
|
7
6
|
import "@nutui/icons-vue";
|
|
7
|
+
import "./Overlay.js";
|
|
8
8
|
const { create, translate } = createComponent("number-keyboard");
|
|
9
9
|
const _sfc_main = create({
|
|
10
10
|
components: {
|