@nutui/nutui 3.1.22-beta.0 → 3.1.22-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.
Files changed (176) hide show
  1. package/dist/nutui.es.js +4019 -19251
  2. package/dist/nutui.umd.js +4012 -19344
  3. package/dist/packages/_es/ActionSheet.js +26 -157
  4. package/dist/packages/_es/Address.js +119 -542
  5. package/dist/packages/_es/AddressList.js +113 -613
  6. package/dist/packages/_es/Audio.js +62 -264
  7. package/dist/packages/_es/AudioOperate.js +18 -107
  8. package/dist/packages/_es/Avatar.js +42 -165
  9. package/dist/packages/_es/AvatarGroup.js +14 -73
  10. package/dist/packages/_es/BackTop.js +43 -156
  11. package/dist/packages/_es/Badge.js +14 -86
  12. package/dist/packages/_es/Barrage.js +41 -120
  13. package/dist/packages/_es/Button.js +23 -128
  14. package/dist/packages/_es/Calendar.js +24 -237
  15. package/dist/packages/_es/CalendarItem.js +1 -1
  16. package/dist/packages/_es/Card.js +10 -107
  17. package/dist/packages/_es/Cascader.js +156 -500
  18. package/dist/packages/_es/Category.js +15 -58
  19. package/dist/packages/_es/CategoryPane.js +11 -111
  20. package/dist/packages/_es/Cell.js +21 -100
  21. package/dist/packages/_es/CellGroup.js +9 -44
  22. package/dist/packages/_es/Checkbox.js +31 -113
  23. package/dist/packages/_es/CheckboxGroup.js +29 -58
  24. package/dist/packages/_es/CircleProgress.js +28 -151
  25. package/dist/packages/_es/Col.js +14 -56
  26. package/dist/packages/_es/Collapse.js +24 -85
  27. package/dist/packages/_es/CollapseItem.js +70 -261
  28. package/dist/packages/_es/Comment.js +64 -434
  29. package/dist/packages/_es/CountDown.js +61 -242
  30. package/dist/packages/_es/CountUp.js +149 -546
  31. package/dist/packages/_es/DatePicker.js +107 -322
  32. package/dist/packages/_es/Dialog.js +69 -261
  33. package/dist/packages/_es/Divider.js +18 -68
  34. package/dist/packages/_es/Drag.js +56 -197
  35. package/dist/packages/_es/Ecard.js +24 -159
  36. package/dist/packages/_es/Elevator.js +63 -198
  37. package/dist/packages/_es/Empty.js +12 -71
  38. package/dist/packages/_es/FixedNav.js +15 -122
  39. package/dist/packages/_es/Form.js +64 -151
  40. package/dist/packages/_es/FormItem.js +15 -110
  41. package/dist/packages/_es/Grid.js +5 -6
  42. package/dist/packages/_es/GridItem.js +33 -144
  43. package/dist/packages/_es/Icon.js +15 -40
  44. package/dist/packages/_es/ImagePreview.js +74 -298
  45. package/dist/packages/_es/Indicator.js +15 -62
  46. package/dist/packages/_es/InfiniteLoading.js +66 -258
  47. package/dist/packages/_es/Input.js +51 -413
  48. package/dist/packages/_es/InputNumber.js +41 -160
  49. package/dist/packages/_es/Layout.js +4 -5
  50. package/dist/packages/_es/List.js +23 -110
  51. package/dist/packages/_es/Menu.js +30 -118
  52. package/dist/packages/_es/MenuItem.js +34 -162
  53. package/dist/packages/_es/Navbar.js +30 -192
  54. package/dist/packages/_es/NoticeBar.js +83 -387
  55. package/dist/packages/_es/Notify.js +81 -236
  56. package/dist/packages/_es/NumberKeyboard.js +41 -272
  57. package/dist/packages/_es/OldPicker.js +140 -464
  58. package/dist/packages/_es/OverLay.js +32 -105
  59. package/dist/packages/_es/Pagination.js +39 -157
  60. package/dist/packages/_es/Picker.js +138 -459
  61. package/dist/packages/_es/Popover.js +327 -965
  62. package/dist/packages/_es/Popup.js +64 -303
  63. package/dist/packages/_es/Price.js +16 -118
  64. package/dist/packages/_es/Progress.js +14 -146
  65. package/dist/packages/_es/PullRefresh.js +92 -346
  66. package/dist/packages/_es/Radio.js +22 -90
  67. package/dist/packages/_es/RadioGroup.js +8 -37
  68. package/dist/packages/_es/Range.js +92 -417
  69. package/dist/packages/_es/Rate.js +16 -139
  70. package/dist/packages/_es/Row.js +22 -64
  71. package/dist/packages/_es/SearchBar.js +46 -247
  72. package/dist/packages/_es/ShortPassword.js +35 -225
  73. package/dist/packages/_es/SideNavBar.js +33 -89
  74. package/dist/packages/_es/SideNavBarItem.js +11 -46
  75. package/dist/packages/_es/Signature.js +46 -165
  76. package/dist/packages/_es/Skeleton.js +20 -136
  77. package/dist/packages/_es/Sku.js +93 -499
  78. package/dist/packages/_es/Step.js +25 -119
  79. package/dist/packages/_es/Steps.js +18 -53
  80. package/dist/packages/_es/Sticky.js +53 -138
  81. package/dist/packages/_es/SubSideNavBar.js +26 -90
  82. package/dist/packages/_es/Swipe.js +46 -183
  83. package/dist/packages/_es/Swiper.js +121 -433
  84. package/dist/packages/_es/SwiperItem.js +22 -53
  85. package/dist/packages/_es/Switch.js +21 -116
  86. package/dist/packages/_es/TabPane.js +12 -39
  87. package/dist/packages/_es/Tabbar.js +17 -72
  88. package/dist/packages/_es/TabbarItem.js +29 -151
  89. package/dist/packages/_es/Table.js +27 -186
  90. package/dist/packages/_es/Tabs.js +51 -209
  91. package/dist/packages/_es/Tag.js +20 -97
  92. package/dist/packages/_es/TextArea.js +42 -160
  93. package/dist/packages/_es/TimeDetail.js +23 -84
  94. package/dist/packages/_es/TimePannel.js +19 -52
  95. package/dist/packages/_es/TimeSelect.js +15 -103
  96. package/dist/packages/_es/Toast.js +80 -319
  97. package/dist/packages/_es/Uploader.js +112 -460
  98. package/dist/packages/_es/Video.js +83 -340
  99. package/dist/packages/_es/common.js +38 -128
  100. package/dist/packages/_es/component.js +35 -76
  101. package/dist/packages/_es/index.js +5 -6
  102. package/dist/packages/_es/index2.js +9 -30
  103. package/dist/packages/_es/index3.js +6 -8
  104. package/dist/packages/_es/index4.js +13 -58
  105. package/dist/packages/_es/index5.js +120 -675
  106. package/dist/packages/_es/plugin-vue_export-helper.js +7 -8
  107. package/dist/packages/_es/pxCheck.js +3 -5
  108. package/dist/packages/_es/raf.js +8 -15
  109. package/dist/packages/button/index.scss +2 -1
  110. package/dist/packages/cell/index.scss +11 -0
  111. package/dist/packages/checkbox/index.scss +6 -0
  112. package/dist/packages/dialog/index.scss +1 -0
  113. package/dist/packages/elevator/index.scss +21 -0
  114. package/dist/packages/input/index.scss +13 -1
  115. package/dist/packages/locale/lang/baseLang.d.ts +1 -0
  116. package/dist/packages/locale/lang/baseLang.js +3 -3
  117. package/dist/packages/locale/lang/en-US.d.ts +8 -0
  118. package/dist/packages/locale/lang/en-US.js +5 -97
  119. package/dist/packages/locale/lang/id-ID.d.ts +8 -0
  120. package/dist/packages/locale/lang/id-ID.js +5 -97
  121. package/dist/packages/locale/lang/index.js +16 -38
  122. package/dist/packages/locale/lang/zh-CN.d.ts +8 -0
  123. package/dist/packages/locale/lang/zh-CN.js +5 -97
  124. package/dist/packages/locale/lang/zh-TW.d.ts +8 -0
  125. package/dist/packages/locale/lang/zh-TW.js +5 -97
  126. package/dist/packages/radio/index.scss +1 -0
  127. package/dist/packages/switch/index.scss +3 -3
  128. package/dist/packages/tabpane/index.scss +1 -0
  129. package/dist/smartips/attributes.json +62 -10
  130. package/dist/smartips/tags.json +17 -4
  131. package/dist/style.css +1 -1
  132. package/dist/styles/themes/default.scss +49 -49
  133. package/dist/styles/themes/jdb.scss +49 -49
  134. package/dist/styles/themes/jdt.scss +49 -49
  135. package/dist/styles/variables-jdb.scss +10 -1
  136. package/dist/styles/variables-jdt.scss +10 -1
  137. package/dist/styles/variables.scss +10 -1
  138. package/dist/types/__VUE/address/index.vue.d.ts +5 -5
  139. package/dist/types/__VUE/addresslist/components/ItemContents.vue.d.ts +1 -0
  140. package/dist/types/__VUE/audiooperate/index.vue.d.ts +1 -0
  141. package/dist/types/__VUE/avatar/index.vue.d.ts +4 -4
  142. package/dist/types/__VUE/backtop/index.vue.d.ts +2 -2
  143. package/dist/types/__VUE/badge/index.vue.d.ts +2 -2
  144. package/dist/types/__VUE/button/index.vue.d.ts +2 -2
  145. package/dist/types/__VUE/cascader/index.vue.d.ts +1 -1
  146. package/dist/types/__VUE/cell/index.vue.d.ts +11 -4
  147. package/dist/types/__VUE/checkbox/common.d.ts +59 -0
  148. package/dist/types/__VUE/checkbox/index.vue.d.ts +18 -5
  149. package/dist/types/__VUE/checkboxgroup/index.vue.d.ts +7 -0
  150. package/dist/types/__VUE/collapseitem/index.vue.d.ts +2 -2
  151. package/dist/types/__VUE/dialog/index.d.ts +9 -2
  152. package/dist/types/__VUE/dialog/index.vue.d.ts +23 -8
  153. package/dist/types/__VUE/ecard/index.vue.d.ts +3 -3
  154. package/dist/types/__VUE/elevator/index.vue.d.ts +29 -0
  155. package/dist/types/__VUE/empty/index.vue.d.ts +2 -2
  156. package/dist/types/__VUE/formitem/index.vue.d.ts +3 -10
  157. package/dist/types/__VUE/grid/index.vue.d.ts +4 -4
  158. package/dist/types/__VUE/griditem/index.vue.d.ts +1 -1
  159. package/dist/types/__VUE/input/index.vue.d.ts +2 -2
  160. package/dist/types/__VUE/noticebar/index.vue.d.ts +1 -1
  161. package/dist/types/__VUE/oldpicker/index.vue.d.ts +2 -2
  162. package/dist/types/__VUE/picker/index.vue.d.ts +2 -2
  163. package/dist/types/__VUE/popover/index.vue.d.ts +2 -2
  164. package/dist/types/__VUE/range/index.vue.d.ts +1 -1
  165. package/dist/types/__VUE/rate/index.vue.d.ts +2 -2
  166. package/dist/types/__VUE/row/index.vue.d.ts +2 -2
  167. package/dist/types/__VUE/shortpassword/index.vue.d.ts +2 -2
  168. package/dist/types/__VUE/step/index.vue.d.ts +2 -2
  169. package/dist/types/__VUE/switch/index.vue.d.ts +2 -2
  170. package/dist/types/__VUE/tabbaritem/index.vue.d.ts +2 -2
  171. package/dist/types/__VUE/timeselect/index.vue.d.ts +9 -2
  172. package/dist/types/__VUE/toast/index.vue.d.ts +3 -3
  173. package/dist/types/__VUE/uploader/index.vue.d.ts +2 -2
  174. package/dist/types/__VUE/video/index.vue.d.ts +1 -1
  175. package/dist/types/index.d.ts +1 -1
  176. package/package.json +2 -1
@@ -1,13 +1,12 @@
1
1
  /*!
2
- * @nutui/nutui v3.1.22-beta.0 Tue May 31 2022 21:47:10 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.1.22-beta.3 Wed Jun 15 2022 20:12:30 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
6
- var _export_sfc = (sfc, props) => {
7
- const target = sfc.__vccOpts || sfc;
8
- for (const [key, val] of props) {
9
- target[key] = val;
10
- }
11
- return target;
6
+ var o = (o2, r) => {
7
+ const t = o2.__vccOpts || o2;
8
+ for (const [o3, c] of r)
9
+ t[o3] = c;
10
+ return t;
12
11
  };
13
- export { _export_sfc as _ };
12
+ export { o as _ };
@@ -1,9 +1,7 @@
1
1
  /*!
2
- * @nutui/nutui v3.1.22-beta.0 Tue May 31 2022 21:47:10 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.1.22-beta.3 Wed Jun 15 2022 20:12:30 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
6
- const pxCheck = (value) => {
7
- return isNaN(Number(value)) ? String(value) : `${value}px`;
8
- };
9
- export { pxCheck as p };
6
+ const p = (p2) => isNaN(Number(p2)) ? String(p2) : `${p2}px`;
7
+ export { p };
@@ -1,19 +1,12 @@
1
1
  /*!
2
- * @nutui/nutui v3.1.22-beta.0 Tue May 31 2022 21:47:10 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.1.22-beta.3 Wed Jun 15 2022 20:12:30 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
6
- const _window = window;
7
- function requestAniFrame() {
8
- if (typeof _window !== "undefined") {
9
- return _window.requestAnimationFrame || _window.webkitRequestAnimationFrame || function(callback) {
10
- _window.setTimeout(callback, 1e3 / 60);
11
- };
12
- } else {
13
- return function(callback) {
14
- setTimeout(callback, 1e3 / 60);
15
- };
16
- }
17
- }
18
- var requestAniFrame$1 = requestAniFrame();
19
- export { requestAniFrame$1 as r };
6
+ const e = window;
7
+ var t = e !== void 0 ? e.requestAnimationFrame || e.webkitRequestAnimationFrame || function(t2) {
8
+ e.setTimeout(t2, 1e3 / 60);
9
+ } : function(e2) {
10
+ setTimeout(e2, 1e3 / 60);
11
+ };
12
+ export { t as r };
@@ -124,6 +124,7 @@
124
124
  width: 100%;
125
125
  height: $button-large-height;
126
126
  line-height: $button-large-line-height;
127
+ font-size: $button-large-font-size;
127
128
  }
128
129
 
129
130
  &--normal {
@@ -139,7 +140,7 @@
139
140
  }
140
141
  &--mini {
141
142
  height: $button-mini-height;
142
- line-height: 1.2;
143
+ line-height: $button-mini-line-height;
143
144
  padding: $button-mini-padding;
144
145
  font-size: $button-mini-font-size;
145
146
  }
@@ -16,6 +16,14 @@
16
16
  align-items: center;
17
17
  }
18
18
 
19
+ &--large {
20
+ font-size: $cell-large-title-font;
21
+ padding: $cell-large-padding;
22
+ .nut-cell__title-desc {
23
+ font-size: $cell-large-title-desc-font;
24
+ }
25
+ }
26
+
19
27
  &:last-child {
20
28
  &::after {
21
29
  border: 0 !important;
@@ -73,6 +81,9 @@
73
81
  text-align: right;
74
82
  font-size: $cell-desc-font;
75
83
  color: $cell-desc-color;
84
+ &--alone {
85
+ color: $cell-color;
86
+ }
76
87
  }
77
88
  &__link {
78
89
  color: #979797;
@@ -24,8 +24,14 @@
24
24
  }
25
25
  &__icon--unchecked {
26
26
  color: $checkbox-icon-disable-color;
27
+ font-size: $checkbox-icon-font-size;
28
+ }
29
+ &__icon--indeterminate {
30
+ color: $primary-color;
31
+ font-size: $checkbox-icon-font-size;
27
32
  }
28
33
  &__icon--disable {
29
34
  color: $help-color;
35
+ font-size: $checkbox-icon-font-size;
30
36
  }
31
37
  }
@@ -51,6 +51,7 @@
51
51
 
52
52
  .nut-button {
53
53
  min-width: 100px;
54
+ overflow: hidden;
54
55
  }
55
56
 
56
57
  &-cancel {
@@ -4,12 +4,14 @@
4
4
  position: relative;
5
5
  &__list {
6
6
  display: block;
7
+ position: relative;
7
8
  overflow: auto;
8
9
  &__item {
9
10
  display: block;
10
11
  font-size: $elevator-list-item-font-size;
11
12
  color: $elevator-list-item-font-color;
12
13
  &__code {
14
+ display: flex;
13
15
  position: relative;
14
16
  height: $elevator-list-item-code-height;
15
17
  line-height: $elevator-list-item-code-line-height;
@@ -17,6 +19,7 @@
17
19
  color: $elevator-list-item-code-font-color;
18
20
  padding: $elevator-list-item-code-padding;
19
21
  font-weight: $elevator-list-item-code-font-weight;
22
+ box-sizing: border-box;
20
23
  &::after {
21
24
  content: ' ';
22
25
  width: $elevator-list-item-code-after-width;
@@ -38,6 +41,21 @@
38
41
  }
39
42
  }
40
43
  }
44
+ &__fixed {
45
+ width: 100%;
46
+ position: absolute;
47
+ top: 0;
48
+ left: 0;
49
+ padding: $elevator-list-item-code-padding;
50
+ height: $elevator-list-item-code-height;
51
+ line-height: $elevator-list-item-code-line-height;
52
+ font-size: $elevator-list-item-code-font-size;
53
+ color: $elevator-list-fixed-color;
54
+ font-weight: $elevator-list-item-code-font-weight;
55
+ background-color: $elevator-list-fixed-bg-color;
56
+ box-sizing: border-box;
57
+ box-shadow: $elevator-list-fixed-box-shadow;
58
+ }
41
59
  }
42
60
  &__code--current {
43
61
  position: $elevator-list-item-code-current-position;
@@ -67,6 +85,9 @@
67
85
  display: block;
68
86
  padding: $elevator-list-item-bars-inner-item-padding;
69
87
  font-size: $elevator-list-item-bars-inner-item-font-size;
88
+ &.active {
89
+ color: $elevator-list-item-bars-inner-item-active-color;
90
+ }
70
91
  }
71
92
  }
72
93
  }
@@ -29,7 +29,7 @@ textarea {
29
29
 
30
30
  .input-text,
31
31
  &__text--readonly {
32
- width: 100%;
32
+ width: 90%;
33
33
  padding: 0;
34
34
  // padding-right: 35px;
35
35
  line-height: inherit;
@@ -60,10 +60,16 @@ textarea {
60
60
  display: flex;
61
61
  align-items: center;
62
62
  }
63
+ &-box {
64
+ position: relative;
65
+ width: 100%;
66
+ }
63
67
  &-disabled-mask {
64
68
  position: absolute;
65
69
  width: 100%;
66
70
  height: 100%;
71
+ top: 0;
72
+ left: 0;
67
73
  z-index: 2;
68
74
  }
69
75
  &-error-message {
@@ -91,6 +97,12 @@ textarea {
91
97
  &-left-icon {
92
98
  margin-right: 4px;
93
99
  }
100
+ &-clear-box {
101
+ height: 100%;
102
+ .nut-input-clear {
103
+ vertical-align: -2px;
104
+ }
105
+ }
94
106
  &-clear {
95
107
  width: 16px;
96
108
  height: 16px;
@@ -72,6 +72,7 @@ export declare abstract class BaseLang {
72
72
  };
73
73
  abstract addresslist: {
74
74
  addAddress: string;
75
+ default: string;
75
76
  };
76
77
  abstract comment: {
77
78
  complaintsText: string;
@@ -1,8 +1,8 @@
1
1
  /*!
2
- * @nutui/nutui v3.1.22-beta.0 Tue May 31 2022 21:47:36 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.1.22-beta.3 Wed Jun 15 2022 20:12:47 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
6
- class BaseLang {
6
+ class s {
7
7
  }
8
- export { BaseLang as B };
8
+ export { s as B };
@@ -73,6 +73,7 @@ declare class Lang extends BaseLang {
73
73
  };
74
74
  addresslist: {
75
75
  addAddress: string;
76
+ default: string;
76
77
  };
77
78
  comment: {
78
79
  complaintsText: string;
@@ -92,5 +93,12 @@ declare class Lang extends BaseLang {
92
93
  min: string;
93
94
  seconds: string;
94
95
  };
96
+ audiooperate: {
97
+ back: string;
98
+ start: string;
99
+ pause: string;
100
+ forward: string;
101
+ mute: string;
102
+ };
95
103
  }
96
104
  export default Lang;
@@ -1,104 +1,12 @@
1
1
  /*!
2
- * @nutui/nutui v3.1.22-beta.0 Tue May 31 2022 21:47:36 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.1.22-beta.3 Wed Jun 15 2022 20:12:47 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
6
- import { B as BaseLang } from "./baseLang.js";
7
- class Lang extends BaseLang {
6
+ import { B as e } from "./baseLang.js";
7
+ class t extends e {
8
8
  constructor() {
9
- super(...arguments);
10
- this.save = "Save";
11
- this.confirm = "Confirm";
12
- this.cancel = "Cancel";
13
- this.done = "Done";
14
- this.noData = "No Data";
15
- this.placeholder = "Placeholder";
16
- this.select = "Select";
17
- this.video = {
18
- errorTip: "Error Tip",
19
- clickRetry: "Click Retry"
20
- };
21
- this.fixednav = {
22
- activeText: "Close Nav",
23
- unActiveText: "Open Nav"
24
- };
25
- this.pagination = {
26
- prev: "Previous",
27
- next: "Next"
28
- };
29
- this.calendaritem = {
30
- weekdays: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
31
- end: "End",
32
- start: "Start",
33
- title: "Calendar",
34
- monthTitle: (year, month) => `${year}/${month}`,
35
- today: "Today"
36
- };
37
- this.shortpassword = {
38
- title: "Please input a password",
39
- desc: "Verify",
40
- tips: "Forget password"
41
- };
42
- this.uploader = {
43
- ready: "Ready",
44
- readyUpload: "Ready to upload",
45
- waitingUpload: "Waiting for upload",
46
- uploading: "Uploading",
47
- success: "Upload successful",
48
- error: "Upload failed"
49
- };
50
- this.countdown = {
51
- day: " Day ",
52
- hour: " Hour ",
53
- minute: " Minute ",
54
- second: " Second "
55
- };
56
- this.address = {
57
- selectRegion: "Select Region",
58
- deliveryTo: "Delivery To",
59
- chooseAnotherAddress: "Choose Another Address"
60
- };
61
- this.signature = {
62
- reSign: "Re Sign",
63
- unSupportTpl: `Sorry, the current browser doesn't support canvas, so we can't use this control!`
64
- };
65
- this.ecard = {
66
- chooseText: "Select",
67
- otherValueText: "Other Value",
68
- placeholder: "Placeholder"
69
- };
70
- this.timeselect = {
71
- pickupTime: "Pickup Time"
72
- };
73
- this.sku = {
74
- buyNow: "Buy Now",
75
- buyNumber: "Buy Number",
76
- addToCart: "Add to Cart"
77
- };
78
- this.skuheader = {
79
- skuId: "Sku Number"
80
- };
81
- this.addresslist = {
82
- addAddress: "Add New Address"
83
- };
84
- this.comment = {
85
- complaintsText: "I have a complaint",
86
- additionalReview: (day) => `Review after ${day} days of purchase`,
87
- additionalImages: (length) => `There are ${length} follow-up comments`
88
- };
89
- this.infiniteloading = {
90
- loading: "Loading...",
91
- pullTxt: "Loose to refresh",
92
- loadMoreTxt: "Oops, this is the bottom"
93
- };
94
- this.datepicker = {
95
- year: "Year",
96
- month: "Month",
97
- day: "Day",
98
- hour: "Hour",
99
- min: "Minute",
100
- seconds: "Second"
101
- };
9
+ super(...arguments), this.save = "Save", this.confirm = "Confirm", this.cancel = "Cancel", this.done = "Done", this.noData = "No Data", this.placeholder = "Placeholder", this.select = "Select", this.video = { errorTip: "Error Tip", clickRetry: "Click Retry" }, this.fixednav = { activeText: "Close Nav", unActiveText: "Open Nav" }, this.pagination = { prev: "Previous", next: "Next" }, this.calendaritem = { weekdays: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"], end: "End", start: "Start", title: "Calendar", monthTitle: (e2, t2) => `${e2}/${t2}`, today: "Today" }, this.shortpassword = { title: "Please input a password", desc: "Verify", tips: "Forget password" }, this.uploader = { ready: "Ready", readyUpload: "Ready to upload", waitingUpload: "Waiting for upload", uploading: "Uploading", success: "Upload successful", error: "Upload failed" }, this.countdown = { day: " Day ", hour: " Hour ", minute: " Minute ", second: " Second " }, this.address = { selectRegion: "Select Region", deliveryTo: "Delivery To", chooseAnotherAddress: "Choose Another Address" }, this.signature = { reSign: "Re Sign", unSupportTpl: "Sorry, the current browser doesn't support canvas, so we can't use this control!" }, this.ecard = { chooseText: "Select", otherValueText: "Other Value", placeholder: "Placeholder" }, this.timeselect = { pickupTime: "Pickup Time" }, this.sku = { buyNow: "Buy Now", buyNumber: "Buy Number", addToCart: "Add to Cart" }, this.skuheader = { skuId: "Sku Number" }, this.addresslist = { addAddress: "Add New Address", default: "default" }, this.comment = { complaintsText: "I have a complaint", additionalReview: (e2) => `Review after ${e2} days of purchase`, additionalImages: (e2) => `There are ${e2} follow-up comments` }, this.infiniteloading = { loading: "Loading...", pullTxt: "Loose to refresh", loadMoreTxt: "Oops, this is the bottom" }, this.datepicker = { year: "Year", month: "Month", day: "Day", hour: "Hour", min: "Minute", seconds: "Second" }, this.audiooperate = { back: "Back", start: "Start", pause: "Pause", forward: "Forward", mute: "Mute" };
102
10
  }
103
11
  }
104
- export { Lang as default };
12
+ export { t as default };
@@ -73,6 +73,7 @@ declare class Lang extends BaseLang {
73
73
  };
74
74
  addresslist: {
75
75
  addAddress: string;
76
+ default: string;
76
77
  };
77
78
  comment: {
78
79
  complaintsText: string;
@@ -92,5 +93,12 @@ declare class Lang extends BaseLang {
92
93
  min: string;
93
94
  seconds: string;
94
95
  };
96
+ audiooperate: {
97
+ back: string;
98
+ start: string;
99
+ pause: string;
100
+ forward: string;
101
+ mute: string;
102
+ };
95
103
  }
96
104
  export default Lang;
@@ -1,104 +1,12 @@
1
1
  /*!
2
- * @nutui/nutui v3.1.22-beta.0 Tue May 31 2022 21:47:36 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.1.22-beta.3 Wed Jun 15 2022 20:12:47 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
6
- import { B as BaseLang } from "./baseLang.js";
7
- class Lang extends BaseLang {
6
+ import { B as a } from "./baseLang.js";
7
+ class e extends a {
8
8
  constructor() {
9
- super(...arguments);
10
- this.save = "Simpan";
11
- this.confirm = "Konfirmasi";
12
- this.cancel = "Batal";
13
- this.done = "Selesai";
14
- this.noData = "Tidak Ada Data";
15
- this.placeholder = "Kolom Input";
16
- this.select = "Pilih";
17
- this.video = {
18
- errorTip: "Terjadi Kesalahan",
19
- clickRetry: "Coba Lagi"
20
- };
21
- this.fixednav = {
22
- activeText: "Tutup Navigasi",
23
- unActiveText: "Buka Navigasi"
24
- };
25
- this.pagination = {
26
- prev: "Sebelumnya",
27
- next: "Selanjutnya"
28
- };
29
- this.calendaritem = {
30
- weekdays: ["Min", "Sen", "Sel", "Rab", "Kam", "Jum", "Sab"],
31
- end: "Selesai",
32
- start: "Mulai",
33
- title: "Kalender",
34
- monthTitle: (year, month) => `${year}/${month}`,
35
- today: "Hari ini"
36
- };
37
- this.shortpassword = {
38
- title: "SIlakan masukan kata sandi",
39
- desc: "Anda telah menggunakan aset virtual, mohon lakukan verifikasi.",
40
- tips: "Lupa Kata Sandi"
41
- };
42
- this.uploader = {
43
- ready: "File berhasil diunggah",
44
- readyUpload: "Siap untuk mengunggah",
45
- waitingUpload: "Menunggu untuk diunggah",
46
- uploading: "Mengunggah",
47
- success: "Berhasil Diunggah",
48
- error: "Gagal Mengunggah"
49
- };
50
- this.countdown = {
51
- day: " Hari ",
52
- hour: " Jam ",
53
- minute: " Menit ",
54
- second: " Detik "
55
- };
56
- this.address = {
57
- selectRegion: "Pilih Daerah",
58
- deliveryTo: "Kirim Ke",
59
- chooseAnotherAddress: "Pilih alamat lain"
60
- };
61
- this.signature = {
62
- reSign: "Masuk Kembali",
63
- unSupportTpl: `Maaf, browser Anda saat ini tidak mendukung Canvas, sehingga kita tidak dapat menggunakan kontrol ini!`
64
- };
65
- this.ecard = {
66
- chooseText: "Pilih",
67
- otherValueText: "Jumlah Lain",
68
- placeholder: "Kolom Input"
69
- };
70
- this.timeselect = {
71
- pickupTime: "Waktu Penjemputan"
72
- };
73
- this.sku = {
74
- buyNow: "Beli Sekarang",
75
- buyNumber: "Jumlah Pembelian",
76
- addToCart: "Tambahkan ke Keranjang"
77
- };
78
- this.skuheader = {
79
- skuId: "Nomor SKU"
80
- };
81
- this.addresslist = {
82
- addAddress: "Tambah Alamat Baru"
83
- };
84
- this.comment = {
85
- complaintsText: "Saya memiliki komplain",
86
- additionalReview: (day) => `Ulas setelah ${day} hari dari pembelian`,
87
- additionalImages: (length) => `Terdapat ${length} komentar lainnya`
88
- };
89
- this.infiniteloading = {
90
- loading: "Memuat...",
91
- pullTxt: "Lepaskan untuk memperbarui",
92
- loadMoreTxt: "Oops, sudah sampai bawah"
93
- };
94
- this.datepicker = {
95
- year: "Tahun",
96
- month: "Bulan",
97
- day: "Hari",
98
- hour: "Jam",
99
- min: "Menit",
100
- seconds: "Detik"
101
- };
9
+ super(...arguments), this.save = "Simpan", this.confirm = "Konfirmasi", this.cancel = "Batal", this.done = "Selesai", this.noData = "Tidak Ada Data", this.placeholder = "Kolom Input", this.select = "Pilih", this.video = { errorTip: "Terjadi Kesalahan", clickRetry: "Coba Lagi" }, this.fixednav = { activeText: "Tutup Navigasi", unActiveText: "Buka Navigasi" }, this.pagination = { prev: "Sebelumnya", next: "Selanjutnya" }, this.calendaritem = { weekdays: ["Min", "Sen", "Sel", "Rab", "Kam", "Jum", "Sab"], end: "Selesai", start: "Mulai", title: "Kalender", monthTitle: (a2, e2) => `${a2}/${e2}`, today: "Hari ini" }, this.shortpassword = { title: "SIlakan masukan kata sandi", desc: "Anda telah menggunakan aset virtual, mohon lakukan verifikasi.", tips: "Lupa Kata Sandi" }, this.uploader = { ready: "File berhasil diunggah", readyUpload: "Siap untuk mengunggah", waitingUpload: "Menunggu untuk diunggah", uploading: "Mengunggah", success: "Berhasil Diunggah", error: "Gagal Mengunggah" }, this.countdown = { day: " Hari ", hour: " Jam ", minute: " Menit ", second: " Detik " }, this.address = { selectRegion: "Pilih Daerah", deliveryTo: "Kirim Ke", chooseAnotherAddress: "Pilih alamat lain" }, this.signature = { reSign: "Masuk Kembali", unSupportTpl: "Maaf, browser Anda saat ini tidak mendukung Canvas, sehingga kita tidak dapat menggunakan kontrol ini!" }, this.ecard = { chooseText: "Pilih", otherValueText: "Jumlah Lain", placeholder: "Kolom Input" }, this.timeselect = { pickupTime: "Waktu Penjemputan" }, this.sku = { buyNow: "Beli Sekarang", buyNumber: "Jumlah Pembelian", addToCart: "Tambahkan ke Keranjang" }, this.skuheader = { skuId: "Nomor SKU" }, this.addresslist = { addAddress: "Tambah Alamat Baru", default: "Bawaan" }, this.comment = { complaintsText: "Saya memiliki komplain", additionalReview: (a2) => `Ulas setelah ${a2} hari dari pembelian`, additionalImages: (a2) => `Terdapat ${a2} komentar lainnya` }, this.infiniteloading = { loading: "Memuat...", pullTxt: "Lepaskan untuk memperbarui", loadMoreTxt: "Oops, sudah sampai bawah" }, this.datepicker = { year: "Tahun", month: "Bulan", day: "Hari", hour: "Jam", min: "Menit", seconds: "Detik" }, this.audiooperate = { back: "kembali", start: "Mulailah", pause: "berhenti sebentar", forward: "Maju cepat", mute: "Bisu" };
102
10
  }
103
11
  }
104
- export { Lang as default };
12
+ export { e as default };
@@ -1,48 +1,26 @@
1
1
  /*!
2
- * @nutui/nutui v3.1.22-beta.0 Tue May 31 2022 21:47:36 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.1.22-beta.3 Wed Jun 15 2022 20:12:47 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
6
- import { reactive, ref } from "vue";
7
- import Lang from "./zh-CN.js";
8
- import Lang$1 from "./en-US.js";
6
+ import { reactive as e, ref as t } from "vue";
7
+ import r from "./zh-CN.js";
8
+ import s from "./en-US.js";
9
9
  import "./baseLang.js";
10
- const isObject = (val) => val !== null && typeof val === "object";
11
- const deepMerge = (target, newObj) => {
12
- Object.keys(newObj).forEach((key) => {
13
- let targetValue = target[key];
14
- let newObjValue = newObj[key];
15
- if (isObject(targetValue) && isObject(newObjValue)) {
16
- deepMerge(targetValue, newObjValue);
17
- } else {
18
- target[key] = newObjValue;
19
- }
20
- });
21
- return target;
22
- };
23
- const langs = reactive({
24
- "zh-CN": new Lang(),
25
- "en-US": new Lang$1()
26
- });
27
- class Locale {
10
+ const a = (e2) => e2 !== null && typeof e2 == "object", n = (e2, t2) => (Object.keys(t2).forEach((r2) => {
11
+ let s2 = e2[r2], o2 = t2[r2];
12
+ a(s2) && a(o2) ? n(s2, o2) : e2[r2] = o2;
13
+ }), e2), o = e({ "zh-CN": new r(), "en-US": new s() });
14
+ class u {
28
15
  static languages() {
29
- return langs[this.currentLang.value];
16
+ return o[this.currentLang.value];
30
17
  }
31
- static use(lang, newLanguages) {
32
- if (newLanguages) {
33
- langs[lang] = new newLanguages();
34
- }
35
- this.currentLang.value = lang;
18
+ static use(e2, t2) {
19
+ t2 && (o[e2] = new t2()), this.currentLang.value = e2;
36
20
  }
37
- static merge(lang, newLanguages) {
38
- if (newLanguages) {
39
- if (langs[lang]) {
40
- deepMerge(langs[lang], newLanguages);
41
- } else {
42
- this.use(lang, newLanguages);
43
- }
44
- }
21
+ static merge(e2, t2) {
22
+ t2 && (o[e2] ? n(o[e2], t2) : this.use(e2, t2));
45
23
  }
46
24
  }
47
- Locale.currentLang = ref("zh-CN");
48
- export { Locale, Locale as default };
25
+ u.currentLang = t("zh-CN");
26
+ export { u as Locale, u as default };
@@ -73,6 +73,7 @@ declare class Lang extends BaseLang {
73
73
  };
74
74
  addresslist: {
75
75
  addAddress: string;
76
+ default: string;
76
77
  };
77
78
  comment: {
78
79
  complaintsText: string;
@@ -92,5 +93,12 @@ declare class Lang extends BaseLang {
92
93
  min: string;
93
94
  seconds: string;
94
95
  };
96
+ audiooperate: {
97
+ back: string;
98
+ start: string;
99
+ pause: string;
100
+ forward: string;
101
+ mute: string;
102
+ };
95
103
  }
96
104
  export default Lang;