@nutui/nutui 4.3.0-beta.5 → 4.3.0
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 +26 -0
- package/README.md +1 -1
- package/dist/nutui.es.js +1 -1
- package/dist/nutui.js +4032 -4072
- package/dist/nutui.umd.js +1 -1
- package/dist/packages/actionsheet/ActionSheet.js +1 -1
- package/dist/packages/address/Address.js +1 -1
- package/dist/packages/audio/Audio.js +1 -1
- package/dist/packages/avatarcropper/AvatarCropper.js +4 -4
- package/dist/packages/avatarcropper/index.css +1 -1
- package/dist/packages/avatarcropper/index.scss +6 -0
- package/dist/packages/button/Button.js +25 -50
- package/dist/packages/calendar/Calendar.js +1 -1
- package/dist/packages/calendarcard/CalendarCard.js +6 -24
- package/dist/packages/cascader/Cascader.js +2 -2
- package/dist/packages/dialog/Dialog.js +1 -1
- package/dist/packages/divider/Divider.js +5 -17
- package/dist/packages/imagepreview/ImagePreview.js +2 -2
- package/dist/packages/{index-rf29bejW.js → index-cp6Ms_Qe.js} +1 -1
- package/dist/packages/{index-rbZsBckW.js → index-wY4t0zYt.js} +0 -4
- package/dist/packages/inputnumber/InputNumber.js +1 -0
- package/dist/packages/list/List.js +1 -1
- package/dist/packages/menu/Menu.js +1 -1
- package/dist/packages/menuitem/MenuItem.js +1 -1
- package/dist/packages/noticebar/Noticebar.js +9 -10
- package/dist/packages/notify/Notify.js +17 -5
- package/dist/packages/numberkeyboard/NumberKeyboard.js +1 -1
- package/dist/packages/popover/Popover.js +90 -88
- package/dist/packages/popover/index.css +1 -1
- package/dist/packages/popover/index.scss +5 -14
- package/dist/packages/popup/Popup.js +1 -1
- package/dist/packages/range/Range.js +1 -1
- package/dist/packages/shortpassword/ShortPassword.js +1 -1
- package/dist/packages/sku/Sku.js +1 -1
- package/dist/packages/sticky/Sticky.js +1 -1
- package/dist/packages/tabs/Tabs.js +1 -1
- package/dist/packages/timeselect/TimeSelect.js +1 -1
- package/dist/packages/tour/Tour.js +3 -3
- package/dist/packages/tour/index.css +1 -1
- package/dist/smartips/web-types.json +22 -31
- package/dist/style.css +1 -1
- package/dist/types/__VUE/actionsheet/index.vue.d.ts +6 -15
- package/dist/types/__VUE/address/index.vue.d.ts +6 -15
- package/dist/types/__VUE/button/button.vue.d.ts +65 -69
- package/dist/types/__VUE/button/index.d.ts +1 -0
- package/dist/types/__VUE/calendarcard/calendar-card.vue.d.ts +59 -57
- package/dist/types/__VUE/calendarcard/index.d.ts +1 -0
- package/dist/types/__VUE/cascader/index.vue.d.ts +6 -15
- package/dist/types/__VUE/cell/index.vue.d.ts +1 -1
- package/dist/types/__VUE/comment/index.vue.d.ts +2 -2
- package/dist/types/__VUE/dialog/index.vue.d.ts +6 -15
- package/dist/types/__VUE/divider/divider.vue.d.ts +43 -35
- package/dist/types/__VUE/divider/index.d.ts +1 -0
- package/dist/types/__VUE/menu/index.vue.d.ts +2 -2
- package/dist/types/__VUE/noticebar/index.vue.d.ts +4 -3
- package/dist/types/__VUE/noticebar/types.d.ts +1 -0
- package/dist/types/__VUE/notify/index.vue.d.ts +8 -6
- package/dist/types/__VUE/notify/types.d.ts +3 -0
- package/dist/types/__VUE/numberkeyboard/index.vue.d.ts +4 -3
- package/dist/types/__VUE/numberkeyboard/types.d.ts +1 -0
- package/dist/types/__VUE/popover/index.vue.d.ts +0 -1
- package/dist/types/__VUE/popover/type.d.ts +7 -0
- package/dist/types/__VUE/popup/index.vue.d.ts +6 -15
- package/dist/types/__VUE/popup/props.d.ts +4 -6
- package/dist/types/__VUE/popup/types.d.ts +2 -0
- package/dist/types/__VUE/radio/index.vue.d.ts +2 -2
- package/dist/types/__VUE/radiogroup/index.vue.d.ts +2 -2
- package/dist/types/__VUE/searchbar/index.vue.d.ts +2 -2
- package/dist/types/__VUE/switch/index.vue.d.ts +6 -6
- package/dist/types/index.d.ts +1 -1
- package/package.json +1 -1
|
@@ -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-TCzwHGVq.js";
|
|
21
21
|
import { useSlots, resolveComponent, openBlock, createBlock, withCtx, createElementVNode, createElementBlock, toDisplayString, createCommentVNode, renderSlot, Fragment, renderList, normalizeClass, normalizeStyle } from "vue";
|
|
22
|
-
import { N as NutPopup, p as popupProps } from "../index-
|
|
22
|
+
import { N as NutPopup, p as popupProps } from "../index-wY4t0zYt.js";
|
|
23
23
|
import { Loading } from "@nutui/icons-vue";
|
|
24
24
|
import { _ as _export_sfc } from "../_plugin-vue_export-helper-yVxbj29m.js";
|
|
25
25
|
import "../overlay/Overlay.js";
|
|
@@ -20,7 +20,7 @@ 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 { Location, Location2, Check, Close, Left } from "@nutui/icons-vue";
|
|
22
22
|
import { c as createComponent } from "../component-TCzwHGVq.js";
|
|
23
|
-
import { N as NutPopup, p as popupProps } from "../index-
|
|
23
|
+
import { N as NutPopup, p as popupProps } from "../index-wY4t0zYt.js";
|
|
24
24
|
import NutElevator from "../elevator/Elevator.js";
|
|
25
25
|
import { u as useLocale } from "../index-s3RgMhc7.js";
|
|
26
26
|
import { _ as _export_sfc } from "../_plugin-vue_export-helper-yVxbj29m.js";
|
|
@@ -24,7 +24,7 @@ import NutRange from "../range/Range.js";
|
|
|
24
24
|
import { _ as _export_sfc } from "../_plugin-vue_export-helper-yVxbj29m.js";
|
|
25
25
|
import "../util-4Jkyw4BJ.js";
|
|
26
26
|
import "../index-084nl_oE.js";
|
|
27
|
-
import "../index-
|
|
27
|
+
import "../index-cp6Ms_Qe.js";
|
|
28
28
|
const { create } = createComponent("audio");
|
|
29
29
|
const _sfc_main = create({
|
|
30
30
|
props: {
|
|
@@ -38,13 +38,13 @@ var __async = (__this, __arguments, generator) => {
|
|
|
38
38
|
step((generator = generator.apply(__this, __arguments)).next());
|
|
39
39
|
});
|
|
40
40
|
};
|
|
41
|
-
import { reactive, ref, computed, watch, toRefs, resolveComponent, openBlock, createElementBlock, Fragment, createElementVNode, renderSlot, withDirectives,
|
|
41
|
+
import { reactive, ref, computed, watch, toRefs, resolveComponent, openBlock, createElementBlock, Fragment, createElementVNode, normalizeClass, renderSlot, withDirectives, normalizeStyle, createVNode, withCtx, createTextVNode, toDisplayString, vShow } from "vue";
|
|
42
42
|
import { Button as _sfc_main$1 } from "../button/Button.js";
|
|
43
43
|
import { c as createComponent } from "../component-TCzwHGVq.js";
|
|
44
44
|
import { d as preventDefault, e as clamp } from "../util-4Jkyw4BJ.js";
|
|
45
45
|
import { Refresh2, Retweet } from "@nutui/icons-vue";
|
|
46
46
|
import { u as useTouch } from "../index-084nl_oE.js";
|
|
47
|
-
import { u as useRect } from "../index-
|
|
47
|
+
import { u as useRect } from "../index-cp6Ms_Qe.js";
|
|
48
48
|
import { _ as _export_sfc } from "../_plugin-vue_export-helper-yVxbj29m.js";
|
|
49
49
|
import "../with-install-p59gYYU_.js";
|
|
50
50
|
const { create } = createComponent("avatar-cropper");
|
|
@@ -395,7 +395,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
395
395
|
const _component_Retweet = resolveComponent("Retweet");
|
|
396
396
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
397
397
|
createElementVNode("div", {
|
|
398
|
-
class: "nut-avatar-cropper",
|
|
398
|
+
class: normalizeClass(["nut-avatar-cropper", { round: _ctx.shape === "round" }]),
|
|
399
399
|
"data-edit-text": _ctx.editText
|
|
400
400
|
}, [
|
|
401
401
|
renderSlot(_ctx.$slots, "default"),
|
|
@@ -406,7 +406,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
406
406
|
class: "nut-avatar-cropper__input",
|
|
407
407
|
onChange: _cache[0] || (_cache[0] = (...args) => _ctx.inputImageChange && _ctx.inputImageChange(...args))
|
|
408
408
|
}, null, 544)
|
|
409
|
-
],
|
|
409
|
+
], 10, _hoisted_1),
|
|
410
410
|
withDirectives(createElementVNode("div", _hoisted_2, [
|
|
411
411
|
createElementVNode("canvas", _hoisted_3, null, 512),
|
|
412
412
|
createElementVNode("div", {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.nut-avatar-cropper{position:relative}.nut-avatar-cropper::after,.nut-avatar-cropper__edit-text{content:attr(data-edit-text);position:absolute;top:0;left:0;width:100%;height:100%;background-color:rgba(0,0,0,.3);z-index:1;color:#fff;display:flex;justify-content:center;align-items:center}.nut-avatar-cropper.taro::after{content:none}.nut-avatar-cropper__input{position:absolute;top:0;left:0;width:100%;height:100%;opacity:0;cursor:pointer;z-index:2}.nut-cropper-popup{position:fixed;top:0;left:0;width:100%;height:100%;background:var(--nut-overlay-bg-color, rgba(0, 0, 0, 0.7));z-index:1000}.nut-cropper-popup__canvas,.nut-cropper-popup__cut-canvas{position:absolute;bottom:0;left:0;width:100%;height:100%;z-index:1}.nut-cropper-popup__cut-canvas{z-index:0}.nut-cropper-popup__toolbar{position:absolute;bottom:0;left:0;width:100%;z-index:2}.nut-cropper-popup__toolbar.top{top:0;bottom:inherit}.nut-cropper-popup__toolbar .flex-sb{width:100%;display:flex;justify-content:space-between}.nut-cropper-popup__toolbar-item{color:#fff;padding:15px;cursor:pointer;display:flex;align-items:center}.nut-cropper-popup__highlight{position:absolute;left:0;top:0;width:100%;height:100%;z-index:1;background-color:rgba(0,0,0,0)}.nut-cropper-popup__highlight .highlight{position:absolute;width:365px;height:365px;left:50%;top:50%;transform:translate(-50%, -50%);z-index:1;background-color:rgba(0,0,0,0);box-shadow:0 0 1000px 1000px rgba(0,0,0,.6)}.nut-cropper-popup__highlight .highlight__round{border-radius:50%}
|
|
1
|
+
.nut-avatar-cropper{position:relative}.nut-avatar-cropper::after,.nut-avatar-cropper__edit-text{content:attr(data-edit-text);position:absolute;top:0;left:0;width:100%;height:100%;background-color:rgba(0,0,0,.3);z-index:1;color:#fff;display:flex;justify-content:center;align-items:center}.nut-avatar-cropper.taro::after{content:none}.nut-avatar-cropper__input{position:absolute;top:0;left:0;width:100%;height:100%;opacity:0;cursor:pointer;z-index:2}.nut-avatar-cropper.round::after,.nut-avatar-cropper.round .nut-avatar-cropper__edit-text{border-radius:50%}.nut-cropper-popup{position:fixed;top:0;left:0;width:100%;height:100%;background:var(--nut-overlay-bg-color, rgba(0, 0, 0, 0.7));z-index:1000}.nut-cropper-popup__canvas,.nut-cropper-popup__cut-canvas{position:absolute;bottom:0;left:0;width:100%;height:100%;z-index:1}.nut-cropper-popup__cut-canvas{z-index:0}.nut-cropper-popup__toolbar{position:absolute;bottom:0;left:0;width:100%;z-index:2}.nut-cropper-popup__toolbar.top{top:0;bottom:inherit}.nut-cropper-popup__toolbar .flex-sb{width:100%;display:flex;justify-content:space-between}.nut-cropper-popup__toolbar-item{color:#fff;padding:15px;cursor:pointer;display:flex;align-items:center}.nut-cropper-popup__highlight{position:absolute;left:0;top:0;width:100%;height:100%;z-index:1;background-color:rgba(0,0,0,0)}.nut-cropper-popup__highlight .highlight{position:absolute;width:365px;height:365px;left:50%;top:50%;transform:translate(-50%, -50%);z-index:1;background-color:rgba(0,0,0,0);box-shadow:0 0 1000px 1000px rgba(0,0,0,.6)}.nut-cropper-popup__highlight .highlight__round{border-radius:50%}
|
|
@@ -17,7 +17,7 @@ var __spreadValues = (a, b) => {
|
|
|
17
17
|
return a;
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
|
-
import { defineComponent,
|
|
20
|
+
import { defineComponent, computed, openBlock, createElementBlock, normalizeClass, normalizeStyle, createElementVNode, createBlock, unref, createCommentVNode, renderSlot } from "vue";
|
|
21
21
|
import { Loading } from "@nutui/icons-vue";
|
|
22
22
|
import { w as withInstall } from "../with-install-p59gYYU_.js";
|
|
23
23
|
const _hoisted_1 = { class: "nut-button__wrap" };
|
|
@@ -26,46 +26,21 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
|
|
|
26
26
|
}), {
|
|
27
27
|
__name: "button",
|
|
28
28
|
props: {
|
|
29
|
-
color: {
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
},
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
}
|
|
37
|
-
plain: {
|
|
38
|
-
type: Boolean,
|
|
39
|
-
default: false
|
|
40
|
-
},
|
|
41
|
-
loading: {
|
|
42
|
-
type: Boolean,
|
|
43
|
-
default: false
|
|
44
|
-
},
|
|
45
|
-
disabled: {
|
|
46
|
-
type: Boolean,
|
|
47
|
-
default: false
|
|
48
|
-
},
|
|
49
|
-
type: {
|
|
50
|
-
type: String,
|
|
51
|
-
default: "default"
|
|
52
|
-
},
|
|
53
|
-
size: {
|
|
54
|
-
type: String,
|
|
55
|
-
default: "normal"
|
|
56
|
-
},
|
|
57
|
-
block: {
|
|
58
|
-
type: Boolean,
|
|
59
|
-
default: false
|
|
60
|
-
}
|
|
29
|
+
color: { default: "" },
|
|
30
|
+
shape: { default: "round" },
|
|
31
|
+
plain: { type: Boolean, default: false },
|
|
32
|
+
loading: { type: Boolean, default: false },
|
|
33
|
+
disabled: { type: Boolean, default: false },
|
|
34
|
+
type: { default: "default" },
|
|
35
|
+
size: { default: "normal" },
|
|
36
|
+
block: { type: Boolean, default: false }
|
|
61
37
|
},
|
|
62
38
|
emits: ["click"],
|
|
63
39
|
setup(__props, { emit: __emit }) {
|
|
64
40
|
const props = __props;
|
|
65
41
|
const emit = __emit;
|
|
66
|
-
const { type, size, shape, disabled, loading, color, plain, block } = toRefs(props);
|
|
67
42
|
const handleClick = (event) => {
|
|
68
|
-
if (!loading
|
|
43
|
+
if (!props.loading && !props.disabled) {
|
|
69
44
|
emit("click", event);
|
|
70
45
|
}
|
|
71
46
|
};
|
|
@@ -73,26 +48,26 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
|
|
|
73
48
|
const prefixCls = "nut-button";
|
|
74
49
|
return {
|
|
75
50
|
[prefixCls]: true,
|
|
76
|
-
[`${prefixCls}--${type
|
|
77
|
-
[`${prefixCls}--${size
|
|
78
|
-
[`${prefixCls}--${shape
|
|
79
|
-
[`${prefixCls}--plain`]: plain
|
|
80
|
-
[`${prefixCls}--block`]: block
|
|
81
|
-
[`${prefixCls}--disabled`]: disabled
|
|
82
|
-
[`${prefixCls}--loading`]: loading
|
|
51
|
+
[`${prefixCls}--${props.type}`]: props.type,
|
|
52
|
+
[`${prefixCls}--${props.size}`]: props.size,
|
|
53
|
+
[`${prefixCls}--${props.shape}`]: props.shape,
|
|
54
|
+
[`${prefixCls}--plain`]: props.plain,
|
|
55
|
+
[`${prefixCls}--block`]: props.block,
|
|
56
|
+
[`${prefixCls}--disabled`]: props.disabled,
|
|
57
|
+
[`${prefixCls}--loading`]: props.loading
|
|
83
58
|
};
|
|
84
59
|
});
|
|
85
60
|
const getStyle = computed(() => {
|
|
86
61
|
let style = {};
|
|
87
|
-
if (color
|
|
62
|
+
if (props.color) {
|
|
88
63
|
style = {
|
|
89
|
-
color: plain
|
|
90
|
-
background: plain
|
|
64
|
+
color: props.plain ? props.color : "#fff",
|
|
65
|
+
background: props.plain ? "#fff" : `border-box ${props.color}`
|
|
91
66
|
};
|
|
92
|
-
if (color.
|
|
67
|
+
if (props.color.includes("gradient")) {
|
|
93
68
|
style.borderColor = "transparent";
|
|
94
69
|
} else {
|
|
95
|
-
style.borderColor = color
|
|
70
|
+
style.borderColor = props.color;
|
|
96
71
|
}
|
|
97
72
|
}
|
|
98
73
|
return style;
|
|
@@ -104,14 +79,14 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
|
|
|
104
79
|
onClick: handleClick
|
|
105
80
|
}, [
|
|
106
81
|
createElementVNode("view", _hoisted_1, [
|
|
107
|
-
|
|
82
|
+
_ctx.loading ? (openBlock(), createBlock(unref(Loading), {
|
|
108
83
|
key: 0,
|
|
109
84
|
class: "nut-icon-loading"
|
|
110
85
|
})) : createCommentVNode("", true),
|
|
111
|
-
_ctx.$slots.icon && !
|
|
86
|
+
_ctx.$slots.icon && !_ctx.loading ? renderSlot(_ctx.$slots, "icon", { key: 1 }) : createCommentVNode("", true),
|
|
112
87
|
_ctx.$slots.default ? (openBlock(), createElementBlock("view", {
|
|
113
88
|
key: 2,
|
|
114
|
-
class: normalizeClass({ "nut-button__text": _ctx.$slots.icon ||
|
|
89
|
+
class: normalizeClass({ "nut-button__text": _ctx.$slots.icon || _ctx.loading })
|
|
115
90
|
}, [
|
|
116
91
|
renderSlot(_ctx.$slots, "default")
|
|
117
92
|
], 2)) : createCommentVNode("", true)
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { computed, ref, resolveComponent, openBlock, createBlock, mergeProps, withCtx, createVNode, createSlots, renderSlot } from "vue";
|
|
2
2
|
import { c as createComponent } from "../component-TCzwHGVq.js";
|
|
3
3
|
import NutCalendarItem from "../calendaritem/CalendarItem.js";
|
|
4
|
-
import { N as NutPopup } from "../index-
|
|
4
|
+
import { N as NutPopup } from "../index-wY4t0zYt.js";
|
|
5
5
|
import { U as Utils } from "../date-djiVNSnJ.js";
|
|
6
6
|
import { _ as _export_sfc } from "../_plugin-vue_export-helper-yVxbj29m.js";
|
|
7
7
|
import "../raf-MQjoO-Ag.js";
|
|
@@ -204,30 +204,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
|
|
|
204
204
|
}), {
|
|
205
205
|
__name: "calendar-card",
|
|
206
206
|
props: {
|
|
207
|
-
type: {
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
},
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
default: 0
|
|
214
|
-
},
|
|
215
|
-
modelValue: {
|
|
216
|
-
type: [Object, Array],
|
|
217
|
-
default: () => []
|
|
218
|
-
},
|
|
219
|
-
startDate: {
|
|
220
|
-
type: Date,
|
|
221
|
-
default: null
|
|
222
|
-
},
|
|
223
|
-
endDate: {
|
|
224
|
-
type: Date,
|
|
225
|
-
default: null
|
|
226
|
-
},
|
|
227
|
-
disableDay: {
|
|
228
|
-
type: Function,
|
|
229
|
-
default: () => false
|
|
230
|
-
}
|
|
207
|
+
type: { default: "single" },
|
|
208
|
+
firstDayOfWeek: { default: 0 },
|
|
209
|
+
modelValue: { default: null },
|
|
210
|
+
startDate: { default: null },
|
|
211
|
+
endDate: { default: null },
|
|
212
|
+
disableDay: { type: Function, default: () => false }
|
|
231
213
|
},
|
|
232
214
|
emits: ["update:modelValue", "change", "dayClick", "pageChange"],
|
|
233
215
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
@@ -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 { N as NutPopup, p as popupProps } from "../index-
|
|
58
|
+
import { N as NutPopup, p as popupProps } from "../index-wY4t0zYt.js";
|
|
59
59
|
import { c as createComponent } from "../component-TCzwHGVq.js";
|
|
60
60
|
import { Loading, Checklist } from "@nutui/icons-vue";
|
|
61
61
|
import NutTabs from "../tabs/Tabs.js";
|
|
@@ -66,7 +66,7 @@ import "../overlay/Overlay.js";
|
|
|
66
66
|
import "../util-4Jkyw4BJ.js";
|
|
67
67
|
import "../sticky/Sticky.js";
|
|
68
68
|
import "../index-xDfQLRen.js";
|
|
69
|
-
import "../index-
|
|
69
|
+
import "../index-cp6Ms_Qe.js";
|
|
70
70
|
import "../pxCheck-OnXlN1NC.js";
|
|
71
71
|
import "../raf-MQjoO-Ag.js";
|
|
72
72
|
import "../index-084nl_oE.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-TCzwHGVq.js";
|
|
26
26
|
import { f as funInterceptor } from "../Interceptor-WYVtGbGC.js";
|
|
27
|
-
import { N as NutPopup, p as popupProps } from "../index-
|
|
27
|
+
import { N as NutPopup, p as popupProps } from "../index-wY4t0zYt.js";
|
|
28
28
|
import { Button as _sfc_main$1 } from "../button/Button.js";
|
|
29
29
|
import { u as useLocale } from "../index-s3RgMhc7.js";
|
|
30
30
|
import { _ as _export_sfc } from "../_plugin-vue_export-helper-yVxbj29m.js";
|
|
@@ -24,22 +24,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
|
|
|
24
24
|
}), {
|
|
25
25
|
__name: "divider",
|
|
26
26
|
props: {
|
|
27
|
-
contentPosition: {
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
}
|
|
31
|
-
dashed: {
|
|
32
|
-
type: Boolean,
|
|
33
|
-
default: false
|
|
34
|
-
},
|
|
35
|
-
hairline: {
|
|
36
|
-
type: Boolean,
|
|
37
|
-
default: true
|
|
38
|
-
},
|
|
39
|
-
direction: {
|
|
40
|
-
type: String,
|
|
41
|
-
default: "horizontal"
|
|
42
|
-
}
|
|
27
|
+
contentPosition: { default: "center" },
|
|
28
|
+
dashed: { type: Boolean, default: false },
|
|
29
|
+
hairline: { type: Boolean, default: true },
|
|
30
|
+
direction: { default: "horizontal" }
|
|
43
31
|
},
|
|
44
32
|
setup(__props) {
|
|
45
33
|
const props = __props;
|
|
@@ -66,7 +54,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
|
|
|
66
54
|
return openBlock(), createElementBlock("view", {
|
|
67
55
|
class: normalizeClass(classes.value)
|
|
68
56
|
}, [
|
|
69
|
-
|
|
57
|
+
_ctx.direction === "horizontal" ? renderSlot(_ctx.$slots, "default", { key: 0 }) : createCommentVNode("", true)
|
|
70
58
|
], 2);
|
|
71
59
|
};
|
|
72
60
|
}
|
|
@@ -25,13 +25,13 @@ var __publicField = (obj, key, value) => {
|
|
|
25
25
|
import { reactive, computed, watch, toRefs, resolveComponent, openBlock, createBlock, withCtx, createElementVNode, normalizeStyle, createElementBlock, createCommentVNode, ref, nextTick, onMounted, Fragment, renderList, toDisplayString, normalizeClass, renderSlot, createVNode, h } from "vue";
|
|
26
26
|
import { c as createComponent } from "../component-TCzwHGVq.js";
|
|
27
27
|
import { e as clamp, d as preventDefault, a as isArray } from "../util-4Jkyw4BJ.js";
|
|
28
|
-
import { u as useRect } from "../index-
|
|
28
|
+
import { u as useRect } from "../index-cp6Ms_Qe.js";
|
|
29
29
|
import { u as useTouch } from "../index-084nl_oE.js";
|
|
30
30
|
import NutVideo from "../video/Video.js";
|
|
31
31
|
import NutSwiperItem from "../swiperitem/SwiperItem.js";
|
|
32
32
|
import { _ as _export_sfc } from "../_plugin-vue_export-helper-yVxbj29m.js";
|
|
33
33
|
import { CircleClose } from "@nutui/icons-vue";
|
|
34
|
-
import { N as NutPopup } from "../index-
|
|
34
|
+
import { N as NutPopup } from "../index-wY4t0zYt.js";
|
|
35
35
|
import NutSwiper from "../swiper/Swiper.js";
|
|
36
36
|
import { f as funInterceptor } from "../Interceptor-WYVtGbGC.js";
|
|
37
37
|
import { C as CreateComponent } from "../mountComponent-uInXoTMp.js";
|
|
@@ -59,6 +59,7 @@ const _sfc_main = create({
|
|
|
59
59
|
const change = (event) => {
|
|
60
60
|
const input = event.target;
|
|
61
61
|
emit("update:modelValue", input.value, event);
|
|
62
|
+
emit("change", input.value, event);
|
|
62
63
|
};
|
|
63
64
|
const emitChange = (value, event) => {
|
|
64
65
|
let output_value = fixedDecimalPlaces(value);
|
|
@@ -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, openBlock, createElementBlock, normalizeStyle, createElementVNode, Fragment, renderList, renderSlot } from "vue";
|
|
21
21
|
import { c as createComponent } from "../component-TCzwHGVq.js";
|
|
22
|
-
import { u as useRect } from "../index-
|
|
22
|
+
import { u as useRect } from "../index-cp6Ms_Qe.js";
|
|
23
23
|
import { _ as _export_sfc } from "../_plugin-vue_export-helper-yVxbj29m.js";
|
|
24
24
|
var CompareResult = /* @__PURE__ */ ((CompareResult2) => {
|
|
25
25
|
CompareResult2[CompareResult2["eq"] = 1] = "eq";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ref, computed, onMounted, onUnmounted, resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, Fragment, renderList, normalizeStyle, toDisplayString, renderSlot, createBlock } from "vue";
|
|
2
2
|
import { c as createComponent } from "../component-TCzwHGVq.js";
|
|
3
|
-
import { u as useRect } from "../index-
|
|
3
|
+
import { u as useRect } from "../index-cp6Ms_Qe.js";
|
|
4
4
|
import { RectUp, RectDown } from "@nutui/icons-vue";
|
|
5
5
|
import { M as MENU_KEY } from "../types-j71K23JP.js";
|
|
6
6
|
import { u as useChildren } from "../useChildren-GU_NVfD8.js";
|
|
@@ -19,7 +19,7 @@ var __spreadValues = (a, b) => {
|
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
20
|
import { reactive, computed, 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-TCzwHGVq.js";
|
|
22
|
-
import { N as NutPopup } from "../index-
|
|
22
|
+
import { N as NutPopup } from "../index-wY4t0zYt.js";
|
|
23
23
|
import { Check } from "@nutui/icons-vue";
|
|
24
24
|
import { u as useParent } from "../useParent-KIxqkovs.js";
|
|
25
25
|
import { M as MENU_KEY } from "../types-j71K23JP.js";
|
|
@@ -17,7 +17,7 @@ var __spreadValues = (a, b) => {
|
|
|
17
17
|
return a;
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
|
-
import { h, ref, reactive, computed, watch, onMounted, onActivated, onDeactivated, onUnmounted, toRefs, resolveComponent, openBlock, createElementBlock, withDirectives, normalizeClass, normalizeStyle,
|
|
20
|
+
import { h, ref, reactive, computed, watch, onMounted, onActivated, onDeactivated, onUnmounted, toRefs, resolveComponent, openBlock, createElementBlock, withDirectives, normalizeClass, normalizeStyle, renderSlot, createVNode, createCommentVNode, createElementVNode, createTextVNode, toDisplayString, withModifiers, createBlock, vShow, Fragment, renderList } from "vue";
|
|
21
21
|
import { Notice, CircleClose } from "@nutui/icons-vue";
|
|
22
22
|
import { c as createComponent } from "../component-TCzwHGVq.js";
|
|
23
23
|
import { p as pxCheck } from "../pxCheck-OnXlN1NC.js";
|
|
@@ -25,7 +25,6 @@ import { _ as _export_sfc } from "../_plugin-vue_export-helper-yVxbj29m.js";
|
|
|
25
25
|
const { create } = createComponent("noticebar");
|
|
26
26
|
const _sfc_main = create({
|
|
27
27
|
props: {
|
|
28
|
-
// 滚动方向 across 横向 vertical 纵向
|
|
29
28
|
direction: {
|
|
30
29
|
type: String,
|
|
31
30
|
default: "across"
|
|
@@ -318,7 +317,10 @@ const _sfc_main = create({
|
|
|
318
317
|
}
|
|
319
318
|
});
|
|
320
319
|
const _hoisted_1 = { class: "nut-noticebar" };
|
|
321
|
-
const _hoisted_2 = {
|
|
320
|
+
const _hoisted_2 = {
|
|
321
|
+
key: 0,
|
|
322
|
+
class: "nut-noticebar__page-lefticon"
|
|
323
|
+
};
|
|
322
324
|
const _hoisted_3 = {
|
|
323
325
|
ref: "wrap",
|
|
324
326
|
class: "nut-noticebar__page-wrap"
|
|
@@ -341,14 +343,11 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
341
343
|
style: normalizeStyle(_ctx.barStyle),
|
|
342
344
|
onClick: _cache[3] || (_cache[3] = (...args) => _ctx.handleClick && _ctx.handleClick(...args))
|
|
343
345
|
}, [
|
|
344
|
-
|
|
346
|
+
_ctx.leftIcon ? (openBlock(), createElementBlock("view", _hoisted_2, [
|
|
345
347
|
renderSlot(_ctx.$slots, "left-icon", {}, () => [
|
|
346
|
-
|
|
347
|
-
key: 0,
|
|
348
|
-
size: "16px"
|
|
349
|
-
})) : createCommentVNode("", true)
|
|
348
|
+
createVNode(_component_Notice, { size: "16px" })
|
|
350
349
|
])
|
|
351
|
-
]),
|
|
350
|
+
])) : createCommentVNode("", true),
|
|
352
351
|
createElementVNode("view", _hoisted_3, [
|
|
353
352
|
createElementVNode("view", {
|
|
354
353
|
ref: "content",
|
|
@@ -363,7 +362,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
363
362
|
], 38)
|
|
364
363
|
], 512),
|
|
365
364
|
_ctx.closeMode || _ctx.$slots["right-icon"] ? (openBlock(), createElementBlock("view", {
|
|
366
|
-
key:
|
|
365
|
+
key: 1,
|
|
367
366
|
class: "nut-noticebar__page-righticon",
|
|
368
367
|
onClick: _cache[2] || (_cache[2] = withModifiers((...args) => _ctx.onClickIcon && _ctx.onClickIcon(...args), ["stop"]))
|
|
369
368
|
}, [
|
|
@@ -19,7 +19,7 @@ var __spreadValues = (a, b) => {
|
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
20
|
import { ref, watch, resolveComponent, openBlock, createBlock, withCtx, createElementVNode, normalizeClass, normalizeStyle, renderSlot, createElementBlock, Fragment, createTextVNode, toDisplayString, createVNode, render, onMounted, h } from "vue";
|
|
21
21
|
import { c as createComponent } from "../component-TCzwHGVq.js";
|
|
22
|
-
import { N as NutPopup } from "../index-
|
|
22
|
+
import { N as NutPopup } from "../index-wY4t0zYt.js";
|
|
23
23
|
import { _ as _export_sfc } from "../_plugin-vue_export-helper-yVxbj29m.js";
|
|
24
24
|
import "@nutui/icons-vue";
|
|
25
25
|
import "../overlay/Overlay.js";
|
|
@@ -31,14 +31,26 @@ const _sfc_main = create({
|
|
|
31
31
|
},
|
|
32
32
|
props: {
|
|
33
33
|
id: String,
|
|
34
|
-
color: {
|
|
35
|
-
|
|
36
|
-
|
|
34
|
+
color: {
|
|
35
|
+
type: String,
|
|
36
|
+
default: ""
|
|
37
|
+
},
|
|
38
|
+
msg: {
|
|
39
|
+
type: String,
|
|
40
|
+
default: ""
|
|
41
|
+
},
|
|
42
|
+
duration: {
|
|
43
|
+
type: Number,
|
|
44
|
+
default: 3e3
|
|
45
|
+
},
|
|
37
46
|
className: {
|
|
38
47
|
type: String,
|
|
39
48
|
default: ""
|
|
40
49
|
},
|
|
41
|
-
background: {
|
|
50
|
+
background: {
|
|
51
|
+
type: String,
|
|
52
|
+
default: ""
|
|
53
|
+
},
|
|
42
54
|
type: {
|
|
43
55
|
type: String,
|
|
44
56
|
default: "danger"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ref, computed, watch, resolveComponent, openBlock, createElementBlock, createVNode, withCtx, createElementVNode, toDisplayString, createCommentVNode, Fragment, renderList, normalizeClass, createTextVNode } from "vue";
|
|
2
2
|
import { c as createComponent } from "../component-TCzwHGVq.js";
|
|
3
|
-
import { N as NutPopup } from "../index-
|
|
3
|
+
import { N as NutPopup } from "../index-wY4t0zYt.js";
|
|
4
4
|
import { u as useLocale } from "../index-s3RgMhc7.js";
|
|
5
5
|
import { _ as _export_sfc } from "../_plugin-vue_export-helper-yVxbj29m.js";
|
|
6
6
|
import "@nutui/icons-vue";
|