@nutui/nutui 3.1.19-beta.2 → 3.1.19-beta.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/dist/nutui.es.js +1191 -1140
- package/dist/nutui.umd.js +1199 -1147
- package/dist/packages/_es/ActionSheet.js +1 -1
- package/dist/packages/_es/Address.js +1 -1
- package/dist/packages/_es/Audio.js +1 -1
- package/dist/packages/_es/AudioOperate.js +1 -1
- package/dist/packages/_es/Avatar.js +1 -1
- package/dist/packages/_es/BackTop.js +1 -1
- package/dist/packages/_es/Badge.js +1 -1
- package/dist/packages/_es/Barrage.js +1 -1
- package/dist/packages/_es/Button.js +1 -1
- package/dist/packages/_es/Calendar.js +5 -5
- package/dist/packages/_es/CalendarItem.js +1 -1
- package/dist/packages/_es/Card.js +1 -1
- package/dist/packages/_es/Cascader.js +1 -1
- package/dist/packages/_es/Cell.js +1 -1
- package/dist/packages/_es/CellGroup.js +1 -1
- package/dist/packages/_es/Checkbox.js +1 -1
- package/dist/packages/_es/CheckboxGroup.js +1 -1
- package/dist/packages/_es/CircleProgress.js +1 -1
- package/dist/packages/_es/Col.js +1 -1
- package/dist/packages/_es/Collapse.js +1 -1
- package/dist/packages/_es/CollapseItem.js +1 -1
- package/dist/packages/_es/CountDown.js +1 -1
- package/dist/packages/_es/CountUp.js +1 -1
- package/dist/packages/_es/DatePicker.js +1 -1
- package/dist/packages/_es/Dialog.js +9 -10
- package/dist/packages/_es/Divider.js +1 -1
- package/dist/packages/_es/Drag.js +1 -1
- package/dist/packages/_es/Ecard.js +153 -0
- package/dist/packages/_es/Elevator.js +1 -1
- package/dist/packages/_es/Empty.js +1 -1
- package/dist/packages/_es/FixedNav.js +7 -6
- package/dist/packages/_es/Form.js +6 -2
- package/dist/packages/_es/FormItem.js +1 -1
- package/dist/packages/_es/Grid.js +1 -1
- package/dist/packages/_es/GridItem.js +1 -1
- package/dist/packages/_es/Icon.js +1 -1
- package/dist/packages/_es/ImagePreview.js +1 -1
- package/dist/packages/_es/Indicator.js +1 -1
- package/dist/packages/_es/InfiniteLoading.js +1 -1
- package/dist/packages/_es/Input.js +1 -1
- package/dist/packages/_es/InputNumber.js +1 -1
- package/dist/packages/_es/Layout.js +1 -1
- package/dist/packages/_es/List.js +1 -1
- package/dist/packages/_es/Menu.js +1 -1
- package/dist/packages/_es/MenuItem.js +1 -1
- package/dist/packages/_es/Navbar.js +1 -1
- package/dist/packages/_es/NoticeBar.js +1 -1
- package/dist/packages/_es/Notify.js +1 -1
- package/dist/packages/_es/NumberKeyboard.js +1 -1
- package/dist/packages/_es/OldPicker.js +1 -1
- package/dist/packages/_es/OverLay.js +1 -1
- package/dist/packages/_es/Pagination.js +7 -8
- package/dist/packages/_es/Picker.js +1 -1
- package/dist/packages/_es/Popover.js +1 -1
- package/dist/packages/_es/Popup.js +1 -1
- package/dist/packages/_es/Price.js +1 -1
- package/dist/packages/_es/Progress.js +1 -1
- package/dist/packages/_es/PullRefresh.js +1 -1
- package/dist/packages/_es/Radio.js +1 -1
- package/dist/packages/_es/RadioGroup.js +1 -1
- package/dist/packages/_es/Range.js +1 -1
- package/dist/packages/_es/Rate.js +1 -1
- package/dist/packages/_es/Row.js +1 -1
- package/dist/packages/_es/SearchBar.js +5 -6
- package/dist/packages/_es/ShortPassword.js +1 -1
- package/dist/packages/_es/SideNavBar.js +1 -1
- package/dist/packages/_es/SideNavBarItem.js +1 -1
- package/dist/packages/_es/Signature.js +1 -1
- package/dist/packages/_es/Skeleton.js +1 -1
- package/dist/packages/_es/Sku.js +3 -2
- package/dist/packages/_es/Step.js +1 -1
- package/dist/packages/_es/Steps.js +1 -1
- package/dist/packages/_es/Sticky.js +1 -1
- package/dist/packages/_es/SubSideNavBar.js +1 -1
- package/dist/packages/_es/Swipe.js +1 -1
- package/dist/packages/_es/Swiper.js +1 -1
- package/dist/packages/_es/SwiperItem.js +1 -1
- package/dist/packages/_es/Switch.js +1 -1
- package/dist/packages/_es/TabPane.js +1 -1
- package/dist/packages/_es/Tabbar.js +1 -1
- package/dist/packages/_es/TabbarItem.js +1 -1
- package/dist/packages/_es/Table.js +1 -1
- package/dist/packages/_es/Tabs.js +1 -1
- package/dist/packages/_es/Tag.js +1 -1
- package/dist/packages/_es/TextArea.js +1 -1
- package/dist/packages/_es/TimeDetail.js +1 -1
- package/dist/packages/_es/TimePannel.js +1 -1
- package/dist/packages/_es/TimeSelect.js +1 -1
- package/dist/packages/_es/Toast.js +1 -1
- package/dist/packages/_es/Uploader.js +1 -1
- package/dist/packages/_es/Video.js +6 -7
- package/dist/packages/_es/common.js +1 -1
- package/dist/packages/_es/component.js +3 -135
- package/dist/packages/_es/index.js +1 -1
- package/dist/packages/_es/index2.js +1 -1
- package/dist/packages/_es/index3.js +1 -1
- package/dist/packages/_es/index4.js +1 -1
- package/dist/packages/_es/index5.js +17 -22
- package/dist/packages/_es/plugin-vue_export-helper.js +1 -1
- package/dist/packages/_es/pxCheck.js +1 -1
- package/dist/packages/_es/raf.js +1 -1
- package/dist/packages/_es/util.js +47 -0
- package/dist/packages/ecard/index.scss +83 -0
- package/dist/style.css +1 -1
- package/dist/styles/themes/default.scss +47 -46
- package/dist/styles/themes/jdt.scss +47 -46
- package/dist/styles/variables-jdt.scss +3 -0
- package/dist/styles/variables.scss +3 -0
- package/dist/types/__VUE/actionsheet/index.d.ts +3 -3
- package/dist/types/__VUE/address/index.d.ts +2 -2
- package/dist/types/__VUE/avatar/index.d.ts +1 -1
- package/dist/types/__VUE/backtop/index.d.ts +1 -1
- package/dist/types/__VUE/badge/index.d.ts +1 -1
- package/dist/types/__VUE/button/index.d.ts +1 -1
- package/dist/types/__VUE/calendar/index.d.ts +1 -1
- package/dist/types/__VUE/calendaritem/index.d.ts +1 -2
- package/dist/types/__VUE/cell/index.d.ts +1 -1
- package/dist/types/__VUE/collapseitem/index.d.ts +1 -1
- package/dist/types/__VUE/datepicker/index.d.ts +2 -2
- package/dist/types/__VUE/dialog/index.d.ts +4 -5
- package/dist/types/__VUE/ecard/index.d.ts +123 -0
- package/dist/types/__VUE/fixednav/index.d.ts +1 -2
- package/dist/types/__VUE/grid/index.d.ts +1 -1
- package/dist/types/__VUE/infiniteloading/index.d.ts +4 -4
- package/dist/types/__VUE/menu/index.d.ts +1 -1
- package/dist/types/__VUE/noticebar/index.d.ts +2 -2
- package/dist/types/__VUE/numberkeyboard/index.d.ts +1 -1
- package/dist/types/__VUE/oldpicker/index.d.ts +3 -3
- package/dist/types/__VUE/pagination/index.d.ts +0 -1
- package/dist/types/__VUE/picker/index.d.ts +3 -3
- package/dist/types/__VUE/popover/index.d.ts +2 -2
- package/dist/types/__VUE/popup/index.d.ts +3 -3
- package/dist/types/__VUE/searchbar/index.d.ts +0 -1
- package/dist/types/__VUE/shortpassword/index.d.ts +1 -1
- package/dist/types/__VUE/skeleton/index.d.ts +1 -1
- package/dist/types/__VUE/sku/index.d.ts +2 -2
- package/dist/types/__VUE/step/index.d.ts +1 -1
- package/dist/types/__VUE/swipe/index.d.ts +2 -2
- package/dist/types/__VUE/swiper/index.d.ts +1 -1
- package/dist/types/__VUE/switch/index.d.ts +1 -1
- package/dist/types/__VUE/tabbaritem/index.d.ts +1 -1
- package/dist/types/__VUE/uploader/index.d.ts +1 -1
- package/dist/types/__VUE/video/index.d.ts +1 -2
- package/dist/types/nutui.d.ts +2 -1
- package/package.json +1 -1
|
@@ -1,145 +1,13 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.1.19-beta.
|
|
2
|
+
* @nutui/nutui v3.1.19-beta.3 Fri Apr 08 2022 09:46:28 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
|
-
import {
|
|
7
|
-
const lang$1 = {
|
|
8
|
-
name: "\u59D3\u540D",
|
|
9
|
-
tel: "\u7535\u8BDD",
|
|
10
|
-
save: "\u4FDD\u5B58",
|
|
11
|
-
confirm: "\u786E\u5B9A",
|
|
12
|
-
cancel: "\u53D6\u6D88",
|
|
13
|
-
delete: "\u5220\u9664",
|
|
14
|
-
loading: "\u52A0\u8F7D\u4E2D...",
|
|
15
|
-
video: {
|
|
16
|
-
errorTip: "\u89C6\u9891\u52A0\u8F7D\u5931\u8D25",
|
|
17
|
-
clickRetry: "\u70B9\u51FB\u91CD\u8BD5"
|
|
18
|
-
},
|
|
19
|
-
searchbar: {
|
|
20
|
-
placeholder: "\u8BF7\u8F93\u5165"
|
|
21
|
-
},
|
|
22
|
-
fixednav: {
|
|
23
|
-
activeText: "\u6536\u8D77\u5BFC\u822A",
|
|
24
|
-
unActiveText: "\u5FEB\u901F\u5BFC\u822A"
|
|
25
|
-
},
|
|
26
|
-
pagination: {
|
|
27
|
-
prev: "\u4E0A\u4E00\u9875",
|
|
28
|
-
next: "\u4E0B\u4E00\u9875"
|
|
29
|
-
},
|
|
30
|
-
calendaritem: {
|
|
31
|
-
weekdays: ["\u65E5", "\u4E00", "\u4E8C", "\u4E09", "\u56DB", "\u4E94", "\u516D"],
|
|
32
|
-
confirm: "\u786E\u8BA4",
|
|
33
|
-
end: "\u7ED3\u675F",
|
|
34
|
-
start: "\u5F00\u59CB",
|
|
35
|
-
title: "\u65E5\u5386\u9009\u62E9",
|
|
36
|
-
monthTitle: (year, month) => `${year}\u5E74${month}\u6708`,
|
|
37
|
-
today: "\u4ECA\u5929"
|
|
38
|
-
}
|
|
39
|
-
};
|
|
40
|
-
const lang = {
|
|
41
|
-
name: "Name",
|
|
42
|
-
tel: "Phone",
|
|
43
|
-
save: "Save",
|
|
44
|
-
confirm: "Confirm",
|
|
45
|
-
cancel: "Cancel",
|
|
46
|
-
delete: "Delete",
|
|
47
|
-
loading: "Loading...",
|
|
48
|
-
video: {
|
|
49
|
-
errorTip: "Error Tip",
|
|
50
|
-
clickRetry: "Click Retry"
|
|
51
|
-
},
|
|
52
|
-
searchbar: {
|
|
53
|
-
placeholder: "Placeholder"
|
|
54
|
-
},
|
|
55
|
-
fixednav: {
|
|
56
|
-
activeText: "Close Nav",
|
|
57
|
-
unActiveText: "Open Nav"
|
|
58
|
-
},
|
|
59
|
-
pagination: {
|
|
60
|
-
prev: "Previous",
|
|
61
|
-
next: "Next"
|
|
62
|
-
},
|
|
63
|
-
calendaritem: {
|
|
64
|
-
weekdays: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
|
|
65
|
-
confirm: "Confirm",
|
|
66
|
-
end: "End",
|
|
67
|
-
start: "Start",
|
|
68
|
-
title: "Calendar",
|
|
69
|
-
monthTitle: (year, month) => `${year}/${month}`,
|
|
70
|
-
today: "Today"
|
|
71
|
-
}
|
|
72
|
-
};
|
|
73
|
-
const currentLang = ref("en-US");
|
|
74
|
-
const langs = reactive({
|
|
75
|
-
"zh-CN": lang$1,
|
|
76
|
-
"en-US": lang
|
|
77
|
-
});
|
|
78
|
-
class Locale {
|
|
79
|
-
static languages() {
|
|
80
|
-
return langs[currentLang.value];
|
|
81
|
-
}
|
|
82
|
-
static use(lang2) {
|
|
83
|
-
currentLang.value = lang2;
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
const TypeOfFun = (value) => {
|
|
87
|
-
if (value === null) {
|
|
88
|
-
return "null";
|
|
89
|
-
}
|
|
90
|
-
const type = typeof value;
|
|
91
|
-
if (type === "undefined" || type === "string") {
|
|
92
|
-
return type;
|
|
93
|
-
}
|
|
94
|
-
const typeString = toString.call(value);
|
|
95
|
-
switch (typeString) {
|
|
96
|
-
case "[object Array]":
|
|
97
|
-
return "array";
|
|
98
|
-
case "[object Date]":
|
|
99
|
-
return "date";
|
|
100
|
-
case "[object Boolean]":
|
|
101
|
-
return "boolean";
|
|
102
|
-
case "[object Number]":
|
|
103
|
-
return "number";
|
|
104
|
-
case "[object Function]":
|
|
105
|
-
return "function";
|
|
106
|
-
case "[object RegExp]":
|
|
107
|
-
return "regexp";
|
|
108
|
-
case "[object Object]":
|
|
109
|
-
if (value.nodeType !== void 0) {
|
|
110
|
-
if (value.nodeType == 3) {
|
|
111
|
-
return /\S/.test(value.nodeValue) ? "textnode" : "whitespace";
|
|
112
|
-
} else {
|
|
113
|
-
return "element";
|
|
114
|
-
}
|
|
115
|
-
} else {
|
|
116
|
-
return "object";
|
|
117
|
-
}
|
|
118
|
-
default:
|
|
119
|
-
return "unknow";
|
|
120
|
-
}
|
|
121
|
-
};
|
|
122
|
-
const isFunction = (val) => typeof val === "function";
|
|
123
|
-
const isObject = (val) => val !== null && typeof val === "object";
|
|
124
|
-
const isPromise = (val) => {
|
|
125
|
-
return isObject(val) && isFunction(val.then) && isFunction(val.catch);
|
|
126
|
-
};
|
|
127
|
-
const getPropByPath = (obj, keyPath) => {
|
|
128
|
-
try {
|
|
129
|
-
return keyPath.split(".").reduce((prev, curr) => prev[curr], obj);
|
|
130
|
-
} catch (error) {
|
|
131
|
-
return "";
|
|
132
|
-
}
|
|
133
|
-
};
|
|
6
|
+
import { defineComponent } from "vue";
|
|
134
7
|
function createComponent(name) {
|
|
135
|
-
const languages = Locale.languages();
|
|
136
8
|
const componentName = "nut-" + name;
|
|
137
9
|
return {
|
|
138
10
|
componentName,
|
|
139
|
-
translate(keyPath, ...args) {
|
|
140
|
-
const text = getPropByPath(languages, `${name.replace("-", "")}.${keyPath}`) || getPropByPath(languages, keyPath);
|
|
141
|
-
return isFunction(text) ? text(...args) : text;
|
|
142
|
-
},
|
|
143
11
|
create: function(_component) {
|
|
144
12
|
_component.baseName = name;
|
|
145
13
|
_component.name = componentName;
|
|
@@ -155,4 +23,4 @@ function createComponent(name) {
|
|
|
155
23
|
}
|
|
156
24
|
};
|
|
157
25
|
}
|
|
158
|
-
export {
|
|
26
|
+
export { createComponent as c };
|
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
var __defProp = Object.defineProperty;
|
|
2
|
-
var __defProps = Object.defineProperties;
|
|
3
|
-
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
4
2
|
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
5
3
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
4
|
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
@@ -16,9 +14,8 @@ var __spreadValues = (a, b) => {
|
|
|
16
14
|
}
|
|
17
15
|
return a;
|
|
18
16
|
};
|
|
19
|
-
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
17
|
/*!
|
|
21
|
-
* @nutui/nutui v3.1.19-beta.
|
|
18
|
+
* @nutui/nutui v3.1.19-beta.3 Fri Apr 08 2022 09:46:28 GMT+0800 (中国标准时间)
|
|
22
19
|
* (c) 2022 @jdf2e.
|
|
23
20
|
* Released under the MIT License.
|
|
24
21
|
*/
|
|
@@ -107,7 +104,7 @@ const Utils = {
|
|
|
107
104
|
return false;
|
|
108
105
|
}
|
|
109
106
|
};
|
|
110
|
-
const { create
|
|
107
|
+
const { create } = createComponent("calendar-item");
|
|
111
108
|
const _sfc_main = create({
|
|
112
109
|
props: {
|
|
113
110
|
type: {
|
|
@@ -136,19 +133,19 @@ const _sfc_main = create({
|
|
|
136
133
|
},
|
|
137
134
|
title: {
|
|
138
135
|
type: String,
|
|
139
|
-
default: ""
|
|
136
|
+
default: "\u65E5\u5386\u9009\u62E9"
|
|
140
137
|
},
|
|
141
138
|
confirmText: {
|
|
142
139
|
type: String,
|
|
143
|
-
default: ""
|
|
140
|
+
default: "\u786E\u8BA4"
|
|
144
141
|
},
|
|
145
142
|
startText: {
|
|
146
143
|
type: String,
|
|
147
|
-
default: ""
|
|
144
|
+
default: "\u5F00\u59CB"
|
|
148
145
|
},
|
|
149
146
|
endText: {
|
|
150
147
|
type: String,
|
|
151
|
-
default: ""
|
|
148
|
+
default: "\u7ED3\u675F"
|
|
152
149
|
},
|
|
153
150
|
defaultValue: {
|
|
154
151
|
type: [String, Array],
|
|
@@ -165,7 +162,7 @@ const _sfc_main = create({
|
|
|
165
162
|
},
|
|
166
163
|
emits: ["choose", "update", "close", "select"],
|
|
167
164
|
setup(props, { emit, slots }) {
|
|
168
|
-
const weeks = ref(
|
|
165
|
+
const weeks = ref(["\u65E5", "\u4E00", "\u4E8C", "\u4E09", "\u56DB", "\u4E94", "\u516D"]);
|
|
169
166
|
const months = ref(null);
|
|
170
167
|
const monthsPanel = ref(null);
|
|
171
168
|
const weeksPanel = ref(null);
|
|
@@ -347,7 +344,7 @@ const _sfc_main = create({
|
|
|
347
344
|
};
|
|
348
345
|
const monthInfo = {
|
|
349
346
|
curData,
|
|
350
|
-
title:
|
|
347
|
+
title: `${title.year}\u5E74${title.month}\u6708`,
|
|
351
348
|
monthData: [
|
|
352
349
|
...getPreDaysStatus(preMonthDays, "prev", { month: preMonth, year: preYear }, preCurrMonthDays),
|
|
353
350
|
...getDaysStatus(currMonthDays, "curr", title)
|
|
@@ -420,11 +417,11 @@ const _sfc_main = create({
|
|
|
420
417
|
let current = 0;
|
|
421
418
|
let lastCurrent = 0;
|
|
422
419
|
state.monthsData.forEach((item, index) => {
|
|
423
|
-
if (item.title ==
|
|
420
|
+
if (item.title == `${state.defaultData[0]}\u5E74${state.defaultData[1]}\u6708`) {
|
|
424
421
|
current = index;
|
|
425
422
|
}
|
|
426
423
|
if (state.isRange) {
|
|
427
|
-
if (item.title ==
|
|
424
|
+
if (item.title == `${state.defaultData[3]}\u5E74${state.defaultData[4]}\u6708`) {
|
|
428
425
|
lastCurrent = index;
|
|
429
426
|
}
|
|
430
427
|
}
|
|
@@ -530,7 +527,7 @@ const _sfc_main = create({
|
|
|
530
527
|
}
|
|
531
528
|
}
|
|
532
529
|
});
|
|
533
|
-
return
|
|
530
|
+
return __spreadValues(__spreadValues({
|
|
534
531
|
weeks,
|
|
535
532
|
compConthsData,
|
|
536
533
|
showTopBtn,
|
|
@@ -548,9 +545,7 @@ const _sfc_main = create({
|
|
|
548
545
|
months,
|
|
549
546
|
weeksPanel,
|
|
550
547
|
viewArea
|
|
551
|
-
}, toRefs(state)), toRefs(props))
|
|
552
|
-
translate
|
|
553
|
-
});
|
|
548
|
+
}, toRefs(state)), toRefs(props));
|
|
554
549
|
}
|
|
555
550
|
});
|
|
556
551
|
const _hoisted_1 = {
|
|
@@ -607,7 +602,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
607
602
|
createElementVNode("view", {
|
|
608
603
|
class: normalizeClass(["nut-calendar-header", { "nut-calendar-header-tile": !_ctx.poppable }])
|
|
609
604
|
}, [
|
|
610
|
-
_ctx.showTitle ? (openBlock(), createElementBlock("view", _hoisted_1, toDisplayString(_ctx.title
|
|
605
|
+
_ctx.showTitle ? (openBlock(), createElementBlock("view", _hoisted_1, toDisplayString(_ctx.title), 1)) : createCommentVNode("", true),
|
|
611
606
|
_ctx.showTopBtn ? (openBlock(), createElementBlock("view", _hoisted_2, [
|
|
612
607
|
renderSlot(_ctx.$slots, "btn")
|
|
613
608
|
])) : createCommentVNode("", true),
|
|
@@ -665,12 +660,12 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
665
660
|
date: day.type == "curr" ? day : ""
|
|
666
661
|
})
|
|
667
662
|
])) : createCommentVNode("", true),
|
|
668
|
-
!_ctx.bottomInfo && _ctx.showToday && _ctx.isCurrDay(day) ? (openBlock(), createElementBlock("view", _hoisted_12,
|
|
663
|
+
!_ctx.bottomInfo && _ctx.showToday && _ctx.isCurrDay(day) ? (openBlock(), createElementBlock("view", _hoisted_12, " \u4ECA\u5929 ")) : createCommentVNode("", true),
|
|
669
664
|
_ctx.isStartTip(day, month) ? (openBlock(), createElementBlock("view", {
|
|
670
665
|
key: 3,
|
|
671
666
|
class: normalizeClass(["calendar-day-tip", { "calendar-curr-tips-top": _ctx.rangeTip(day, month) }])
|
|
672
|
-
}, toDisplayString(_ctx.startText
|
|
673
|
-
_ctx.isEndTip(day, month) ? (openBlock(), createElementBlock("view", _hoisted_13, toDisplayString(_ctx.endText
|
|
667
|
+
}, toDisplayString(_ctx.startText), 3)) : createCommentVNode("", true),
|
|
668
|
+
_ctx.isEndTip(day, month) ? (openBlock(), createElementBlock("view", _hoisted_13, toDisplayString(_ctx.endText), 1)) : createCommentVNode("", true)
|
|
674
669
|
], 10, _hoisted_8);
|
|
675
670
|
}), 128))
|
|
676
671
|
], 2)
|
|
@@ -684,7 +679,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
684
679
|
createElementVNode("view", {
|
|
685
680
|
class: "calendar-confirm-btn",
|
|
686
681
|
onClick: _cache[1] || (_cache[1] = (...args) => _ctx.confirm && _ctx.confirm(...args))
|
|
687
|
-
}, toDisplayString(_ctx.confirmText
|
|
682
|
+
}, toDisplayString(_ctx.confirmText), 1)
|
|
688
683
|
])) : createCommentVNode("", true)
|
|
689
684
|
], 2);
|
|
690
685
|
}
|
package/dist/packages/_es/raf.js
CHANGED
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* @nutui/nutui v3.1.19-beta.3 Fri Apr 08 2022 09:46:28 GMT+0800 (中国标准时间)
|
|
3
|
+
* (c) 2022 @jdf2e.
|
|
4
|
+
* Released under the MIT License.
|
|
5
|
+
*/
|
|
6
|
+
const TypeOfFun = (value) => {
|
|
7
|
+
if (value === null) {
|
|
8
|
+
return "null";
|
|
9
|
+
}
|
|
10
|
+
const type = typeof value;
|
|
11
|
+
if (type === "undefined" || type === "string") {
|
|
12
|
+
return type;
|
|
13
|
+
}
|
|
14
|
+
const typeString = toString.call(value);
|
|
15
|
+
switch (typeString) {
|
|
16
|
+
case "[object Array]":
|
|
17
|
+
return "array";
|
|
18
|
+
case "[object Date]":
|
|
19
|
+
return "date";
|
|
20
|
+
case "[object Boolean]":
|
|
21
|
+
return "boolean";
|
|
22
|
+
case "[object Number]":
|
|
23
|
+
return "number";
|
|
24
|
+
case "[object Function]":
|
|
25
|
+
return "function";
|
|
26
|
+
case "[object RegExp]":
|
|
27
|
+
return "regexp";
|
|
28
|
+
case "[object Object]":
|
|
29
|
+
if (value.nodeType !== void 0) {
|
|
30
|
+
if (value.nodeType == 3) {
|
|
31
|
+
return /\S/.test(value.nodeValue) ? "textnode" : "whitespace";
|
|
32
|
+
} else {
|
|
33
|
+
return "element";
|
|
34
|
+
}
|
|
35
|
+
} else {
|
|
36
|
+
return "object";
|
|
37
|
+
}
|
|
38
|
+
default:
|
|
39
|
+
return "unknow";
|
|
40
|
+
}
|
|
41
|
+
};
|
|
42
|
+
const isFunction = (val) => typeof val === "function";
|
|
43
|
+
const isObject = (val) => val !== null && typeof val === "object";
|
|
44
|
+
const isPromise = (val) => {
|
|
45
|
+
return isObject(val) && isFunction(val.then) && isFunction(val.catch);
|
|
46
|
+
};
|
|
47
|
+
export { TypeOfFun as T, isPromise as i };
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
.nut-ecard {
|
|
2
|
+
width: 100%;
|
|
3
|
+
|
|
4
|
+
&__title {
|
|
5
|
+
line-height: 1;
|
|
6
|
+
font-size: 15px;
|
|
7
|
+
font-family: PingFangSC;
|
|
8
|
+
font-weight: normal;
|
|
9
|
+
color: rgba(0, 0, 0, 0.6);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
&__list {
|
|
13
|
+
display: flex;
|
|
14
|
+
justify-content: space-between;
|
|
15
|
+
flex-wrap: wrap;
|
|
16
|
+
margin-top: 15px;
|
|
17
|
+
|
|
18
|
+
&__item {
|
|
19
|
+
width: 48%;
|
|
20
|
+
height: 46px;
|
|
21
|
+
background: $ecard-bg-color;
|
|
22
|
+
border-radius: 4px;
|
|
23
|
+
margin-bottom: 12px;
|
|
24
|
+
display: flex;
|
|
25
|
+
justify-content: center;
|
|
26
|
+
align-items: center;
|
|
27
|
+
|
|
28
|
+
&.active {
|
|
29
|
+
background: $white;
|
|
30
|
+
border: 1px solid $primary-color;
|
|
31
|
+
border-radius: 4px;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
&__input {
|
|
36
|
+
width: 100%;
|
|
37
|
+
height: 46px;
|
|
38
|
+
background: $ecard-bg-color;
|
|
39
|
+
color: rgba(0, 0, 0, 0.8);
|
|
40
|
+
border-radius: 4px;
|
|
41
|
+
display: flex;
|
|
42
|
+
padding: 0 15px 0 20px;
|
|
43
|
+
font-size: 14px;
|
|
44
|
+
justify-content: space-between;
|
|
45
|
+
align-items: center;
|
|
46
|
+
|
|
47
|
+
&--con {
|
|
48
|
+
flex: 1;
|
|
49
|
+
display: flex;
|
|
50
|
+
justify-content: flex-end;
|
|
51
|
+
> input {
|
|
52
|
+
caret-color: $primary-color; //光标颜色
|
|
53
|
+
text-align: right;
|
|
54
|
+
background: $ecard-bg-color;
|
|
55
|
+
margin-right: 10px;
|
|
56
|
+
outline: 0 none;
|
|
57
|
+
border: 0;
|
|
58
|
+
text-decoration: none;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
&.active {
|
|
63
|
+
background: $white;
|
|
64
|
+
border: 1px solid $primary-color;
|
|
65
|
+
|
|
66
|
+
> view > input {
|
|
67
|
+
background: $white;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
&__step {
|
|
73
|
+
width: 100%;
|
|
74
|
+
margin-top: 17px;
|
|
75
|
+
display: flex;
|
|
76
|
+
justify-content: space-between;
|
|
77
|
+
font-size: 20px;
|
|
78
|
+
font-family: PingFangSC;
|
|
79
|
+
font-weight: normal;
|
|
80
|
+
color: $primary-color;
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
}
|