@nutui/nutui 3.1.19-beta.3 → 3.1.19-beta.6

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