@nutui/nutui 4.1.1 → 4.1.3
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 +21 -0
- package/LICENSE +1 -1
- package/dist/nutui.es.js +1 -1
- package/dist/nutui.js +1918 -1916
- package/dist/nutui.umd.js +1 -1
- package/dist/packages/_es/ActionSheet.js +1 -1
- 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/Notify.js +2 -2
- package/dist/packages/_es/NumberKeyboard.js +2 -2
- 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/smartips/web-types.json +2 -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/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/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";
|
|
@@ -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";
|
|
@@ -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: {
|
|
@@ -2,11 +2,11 @@ import { ref, computed, onMounted, watch, resolveComponent, openBlock, createEle
|
|
|
2
2
|
import { i as isArray, c as createComponent } from "./component-0fbad28e.js";
|
|
3
3
|
import { r as renderIcon } from "./renderIcon-3d0fd47c.js";
|
|
4
4
|
import { u as useRect } from "./index-29892cda.js";
|
|
5
|
-
import { P as Popup } from "./index-
|
|
5
|
+
import { P as Popup } from "./index-7fe29a2f.js";
|
|
6
6
|
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
7
7
|
import "../locale/lang";
|
|
8
|
-
import "./Overlay.js";
|
|
9
8
|
import "@nutui/icons-vue";
|
|
9
|
+
import "./Overlay.js";
|
|
10
10
|
const { create } = createComponent("popover");
|
|
11
11
|
const _sfc_main = create({
|
|
12
12
|
components: {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { P } from "./index-
|
|
1
|
+
import { P } from "./index-7fe29a2f.js";
|
|
2
2
|
import "vue";
|
|
3
3
|
import "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
4
|
+
import "@nutui/icons-vue";
|
|
5
|
+
import "./Overlay.js";
|
|
4
6
|
import "./component-0fbad28e.js";
|
|
5
7
|
import "../locale/lang";
|
|
6
|
-
import "./Overlay.js";
|
|
7
|
-
import "@nutui/icons-vue";
|
|
8
8
|
export {
|
|
9
9
|
P as default
|
|
10
10
|
};
|
|
@@ -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-7fe29a2f.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";
|
|
@@ -3,103 +3,98 @@ import { toRefs, computed, resolveComponent, openBlock, createElementBlock, rend
|
|
|
3
3
|
import Avatar from "./Avatar.js";
|
|
4
4
|
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
5
5
|
import "../locale/lang";
|
|
6
|
-
const
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
height: {
|
|
17
|
-
type: String,
|
|
18
|
-
default: "15px"
|
|
19
|
-
},
|
|
20
|
-
//是否显示动画
|
|
21
|
-
animated: {
|
|
22
|
-
type: Boolean,
|
|
23
|
-
default: false
|
|
24
|
-
},
|
|
25
|
-
//头像
|
|
26
|
-
avatar: {
|
|
27
|
-
type: Boolean,
|
|
28
|
-
default: false
|
|
29
|
-
},
|
|
30
|
-
//头像形状:正方形/圆形
|
|
31
|
-
avatarShape: {
|
|
32
|
-
type: String,
|
|
33
|
-
default: "round"
|
|
34
|
-
},
|
|
35
|
-
//头像大小
|
|
36
|
-
avatarSize: {
|
|
37
|
-
type: String,
|
|
38
|
-
default: "50px"
|
|
39
|
-
},
|
|
40
|
-
//是否显示骨架屏
|
|
41
|
-
loading: {
|
|
42
|
-
type: Boolean,
|
|
43
|
-
default: true
|
|
44
|
-
},
|
|
45
|
-
//标题/段落 圆角风格
|
|
46
|
-
round: {
|
|
47
|
-
type: Boolean,
|
|
48
|
-
default: false
|
|
49
|
-
},
|
|
50
|
-
//显示段落行数
|
|
51
|
-
row: {
|
|
52
|
-
type: String,
|
|
53
|
-
default: "1"
|
|
54
|
-
},
|
|
55
|
-
//是否显示段落标题
|
|
56
|
-
title: {
|
|
57
|
-
type: Boolean,
|
|
58
|
-
default: true
|
|
59
|
-
}
|
|
6
|
+
const { create } = createComponent("skeleton");
|
|
7
|
+
const _sfc_main = create({
|
|
8
|
+
components: {
|
|
9
|
+
[Avatar.name]: Avatar
|
|
10
|
+
},
|
|
11
|
+
props: {
|
|
12
|
+
//每行宽度
|
|
13
|
+
width: {
|
|
14
|
+
type: String,
|
|
15
|
+
default: "100px"
|
|
60
16
|
},
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
17
|
+
//每行高度
|
|
18
|
+
height: {
|
|
19
|
+
type: String,
|
|
20
|
+
default: "15px"
|
|
21
|
+
},
|
|
22
|
+
//是否显示动画
|
|
23
|
+
animated: {
|
|
24
|
+
type: Boolean,
|
|
25
|
+
default: false
|
|
26
|
+
},
|
|
27
|
+
//头像
|
|
28
|
+
avatar: {
|
|
29
|
+
type: Boolean,
|
|
30
|
+
default: false
|
|
31
|
+
},
|
|
32
|
+
//头像形状:正方形/圆形
|
|
33
|
+
avatarShape: {
|
|
34
|
+
type: String,
|
|
35
|
+
default: "round"
|
|
36
|
+
},
|
|
37
|
+
//头像大小
|
|
38
|
+
avatarSize: {
|
|
39
|
+
type: String,
|
|
40
|
+
default: "50px"
|
|
41
|
+
},
|
|
42
|
+
//是否显示骨架屏
|
|
43
|
+
loading: {
|
|
44
|
+
type: Boolean,
|
|
45
|
+
default: true
|
|
46
|
+
},
|
|
47
|
+
//标题/段落 圆角风格
|
|
48
|
+
round: {
|
|
49
|
+
type: Boolean,
|
|
50
|
+
default: false
|
|
51
|
+
},
|
|
52
|
+
//显示段落行数
|
|
53
|
+
row: {
|
|
54
|
+
type: String,
|
|
55
|
+
default: "1"
|
|
56
|
+
},
|
|
57
|
+
//是否显示段落标题
|
|
58
|
+
title: {
|
|
59
|
+
type: Boolean,
|
|
60
|
+
default: true
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
setup(props) {
|
|
64
|
+
const { avatarShape, round, avatarSize } = toRefs(props);
|
|
65
|
+
const avatarClass = computed(() => {
|
|
66
|
+
const prefixCls = "avatarClass";
|
|
67
|
+
return {
|
|
68
|
+
[prefixCls]: true,
|
|
69
|
+
[`${prefixCls}--${avatarShape.value}`]: avatarShape.value
|
|
70
|
+
};
|
|
71
|
+
});
|
|
72
|
+
const getBlockClass = (prefixCls) => {
|
|
73
|
+
return {
|
|
74
|
+
[prefixCls]: true,
|
|
75
|
+
[`${prefixCls}--round`]: round.value
|
|
75
76
|
};
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
width: avatarSize.value,
|
|
80
|
-
height: avatarSize.value
|
|
81
|
-
};
|
|
82
|
-
}
|
|
77
|
+
};
|
|
78
|
+
const getStyle = () => {
|
|
79
|
+
if (avatarSize.value) {
|
|
83
80
|
return {
|
|
84
|
-
width:
|
|
85
|
-
height:
|
|
81
|
+
width: avatarSize.value,
|
|
82
|
+
height: avatarSize.value
|
|
86
83
|
};
|
|
87
|
-
}
|
|
84
|
+
}
|
|
88
85
|
return {
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
getBlockClass,
|
|
92
|
-
getStyle
|
|
86
|
+
width: "50px",
|
|
87
|
+
height: "50px"
|
|
93
88
|
};
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
}
|
|
102
|
-
);
|
|
89
|
+
};
|
|
90
|
+
return {
|
|
91
|
+
avatarShape,
|
|
92
|
+
avatarClass,
|
|
93
|
+
getBlockClass,
|
|
94
|
+
getStyle
|
|
95
|
+
};
|
|
96
|
+
}
|
|
97
|
+
});
|
|
103
98
|
const _hoisted_1 = { key: 0 };
|
|
104
99
|
const _hoisted_2 = {
|
|
105
100
|
key: 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-7fe29a2f.js";
|
|
26
26
|
import "../locale/lang";
|
|
27
27
|
import "./pxCheck-c6b9f6b7.js";
|
|
28
28
|
import "@nutui/icons-vue";
|
|
@@ -1,10 +1,10 @@
|
|
|
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-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 { componentName, create, translate } = createComponent("time-select");
|
|
9
9
|
const _sfc_main = create({
|
|
10
10
|
components: {
|
|
@@ -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-7fe29a2f.js";
|
|
29
29
|
import "./Overlay.js";
|
|
30
30
|
const { create } = createComponent("tour");
|
|
31
31
|
const _sfc_main = create({
|