vant 4.9.21 → 4.9.23

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 (276) hide show
  1. package/README.md +2 -4
  2. package/es/action-bar-button/index.css +1 -1
  3. package/es/action-bar-icon/ActionBarIcon.d.ts +4 -0
  4. package/es/action-bar-icon/ActionBarIcon.mjs +12 -4
  5. package/es/action-bar-icon/index.css +1 -1
  6. package/es/action-bar-icon/index.d.ts +3 -0
  7. package/es/action-sheet/ActionSheet.d.ts +1 -1
  8. package/es/action-sheet/index.d.ts +1 -1
  9. package/es/address-list/AddressListItem.d.ts +1 -1
  10. package/es/area/Area.d.ts +1 -1
  11. package/es/area/index.d.ts +1 -1
  12. package/es/calendar/index.css +1 -1
  13. package/es/composables/on-popup-reopen.mjs +1 -1
  14. package/es/composables/use-tab-status.mjs +2 -2
  15. package/es/composables/use-touch.mjs +4 -4
  16. package/es/date-picker/DatePicker.d.ts +1 -1
  17. package/es/date-picker/index.d.ts +1 -1
  18. package/es/dialog/Dialog.d.ts +1 -1
  19. package/es/dialog/index.css +1 -1
  20. package/es/dialog/index.d.ts +1 -1
  21. package/es/field/Field.d.ts +5 -5
  22. package/es/field/Field.mjs +5 -4
  23. package/es/field/index.d.ts +3 -3
  24. package/es/field/types.d.ts +1 -0
  25. package/es/floating-panel/FloatingPanel.d.ts +26 -0
  26. package/es/floating-panel/FloatingPanel.mjs +26 -2
  27. package/es/floating-panel/index.css +1 -1
  28. package/es/floating-panel/index.d.ts +18 -0
  29. package/es/grid/Grid.d.ts +1 -1
  30. package/es/grid/index.d.ts +1 -1
  31. package/es/index.d.ts +1 -1
  32. package/es/index.mjs +1 -1
  33. package/es/list/List.d.ts +13 -3
  34. package/es/list/List.mjs +5 -2
  35. package/es/list/index.d.ts +9 -2
  36. package/es/locale/lang/ar-SA.d.ts +1 -0
  37. package/es/locale/lang/ar-SA.mjs +10 -1
  38. package/es/locale/lang/bg-BG.d.ts +1 -0
  39. package/es/locale/lang/bg-BG.mjs +1 -0
  40. package/es/locale/lang/bn-BD.d.ts +1 -0
  41. package/es/locale/lang/bn-BD.mjs +1 -0
  42. package/es/locale/lang/da-DK.d.ts +1 -0
  43. package/es/locale/lang/da-DK.mjs +1 -0
  44. package/es/locale/lang/de-DE-formal.d.ts +1 -0
  45. package/es/locale/lang/de-DE-formal.mjs +1 -0
  46. package/es/locale/lang/de-DE.d.ts +1 -0
  47. package/es/locale/lang/de-DE.mjs +1 -0
  48. package/es/locale/lang/el-GR.d.ts +1 -0
  49. package/es/locale/lang/el-GR.mjs +1 -0
  50. package/es/locale/lang/en-US.d.ts +1 -0
  51. package/es/locale/lang/en-US.mjs +1 -0
  52. package/es/locale/lang/eo-EO.d.ts +1 -0
  53. package/es/locale/lang/eo-EO.mjs +1 -0
  54. package/es/locale/lang/es-ES.d.ts +1 -0
  55. package/es/locale/lang/es-ES.mjs +1 -0
  56. package/es/locale/lang/fa-IR.d.ts +1 -0
  57. package/es/locale/lang/fa-IR.mjs +1 -0
  58. package/es/locale/lang/fr-FR.d.ts +1 -0
  59. package/es/locale/lang/fr-FR.mjs +1 -0
  60. package/es/locale/lang/he-IL.d.ts +1 -0
  61. package/es/locale/lang/he-IL.mjs +1 -0
  62. package/es/locale/lang/hi-IN.d.ts +1 -0
  63. package/es/locale/lang/hi-IN.mjs +1 -0
  64. package/es/locale/lang/id-ID.d.ts +1 -0
  65. package/es/locale/lang/id-ID.mjs +1 -0
  66. package/es/locale/lang/is-IS.d.ts +1 -0
  67. package/es/locale/lang/is-IS.mjs +1 -0
  68. package/es/locale/lang/it-IT.d.ts +1 -0
  69. package/es/locale/lang/it-IT.mjs +1 -0
  70. package/es/locale/lang/ja-JP.d.ts +1 -0
  71. package/es/locale/lang/ja-JP.mjs +1 -0
  72. package/es/locale/lang/kk-KZ.d.ts +1 -0
  73. package/es/locale/lang/kk-KZ.mjs +1 -0
  74. package/es/locale/lang/km-KH.d.ts +1 -0
  75. package/es/locale/lang/km-KH.mjs +1 -0
  76. package/es/locale/lang/ko-KR.d.ts +1 -0
  77. package/es/locale/lang/ko-KR.mjs +1 -0
  78. package/es/locale/lang/la-LA.d.ts +1 -0
  79. package/es/locale/lang/la-LA.mjs +1 -0
  80. package/es/locale/lang/mm-MN.d.ts +1 -0
  81. package/es/locale/lang/mm-MN.mjs +1 -0
  82. package/es/locale/lang/nb-NO.d.ts +1 -0
  83. package/es/locale/lang/nb-NO.mjs +1 -0
  84. package/es/locale/lang/nl-NL.d.ts +1 -0
  85. package/es/locale/lang/nl-NL.mjs +1 -0
  86. package/es/locale/lang/pl-PL.d.ts +1 -0
  87. package/es/locale/lang/pl-PL.mjs +1 -0
  88. package/es/locale/lang/pt-BR.d.ts +1 -0
  89. package/es/locale/lang/pt-BR.mjs +1 -0
  90. package/es/locale/lang/ro-RO.d.ts +1 -0
  91. package/es/locale/lang/ro-RO.mjs +1 -0
  92. package/es/locale/lang/ru-RU.d.ts +1 -0
  93. package/es/locale/lang/ru-RU.mjs +1 -0
  94. package/es/locale/lang/sr-RS.d.ts +1 -0
  95. package/es/locale/lang/sr-RS.mjs +1 -0
  96. package/es/locale/lang/sv-SE.d.ts +1 -0
  97. package/es/locale/lang/sv-SE.mjs +1 -0
  98. package/es/locale/lang/th-TH.d.ts +1 -0
  99. package/es/locale/lang/th-TH.mjs +1 -0
  100. package/es/locale/lang/tr-TR.d.ts +1 -0
  101. package/es/locale/lang/tr-TR.mjs +1 -0
  102. package/es/locale/lang/uk-UA.d.ts +1 -0
  103. package/es/locale/lang/uk-UA.mjs +1 -0
  104. package/es/locale/lang/vi-VN.d.ts +1 -0
  105. package/es/locale/lang/vi-VN.mjs +1 -0
  106. package/es/locale/lang/zh-CN.d.ts +1 -0
  107. package/es/locale/lang/zh-CN.mjs +1 -0
  108. package/es/locale/lang/zh-HK.d.ts +1 -0
  109. package/es/locale/lang/zh-HK.mjs +1 -0
  110. package/es/locale/lang/zh-TW.d.ts +1 -0
  111. package/es/locale/lang/zh-TW.mjs +1 -0
  112. package/es/picker/Picker.d.ts +1 -1
  113. package/es/picker/index.d.ts +1 -1
  114. package/es/popup/index.d.ts +1 -0
  115. package/es/popup/index.mjs +7 -1
  116. package/es/progress/Progress.mjs +8 -4
  117. package/es/search/Search.d.ts +4 -4
  118. package/es/search/Search.mjs +1 -0
  119. package/es/search/index.d.ts +3 -3
  120. package/es/share-sheet/ShareSheet.d.ts +1 -1
  121. package/es/share-sheet/index.d.ts +1 -1
  122. package/es/signature/Signature.d.ts +16 -0
  123. package/es/signature/Signature.mjs +32 -1
  124. package/es/signature/index.d.ts +11 -0
  125. package/es/signature/types.d.ts +1 -0
  126. package/es/stepper/Stepper.mjs +3 -0
  127. package/es/swipe-cell/SwipeCell.d.ts +16 -0
  128. package/es/swipe-cell/SwipeCell.mjs +7 -2
  129. package/es/swipe-cell/index.d.ts +11 -0
  130. package/es/tabs/Tabs.d.ts +1 -1
  131. package/es/tabs/index.d.ts +1 -1
  132. package/es/time-picker/TimePicker.d.ts +1 -1
  133. package/es/time-picker/TimePicker.mjs +1 -1
  134. package/es/time-picker/index.d.ts +1 -1
  135. package/es/utils/constant.mjs +1 -1
  136. package/lib/action-bar-button/index.css +1 -1
  137. package/lib/action-bar-icon/ActionBarIcon.d.ts +4 -0
  138. package/lib/action-bar-icon/ActionBarIcon.js +12 -4
  139. package/lib/action-bar-icon/index.css +1 -1
  140. package/lib/action-bar-icon/index.d.ts +3 -0
  141. package/lib/action-sheet/ActionSheet.d.ts +1 -1
  142. package/lib/action-sheet/index.d.ts +1 -1
  143. package/lib/address-list/AddressListItem.d.ts +1 -1
  144. package/lib/area/Area.d.ts +1 -1
  145. package/lib/area/index.d.ts +1 -1
  146. package/lib/calendar/index.css +1 -1
  147. package/lib/composables/on-popup-reopen.js +1 -1
  148. package/lib/composables/use-tab-status.js +2 -2
  149. package/lib/composables/use-touch.js +4 -4
  150. package/lib/date-picker/DatePicker.d.ts +1 -1
  151. package/lib/date-picker/index.d.ts +1 -1
  152. package/lib/dialog/Dialog.d.ts +1 -1
  153. package/lib/dialog/index.css +1 -1
  154. package/lib/dialog/index.d.ts +1 -1
  155. package/lib/field/Field.d.ts +5 -5
  156. package/lib/field/Field.js +5 -4
  157. package/lib/field/index.d.ts +3 -3
  158. package/lib/field/types.d.ts +1 -0
  159. package/lib/floating-panel/FloatingPanel.d.ts +26 -0
  160. package/lib/floating-panel/FloatingPanel.js +26 -2
  161. package/lib/floating-panel/index.css +1 -1
  162. package/lib/floating-panel/index.d.ts +18 -0
  163. package/lib/grid/Grid.d.ts +1 -1
  164. package/lib/grid/index.d.ts +1 -1
  165. package/lib/index.css +1 -1
  166. package/lib/index.d.ts +1 -1
  167. package/lib/index.js +1 -1
  168. package/lib/list/List.d.ts +13 -3
  169. package/lib/list/List.js +5 -2
  170. package/lib/list/index.d.ts +9 -2
  171. package/lib/locale/lang/ar-SA.d.ts +1 -0
  172. package/lib/locale/lang/ar-SA.js +10 -1
  173. package/lib/locale/lang/bg-BG.d.ts +1 -0
  174. package/lib/locale/lang/bg-BG.js +1 -0
  175. package/lib/locale/lang/bn-BD.d.ts +1 -0
  176. package/lib/locale/lang/bn-BD.js +1 -0
  177. package/lib/locale/lang/da-DK.d.ts +1 -0
  178. package/lib/locale/lang/da-DK.js +1 -0
  179. package/lib/locale/lang/de-DE-formal.d.ts +1 -0
  180. package/lib/locale/lang/de-DE-formal.js +1 -0
  181. package/lib/locale/lang/de-DE.d.ts +1 -0
  182. package/lib/locale/lang/de-DE.js +1 -0
  183. package/lib/locale/lang/el-GR.d.ts +1 -0
  184. package/lib/locale/lang/el-GR.js +1 -0
  185. package/lib/locale/lang/en-US.d.ts +1 -0
  186. package/lib/locale/lang/en-US.js +1 -0
  187. package/lib/locale/lang/eo-EO.d.ts +1 -0
  188. package/lib/locale/lang/eo-EO.js +1 -0
  189. package/lib/locale/lang/es-ES.d.ts +1 -0
  190. package/lib/locale/lang/es-ES.js +1 -0
  191. package/lib/locale/lang/fa-IR.d.ts +1 -0
  192. package/lib/locale/lang/fa-IR.js +1 -0
  193. package/lib/locale/lang/fr-FR.d.ts +1 -0
  194. package/lib/locale/lang/fr-FR.js +1 -0
  195. package/lib/locale/lang/he-IL.d.ts +1 -0
  196. package/lib/locale/lang/he-IL.js +1 -0
  197. package/lib/locale/lang/hi-IN.d.ts +1 -0
  198. package/lib/locale/lang/hi-IN.js +1 -0
  199. package/lib/locale/lang/id-ID.d.ts +1 -0
  200. package/lib/locale/lang/id-ID.js +1 -0
  201. package/lib/locale/lang/is-IS.d.ts +1 -0
  202. package/lib/locale/lang/is-IS.js +1 -0
  203. package/lib/locale/lang/it-IT.d.ts +1 -0
  204. package/lib/locale/lang/it-IT.js +1 -0
  205. package/lib/locale/lang/ja-JP.d.ts +1 -0
  206. package/lib/locale/lang/ja-JP.js +1 -0
  207. package/lib/locale/lang/kk-KZ.d.ts +1 -0
  208. package/lib/locale/lang/kk-KZ.js +1 -0
  209. package/lib/locale/lang/km-KH.d.ts +1 -0
  210. package/lib/locale/lang/km-KH.js +1 -0
  211. package/lib/locale/lang/ko-KR.d.ts +1 -0
  212. package/lib/locale/lang/ko-KR.js +1 -0
  213. package/lib/locale/lang/la-LA.d.ts +1 -0
  214. package/lib/locale/lang/la-LA.js +1 -0
  215. package/lib/locale/lang/mm-MN.d.ts +1 -0
  216. package/lib/locale/lang/mm-MN.js +1 -0
  217. package/lib/locale/lang/nb-NO.d.ts +1 -0
  218. package/lib/locale/lang/nb-NO.js +1 -0
  219. package/lib/locale/lang/nl-NL.d.ts +1 -0
  220. package/lib/locale/lang/nl-NL.js +1 -0
  221. package/lib/locale/lang/pl-PL.d.ts +1 -0
  222. package/lib/locale/lang/pl-PL.js +1 -0
  223. package/lib/locale/lang/pt-BR.d.ts +1 -0
  224. package/lib/locale/lang/pt-BR.js +1 -0
  225. package/lib/locale/lang/ro-RO.d.ts +1 -0
  226. package/lib/locale/lang/ro-RO.js +1 -0
  227. package/lib/locale/lang/ru-RU.d.ts +1 -0
  228. package/lib/locale/lang/ru-RU.js +1 -0
  229. package/lib/locale/lang/sr-RS.d.ts +1 -0
  230. package/lib/locale/lang/sr-RS.js +1 -0
  231. package/lib/locale/lang/sv-SE.d.ts +1 -0
  232. package/lib/locale/lang/sv-SE.js +1 -0
  233. package/lib/locale/lang/th-TH.d.ts +1 -0
  234. package/lib/locale/lang/th-TH.js +1 -0
  235. package/lib/locale/lang/tr-TR.d.ts +1 -0
  236. package/lib/locale/lang/tr-TR.js +1 -0
  237. package/lib/locale/lang/uk-UA.d.ts +1 -0
  238. package/lib/locale/lang/uk-UA.js +1 -0
  239. package/lib/locale/lang/vi-VN.d.ts +1 -0
  240. package/lib/locale/lang/vi-VN.js +1 -0
  241. package/lib/locale/lang/zh-CN.d.ts +1 -0
  242. package/lib/locale/lang/zh-CN.js +1 -0
  243. package/lib/locale/lang/zh-HK.d.ts +1 -0
  244. package/lib/locale/lang/zh-HK.js +1 -0
  245. package/lib/locale/lang/zh-TW.d.ts +1 -0
  246. package/lib/locale/lang/zh-TW.js +1 -0
  247. package/lib/picker/Picker.d.ts +1 -1
  248. package/lib/picker/index.d.ts +1 -1
  249. package/lib/popup/index.d.ts +1 -0
  250. package/lib/popup/index.js +4 -1
  251. package/lib/progress/Progress.js +8 -4
  252. package/lib/search/Search.d.ts +4 -4
  253. package/lib/search/Search.js +1 -0
  254. package/lib/search/index.d.ts +3 -3
  255. package/lib/share-sheet/ShareSheet.d.ts +1 -1
  256. package/lib/share-sheet/index.d.ts +1 -1
  257. package/lib/signature/Signature.d.ts +16 -0
  258. package/lib/signature/Signature.js +32 -1
  259. package/lib/signature/index.d.ts +11 -0
  260. package/lib/signature/types.d.ts +1 -0
  261. package/lib/stepper/Stepper.js +3 -0
  262. package/lib/swipe-cell/SwipeCell.d.ts +16 -0
  263. package/lib/swipe-cell/SwipeCell.js +7 -2
  264. package/lib/swipe-cell/index.d.ts +11 -0
  265. package/lib/tabs/Tabs.d.ts +1 -1
  266. package/lib/tabs/index.d.ts +1 -1
  267. package/lib/time-picker/TimePicker.d.ts +1 -1
  268. package/lib/time-picker/TimePicker.js +1 -1
  269. package/lib/time-picker/index.d.ts +1 -1
  270. package/lib/utils/constant.js +1 -1
  271. package/lib/vant.cjs.js +108 -25
  272. package/lib/vant.es.js +108 -25
  273. package/lib/vant.js +118 -35
  274. package/lib/vant.min.js +3 -3
  275. package/lib/web-types.json +1 -1
  276. package/package.json +35 -35
@@ -3,6 +3,7 @@ declare const _default: {
3
3
  tel: string;
4
4
  save: string;
5
5
  clear: string;
6
+ undo: string;
6
7
  cancel: string;
7
8
  confirm: string;
8
9
  delete: string;
@@ -25,6 +25,7 @@ var stdin_default = {
25
25
  tel: "\u0422\u0435\u043B\u0435\u0444\u043E\u043D",
26
26
  save: "\u0421\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u044C",
27
27
  clear: "\u041F\u0440\u043E\u0437\u0440\u0430\u0447\u043D\u044B\u0439",
28
+ undo: "\u041E\u0442\u043C\u0435\u043D\u0438\u0442\u044C",
28
29
  cancel: "\u041E\u0442\u043C\u0435\u043D\u0430",
29
30
  confirm: "\u041F\u043E\u0434\u0442\u0432\u0435\u0440\u0434\u0438\u0442\u044C",
30
31
  delete: "\u0423\u0434\u0430\u043B\u0438\u0442\u044C",
@@ -3,6 +3,7 @@ declare const _default: {
3
3
  tel: string;
4
4
  save: string;
5
5
  clear: string;
6
+ undo: string;
6
7
  cancel: string;
7
8
  confirm: string;
8
9
  delete: string;
@@ -25,6 +25,7 @@ var stdin_default = {
25
25
  tel: "Broj telefona",
26
26
  save: "Sa\u010Duvaj",
27
27
  clear: "Prazno",
28
+ undo: "\u041F\u043E\u043D\u0438\u0448\u0442\u0438",
28
29
  cancel: "Otka\u017Ei",
29
30
  confirm: "Potvrdi",
30
31
  delete: "Brisanje",
@@ -3,6 +3,7 @@ declare const _default: {
3
3
  tel: string;
4
4
  save: string;
5
5
  clear: string;
6
+ undo: string;
6
7
  cancel: string;
7
8
  confirm: string;
8
9
  delete: string;
@@ -25,6 +25,7 @@ var stdin_default = {
25
25
  tel: "Telefon",
26
26
  save: "Spara",
27
27
  clear: "Klar",
28
+ undo: "\xC5ngra",
28
29
  cancel: "Avbryt",
29
30
  confirm: "Bekr\xE4fta",
30
31
  delete: "Radera",
@@ -3,6 +3,7 @@ declare const _default: {
3
3
  tel: string;
4
4
  save: string;
5
5
  clear: string;
6
+ undo: string;
6
7
  cancel: string;
7
8
  confirm: string;
8
9
  delete: string;
@@ -25,6 +25,7 @@ var stdin_default = {
25
25
  tel: "\u0E42\u0E17\u0E23\u0E28\u0E31\u0E1E\u0E17\u0E4C",
26
26
  save: "\u0E1A\u0E31\u0E19\u0E17\u0E36\u0E01",
27
27
  clear: "\u0E0A\u0E31\u0E14\u0E40\u0E08\u0E19",
28
+ undo: "\u0E40\u0E25\u0E34\u0E01\u0E17\u0E33",
28
29
  cancel: "\u0E22\u0E01\u0E40\u0E25\u0E34\u0E01",
29
30
  confirm: "\u0E22\u0E37\u0E19\u0E22\u0E31\u0E19",
30
31
  delete: "\u0E25\u0E1A",
@@ -3,6 +3,7 @@ declare const _default: {
3
3
  tel: string;
4
4
  save: string;
5
5
  clear: string;
6
+ undo: string;
6
7
  cancel: string;
7
8
  confirm: string;
8
9
  delete: string;
@@ -25,6 +25,7 @@ var stdin_default = {
25
25
  tel: "Telefon",
26
26
  save: "Kaydet",
27
27
  clear: "Temizlemek",
28
+ undo: "Geri Al",
28
29
  cancel: "\u0130ptal",
29
30
  confirm: "Onayla",
30
31
  delete: "Sil",
@@ -3,6 +3,7 @@ declare const _default: {
3
3
  tel: string;
4
4
  save: string;
5
5
  clear: string;
6
+ undo: string;
6
7
  cancel: string;
7
8
  confirm: string;
8
9
  delete: string;
@@ -25,6 +25,7 @@ var stdin_default = {
25
25
  tel: "\u0422\u0435\u043B\u0435\u0444\u043E\u043D",
26
26
  save: "\u0417\u0431\u0435\u0440\u0435\u0433\u0442\u0438",
27
27
  clear: "\u044F\u0441\u043D\u043E",
28
+ undo: "\u0421\u043A\u0430\u0441\u0443\u0432\u0430\u0442\u0438",
28
29
  cancel: "\u0421\u043A\u0430\u0441\u0443\u0432\u0430\u0442\u0438",
29
30
  confirm: "\u041F\u0456\u0434\u0442\u0432\u0435\u0440\u0434\u0438\u0442\u0438",
30
31
  delete: "\u0412\u0438\u0434\u0430\u043B\u0438\u0442\u0438",
@@ -3,6 +3,7 @@ declare const _default: {
3
3
  tel: string;
4
4
  save: string;
5
5
  clear: string;
6
+ undo: string;
6
7
  cancel: string;
7
8
  confirm: string;
8
9
  delete: string;
@@ -25,6 +25,7 @@ var stdin_default = {
25
25
  tel: "\u0110i\u1EC7n tho\u1EA1i",
26
26
  save: "C\u1EE9u",
27
27
  clear: "Th\xF4ng tho\xE1ng",
28
+ undo: "Ho\xE0n t\xE1c",
28
29
  cancel: "H\u1EE7y b\u1ECF",
29
30
  confirm: "X\xE1c nh\u1EADn",
30
31
  delete: "X\xF3a",
@@ -3,6 +3,7 @@ declare const _default: {
3
3
  tel: string;
4
4
  save: string;
5
5
  clear: string;
6
+ undo: string;
6
7
  cancel: string;
7
8
  confirm: string;
8
9
  delete: string;
@@ -25,6 +25,7 @@ var stdin_default = {
25
25
  tel: "\u7535\u8BDD",
26
26
  save: "\u4FDD\u5B58",
27
27
  clear: "\u6E05\u7A7A",
28
+ undo: "\u64A4\u9500",
28
29
  cancel: "\u53D6\u6D88",
29
30
  confirm: "\u786E\u8BA4",
30
31
  delete: "\u5220\u9664",
@@ -3,6 +3,7 @@ declare const _default: {
3
3
  tel: string;
4
4
  save: string;
5
5
  clear: string;
6
+ undo: string;
6
7
  cancel: string;
7
8
  confirm: string;
8
9
  delete: string;
@@ -25,6 +25,7 @@ var stdin_default = {
25
25
  tel: "\u96FB\u8A71",
26
26
  save: "\u4FDD\u5B58",
27
27
  clear: "\u6E05\u7A7A",
28
+ undo: "\u64A4\u92B7",
28
29
  cancel: "\u53D6\u6D88",
29
30
  confirm: "\u78BA\u8A8D",
30
31
  delete: "\u522A\u9664",
@@ -3,6 +3,7 @@ declare const _default: {
3
3
  tel: string;
4
4
  save: string;
5
5
  clear: string;
6
+ undo: string;
6
7
  cancel: string;
7
8
  confirm: string;
8
9
  delete: string;
@@ -25,6 +25,7 @@ var stdin_default = {
25
25
  tel: "\u96FB\u8A71",
26
26
  save: "\u5132\u5B58",
27
27
  clear: "\u6E05\u7A7A",
28
+ undo: "\u5FA9\u539F",
28
29
  cancel: "\u53D6\u6D88",
29
30
  confirm: "\u78BA\u8A8D",
30
31
  delete: "\u522A\u9664",
@@ -144,8 +144,8 @@ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
144
144
  columnsFieldNames: PropType<PickerFieldNames>;
145
145
  }>> & Readonly<{
146
146
  onChange?: ((...args: any[]) => any) | undefined;
147
- "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
148
147
  onCancel?: ((...args: any[]) => any) | undefined;
148
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
149
149
  onClickOption?: ((...args: any[]) => any) | undefined;
150
150
  onScrollInto?: ((...args: any[]) => any) | undefined;
151
151
  onConfirm?: ((...args: any[]) => any) | undefined;
@@ -77,8 +77,8 @@ export declare const Picker: import("../utils").WithInstall<import("vue").Define
77
77
  columnsFieldNames: import("vue").PropType<import("./types").PickerFieldNames>;
78
78
  }>> & Readonly<{
79
79
  onChange?: ((...args: any[]) => any) | undefined;
80
- "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
81
80
  onCancel?: ((...args: any[]) => any) | undefined;
81
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
82
82
  onClickOption?: ((...args: any[]) => any) | undefined;
83
83
  onScrollInto?: ((...args: any[]) => any) | undefined;
84
84
  onConfirm?: ((...args: any[]) => any) | undefined;
@@ -120,6 +120,7 @@ export declare const Popup: import("../utils").WithInstall<import("vue").DefineC
120
120
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>>;
121
121
  export default Popup;
122
122
  export { popupProps } from './Popup';
123
+ export { useGlobalZIndex, setGlobalZIndex, } from '../composables/use-global-z-index';
123
124
  export type { PopupProps } from './Popup';
124
125
  export type { PopupPosition, PopupInstance, PopupThemeVars, PopupCloseIconPosition, } from './types';
125
126
  declare module 'vue' {
@@ -29,11 +29,14 @@ var stdin_exports = {};
29
29
  __export(stdin_exports, {
30
30
  Popup: () => Popup,
31
31
  default: () => stdin_default,
32
- popupProps: () => import_Popup2.popupProps
32
+ popupProps: () => import_Popup2.popupProps,
33
+ setGlobalZIndex: () => import_use_global_z_index.setGlobalZIndex,
34
+ useGlobalZIndex: () => import_use_global_z_index.useGlobalZIndex
33
35
  });
34
36
  module.exports = __toCommonJS(stdin_exports);
35
37
  var import_utils = require("../utils");
36
38
  var import_Popup = __toESM(require("./Popup"));
37
39
  var import_Popup2 = require("./Popup");
40
+ var import_use_global_z_index = require("../composables/use-global-z-index");
38
41
  const Popup = (0, import_utils.withInstall)(import_Popup.default);
39
42
  var stdin_default = Popup;
@@ -42,7 +42,9 @@ const progressProps = {
42
42
  var stdin_default = (0, import_vue.defineComponent)({
43
43
  name,
44
44
  props: progressProps,
45
- setup(props) {
45
+ setup(props, {
46
+ slots
47
+ }) {
46
48
  const background = (0, import_vue.computed)(() => props.inactive ? void 0 : props.color);
47
49
  const format = (rate) => Math.min(Math.max(+rate, 0), 100);
48
50
  const renderPivot = () => {
@@ -53,8 +55,8 @@ var stdin_default = (0, import_vue.defineComponent)({
53
55
  percentage
54
56
  } = props;
55
57
  const safePercentage = format(percentage);
56
- const text = pivotText != null ? pivotText : `${percentage}%`;
57
- if (props.showPivot && text) {
58
+ const text = pivotText != null ? pivotText : `${safePercentage}%`;
59
+ if (props.showPivot && (slots.pivot || text)) {
58
60
  const style = {
59
61
  color: textColor,
60
62
  left: `${safePercentage}%`,
@@ -66,7 +68,9 @@ var stdin_default = (0, import_vue.defineComponent)({
66
68
  "class": bem("pivot", {
67
69
  inactive: props.inactive
68
70
  })
69
- }, [text]);
71
+ }, [slots.pivot ? slots.pivot({
72
+ percentage: safePercentage
73
+ }) : text]);
70
74
  }
71
75
  };
72
76
  return () => {
@@ -25,7 +25,7 @@ export declare const searchProps: {
25
25
  autocapitalize: StringConstructor;
26
26
  autocorrect: StringConstructor;
27
27
  errorMessage: StringConstructor;
28
- enterkeyhint: StringConstructor;
28
+ enterkeyhint: import("vue").PropType<import("../field").FieldEnterKeyHint>;
29
29
  clearTrigger: {
30
30
  type: import("vue").PropType<import("../field").FieldClearTrigger>;
31
31
  default: import("../field").FieldClearTrigger;
@@ -95,7 +95,7 @@ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
95
95
  autocapitalize: StringConstructor;
96
96
  autocorrect: StringConstructor;
97
97
  errorMessage: StringConstructor;
98
- enterkeyhint: StringConstructor;
98
+ enterkeyhint: import("vue").PropType<import("../field").FieldEnterKeyHint>;
99
99
  clearTrigger: {
100
100
  type: import("vue").PropType<import("../field").FieldClearTrigger>;
101
101
  default: import("../field").FieldClearTrigger;
@@ -163,7 +163,7 @@ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
163
163
  autocapitalize: StringConstructor;
164
164
  autocorrect: StringConstructor;
165
165
  errorMessage: StringConstructor;
166
- enterkeyhint: StringConstructor;
166
+ enterkeyhint: import("vue").PropType<import("../field").FieldEnterKeyHint>;
167
167
  clearTrigger: {
168
168
  type: import("vue").PropType<import("../field").FieldClearTrigger>;
169
169
  default: import("../field").FieldClearTrigger;
@@ -209,12 +209,12 @@ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
209
209
  }>> & Readonly<{
210
210
  onFocus?: ((...args: any[]) => any) | undefined;
211
211
  onBlur?: ((...args: any[]) => any) | undefined;
212
+ onCancel?: ((...args: any[]) => any) | undefined;
212
213
  onClear?: ((...args: any[]) => any) | undefined;
213
214
  onClickInput?: ((...args: any[]) => any) | undefined;
214
215
  onClickLeftIcon?: ((...args: any[]) => any) | undefined;
215
216
  onClickRightIcon?: ((...args: any[]) => any) | undefined;
216
217
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
217
- onCancel?: ((...args: any[]) => any) | undefined;
218
218
  onSearch?: ((...args: any[]) => any) | undefined;
219
219
  }>, {
220
220
  autofocus: boolean;
@@ -109,6 +109,7 @@ var stdin_default = (0, import_vue.defineComponent)({
109
109
  "with-message": fieldAttrs.errorMessage
110
110
  }),
111
111
  "border": false,
112
+ "labelAlign": "left",
112
113
  "onBlur": onBlur,
113
114
  "onFocus": onFocus,
114
115
  "onClear": onClear,
@@ -24,7 +24,7 @@ export declare const Search: import("../utils").WithInstall<import("vue").Define
24
24
  autocapitalize: StringConstructor;
25
25
  autocorrect: StringConstructor;
26
26
  errorMessage: StringConstructor;
27
- enterkeyhint: StringConstructor;
27
+ enterkeyhint: import("vue").PropType<import("..").FieldEnterKeyHint>;
28
28
  clearTrigger: {
29
29
  type: import("vue").PropType<import("..").FieldClearTrigger>;
30
30
  default: import("..").FieldClearTrigger;
@@ -92,7 +92,7 @@ export declare const Search: import("../utils").WithInstall<import("vue").Define
92
92
  autocapitalize: StringConstructor;
93
93
  autocorrect: StringConstructor;
94
94
  errorMessage: StringConstructor;
95
- enterkeyhint: StringConstructor;
95
+ enterkeyhint: import("vue").PropType<import("..").FieldEnterKeyHint>;
96
96
  clearTrigger: {
97
97
  type: import("vue").PropType<import("..").FieldClearTrigger>;
98
98
  default: import("..").FieldClearTrigger;
@@ -138,12 +138,12 @@ export declare const Search: import("../utils").WithInstall<import("vue").Define
138
138
  }>> & Readonly<{
139
139
  onFocus?: ((...args: any[]) => any) | undefined;
140
140
  onBlur?: ((...args: any[]) => any) | undefined;
141
+ onCancel?: ((...args: any[]) => any) | undefined;
141
142
  onClear?: ((...args: any[]) => any) | undefined;
142
143
  onClickInput?: ((...args: any[]) => any) | undefined;
143
144
  onClickLeftIcon?: ((...args: any[]) => any) | undefined;
144
145
  onClickRightIcon?: ((...args: any[]) => any) | undefined;
145
146
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
146
- onCancel?: ((...args: any[]) => any) | undefined;
147
147
  onSearch?: ((...args: any[]) => any) | undefined;
148
148
  }>, {
149
149
  autofocus: boolean;
@@ -148,8 +148,8 @@ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
148
148
  };
149
149
  }>> & Readonly<{
150
150
  onSelect?: ((...args: any[]) => any) | undefined;
151
- "onUpdate:show"?: ((...args: any[]) => any) | undefined;
152
151
  onCancel?: ((...args: any[]) => any) | undefined;
152
+ "onUpdate:show"?: ((...args: any[]) => any) | undefined;
153
153
  }>, {
154
154
  round: boolean;
155
155
  overlay: boolean;
@@ -92,8 +92,8 @@ export declare const ShareSheet: import("../utils").WithInstall<import("vue").De
92
92
  };
93
93
  }>> & Readonly<{
94
94
  onSelect?: ((...args: any[]) => any) | undefined;
95
- "onUpdate:show"?: ((...args: any[]) => any) | undefined;
96
95
  onCancel?: ((...args: any[]) => any) | undefined;
96
+ "onUpdate:show"?: ((...args: any[]) => any) | undefined;
97
97
  }>, {
98
98
  round: boolean;
99
99
  overlay: boolean;
@@ -13,6 +13,11 @@ export declare const signatureProps: {
13
13
  type: NumberConstructor;
14
14
  default: number;
15
15
  };
16
+ historySize: {
17
+ type: NumberConstructor;
18
+ default: number;
19
+ };
20
+ undoButtonText: StringConstructor;
16
21
  clearButtonText: StringConstructor;
17
22
  backgroundColor: {
18
23
  type: import("vue").PropType<string>;
@@ -35,6 +40,11 @@ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
35
40
  type: NumberConstructor;
36
41
  default: number;
37
42
  };
43
+ historySize: {
44
+ type: NumberConstructor;
45
+ default: number;
46
+ };
47
+ undoButtonText: StringConstructor;
38
48
  clearButtonText: StringConstructor;
39
49
  backgroundColor: {
40
50
  type: import("vue").PropType<string>;
@@ -55,6 +65,11 @@ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
55
65
  type: NumberConstructor;
56
66
  default: number;
57
67
  };
68
+ historySize: {
69
+ type: NumberConstructor;
70
+ default: number;
71
+ };
72
+ undoButtonText: StringConstructor;
58
73
  clearButtonText: StringConstructor;
59
74
  backgroundColor: {
60
75
  type: import("vue").PropType<string>;
@@ -72,5 +87,6 @@ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
72
87
  backgroundColor: string;
73
88
  lineWidth: number;
74
89
  penColor: string;
90
+ historySize: number;
75
91
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
76
92
  export default _default;
@@ -32,6 +32,8 @@ const signatureProps = {
32
32
  type: (0, import_utils.makeStringProp)("png"),
33
33
  penColor: (0, import_utils.makeStringProp)("#000"),
34
34
  lineWidth: (0, import_utils.makeNumberProp)(3),
35
+ historySize: (0, import_utils.makeNumberProp)(20),
36
+ undoButtonText: String,
35
37
  clearButtonText: String,
36
38
  backgroundColor: (0, import_utils.makeStringProp)(""),
37
39
  confirmButtonText: String
@@ -59,6 +61,15 @@ var stdin_default = (0, import_vue.defineComponent)({
59
61
  let canvasWidth = 0;
60
62
  let canvasHeight = 0;
61
63
  let canvasRect;
64
+ const history = (0, import_vue.ref)([]);
65
+ const saveState = () => {
66
+ if (ctx.value && canvasWidth && canvasHeight) {
67
+ if (history.value.length >= props.historySize) {
68
+ history.value.shift();
69
+ }
70
+ history.value.push(ctx.value.getImageData(0, 0, canvasWidth, canvasHeight));
71
+ }
72
+ };
62
73
  const touchStart = () => {
63
74
  if (!ctx.value) {
64
75
  return false;
@@ -85,6 +96,7 @@ var stdin_default = (0, import_vue.defineComponent)({
85
96
  };
86
97
  const touchEnd = (event) => {
87
98
  (0, import_utils.preventDefault)(event);
99
+ saveState();
88
100
  emit("end");
89
101
  };
90
102
  const isCanvasEmpty = (canvas) => {
@@ -125,8 +137,21 @@ var stdin_default = (0, import_vue.defineComponent)({
125
137
  ctx.value.closePath();
126
138
  setCanvasBgColor(ctx.value);
127
139
  }
140
+ history.value = [];
128
141
  emit("clear");
129
142
  };
143
+ const undo = () => {
144
+ if (history.value.length) {
145
+ history.value.pop();
146
+ if (ctx.value) {
147
+ ctx.value.clearRect(0, 0, canvasWidth, canvasHeight);
148
+ setCanvasBgColor(ctx.value);
149
+ if (history.value.length) {
150
+ ctx.value.putImageData(history.value[history.value.length - 1], 0, 0);
151
+ }
152
+ }
153
+ }
154
+ };
130
155
  const initialize = () => {
131
156
  var _a, _b, _c;
132
157
  if (isRenderCanvas && canvasRef.value) {
@@ -150,7 +175,8 @@ var stdin_default = (0, import_vue.defineComponent)({
150
175
  (0, import_use_expose.useExpose)({
151
176
  resize,
152
177
  clear,
153
- submit
178
+ submit,
179
+ undo
154
180
  });
155
181
  return () => (0, import_vue.createVNode)("div", {
156
182
  "class": bem()
@@ -169,6 +195,11 @@ var stdin_default = (0, import_vue.defineComponent)({
169
195
  "onClick": clear
170
196
  }, {
171
197
  default: () => [props.clearButtonText || t("clear")]
198
+ }), (0, import_vue.createVNode)(import_button.Button, {
199
+ "size": "small",
200
+ "onClick": undo
201
+ }, {
202
+ default: () => [props.undoButtonText || t("undo")]
172
203
  }), (0, import_vue.createVNode)(import_button.Button, {
173
204
  "type": "primary",
174
205
  "size": "small",
@@ -12,6 +12,11 @@ export declare const Signature: import("../utils").WithInstall<import("vue").Def
12
12
  type: NumberConstructor;
13
13
  default: number;
14
14
  };
15
+ historySize: {
16
+ type: NumberConstructor;
17
+ default: number;
18
+ };
19
+ undoButtonText: StringConstructor;
15
20
  clearButtonText: StringConstructor;
16
21
  backgroundColor: {
17
22
  type: import("vue").PropType<string>;
@@ -32,6 +37,11 @@ export declare const Signature: import("../utils").WithInstall<import("vue").Def
32
37
  type: NumberConstructor;
33
38
  default: number;
34
39
  };
40
+ historySize: {
41
+ type: NumberConstructor;
42
+ default: number;
43
+ };
44
+ undoButtonText: StringConstructor;
35
45
  clearButtonText: StringConstructor;
36
46
  backgroundColor: {
37
47
  type: import("vue").PropType<string>;
@@ -49,6 +59,7 @@ export declare const Signature: import("../utils").WithInstall<import("vue").Def
49
59
  backgroundColor: string;
50
60
  lineWidth: number;
51
61
  penColor: string;
62
+ historySize: number;
52
63
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>>;
53
64
  export default Signature;
54
65
  export type { SignatureProps } from './Signature';
@@ -4,6 +4,7 @@ export type SignatureExpose = {
4
4
  resize: () => void;
5
5
  clear: () => void;
6
6
  submit: () => void;
7
+ undo: () => void;
7
8
  };
8
9
  export type SignatureInstance = ComponentPublicInstance<SignatureProps, SignatureExpose>;
9
10
  export type SignatureThemeVars = {
@@ -69,6 +69,9 @@ var stdin_default = (0, import_vue.defineComponent)({
69
69
  if (allowEmpty && value === "") {
70
70
  return value;
71
71
  }
72
+ if (typeof value === "number" && String(value).includes("e")) {
73
+ value = value.toFixed(decimalLength ? +decimalLength : 17);
74
+ }
72
75
  value = (0, import_utils.formatNumber)(String(value), !props.integer);
73
76
  value = value === "" ? 0 : +value;
74
77
  value = Number.isNaN(value) ? +min : value;
@@ -8,6 +8,11 @@ export declare const swipeCellProps: {
8
8
  disabled: BooleanConstructor;
9
9
  leftWidth: (NumberConstructor | StringConstructor)[];
10
10
  rightWidth: (NumberConstructor | StringConstructor)[];
11
+ threshold: {
12
+ type: (NumberConstructor | StringConstructor)[];
13
+ default: number;
14
+ validator: (value: number | string) => boolean;
15
+ };
11
16
  beforeClose: PropType<Interceptor>;
12
17
  stopPropagation: BooleanConstructor;
13
18
  };
@@ -20,6 +25,11 @@ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
20
25
  disabled: BooleanConstructor;
21
26
  leftWidth: (NumberConstructor | StringConstructor)[];
22
27
  rightWidth: (NumberConstructor | StringConstructor)[];
28
+ threshold: {
29
+ type: (NumberConstructor | StringConstructor)[];
30
+ default: number;
31
+ validator: (value: number | string) => boolean;
32
+ };
23
33
  beforeClose: PropType<Interceptor>;
24
34
  stopPropagation: BooleanConstructor;
25
35
  }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("open" | "click" | "close")[], "open" | "click" | "close", import("vue").PublicProps, Readonly<ExtractPropTypes<{
@@ -30,6 +40,11 @@ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
30
40
  disabled: BooleanConstructor;
31
41
  leftWidth: (NumberConstructor | StringConstructor)[];
32
42
  rightWidth: (NumberConstructor | StringConstructor)[];
43
+ threshold: {
44
+ type: (NumberConstructor | StringConstructor)[];
45
+ default: number;
46
+ validator: (value: number | string) => boolean;
47
+ };
33
48
  beforeClose: PropType<Interceptor>;
34
49
  stopPropagation: BooleanConstructor;
35
50
  }>> & Readonly<{
@@ -40,5 +55,6 @@ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
40
55
  name: string | number;
41
56
  disabled: boolean;
42
57
  stopPropagation: boolean;
58
+ threshold: string | number;
43
59
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
44
60
  export default _default;
@@ -32,6 +32,11 @@ const swipeCellProps = {
32
32
  disabled: Boolean,
33
33
  leftWidth: import_utils.numericProp,
34
34
  rightWidth: import_utils.numericProp,
35
+ threshold: {
36
+ type: import_utils.numericProp,
37
+ default: 0.15,
38
+ validator: (value) => +value >= 0 && +value <= 1
39
+ },
35
40
  beforeClose: Function,
36
41
  stopPropagation: Boolean
37
42
  };
@@ -80,8 +85,8 @@ var stdin_default = (0, import_vue.defineComponent)({
80
85
  };
81
86
  const toggle = (side) => {
82
87
  const offset = Math.abs(state.offset);
83
- const THRESHOLD = 0.15;
84
- const threshold = opened ? 1 - THRESHOLD : THRESHOLD;
88
+ const thresholdValue = +props.threshold;
89
+ const threshold = opened ? 1 - thresholdValue : thresholdValue;
85
90
  const width = side === "left" ? leftWidth.value : rightWidth.value;
86
91
  if (width && offset > width * threshold) {
87
92
  open(side);
@@ -7,6 +7,11 @@ export declare const SwipeCell: import("../utils").WithInstall<import("vue").Def
7
7
  disabled: BooleanConstructor;
8
8
  leftWidth: (NumberConstructor | StringConstructor)[];
9
9
  rightWidth: (NumberConstructor | StringConstructor)[];
10
+ threshold: {
11
+ type: (NumberConstructor | StringConstructor)[];
12
+ default: number;
13
+ validator: (value: number | string) => boolean;
14
+ };
10
15
  beforeClose: import("vue").PropType<import("../utils").Interceptor>;
11
16
  stopPropagation: BooleanConstructor;
12
17
  }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("open" | "click" | "close")[], "open" | "click" | "close", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
@@ -17,6 +22,11 @@ export declare const SwipeCell: import("../utils").WithInstall<import("vue").Def
17
22
  disabled: BooleanConstructor;
18
23
  leftWidth: (NumberConstructor | StringConstructor)[];
19
24
  rightWidth: (NumberConstructor | StringConstructor)[];
25
+ threshold: {
26
+ type: (NumberConstructor | StringConstructor)[];
27
+ default: number;
28
+ validator: (value: number | string) => boolean;
29
+ };
20
30
  beforeClose: import("vue").PropType<import("../utils").Interceptor>;
21
31
  stopPropagation: BooleanConstructor;
22
32
  }>> & Readonly<{
@@ -27,6 +37,7 @@ export declare const SwipeCell: import("../utils").WithInstall<import("vue").Def
27
37
  name: string | number;
28
38
  disabled: boolean;
29
39
  stopPropagation: boolean;
40
+ threshold: string | number;
30
41
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>>;
31
42
  export default SwipeCell;
32
43
  export { swipeCellProps } from './SwipeCell';
@@ -150,8 +150,8 @@ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
150
150
  "onUpdate:active"?: ((...args: any[]) => any) | undefined;
151
151
  }>, {
152
152
  type: TabsType;
153
- ellipsis: boolean;
154
153
  sticky: boolean;
154
+ ellipsis: boolean;
155
155
  border: boolean;
156
156
  active: string | number;
157
157
  duration: string | number;