@nutui/nutui 3.1.22-beta.0 → 3.1.22

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 (237) hide show
  1. package/CHANGELOG.md +48 -0
  2. package/README.md +3 -4
  3. package/dist/nutui.es.js +4203 -19263
  4. package/dist/nutui.umd.js +4208 -19368
  5. package/dist/packages/_es/ActionSheet.js +17 -167
  6. package/dist/packages/_es/Address.js +110 -552
  7. package/dist/packages/_es/AddressList.js +113 -613
  8. package/dist/packages/_es/Animate.js +22 -0
  9. package/dist/packages/_es/Audio.js +53 -274
  10. package/dist/packages/_es/AudioOperate.js +13 -121
  11. package/dist/packages/_es/Avatar.js +38 -177
  12. package/dist/packages/_es/AvatarGroup.js +14 -73
  13. package/dist/packages/_es/BackTop.js +43 -156
  14. package/dist/packages/_es/Badge.js +14 -86
  15. package/dist/packages/_es/Barrage.js +41 -120
  16. package/dist/packages/_es/Button.js +23 -128
  17. package/dist/packages/_es/Calendar.js +30 -237
  18. package/dist/packages/_es/CalendarItem.js +2 -1
  19. package/dist/packages/_es/Card.js +10 -107
  20. package/dist/packages/_es/Cascader.js +147 -523
  21. package/dist/packages/_es/Category.js +15 -58
  22. package/dist/packages/_es/CategoryPane.js +11 -111
  23. package/dist/packages/_es/Cell.js +21 -100
  24. package/dist/packages/_es/CellGroup.js +9 -44
  25. package/dist/packages/_es/Checkbox.js +31 -113
  26. package/dist/packages/_es/CheckboxGroup.js +29 -58
  27. package/dist/packages/_es/CircleProgress.js +28 -151
  28. package/dist/packages/_es/Col.js +14 -56
  29. package/dist/packages/_es/Collapse.js +32 -84
  30. package/dist/packages/_es/CollapseItem.js +59 -272
  31. package/dist/packages/_es/Comment.js +64 -434
  32. package/dist/packages/_es/ConfigProvider.js +13 -0
  33. package/dist/packages/_es/CountDown.js +56 -256
  34. package/dist/packages/_es/CountUp.js +140 -556
  35. package/dist/packages/_es/DatePicker.js +98 -332
  36. package/dist/packages/_es/Dialog.js +60 -271
  37. package/dist/packages/_es/Divider.js +13 -82
  38. package/dist/packages/_es/Drag.js +56 -197
  39. package/dist/packages/_es/Ecard.js +24 -159
  40. package/dist/packages/_es/Elevator.js +58 -212
  41. package/dist/packages/_es/Ellipsis.js +64 -0
  42. package/dist/packages/_es/Empty.js +12 -71
  43. package/dist/packages/_es/FixedNav.js +15 -122
  44. package/dist/packages/_es/Form.js +64 -151
  45. package/dist/packages/_es/FormItem.js +15 -110
  46. package/dist/packages/_es/Grid.js +5 -6
  47. package/dist/packages/_es/GridItem.js +33 -144
  48. package/dist/packages/_es/Icon.js +15 -40
  49. package/dist/packages/_es/Image.js +31 -0
  50. package/dist/packages/_es/ImagePreview.js +77 -309
  51. package/dist/packages/_es/Indicator.js +15 -62
  52. package/dist/packages/_es/InfiniteLoading.js +57 -268
  53. package/dist/packages/_es/Input.js +51 -413
  54. package/dist/packages/_es/InputNumber.js +41 -160
  55. package/dist/packages/_es/Layout.js +4 -5
  56. package/dist/packages/_es/List.js +18 -124
  57. package/dist/packages/_es/Menu.js +45 -118
  58. package/dist/packages/_es/MenuItem.js +37 -162
  59. package/dist/packages/_es/Navbar.js +30 -192
  60. package/dist/packages/_es/NoticeBar.js +74 -397
  61. package/dist/packages/_es/Notify.js +72 -246
  62. package/dist/packages/_es/NumberKeyboard.js +41 -272
  63. package/dist/packages/_es/OldPicker.js +131 -474
  64. package/dist/packages/_es/OverLay.js +24 -113
  65. package/dist/packages/_es/Pagination.js +39 -157
  66. package/dist/packages/_es/Picker.js +129 -469
  67. package/dist/packages/_es/Popover.js +318 -975
  68. package/dist/packages/_es/Popup.js +55 -313
  69. package/dist/packages/_es/Price.js +16 -118
  70. package/dist/packages/_es/Progress.js +14 -146
  71. package/dist/packages/_es/PullRefresh.js +84 -354
  72. package/dist/packages/_es/Radio.js +22 -90
  73. package/dist/packages/_es/RadioGroup.js +8 -37
  74. package/dist/packages/_es/Range.js +83 -427
  75. package/dist/packages/_es/Rate.js +35 -137
  76. package/dist/packages/_es/Row.js +22 -64
  77. package/dist/packages/_es/SearchBar.js +37 -257
  78. package/dist/packages/_es/ShortPassword.js +35 -225
  79. package/dist/packages/_es/SideNavBar.js +24 -99
  80. package/dist/packages/_es/SideNavBarItem.js +11 -46
  81. package/dist/packages/_es/Signature.js +41 -179
  82. package/dist/packages/_es/Skeleton.js +20 -136
  83. package/dist/packages/_es/Sku.js +84 -509
  84. package/dist/packages/_es/Step.js +20 -133
  85. package/dist/packages/_es/Steps.js +18 -53
  86. package/dist/packages/_es/Sticky.js +53 -138
  87. package/dist/packages/_es/SubSideNavBar.js +17 -100
  88. package/dist/packages/_es/Swipe.js +41 -197
  89. package/dist/packages/_es/Swiper.js +121 -433
  90. package/dist/packages/_es/SwiperItem.js +22 -53
  91. package/dist/packages/_es/Switch.js +21 -116
  92. package/dist/packages/_es/TabPane.js +12 -39
  93. package/dist/packages/_es/Tabbar.js +17 -72
  94. package/dist/packages/_es/TabbarItem.js +29 -151
  95. package/dist/packages/_es/Table.js +18 -196
  96. package/dist/packages/_es/Tabs.js +43 -217
  97. package/dist/packages/_es/Tag.js +20 -97
  98. package/dist/packages/_es/TextArea.js +42 -160
  99. package/dist/packages/_es/TimeDetail.js +18 -98
  100. package/dist/packages/_es/TimePannel.js +14 -66
  101. package/dist/packages/_es/TimeSelect.js +15 -103
  102. package/dist/packages/_es/Toast.js +71 -329
  103. package/dist/packages/_es/Uploader.js +104 -468
  104. package/dist/packages/_es/Video.js +74 -350
  105. package/dist/packages/_es/common.js +38 -128
  106. package/dist/packages/_es/component.js +35 -76
  107. package/dist/packages/_es/index.js +5 -6
  108. package/dist/packages/_es/index2.js +9 -30
  109. package/dist/packages/_es/index3.js +6 -8
  110. package/dist/packages/_es/index4.js +13 -58
  111. package/dist/packages/_es/index5.js +164 -682
  112. package/dist/packages/_es/plugin-vue_export-helper.js +7 -8
  113. package/dist/packages/_es/pxCheck.js +3 -5
  114. package/dist/packages/_es/raf.js +8 -15
  115. package/dist/packages/animate/index.scss +299 -0
  116. package/dist/packages/button/index.scss +2 -1
  117. package/dist/packages/cell/index.scss +18 -1
  118. package/dist/packages/checkbox/index.scss +16 -0
  119. package/dist/packages/configprovider/index.scss +2 -0
  120. package/dist/packages/dialog/index.scss +1 -0
  121. package/dist/packages/elevator/index.scss +21 -0
  122. package/dist/packages/ellipsis/index.scss +12 -0
  123. package/dist/packages/formitem/index.scss +12 -0
  124. package/dist/packages/griditem/index.scss +11 -0
  125. package/dist/packages/image/index.scss +39 -0
  126. package/dist/packages/imagepreview/index.scss +21 -2
  127. package/dist/packages/input/index.scss +26 -1
  128. package/dist/packages/inputnumber/index.scss +21 -0
  129. package/dist/packages/locale/lang/baseLang.d.ts +1 -0
  130. package/dist/packages/locale/lang/baseLang.js +3 -3
  131. package/dist/packages/locale/lang/en-US.d.ts +8 -0
  132. package/dist/packages/locale/lang/en-US.js +5 -97
  133. package/dist/packages/locale/lang/id-ID.d.ts +8 -0
  134. package/dist/packages/locale/lang/id-ID.js +5 -97
  135. package/dist/packages/locale/lang/index.js +16 -38
  136. package/dist/packages/locale/lang/zh-CN.d.ts +8 -0
  137. package/dist/packages/locale/lang/zh-CN.js +5 -97
  138. package/dist/packages/locale/lang/zh-TW.d.ts +8 -0
  139. package/dist/packages/locale/lang/zh-TW.js +5 -97
  140. package/dist/packages/menu/index.scss +45 -36
  141. package/dist/packages/menuitem/index.scss +4 -0
  142. package/dist/packages/navbar/index.scss +9 -0
  143. package/dist/packages/pagination/index.scss +19 -0
  144. package/dist/packages/radio/index.scss +19 -0
  145. package/dist/packages/range/index.scss +19 -0
  146. package/dist/packages/rate/index.scss +1 -1
  147. package/dist/packages/searchbar/index.scss +21 -0
  148. package/dist/packages/switch/index.scss +4 -3
  149. package/dist/packages/tabbar/index.scss +5 -0
  150. package/dist/packages/tabbaritem/index.scss +7 -0
  151. package/dist/packages/tabpane/index.scss +6 -0
  152. package/dist/packages/tabs/index.scss +22 -0
  153. package/dist/packages/textarea/index.scss +8 -0
  154. package/dist/smartips/attributes.json +192 -12
  155. package/dist/smartips/tags.json +70 -10
  156. package/dist/smartips/web-types.json +6945 -0
  157. package/dist/style.css +1 -1
  158. package/dist/style.es.js +1 -1
  159. package/dist/styles/font/config.json +3 -1
  160. package/dist/styles/font/demo_index.html +49 -3
  161. package/dist/styles/font/iconfont.css +11 -3
  162. package/dist/styles/font/iconfont.js +15 -15
  163. package/dist/styles/font/iconfont.json +14 -0
  164. package/dist/styles/font/iconfont.ttf +0 -0
  165. package/dist/styles/font/iconfont.woff +0 -0
  166. package/dist/styles/font/iconfont.woff2 +0 -0
  167. package/dist/styles/themes/default.scss +54 -50
  168. package/dist/styles/themes/jdb.scss +54 -50
  169. package/dist/styles/themes/jdt.scss +54 -50
  170. package/dist/styles/variables-jdb.scss +22 -1
  171. package/dist/styles/variables-jdt.scss +22 -1
  172. package/dist/styles/variables.scss +22 -1
  173. package/dist/types/__VUE/actionsheet/index.vue.d.ts +2 -2
  174. package/dist/types/__VUE/address/index.vue.d.ts +4 -4
  175. package/dist/types/__VUE/addresslist/components/ItemContents.vue.d.ts +1 -0
  176. package/dist/types/__VUE/animate/index.vue.d.ts +48 -0
  177. package/dist/types/__VUE/animate/type.d.ts +6 -0
  178. package/dist/types/__VUE/audiooperate/index.vue.d.ts +1 -0
  179. package/dist/types/__VUE/avatar/index.vue.d.ts +5 -5
  180. package/dist/types/__VUE/avatargroup/index.vue.d.ts +2 -2
  181. package/dist/types/__VUE/badge/index.vue.d.ts +4 -4
  182. package/dist/types/__VUE/button/index.vue.d.ts +6 -6
  183. package/dist/types/__VUE/calendaritem/index.vue.d.ts +10 -2
  184. package/dist/types/__VUE/cascader/index.vue.d.ts +3 -3
  185. package/dist/types/__VUE/cell/index.vue.d.ts +11 -4
  186. package/dist/types/__VUE/checkbox/common.d.ts +59 -0
  187. package/dist/types/__VUE/checkbox/index.vue.d.ts +20 -7
  188. package/dist/types/__VUE/checkboxgroup/index.vue.d.ts +7 -0
  189. package/dist/types/__VUE/circleprogress/index.vue.d.ts +2 -2
  190. package/dist/types/__VUE/collapse/index.vue.d.ts +3 -1
  191. package/dist/types/__VUE/comment/index.vue.d.ts +2 -2
  192. package/dist/types/__VUE/configprovider/common.d.ts +20 -0
  193. package/dist/types/__VUE/configprovider/index.vue.d.ts +33 -0
  194. package/dist/types/__VUE/datepicker/index.vue.d.ts +2 -2
  195. package/dist/types/__VUE/dialog/index.d.ts +9 -2
  196. package/dist/types/__VUE/dialog/index.vue.d.ts +25 -10
  197. package/dist/types/__VUE/ecard/index.vue.d.ts +3 -3
  198. package/dist/types/__VUE/elevator/index.vue.d.ts +29 -0
  199. package/dist/types/__VUE/ellipsis/index.vue.d.ts +72 -0
  200. package/dist/types/__VUE/empty/index.vue.d.ts +2 -2
  201. package/dist/types/__VUE/fixednav/index.vue.d.ts +2 -2
  202. package/dist/types/__VUE/formitem/index.vue.d.ts +3 -10
  203. package/dist/types/__VUE/grid/index.vue.d.ts +4 -4
  204. package/dist/types/__VUE/griditem/index.vue.d.ts +1 -1
  205. package/dist/types/__VUE/image/index.vue.d.ts +105 -0
  206. package/dist/types/__VUE/image/type.d.ts +6 -0
  207. package/dist/types/__VUE/imagepreview/index.vue.d.ts +36 -2
  208. package/dist/types/__VUE/input/index.vue.d.ts +6 -6
  209. package/dist/types/__VUE/inputnumber/index.vue.d.ts +2 -2
  210. package/dist/types/__VUE/menu/index.vue.d.ts +29 -2
  211. package/dist/types/__VUE/menuitem/index.vue.d.ts +12 -3
  212. package/dist/types/__VUE/noticebar/index.vue.d.ts +3 -3
  213. package/dist/types/__VUE/notify/index.vue.d.ts +2 -2
  214. package/dist/types/__VUE/oldpicker/index.vue.d.ts +2 -2
  215. package/dist/types/__VUE/picker/Column.vue.d.ts +1 -1
  216. package/dist/types/__VUE/picker/index.vue.d.ts +3 -3
  217. package/dist/types/__VUE/popover/index.vue.d.ts +6 -6
  218. package/dist/types/__VUE/popup/index.vue.d.ts +2 -2
  219. package/dist/types/__VUE/radio/index.vue.d.ts +4 -4
  220. package/dist/types/__VUE/range/index.vue.d.ts +4 -4
  221. package/dist/types/__VUE/rate/common.d.ts +149 -0
  222. package/dist/types/__VUE/rate/index.vue.d.ts +15 -5
  223. package/dist/types/__VUE/skeleton/index.vue.d.ts +4 -4
  224. package/dist/types/__VUE/sku/index.vue.d.ts +2 -2
  225. package/dist/types/__VUE/step/index.vue.d.ts +2 -2
  226. package/dist/types/__VUE/sticky/index.vue.d.ts +4 -4
  227. package/dist/types/__VUE/swiper/index.vue.d.ts +4 -4
  228. package/dist/types/__VUE/tabbar/index.vue.d.ts +2 -2
  229. package/dist/types/__VUE/tag/index.vue.d.ts +2 -2
  230. package/dist/types/__VUE/timeselect/index.vue.d.ts +10 -2
  231. package/dist/types/__VUE/toast/index.vue.d.ts +5 -5
  232. package/dist/types/__VUE/uploader/index.vue.d.ts +6 -6
  233. package/dist/types/__VUE/uploader/uploader.d.ts +1 -0
  234. package/dist/types/__VUE/video/index.vue.d.ts +1 -1
  235. package/dist/types/index.d.ts +1 -1
  236. package/dist/types/nutui.d.ts +5 -1
  237. package/package.json +6 -3
@@ -1,255 +1,81 @@
1
- var __defProp = Object.defineProperty;
2
- var __defProps = Object.defineProperties;
3
- var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
4
- var __getOwnPropSymbols = Object.getOwnPropertySymbols;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __propIsEnum = Object.prototype.propertyIsEnumerable;
7
- var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
8
- var __spreadValues = (a, b) => {
9
- for (var prop in b || (b = {}))
10
- if (__hasOwnProp.call(b, prop))
11
- __defNormalProp(a, prop, b[prop]);
12
- if (__getOwnPropSymbols)
13
- for (var prop of __getOwnPropSymbols(b)) {
14
- if (__propIsEnum.call(b, prop))
15
- __defNormalProp(a, prop, b[prop]);
16
- }
17
- return a;
18
- };
19
- var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20
1
  /*!
21
- * @nutui/nutui v3.1.22-beta.0 Tue May 31 2022 21:47:10 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.1.22 Fri Jun 24 2022 18:11:16 GMT+0800 (中国标准时间)
22
3
  * (c) 2022 @jdf2e.
23
4
  * Released under the MIT License.
24
5
  */
25
- import { reactive, onMounted, ref, watch, resolveComponent, openBlock, createBlock, withCtx, createElementVNode, normalizeClass, normalizeStyle, renderSlot, createElementBlock, Fragment, createTextVNode, toDisplayString, createVNode, render, h } from "vue";
26
- import { c as createComponent } from "./component.js";
27
- import Popup from "./Popup.js";
28
- import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
6
+ import { reactive as e, onMounted as t, ref as o, watch as n, resolveComponent as i, openBlock as l, createBlock as s, withCtx as r, createElementVNode as u, normalizeClass as d, normalizeStyle as p, renderSlot as a, createElementBlock as c, Fragment as m, createTextVNode as y, toDisplayString as f, createVNode as g, render as v, h as C } from "vue";
7
+ import { c as b } from "./component.js";
8
+ import h from "./Popup.js";
9
+ import { _ as k } from "./plugin-vue_export-helper.js";
29
10
  import "../locale/lang";
30
11
  import "./OverLay.js";
31
12
  import "./Icon.js";
32
13
  import "./pxCheck.js";
33
- const { componentName, create } = createComponent("notify");
34
- const _sfc_main = create({
35
- components: {
36
- [Popup.name]: Popup
37
- },
38
- props: {
39
- id: String,
40
- color: { type: String, default: "" },
41
- msg: { type: String, default: "" },
42
- duration: { type: Number, default: 3e3 },
43
- className: {
44
- type: String,
45
- default: ""
46
- },
47
- background: { type: String, default: "" },
48
- type: {
49
- type: String,
50
- default: "danger"
51
- },
52
- showPopup: {
53
- type: Boolean,
54
- default: false
55
- },
56
- position: {
57
- type: String,
58
- default: "top"
59
- },
60
- isWrapTeleport: {
61
- type: Boolean,
62
- default: true
63
- },
64
- onClose: Function,
65
- onClick: Function,
66
- unmount: Function
67
- },
68
- setup(props, { slots }) {
69
- let timer = null;
70
- const state = reactive({
71
- mounted: false
72
- });
73
- onMounted(() => {
74
- });
75
- const visible = ref(false);
76
- const clickCover = () => {
77
- props.onClick && props.onClick();
78
- };
79
- const clearTimer = () => {
80
- if (timer) {
81
- clearTimeout(timer);
82
- timer = null;
83
- }
84
- };
85
- const hide = () => {
86
- state.mounted = false;
87
- };
88
- const show = () => {
89
- clearTimer();
90
- if (props.duration) {
91
- timer = setTimeout(() => {
92
- hide();
93
- }, props.duration);
94
- }
95
- };
96
- if (props.duration) {
97
- show();
98
- }
99
- watch(() => props.duration, (val) => {
100
- if (val) {
101
- show();
102
- }
103
- });
104
- const onAfterLeave = () => {
105
- clearTimer();
106
- props.unmount && props.unmount(props.id);
107
- props.onClose && props.onClose();
108
- };
109
- return { state, hide, onAfterLeave, clickCover, visible };
110
- }
111
- });
112
- function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
113
- const _component_nut_popup = resolveComponent("nut-popup");
114
- return openBlock(), createBlock(_component_nut_popup, {
115
- visible: _ctx.showPopup,
116
- "onUpdate:visible": _cache[1] || (_cache[1] = ($event) => _ctx.showPopup = $event),
117
- position: _ctx.position,
118
- overlay: false,
119
- isWrapTeleport: _ctx.isWrapTeleport
120
- }, {
121
- default: withCtx(() => [
122
- createElementVNode("div", {
123
- class: normalizeClass(["nut-notify", `nut-notify--${_ctx.type}`, _ctx.className]),
124
- style: normalizeStyle({ color: _ctx.color, background: _ctx.background }),
125
- onClick: _cache[0] || (_cache[0] = (...args) => _ctx.clickCover && _ctx.clickCover(...args))
126
- }, [
127
- _ctx.$slots.default ? renderSlot(_ctx.$slots, "default", { key: 0 }) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
128
- createTextVNode(toDisplayString(_ctx.msg), 1)
129
- ], 64))
130
- ], 6)
131
- ]),
132
- _: 3
133
- }, 8, ["visible", "position", "isWrapTeleport"]);
134
- }
135
- var Notify = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
136
- const defaultOptions = {
137
- type: "base",
138
- showPopup: true,
139
- visible: true,
140
- msg: "",
141
- color: void 0,
142
- background: void 0,
143
- duration: 3e3,
144
- className: "",
145
- onClosed: null,
146
- onClick: null,
147
- onOpened: null,
148
- textTimer: null,
149
- unmount: null
150
- };
151
- let idsMap = [];
152
- let optsMap = [];
153
- const clearNotify = (id) => {
154
- if (id) {
155
- const container = document.getElementById(id);
156
- optsMap = optsMap.filter((item) => item.id !== id);
157
- idsMap = idsMap.filter((item) => item !== id);
158
- if (container) {
159
- document.body.removeChild(container);
160
- }
161
- } else {
162
- idsMap.forEach((item) => {
163
- const container = document.getElementById(item);
164
- if (container) {
165
- document.body.removeChild(container);
166
- }
167
- });
168
- optsMap = [];
169
- idsMap = [];
170
- }
171
- };
172
- const updateNotify = (opts) => {
173
- const container = document.getElementById(opts.id);
174
- if (container) {
175
- const currentOpt = optsMap.find((item) => item.id === opts.id);
176
- if (currentOpt) {
177
- opts = __spreadValues(__spreadValues(__spreadValues({}, defaultOptions), currentOpt), opts);
178
- } else {
179
- opts = __spreadValues(__spreadValues({}, defaultOptions), opts);
180
- }
181
- const instance = createVNode(Notify, opts);
182
- render(instance, container);
183
- return instance.component.ctx;
184
- }
185
- };
186
- const mountNotify = (opts) => {
187
- opts.unmount = clearNotify;
188
- let _id;
189
- if (opts.id) {
190
- _id = opts.id;
191
- if (idsMap.find((item) => item === opts.id)) {
192
- return updateNotify(opts);
193
- }
194
- } else {
195
- _id = new Date().getTime() + "";
196
- }
197
- opts = __spreadValues(__spreadValues({}, defaultOptions), opts);
198
- opts.id = _id;
199
- idsMap.push(opts.id);
200
- optsMap.push(opts);
201
- const root = document.createElement("view");
202
- root.id = "notify-" + opts.id;
203
- const Wrapper = {
204
- setup() {
205
- opts.teleport = `#notify-${opts.id}`;
206
- onMounted(() => {
207
- setTimeout(() => {
208
- document.body.removeChild(root);
209
- }, opts.duration);
210
- });
211
- return () => {
212
- return h(Notify, opts);
213
- };
214
- }
14
+ const { componentName: T, create: w } = b("notify");
15
+ var S = k(w({ components: { [h.name]: h }, props: { id: String, color: { type: String, default: "" }, msg: { type: String, default: "" }, duration: { type: Number, default: 3e3 }, className: { type: String, default: "" }, background: { type: String, default: "" }, type: { type: String, default: "danger" }, showPopup: { type: Boolean, default: false }, position: { type: String, default: "top" }, isWrapTeleport: { type: Boolean, default: true }, onClose: Function, onClick: Function, unmount: Function }, setup(i2, { slots: l2 }) {
16
+ let s2 = null;
17
+ const r2 = e({ mounted: false });
18
+ t(() => {
19
+ });
20
+ const u2 = o(false), d2 = () => {
21
+ s2 && (clearTimeout(s2), s2 = null);
22
+ }, p2 = () => {
23
+ r2.mounted = false;
24
+ }, a2 = () => {
25
+ d2(), i2.duration && (s2 = setTimeout(() => {
26
+ p2();
27
+ }, i2.duration));
215
28
  };
216
- const instance = createVNode(Wrapper);
217
- document.body.appendChild(root);
218
- render(instance, root);
219
- };
220
- const errorMsg = (msg) => {
221
- if (!msg) {
222
- console.warn("[NutUI Notify]: msg\u4E0D\u80FD\u4E3A\u7A7A");
223
- return;
224
- }
225
- };
226
- const NotifyFunction = {
227
- text(msg, obj = {}) {
228
- errorMsg(msg);
229
- return mountNotify(__spreadProps(__spreadValues({}, obj), { msg }));
230
- },
231
- primary(msg, obj = {}) {
232
- errorMsg(msg);
233
- return mountNotify(__spreadProps(__spreadValues({}, obj), { msg, type: "primary" }));
234
- },
235
- success(msg, obj = {}) {
236
- errorMsg(msg);
237
- return mountNotify(__spreadProps(__spreadValues({}, obj), { msg, type: "success" }));
238
- },
239
- danger(msg, obj = {}) {
240
- errorMsg(msg);
241
- return mountNotify(__spreadProps(__spreadValues({}, obj), { msg, type: "danger" }));
242
- },
243
- warn(msg, obj = {}) {
244
- errorMsg(msg);
245
- return mountNotify(__spreadProps(__spreadValues({}, obj), { msg, type: "warning" }));
246
- },
247
- hide() {
248
- clearNotify();
249
- },
250
- install(app) {
251
- app.use(Notify);
252
- app.config.globalProperties.$notify = NotifyFunction;
253
- }
254
- };
255
- export { Notify, NotifyFunction, NotifyFunction as default };
29
+ i2.duration && a2(), n(() => i2.duration, (e2) => {
30
+ e2 && a2();
31
+ });
32
+ return { state: r2, hide: p2, onAfterLeave: () => {
33
+ d2(), i2.unmount && i2.unmount(i2.id), i2.onClose && i2.onClose();
34
+ }, clickCover: () => {
35
+ i2.onClick && i2.onClick();
36
+ }, visible: u2 };
37
+ } }), [["render", function(e2, t2, o2, n2, g2, v2) {
38
+ const C2 = i("nut-popup");
39
+ return l(), s(C2, { visible: e2.showPopup, "onUpdate:visible": t2[1] || (t2[1] = (t3) => e2.showPopup = t3), position: e2.position, overlay: false, isWrapTeleport: e2.isWrapTeleport }, { default: r(() => [u("div", { class: d(["nut-notify", `nut-notify--${e2.type}`, e2.className]), style: p({ color: e2.color, background: e2.background }), onClick: t2[0] || (t2[0] = (...t3) => e2.clickCover && e2.clickCover(...t3)) }, [e2.$slots.default ? a(e2.$slots, "default", { key: 0 }) : (l(), c(m, { key: 1 }, [y(f(e2.msg), 1)], 64))], 6)]), _: 3 }, 8, ["visible", "position", "isWrapTeleport"]);
40
+ }]]);
41
+ const j = { type: "base", showPopup: true, visible: true, msg: "", color: void 0, background: void 0, duration: 3e3, className: "", onClosed: null, onClick: null, onOpened: null, textTimer: null, unmount: null };
42
+ let x = [], P = [];
43
+ const B = (e2) => {
44
+ if (e2) {
45
+ const t2 = document.getElementById(e2);
46
+ P = P.filter((t3) => t3.id !== e2), x = x.filter((t3) => t3 !== e2), t2 && document.body.removeChild(t2);
47
+ } else
48
+ x.forEach((e3) => {
49
+ const t2 = document.getElementById(e3);
50
+ t2 && document.body.removeChild(t2);
51
+ }), P = [], x = [];
52
+ }, E = (e2) => {
53
+ let o2;
54
+ if (e2.unmount = B, e2.id) {
55
+ if (o2 = e2.id, x.find((t2) => t2 === e2.id))
56
+ return ((e3) => {
57
+ const t2 = document.getElementById(e3.id);
58
+ if (t2) {
59
+ const o3 = P.find((t3) => t3.id === e3.id);
60
+ e3 = o3 ? { ...j, ...o3, ...e3 } : { ...j, ...e3 };
61
+ const n3 = g(S, e3);
62
+ return v(n3, t2), n3.component.ctx;
63
+ }
64
+ })(e2);
65
+ } else
66
+ o2 = new Date().getTime() + "";
67
+ (e2 = { ...j, ...e2 }).id = o2, x.push(e2.id), P.push(e2);
68
+ const n2 = document.createElement("view");
69
+ n2.id = "notify-" + e2.id;
70
+ const i2 = g({ setup: () => (e2.teleport = `#notify-${e2.id}`, t(() => {
71
+ setTimeout(() => {
72
+ document.body.removeChild(n2);
73
+ }, e2.duration);
74
+ }), () => C(S, e2)) });
75
+ document.body.appendChild(n2), v(i2, n2);
76
+ }, N = { text: (e2, t2 = {}) => E({ ...t2, msg: e2 }), primary: (e2, t2 = {}) => E({ ...t2, msg: e2, type: "primary" }), success: (e2, t2 = {}) => E({ ...t2, msg: e2, type: "success" }), danger: (e2, t2 = {}) => E({ ...t2, msg: e2, type: "danger" }), warn: (e2, t2 = {}) => E({ ...t2, msg: e2, type: "warning" }), hide() {
77
+ B();
78
+ }, install(e2) {
79
+ e2.use(S), e2.config.globalProperties.$notify = N;
80
+ } };
81
+ export { S as Notify, N as NotifyFunction, N as default };
@@ -1,278 +1,47 @@
1
1
  /*!
2
- * @nutui/nutui v3.1.22-beta.0 Tue May 31 2022 21:47:10 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.1.22 Fri Jun 24 2022 18:11:16 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
6
- import { ref, computed, watch, onMounted, resolveComponent, openBlock, createBlock, withCtx, createElementVNode, createElementBlock, toDisplayString, createCommentVNode, Fragment, renderList, normalizeClass, createTextVNode } from "vue";
7
- import { c as createComponent } from "./component.js";
8
- import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
6
+ import { ref as e, computed as t, watch as o, onMounted as l, resolveComponent as a, openBlock as r, createBlock as n, withCtx as s, createElementVNode as i, createElementBlock as u, toDisplayString as d, createCommentVNode as p, Fragment as c, renderList as y, normalizeClass as m, createTextVNode as h } from "vue";
7
+ import { c as v } from "./component.js";
8
+ import { _ as f } from "./plugin-vue_export-helper.js";
9
9
  import "../locale/lang";
10
- const { create, translate } = createComponent("numberkeyboard");
11
- const _sfc_main = create({
12
- props: {
13
- confirmText: {
14
- type: String,
15
- default: ""
16
- },
17
- title: {
18
- type: String,
19
- default: ""
20
- },
21
- visible: {
22
- type: Boolean,
23
- default: false
24
- },
25
- type: {
26
- type: String,
27
- default: "default"
28
- },
29
- customKey: {
30
- type: Array,
31
- default: () => []
32
- },
33
- value: {
34
- type: String,
35
- default: ""
36
- },
37
- maxlength: {
38
- type: [Number, String],
39
- default: 6
40
- },
41
- randomKeys: {
42
- type: Boolean,
43
- default: false
44
- },
45
- overlay: {
46
- type: Boolean,
47
- default: true
48
- },
49
- isWrapTeleport: {
50
- type: Boolean,
51
- default: true
52
- },
53
- teleport: {
54
- type: [String, Element],
55
- default: "body"
56
- },
57
- popClass: {
58
- type: String,
59
- default: ""
60
- }
61
- },
62
- emits: ["input", "delete", "close", "update:value"],
63
- setup(props, { emit }) {
64
- const clickKeyIndex = ref(void 0);
65
- const show = ref(props.visible);
66
- const root = ref();
67
- function defaultKey() {
68
- const { customKey } = props;
69
- let object = {
70
- id: "lock",
71
- type: "lock"
72
- };
73
- let customKeys = Array.isArray(customKey) ? customKey : [customKey];
74
- if (customKeys.length === 1) {
75
- object = {
76
- id: customKeys[0],
77
- type: "custom"
78
- };
79
- }
80
- return [...getBasicKeys(), object, { id: 0, type: "number" }, { id: "delete", type: "delete" }];
81
- }
82
- function getBasicKeys() {
83
- const keys = [];
84
- for (let i = 1; i <= 9; i++) {
85
- keys.push({ id: i, type: "number" });
86
- }
87
- if (props.randomKeys) {
88
- return keys.sort(() => Math.random() > 0.5 ? 1 : -1);
89
- }
90
- return keys;
91
- }
92
- function genCustomKeys() {
93
- const keys = getBasicKeys();
94
- const { customKey } = props;
95
- let customKeys = Array.isArray(customKey) ? customKey : [customKey];
96
- if (customKeys.length > 2) {
97
- customKeys = [customKeys[0], customKeys[1]];
98
- }
99
- if (customKeys.length === 1) {
100
- if (props.title) {
101
- keys.push({ id: customKeys[0], type: "custom" }, { id: 0, type: "number" }, { id: "delete", type: "delete" });
102
- } else {
103
- keys.push({ id: 0, type: "number" }, { id: customKeys[0], type: "custom" });
104
- }
105
- } else if (customKeys.length === 2) {
106
- keys.push({ id: customKeys[0], type: "custom" }, { id: 0, type: "number" }, { id: customKeys[1], type: "custom" });
107
- if (props.title) {
108
- keys.push({ id: "delete", type: "delete" });
109
- }
110
- } else {
111
- keys.push({ id: 0, type: "number" });
112
- }
113
- return keys;
114
- }
115
- const keysList = computed(() => {
116
- if (props.type == "rightColumn" || props.title != "") {
117
- return genCustomKeys();
118
- }
119
- return defaultKey();
120
- });
121
- watch(() => props.visible, (value) => {
122
- show.value = value;
123
- });
124
- function onTouchstart(item, event) {
125
- event.stopPropagation();
126
- clickKeyIndex.value = item.id;
127
- if (item.type == "number" || item.type == "custom") {
128
- emit("input", item.id);
129
- if (props.value.length < props.maxlength) {
130
- emit("update:value", props.value + item.id);
131
- }
132
- }
133
- if (item.type == "lock") {
134
- closeBoard();
135
- }
136
- if (item.type == "delete") {
137
- emit("delete");
138
- emit("update:value", props.value.slice(0, props.value.length - 1));
139
- }
140
- }
141
- function onTouchMove(id, event) {
142
- event.stopPropagation();
143
- }
144
- function onTouchEnd(event) {
145
- event.preventDefault();
146
- clickKeyIndex.value = void 0;
147
- }
148
- function closeBoard() {
149
- emit("close");
150
- }
151
- onMounted(() => {
152
- });
153
- return {
154
- clickKeyIndex,
155
- defaultKey,
156
- closeBoard,
157
- onTouchEnd,
158
- onTouchMove,
159
- onTouchstart,
160
- keysList,
161
- genCustomKeys,
162
- getBasicKeys,
163
- root,
164
- show,
165
- translate
166
- };
10
+ const { create: b, translate: g } = v("numberkeyboard"), k = b({ props: { confirmText: { type: String, default: "" }, title: { type: String, default: "" }, visible: { type: Boolean, default: false }, type: { type: String, default: "default" }, customKey: { type: Array, default: () => [] }, value: { type: String, default: "" }, maxlength: { type: [Number, String], default: 6 }, randomKeys: { type: Boolean, default: false }, overlay: { type: Boolean, default: true }, isWrapTeleport: { type: Boolean, default: true }, teleport: { type: [String, Element], default: "body" }, popClass: { type: String, default: "" } }, emits: ["input", "delete", "close", "update:value"], setup(a2, { emit: r2 }) {
11
+ const n2 = e(void 0), s2 = e(a2.visible), i2 = e();
12
+ function u2() {
13
+ const { customKey: e2 } = a2;
14
+ let t2 = { id: "lock", type: "lock" }, o2 = Array.isArray(e2) ? e2 : [e2];
15
+ return o2.length === 1 && (t2 = { id: o2[0], type: "custom" }), [...d2(), t2, { id: 0, type: "number" }, { id: "delete", type: "delete" }];
167
16
  }
168
- });
169
- const _hoisted_1 = {
170
- class: "nut-numberkeyboard",
171
- ref: "root"
172
- };
173
- const _hoisted_2 = {
174
- key: 0,
175
- class: "number-board-header"
176
- };
177
- const _hoisted_3 = { class: "tit" };
178
- const _hoisted_4 = { class: "number-board-body" };
179
- const _hoisted_5 = { class: "number-board" };
180
- const _hoisted_6 = ["onTouchstart", "onTouchmove"];
181
- const _hoisted_7 = {
182
- key: 1,
183
- src: "https://img11.360buyimg.com/imagetools/jfs/t1/146371/38/8485/738/5f606425Eca239740/14f4b4f5f20d8a68.png"
184
- };
185
- const _hoisted_8 = {
186
- key: 2,
187
- src: "https://img11.360buyimg.com/imagetools/jfs/t1/129395/8/12735/2030/5f61ac37E70cab338/fb477dc11f46056c.png"
188
- };
189
- const _hoisted_9 = {
190
- key: 0,
191
- class: "number-board-sidebar"
192
- };
193
- const _hoisted_10 = { class: "key-board-wrapper" };
194
- const _hoisted_11 = /* @__PURE__ */ createElementVNode("img", { src: "https://img11.360buyimg.com/imagetools/jfs/t1/129395/8/12735/2030/5f61ac37E70cab338/fb477dc11f46056c.png" }, null, -1);
195
- const _hoisted_12 = [
196
- _hoisted_11
197
- ];
198
- function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
199
- const _component_nut_popup = resolveComponent("nut-popup");
200
- return openBlock(), createBlock(_component_nut_popup, {
201
- visible: _ctx.show,
202
- "onUpdate:visible": _cache[6] || (_cache[6] = ($event) => _ctx.show = $event),
203
- position: "bottom",
204
- teleport: _ctx.teleport,
205
- popClass: _ctx.popClass,
206
- overlay: _ctx.overlay,
207
- onClickOverlay: _cache[7] || (_cache[7] = ($event) => _ctx.closeBoard()),
208
- isWrapTeleport: _ctx.isWrapTeleport,
209
- "overlay-class": "nut-numberkeyboard-overlay"
210
- }, {
211
- default: withCtx(() => [
212
- createElementVNode("div", _hoisted_1, [
213
- _ctx.title ? (openBlock(), createElementBlock("div", _hoisted_2, [
214
- createElementVNode("h3", _hoisted_3, toDisplayString(_ctx.title), 1),
215
- createElementVNode("span", {
216
- class: "keyboard-close",
217
- onClick: _cache[0] || (_cache[0] = ($event) => _ctx.closeBoard())
218
- }, toDisplayString(_ctx.translate("done")), 1)
219
- ])) : createCommentVNode("", true),
220
- createElementVNode("div", _hoisted_4, [
221
- createElementVNode("div", _hoisted_5, [
222
- (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.keysList, (item) => {
223
- return openBlock(), createElementBlock("div", {
224
- class: normalizeClass([
225
- "key-board-wrapper",
226
- {
227
- "key-board-wrapper-large": item.id == 0 && _ctx.type == "rightColumn" && Array.isArray(_ctx.customKey) && _ctx.customKey.length == 1
228
- }
229
- ]),
230
- key: "key" + item.id
231
- }, [
232
- createElementVNode("div", {
233
- class: normalizeClass([
234
- "key",
235
- { active: item.id == _ctx.clickKeyIndex },
236
- { lock: item.type == "lock" },
237
- { delete: item.type == "delete" }
238
- ]),
239
- onTouchstart: (event) => _ctx.onTouchstart(item, event),
240
- onTouchmove: (event) => _ctx.onTouchMove(item, event),
241
- onTouchend: _cache[1] || (_cache[1] = (event) => _ctx.onTouchEnd(event))
242
- }, [
243
- item.type == "number" || item.type == "custom" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
244
- createTextVNode(toDisplayString(item.id), 1)
245
- ], 64)) : createCommentVNode("", true),
246
- item.type == "lock" ? (openBlock(), createElementBlock("img", _hoisted_7)) : createCommentVNode("", true),
247
- item.type == "delete" ? (openBlock(), createElementBlock("img", _hoisted_8)) : createCommentVNode("", true)
248
- ], 42, _hoisted_6)
249
- ], 2);
250
- }), 128))
251
- ]),
252
- _ctx.type == "rightColumn" ? (openBlock(), createElementBlock("div", _hoisted_9, [
253
- createElementVNode("div", _hoisted_10, [
254
- createElementVNode("div", {
255
- class: normalizeClass(["key", { active: _ctx.clickKeyIndex == "delete" }]),
256
- onTouchstart: _cache[2] || (_cache[2] = (event) => _ctx.onTouchstart({ id: "delete", type: "delete" }, event)),
257
- onTouchmove: _cache[3] || (_cache[3] = (event) => _ctx.onTouchMove({ id: "delete", type: "delete" }, event)),
258
- onTouchend: _cache[4] || (_cache[4] = (...args) => _ctx.onTouchEnd && _ctx.onTouchEnd(...args))
259
- }, _hoisted_12, 34)
260
- ]),
261
- _ctx.title == "" ? (openBlock(), createElementBlock("div", {
262
- key: 0,
263
- class: "key-board-wrapper key-board-finish",
264
- onClick: _cache[5] || (_cache[5] = ($event) => _ctx.closeBoard())
265
- }, [
266
- createElementVNode("div", {
267
- class: normalizeClass(["key", "finish", { activeFinsh: _ctx.clickKeyIndex == "finish" }])
268
- }, toDisplayString(_ctx.confirmText || _ctx.translate("done")), 3)
269
- ])) : createCommentVNode("", true)
270
- ])) : createCommentVNode("", true)
271
- ])
272
- ], 512)
273
- ]),
274
- _: 1
275
- }, 8, ["visible", "teleport", "popClass", "overlay", "isWrapTeleport"]);
276
- }
277
- var index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
278
- export { index as default };
17
+ function d2() {
18
+ const e2 = [];
19
+ for (let t2 = 1; t2 <= 9; t2++)
20
+ e2.push({ id: t2, type: "number" });
21
+ return a2.randomKeys ? e2.sort(() => Math.random() > 0.5 ? 1 : -1) : e2;
22
+ }
23
+ function p2() {
24
+ const e2 = d2(), { customKey: t2 } = a2;
25
+ let o2 = Array.isArray(t2) ? t2 : [t2];
26
+ return o2.length > 2 && (o2 = [o2[0], o2[1]]), o2.length === 1 ? a2.title ? e2.push({ id: o2[0], type: "custom" }, { id: 0, type: "number" }, { id: "delete", type: "delete" }) : e2.push({ id: 0, type: "number" }, { id: o2[0], type: "custom" }) : o2.length === 2 ? (e2.push({ id: o2[0], type: "custom" }, { id: 0, type: "number" }, { id: o2[1], type: "custom" }), a2.title && e2.push({ id: "delete", type: "delete" })) : e2.push({ id: 0, type: "number" }), e2;
27
+ }
28
+ const c2 = t(() => a2.type == "rightColumn" || a2.title != "" ? p2() : u2());
29
+ function y2() {
30
+ r2("close");
31
+ }
32
+ return o(() => a2.visible, (e2) => {
33
+ s2.value = e2;
34
+ }), l(() => {
35
+ }), { clickKeyIndex: n2, defaultKey: u2, closeBoard: y2, onTouchEnd: function(e2) {
36
+ e2.preventDefault(), n2.value = void 0;
37
+ }, onTouchMove: function(e2, t2) {
38
+ t2.stopPropagation();
39
+ }, onTouchstart: function(e2, t2) {
40
+ t2.stopPropagation(), n2.value = e2.id, e2.type != "number" && e2.type != "custom" || (r2("input", e2.id), a2.value.length < a2.maxlength && r2("update:value", a2.value + e2.id)), e2.type == "lock" && y2(), e2.type == "delete" && (r2("delete"), r2("update:value", a2.value.slice(0, a2.value.length - 1)));
41
+ }, keysList: c2, genCustomKeys: p2, getBasicKeys: d2, root: i2, show: s2, translate: g };
42
+ } }), T = { class: "nut-numberkeyboard", ref: "root" }, K = { key: 0, class: "number-board-header" }, C = { class: "tit" }, x = { class: "number-board-body" }, B = { class: "number-board" }, E = ["onTouchstart", "onTouchmove"], w = { key: 1, src: "https://img11.360buyimg.com/imagetools/jfs/t1/146371/38/8485/738/5f606425Eca239740/14f4b4f5f20d8a68.png" }, A = { key: 2, src: "https://img11.360buyimg.com/imagetools/jfs/t1/129395/8/12735/2030/5f61ac37E70cab338/fb477dc11f46056c.png" }, S = { key: 0, class: "number-board-sidebar" }, j = { class: "key-board-wrapper" }, I = [i("img", { src: "https://img11.360buyimg.com/imagetools/jfs/t1/129395/8/12735/2030/5f61ac37E70cab338/fb477dc11f46056c.png" }, null, -1)];
43
+ var M = f(k, [["render", function(e2, t2, o2, l2, v2, f2) {
44
+ const b2 = a("nut-popup");
45
+ return r(), n(b2, { visible: e2.show, "onUpdate:visible": t2[6] || (t2[6] = (t3) => e2.show = t3), position: "bottom", teleport: e2.teleport, popClass: e2.popClass, overlay: e2.overlay, onClickOverlay: t2[7] || (t2[7] = (t3) => e2.closeBoard()), isWrapTeleport: e2.isWrapTeleport, "overlay-class": "nut-numberkeyboard-overlay" }, { default: s(() => [i("div", T, [e2.title ? (r(), u("div", K, [i("h3", C, d(e2.title), 1), i("span", { class: "keyboard-close", onClick: t2[0] || (t2[0] = (t3) => e2.closeBoard()) }, d(e2.translate("done")), 1)])) : p("", true), i("div", x, [i("div", B, [(r(true), u(c, null, y(e2.keysList, (o3) => (r(), u("div", { class: m(["key-board-wrapper", { "key-board-wrapper-large": o3.id == 0 && e2.type == "rightColumn" && Array.isArray(e2.customKey) && e2.customKey.length == 1 }]), key: "key" + o3.id }, [i("div", { class: m(["key", { active: o3.id == e2.clickKeyIndex }, { lock: o3.type == "lock" }, { delete: o3.type == "delete" }]), onTouchstart: (t3) => e2.onTouchstart(o3, t3), onTouchmove: (t3) => e2.onTouchMove(o3, t3), onTouchend: t2[1] || (t2[1] = (t3) => e2.onTouchEnd(t3)) }, [o3.type == "number" || o3.type == "custom" ? (r(), u(c, { key: 0 }, [h(d(o3.id), 1)], 64)) : p("", true), o3.type == "lock" ? (r(), u("img", w)) : p("", true), o3.type == "delete" ? (r(), u("img", A)) : p("", true)], 42, E)], 2))), 128))]), e2.type == "rightColumn" ? (r(), u("div", S, [i("div", j, [i("div", { class: m(["key", { active: e2.clickKeyIndex == "delete" }]), onTouchstart: t2[2] || (t2[2] = (t3) => e2.onTouchstart({ id: "delete", type: "delete" }, t3)), onTouchmove: t2[3] || (t2[3] = (t3) => e2.onTouchMove({ id: "delete", type: "delete" }, t3)), onTouchend: t2[4] || (t2[4] = (...t3) => e2.onTouchEnd && e2.onTouchEnd(...t3)) }, I, 34)]), e2.title == "" ? (r(), u("div", { key: 0, class: "key-board-wrapper key-board-finish", onClick: t2[5] || (t2[5] = (t3) => e2.closeBoard()) }, [i("div", { class: m(["key", "finish", { activeFinsh: e2.clickKeyIndex == "finish" }]) }, d(e2.confirmText || e2.translate("done")), 3)])) : p("", true)])) : p("", true)])], 512)]), _: 1 }, 8, ["visible", "teleport", "popClass", "overlay", "isWrapTeleport"]);
46
+ }]]);
47
+ export { M as default };