@nutui/nutui 4.2.8 → 4.3.0-beta.2
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 +4 -2
- package/dist/nutui.js +6306 -5969
- package/dist/nutui.umd.js +1 -1
- package/dist/packages/addresslist/AddressList.js +4 -3
- package/dist/packages/audiooperate/AudioOperate.js +3 -2
- package/dist/packages/avatarcropper/AvatarCropper.js +3 -2
- package/dist/packages/button/Button.js +58 -39
- package/dist/packages/calendar/Calendar.js +2 -1
- package/dist/packages/calendarcard/CalendarCard.js +529 -0
- package/dist/packages/calendarcard/index.css +1 -0
- package/dist/packages/calendarcard/index.mjs +2 -0
- package/dist/packages/calendarcard/index.scss +92 -0
- package/dist/packages/calendarcard/style/css.mjs +2 -0
- package/dist/packages/calendarcard/style/index.mjs +2 -0
- package/dist/packages/calendaritem/CalendarItem.js +817 -7
- package/dist/packages/date-djiVNSnJ.js +145 -0
- package/dist/packages/dialog/Dialog.js +4 -3
- package/dist/packages/divider/Divider.js +40 -18
- package/dist/packages/invoice/Invoice.js +3 -2
- package/dist/packages/locale/lang/baseLang.d.ts +8 -0
- package/dist/packages/locale/lang/en-US.d.ts +8 -0
- package/dist/packages/locale/lang/en-US.js +8 -0
- package/dist/packages/locale/lang/id-ID.d.ts +8 -0
- package/dist/packages/locale/lang/id-ID.js +8 -0
- package/dist/packages/locale/lang/zh-CN.d.ts +8 -0
- package/dist/packages/locale/lang/zh-CN.js +8 -0
- package/dist/packages/locale/lang/zh-TW.d.ts +8 -0
- package/dist/packages/locale/lang/zh-TW.js +8 -0
- package/dist/packages/signature/Signature.js +3 -2
- package/dist/packages/with-install-p59gYYU_.js +12 -0
- package/dist/smartips/web-types.json +62 -1
- package/dist/style.css +1 -1
- package/dist/styles/base-jdb.css +1 -1
- package/dist/styles/base-jddkh.css +1 -1
- package/dist/styles/base-jdt.css +1 -1
- package/dist/styles/themes/default.scss +1 -0
- package/dist/styles/themes/jdb.scss +1 -0
- package/dist/styles/themes/jddkh.scss +1 -0
- package/dist/styles/themes/jdt.scss +1 -0
- package/dist/styles/variables-jdb.scss +1 -0
- package/dist/styles/variables-jddkh.scss +1 -0
- package/dist/styles/variables-jdt.scss +1 -0
- package/dist/styles/variables.scss +1 -0
- package/dist/types/__VUE/actionsheet/index.vue.d.ts +7 -7
- package/dist/types/__VUE/address/index.vue.d.ts +11 -11
- package/dist/types/__VUE/addresslist/index.vue.d.ts +5 -5
- package/dist/types/__VUE/animate/index.vue.d.ts +4 -4
- package/dist/types/__VUE/audio/index.vue.d.ts +6 -6
- package/dist/types/__VUE/audiooperate/index.vue.d.ts +4 -4
- package/dist/types/__VUE/avatar/index.vue.d.ts +5 -5
- package/dist/types/__VUE/avatarcropper/index.vue.d.ts +7 -7
- package/dist/types/__VUE/avatargroup/index.vue.d.ts +5 -5
- package/dist/types/__VUE/backtop/index.vue.d.ts +6 -6
- package/dist/types/__VUE/badge/index.vue.d.ts +6 -6
- package/dist/types/__VUE/barrage/index.vue.d.ts +5 -5
- package/dist/types/__VUE/button/{index.vue.d.ts → button.vue.d.ts} +36 -27
- package/dist/types/__VUE/button/index.d.ts +5 -0
- package/dist/types/__VUE/calendar/index.vue.d.ts +7 -7
- package/dist/types/__VUE/calendarcard/calendar-card.vue.d.ts +112 -0
- package/dist/types/__VUE/calendarcard/icon.d.ts +12 -0
- package/dist/types/__VUE/calendarcard/index.d.ts +5 -0
- package/dist/types/__VUE/calendarcard/types.d.ts +12 -0
- package/dist/types/__VUE/calendarcard/utils.d.ts +19 -0
- package/dist/types/__VUE/calendaritem/index.vue.d.ts +10 -10
- package/dist/types/__VUE/card/index.vue.d.ts +4 -4
- package/dist/types/__VUE/cascader/cascader-item.vue.d.ts +4 -4
- package/dist/types/__VUE/cascader/index.vue.d.ts +7 -7
- package/dist/types/__VUE/category/index.vue.d.ts +4 -4
- package/dist/types/__VUE/categorypane/index.vue.d.ts +4 -4
- package/dist/types/__VUE/cell/index.vue.d.ts +7 -7
- package/dist/types/__VUE/cellgroup/index.vue.d.ts +4 -4
- package/dist/types/__VUE/checkbox/index.vue.d.ts +6 -6
- package/dist/types/__VUE/checkboxgroup/index.vue.d.ts +4 -4
- package/dist/types/__VUE/circleprogress/index.vue.d.ts +5 -5
- package/dist/types/__VUE/col/index.vue.d.ts +4 -4
- package/dist/types/__VUE/collapse/index.vue.d.ts +4 -4
- package/dist/types/__VUE/collapseitem/index.vue.d.ts +7 -7
- package/dist/types/__VUE/comment/components/CmtBottom.vue.d.ts +1 -1
- package/dist/types/__VUE/comment/components/CmtHeader.vue.d.ts +1 -1
- package/dist/types/__VUE/comment/components/CmtImages.vue.d.ts +1 -1
- package/dist/types/__VUE/comment/index.vue.d.ts +9 -9
- package/dist/types/__VUE/configprovider/index.vue.d.ts +5 -5
- package/dist/types/__VUE/countdown/index.vue.d.ts +4 -4
- package/dist/types/__VUE/countup/index.vue.d.ts +8 -8
- package/dist/types/__VUE/datepicker/index.vue.d.ts +9 -9
- package/dist/types/__VUE/dialog/index.vue.d.ts +7 -7
- package/dist/types/__VUE/divider/divider.vue.d.ts +56 -0
- package/dist/types/__VUE/divider/index.d.ts +5 -0
- package/dist/types/__VUE/drag/index.vue.d.ts +4 -4
- package/dist/types/__VUE/ecard/index.vue.d.ts +7 -7
- package/dist/types/__VUE/elevator/index.vue.d.ts +4 -4
- package/dist/types/__VUE/ellipsis/index.vue.d.ts +7 -7
- package/dist/types/__VUE/empty/index.vue.d.ts +4 -4
- package/dist/types/__VUE/fixednav/index.vue.d.ts +6 -6
- package/dist/types/__VUE/form/index.vue.d.ts +4 -4
- package/dist/types/__VUE/formitem/index.vue.d.ts +4 -4
- package/dist/types/__VUE/grid/index.vue.d.ts +6 -6
- package/dist/types/__VUE/griditem/index.vue.d.ts +4 -4
- package/dist/types/__VUE/image/index.vue.d.ts +8 -8
- package/dist/types/__VUE/imagepreview/imagePreviewItem.vue.d.ts +5 -5
- package/dist/types/__VUE/imagepreview/index.vue.d.ts +9 -9
- package/dist/types/__VUE/indicator/index.vue.d.ts +4 -4
- package/dist/types/__VUE/infiniteloading/index.vue.d.ts +4 -4
- package/dist/types/__VUE/input/index.vue.d.ts +15 -15
- package/dist/types/__VUE/inputnumber/index.vue.d.ts +7 -7
- package/dist/types/__VUE/invoice/index.vue.d.ts +6 -6
- package/dist/types/__VUE/layout/index.vue.d.ts +4 -4
- package/dist/types/__VUE/list/index.vue.d.ts +6 -6
- package/dist/types/__VUE/menu/index.vue.d.ts +7 -7
- package/dist/types/__VUE/menuitem/index.vue.d.ts +4 -4
- package/dist/types/__VUE/navbar/index.vue.d.ts +6 -6
- package/dist/types/__VUE/noticebar/index.vue.d.ts +7 -7
- package/dist/types/__VUE/notify/index.vue.d.ts +7 -7
- package/dist/types/__VUE/numberkeyboard/index.vue.d.ts +8 -8
- package/dist/types/__VUE/overlay/index.vue.d.ts +4 -4
- package/dist/types/__VUE/pagination/index.vue.d.ts +5 -5
- package/dist/types/__VUE/picker/Column.vue.d.ts +7 -7
- package/dist/types/__VUE/picker/baseProps.d.ts +4 -4
- package/dist/types/__VUE/picker/index.vue.d.ts +6 -6
- package/dist/types/__VUE/popover/index.vue.d.ts +9 -9
- package/dist/types/__VUE/popup/index.vue.d.ts +6 -6
- package/dist/types/__VUE/price/index.vue.d.ts +4 -4
- package/dist/types/__VUE/progress/index.vue.d.ts +6 -6
- package/dist/types/__VUE/pullrefresh/index.vue.d.ts +4 -4
- package/dist/types/__VUE/radio/index.vue.d.ts +8 -8
- package/dist/types/__VUE/radiogroup/index.vue.d.ts +7 -7
- package/dist/types/__VUE/range/index.vue.d.ts +8 -8
- package/dist/types/__VUE/rate/index.vue.d.ts +9 -9
- package/dist/types/__VUE/row/index.vue.d.ts +5 -5
- package/dist/types/__VUE/searchbar/index.vue.d.ts +15 -15
- package/dist/types/__VUE/shortpassword/index.vue.d.ts +5 -5
- package/dist/types/__VUE/sidenavbar/index.vue.d.ts +4 -4
- package/dist/types/__VUE/sidenavbaritem/index.vue.d.ts +4 -4
- package/dist/types/__VUE/signature/index.vue.d.ts +6 -6
- package/dist/types/__VUE/skeleton/index.vue.d.ts +7 -7
- package/dist/types/__VUE/sku/components/SkuStepper.vue.d.ts +2 -2
- package/dist/types/__VUE/sku/index.vue.d.ts +6 -6
- package/dist/types/__VUE/space/index.vue.d.ts +4 -4
- package/dist/types/__VUE/step/index.vue.d.ts +4 -4
- package/dist/types/__VUE/steps/index.vue.d.ts +4 -4
- package/dist/types/__VUE/sticky/index.vue.d.ts +5 -5
- package/dist/types/__VUE/subsidenavbar/index.vue.d.ts +4 -4
- package/dist/types/__VUE/swipe/index.vue.d.ts +4 -4
- package/dist/types/__VUE/swipegroup/index.vue.d.ts +4 -4
- package/dist/types/__VUE/swiper/index.vue.d.ts +5 -5
- package/dist/types/__VUE/swiperitem/index.vue.d.ts +4 -4
- package/dist/types/__VUE/switch/index.vue.d.ts +13 -13
- package/dist/types/__VUE/tabbar/index.vue.d.ts +6 -6
- package/dist/types/__VUE/tabbaritem/index.vue.d.ts +6 -6
- package/dist/types/__VUE/table/index.vue.d.ts +4 -4
- package/dist/types/__VUE/table/renderColumn.d.ts +4 -4
- package/dist/types/__VUE/tabpane/index.vue.d.ts +5 -5
- package/dist/types/__VUE/tabs/index.vue.d.ts +10 -10
- package/dist/types/__VUE/tag/index.vue.d.ts +8 -8
- package/dist/types/__VUE/textarea/index.vue.d.ts +11 -11
- package/dist/types/__VUE/timedetail/index.vue.d.ts +4 -4
- package/dist/types/__VUE/timepannel/index.vue.d.ts +4 -4
- package/dist/types/__VUE/timeselect/index.vue.d.ts +5 -5
- package/dist/types/__VUE/toast/index.vue.d.ts +10 -10
- package/dist/types/__VUE/tour/index.vue.d.ts +9 -9
- package/dist/types/__VUE/trendarrow/index.vue.d.ts +5 -5
- package/dist/types/__VUE/uploader/index.vue.d.ts +10 -10
- package/dist/types/__VUE/video/index.vue.d.ts +5 -5
- package/dist/types/__VUE/watermark/index.vue.d.ts +7 -7
- package/dist/types/index.d.ts +8 -4
- package/dist/types/locale/lang/baseLang.d.ts +8 -0
- package/dist/types/locale/lang/en-US.d.ts +8 -0
- package/dist/types/locale/lang/id-ID.d.ts +8 -0
- package/dist/types/locale/lang/zh-CN.d.ts +8 -0
- package/dist/types/locale/lang/zh-TW.d.ts +8 -0
- package/dist/types/utils/canvas.d.ts +1 -1
- package/dist/types/utils/create/renderIcon.d.ts +2 -2
- package/dist/types/utils/index.d.ts +1 -0
- package/dist/types/utils/with-install.d.ts +5 -0
- package/package.json +1 -1
- package/dist/packages/index-kWulbKuH.js +0 -961
- package/dist/types/__VUE/address/address-list.d.ts +0 -30
- package/dist/types/__VUE/divider/index.vue.d.ts +0 -71
- package/dist/types/__VUE/icon/index.vue.d.ts +0 -13
- package/dist/types/__VUE/invoice/types.d.ts +0 -6
- package/dist/types/__VUE/picker/doc.en.d.ts +0 -90
- package/dist/types/__VUE/sku/data.d.ts +0 -22
- package/dist/types/__VUE/tour/type.d.ts +0 -2
- /package/dist/types/__VUE/button/{type.d.ts → types.d.ts} +0 -0
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
const Utils = {
|
|
2
|
+
/**
|
|
3
|
+
* 是否为闫年
|
|
4
|
+
* @return {Boolse} true|false
|
|
5
|
+
*/
|
|
6
|
+
isLeapYear: function(y) {
|
|
7
|
+
return y % 4 == 0 && y % 100 != 0 || y % 400 == 0;
|
|
8
|
+
},
|
|
9
|
+
/**
|
|
10
|
+
* 返回星期数
|
|
11
|
+
* @return {String}
|
|
12
|
+
*/
|
|
13
|
+
getWhatDay: function(year, month, day) {
|
|
14
|
+
const date = /* @__PURE__ */ new Date(year + "/" + month + "/" + day);
|
|
15
|
+
const index = date.getDay();
|
|
16
|
+
const dayNames = ["星期日", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六"];
|
|
17
|
+
return dayNames[index];
|
|
18
|
+
},
|
|
19
|
+
/**
|
|
20
|
+
* 返回星期数
|
|
21
|
+
* @return {Number}
|
|
22
|
+
*/
|
|
23
|
+
getMonthPreDay: function(year, month) {
|
|
24
|
+
const date = /* @__PURE__ */ new Date(year + "/" + month + "/01");
|
|
25
|
+
let day = date.getDay();
|
|
26
|
+
if (day == 0) {
|
|
27
|
+
day = 7;
|
|
28
|
+
}
|
|
29
|
+
return day;
|
|
30
|
+
},
|
|
31
|
+
/**
|
|
32
|
+
* 返回月份天数
|
|
33
|
+
* @return {Number}
|
|
34
|
+
*/
|
|
35
|
+
getMonthDays: function(year, month) {
|
|
36
|
+
if (/^0/.test(month)) {
|
|
37
|
+
month = month.split("")[1];
|
|
38
|
+
}
|
|
39
|
+
return [0, 31, this.isLeapYear(Number(year)) ? 29 : 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31][month];
|
|
40
|
+
},
|
|
41
|
+
/**
|
|
42
|
+
* 补齐数字位数
|
|
43
|
+
* @return {string}
|
|
44
|
+
*/
|
|
45
|
+
getNumTwoBit: function(n) {
|
|
46
|
+
n = Number(n);
|
|
47
|
+
return (n > 9 ? "" : "0") + n;
|
|
48
|
+
},
|
|
49
|
+
/**
|
|
50
|
+
* 日期对象转成字符串
|
|
51
|
+
* @return {string}
|
|
52
|
+
*/
|
|
53
|
+
date2Str: function(date, split) {
|
|
54
|
+
split = split || "-";
|
|
55
|
+
const y = date.getFullYear();
|
|
56
|
+
const m = this.getNumTwoBit(date.getMonth() + 1);
|
|
57
|
+
const d = this.getNumTwoBit(date.getDate());
|
|
58
|
+
return [y, m, d].join(split);
|
|
59
|
+
},
|
|
60
|
+
/**
|
|
61
|
+
* 返回日期格式字符串
|
|
62
|
+
* @param {Number} 0返回今天的日期、1返回明天的日期,2返回后天得日期,依次类推
|
|
63
|
+
* @return {string} '2014-12-31'
|
|
64
|
+
*/
|
|
65
|
+
getDay: function(i) {
|
|
66
|
+
i = i || 0;
|
|
67
|
+
let date = /* @__PURE__ */ new Date();
|
|
68
|
+
const diff = i * (1e3 * 60 * 60 * 24);
|
|
69
|
+
date = new Date(date.getTime() + diff);
|
|
70
|
+
return this.date2Str(date);
|
|
71
|
+
},
|
|
72
|
+
/**
|
|
73
|
+
* 时间比较
|
|
74
|
+
* @return {Boolean}
|
|
75
|
+
*/
|
|
76
|
+
compareDate: function(date1, date2) {
|
|
77
|
+
const startTime = new Date(date1.replace("-", "/").replace("-", "/"));
|
|
78
|
+
const endTime = new Date(date2.replace("-", "/").replace("-", "/"));
|
|
79
|
+
if (startTime >= endTime) {
|
|
80
|
+
return false;
|
|
81
|
+
}
|
|
82
|
+
return true;
|
|
83
|
+
},
|
|
84
|
+
/**
|
|
85
|
+
* 时间是否相等
|
|
86
|
+
* @return {Boolean}
|
|
87
|
+
*/
|
|
88
|
+
isEqual: function(date1, date2) {
|
|
89
|
+
const startTime = new Date(date1).getTime();
|
|
90
|
+
const endTime = new Date(date2).getTime();
|
|
91
|
+
if (startTime == endTime) {
|
|
92
|
+
return true;
|
|
93
|
+
}
|
|
94
|
+
return false;
|
|
95
|
+
},
|
|
96
|
+
getMonthWeek: function(year, month, date, firstDayOfWeek = 0) {
|
|
97
|
+
const dateNow = new Date(Number(year), parseInt(month) - 1, Number(date));
|
|
98
|
+
let w = dateNow.getDay();
|
|
99
|
+
let d = dateNow.getDate();
|
|
100
|
+
let remainder = 6 - w;
|
|
101
|
+
if (firstDayOfWeek !== 0) {
|
|
102
|
+
w = w == 0 ? 7 : w;
|
|
103
|
+
remainder = 7 - w;
|
|
104
|
+
}
|
|
105
|
+
return Math.ceil((d + remainder) / 7);
|
|
106
|
+
},
|
|
107
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
108
|
+
getYearWeek: function(year, month, date, firstDayOfWeek = 0) {
|
|
109
|
+
const dateNow = new Date(Number(year), parseInt(month) - 1, Number(date));
|
|
110
|
+
const dateFirst = new Date(Number(year), 0, 1);
|
|
111
|
+
const dataNumber = Math.round((dateNow.valueOf() - dateFirst.valueOf()) / 864e5);
|
|
112
|
+
return Math.ceil((dataNumber + (dateFirst.getDay() + 1 - 1)) / 7);
|
|
113
|
+
},
|
|
114
|
+
getWeekDate: function(year, month, date, firstDayOfWeek = 0) {
|
|
115
|
+
const dateNow = new Date(Number(year), parseInt(month) - 1, Number(date));
|
|
116
|
+
const nowTime = dateNow.getTime();
|
|
117
|
+
let day = dateNow.getDay();
|
|
118
|
+
if (firstDayOfWeek === 0) {
|
|
119
|
+
const oneDayTime = 24 * 60 * 60 * 1e3;
|
|
120
|
+
const SundayTime = nowTime - day * oneDayTime;
|
|
121
|
+
const SaturdayTime = nowTime + (6 - day) * oneDayTime;
|
|
122
|
+
const sunday = this.date2Str(new Date(SundayTime));
|
|
123
|
+
const saturday = this.date2Str(new Date(SaturdayTime));
|
|
124
|
+
return [sunday, saturday];
|
|
125
|
+
} else {
|
|
126
|
+
day = day == 0 ? 7 : day;
|
|
127
|
+
const oneDayTime = 24 * 60 * 60 * 1e3;
|
|
128
|
+
const MondayTime = nowTime - (day - 1) * oneDayTime;
|
|
129
|
+
const SundayTime = nowTime + (7 - day) * oneDayTime;
|
|
130
|
+
const monday = this.date2Str(new Date(MondayTime));
|
|
131
|
+
const sunday = this.date2Str(new Date(SundayTime));
|
|
132
|
+
return [monday, sunday];
|
|
133
|
+
}
|
|
134
|
+
},
|
|
135
|
+
formatResultDate: function(date) {
|
|
136
|
+
let days = [...date.split("-")];
|
|
137
|
+
days[2] = Utils.getNumTwoBit(Number(days[2]));
|
|
138
|
+
days[3] = `${days[0]}-${days[1]}-${days[2]}`;
|
|
139
|
+
days[4] = Utils.getWhatDay(+days[0], +days[1], +days[2]);
|
|
140
|
+
return days;
|
|
141
|
+
}
|
|
142
|
+
};
|
|
143
|
+
export {
|
|
144
|
+
Utils as U
|
|
145
|
+
};
|
|
@@ -25,13 +25,14 @@ import { ref, onMounted, watch, computed, resolveComponent, openBlock, createBlo
|
|
|
25
25
|
import { c as createComponent } from "../component-TCzwHGVq.js";
|
|
26
26
|
import { f as funInterceptor } from "../Interceptor-WYVtGbGC.js";
|
|
27
27
|
import { N as NutPopup, p as popupProps } from "../index-rbZsBckW.js";
|
|
28
|
-
import
|
|
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";
|
|
31
31
|
import NutOverlay from "../overlay/Overlay.js";
|
|
32
32
|
import { C as CreateComponent } from "../mountComponent-uInXoTMp.js";
|
|
33
33
|
import "../util-4Jkyw4BJ.js";
|
|
34
34
|
import "@nutui/icons-vue";
|
|
35
|
+
import "../with-install-p59gYYU_.js";
|
|
35
36
|
import "@nutui/nutui/dist/packages/locale/lang";
|
|
36
37
|
const { create } = createComponent("dialog");
|
|
37
38
|
const cN = "NutDialog";
|
|
@@ -39,7 +40,7 @@ const _sfc_main = create({
|
|
|
39
40
|
inheritAttrs: false,
|
|
40
41
|
components: {
|
|
41
42
|
NutPopup,
|
|
42
|
-
NutButton
|
|
43
|
+
NutButton: _sfc_main$1
|
|
43
44
|
},
|
|
44
45
|
props: __spreadProps(__spreadValues({}, popupProps), {
|
|
45
46
|
closeOnClickOverlay: {
|
|
@@ -293,7 +294,7 @@ class DialogFunction {
|
|
|
293
294
|
const options = Object.assign(this.options, _options);
|
|
294
295
|
const { unmount } = CreateComponent(options, {
|
|
295
296
|
name: "dialog",
|
|
296
|
-
components: [NutPopup,
|
|
297
|
+
components: [NutPopup, _sfc_main$1, NutOverlay],
|
|
297
298
|
wrapper: (elWrap, root) => {
|
|
298
299
|
return {
|
|
299
300
|
setup() {
|
|
@@ -1,8 +1,28 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __defProps = Object.defineProperties;
|
|
3
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
4
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
7
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
8
|
+
var __spreadValues = (a, b) => {
|
|
9
|
+
for (var prop in b || (b = {}))
|
|
10
|
+
if (__hasOwnProp.call(b, prop))
|
|
11
|
+
__defNormalProp(a, prop, b[prop]);
|
|
12
|
+
if (__getOwnPropSymbols)
|
|
13
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
14
|
+
if (__propIsEnum.call(b, prop))
|
|
15
|
+
__defNormalProp(a, prop, b[prop]);
|
|
16
|
+
}
|
|
17
|
+
return a;
|
|
18
|
+
};
|
|
19
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
|
+
import { defineComponent, useSlots, computed, openBlock, createElementBlock, normalizeClass, renderSlot, createCommentVNode } from "vue";
|
|
21
|
+
import { w as withInstall } from "../with-install-p59gYYU_.js";
|
|
22
|
+
const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({}, {
|
|
23
|
+
name: "NutDivider"
|
|
24
|
+
}), {
|
|
25
|
+
__name: "divider",
|
|
6
26
|
props: {
|
|
7
27
|
contentPosition: {
|
|
8
28
|
type: String,
|
|
@@ -21,13 +41,15 @@ const _sfc_main = create({
|
|
|
21
41
|
default: "horizontal"
|
|
22
42
|
}
|
|
23
43
|
},
|
|
24
|
-
setup(
|
|
44
|
+
setup(__props) {
|
|
45
|
+
const props = __props;
|
|
46
|
+
const slots = useSlots();
|
|
25
47
|
const classes = computed(() => {
|
|
26
48
|
const prefixCls = "nut-divider";
|
|
27
49
|
if (props.direction === "horizontal") {
|
|
28
50
|
return {
|
|
29
51
|
[prefixCls]: true,
|
|
30
|
-
[`${prefixCls}-center`]:
|
|
52
|
+
[`${prefixCls}-center`]: slots.default,
|
|
31
53
|
[`${prefixCls}-left`]: props.contentPosition === "left",
|
|
32
54
|
[`${prefixCls}-right`]: props.contentPosition === "right",
|
|
33
55
|
[`${prefixCls}-dashed`]: props.dashed,
|
|
@@ -40,17 +62,17 @@ const _sfc_main = create({
|
|
|
40
62
|
};
|
|
41
63
|
}
|
|
42
64
|
});
|
|
43
|
-
return
|
|
65
|
+
return (_ctx, _cache) => {
|
|
66
|
+
return openBlock(), createElementBlock("view", {
|
|
67
|
+
class: normalizeClass(classes.value)
|
|
68
|
+
}, [
|
|
69
|
+
__props.direction === "horizontal" ? renderSlot(_ctx.$slots, "default", { key: 0 }) : createCommentVNode("", true)
|
|
70
|
+
], 2);
|
|
71
|
+
};
|
|
44
72
|
}
|
|
45
|
-
});
|
|
46
|
-
|
|
47
|
-
return openBlock(), createElementBlock("view", {
|
|
48
|
-
class: normalizeClass(_ctx.classes)
|
|
49
|
-
}, [
|
|
50
|
-
_ctx.direction === "horizontal" ? renderSlot(_ctx.$slots, "default", { key: 0 }) : createCommentVNode("", true)
|
|
51
|
-
], 2);
|
|
52
|
-
}
|
|
53
|
-
const index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
73
|
+
}));
|
|
74
|
+
withInstall(_sfc_main);
|
|
54
75
|
export {
|
|
55
|
-
|
|
76
|
+
_sfc_main as Divider,
|
|
77
|
+
_sfc_main as default
|
|
56
78
|
};
|
|
@@ -23,7 +23,7 @@ import NutForm from "../form/Form.js";
|
|
|
23
23
|
import NutFormItem from "../formitem/FormItem.js";
|
|
24
24
|
import { _ as _sfc_main$1 } from "../index.vue_vue_type_script_lang-MJYVRFbp.js";
|
|
25
25
|
import { _ as _sfc_main$2 } from "../index.vue_vue_type_script_lang-54PRh3YM.js";
|
|
26
|
-
import
|
|
26
|
+
import { Button as _sfc_main$3 } from "../button/Button.js";
|
|
27
27
|
import { _ as _export_sfc } from "../_plugin-vue_export-helper-yVxbj29m.js";
|
|
28
28
|
import "../util-4Jkyw4BJ.js";
|
|
29
29
|
import "../types-Ynmct7na.js";
|
|
@@ -35,6 +35,7 @@ import "../index-Ii9XdkPy.js";
|
|
|
35
35
|
import "@nutui/icons-vue";
|
|
36
36
|
import "../useParent-KIxqkovs.js";
|
|
37
37
|
import "../types-odSRziQJ.js";
|
|
38
|
+
import "../with-install-p59gYYU_.js";
|
|
38
39
|
const { componentName, create } = createComponent("invoice");
|
|
39
40
|
const _sfc_main = create({
|
|
40
41
|
components: {
|
|
@@ -42,7 +43,7 @@ const _sfc_main = create({
|
|
|
42
43
|
NutFormItem,
|
|
43
44
|
NutRadio: _sfc_main$1,
|
|
44
45
|
NutRadioGroup: _sfc_main$2,
|
|
45
|
-
NutButton
|
|
46
|
+
NutButton: _sfc_main$3
|
|
46
47
|
},
|
|
47
48
|
props: {
|
|
48
49
|
data: {
|
|
@@ -26,6 +26,14 @@ export declare abstract class BaseLang {
|
|
|
26
26
|
monthTitle: Function;
|
|
27
27
|
today: string;
|
|
28
28
|
};
|
|
29
|
+
abstract calendarcard: {
|
|
30
|
+
weekdays: Array<string>;
|
|
31
|
+
end: string;
|
|
32
|
+
start: string;
|
|
33
|
+
title: string;
|
|
34
|
+
monthTitle: Function;
|
|
35
|
+
today: string;
|
|
36
|
+
};
|
|
29
37
|
abstract shortpassword: {
|
|
30
38
|
title: string;
|
|
31
39
|
desc: string;
|
|
@@ -27,6 +27,14 @@ declare class Lang extends BaseLang {
|
|
|
27
27
|
monthTitle: (year: number, month: number) => string;
|
|
28
28
|
today: string;
|
|
29
29
|
};
|
|
30
|
+
calendarcard: {
|
|
31
|
+
weekdays: string[];
|
|
32
|
+
end: string;
|
|
33
|
+
start: string;
|
|
34
|
+
title: string;
|
|
35
|
+
monthTitle: (year: number, month: number) => string;
|
|
36
|
+
today: string;
|
|
37
|
+
};
|
|
30
38
|
shortpassword: {
|
|
31
39
|
title: string;
|
|
32
40
|
desc: string;
|
|
@@ -35,6 +35,14 @@ class Lang extends BaseLang {
|
|
|
35
35
|
monthTitle: (year, month) => `${year}/${month}`,
|
|
36
36
|
today: "Today"
|
|
37
37
|
});
|
|
38
|
+
__publicField(this, "calendarcard", {
|
|
39
|
+
weekdays: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
|
|
40
|
+
end: "End",
|
|
41
|
+
start: "Start",
|
|
42
|
+
title: "Calendar",
|
|
43
|
+
monthTitle: (year, month) => `${year}/${month}`,
|
|
44
|
+
today: "Today"
|
|
45
|
+
});
|
|
38
46
|
__publicField(this, "shortpassword", {
|
|
39
47
|
title: "Please input a password",
|
|
40
48
|
desc: "Verify",
|
|
@@ -27,6 +27,14 @@ declare class Lang extends BaseLang {
|
|
|
27
27
|
monthTitle: (year: number, month: number) => string;
|
|
28
28
|
today: string;
|
|
29
29
|
};
|
|
30
|
+
calendarcard: {
|
|
31
|
+
weekdays: string[];
|
|
32
|
+
end: string;
|
|
33
|
+
start: string;
|
|
34
|
+
title: string;
|
|
35
|
+
monthTitle: (year: number, month: number) => string;
|
|
36
|
+
today: string;
|
|
37
|
+
};
|
|
30
38
|
shortpassword: {
|
|
31
39
|
title: string;
|
|
32
40
|
desc: string;
|
|
@@ -35,6 +35,14 @@ class Lang extends BaseLang {
|
|
|
35
35
|
monthTitle: (year, month) => `${year}/${month}`,
|
|
36
36
|
today: "Hari ini"
|
|
37
37
|
});
|
|
38
|
+
__publicField(this, "calendarcard", {
|
|
39
|
+
weekdays: ["Min", "Sen", "Sel", "Rab", "Kam", "Jum", "Sab"],
|
|
40
|
+
end: "Selesai",
|
|
41
|
+
start: "Mulai",
|
|
42
|
+
title: "Kalender",
|
|
43
|
+
monthTitle: (year, month) => `${year}/${month}`,
|
|
44
|
+
today: "Hari ini"
|
|
45
|
+
});
|
|
38
46
|
__publicField(this, "shortpassword", {
|
|
39
47
|
title: "SIlakan masukan kata sandi",
|
|
40
48
|
desc: "Anda telah menggunakan aset virtual, mohon lakukan verifikasi.",
|
|
@@ -27,6 +27,14 @@ declare class Lang extends BaseLang {
|
|
|
27
27
|
monthTitle: (year: number, month: number) => string;
|
|
28
28
|
today: string;
|
|
29
29
|
};
|
|
30
|
+
calendarcard: {
|
|
31
|
+
weekdays: string[];
|
|
32
|
+
end: string;
|
|
33
|
+
start: string;
|
|
34
|
+
title: string;
|
|
35
|
+
monthTitle: (year: number, month: number) => string;
|
|
36
|
+
today: string;
|
|
37
|
+
};
|
|
30
38
|
shortpassword: {
|
|
31
39
|
title: string;
|
|
32
40
|
desc: string;
|
|
@@ -35,6 +35,14 @@ class Lang extends BaseLang {
|
|
|
35
35
|
monthTitle: (year, month) => `${year}年${month}月`,
|
|
36
36
|
today: "今天"
|
|
37
37
|
});
|
|
38
|
+
__publicField(this, "calendarcard", {
|
|
39
|
+
weekdays: ["日", "一", "二", "三", "四", "五", "六"],
|
|
40
|
+
end: "结束",
|
|
41
|
+
start: "开始",
|
|
42
|
+
title: "日期选择",
|
|
43
|
+
monthTitle: (year, month) => `${year}年${month}月`,
|
|
44
|
+
today: "今天"
|
|
45
|
+
});
|
|
38
46
|
__publicField(this, "shortpassword", {
|
|
39
47
|
title: "请输入密码",
|
|
40
48
|
desc: "您使用了虚拟资产,请进行验证",
|
|
@@ -27,6 +27,14 @@ declare class Lang extends BaseLang {
|
|
|
27
27
|
monthTitle: (year: number, month: number) => string;
|
|
28
28
|
today: string;
|
|
29
29
|
};
|
|
30
|
+
calendarcard: {
|
|
31
|
+
weekdays: string[];
|
|
32
|
+
end: string;
|
|
33
|
+
start: string;
|
|
34
|
+
title: string;
|
|
35
|
+
monthTitle: (year: number, month: number) => string;
|
|
36
|
+
today: string;
|
|
37
|
+
};
|
|
30
38
|
shortpassword: {
|
|
31
39
|
title: string;
|
|
32
40
|
desc: string;
|
|
@@ -35,6 +35,14 @@ class Lang extends BaseLang {
|
|
|
35
35
|
monthTitle: (year, month) => `${year}年${month}月`,
|
|
36
36
|
today: "今天"
|
|
37
37
|
});
|
|
38
|
+
__publicField(this, "calendarcard", {
|
|
39
|
+
weekdays: ["日", "一", "二", "三", "四", "五", "六"],
|
|
40
|
+
end: "結束",
|
|
41
|
+
start: "開始",
|
|
42
|
+
title: "行事曆選擇",
|
|
43
|
+
monthTitle: (year, month) => `${year}年${month}月`,
|
|
44
|
+
today: "今天"
|
|
45
|
+
});
|
|
38
46
|
__publicField(this, "shortpassword", {
|
|
39
47
|
title: "請輸入密碼",
|
|
40
48
|
desc: "您使用了虛擬資產,請進行驗證",
|
|
@@ -19,10 +19,11 @@ var __spreadValues = (a, b) => {
|
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
20
|
import { ref, computed, reactive, onMounted, toRefs, resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, withDirectives, vShow, toDisplayString, createCommentVNode, createVNode, withCtx, createTextVNode } from "vue";
|
|
21
21
|
import { c as createComponent } from "../component-TCzwHGVq.js";
|
|
22
|
-
import
|
|
22
|
+
import { Button as _sfc_main$1 } from "../button/Button.js";
|
|
23
23
|
import { u as useLocale } from "../index-s3RgMhc7.js";
|
|
24
24
|
import { _ as _export_sfc } from "../_plugin-vue_export-helper-yVxbj29m.js";
|
|
25
25
|
import "@nutui/icons-vue";
|
|
26
|
+
import "../with-install-p59gYYU_.js";
|
|
26
27
|
import "@nutui/nutui/dist/packages/locale/lang";
|
|
27
28
|
import "../util-4Jkyw4BJ.js";
|
|
28
29
|
const { create } = createComponent("signature");
|
|
@@ -59,7 +60,7 @@ const _sfc_main = create({
|
|
|
59
60
|
}
|
|
60
61
|
},
|
|
61
62
|
components: {
|
|
62
|
-
NutButton
|
|
63
|
+
NutButton: _sfc_main$1
|
|
63
64
|
},
|
|
64
65
|
emits: ["start", "end", "signing", "confirm", "clear"],
|
|
65
66
|
setup(props, { emit }) {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"$schema": "https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json",
|
|
3
3
|
"framework": "vue",
|
|
4
4
|
"name": "NutUI",
|
|
5
|
-
"version": "4.2
|
|
5
|
+
"version": "4.3.0-beta.2",
|
|
6
6
|
"contributions": {
|
|
7
7
|
"html": {
|
|
8
8
|
"tags": [
|
|
@@ -997,6 +997,67 @@
|
|
|
997
997
|
}
|
|
998
998
|
]
|
|
999
999
|
},
|
|
1000
|
+
{
|
|
1001
|
+
"name": "nut-calendar-card",
|
|
1002
|
+
"slots": [],
|
|
1003
|
+
"events": [],
|
|
1004
|
+
"attributes": [
|
|
1005
|
+
{
|
|
1006
|
+
"name": "type",
|
|
1007
|
+
"default": "`single`",
|
|
1008
|
+
"description": "类型,单个日期 `single`,多个日期 `multiple`,日期范围 `range`,周选择 `week`",
|
|
1009
|
+
"value": {
|
|
1010
|
+
"type": "`string`",
|
|
1011
|
+
"kind": "expression"
|
|
1012
|
+
}
|
|
1013
|
+
},
|
|
1014
|
+
{
|
|
1015
|
+
"name": "v-model",
|
|
1016
|
+
"default": "`-`",
|
|
1017
|
+
"description": "当前选中值,单个日期 Date 格式,多个日期/范围选择 Date[] 格式",
|
|
1018
|
+
"value": {
|
|
1019
|
+
"type": "`date | date[]`",
|
|
1020
|
+
"kind": "expression"
|
|
1021
|
+
}
|
|
1022
|
+
},
|
|
1023
|
+
{
|
|
1024
|
+
"name": "startDate",
|
|
1025
|
+
"default": "`-`",
|
|
1026
|
+
"description": "限制范围开始日期",
|
|
1027
|
+
"value": {
|
|
1028
|
+
"type": "`date`",
|
|
1029
|
+
"kind": "expression"
|
|
1030
|
+
}
|
|
1031
|
+
},
|
|
1032
|
+
{
|
|
1033
|
+
"name": "endDate",
|
|
1034
|
+
"default": "`-`",
|
|
1035
|
+
"description": "限制范围结束日期",
|
|
1036
|
+
"value": {
|
|
1037
|
+
"type": "`date`",
|
|
1038
|
+
"kind": "expression"
|
|
1039
|
+
}
|
|
1040
|
+
},
|
|
1041
|
+
{
|
|
1042
|
+
"name": "firstDayOfWeek",
|
|
1043
|
+
"default": "`1`",
|
|
1044
|
+
"description": "设置周起始日,0 为周日,1 为周一",
|
|
1045
|
+
"value": {
|
|
1046
|
+
"type": "`0-6`",
|
|
1047
|
+
"kind": "expression"
|
|
1048
|
+
}
|
|
1049
|
+
},
|
|
1050
|
+
{
|
|
1051
|
+
"name": "disableDay",
|
|
1052
|
+
"default": "`-`",
|
|
1053
|
+
"description": "设置不可选日期",
|
|
1054
|
+
"value": {
|
|
1055
|
+
"type": "`(day: calendarcardday) => boolean`",
|
|
1056
|
+
"kind": "expression"
|
|
1057
|
+
}
|
|
1058
|
+
}
|
|
1059
|
+
]
|
|
1060
|
+
},
|
|
1000
1061
|
{
|
|
1001
1062
|
"name": "nut-card",
|
|
1002
1063
|
"slots": [],
|