@nutui/nutui 3.1.12-beta.1 → 3.1.12
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 +27 -0
- package/dist/nutui.d.ts +1 -1
- package/dist/nutui.es.js +3219 -2562
- package/dist/nutui.umd.js +3292 -2565
- package/dist/packages/_es/ActionSheet.js +12 -13
- package/dist/packages/_es/Address.js +49 -63
- package/dist/packages/_es/Avatar.js +5 -4
- package/dist/packages/_es/BackTop.js +109 -72
- package/dist/packages/_es/Badge.js +5 -4
- package/dist/packages/_es/Barrage.js +57 -63
- package/dist/packages/_es/Button.js +6 -5
- package/dist/packages/_es/Calendar.js +18 -27
- package/dist/packages/_es/Card.js +8 -7
- package/dist/packages/_es/Cell.js +13 -5
- package/dist/packages/_es/CellGroup.js +14 -7
- package/dist/packages/_es/Checkbox.js +3 -3
- package/dist/packages/_es/CheckboxGroup.js +4 -9
- package/dist/packages/_es/CircleProgress.js +46 -142
- package/dist/packages/_es/Col.js +5 -4
- package/dist/packages/_es/Collapse.js +10 -35
- package/dist/packages/_es/CollapseItem.js +35 -80
- package/dist/packages/_es/CountDown.js +5 -7
- package/dist/packages/_es/CountUp.js +31 -34
- package/dist/packages/_es/DatePicker.js +219 -451
- package/dist/packages/_es/Dialog.js +98 -46
- package/dist/packages/_es/Divider.js +6 -5
- package/dist/packages/_es/Drag.js +50 -76
- package/dist/packages/_es/Elevator.js +52 -81
- package/dist/packages/_es/FixedNav.js +9 -8
- package/dist/packages/_es/Form.js +6 -5
- package/dist/packages/_es/FormItem.js +5 -4
- package/dist/packages/_es/Icon.js +40 -6
- package/dist/packages/_es/ImagePreview.js +158 -44
- package/dist/packages/_es/InfiniteLoading.js +109 -95
- package/dist/packages/_es/Input.js +21 -22
- package/dist/packages/_es/InputNumber.js +18 -24
- package/dist/packages/_es/Layout.js +2 -2
- package/dist/packages/_es/Menu.js +14 -16
- package/dist/packages/_es/MenuItem.js +11 -9
- package/dist/packages/_es/Navbar.js +7 -7
- package/dist/packages/_es/NoticeBar.js +26 -39
- package/dist/packages/_es/Notify.js +166 -30
- package/dist/packages/_es/NumberKeyboard.js +7 -9
- package/dist/packages/_es/OverLay.js +29 -22
- package/dist/packages/_es/Pagination.js +9 -8
- package/dist/packages/_es/Picker.js +447 -61
- package/dist/packages/_es/Popover.js +34 -161
- package/dist/packages/_es/Popup.js +77 -17
- package/dist/packages/_es/Price.js +7 -18
- package/dist/packages/_es/Progress.js +12 -23
- package/dist/packages/_es/Radio.js +3 -3
- package/dist/packages/_es/RadioGroup.js +2 -2
- package/dist/packages/_es/Range.js +31 -38
- package/dist/packages/_es/Rate.js +35 -17
- package/dist/packages/_es/Row.js +5 -4
- package/dist/packages/_es/SearchBar.js +5 -7
- package/dist/packages/_es/ShortPassword.js +59 -89
- package/dist/packages/_es/Signature.js +71 -70
- package/dist/packages/_es/Sku.js +43 -53
- package/dist/packages/_es/Step.js +8 -10
- package/dist/packages/_es/Steps.js +2 -2
- package/dist/packages/_es/Swipe.js +28 -43
- package/dist/packages/_es/Swiper.js +418 -17
- package/dist/packages/_es/SwiperItem.js +39 -14
- package/dist/packages/_es/Switch.js +32 -11
- package/dist/packages/_es/TabPane.js +5 -4
- package/dist/packages/_es/Tabbar.js +5 -4
- package/dist/packages/_es/TabbarItem.js +9 -8
- package/dist/packages/_es/Tabs.js +16 -22
- package/dist/packages/_es/Tag.js +6 -5
- package/dist/packages/_es/TextArea.js +12 -16
- package/dist/packages/_es/TimeDetail.js +5 -7
- package/dist/packages/_es/TimePannel.js +5 -7
- package/dist/packages/_es/TimeSelect.js +7 -12
- package/dist/packages/_es/Toast.js +178 -46
- package/dist/packages/_es/Uploader.js +149 -109
- package/dist/packages/_es/Video.js +405 -0
- package/dist/packages/_es/component.js +1 -1
- package/dist/packages/_es/index.js +7 -58
- package/dist/packages/_es/index2.js +58 -43
- package/dist/packages/_es/index3.js +28 -411
- package/dist/packages/_es/plugin-vue_export-helper.js +13 -0
- package/dist/packages/_es/pxCheck.js +1 -1
- package/dist/packages/_es/raf.js +1 -1
- package/dist/packages/_es/util.js +1 -1
- package/dist/packages/cellgroup/index.scss +9 -0
- package/dist/packages/dialog/index.scss +17 -0
- package/dist/packages/drag/index.scss +4 -0
- package/dist/packages/fixednav/index.scss +6 -1
- package/dist/packages/formitem/index.scss +3 -0
- package/dist/packages/icon/index.scss +2 -1
- package/dist/packages/numberkeyboard/index.scss +1 -1
- package/dist/packages/popover/index.scss +2 -2
- package/dist/packages/rate/index.scss +1 -0
- package/dist/packages/textarea/index.scss +1 -0
- package/dist/packages/timedetail/index.scss +1 -2
- package/dist/packages/timeselect/index.scss +3 -0
- package/dist/packages/toast/index.scss +6 -0
- package/dist/style.css +1 -1
- package/dist/style.es.js +2 -1
- package/dist/styles/font/config.json +2 -1
- package/dist/styles/font/demo_index.html +26 -3
- package/dist/styles/font/iconfont.css +7 -3
- package/dist/styles/font/iconfont.js +31 -32
- package/dist/styles/font/iconfont.json +7 -0
- package/dist/styles/font/iconfont.ttf +0 -0
- package/dist/styles/font/iconfont.woff +0 -0
- package/dist/styles/font/iconfont.woff2 +0 -0
- package/dist/styles/themes/default.scss +38 -38
- package/dist/styles/variables.scss +5 -1
- package/package.json +1 -1
- package/dist/packages/_es/commonProps.js +0 -30
- package/dist/packages/_es/index.taro.vue_vue&type=script&lang.js +0 -44
- package/dist/packages/_es/use-lock-scroll.js +0 -23
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.1.
|
|
2
|
+
* @nutui/nutui v3.1.12 Sat Nov 27 2021 11:30:43 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2021 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
|
-
import {
|
|
6
|
+
import { computed, ref, onMounted, onUnmounted, onDeactivated, watch, nextTick, openBlock, createElementBlock, normalizeClass, createElementVNode } from "vue";
|
|
7
7
|
import { c as createComponent } from "./component.js";
|
|
8
|
-
import
|
|
8
|
+
import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
|
|
9
9
|
const { componentName, create } = createComponent("barrage");
|
|
10
|
-
|
|
10
|
+
const _sfc_main = create({
|
|
11
11
|
props: {
|
|
12
12
|
danmu: {
|
|
13
13
|
type: Array,
|
|
@@ -15,7 +15,7 @@ var _sfc_main = create({
|
|
|
15
15
|
},
|
|
16
16
|
frequency: {
|
|
17
17
|
type: Number,
|
|
18
|
-
default:
|
|
18
|
+
default: 500
|
|
19
19
|
},
|
|
20
20
|
speeds: {
|
|
21
21
|
type: Number,
|
|
@@ -36,89 +36,83 @@ var _sfc_main = create({
|
|
|
36
36
|
},
|
|
37
37
|
emits: ["click"],
|
|
38
38
|
setup(props, { emit }) {
|
|
39
|
-
const timeId = ref(new Date().getTime());
|
|
40
|
-
const danmuList = ref(props.danmu);
|
|
41
|
-
const rows = ref(props.rows);
|
|
42
|
-
const top = ref(props.top);
|
|
43
|
-
const speeds = props.speeds;
|
|
44
39
|
const classes = computed(() => {
|
|
45
40
|
const prefixCls = componentName;
|
|
46
41
|
return {
|
|
47
|
-
[prefixCls]: true
|
|
48
|
-
["dmBody" + timeId.value]: true
|
|
42
|
+
[prefixCls]: true
|
|
49
43
|
};
|
|
50
44
|
});
|
|
45
|
+
let dmBody = ref(document.createElement("div"));
|
|
46
|
+
let dmContainer = ref(document.createElement("div"));
|
|
47
|
+
let timer = 0;
|
|
48
|
+
const danmuList = ref(props.danmu);
|
|
49
|
+
const rows = ref(props.rows);
|
|
50
|
+
const top = ref(props.top);
|
|
51
|
+
const index2 = ref(0);
|
|
52
|
+
const speeds = props.speeds;
|
|
53
|
+
const danmuCWidth = ref(0);
|
|
51
54
|
onMounted(() => {
|
|
52
|
-
|
|
55
|
+
danmuCWidth.value = dmBody.value.offsetWidth;
|
|
56
|
+
run();
|
|
53
57
|
});
|
|
54
58
|
onUnmounted(() => {
|
|
55
|
-
|
|
59
|
+
clearInterval(timer);
|
|
60
|
+
timer = 0;
|
|
56
61
|
});
|
|
57
62
|
onDeactivated(() => {
|
|
58
|
-
|
|
63
|
+
clearInterval(timer);
|
|
64
|
+
timer = 0;
|
|
59
65
|
});
|
|
60
66
|
watch(() => props.danmu, (newValue, oldVlaue) => {
|
|
61
67
|
danmuList.value = [...newValue];
|
|
62
68
|
});
|
|
63
69
|
const add = (word) => {
|
|
64
|
-
|
|
65
|
-
|
|
70
|
+
const _index = index2.value % danmuList.value.length;
|
|
71
|
+
danmuList.value.splice(_index, 0, word);
|
|
66
72
|
};
|
|
67
|
-
const
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
query.select(".dmitem" + index).boundingClientRect((recs) => {
|
|
75
|
-
let height = recs.height;
|
|
76
|
-
let nodeTop = index % rows.value * (height + top.value) + 20 + "px";
|
|
77
|
-
styleInfo(index, nodeTop, width);
|
|
78
|
-
}).exec();
|
|
79
|
-
}, 500);
|
|
73
|
+
const run = () => {
|
|
74
|
+
clearInterval(timer);
|
|
75
|
+
timer = 0;
|
|
76
|
+
timer = setInterval(() => {
|
|
77
|
+
play();
|
|
78
|
+
run();
|
|
79
|
+
}, props.frequency);
|
|
80
80
|
};
|
|
81
|
-
const
|
|
82
|
-
danmuList.value.
|
|
83
|
-
|
|
81
|
+
const play = () => {
|
|
82
|
+
const _index = props.loop ? index2.value % danmuList.value.length : index2.value;
|
|
83
|
+
let el = document.createElement(`view`);
|
|
84
|
+
el.innerHTML = danmuList.value[_index];
|
|
85
|
+
el.classList.add("dmitem");
|
|
86
|
+
dmContainer.value.appendChild(el);
|
|
87
|
+
nextTick(() => {
|
|
88
|
+
const width = el.offsetWidth;
|
|
89
|
+
const height = el.offsetHeight;
|
|
90
|
+
el.classList.add("move");
|
|
91
|
+
el.style.animationDuration = `${speeds}ms`;
|
|
92
|
+
el.style.top = _index % rows.value * (height + top.value) + 20 + "px";
|
|
93
|
+
el.style.width = width + 20 + "px";
|
|
94
|
+
el.style.setProperty("--move-distance", `-${danmuCWidth.value}px`);
|
|
95
|
+
el.dataset.index = `${_index}`;
|
|
96
|
+
el.addEventListener("animationend", () => {
|
|
97
|
+
dmContainer.value.removeChild(el);
|
|
98
|
+
});
|
|
99
|
+
index2.value++;
|
|
84
100
|
});
|
|
85
101
|
};
|
|
86
|
-
|
|
87
|
-
const styleInfo = (index, nodeTop, width) => {
|
|
88
|
-
let timeIndex = index - rows.value > 0 ? index - rows.value : 0;
|
|
89
|
-
let list = styleList;
|
|
90
|
-
let time = list[timeIndex] ? Number(list[timeIndex]["--time"]) : 0;
|
|
91
|
-
let obj = {
|
|
92
|
-
top: nodeTop,
|
|
93
|
-
"--time": `${props.frequency * index + time}`,
|
|
94
|
-
animationDuration: `${speeds}ms`,
|
|
95
|
-
animationIterationCount: `${props.loop ? "infinite" : 1}`,
|
|
96
|
-
animationDelay: `${props.frequency * index + time}ms`,
|
|
97
|
-
"--move-distance": `-${width}px`
|
|
98
|
-
};
|
|
99
|
-
styleList.push(obj);
|
|
100
|
-
};
|
|
101
|
-
return { classes, danmuList, add, styleList };
|
|
102
|
+
return { classes, danmuList, dmBody, dmContainer, add };
|
|
102
103
|
}
|
|
103
104
|
});
|
|
104
105
|
const _hoisted_1 = {
|
|
105
|
-
|
|
106
|
-
|
|
106
|
+
ref: "dmContainer",
|
|
107
|
+
class: "dmContainer"
|
|
107
108
|
};
|
|
108
109
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
109
110
|
return openBlock(), createElementBlock("view", {
|
|
110
|
-
|
|
111
|
+
ref: "dmBody",
|
|
112
|
+
class: normalizeClass(_ctx.classes)
|
|
111
113
|
}, [
|
|
112
|
-
createElementVNode("view", _hoisted_1,
|
|
113
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.danmuList, (item, index) => {
|
|
114
|
-
return openBlock(), createElementBlock("view", {
|
|
115
|
-
key: "danmu" + index,
|
|
116
|
-
class: normalizeClass(["dmitem", "dmitem" + index, "move"]),
|
|
117
|
-
style: normalizeStyle(_ctx.styleList[index])
|
|
118
|
-
}, toDisplayString(item.length > 8 ? item.substr(0, 8) + "..." : item), 7);
|
|
119
|
-
}), 128))
|
|
120
|
-
])
|
|
114
|
+
createElementVNode("view", _hoisted_1, null, 512)
|
|
121
115
|
], 2);
|
|
122
116
|
}
|
|
123
|
-
_sfc_main
|
|
124
|
-
export {
|
|
117
|
+
var index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
118
|
+
export { index as default };
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.1.
|
|
2
|
+
* @nutui/nutui v3.1.12 Sat Nov 27 2021 11:30:43 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2021 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
6
|
import { toRefs, computed, resolveComponent, openBlock, createElementBlock, normalizeClass, normalizeStyle, createElementVNode, createBlock, createCommentVNode, renderSlot } from "vue";
|
|
7
7
|
import { c as createComponent } from "./component.js";
|
|
8
|
-
import
|
|
8
|
+
import _sfc_main$1 from "./Icon.js";
|
|
9
|
+
import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
|
|
9
10
|
import "./pxCheck.js";
|
|
10
11
|
const { componentName, create } = createComponent("button");
|
|
11
|
-
|
|
12
|
+
const _sfc_main = create({
|
|
12
13
|
components: {
|
|
13
14
|
[_sfc_main$1.name]: _sfc_main$1
|
|
14
15
|
},
|
|
@@ -119,5 +120,5 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
119
120
|
])
|
|
120
121
|
], 6);
|
|
121
122
|
}
|
|
122
|
-
_sfc_main
|
|
123
|
-
export {
|
|
123
|
+
var Button = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
124
|
+
export { Button as default };
|
|
@@ -14,24 +14,22 @@ var __spreadValues = (a, b) => {
|
|
|
14
14
|
}
|
|
15
15
|
return a;
|
|
16
16
|
};
|
|
17
|
-
var __require = typeof require !== "undefined" ? require : (x) => {
|
|
18
|
-
throw new Error('Dynamic require of "' + x + '" is not supported');
|
|
19
|
-
};
|
|
20
17
|
/*!
|
|
21
|
-
* @nutui/nutui v3.1.
|
|
18
|
+
* @nutui/nutui v3.1.12 Sat Nov 27 2021 11:30:43 GMT+0800 (中国标准时间)
|
|
22
19
|
* (c) 2021 @jdf2e.
|
|
23
20
|
* Released under the MIT License.
|
|
24
21
|
*/
|
|
25
22
|
import { ref, reactive, watch, toRefs, openBlock, createElementBlock, normalizeClass, createElementVNode, Fragment, toDisplayString, createCommentVNode, renderList, withModifiers, resolveComponent, createBlock, withCtx, createVNode } from "vue";
|
|
26
23
|
import { c as createComponent } from "./component.js";
|
|
27
24
|
import { r as requestAniFrame } from "./raf.js";
|
|
25
|
+
import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
|
|
28
26
|
const Utils = {
|
|
29
27
|
isLeapYear: function(y) {
|
|
30
28
|
return y % 4 == 0 && y % 100 != 0 || y % 400 == 0;
|
|
31
29
|
},
|
|
32
30
|
getWhatDay: function(year, month, day) {
|
|
33
31
|
const date = new Date(year + "/" + month + "/" + day);
|
|
34
|
-
const
|
|
32
|
+
const index2 = date.getDay();
|
|
35
33
|
const dayNames = [
|
|
36
34
|
"\u661F\u671F\u65E5",
|
|
37
35
|
"\u661F\u671F\u4E00",
|
|
@@ -41,7 +39,7 @@ const Utils = {
|
|
|
41
39
|
"\u661F\u671F\u4E94",
|
|
42
40
|
"\u661F\u671F\u516D"
|
|
43
41
|
];
|
|
44
|
-
return dayNames[
|
|
42
|
+
return dayNames[index2];
|
|
45
43
|
},
|
|
46
44
|
getMonthPreDay: function(year, month) {
|
|
47
45
|
const date = new Date(year + "/" + month + "/01");
|
|
@@ -107,7 +105,7 @@ const Utils = {
|
|
|
107
105
|
}
|
|
108
106
|
};
|
|
109
107
|
const { create: create$1 } = createComponent("calendar-item");
|
|
110
|
-
|
|
108
|
+
const _sfc_main$1 = create$1({
|
|
111
109
|
props: {
|
|
112
110
|
type: {
|
|
113
111
|
type: String,
|
|
@@ -539,10 +537,10 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
539
537
|
createElementVNode("view", _hoisted_2, toDisplayString(_ctx.yearMonthTitle), 1)
|
|
540
538
|
], 64)) : createCommentVNode("", true),
|
|
541
539
|
createElementVNode("view", _hoisted_3, [
|
|
542
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.weeks, (item,
|
|
540
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.weeks, (item, index2) => {
|
|
543
541
|
return openBlock(), createElementBlock("view", {
|
|
544
542
|
class: "calendar-week-item",
|
|
545
|
-
key:
|
|
543
|
+
key: index2
|
|
546
544
|
}, toDisplayString(item), 1);
|
|
547
545
|
}), 128))
|
|
548
546
|
], 512)
|
|
@@ -556,10 +554,10 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
556
554
|
}, [
|
|
557
555
|
createElementVNode("view", _hoisted_4, [
|
|
558
556
|
createElementVNode("view", _hoisted_5, toDisplayString(!_ctx.unLoadPrev ? "\u52A0\u8F7D\u4E0A\u4E00\u4E2A\u6708" : "\u6CA1\u6709\u66F4\u65E9\u6708\u4EFD"), 1),
|
|
559
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.monthsData, (month,
|
|
557
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.monthsData, (month, index2) => {
|
|
560
558
|
return openBlock(), createElementBlock("view", {
|
|
561
559
|
class: "calendar-month",
|
|
562
|
-
key:
|
|
560
|
+
key: index2
|
|
563
561
|
}, [
|
|
564
562
|
createElementVNode("view", _hoisted_6, toDisplayString(month.title), 1),
|
|
565
563
|
createElementVNode("view", _hoisted_7, [
|
|
@@ -591,11 +589,11 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
591
589
|
])) : createCommentVNode("", true)
|
|
592
590
|
], 2);
|
|
593
591
|
}
|
|
594
|
-
_sfc_main$1
|
|
592
|
+
var CalendarItem = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render$1]]);
|
|
595
593
|
const { create } = createComponent("calendar");
|
|
596
|
-
|
|
594
|
+
const _sfc_main = create({
|
|
597
595
|
components: {
|
|
598
|
-
[
|
|
596
|
+
[CalendarItem.name]: CalendarItem
|
|
599
597
|
},
|
|
600
598
|
props: {
|
|
601
599
|
type: {
|
|
@@ -612,7 +610,7 @@ var _sfc_main = create({
|
|
|
612
610
|
},
|
|
613
611
|
visible: {
|
|
614
612
|
type: Boolean,
|
|
615
|
-
default:
|
|
613
|
+
default: false
|
|
616
614
|
},
|
|
617
615
|
title: {
|
|
618
616
|
type: String,
|
|
@@ -632,14 +630,11 @@ var _sfc_main = create({
|
|
|
632
630
|
},
|
|
633
631
|
emits: ["choose", "close", "update:visible"],
|
|
634
632
|
setup(props, { emit }) {
|
|
635
|
-
let show = ref(props.visible);
|
|
636
633
|
const calendarRef = ref(null);
|
|
637
634
|
const update = () => {
|
|
638
|
-
show.value = false;
|
|
639
635
|
emit("update:visible", false);
|
|
640
636
|
};
|
|
641
637
|
const close = () => {
|
|
642
|
-
show.value = false;
|
|
643
638
|
emit("close");
|
|
644
639
|
emit("update:visible", false);
|
|
645
640
|
};
|
|
@@ -650,11 +645,7 @@ var _sfc_main = create({
|
|
|
650
645
|
const closePopup = () => {
|
|
651
646
|
close();
|
|
652
647
|
};
|
|
653
|
-
watch(() => props.visible, (value) => {
|
|
654
|
-
show.value = value;
|
|
655
|
-
});
|
|
656
648
|
return {
|
|
657
|
-
show,
|
|
658
649
|
closePopup,
|
|
659
650
|
update,
|
|
660
651
|
close,
|
|
@@ -668,16 +659,16 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
668
659
|
const _component_nut_popup = resolveComponent("nut-popup");
|
|
669
660
|
return _ctx.poppable ? (openBlock(), createBlock(_component_nut_popup, {
|
|
670
661
|
key: 0,
|
|
671
|
-
visible: _ctx.
|
|
672
|
-
"onUpdate:visible": _cache[0] || (_cache[0] = ($event) => _ctx.show = $event),
|
|
662
|
+
visible: _ctx.visible,
|
|
673
663
|
position: "bottom",
|
|
674
664
|
round: "",
|
|
675
|
-
closeable:
|
|
665
|
+
closeable: true,
|
|
676
666
|
onClickOverlay: _ctx.closePopup,
|
|
677
667
|
onClickCloseIcon: _ctx.closePopup
|
|
678
668
|
}, {
|
|
679
669
|
default: withCtx(() => [
|
|
680
670
|
createVNode(_component_nut_calendar_item, {
|
|
671
|
+
props: "",
|
|
681
672
|
ref: "calendarRef",
|
|
682
673
|
type: _ctx.type,
|
|
683
674
|
"is-auto-back-fill": _ctx.isAutoBackFill,
|
|
@@ -705,5 +696,5 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
705
696
|
onChoose: _ctx.choose
|
|
706
697
|
}, null, 8, ["type", "is-auto-back-fill", "poppable", "title", "default-value", "start-date", "end-date", "onClose", "onChoose"]));
|
|
707
698
|
}
|
|
708
|
-
_sfc_main
|
|
709
|
-
export {
|
|
699
|
+
var index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
700
|
+
export { index as default };
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.1.
|
|
2
|
+
* @nutui/nutui v3.1.12 Sat Nov 27 2021 11:30:43 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2021 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
6
|
import { c as createComponent } from "./component.js";
|
|
7
|
-
import { resolveComponent, openBlock, createElementBlock, createElementVNode, toDisplayString, renderSlot, createVNode, createBlock,
|
|
7
|
+
import { resolveComponent, openBlock, createElementBlock, createElementVNode, toDisplayString, renderSlot, createVNode, createBlock, Fragment, withCtx, createTextVNode } from "vue";
|
|
8
|
+
import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
|
|
8
9
|
const { create } = createComponent("card");
|
|
9
|
-
|
|
10
|
+
const _sfc_main = create({
|
|
10
11
|
props: {
|
|
11
12
|
imgUrl: {
|
|
12
13
|
type: String,
|
|
@@ -38,6 +39,7 @@ var _sfc_main = create({
|
|
|
38
39
|
}
|
|
39
40
|
},
|
|
40
41
|
setup(props, { emit, slots }) {
|
|
42
|
+
console.log(slots["origin"]);
|
|
41
43
|
const isHaveSlot = (slot) => {
|
|
42
44
|
return slots[slot];
|
|
43
45
|
};
|
|
@@ -74,8 +76,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
74
76
|
key: 1,
|
|
75
77
|
class: "nut-card__right__price__origin",
|
|
76
78
|
price: _ctx.vipPrice
|
|
77
|
-
}, null, 8, ["price"]))
|
|
78
|
-
_ctx.isHaveSlot("tag") ? renderSlot(_ctx.$slots, "tag", { key: 2 }) : createCommentVNode("", true)
|
|
79
|
+
}, null, 8, ["price"]))
|
|
79
80
|
]),
|
|
80
81
|
createElementVNode("div", _hoisted_7, [
|
|
81
82
|
_ctx.isHaveSlot("shop-tag") ? renderSlot(_ctx.$slots, "shop-tag", { key: 0 }) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
@@ -100,5 +101,5 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
100
101
|
])
|
|
101
102
|
]);
|
|
102
103
|
}
|
|
103
|
-
_sfc_main
|
|
104
|
-
export {
|
|
104
|
+
var index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
105
|
+
export { index as default };
|
|
@@ -1,20 +1,22 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.1.
|
|
2
|
+
* @nutui/nutui v3.1.12 Sat Nov 27 2021 11:30:43 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2021 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
6
|
import { computed, resolveComponent, openBlock, createElementBlock, normalizeClass, normalizeStyle, renderSlot, createBlock, createCommentVNode, Fragment, createElementVNode, toDisplayString, createTextVNode } from "vue";
|
|
7
7
|
import { c as createComponent } from "./component.js";
|
|
8
|
+
import { useRouter } from "vue-router";
|
|
8
9
|
import { p as pxCheck } from "./pxCheck.js";
|
|
10
|
+
import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
|
|
9
11
|
const { componentName, create } = createComponent("cell");
|
|
10
|
-
|
|
12
|
+
const _sfc_main = create({
|
|
11
13
|
props: {
|
|
12
14
|
title: { type: String, default: "" },
|
|
13
15
|
subTitle: { type: String, default: "" },
|
|
14
16
|
desc: { type: String, default: "" },
|
|
15
17
|
descTextAlign: { type: String, default: "right" },
|
|
16
18
|
isLink: { type: Boolean, default: false },
|
|
17
|
-
to:
|
|
19
|
+
to: [String, Object],
|
|
18
20
|
replace: { type: Boolean, default: false },
|
|
19
21
|
roundRadius: { type: [String, Number], default: "" },
|
|
20
22
|
url: { type: String, default: "" },
|
|
@@ -29,6 +31,7 @@ var _sfc_main = create({
|
|
|
29
31
|
[`${prefixCls}--clickable`]: props.isLink || props.to
|
|
30
32
|
};
|
|
31
33
|
});
|
|
34
|
+
const router = useRouter();
|
|
32
35
|
const baseStyle = computed(() => {
|
|
33
36
|
return {
|
|
34
37
|
borderRadius: pxCheck(props.roundRadius)
|
|
@@ -36,6 +39,11 @@ var _sfc_main = create({
|
|
|
36
39
|
});
|
|
37
40
|
const handleClick = (event) => {
|
|
38
41
|
emit("click", event);
|
|
42
|
+
if (props.to && router) {
|
|
43
|
+
router[props.replace ? "replace" : "push"](props.to);
|
|
44
|
+
} else if (props.url) {
|
|
45
|
+
props.replace ? location.replace(props.url) : location.href = props.url;
|
|
46
|
+
}
|
|
39
47
|
};
|
|
40
48
|
return {
|
|
41
49
|
handleClick,
|
|
@@ -83,5 +91,5 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
83
91
|
])
|
|
84
92
|
], 6);
|
|
85
93
|
}
|
|
86
|
-
_sfc_main
|
|
87
|
-
export {
|
|
94
|
+
var index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
95
|
+
export { index as default };
|
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.1.
|
|
2
|
+
* @nutui/nutui v3.1.12 Sat Nov 27 2021 11:30:43 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2021 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
6
|
import { computed, openBlock, createElementBlock, normalizeClass, renderSlot, toDisplayString, createCommentVNode, createElementVNode } from "vue";
|
|
7
7
|
import { c as createComponent } from "./component.js";
|
|
8
|
+
import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
|
|
8
9
|
const { componentName, create } = createComponent("cell-group");
|
|
9
|
-
|
|
10
|
+
const _sfc_main = create({
|
|
10
11
|
props: {
|
|
11
|
-
title: { type: String, default: "" }
|
|
12
|
+
title: { type: String, default: "" },
|
|
13
|
+
desc: { type: String, default: "" }
|
|
12
14
|
},
|
|
13
15
|
setup() {
|
|
14
16
|
const classes = computed(() => {
|
|
@@ -26,16 +28,21 @@ const _hoisted_1 = {
|
|
|
26
28
|
key: 1,
|
|
27
29
|
class: "nut-cell-group__title"
|
|
28
30
|
};
|
|
29
|
-
const _hoisted_2 = {
|
|
31
|
+
const _hoisted_2 = {
|
|
32
|
+
key: 3,
|
|
33
|
+
class: "nut-cell-group__desc"
|
|
34
|
+
};
|
|
35
|
+
const _hoisted_3 = { class: "nut-cell-group__warp" };
|
|
30
36
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
31
37
|
return openBlock(), createElementBlock("view", {
|
|
32
38
|
class: normalizeClass(_ctx.classes)
|
|
33
39
|
}, [
|
|
34
40
|
_ctx.$slots.title ? renderSlot(_ctx.$slots, "title", { key: 0 }) : _ctx.title ? (openBlock(), createElementBlock("view", _hoisted_1, toDisplayString(_ctx.title), 1)) : createCommentVNode("", true),
|
|
35
|
-
|
|
41
|
+
_ctx.$slots.desc ? renderSlot(_ctx.$slots, "desc", { key: 2 }) : _ctx.desc ? (openBlock(), createElementBlock("view", _hoisted_2, toDisplayString(_ctx.desc), 1)) : createCommentVNode("", true),
|
|
42
|
+
createElementVNode("view", _hoisted_3, [
|
|
36
43
|
renderSlot(_ctx.$slots, "default")
|
|
37
44
|
])
|
|
38
45
|
], 2);
|
|
39
46
|
}
|
|
40
|
-
_sfc_main
|
|
41
|
-
export {
|
|
47
|
+
var index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
48
|
+
export { index as default };
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.1.
|
|
2
|
+
* @nutui/nutui v3.1.12 Sat Nov 27 2021 11:30:43 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2021 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
6
|
import { inject, computed, onMounted, getCurrentInstance, h } from "vue";
|
|
7
7
|
import { c as createComponent } from "./component.js";
|
|
8
|
-
import
|
|
8
|
+
import _sfc_main$1 from "./Icon.js";
|
|
9
9
|
import "./pxCheck.js";
|
|
10
10
|
const { create, componentName } = createComponent("checkbox");
|
|
11
|
-
|
|
11
|
+
const _sfc_main = create({
|
|
12
12
|
components: {
|
|
13
13
|
nutIcon: _sfc_main$1
|
|
14
14
|
},
|
|
@@ -1,18 +1,13 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.1.
|
|
2
|
+
* @nutui/nutui v3.1.12 Sat Nov 27 2021 11:30:43 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2021 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
|
-
import {
|
|
6
|
+
import { reactive, provide, computed, watch, h } from "vue";
|
|
7
7
|
import { c as createComponent } from "./component.js";
|
|
8
|
-
|
|
9
|
-
const instance = getCurrentInstance();
|
|
10
|
-
if (instance) {
|
|
11
|
-
Object.assign(instance.proxy, apis);
|
|
12
|
-
}
|
|
13
|
-
}
|
|
8
|
+
import { u as useExpose } from "./index.js";
|
|
14
9
|
const { create, componentName } = createComponent("checkboxgroup");
|
|
15
|
-
|
|
10
|
+
const _sfc_main = create({
|
|
16
11
|
props: {
|
|
17
12
|
modelValue: {
|
|
18
13
|
type: Array,
|