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

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 (141) hide show
  1. package/dist/nutui.es.js +365 -204
  2. package/dist/nutui.umd.js +364 -203
  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 +18 -4
  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 +47 -47
  107. package/dist/styles/themes/jdt.scss +47 -47
  108. package/dist/types/__VUE/actionsheet/index.d.ts +15 -4
  109. package/dist/types/__VUE/address/index.d.ts +2 -2
  110. package/dist/types/__VUE/calendar/index.d.ts +1 -1
  111. package/dist/types/__VUE/calendaritem/index.d.ts +2 -1
  112. package/dist/types/__VUE/cascader/cascader-item.d.ts +1 -1
  113. package/dist/types/__VUE/countdown/index.d.ts +1 -0
  114. package/dist/types/__VUE/datepicker/index.d.ts +1 -1
  115. package/dist/types/__VUE/dialog/index.d.ts +4 -3
  116. package/dist/types/__VUE/ecard/index.d.ts +1 -1
  117. package/dist/types/__VUE/empty/index.d.ts +1 -0
  118. package/dist/types/__VUE/fixednav/index.d.ts +2 -1
  119. package/dist/types/__VUE/infiniteloading/index.d.ts +4 -4
  120. package/dist/types/__VUE/input/index.d.ts +4 -3
  121. package/dist/types/__VUE/menu/index.d.ts +1 -1
  122. package/dist/types/__VUE/navbar/index.d.ts +1 -2
  123. package/dist/types/__VUE/numberkeyboard/index.d.ts +2 -1
  124. package/dist/types/__VUE/oldpicker/index.d.ts +2 -2
  125. package/dist/types/__VUE/pagination/index.d.ts +1 -0
  126. package/dist/types/__VUE/picker/index.d.ts +3 -2
  127. package/dist/types/__VUE/popover/index.d.ts +2 -2
  128. package/dist/types/__VUE/popup/index.d.ts +3 -3
  129. package/dist/types/__VUE/progress/index.d.ts +1 -0
  130. package/dist/types/__VUE/range/index.d.ts +1 -1
  131. package/dist/types/__VUE/searchbar/index.d.ts +1 -0
  132. package/dist/types/__VUE/shortpassword/index.d.ts +2 -1
  133. package/dist/types/__VUE/sku/index.d.ts +2 -2
  134. package/dist/types/__VUE/swipe/index.d.ts +2 -2
  135. package/dist/types/__VUE/switch/index.d.ts +1 -1
  136. package/dist/types/__VUE/table/common.d.ts +2 -1
  137. package/dist/types/__VUE/table/index.d.ts +1 -0
  138. package/dist/types/__VUE/textarea/index.d.ts +1 -0
  139. package/dist/types/__VUE/video/index.d.ts +1 -0
  140. package/package.json +1 -1
  141. package/dist/packages/_es/util.js +0 -47
package/dist/nutui.es.js CHANGED
@@ -35,15 +35,177 @@ var __publicField = (obj, key, value) => {
35
35
  return value;
36
36
  };
37
37
  /*!
38
- * @nutui/nutui v3.1.19-beta.3 Fri Apr 08 2022 09:46:24 GMT+0800 (中国标准时间)
38
+ * @nutui/nutui v3.1.19-beta.4 Tue Apr 12 2022 17:39:13 GMT+0800 (中国标准时间)
39
39
  * (c) 2022 @jdf2e.
40
40
  * Released under the MIT License.
41
41
  */
42
- import { defineComponent, h, toRefs, computed, resolveComponent, openBlock, createElementBlock, normalizeClass, normalizeStyle, createElementVNode, createBlock, createCommentVNode, renderSlot, getCurrentInstance, Fragment, toDisplayString, createTextVNode, watch, onDeactivated, onBeforeUnmount, onMounted, onActivated, Transition, withCtx, withDirectives, withModifiers, vShow, reactive, onBeforeMount, Teleport, createVNode, inject, provide, unref, ref, onUnmounted, shallowReactive, markRaw, isVNode, renderList, mergeProps, nextTick, watchEffect, createSlots, readonly, vModelText, toRaw, render, useSlots } from "vue";
42
+ import { ref, reactive, defineComponent, h, toRefs, computed, resolveComponent, openBlock, createElementBlock, normalizeClass, normalizeStyle, createElementVNode, createBlock, createCommentVNode, renderSlot, getCurrentInstance, Fragment, toDisplayString, createTextVNode, watch, onDeactivated, onBeforeUnmount, onMounted, onActivated, Transition, withCtx, withDirectives, withModifiers, vShow, onBeforeMount, Teleport, createVNode, inject, provide, unref, onUnmounted, shallowReactive, markRaw, isVNode, renderList, mergeProps, nextTick, watchEffect, createSlots, readonly, vModelText, toRaw, useSlots, render } from "vue";
43
+ const lang$1 = {
44
+ save: "\u4FDD\u5B58",
45
+ confirm: "\u786E\u8BA4",
46
+ cancel: "\u53D6\u6D88",
47
+ done: "\u5B8C\u6210",
48
+ noData: "\u6682\u65E0\u6570\u636E",
49
+ placeholder: "\u8BF7\u8F93\u5165",
50
+ select: "\u8BF7\u9009\u62E9",
51
+ video: {
52
+ errorTip: "\u89C6\u9891\u52A0\u8F7D\u5931\u8D25",
53
+ clickRetry: "\u70B9\u51FB\u91CD\u8BD5"
54
+ },
55
+ fixednav: {
56
+ activeText: "\u6536\u8D77\u5BFC\u822A",
57
+ unActiveText: "\u5FEB\u901F\u5BFC\u822A"
58
+ },
59
+ pagination: {
60
+ prev: "\u4E0A\u4E00\u9875",
61
+ next: "\u4E0B\u4E00\u9875"
62
+ },
63
+ calendaritem: {
64
+ weekdays: ["\u65E5", "\u4E00", "\u4E8C", "\u4E09", "\u56DB", "\u4E94", "\u516D"],
65
+ end: "\u7ED3\u675F",
66
+ start: "\u5F00\u59CB",
67
+ title: "\u65E5\u5386\u9009\u62E9",
68
+ monthTitle: (year, month) => `${year}\u5E74${month}\u6708`,
69
+ today: "\u4ECA\u5929"
70
+ },
71
+ shortpassword: {
72
+ title: "\u8BF7\u8F93\u5165\u5BC6\u7801",
73
+ desc: "\u60A8\u4F7F\u7528\u4E86\u865A\u62DF\u8D44\u4EA7\uFF0C\u8BF7\u8FDB\u884C\u9A8C\u8BC1",
74
+ tips: "\u5FD8\u8BB0\u5BC6\u7801"
75
+ },
76
+ uploader: {
77
+ ready: "\u51C6\u5907\u5B8C\u6210",
78
+ readyUpload: "\u51C6\u5907\u4E0A\u4F20",
79
+ waitingUpload: "\u7B49\u5F85\u4E0A\u4F20",
80
+ uploading: "\u4E0A\u4F20\u4E2D",
81
+ success: "\u4E0A\u4F20\u6210\u529F",
82
+ error: "\u4E0A\u4F20\u5931\u8D25"
83
+ },
84
+ countdown: {
85
+ day: "\u5929",
86
+ hour: "\u65F6",
87
+ minute: "\u5206",
88
+ second: "\u79D2"
89
+ }
90
+ };
91
+ const lang = {
92
+ save: "Save",
93
+ confirm: "Confirm",
94
+ cancel: "Cancel",
95
+ done: "Done",
96
+ noData: "No Data",
97
+ placeholder: "Placeholder",
98
+ select: "Select",
99
+ video: {
100
+ errorTip: "Error Tip",
101
+ clickRetry: "Click Retry"
102
+ },
103
+ fixednav: {
104
+ activeText: "Close Nav",
105
+ unActiveText: "Open Nav"
106
+ },
107
+ pagination: {
108
+ prev: "Previous",
109
+ next: "Next"
110
+ },
111
+ calendaritem: {
112
+ weekdays: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
113
+ end: "End",
114
+ start: "Start",
115
+ title: "Calendar",
116
+ monthTitle: (year, month) => `${year}/${month}`,
117
+ today: "Today"
118
+ },
119
+ shortpassword: {
120
+ title: "Please input a password",
121
+ desc: "Verify",
122
+ tips: "Forget password"
123
+ },
124
+ uploader: {
125
+ ready: "Ready",
126
+ readyUpload: "Ready to upload",
127
+ waitingUpload: "Waiting for upload",
128
+ uploading: "Uploading",
129
+ success: "Upload successful",
130
+ error: "Upload failed"
131
+ },
132
+ countdown: {
133
+ day: " Day ",
134
+ hour: " Hour ",
135
+ minute: " Minute ",
136
+ second: " Second "
137
+ }
138
+ };
139
+ const currentLang = ref("zh-CN");
140
+ const langs = reactive({
141
+ "zh-CN": lang$1,
142
+ "en-US": lang
143
+ });
144
+ class Locale {
145
+ static languages() {
146
+ return langs[currentLang.value];
147
+ }
148
+ static use(lang2) {
149
+ currentLang.value = lang2;
150
+ }
151
+ }
152
+ const TypeOfFun = (value) => {
153
+ if (value === null) {
154
+ return "null";
155
+ }
156
+ const type = typeof value;
157
+ if (type === "undefined" || type === "string") {
158
+ return type;
159
+ }
160
+ const typeString = toString.call(value);
161
+ switch (typeString) {
162
+ case "[object Array]":
163
+ return "array";
164
+ case "[object Date]":
165
+ return "date";
166
+ case "[object Boolean]":
167
+ return "boolean";
168
+ case "[object Number]":
169
+ return "number";
170
+ case "[object Function]":
171
+ return "function";
172
+ case "[object RegExp]":
173
+ return "regexp";
174
+ case "[object Object]":
175
+ if (value.nodeType !== void 0) {
176
+ if (value.nodeType == 3) {
177
+ return /\S/.test(value.nodeValue) ? "textnode" : "whitespace";
178
+ } else {
179
+ return "element";
180
+ }
181
+ } else {
182
+ return "object";
183
+ }
184
+ default:
185
+ return "unknow";
186
+ }
187
+ };
188
+ const isFunction = (val) => typeof val === "function";
189
+ const isObject = (val) => val !== null && typeof val === "object";
190
+ const isPromise = (val) => {
191
+ return isObject(val) && isFunction(val.then) && isFunction(val.catch);
192
+ };
193
+ const getPropByPath = (obj, keyPath) => {
194
+ try {
195
+ return keyPath.split(".").reduce((prev, curr) => prev[curr], obj);
196
+ } catch (error) {
197
+ return "";
198
+ }
199
+ };
43
200
  function createComponent(name) {
201
+ const languages = Locale.languages();
44
202
  const componentName2 = "nut-" + name;
45
203
  return {
46
204
  componentName: componentName2,
205
+ translate(keyPath, ...args) {
206
+ const text = getPropByPath(languages, `${name.replace("-", "")}.${keyPath}`) || getPropByPath(languages, keyPath);
207
+ return isFunction(text) ? text(...args) : text;
208
+ },
47
209
  create: function(_component) {
48
210
  _component.baseName = name;
49
211
  _component.name = componentName2;
@@ -1316,7 +1478,7 @@ const _sfc_main$1k = create$1k({
1316
1478
  default: false
1317
1479
  }
1318
1480
  },
1319
- emits: ["click", "on-click-back", "on-click-title", "on-click-icon", "on-click-right"],
1481
+ emits: ["on-click-back", "on-click-title", "on-click-icon", "on-click-right"],
1320
1482
  setup(props, { emit }) {
1321
1483
  const { fixed, safeAreaInsetTop } = toRefs(props);
1322
1484
  const classes = computed(() => {
@@ -1390,7 +1552,7 @@ function _sfc_render$1f(_ctx, _cache, $props, $setup, $data, $options) {
1390
1552
  ], 2);
1391
1553
  }
1392
1554
  var Navbar = /* @__PURE__ */ _export_sfc(_sfc_main$1k, [["render", _sfc_render$1f]]);
1393
- const { componentName: componentName$_, create: create$1j } = createComponent("fixednav");
1555
+ const { componentName: componentName$_, create: create$1j, translate: translate$f } = createComponent("fixednav");
1394
1556
  const _sfc_main$1j = create$1j({
1395
1557
  components: {
1396
1558
  [OverLay.name]: OverLay
@@ -1409,11 +1571,11 @@ const _sfc_main$1j = create$1j({
1409
1571
  type: Array
1410
1572
  },
1411
1573
  activeText: {
1412
- default: "\u6536\u8D77\u5BFC\u822A",
1574
+ default: "",
1413
1575
  type: String
1414
1576
  },
1415
1577
  unActiveText: {
1416
- default: "\u5FEB\u901F\u5BFC\u822A",
1578
+ default: "",
1417
1579
  type: String
1418
1580
  },
1419
1581
  position: {
@@ -1430,7 +1592,6 @@ const _sfc_main$1j = create$1j({
1430
1592
  type: String
1431
1593
  }
1432
1594
  },
1433
- components: {},
1434
1595
  emits: ["update:visible", "selected"],
1435
1596
  setup(props, { emit }) {
1436
1597
  const classes = computed(() => {
@@ -1450,7 +1611,7 @@ const _sfc_main$1j = create$1j({
1450
1611
  event
1451
1612
  });
1452
1613
  };
1453
- return { classes, updateValue, selected };
1614
+ return { classes, updateValue, selected, translate: translate$f };
1454
1615
  }
1455
1616
  });
1456
1617
  const _hoisted_1$$ = { class: "nut-fixednav__list" };
@@ -1501,7 +1662,7 @@ function _sfc_render$1e(_ctx, _cache, $props, $setup, $data, $options) {
1501
1662
  name: "left",
1502
1663
  color: "#fff"
1503
1664
  }),
1504
- createElementVNode("view", _hoisted_6$k, toDisplayString(_ctx.visible ? _ctx.activeText : _ctx.unActiveText), 1)
1665
+ createElementVNode("view", _hoisted_6$k, toDisplayString(_ctx.visible ? _ctx.activeText || _ctx.translate("activeText") : _ctx.unActiveText || _ctx.translate("unActiveText")), 1)
1505
1666
  ])
1506
1667
  ])
1507
1668
  ], 6);
@@ -2177,7 +2338,7 @@ function _sfc_render$19(_ctx, _cache, $props, $setup, $data, $options) {
2177
2338
  ], 2);
2178
2339
  }
2179
2340
  var Elevator = /* @__PURE__ */ _export_sfc(_sfc_main$1e, [["render", _sfc_render$19]]);
2180
- const { componentName: componentName$W, create: create$1d } = createComponent("pagination");
2341
+ const { componentName: componentName$W, create: create$1d, translate: translate$e } = createComponent("pagination");
2181
2342
  const _sfc_main$1d = create$1d({
2182
2343
  props: {
2183
2344
  modelValue: {
@@ -2190,11 +2351,11 @@ const _sfc_main$1d = create$1d({
2190
2351
  },
2191
2352
  prevText: {
2192
2353
  type: String,
2193
- default: "\u4E0A\u4E00\u9875"
2354
+ default: ""
2194
2355
  },
2195
2356
  nextText: {
2196
2357
  type: String,
2197
- default: "\u4E0B\u4E00\u9875"
2358
+ default: ""
2198
2359
  },
2199
2360
  pageCount: {
2200
2361
  type: [String, Number],
@@ -2279,7 +2440,8 @@ const _sfc_main$1d = create$1d({
2279
2440
  countRef,
2280
2441
  mode,
2281
2442
  pages,
2282
- forceEllipses
2443
+ forceEllipses,
2444
+ translate: translate$e
2283
2445
  };
2284
2446
  }
2285
2447
  });
@@ -2301,7 +2463,7 @@ function _sfc_render$18(_ctx, _cache, $props, $setup, $data, $options) {
2301
2463
  onClick: _cache[0] || (_cache[0] = ($event) => _ctx.select(_ctx.modelValue - 1, true))
2302
2464
  }, [
2303
2465
  renderSlot(_ctx.$slots, "prev-text", {}, () => [
2304
- createTextVNode(toDisplayString(_ctx.prevText), 1)
2466
+ createTextVNode(toDisplayString(_ctx.prevText || _ctx.translate("prev")), 1)
2305
2467
  ])
2306
2468
  ], 2),
2307
2469
  _ctx.mode == "multi" ? (openBlock(), createElementBlock("view", _hoisted_2$M, [
@@ -2325,7 +2487,7 @@ function _sfc_render$18(_ctx, _cache, $props, $setup, $data, $options) {
2325
2487
  onClick: _cache[1] || (_cache[1] = ($event) => _ctx.select(_ctx.modelValue + 1, true))
2326
2488
  }, [
2327
2489
  renderSlot(_ctx.$slots, "next-text", {}, () => [
2328
- createTextVNode(toDisplayString(_ctx.nextText), 1)
2490
+ createTextVNode(toDisplayString(_ctx.nextText || _ctx.translate("next")), 1)
2329
2491
  ])
2330
2492
  ], 2)
2331
2493
  ]);
@@ -3161,7 +3323,7 @@ const _hoisted_6$i = {
3161
3323
  key: 0,
3162
3324
  class: "number"
3163
3325
  };
3164
- const _hoisted_7$d = {
3326
+ const _hoisted_7$e = {
3165
3327
  key: 1,
3166
3328
  class: "max"
3167
3329
  };
@@ -3254,11 +3416,11 @@ function _sfc_render$11(_ctx, _cache, $props, $setup, $data, $options) {
3254
3416
  ], 40, _hoisted_5$k))
3255
3417
  ], 4)
3256
3418
  ], 6),
3257
- !_ctx.hiddenRange ? (openBlock(), createElementBlock("view", _hoisted_7$d, toDisplayString(+_ctx.max), 1)) : createCommentVNode("", true)
3419
+ !_ctx.hiddenRange ? (openBlock(), createElementBlock("view", _hoisted_7$e, toDisplayString(+_ctx.max), 1)) : createCommentVNode("", true)
3258
3420
  ], 2);
3259
3421
  }
3260
3422
  var Range = /* @__PURE__ */ _export_sfc(_sfc_main$16, [["render", _sfc_render$11]]);
3261
- const { create: create$15 } = createComponent("searchbar");
3423
+ const { create: create$15, translate: translate$d } = createComponent("searchbar");
3262
3424
  const _sfc_main$15 = create$15({
3263
3425
  props: {
3264
3426
  modelValue: {
@@ -3275,7 +3437,7 @@ const _sfc_main$15 = create$15({
3275
3437
  },
3276
3438
  placeholder: {
3277
3439
  type: String,
3278
- default: "\u8BF7\u8F93\u5165"
3440
+ default: ""
3279
3441
  },
3280
3442
  clearable: {
3281
3443
  type: Boolean,
@@ -3346,7 +3508,8 @@ const _sfc_main$15 = create$15({
3346
3508
  handleClear,
3347
3509
  handleSubmit,
3348
3510
  searchbarStyle,
3349
- inputSearchbarStyle
3511
+ inputSearchbarStyle,
3512
+ translate: translate$d
3350
3513
  });
3351
3514
  }
3352
3515
  });
@@ -3393,7 +3556,7 @@ function _sfc_render$10(_ctx, _cache, $props, $setup, $data, $options) {
3393
3556
  class: "nut-searchbar__input-bar",
3394
3557
  type: _ctx.inputType,
3395
3558
  maxlength: _ctx.maxLength,
3396
- placeholder: _ctx.placeholder,
3559
+ placeholder: _ctx.placeholder || _ctx.translate("placeholder"),
3397
3560
  value: _ctx.modelValue,
3398
3561
  onInput: _cache[0] || (_cache[0] = (...args) => _ctx.valueChange && _ctx.valueChange(...args)),
3399
3562
  onFocus: _cache[1] || (_cache[1] = (...args) => _ctx.valueFocus && _ctx.valueFocus(...args)),
@@ -3545,7 +3708,7 @@ class Tree {
3545
3708
  return Array.isArray(children) && Boolean(children.length);
3546
3709
  }
3547
3710
  }
3548
- const { create: create$14 } = createComponent("cascader-item");
3711
+ const { create: create$14, translate: translate$c } = createComponent("cascader-item");
3549
3712
  const _sfc_main$14 = create$14({
3550
3713
  props: {
3551
3714
  visible: Boolean,
@@ -3737,7 +3900,7 @@ const _sfc_main$14 = create$14({
3737
3900
  tabsCursor.value = tab.paneKey;
3738
3901
  },
3739
3902
  formatTabTitle(pane) {
3740
- return pane.selectedNode ? pane.selectedNode.text : "\u8BF7\u9009\u62E9";
3903
+ return pane.selectedNode ? pane.selectedNode.text : translate$c("select");
3741
3904
  },
3742
3905
  isSelected(pane, node) {
3743
3906
  return pane.selectedNode && pane.selectedNode.value === node.value;
@@ -4020,7 +4183,7 @@ function requestAniFrame() {
4020
4183
  }
4021
4184
  }
4022
4185
  var requestAniFrame$1 = requestAniFrame();
4023
- const { create: create$12 } = createComponent("calendar-item");
4186
+ const { create: create$12, translate: translate$b } = createComponent("calendar-item");
4024
4187
  const _sfc_main$12 = create$12({
4025
4188
  props: {
4026
4189
  type: {
@@ -4049,19 +4212,19 @@ const _sfc_main$12 = create$12({
4049
4212
  },
4050
4213
  title: {
4051
4214
  type: String,
4052
- default: "\u65E5\u5386\u9009\u62E9"
4215
+ default: ""
4053
4216
  },
4054
4217
  confirmText: {
4055
4218
  type: String,
4056
- default: "\u786E\u8BA4"
4219
+ default: ""
4057
4220
  },
4058
4221
  startText: {
4059
4222
  type: String,
4060
- default: "\u5F00\u59CB"
4223
+ default: ""
4061
4224
  },
4062
4225
  endText: {
4063
4226
  type: String,
4064
- default: "\u7ED3\u675F"
4227
+ default: ""
4065
4228
  },
4066
4229
  defaultValue: {
4067
4230
  type: [String, Array],
@@ -4078,7 +4241,7 @@ const _sfc_main$12 = create$12({
4078
4241
  },
4079
4242
  emits: ["choose", "update", "close", "select"],
4080
4243
  setup(props, { emit, slots }) {
4081
- const weeks = ref(["\u65E5", "\u4E00", "\u4E8C", "\u4E09", "\u56DB", "\u4E94", "\u516D"]);
4244
+ const weeks = ref(translate$b("weekdays"));
4082
4245
  const months = ref(null);
4083
4246
  const monthsPanel = ref(null);
4084
4247
  const weeksPanel = ref(null);
@@ -4260,7 +4423,7 @@ const _sfc_main$12 = create$12({
4260
4423
  };
4261
4424
  const monthInfo = {
4262
4425
  curData,
4263
- title: `${title.year}\u5E74${title.month}\u6708`,
4426
+ title: translate$b("monthTitle", title.year, title.month),
4264
4427
  monthData: [
4265
4428
  ...getPreDaysStatus(preMonthDays, "prev", { month: preMonth, year: preYear }, preCurrMonthDays),
4266
4429
  ...getDaysStatus(currMonthDays, "curr", title)
@@ -4333,11 +4496,11 @@ const _sfc_main$12 = create$12({
4333
4496
  let current = 0;
4334
4497
  let lastCurrent = 0;
4335
4498
  state.monthsData.forEach((item, index) => {
4336
- if (item.title == `${state.defaultData[0]}\u5E74${state.defaultData[1]}\u6708`) {
4499
+ if (item.title == translate$b("monthTitle", state.defaultData[0], state.defaultData[1])) {
4337
4500
  current = index;
4338
4501
  }
4339
4502
  if (state.isRange) {
4340
- if (item.title == `${state.defaultData[3]}\u5E74${state.defaultData[4]}\u6708`) {
4503
+ if (item.title == translate$b("monthTitle", state.defaultData[3], state.defaultData[4])) {
4341
4504
  lastCurrent = index;
4342
4505
  }
4343
4506
  }
@@ -4443,7 +4606,7 @@ const _sfc_main$12 = create$12({
4443
4606
  }
4444
4607
  }
4445
4608
  });
4446
- return __spreadValues(__spreadValues({
4609
+ return __spreadProps(__spreadValues(__spreadValues({
4447
4610
  weeks,
4448
4611
  compConthsData,
4449
4612
  showTopBtn,
@@ -4461,7 +4624,9 @@ const _sfc_main$12 = create$12({
4461
4624
  months,
4462
4625
  weeksPanel,
4463
4626
  viewArea
4464
- }, toRefs(state)), toRefs(props));
4627
+ }, toRefs(state)), toRefs(props)), {
4628
+ translate: translate$b
4629
+ });
4465
4630
  }
4466
4631
  });
4467
4632
  const _hoisted_1$N = {
@@ -4485,7 +4650,7 @@ const _hoisted_5$i = {
4485
4650
  ref: "monthsPanel"
4486
4651
  };
4487
4652
  const _hoisted_6$g = { class: "calendar-month-title" };
4488
- const _hoisted_7$c = { class: "calendar-month-con" };
4653
+ const _hoisted_7$d = { class: "calendar-month-con" };
4489
4654
  const _hoisted_8$a = ["onClick"];
4490
4655
  const _hoisted_9$6 = { class: "calendar-day" };
4491
4656
  const _hoisted_10$4 = {
@@ -4518,7 +4683,7 @@ function _sfc_render$Z(_ctx, _cache, $props, $setup, $data, $options) {
4518
4683
  createElementVNode("view", {
4519
4684
  class: normalizeClass(["nut-calendar-header", { "nut-calendar-header-tile": !_ctx.poppable }])
4520
4685
  }, [
4521
- _ctx.showTitle ? (openBlock(), createElementBlock("view", _hoisted_1$N, toDisplayString(_ctx.title), 1)) : createCommentVNode("", true),
4686
+ _ctx.showTitle ? (openBlock(), createElementBlock("view", _hoisted_1$N, toDisplayString(_ctx.title || _ctx.translate("title")), 1)) : createCommentVNode("", true),
4522
4687
  _ctx.showTopBtn ? (openBlock(), createElementBlock("view", _hoisted_2$F, [
4523
4688
  renderSlot(_ctx.$slots, "btn")
4524
4689
  ])) : createCommentVNode("", true),
@@ -4549,7 +4714,7 @@ function _sfc_render$Z(_ctx, _cache, $props, $setup, $data, $options) {
4549
4714
  key: index
4550
4715
  }, [
4551
4716
  createElementVNode("view", _hoisted_6$g, toDisplayString(month.title), 1),
4552
- createElementVNode("view", _hoisted_7$c, [
4717
+ createElementVNode("view", _hoisted_7$d, [
4553
4718
  createElementVNode("view", {
4554
4719
  class: normalizeClass(["calendar-month-item", _ctx.type === "range" ? "month-item-range" : ""])
4555
4720
  }, [
@@ -4576,12 +4741,12 @@ function _sfc_render$Z(_ctx, _cache, $props, $setup, $data, $options) {
4576
4741
  date: day.type == "curr" ? day : ""
4577
4742
  })
4578
4743
  ])) : createCommentVNode("", true),
4579
- !_ctx.bottomInfo && _ctx.showToday && _ctx.isCurrDay(day) ? (openBlock(), createElementBlock("view", _hoisted_12$4, " \u4ECA\u5929 ")) : createCommentVNode("", true),
4744
+ !_ctx.bottomInfo && _ctx.showToday && _ctx.isCurrDay(day) ? (openBlock(), createElementBlock("view", _hoisted_12$4, toDisplayString(_ctx.translate("today")), 1)) : createCommentVNode("", true),
4580
4745
  _ctx.isStartTip(day, month) ? (openBlock(), createElementBlock("view", {
4581
4746
  key: 3,
4582
4747
  class: normalizeClass(["calendar-day-tip", { "calendar-curr-tips-top": _ctx.rangeTip(day, month) }])
4583
- }, toDisplayString(_ctx.startText), 3)) : createCommentVNode("", true),
4584
- _ctx.isEndTip(day, month) ? (openBlock(), createElementBlock("view", _hoisted_13$2, toDisplayString(_ctx.endText), 1)) : createCommentVNode("", true)
4748
+ }, toDisplayString(_ctx.startText || _ctx.translate("start")), 3)) : createCommentVNode("", true),
4749
+ _ctx.isEndTip(day, month) ? (openBlock(), createElementBlock("view", _hoisted_13$2, toDisplayString(_ctx.endText || _ctx.translate("end")), 1)) : createCommentVNode("", true)
4585
4750
  ], 10, _hoisted_8$a);
4586
4751
  }), 128))
4587
4752
  ], 2)
@@ -4595,7 +4760,7 @@ function _sfc_render$Z(_ctx, _cache, $props, $setup, $data, $options) {
4595
4760
  createElementVNode("view", {
4596
4761
  class: "calendar-confirm-btn",
4597
4762
  onClick: _cache[1] || (_cache[1] = (...args) => _ctx.confirm && _ctx.confirm(...args))
4598
- }, toDisplayString(_ctx.confirmText), 1)
4763
+ }, toDisplayString(_ctx.confirmText || _ctx.translate("confirm")), 1)
4599
4764
  ])) : createCommentVNode("", true)
4600
4765
  ], 2);
4601
4766
  }
@@ -4636,19 +4801,19 @@ const _sfc_main$11 = create$11({
4636
4801
  },
4637
4802
  title: {
4638
4803
  type: String,
4639
- default: "\u65E5\u5386\u9009\u62E9"
4804
+ default: ""
4640
4805
  },
4641
4806
  confirmText: {
4642
4807
  type: String,
4643
- default: "\u786E\u8BA4"
4808
+ default: ""
4644
4809
  },
4645
4810
  startText: {
4646
4811
  type: String,
4647
- default: "\u5F00\u59CB"
4812
+ default: ""
4648
4813
  },
4649
4814
  endText: {
4650
4815
  type: String,
4651
- default: "\u7ED3\u675F"
4816
+ default: ""
4652
4817
  },
4653
4818
  defaultValue: {
4654
4819
  type: [String, Array]
@@ -5205,7 +5370,7 @@ function _sfc_render$X(_ctx, _cache, $props, $setup, $data, $options) {
5205
5370
  ], 32);
5206
5371
  }
5207
5372
  var column$1 = /* @__PURE__ */ _export_sfc(_sfc_main$_, [["render", _sfc_render$X]]);
5208
- const { componentName: componentName$O, create: create$Z } = createComponent("picker");
5373
+ const { componentName: componentName$O, create: create$Z, translate: translate$a } = createComponent("picker");
5209
5374
  const _sfc_main$Z = create$Z({
5210
5375
  components: {
5211
5376
  [column$1.name]: column$1,
@@ -5222,11 +5387,11 @@ const _sfc_main$Z = create$Z({
5222
5387
  },
5223
5388
  cancelText: {
5224
5389
  type: String,
5225
- default: "\u53D6\u6D88"
5390
+ default: ""
5226
5391
  },
5227
5392
  okText: {
5228
5393
  type: String,
5229
- default: "\u786E\u5B9A"
5394
+ default: ""
5230
5395
  },
5231
5396
  columns: {
5232
5397
  type: Array,
@@ -5371,7 +5536,8 @@ const _sfc_main$Z = create$Z({
5371
5536
  close,
5372
5537
  changeHandler,
5373
5538
  confirmHandler,
5374
- defaultValues
5539
+ defaultValues,
5540
+ translate: translate$a
5375
5541
  });
5376
5542
  }
5377
5543
  });
@@ -5401,12 +5567,12 @@ function _sfc_render$W(_ctx, _cache, $props, $setup, $data, $options) {
5401
5567
  createElementVNode("view", {
5402
5568
  class: "nut-picker__cancel nut-picker__left nut-picker__button",
5403
5569
  onClick: _cache[0] || (_cache[0] = (...args) => _ctx.close && _ctx.close(...args))
5404
- }, toDisplayString(_ctx.cancelText), 1),
5570
+ }, toDisplayString(_ctx.cancelText || _ctx.translate("cancel")), 1),
5405
5571
  createElementVNode("view", _hoisted_2$D, toDisplayString(_ctx.title), 1),
5406
5572
  createElementVNode("view", {
5407
5573
  class: "nut-picker__confirm nut-picker__right nut-picker__button",
5408
5574
  onClick: _cache[1] || (_cache[1] = ($event) => _ctx.confirmHandler())
5409
- }, toDisplayString(_ctx.okText), 1)
5575
+ }, toDisplayString(_ctx.okText || _ctx.translate("confirm")), 1)
5410
5576
  ]),
5411
5577
  createElementVNode("view", _hoisted_3$v, [
5412
5578
  _hoisted_4$p,
@@ -5466,11 +5632,11 @@ const _sfc_main$Y = create$Y({
5466
5632
  },
5467
5633
  okText: {
5468
5634
  type: String,
5469
- default: "\u786E\u5B9A"
5635
+ default: ""
5470
5636
  },
5471
5637
  cancelText: {
5472
5638
  type: String,
5473
- default: "\u53D6\u6D88"
5639
+ default: ""
5474
5640
  },
5475
5641
  type: {
5476
5642
  type: String,
@@ -5894,7 +6060,7 @@ function formatNumber(value, allowDot = true, allowMinus = true) {
5894
6060
  const regExp = allowDot ? /[^-0-9.]/g : /[^-0-9]/g;
5895
6061
  return value.replace(regExp, "");
5896
6062
  }
5897
- const { componentName: componentName$L, create: create$W } = createComponent("input");
6063
+ const { componentName: componentName$L, create: create$W, translate: translate$9 } = createComponent("input");
5898
6064
  const _sfc_main$W = create$W({
5899
6065
  props: {
5900
6066
  ref: {
@@ -5911,7 +6077,7 @@ const _sfc_main$W = create$W({
5911
6077
  },
5912
6078
  placeholder: {
5913
6079
  type: String,
5914
- default: "\u8BF7\u8F93\u5165\u4FE1\u606F"
6080
+ default: ""
5915
6081
  },
5916
6082
  label: {
5917
6083
  type: String,
@@ -5957,7 +6123,7 @@ const _sfc_main$W = create$W({
5957
6123
  type: Boolean,
5958
6124
  default: false
5959
6125
  },
5960
- maxNum: {
6126
+ maxLength: {
5961
6127
  type: [String, Number],
5962
6128
  default: ""
5963
6129
  },
@@ -6122,8 +6288,8 @@ const _sfc_main$W = create$W({
6122
6288
  }, 200);
6123
6289
  const input = event.target;
6124
6290
  let value = input.value;
6125
- if (props.maxNum && value.length > Number(props.maxNum)) {
6126
- value = value.slice(0, Number(props.maxNum));
6291
+ if (props.maxLength && value.length > Number(props.maxLength)) {
6292
+ value = value.slice(0, Number(props.maxLength));
6127
6293
  }
6128
6294
  updateValue(getModelValue(), "onBlur");
6129
6295
  emit("blur", value, event);
@@ -6164,14 +6330,15 @@ const _sfc_main$W = create$W({
6164
6330
  clear,
6165
6331
  onClickInput,
6166
6332
  onClickLeftIcon,
6167
- onClickRightIcon
6333
+ onClickRightIcon,
6334
+ translate: translate$9
6168
6335
  };
6169
6336
  }
6170
6337
  });
6171
6338
  const _hoisted_1$J = { class: "label-string" };
6172
6339
  const _hoisted_2$C = { class: "nut-input-value" };
6173
6340
  const _hoisted_3$u = ["maxlength", "placeholder", "disabled", "readonly", "value", "formatTrigger", "autofocus"];
6174
- const _hoisted_4$o = ["type", "maxNum", "placeholder", "disabled", "readonly", "value", "formatTrigger", "autofocus"];
6341
+ const _hoisted_4$o = ["type", "maxlength", "placeholder", "disabled", "readonly", "value", "formatTrigger", "autofocus"];
6175
6342
  const _hoisted_5$h = {
6176
6343
  key: 0,
6177
6344
  class: "nut-input-word-limit"
@@ -6213,7 +6380,7 @@ function _sfc_render$T(_ctx, _cache, $props, $setup, $data, $options) {
6213
6380
  ref: "inputRef",
6214
6381
  style: normalizeStyle(_ctx.stylesTextarea),
6215
6382
  maxlength: _ctx.maxLength,
6216
- placeholder: _ctx.placeholder,
6383
+ placeholder: _ctx.placeholder || _ctx.translate("placeholder"),
6217
6384
  disabled: _ctx.disabled,
6218
6385
  readonly: _ctx.readonly,
6219
6386
  value: _ctx.modelValue,
@@ -6228,8 +6395,8 @@ function _sfc_render$T(_ctx, _cache, $props, $setup, $data, $options) {
6228
6395
  ref: "inputRef",
6229
6396
  style: normalizeStyle(_ctx.styles),
6230
6397
  type: _ctx.inputType(_ctx.type),
6231
- maxNum: _ctx.maxNum,
6232
- placeholder: _ctx.placeholder,
6398
+ maxlength: _ctx.maxLength,
6399
+ placeholder: _ctx.placeholder || _ctx.translate("placeholder"),
6233
6400
  disabled: _ctx.disabled,
6234
6401
  readonly: _ctx.readonly,
6235
6402
  value: _ctx.modelValue,
@@ -6263,9 +6430,9 @@ function _sfc_render$T(_ctx, _cache, $props, $setup, $data, $options) {
6263
6430
  class: "nut-input-button"
6264
6431
  }) : createCommentVNode("", true)
6265
6432
  ]),
6266
- _ctx.showWordLimit && _ctx.maxNum ? (openBlock(), createElementBlock("view", _hoisted_5$h, [
6433
+ _ctx.showWordLimit && _ctx.maxLength ? (openBlock(), createElementBlock("view", _hoisted_5$h, [
6267
6434
  createElementVNode("span", _hoisted_6$f, toDisplayString(_ctx.modelValue ? _ctx.modelValue.length : 0), 1),
6268
- createTextVNode("/" + toDisplayString(_ctx.maxNum), 1)
6435
+ createTextVNode("/" + toDisplayString(_ctx.maxLength), 1)
6269
6436
  ])) : createCommentVNode("", true),
6270
6437
  _ctx.errorMessage ? (openBlock(), createElementBlock("view", {
6271
6438
  key: 1,
@@ -6529,20 +6696,20 @@ function _sfc_render$S(_ctx, _cache, $props, $setup, $data, $options) {
6529
6696
  ], 2);
6530
6697
  }
6531
6698
  var Rate = /* @__PURE__ */ _export_sfc(_sfc_main$T, [["render", _sfc_render$S]]);
6532
- const { create: create$S } = createComponent("shortpassword");
6699
+ const { create: create$S, translate: translate$8 } = createComponent("shortpassword");
6533
6700
  const _sfc_main$S = create$S({
6534
6701
  props: {
6535
6702
  title: {
6536
6703
  type: String,
6537
- default: "\u8BF7\u8F93\u5165\u5BC6\u7801"
6704
+ default: ""
6538
6705
  },
6539
6706
  desc: {
6540
6707
  type: String,
6541
- default: "\u60A8\u4F7F\u7528\u4E86\u865A\u62DF\u8D44\u4EA7\uFF0C\u8BF7\u8FDB\u884C\u9A8C\u8BC1"
6708
+ default: ""
6542
6709
  },
6543
6710
  tips: {
6544
6711
  type: String,
6545
- default: "\u5FD8\u8BB0\u5BC6\u7801"
6712
+ default: ""
6546
6713
  },
6547
6714
  visible: {
6548
6715
  type: Boolean,
@@ -6650,7 +6817,8 @@ const _sfc_main$S = create$S({
6650
6817
  onTips,
6651
6818
  show,
6652
6819
  systemStyle,
6653
- closeIcon
6820
+ closeIcon,
6821
+ translate: translate$8
6654
6822
  };
6655
6823
  }
6656
6824
  });
@@ -6663,7 +6831,7 @@ const _hoisted_5$g = {
6663
6831
  class: "nut-shortpsd-icon"
6664
6832
  };
6665
6833
  const _hoisted_6$e = { class: "nut-shortpsd-message" };
6666
- const _hoisted_7$b = { class: "nut-shortpsd-error" };
6834
+ const _hoisted_7$c = { class: "nut-shortpsd-error" };
6667
6835
  const _hoisted_8$9 = {
6668
6836
  key: 0,
6669
6837
  class: "nut-shortpsd-forget"
@@ -6691,8 +6859,8 @@ function _sfc_render$R(_ctx, _cache, $props, $setup, $data, $options) {
6691
6859
  isWrapTeleport: _ctx.isWrapTeleport
6692
6860
  }, {
6693
6861
  default: withCtx(() => [
6694
- createElementVNode("view", _hoisted_1$H, toDisplayString(_ctx.title), 1),
6695
- createElementVNode("view", _hoisted_2$B, toDisplayString(_ctx.desc), 1),
6862
+ createElementVNode("view", _hoisted_1$H, toDisplayString(_ctx.title || _ctx.translate("title")), 1),
6863
+ createElementVNode("view", _hoisted_2$B, toDisplayString(_ctx.desc || _ctx.translate("desc")), 1),
6696
6864
  createElementVNode("div", _hoisted_3$t, [
6697
6865
  withDirectives(createElementVNode("input", {
6698
6866
  ref: "realpwd",
@@ -6721,8 +6889,8 @@ function _sfc_render$R(_ctx, _cache, $props, $setup, $data, $options) {
6721
6889
  ])
6722
6890
  ]),
6723
6891
  createElementVNode("view", _hoisted_6$e, [
6724
- createElementVNode("view", _hoisted_7$b, toDisplayString(_ctx.errorMsg), 1),
6725
- _ctx.tips ? (openBlock(), createElementBlock("view", _hoisted_8$9, [
6892
+ createElementVNode("view", _hoisted_7$c, toDisplayString(_ctx.errorMsg), 1),
6893
+ _ctx.tips || _ctx.translate("tips") ? (openBlock(), createElementBlock("view", _hoisted_8$9, [
6726
6894
  createVNode(_component_nut_icon, {
6727
6895
  class: "icon",
6728
6896
  size: "11px",
@@ -6730,18 +6898,18 @@ function _sfc_render$R(_ctx, _cache, $props, $setup, $data, $options) {
6730
6898
  }),
6731
6899
  createElementVNode("view", {
6732
6900
  onClick: _cache[3] || (_cache[3] = (...args) => _ctx.onTips && _ctx.onTips(...args))
6733
- }, toDisplayString(_ctx.tips), 1)
6901
+ }, toDisplayString(_ctx.tips || _ctx.translate("tips")), 1)
6734
6902
  ])) : createCommentVNode("", true)
6735
6903
  ]),
6736
6904
  !_ctx.noButton ? (openBlock(), createElementBlock("view", _hoisted_9$5, [
6737
6905
  createElementVNode("view", {
6738
6906
  class: "nut-shortpsd-cancle",
6739
6907
  onClick: _cache[4] || (_cache[4] = (...args) => _ctx.close && _ctx.close(...args))
6740
- }, "\u53D6\u6D88"),
6908
+ }, toDisplayString(_ctx.translate("cancel")), 1),
6741
6909
  createElementVNode("view", {
6742
6910
  class: "nut-shortpsd-sure",
6743
6911
  onClick: _cache[5] || (_cache[5] = (...args) => _ctx.sureClick && _ctx.sureClick(...args))
6744
- }, "\u786E\u8BA4")
6912
+ }, toDisplayString(_ctx.translate("confirm")), 1)
6745
6913
  ])) : createCommentVNode("", true)
6746
6914
  ]),
6747
6915
  _: 1
@@ -6749,7 +6917,7 @@ function _sfc_render$R(_ctx, _cache, $props, $setup, $data, $options) {
6749
6917
  ]);
6750
6918
  }
6751
6919
  var ShortPassword = /* @__PURE__ */ _export_sfc(_sfc_main$S, [["render", _sfc_render$R]]);
6752
- const { componentName: componentName$H, create: create$R } = createComponent("textarea");
6920
+ const { componentName: componentName$H, create: create$R, translate: translate$7 } = createComponent("textarea");
6753
6921
  const _sfc_main$R = create$R({
6754
6922
  props: {
6755
6923
  modelValue: {
@@ -6774,7 +6942,7 @@ const _sfc_main$R = create$R({
6774
6942
  },
6775
6943
  placeholder: {
6776
6944
  type: String,
6777
- default: "\u8BF7\u8F93\u5165\u5185\u5BB9"
6945
+ default: ""
6778
6946
  },
6779
6947
  readonly: {
6780
6948
  type: Boolean,
@@ -6872,7 +7040,8 @@ const _sfc_main$R = create$R({
6872
7040
  styles,
6873
7041
  change,
6874
7042
  focus,
6875
- blur
7043
+ blur,
7044
+ translate: translate$7
6876
7045
  };
6877
7046
  }
6878
7047
  });
@@ -6897,7 +7066,7 @@ function _sfc_render$Q(_ctx, _cache, $props, $setup, $data, $options) {
6897
7066
  onBlur: _cache[1] || (_cache[1] = (...args) => _ctx.blur && _ctx.blur(...args)),
6898
7067
  onFocus: _cache[2] || (_cache[2] = (...args) => _ctx.focus && _ctx.focus(...args)),
6899
7068
  maxlength: _ctx.maxLength,
6900
- placeholder: _ctx.placeholder,
7069
+ placeholder: _ctx.placeholder || _ctx.translate("placeholder"),
6901
7070
  autofocus: _ctx.autofocus
6902
7071
  }, null, 44, _hoisted_1$G),
6903
7072
  _ctx.limitShow ? (openBlock(), createElementBlock("view", _hoisted_2$A, toDisplayString(_ctx.modelValue ? _ctx.modelValue.length : 0) + "/" + toDisplayString(_ctx.maxLength), 1)) : createCommentVNode("", true)
@@ -6988,11 +7157,11 @@ class Uploader$1 {
6988
7157
  });
6989
7158
  }
6990
7159
  }
6991
- const { componentName: componentName$G, create: create$Q } = createComponent("uploader");
7160
+ const { componentName: componentName$G, create: create$Q, translate: translate$6 } = createComponent("uploader");
6992
7161
  class FileItem {
6993
7162
  constructor() {
6994
7163
  __publicField(this, "status", "ready");
6995
- __publicField(this, "message", "\u51C6\u5907\u5B8C\u6210");
7164
+ __publicField(this, "message", translate$6("ready"));
6996
7165
  __publicField(this, "uid", new Date().getTime().toString());
6997
7166
  __publicField(this, "name");
6998
7167
  __publicField(this, "url");
@@ -7074,19 +7243,19 @@ const _sfc_main$Q = create$Q({
7074
7243
  uploadOption.withCredentials = props.withCredentials;
7075
7244
  uploadOption.onStart = (option) => {
7076
7245
  fileItem.status = "ready";
7077
- fileItem.message = "\u51C6\u5907\u4E0A\u4F20";
7246
+ fileItem.message = translate$6("readyUpload");
7078
7247
  clearUploadQueue(index);
7079
7248
  emit("start", option);
7080
7249
  };
7081
7250
  uploadOption.onProgress = (event, option) => {
7082
7251
  fileItem.status = "uploading";
7083
- fileItem.message = "\u4E0A\u4F20\u4E2D";
7252
+ fileItem.message = translate$6("uploading");
7084
7253
  fileItem.percentage = (event.loaded / event.total * 100).toFixed(0);
7085
7254
  emit("progress", { event, option, percentage: fileItem.percentage });
7086
7255
  };
7087
7256
  uploadOption.onSuccess = (responseText, option) => {
7088
7257
  fileItem.status = "success";
7089
- fileItem.message = "\u4E0A\u4F20\u6210\u529F";
7258
+ fileItem.message = translate$6("success");
7090
7259
  emit("success", {
7091
7260
  responseText,
7092
7261
  option,
@@ -7096,7 +7265,7 @@ const _sfc_main$Q = create$Q({
7096
7265
  };
7097
7266
  uploadOption.onFailure = (responseText, option) => {
7098
7267
  fileItem.status = "error";
7099
- fileItem.message = "\u4E0A\u4F20\u5931\u8D25";
7268
+ fileItem.message = translate$6("error");
7100
7269
  emit("failure", {
7101
7270
  responseText,
7102
7271
  option,
@@ -7136,7 +7305,7 @@ const _sfc_main$Q = create$Q({
7136
7305
  fileItem.status = "ready";
7137
7306
  fileItem.type = file.type;
7138
7307
  fileItem.formData = formData;
7139
- fileItem.message = "\u7B49\u5F85\u4E0A\u4F20";
7308
+ fileItem.message = translate$6("waitingUpload");
7140
7309
  executeUpload(fileItem, index);
7141
7310
  if (props.isPreview && file.type.includes("image")) {
7142
7311
  const reader = new FileReader();
@@ -7231,7 +7400,7 @@ const _hoisted_5$f = {
7231
7400
  class: "nut-uploader__preview__progress"
7232
7401
  };
7233
7402
  const _hoisted_6$d = { class: "nut-uploader__preview__progress__msg" };
7234
- const _hoisted_7$a = {
7403
+ const _hoisted_7$b = {
7235
7404
  key: 1,
7236
7405
  class: "nut-uploader__preview__progress"
7237
7406
  };
@@ -7289,7 +7458,7 @@ function _sfc_render$P(_ctx, _cache, $props, $setup, $data, $options) {
7289
7458
  _ctx.listType == "picture" && !_ctx.$slots.default ? (openBlock(), createElementBlock("view", _hoisted_4$m, [
7290
7459
  item.status == "ready" ? (openBlock(), createElementBlock("view", _hoisted_5$f, [
7291
7460
  createElementVNode("view", _hoisted_6$d, toDisplayString(item.message), 1)
7292
- ])) : item.status != "success" ? (openBlock(), createElementBlock("view", _hoisted_7$a, [
7461
+ ])) : item.status != "success" ? (openBlock(), createElementBlock("view", _hoisted_7$b, [
7293
7462
  createVNode(_component_nut_icon, {
7294
7463
  color: "#fff",
7295
7464
  name: item.status == "error" ? "failure" : "loading"
@@ -7378,12 +7547,12 @@ function _sfc_render$P(_ctx, _cache, $props, $setup, $data, $options) {
7378
7547
  ], 2);
7379
7548
  }
7380
7549
  var Uploader = /* @__PURE__ */ _export_sfc(_sfc_main$Q, [["render", _sfc_render$P]]);
7381
- const { create: create$P } = createComponent("numberkeyboard");
7550
+ const { create: create$P, translate: translate$5 } = createComponent("numberkeyboard");
7382
7551
  const _sfc_main$P = create$P({
7383
7552
  props: {
7384
7553
  confirmText: {
7385
7554
  type: String,
7386
- default: "\u5B8C\u6210"
7555
+ default: ""
7387
7556
  },
7388
7557
  title: {
7389
7558
  type: String,
@@ -7517,7 +7686,8 @@ const _sfc_main$P = create$P({
7517
7686
  genCustomKeys,
7518
7687
  getBasicKeys,
7519
7688
  root,
7520
- show
7689
+ show,
7690
+ translate: translate$5
7521
7691
  };
7522
7692
  }
7523
7693
  });
@@ -7533,7 +7703,7 @@ const _hoisted_3$r = { class: "tit" };
7533
7703
  const _hoisted_4$l = { class: "number-board-body" };
7534
7704
  const _hoisted_5$e = { class: "number-board" };
7535
7705
  const _hoisted_6$c = ["onTouchstart", "onTouchmove"];
7536
- const _hoisted_7$9 = {
7706
+ const _hoisted_7$a = {
7537
7707
  key: 1,
7538
7708
  src: "https://img11.360buyimg.com/imagetools/jfs/t1/146371/38/8485/738/5f606425Eca239740/14f4b4f5f20d8a68.png"
7539
7709
  };
@@ -7568,7 +7738,7 @@ function _sfc_render$O(_ctx, _cache, $props, $setup, $data, $options) {
7568
7738
  createElementVNode("span", {
7569
7739
  class: "keyboard-close",
7570
7740
  onClick: _cache[0] || (_cache[0] = ($event) => _ctx.closeBoard())
7571
- }, "\u5B8C\u6210")
7741
+ }, toDisplayString(_ctx.translate("done")), 1)
7572
7742
  ])) : createCommentVNode("", true),
7573
7743
  createElementVNode("div", _hoisted_4$l, [
7574
7744
  createElementVNode("div", _hoisted_5$e, [
@@ -7596,7 +7766,7 @@ function _sfc_render$O(_ctx, _cache, $props, $setup, $data, $options) {
7596
7766
  item.type == "number" || item.type == "custom" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
7597
7767
  createTextVNode(toDisplayString(item.id), 1)
7598
7768
  ], 64)) : createCommentVNode("", true),
7599
- item.type == "lock" ? (openBlock(), createElementBlock("img", _hoisted_7$9)) : createCommentVNode("", true),
7769
+ item.type == "lock" ? (openBlock(), createElementBlock("img", _hoisted_7$a)) : createCommentVNode("", true),
7600
7770
  item.type == "delete" ? (openBlock(), createElementBlock("img", _hoisted_8$7)) : createCommentVNode("", true)
7601
7771
  ], 42, _hoisted_6$c)
7602
7772
  ], 2);
@@ -7618,7 +7788,7 @@ function _sfc_render$O(_ctx, _cache, $props, $setup, $data, $options) {
7618
7788
  }, [
7619
7789
  createElementVNode("div", {
7620
7790
  class: normalizeClass(["key", "finish", { activeFinsh: _ctx.clickKeyIndex == "finish" }])
7621
- }, toDisplayString(_ctx.confirmText), 3)
7791
+ }, toDisplayString(_ctx.confirmText || _ctx.translate("done")), 3)
7622
7792
  ])) : createCommentVNode("", true)
7623
7793
  ])) : createCommentVNode("", true)
7624
7794
  ])
@@ -7628,47 +7798,6 @@ function _sfc_render$O(_ctx, _cache, $props, $setup, $data, $options) {
7628
7798
  }, 8, ["visible", "overlay", "isWrapTeleport"]);
7629
7799
  }
7630
7800
  var NumberKeyboard = /* @__PURE__ */ _export_sfc(_sfc_main$P, [["render", _sfc_render$O]]);
7631
- const TypeOfFun = (value) => {
7632
- if (value === null) {
7633
- return "null";
7634
- }
7635
- const type = typeof value;
7636
- if (type === "undefined" || type === "string") {
7637
- return type;
7638
- }
7639
- const typeString = toString.call(value);
7640
- switch (typeString) {
7641
- case "[object Array]":
7642
- return "array";
7643
- case "[object Date]":
7644
- return "date";
7645
- case "[object Boolean]":
7646
- return "boolean";
7647
- case "[object Number]":
7648
- return "number";
7649
- case "[object Function]":
7650
- return "function";
7651
- case "[object RegExp]":
7652
- return "regexp";
7653
- case "[object Object]":
7654
- if (value.nodeType !== void 0) {
7655
- if (value.nodeType == 3) {
7656
- return /\S/.test(value.nodeValue) ? "textnode" : "whitespace";
7657
- } else {
7658
- return "element";
7659
- }
7660
- } else {
7661
- return "object";
7662
- }
7663
- default:
7664
- return "unknow";
7665
- }
7666
- };
7667
- const isFunction = (val) => typeof val === "function";
7668
- const isObject = (val) => val !== null && typeof val === "object";
7669
- const isPromise = (val) => {
7670
- return isObject(val) && isFunction(val.then) && isFunction(val.catch);
7671
- };
7672
7801
  const component$2 = {
7673
7802
  props: {
7674
7803
  modelValue: {
@@ -7723,9 +7852,6 @@ const component$2 = {
7723
7852
  resolve(errorMsg2);
7724
7853
  });
7725
7854
  };
7726
- const getPropByPath = (obj, keyPath) => {
7727
- return keyPath.split(".").reduce((prev, curr) => prev[curr], obj);
7728
- };
7729
7855
  if (!prop) {
7730
7856
  console.warn("[NutUI] <FormItem> \u4F7F\u7528 rules \u6821\u9A8C\u89C4\u5219\u65F6 , \u5FC5\u987B\u8BBE\u7F6E prop \u53C2\u6570");
7731
7857
  }
@@ -8585,10 +8711,15 @@ const _sfc_main$J = create$J({
8585
8711
  isWrapTeleport: {
8586
8712
  type: Boolean,
8587
8713
  default: true
8714
+ },
8715
+ safeAreaInsetBottom: {
8716
+ type: Boolean,
8717
+ default: false
8588
8718
  }
8589
8719
  }),
8590
8720
  emits: ["cancel", "close", "choose", "update:visible"],
8591
8721
  setup(props, { emit }) {
8722
+ const slotDefault = !!useSlots().default;
8592
8723
  const classes = computed(() => {
8593
8724
  const prefixCls = componentName$C;
8594
8725
  return {
@@ -8596,23 +8727,24 @@ const _sfc_main$J = create$J({
8596
8727
  };
8597
8728
  });
8598
8729
  const isHighlight = (item) => {
8599
- return props.chooseTagValue && props.chooseTagValue === item[props.optionTag] ? props.color : "#1a1a1a";
8730
+ return props.chooseTagValue && props.chooseTagValue === item[props.optionTag] ? props.color : "";
8600
8731
  };
8601
8732
  const cancelActionSheet = () => {
8602
8733
  emit("cancel");
8603
8734
  emit("update:visible", false);
8604
8735
  };
8605
8736
  const chooseItem = (item, index) => {
8606
- if (!item.disable) {
8737
+ if (!item.disable && !item.loading) {
8607
8738
  emit("choose", item, index);
8608
8739
  emit("update:visible", false);
8609
8740
  }
8610
8741
  };
8611
- const close = () => {
8612
- emit("close");
8742
+ const close = (e) => {
8743
+ emit("close", e);
8613
8744
  emit("update:visible", false);
8614
8745
  };
8615
8746
  return {
8747
+ slotDefault,
8616
8748
  isHighlight,
8617
8749
  cancelActionSheet,
8618
8750
  chooseItem,
@@ -8621,22 +8753,24 @@ const _sfc_main$J = create$J({
8621
8753
  };
8622
8754
  }
8623
8755
  });
8624
- const _hoisted_1$z = { class: "nut-actionsheet-panel" };
8625
- const _hoisted_2$u = {
8756
+ const _hoisted_1$z = {
8626
8757
  key: 0,
8627
8758
  class: "nut-actionsheet-title"
8628
8759
  };
8760
+ const _hoisted_2$u = { key: 1 };
8629
8761
  const _hoisted_3$o = {
8630
- key: 1,
8762
+ key: 0,
8631
8763
  class: "nut-actionsheet-item desc"
8632
8764
  };
8633
8765
  const _hoisted_4$j = {
8634
- key: 2,
8766
+ key: 1,
8635
8767
  class: "nut-actionsheet-menu"
8636
8768
  };
8637
8769
  const _hoisted_5$d = ["onClick"];
8638
- const _hoisted_6$b = { class: "subdesc" };
8770
+ const _hoisted_6$b = { key: 1 };
8771
+ const _hoisted_7$9 = { class: "subdesc" };
8639
8772
  function _sfc_render$I(_ctx, _cache, $props, $setup, $data, $options) {
8773
+ const _component_nut_icon = resolveComponent("nut-icon");
8640
8774
  const _component_nut_popup = resolveComponent("nut-popup");
8641
8775
  return openBlock(), createElementBlock("view", {
8642
8776
  class: normalizeClass(_ctx.classes)
@@ -8650,30 +8784,38 @@ function _sfc_render$I(_ctx, _cache, $props, $setup, $data, $options) {
8650
8784
  onClickOverlay: _ctx.close
8651
8785
  }, {
8652
8786
  default: withCtx(() => [
8653
- createElementVNode("view", _hoisted_1$z, [
8654
- _ctx.title ? (openBlock(), createElementBlock("view", _hoisted_2$u, toDisplayString(_ctx.title), 1)) : createCommentVNode("", true),
8655
- _ctx.description ? (openBlock(), createElementBlock("view", _hoisted_3$o, toDisplayString(_ctx.description), 1)) : createCommentVNode("", true),
8656
- _ctx.menuItems.length ? (openBlock(), createElementBlock("view", _hoisted_4$j, [
8657
- (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.menuItems, (item, index) => {
8658
- return openBlock(), createElementBlock("view", {
8659
- class: normalizeClass(["nut-actionsheet-item", { "nut-actionsheet-item-disabled": item.disable }]),
8660
- style: normalizeStyle({ color: _ctx.isHighlight(item) }),
8661
- key: index,
8662
- onClick: ($event) => _ctx.chooseItem(item, index)
8663
- }, [
8664
- createTextVNode(toDisplayString(item[_ctx.optionTag]), 1),
8665
- createElementVNode("view", _hoisted_6$b, toDisplayString(item[_ctx.optionSubTag]), 1)
8666
- ], 14, _hoisted_5$d);
8667
- }), 128))
8668
- ])) : createCommentVNode("", true),
8669
- _ctx.cancelTxt ? (openBlock(), createElementBlock("view", {
8670
- key: 3,
8671
- class: "nut-actionsheet-cancel",
8672
- onClick: _cache[0] || (_cache[0] = (...args) => _ctx.cancelActionSheet && _ctx.cancelActionSheet(...args))
8673
- }, toDisplayString(_ctx.cancelTxt), 1)) : createCommentVNode("", true)
8674
- ])
8787
+ createElementVNode("view", {
8788
+ class: normalizeClass(["nut-actionsheet-panel", { "nut-actionsheet-safebottom": _ctx.safeAreaInsetBottom }])
8789
+ }, [
8790
+ _ctx.title ? (openBlock(), createElementBlock("view", _hoisted_1$z, toDisplayString(_ctx.title), 1)) : createCommentVNode("", true),
8791
+ renderSlot(_ctx.$slots, "default"),
8792
+ !_ctx.slotDefault ? (openBlock(), createElementBlock("view", _hoisted_2$u, [
8793
+ _ctx.description ? (openBlock(), createElementBlock("view", _hoisted_3$o, toDisplayString(_ctx.description), 1)) : createCommentVNode("", true),
8794
+ _ctx.menuItems.length ? (openBlock(), createElementBlock("view", _hoisted_4$j, [
8795
+ (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.menuItems, (item, index) => {
8796
+ return openBlock(), createElementBlock("view", {
8797
+ class: normalizeClass(["nut-actionsheet-item", { "nut-actionsheet-item-disabled": item.disable, "nut-actionsheet-item-loading": item.loading }]),
8798
+ style: normalizeStyle({ color: _ctx.isHighlight(item) || item.color }),
8799
+ key: index,
8800
+ onClick: ($event) => _ctx.chooseItem(item, index)
8801
+ }, [
8802
+ item.loading ? (openBlock(), createBlock(_component_nut_icon, {
8803
+ key: 0,
8804
+ name: "loading"
8805
+ })) : (openBlock(), createElementBlock("view", _hoisted_6$b, toDisplayString(item[_ctx.optionTag]), 1)),
8806
+ createElementVNode("view", _hoisted_7$9, toDisplayString(item[_ctx.optionSubTag]), 1)
8807
+ ], 14, _hoisted_5$d);
8808
+ }), 128))
8809
+ ])) : createCommentVNode("", true),
8810
+ _ctx.cancelTxt ? (openBlock(), createElementBlock("view", {
8811
+ key: 2,
8812
+ class: "nut-actionsheet-cancel",
8813
+ onClick: _cache[0] || (_cache[0] = (...args) => _ctx.cancelActionSheet && _ctx.cancelActionSheet(...args))
8814
+ }, toDisplayString(_ctx.cancelTxt), 1)) : createCommentVNode("", true)
8815
+ ])) : createCommentVNode("", true)
8816
+ ], 2)
8675
8817
  ]),
8676
- _: 1
8818
+ _: 3
8677
8819
  }, 8, ["visible", "isWrapTeleport", "onClickOverlay"])
8678
8820
  ], 2);
8679
8821
  }
@@ -9024,7 +9166,7 @@ function _sfc_render$G(_ctx, _cache, $props, $setup, $data, $options) {
9024
9166
  ], 34);
9025
9167
  }
9026
9168
  var Drag = /* @__PURE__ */ _export_sfc(_sfc_main$H, [["render", _sfc_render$G]]);
9027
- const { componentName: componentName$z, create: create$G } = createComponent("dialog");
9169
+ const { componentName: componentName$z, create: create$G, translate: translate$4 } = createComponent("dialog");
9028
9170
  const _sfc_main$G = create$G({
9029
9171
  inheritAttrs: false,
9030
9172
  components: {
@@ -9058,11 +9200,11 @@ const _sfc_main$G = create$G({
9058
9200
  },
9059
9201
  cancelText: {
9060
9202
  type: String,
9061
- default: "\u53D6\u6D88"
9203
+ default: ""
9062
9204
  },
9063
9205
  okText: {
9064
9206
  type: String,
9065
- default: "\u786E\u5B9A"
9207
+ default: ""
9066
9208
  },
9067
9209
  okBtnDisabled: {
9068
9210
  type: Boolean,
@@ -9126,7 +9268,8 @@ const _sfc_main$G = create$G({
9126
9268
  classes,
9127
9269
  onCancel,
9128
9270
  onOk,
9129
- showPopup
9271
+ showPopup,
9272
+ translate: translate$4
9130
9273
  };
9131
9274
  }
9132
9275
  });
@@ -9180,7 +9323,7 @@ function _sfc_render$F(_ctx, _cache, $props, $setup, $data, $options) {
9180
9323
  onClick: _ctx.onCancel
9181
9324
  }, {
9182
9325
  default: withCtx(() => [
9183
- createTextVNode(toDisplayString(_ctx.cancelText), 1)
9326
+ createTextVNode(toDisplayString(_ctx.cancelText || _ctx.translate("cancel")), 1)
9184
9327
  ]),
9185
9328
  _: 1
9186
9329
  }, 8, ["onClick"])) : createCommentVNode("", true),
@@ -9193,7 +9336,7 @@ function _sfc_render$F(_ctx, _cache, $props, $setup, $data, $options) {
9193
9336
  onClick: _ctx.onOk
9194
9337
  }, {
9195
9338
  default: withCtx(() => [
9196
- createTextVNode(toDisplayString(_ctx.okText), 1)
9339
+ createTextVNode(toDisplayString(_ctx.okText || _ctx.translate("confirm")), 1)
9197
9340
  ]),
9198
9341
  _: 1
9199
9342
  }, 8, ["class", "disabled", "onClick"])) : createCommentVNode("", true)
@@ -9209,8 +9352,8 @@ class DialogOptions {
9209
9352
  constructor() {
9210
9353
  __publicField(this, "title", "");
9211
9354
  __publicField(this, "content", "");
9212
- __publicField(this, "cancelText", "\u53D6\u6D88");
9213
- __publicField(this, "okText", "\u786E\u5B9A");
9355
+ __publicField(this, "cancelText", "");
9356
+ __publicField(this, "okText", "");
9214
9357
  __publicField(this, "textAlign", "center");
9215
9358
  __publicField(this, "teleport", "body");
9216
9359
  __publicField(this, "id", new Date().getTime());
@@ -10983,6 +11126,7 @@ const _sfc_main$x = create$x({
10983
11126
  }
10984
11127
  },
10985
11128
  setup(props, { emit }) {
11129
+ const slotDefault = !!useSlots().default;
10986
11130
  const height = ref(props.strokeWidth + "px");
10987
11131
  const progressOuter = ref();
10988
11132
  const insideText = ref();
@@ -11004,7 +11148,8 @@ const _sfc_main$x = create$x({
11004
11148
  bgStyle,
11005
11149
  textStyle,
11006
11150
  progressOuter,
11007
- insideText
11151
+ insideText,
11152
+ slotDefault
11008
11153
  };
11009
11154
  }
11010
11155
  });
@@ -11021,7 +11166,7 @@ function _sfc_render$w(_ctx, _cache, $props, $setup, $data, $options) {
11021
11166
  class: normalizeClass(["nut-progress-inner", _ctx.status == "active" ? "nut-active" : ""]),
11022
11167
  style: normalizeStyle(_ctx.bgStyle)
11023
11168
  }, [
11024
- _ctx.showText && _ctx.textInside ? (openBlock(), createElementBlock("div", {
11169
+ _ctx.showText && _ctx.textInside && !_ctx.slotDefault ? (openBlock(), createElementBlock("div", {
11025
11170
  key: 0,
11026
11171
  class: "nut-progress-text nut-progress-insidetext",
11027
11172
  ref: "insideText",
@@ -11035,6 +11180,18 @@ function _sfc_render$w(_ctx, _cache, $props, $setup, $data, $options) {
11035
11180
  createElementVNode("span", {
11036
11181
  style: normalizeStyle(_ctx.textStyle)
11037
11182
  }, toDisplayString(_ctx.percentage) + toDisplayString(_ctx.isShowPercentage ? "%" : ""), 5)
11183
+ ], 4)) : createCommentVNode("", true),
11184
+ _ctx.showText && _ctx.textInside && _ctx.slotDefault ? (openBlock(), createElementBlock("div", {
11185
+ key: 1,
11186
+ ref: "insideText",
11187
+ style: normalizeStyle({
11188
+ position: `absolute`,
11189
+ top: `50%`,
11190
+ left: `${_ctx.percentage}%`,
11191
+ transform: `translate(-${+_ctx.percentage}%,-50%)`
11192
+ })
11193
+ }, [
11194
+ renderSlot(_ctx.$slots, "default")
11038
11195
  ], 4)) : createCommentVNode("", true)
11039
11196
  ], 6)
11040
11197
  ], 6),
@@ -11531,7 +11688,7 @@ function _sfc_render$u(_ctx, _cache, $props, $setup, $data, $options) {
11531
11688
  ], 2);
11532
11689
  }
11533
11690
  var NoticeBar = /* @__PURE__ */ _export_sfc(_sfc_main$v, [["render", _sfc_render$u]]);
11534
- const { componentName: componentName$p, create: create$u } = createComponent("empty");
11691
+ const { componentName: componentName$p, create: create$u, translate: translate$3 } = createComponent("empty");
11535
11692
  const defaultStatus = {
11536
11693
  empty: "https://static-ftcms.jd.com/p/files/61a9e3183985005b3958672b.png",
11537
11694
  error: "https://ftcms.jd.com/p/files/61a9e33ee7dcdbcc0ce62736.png",
@@ -11549,7 +11706,7 @@ const _sfc_main$u = create$u({
11549
11706
  },
11550
11707
  description: {
11551
11708
  type: String,
11552
- default: "\u65E0\u5185\u5BB9"
11709
+ default: ""
11553
11710
  }
11554
11711
  },
11555
11712
  setup(props) {
@@ -11567,7 +11724,8 @@ const _sfc_main$u = create$u({
11567
11724
  const imageUrl = isHttpUrl ? image.value : defaultStatus[image.value];
11568
11725
  return {
11569
11726
  imageUrl,
11570
- imgStyle
11727
+ imgStyle,
11728
+ translate: translate$3
11571
11729
  };
11572
11730
  }
11573
11731
  });
@@ -11591,12 +11749,12 @@ function _sfc_render$t(_ctx, _cache, $props, $setup, $data, $options) {
11591
11749
  }, null, 8, _hoisted_2$m)) : createCommentVNode("", true)
11592
11750
  ], 64))
11593
11751
  ], 4),
11594
- _ctx.$slots.description ? renderSlot(_ctx.$slots, "description", { key: 0 }) : (openBlock(), createElementBlock("view", _hoisted_3$i, toDisplayString(_ctx.description), 1)),
11752
+ _ctx.$slots.description ? renderSlot(_ctx.$slots, "description", { key: 0 }) : (openBlock(), createElementBlock("view", _hoisted_3$i, toDisplayString(_ctx.description || _ctx.translate("noData")), 1)),
11595
11753
  _ctx.$slots.default ? renderSlot(_ctx.$slots, "default", { key: 2 }) : createCommentVNode("", true)
11596
11754
  ]);
11597
11755
  }
11598
11756
  var Empty = /* @__PURE__ */ _export_sfc(_sfc_main$u, [["render", _sfc_render$t]]);
11599
- const { create: create$t } = createComponent("video");
11757
+ const { create: create$t, translate: translate$2 } = createComponent("video");
11600
11758
  const _sfc_main$t = create$t({
11601
11759
  props: {
11602
11760
  source: {
@@ -11814,7 +11972,8 @@ const _sfc_main$t = create$t({
11814
11972
  touchSlidMove,
11815
11973
  touchSlidEnd,
11816
11974
  retry,
11817
- fullScreen
11975
+ fullScreen,
11976
+ translate: translate$2
11818
11977
  });
11819
11978
  }
11820
11979
  });
@@ -11840,7 +11999,7 @@ const _hoisted_9$2 = {
11840
11999
  };
11841
12000
  const _hoisted_10$1 = { class: "duration-time" };
11842
12001
  const _hoisted_11$1 = { class: "nut-video-error" };
11843
- const _hoisted_12$1 = /* @__PURE__ */ createElementVNode("p", { class: "lose" }, "\u89C6\u9891\u52A0\u8F7D\u5931\u8D25", -1);
12002
+ const _hoisted_12$1 = { class: "lose" };
11844
12003
  function _sfc_render$s(_ctx, _cache, $props, $setup, $data, $options) {
11845
12004
  return openBlock(), createElementBlock("div", _hoisted_1$n, [
11846
12005
  createElementVNode("video", {
@@ -11912,11 +12071,11 @@ function _sfc_render$s(_ctx, _cache, $props, $setup, $data, $options) {
11912
12071
  [vShow, _ctx.showToolbox && !_ctx.isDisabled]
11913
12072
  ]),
11914
12073
  withDirectives(createElementVNode("div", _hoisted_11$1, [
11915
- _hoisted_12$1,
12074
+ createElementVNode("p", _hoisted_12$1, toDisplayString(_ctx.translate("errorTip")), 1),
11916
12075
  createElementVNode("p", {
11917
12076
  class: "retry",
11918
12077
  onClick: _cache[9] || (_cache[9] = (...args) => _ctx.retry && _ctx.retry(...args))
11919
- }, "\u70B9\u51FB\u91CD\u8BD5")
12078
+ }, toDisplayString(_ctx.translate("clickRetry")), 1)
11920
12079
  ], 512), [
11921
12080
  [vShow, _ctx.state.isError]
11922
12081
  ])
@@ -13564,7 +13723,7 @@ function _sfc_render$l(_ctx, _cache, $props, $setup, $data, $options) {
13564
13723
  ]);
13565
13724
  }
13566
13725
  var CountUp = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["render", _sfc_render$l]]);
13567
- const { componentName: componentName$g, create: create$k } = createComponent("countdown");
13726
+ const { componentName: componentName$g, create: create$k, translate: translate$1 } = createComponent("countdown");
13568
13727
  const _sfc_main$k = create$k({
13569
13728
  props: {
13570
13729
  modelValue: {
@@ -13620,7 +13779,7 @@ const _sfc_main$k = create$k({
13620
13779
  });
13621
13780
  const plainText = computed(() => {
13622
13781
  const { d, h: h2, m, s } = resttime.value;
13623
- return `${d > 0 && props.showDays ? d + "\u5929" + h2 : h2}\u5C0F\u65F6${m}\u5206${s}\u79D2`;
13782
+ return `${d > 0 && props.showDays ? d + translate$1("day") + h2 : h2}${translate$1("hour")}${m}${translate$1("minute")}${s}${translate$1("second")}`;
13624
13783
  });
13625
13784
  watch(() => props.value, (value) => {
13626
13785
  });
@@ -13727,7 +13886,8 @@ const _sfc_main$k = create$k({
13727
13886
  getTimeStamp,
13728
13887
  initTimer,
13729
13888
  resttime,
13730
- plainText
13889
+ plainText,
13890
+ translate: translate$1
13731
13891
  });
13732
13892
  }
13733
13893
  });
@@ -13736,7 +13896,7 @@ const _hoisted_1$h = {
13736
13896
  class: "nut-cd-block"
13737
13897
  };
13738
13898
  const _hoisted_2$g = { class: "nut-cd-block" };
13739
- const _hoisted_3$f = /* @__PURE__ */ createElementVNode("view", { class: "nut-cd-dot" }, "\u5929", -1);
13899
+ const _hoisted_3$f = { class: "nut-cd-dot" };
13740
13900
  const _hoisted_4$c = { class: "nut-cd-block" };
13741
13901
  const _hoisted_5$8 = /* @__PURE__ */ createElementVNode("view", { class: "nut-cd-dot" }, ":", -1);
13742
13902
  const _hoisted_6$6 = { class: "nut-cd-block" };
@@ -13750,7 +13910,7 @@ function _sfc_render$k(_ctx, _cache, $props, $setup, $data, $options) {
13750
13910
  _ctx.slots.default ? renderSlot(_ctx.$slots, "default", { key: 0 }) : _ctx.showPlainText ? (openBlock(), createElementBlock("view", _hoisted_1$h, toDisplayString(_ctx.plainText), 1)) : (openBlock(), createElementBlock(Fragment, { key: 2 }, [
13751
13911
  _ctx.resttime.d >= 0 && _ctx.showDays ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
13752
13912
  createElementVNode("view", _hoisted_2$g, toDisplayString(_ctx.resttime.d), 1),
13753
- _hoisted_3$f
13913
+ createElementVNode("view", _hoisted_3$f, toDisplayString(_ctx.translate("day")), 1)
13754
13914
  ], 64)) : createCommentVNode("", true),
13755
13915
  createElementVNode("view", _hoisted_4$c, toDisplayString(_ctx.resttime.h), 1),
13756
13916
  _hoisted_5$8,
@@ -14567,7 +14727,7 @@ var RenderColumn = {
14567
14727
  slots: Function
14568
14728
  }
14569
14729
  };
14570
- const component = (componentName2) => {
14730
+ const component = (componentName2, translate2) => {
14571
14731
  return {
14572
14732
  components: {
14573
14733
  RenderColumn
@@ -14637,13 +14797,14 @@ const component = (componentName2) => {
14637
14797
  cellClasses,
14638
14798
  getColumnItem,
14639
14799
  handleSorterClick,
14640
- sortDataItem
14800
+ sortDataItem,
14801
+ translate: translate2
14641
14802
  });
14642
14803
  }
14643
14804
  };
14644
14805
  };
14645
- const { componentName: componentName$c, create: create$d } = createComponent("table");
14646
- const _sfc_main$d = create$d(component(componentName$c));
14806
+ const { componentName: componentName$c, create: create$d, translate } = createComponent("table");
14807
+ const _sfc_main$d = create$d(component(componentName$c, translate));
14647
14808
  const _hoisted_1$c = { class: "nut-table__main__head" };
14648
14809
  const _hoisted_2$b = { class: "nut-table__main__head__tr" };
14649
14810
  const _hoisted_3$a = ["onClick"];
@@ -14722,7 +14883,7 @@ function _sfc_render$d(_ctx, _cache, $props, $setup, $data, $options) {
14722
14883
  class: normalizeClass(["nut-table__nodata", { "nut-table__nodata--border": _ctx.bordered }])
14723
14884
  }, [
14724
14885
  renderSlot(_ctx.$slots, "nodata"),
14725
- !_ctx.$slots.nodata ? (openBlock(), createElementBlock("div", _hoisted_8$2, " \u6682\u65E0\u6570\u636E ")) : createCommentVNode("", true)
14886
+ !_ctx.$slots.nodata ? (openBlock(), createElementBlock("div", _hoisted_8$2, toDisplayString(_ctx.translate("noData")), 1)) : createCommentVNode("", true)
14726
14887
  ], 2)
14727
14888
  ])) : createCommentVNode("", true)
14728
14889
  ], 2);
@@ -16471,6 +16632,6 @@ function install(app) {
16471
16632
  }
16472
16633
  });
16473
16634
  }
16474
- const version = "3.1.19-beta.3";
16635
+ const version = "3.1.19-beta.4";
16475
16636
  var nutui_vue_build = { install, version };
16476
16637
  export { ActionSheet, Address, Audio, AudioOperate, Avatar, BackTop, Badge, Barrage, Button, Calendar, CalendarItem, Card, Cascader, Cell, CellGroup, _sfc_main$10 as Checkbox, _sfc_main$$ as CheckboxGroup, CircleProgress, Col, Collapse, CollapseItem, CountDown, CountUp, DatePicker, _Dialog as Dialog, Divider, Drag, Ecard, Elevator, Empty, FixedNav, Form, FormItem, _sfc_main$1m as Grid, GridItem, _sfc_main$1x as Icon, _ImagePreview as ImagePreview, Indicator, InfiniteLoading, Input, InputNumber, _sfc_main$1r as Layout, List, Menu, MenuItem, Navbar, NoticeBar, NotifyFunction as Notify, NumberKeyboard, OldPicker, OverLay, Pagination, Picker, Popover, Popup, Price, Progress, PullRefresh, _sfc_main$V as Radio, _sfc_main$U as RadioGroup, Range, Rate, Row, SearchBar, ShortPassword, SideNavBar, SideNavBarItem, Signature, Skeleton, Sku, Step, _sfc_main$s as Steps, _sfc_main$1o as Sticky, SubSideNavBar, Swipe, Swiper, SwiperItem, Switch, TabPane, Tabbar, TabbarItem, Table, Tabs, Tag, TextArea, TimeDetail, TimePannel, TimeSelect, ToastFunction as Toast, Uploader, Video, nutui_vue_build as default, install, version };