@nutui/nutui 3.1.19-beta.1 → 3.1.19-beta.2
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.
- package/README.md +9 -8
- package/dist/nutui.es.js +2875 -3576
- package/dist/nutui.umd.js +2965 -3579
- package/dist/packages/_es/ActionSheet.js +18 -12
- package/dist/packages/_es/Address.js +69 -78
- package/dist/packages/_es/Audio.js +12 -12
- package/dist/packages/_es/AudioOperate.js +1 -1
- package/dist/packages/_es/Avatar.js +3 -3
- package/dist/packages/_es/BackTop.js +110 -68
- package/dist/packages/_es/Badge.js +3 -3
- package/dist/packages/_es/Barrage.js +55 -62
- package/dist/packages/_es/Button.js +2 -2
- package/dist/packages/_es/Calendar.js +27 -32
- package/dist/packages/_es/CalendarItem.js +3 -3
- package/dist/packages/_es/Card.js +5 -6
- package/dist/packages/_es/Cascader.js +7 -7
- package/dist/packages/_es/Cell.js +11 -4
- package/dist/packages/_es/CellGroup.js +1 -1
- package/dist/packages/_es/Checkbox.js +13 -3
- package/dist/packages/_es/CheckboxGroup.js +2 -2
- package/dist/packages/_es/CircleProgress.js +40 -149
- package/dist/packages/_es/Col.js +1 -1
- package/dist/packages/_es/Collapse.js +8 -34
- package/dist/packages/_es/CollapseItem.js +59 -90
- package/dist/packages/_es/CountDown.js +5 -5
- package/dist/packages/_es/CountUp.js +51 -43
- package/dist/packages/_es/DatePicker.js +20 -21
- package/dist/packages/_es/Dialog.js +91 -12
- package/dist/packages/_es/Divider.js +4 -4
- package/dist/packages/_es/Drag.js +54 -92
- package/dist/packages/_es/Elevator.js +50 -75
- package/dist/packages/_es/Empty.js +3 -3
- package/dist/packages/_es/FixedNav.js +10 -11
- package/dist/packages/_es/Form.js +5 -9
- package/dist/packages/_es/FormItem.js +1 -1
- package/dist/packages/_es/Grid.js +1 -1
- package/dist/packages/_es/GridItem.js +26 -8
- package/dist/packages/_es/Icon.js +1 -1
- package/dist/packages/_es/ImagePreview.js +83 -14
- package/dist/packages/_es/Indicator.js +3 -3
- package/dist/packages/_es/InfiniteLoading.js +107 -93
- package/dist/packages/_es/Input.js +8 -8
- package/dist/packages/_es/InputNumber.js +16 -23
- package/dist/packages/_es/Layout.js +1 -1
- package/dist/packages/_es/List.js +34 -41
- package/dist/packages/_es/Menu.js +12 -15
- package/dist/packages/_es/MenuItem.js +7 -7
- package/dist/packages/_es/Navbar.js +4 -3
- package/dist/packages/_es/NoticeBar.js +40 -47
- package/dist/packages/_es/Notify.js +166 -27
- package/dist/packages/_es/NumberKeyboard.js +18 -8
- package/dist/packages/_es/OldPicker.js +120 -122
- package/dist/packages/_es/OverLay.js +25 -5
- package/dist/packages/_es/Pagination.js +14 -13
- package/dist/packages/_es/Picker.js +16 -39
- package/dist/packages/_es/Popover.js +29 -154
- package/dist/packages/_es/Popup.js +69 -6
- package/dist/packages/_es/Price.js +5 -17
- package/dist/packages/_es/Progress.js +8 -18
- package/dist/packages/_es/PullRefresh.js +1 -1
- package/dist/packages/_es/Radio.js +14 -4
- package/dist/packages/_es/RadioGroup.js +1 -1
- package/dist/packages/_es/Range.js +33 -46
- package/dist/packages/_es/Rate.js +19 -16
- package/dist/packages/_es/Row.js +1 -1
- package/dist/packages/_es/SearchBar.js +11 -12
- package/dist/packages/_es/ShortPassword.js +67 -89
- package/dist/packages/_es/SideNavBar.js +16 -5
- package/dist/packages/_es/SideNavBarItem.js +1 -1
- package/dist/packages/_es/Signature.js +88 -69
- package/dist/packages/_es/Skeleton.js +11 -8
- package/dist/packages/_es/Sku.js +57 -49
- package/dist/packages/_es/Step.js +1 -1
- package/dist/packages/_es/Steps.js +1 -1
- package/dist/packages/_es/Sticky.js +23 -28
- package/dist/packages/_es/SubSideNavBar.js +1 -1
- package/dist/packages/_es/Swipe.js +26 -39
- package/dist/packages/_es/Swiper.js +14 -32
- package/dist/packages/_es/SwiperItem.js +2 -2
- package/dist/packages/_es/Switch.js +3 -3
- package/dist/packages/_es/TabPane.js +1 -1
- package/dist/packages/_es/Tabbar.js +3 -3
- package/dist/packages/_es/TabbarItem.js +21 -11
- package/dist/packages/_es/Table.js +13 -13
- package/dist/packages/_es/Tabs.js +20 -21
- package/dist/packages/_es/Tag.js +4 -4
- package/dist/packages/_es/TextArea.js +42 -44
- package/dist/packages/_es/TimeDetail.js +3 -4
- package/dist/packages/_es/TimePannel.js +3 -3
- package/dist/packages/_es/TimeSelect.js +7 -8
- package/dist/packages/_es/Toast.js +170 -41
- package/dist/packages/_es/Uploader.js +138 -109
- package/dist/packages/_es/Video.js +9 -8
- package/dist/packages/_es/common.js +1 -1
- package/dist/packages/_es/component.js +135 -3
- package/dist/packages/_es/index.js +6 -44
- package/dist/packages/_es/index2.js +31 -8
- package/dist/packages/_es/index3.js +7 -58
- package/dist/packages/_es/index4.js +56 -413
- package/dist/packages/_es/{index.taro.js → index5.js} +113 -140
- package/dist/packages/_es/plugin-vue_export-helper.js +1 -1
- package/dist/packages/_es/pxCheck.js +1 -1
- package/dist/packages/_es/raf.js +19 -0
- package/dist/style.css +1 -1
- package/dist/styles/themes/default.scss +42 -42
- package/dist/styles/themes/jdt.scss +42 -42
- package/dist/types/__VUE/actionsheet/index.d.ts +269 -0
- package/dist/types/__VUE/address/index.d.ts +386 -0
- package/dist/types/__VUE/audio/index.d.ts +92 -0
- package/dist/types/__VUE/audiooperate/index.d.ts +68 -0
- package/dist/types/__VUE/avatar/index.d.ts +66 -0
- package/dist/types/__VUE/backtop/index.d.ts +105 -0
- package/dist/types/__VUE/badge/index.d.ts +94 -0
- package/dist/types/__VUE/barrage/index.d.ts +80 -0
- package/dist/types/__VUE/button/index.d.ts +116 -0
- package/dist/types/__VUE/calendar/index.d.ts +155 -0
- package/dist/types/__VUE/calendaritem/index.d.ts +195 -0
- package/dist/types/__VUE/card/index.d.ts +81 -0
- package/dist/types/__VUE/cascader/cascader-item.d.ts +76 -0
- package/dist/types/__VUE/cascader/helper.d.ts +8 -0
- package/dist/types/__VUE/cascader/index.d.ts +76 -0
- package/dist/types/__VUE/cascader/tree.d.ts +17 -0
- package/dist/types/__VUE/cascader/types.d.ts +30 -0
- package/dist/types/__VUE/cell/index.d.ts +109 -0
- package/dist/types/__VUE/cellgroup/index.d.ts +38 -0
- package/dist/types/__VUE/checkbox/index.d.ts +102 -0
- package/dist/types/__VUE/checkboxgroup/index.d.ts +39 -0
- package/dist/types/__VUE/circleprogress/index.d.ts +66 -0
- package/dist/types/__VUE/col/index.d.ts +42 -0
- package/dist/types/__VUE/collapse/index.d.ts +104 -0
- package/dist/types/__VUE/collapseitem/index.d.ts +83 -0
- package/dist/types/__VUE/countdown/index.d.ts +90 -0
- package/dist/types/__VUE/countup/index.d.ts +216 -0
- package/dist/types/__VUE/datepicker/index.d.ts +347 -0
- package/dist/types/__VUE/datepicker/utils.d.ts +5 -0
- package/dist/types/__VUE/dialog/index.d.ts +306 -0
- package/dist/types/__VUE/divider/index.d.ts +47 -0
- package/dist/types/__VUE/drag/index.d.ts +61 -0
- package/dist/types/__VUE/elevator/index.d.ts +71 -0
- package/dist/types/__VUE/empty/index.d.ts +46 -0
- package/dist/types/__VUE/fixednav/index.d.ts +96 -0
- package/dist/types/__VUE/form/common.d.ts +20 -0
- package/dist/types/__VUE/form/index.d.ts +32 -0
- package/dist/types/__VUE/form/types.d.ts +13 -0
- package/dist/types/__VUE/formitem/index.d.ts +120 -0
- package/dist/types/__VUE/formitem/types.d.ts +10 -0
- package/dist/types/__VUE/grid/common.d.ts +91 -0
- package/dist/types/__VUE/grid/index.d.ts +100 -0
- package/dist/types/__VUE/griditem/index.d.ts +80 -0
- package/dist/types/__VUE/icon/index.d.ts +74 -0
- package/dist/types/__VUE/imagepreview/index.d.ts +125 -0
- package/dist/types/__VUE/indicator/index.d.ts +70 -0
- package/dist/types/__VUE/infiniteloading/index.d.ts +140 -0
- package/dist/types/__VUE/input/index.d.ts +336 -0
- package/dist/types/__VUE/input/util.d.ts +5 -0
- package/dist/types/__VUE/inputnumber/index.d.ts +117 -0
- package/dist/types/__VUE/layout/index.d.ts +13 -0
- package/dist/types/__VUE/list/index.d.ts +48 -0
- package/dist/types/__VUE/menu/index.d.ts +51 -0
- package/dist/types/__VUE/menuitem/index.d.ts +77 -0
- package/dist/types/__VUE/navbar/index.d.ts +84 -0
- package/dist/types/__VUE/noticebar/index.d.ts +209 -0
- package/dist/types/__VUE/notify/index.d.ts +103 -0
- package/dist/types/__VUE/numberkeyboard/index.d.ts +123 -0
- package/dist/types/__VUE/oldpicker/Column.d.ts +96 -0
- package/dist/types/__VUE/oldpicker/commonProps.d.ts +22 -0
- package/dist/types/__VUE/oldpicker/index.d.ts +360 -0
- package/dist/types/__VUE/oldpicker/types.d.ts +24 -0
- package/dist/types/__VUE/overlay/index.d.ts +1614 -0
- package/dist/types/__VUE/pagination/index.d.ts +112 -0
- package/dist/types/__VUE/picker/Column.d.ts +90 -0
- package/dist/types/__VUE/picker/index.d.ts +342 -0
- package/dist/types/__VUE/picker/types.d.ts +26 -0
- package/dist/types/__VUE/popover/index.d.ts +233 -0
- package/dist/types/__VUE/popup/index.d.ts +1734 -0
- package/dist/types/__VUE/popup/use-lock-scroll.d.ts +5 -0
- package/dist/types/__VUE/price/index.d.ts +87 -0
- package/dist/types/__VUE/progress/index.d.ts +137 -0
- package/dist/types/__VUE/pullrefresh/index.d.ts +128 -0
- package/dist/types/__VUE/pullrefresh/use-touch.d.ts +20 -0
- package/dist/types/__VUE/pullrefresh/util.d.ts +6 -0
- package/dist/types/__VUE/radio/index.d.ts +90 -0
- package/dist/types/__VUE/radiogroup/index.d.ts +48 -0
- package/dist/types/__VUE/range/index.d.ts +156 -0
- package/dist/types/__VUE/rate/index.d.ts +142 -0
- package/dist/types/__VUE/row/index.d.ts +63 -0
- package/dist/types/__VUE/searchbar/index.d.ts +100 -0
- package/dist/types/__VUE/shortpassword/index.d.ts +136 -0
- package/dist/types/__VUE/sidenavbar/index.d.ts +36 -0
- package/dist/types/__VUE/sidenavbaritem/index.d.ts +41 -0
- package/dist/types/__VUE/signature/index.d.ts +73 -0
- package/dist/types/__VUE/skeleton/common.d.ts +63 -0
- package/dist/types/__VUE/skeleton/index.d.ts +117 -0
- package/dist/types/__VUE/sku/components/SkuHeader.d.ts +27 -0
- package/dist/types/__VUE/sku/components/SkuOperate.d.ts +70 -0
- package/dist/types/__VUE/sku/components/SkuSelect.d.ts +30 -0
- package/dist/types/__VUE/sku/components/SkuStepper.d.ts +67 -0
- package/dist/types/__VUE/sku/index.d.ts +300 -0
- package/dist/types/__VUE/step/index.d.ts +70 -0
- package/dist/types/__VUE/steps/index.d.ts +47 -0
- package/dist/types/__VUE/sticky/index.d.ts +63 -0
- package/dist/types/__VUE/subsidenavbar/index.d.ts +54 -0
- package/dist/types/__VUE/swipe/index.d.ts +69 -0
- package/dist/types/__VUE/swiper/index.d.ts +163 -0
- package/dist/types/__VUE/swiper/use-touch.d.ts +20 -0
- package/dist/types/__VUE/swiperitem/index.d.ts +24 -0
- package/dist/types/__VUE/switch/index.d.ts +136 -0
- package/dist/types/__VUE/tabbar/index.d.ts +84 -0
- package/dist/types/__VUE/tabbaritem/index.d.ts +108 -0
- package/dist/types/__VUE/table/common.d.ts +54 -0
- package/dist/types/__VUE/table/index.d.ts +75 -0
- package/dist/types/__VUE/table/renderColumn.d.ts +20 -0
- package/dist/types/__VUE/table/types.d.ts +19 -0
- package/dist/types/__VUE/tabpane/index.d.ts +47 -0
- package/dist/types/__VUE/tabs/index.d.ts +128 -0
- package/dist/types/__VUE/tag/index.d.ts +89 -0
- package/dist/types/__VUE/textarea/index.d.ts +120 -0
- package/dist/types/__VUE/timedetail/index.d.ts +48 -0
- package/dist/types/__VUE/timepannel/index.d.ts +43 -0
- package/dist/types/__VUE/timeselect/index.d.ts +82 -0
- package/dist/types/__VUE/toast/index.d.ts +149 -0
- package/dist/types/__VUE/uploader/index.d.ts +258 -0
- package/dist/types/__VUE/uploader/uploader.d.ts +25 -0
- package/dist/types/__VUE/video/index.d.ts +123 -0
- package/dist/{index.d.ts → types/index.d.ts} +0 -0
- package/dist/types/nutui.d.ts +92 -0
- package/package.json +14 -5
- package/dist/nutui.d.ts +0 -104
- package/dist/packages/_es/use-lock-scroll.js +0 -23
- package/dist/packages/_es/util.js +0 -47
|
@@ -18,15 +18,14 @@ var __spreadValues = (a, b) => {
|
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
20
|
/*!
|
|
21
|
-
* @nutui/nutui v3.1.19-beta.
|
|
21
|
+
* @nutui/nutui v3.1.19-beta.2 Thu Apr 07 2022 17:52:31 GMT+0800 (中国标准时间)
|
|
22
22
|
* (c) 2022 @jdf2e.
|
|
23
23
|
* Released under the MIT License.
|
|
24
24
|
*/
|
|
25
|
-
import Taro from "@tarojs/taro";
|
|
26
25
|
import { ref, computed, toRefs, openBlock, createElementBlock, normalizeClass, toDisplayString, createCommentVNode, createElementVNode, normalizeStyle, withModifiers, Fragment, renderList, createTextVNode, renderSlot } from "vue";
|
|
27
26
|
import { c as createComponent } from "./component.js";
|
|
28
|
-
import { u as useTouch } from "./
|
|
29
|
-
import { u as
|
|
27
|
+
import { u as useTouch } from "./index4.js";
|
|
28
|
+
import { u as useRect } from "./index2.js";
|
|
30
29
|
import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
|
|
31
30
|
const { componentName, create } = createComponent("range");
|
|
32
31
|
const _sfc_main = create({
|
|
@@ -215,18 +214,16 @@ const _sfc_main = create({
|
|
|
215
214
|
emit("change", value);
|
|
216
215
|
}
|
|
217
216
|
};
|
|
218
|
-
const onClick =
|
|
217
|
+
const onClick = (event) => {
|
|
219
218
|
if (props.disabled) {
|
|
220
219
|
return;
|
|
221
220
|
}
|
|
222
221
|
const { min, modelValue } = props;
|
|
223
|
-
const rect =
|
|
224
|
-
let delta = event.
|
|
222
|
+
const rect = useRect(root);
|
|
223
|
+
let delta = event.clientX - rect.left;
|
|
225
224
|
let total = rect.width;
|
|
226
|
-
console.log(delta);
|
|
227
|
-
console.log(total);
|
|
228
225
|
if (props.vertical) {
|
|
229
|
-
delta = event.
|
|
226
|
+
delta = event.clientY - rect.top;
|
|
230
227
|
total = rect.height;
|
|
231
228
|
}
|
|
232
229
|
const value = Number(min) + delta / total * scope.value;
|
|
@@ -254,10 +251,8 @@ const _sfc_main = create({
|
|
|
254
251
|
startValue = format(currentValue);
|
|
255
252
|
}
|
|
256
253
|
dragStatus.value = "start";
|
|
257
|
-
event.stopPropagation();
|
|
258
|
-
event.preventDefault();
|
|
259
254
|
};
|
|
260
|
-
const onTouchMove =
|
|
255
|
+
const onTouchMove = (event) => {
|
|
261
256
|
if (props.disabled) {
|
|
262
257
|
return;
|
|
263
258
|
}
|
|
@@ -266,7 +261,7 @@ const _sfc_main = create({
|
|
|
266
261
|
}
|
|
267
262
|
touch.move(event);
|
|
268
263
|
dragStatus.value = "draging";
|
|
269
|
-
const rect =
|
|
264
|
+
const rect = useRect(root);
|
|
270
265
|
let delta = touch.deltaX.value;
|
|
271
266
|
let total = rect.width;
|
|
272
267
|
let diff = delta / total * scope.value;
|
|
@@ -284,7 +279,7 @@ const _sfc_main = create({
|
|
|
284
279
|
event.stopPropagation();
|
|
285
280
|
event.preventDefault();
|
|
286
281
|
};
|
|
287
|
-
const onTouchEnd = (
|
|
282
|
+
const onTouchEnd = () => {
|
|
288
283
|
if (props.disabled) {
|
|
289
284
|
return;
|
|
290
285
|
}
|
|
@@ -293,14 +288,11 @@ const _sfc_main = create({
|
|
|
293
288
|
emit("drag-end");
|
|
294
289
|
}
|
|
295
290
|
dragStatus.value = "";
|
|
296
|
-
event.stopPropagation();
|
|
297
|
-
event.preventDefault();
|
|
298
291
|
};
|
|
299
292
|
const curValue = (idx) => {
|
|
300
293
|
const value = typeof idx === "number" ? props.modelValue[idx] : props.modelValue;
|
|
301
294
|
return value;
|
|
302
295
|
};
|
|
303
|
-
const refRandomId = Math.random().toString(36).slice(-8);
|
|
304
296
|
return __spreadProps(__spreadValues({
|
|
305
297
|
root,
|
|
306
298
|
classes,
|
|
@@ -318,8 +310,7 @@ const _sfc_main = create({
|
|
|
318
310
|
markClassName,
|
|
319
311
|
marksStyle,
|
|
320
312
|
marksList,
|
|
321
|
-
tickStyle
|
|
322
|
-
refRandomId
|
|
313
|
+
tickStyle
|
|
323
314
|
});
|
|
324
315
|
}
|
|
325
316
|
});
|
|
@@ -327,22 +318,21 @@ const _hoisted_1 = {
|
|
|
327
318
|
key: 0,
|
|
328
319
|
class: "min"
|
|
329
320
|
};
|
|
330
|
-
const _hoisted_2 =
|
|
331
|
-
const _hoisted_3 = {
|
|
321
|
+
const _hoisted_2 = {
|
|
332
322
|
key: 0,
|
|
333
323
|
class: "nut-range-mark"
|
|
334
324
|
};
|
|
335
|
-
const
|
|
336
|
-
const
|
|
325
|
+
const _hoisted_3 = ["tabindex", "aria-valuemin", "aria-valuenow", "aria-valuemax", "onTouchstart"];
|
|
326
|
+
const _hoisted_4 = {
|
|
337
327
|
key: 0,
|
|
338
328
|
class: "number"
|
|
339
329
|
};
|
|
340
|
-
const
|
|
341
|
-
const
|
|
330
|
+
const _hoisted_5 = ["tabindex", "aria-valuemin", "aria-valuenow", "aria-valuemax"];
|
|
331
|
+
const _hoisted_6 = {
|
|
342
332
|
key: 0,
|
|
343
333
|
class: "number"
|
|
344
334
|
};
|
|
345
|
-
const
|
|
335
|
+
const _hoisted_7 = {
|
|
346
336
|
key: 1,
|
|
347
337
|
class: "max"
|
|
348
338
|
};
|
|
@@ -353,12 +343,11 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
353
343
|
!_ctx.hiddenRange ? (openBlock(), createElementBlock("view", _hoisted_1, toDisplayString(+_ctx.min), 1)) : createCommentVNode("", true),
|
|
354
344
|
createElementVNode("view", {
|
|
355
345
|
ref: "root",
|
|
356
|
-
id: "root-" + _ctx.refRandomId,
|
|
357
346
|
style: normalizeStyle(_ctx.wrapperStyle),
|
|
358
347
|
class: normalizeClass(_ctx.classes),
|
|
359
348
|
onClick: _cache[9] || (_cache[9] = withModifiers((...args) => _ctx.onClick && _ctx.onClick(...args), ["stop"]))
|
|
360
349
|
}, [
|
|
361
|
-
_ctx.marksList.length > 0 ? (openBlock(), createElementBlock("view",
|
|
350
|
+
_ctx.marksList.length > 0 ? (openBlock(), createElementBlock("view", _hoisted_2, [
|
|
362
351
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.marksList, (marks) => {
|
|
363
352
|
return openBlock(), createElementBlock("span", {
|
|
364
353
|
key: marks,
|
|
@@ -377,23 +366,22 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
377
366
|
class: "nut-range-bar",
|
|
378
367
|
style: normalizeStyle(_ctx.barStyle)
|
|
379
368
|
}, [
|
|
380
|
-
_ctx.range ? (openBlock(), createElementBlock(Fragment, { key: 0 }, renderList([0, 1], (
|
|
369
|
+
_ctx.range ? (openBlock(), createElementBlock(Fragment, { key: 0 }, renderList([0, 1], (index2) => {
|
|
381
370
|
return createElementVNode("view", {
|
|
382
|
-
key:
|
|
371
|
+
key: index2,
|
|
383
372
|
role: "slider",
|
|
384
373
|
class: normalizeClass({
|
|
385
|
-
"nut-range-button-wrapper-left":
|
|
386
|
-
"nut-range-button-wrapper-right":
|
|
374
|
+
"nut-range-button-wrapper-left": index2 == 0,
|
|
375
|
+
"nut-range-button-wrapper-right": index2 == 1
|
|
387
376
|
}),
|
|
388
|
-
"catch-move": true,
|
|
389
377
|
tabindex: _ctx.disabled ? -1 : 0,
|
|
390
378
|
"aria-valuemin": +_ctx.min,
|
|
391
|
-
"aria-valuenow": _ctx.curValue(
|
|
379
|
+
"aria-valuenow": _ctx.curValue(index2),
|
|
392
380
|
"aria-valuemax": +_ctx.max,
|
|
393
381
|
"aria-orientation": "horizontal",
|
|
394
382
|
onTouchstart: withModifiers((e) => {
|
|
395
|
-
if (typeof
|
|
396
|
-
_ctx.buttonIndex =
|
|
383
|
+
if (typeof index2 === "number") {
|
|
384
|
+
_ctx.buttonIndex = index2;
|
|
397
385
|
}
|
|
398
386
|
_ctx.onTouchStart(e);
|
|
399
387
|
}, ["stop", "prevent"]),
|
|
@@ -407,9 +395,9 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
407
395
|
class: "nut-range-button",
|
|
408
396
|
style: normalizeStyle(_ctx.buttonStyle)
|
|
409
397
|
}, [
|
|
410
|
-
!_ctx.hiddenTag ? (openBlock(), createElementBlock("view",
|
|
398
|
+
!_ctx.hiddenTag ? (openBlock(), createElementBlock("view", _hoisted_4, toDisplayString(_ctx.curValue(index2)), 1)) : createCommentVNode("", true)
|
|
411
399
|
], 4))
|
|
412
|
-
], 42,
|
|
400
|
+
], 42, _hoisted_3);
|
|
413
401
|
}), 64)) : (openBlock(), createElementBlock("view", {
|
|
414
402
|
key: 1,
|
|
415
403
|
role: "slider",
|
|
@@ -419,7 +407,6 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
419
407
|
"aria-valuenow": _ctx.curValue(),
|
|
420
408
|
"aria-valuemax": +_ctx.max,
|
|
421
409
|
"aria-orientation": "horizontal",
|
|
422
|
-
"catch-move": true,
|
|
423
410
|
onTouchstart: _cache[4] || (_cache[4] = withModifiers((e) => {
|
|
424
411
|
_ctx.onTouchStart(e);
|
|
425
412
|
}, ["stop", "prevent"])),
|
|
@@ -433,13 +420,13 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
433
420
|
class: "nut-range-button",
|
|
434
421
|
style: normalizeStyle(_ctx.buttonStyle)
|
|
435
422
|
}, [
|
|
436
|
-
!_ctx.hiddenTag ? (openBlock(), createElementBlock("view",
|
|
423
|
+
!_ctx.hiddenTag ? (openBlock(), createElementBlock("view", _hoisted_6, toDisplayString(_ctx.curValue()), 1)) : createCommentVNode("", true)
|
|
437
424
|
], 4))
|
|
438
|
-
], 40,
|
|
425
|
+
], 40, _hoisted_5))
|
|
439
426
|
], 4)
|
|
440
|
-
],
|
|
441
|
-
!_ctx.hiddenRange ? (openBlock(), createElementBlock("view",
|
|
427
|
+
], 6),
|
|
428
|
+
!_ctx.hiddenRange ? (openBlock(), createElementBlock("view", _hoisted_7, toDisplayString(+_ctx.max), 1)) : createCommentVNode("", true)
|
|
442
429
|
], 2);
|
|
443
430
|
}
|
|
444
|
-
var
|
|
445
|
-
export {
|
|
431
|
+
var index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
432
|
+
export { index as default };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.1.19-beta.
|
|
2
|
+
* @nutui/nutui v3.1.19-beta.2 Thu Apr 07 2022 17:52:31 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -71,16 +71,20 @@ const _sfc_main = create({
|
|
|
71
71
|
[prefixCls]: true
|
|
72
72
|
};
|
|
73
73
|
});
|
|
74
|
-
const onClick = (e,
|
|
74
|
+
const onClick = (e, index2) => {
|
|
75
|
+
e.preventDefault();
|
|
76
|
+
e.stopPropagation();
|
|
75
77
|
if (props.disabled || props.readonly)
|
|
76
78
|
return;
|
|
77
79
|
let value = 0;
|
|
78
|
-
if (
|
|
80
|
+
if (index2 === 1 && props.modelValue === index2)
|
|
79
81
|
;
|
|
80
82
|
else {
|
|
81
|
-
value =
|
|
82
|
-
if (props.allowHalf
|
|
83
|
-
|
|
83
|
+
value = index2;
|
|
84
|
+
if (props.allowHalf) {
|
|
85
|
+
if ((e == null ? void 0 : e.target).className.includes("__icon--half")) {
|
|
86
|
+
value -= 0.5;
|
|
87
|
+
}
|
|
84
88
|
}
|
|
85
89
|
}
|
|
86
90
|
emit("update:modelValue", value);
|
|
@@ -93,6 +97,7 @@ const _sfc_main = create({
|
|
|
93
97
|
};
|
|
94
98
|
}
|
|
95
99
|
});
|
|
100
|
+
const _hoisted_1 = ["onClick"];
|
|
96
101
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
97
102
|
const _component_nut_icon = resolveComponent("nut-icon");
|
|
98
103
|
return openBlock(), createElementBlock("view", {
|
|
@@ -102,39 +107,37 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
102
107
|
return openBlock(), createElementBlock("view", {
|
|
103
108
|
class: "nut-rate-item",
|
|
104
109
|
key: n,
|
|
110
|
+
onClick: ($event) => _ctx.onClick($event, n),
|
|
105
111
|
style: normalizeStyle({ marginRight: _ctx.pxCheck(_ctx.spacing) })
|
|
106
112
|
}, [
|
|
107
113
|
createVNode(_component_nut_icon, {
|
|
108
114
|
size: _ctx.iconSize,
|
|
109
115
|
class: normalizeClass(["nut-rate-item__icon", { "nut-rate-item__icon--disabled": _ctx.disabled || n > _ctx.modelValue }]),
|
|
110
|
-
onClick: ($event) => _ctx.onClick(1, n),
|
|
111
|
-
color: n <= _ctx.modelValue ? _ctx.activeColor : _ctx.voidColor,
|
|
112
116
|
"font-class-name": _ctx.fontClassName,
|
|
113
117
|
"class-prefix": _ctx.classPrefix,
|
|
118
|
+
color: n <= _ctx.modelValue ? _ctx.activeColor : _ctx.voidColor,
|
|
114
119
|
name: n <= _ctx.modelValue ? _ctx.checkedIcon : _ctx.uncheckedIcon
|
|
115
|
-
}, null, 8, ["size", "
|
|
120
|
+
}, null, 8, ["size", "class", "font-class-name", "class-prefix", "color", "name"]),
|
|
116
121
|
_ctx.allowHalf && _ctx.modelValue + 1 > n ? (openBlock(), createBlock(_component_nut_icon, {
|
|
117
122
|
key: 0,
|
|
118
123
|
class: "nut-rate-item__icon nut-rate-item__icon--half",
|
|
119
|
-
onClick: ($event) => _ctx.onClick(2, n),
|
|
120
124
|
"font-class-name": _ctx.fontClassName,
|
|
121
125
|
"class-prefix": _ctx.classPrefix,
|
|
122
126
|
color: n <= _ctx.modelValue + 1 ? _ctx.activeColor : _ctx.voidColor,
|
|
123
127
|
size: _ctx.iconSize,
|
|
124
128
|
name: _ctx.checkedIcon
|
|
125
|
-
}, null, 8, ["
|
|
129
|
+
}, null, 8, ["font-class-name", "class-prefix", "color", "size", "name"])) : _ctx.allowHalf && _ctx.modelValue + 1 < n ? (openBlock(), createBlock(_component_nut_icon, {
|
|
126
130
|
key: 1,
|
|
127
131
|
class: "nut-rate-item__icon nut-rate-item__icon--disabled nut-rate-item__icon--half",
|
|
128
|
-
onClick: ($event) => _ctx.onClick(2, n),
|
|
129
132
|
"font-class-name": _ctx.fontClassName,
|
|
130
133
|
"class-prefix": _ctx.classPrefix,
|
|
131
134
|
color: _ctx.voidColor,
|
|
132
135
|
size: _ctx.iconSize,
|
|
133
136
|
name: _ctx.uncheckedIcon
|
|
134
|
-
}, null, 8, ["
|
|
135
|
-
],
|
|
137
|
+
}, null, 8, ["font-class-name", "class-prefix", "color", "size", "name"])) : createCommentVNode("", true)
|
|
138
|
+
], 12, _hoisted_1);
|
|
136
139
|
}), 128))
|
|
137
140
|
], 2);
|
|
138
141
|
}
|
|
139
|
-
var
|
|
140
|
-
export {
|
|
142
|
+
var index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
143
|
+
export { index as default };
|
package/dist/packages/_es/Row.js
CHANGED
|
@@ -18,14 +18,14 @@ var __spreadValues = (a, b) => {
|
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
20
|
/*!
|
|
21
|
-
* @nutui/nutui v3.1.19-beta.
|
|
21
|
+
* @nutui/nutui v3.1.19-beta.2 Thu Apr 07 2022 17:52:31 GMT+0800 (中国标准时间)
|
|
22
22
|
* (c) 2022 @jdf2e.
|
|
23
23
|
* Released under the MIT License.
|
|
24
24
|
*/
|
|
25
25
|
import { reactive, computed, toRefs, resolveComponent, openBlock, createElementBlock, normalizeStyle, renderSlot, createCommentVNode, createElementVNode, withModifiers, withDirectives, createVNode, vShow } from "vue";
|
|
26
26
|
import { c as createComponent } from "./component.js";
|
|
27
27
|
import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
|
|
28
|
-
const { create } = createComponent("searchbar");
|
|
28
|
+
const { create, translate } = createComponent("searchbar");
|
|
29
29
|
const _sfc_main = create({
|
|
30
30
|
props: {
|
|
31
31
|
modelValue: {
|
|
@@ -42,7 +42,7 @@ const _sfc_main = create({
|
|
|
42
42
|
},
|
|
43
43
|
placeholder: {
|
|
44
44
|
type: String,
|
|
45
|
-
default: "
|
|
45
|
+
default: ""
|
|
46
46
|
},
|
|
47
47
|
clearable: {
|
|
48
48
|
type: Boolean,
|
|
@@ -113,7 +113,8 @@ const _sfc_main = create({
|
|
|
113
113
|
handleClear,
|
|
114
114
|
handleSubmit,
|
|
115
115
|
searchbarStyle,
|
|
116
|
-
inputSearchbarStyle
|
|
116
|
+
inputSearchbarStyle,
|
|
117
|
+
translate
|
|
117
118
|
});
|
|
118
119
|
}
|
|
119
120
|
});
|
|
@@ -154,24 +155,22 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
154
155
|
createElementVNode("view", _hoisted_3, [
|
|
155
156
|
createElementVNode("form", {
|
|
156
157
|
action: "#",
|
|
157
|
-
|
|
158
|
-
onSubmit: _cache[4] || (_cache[4] = withModifiers((...args) => _ctx.handleSubmit && _ctx.handleSubmit(...args), ["prevent"]))
|
|
158
|
+
onSubmit: _cache[3] || (_cache[3] = withModifiers((...args) => _ctx.handleSubmit && _ctx.handleSubmit(...args), ["prevent"]))
|
|
159
159
|
}, [
|
|
160
160
|
createElementVNode("input", {
|
|
161
161
|
class: "nut-searchbar__input-bar",
|
|
162
162
|
type: _ctx.inputType,
|
|
163
163
|
maxlength: _ctx.maxLength,
|
|
164
|
-
placeholder: _ctx.placeholder,
|
|
164
|
+
placeholder: _ctx.placeholder || _ctx.translate("placeholder"),
|
|
165
165
|
value: _ctx.modelValue,
|
|
166
166
|
onInput: _cache[0] || (_cache[0] = (...args) => _ctx.valueChange && _ctx.valueChange(...args)),
|
|
167
167
|
onFocus: _cache[1] || (_cache[1] = (...args) => _ctx.valueFocus && _ctx.valueFocus(...args)),
|
|
168
|
-
onBlur: _cache[2] || (_cache[2] = (...args) => _ctx.valueBlur && _ctx.valueBlur(...args))
|
|
169
|
-
onConfirm: _cache[3] || (_cache[3] = (...args) => _ctx.handleSubmit && _ctx.handleSubmit(...args))
|
|
168
|
+
onBlur: _cache[2] || (_cache[2] = (...args) => _ctx.valueBlur && _ctx.valueBlur(...args))
|
|
170
169
|
}, null, 40, _hoisted_4)
|
|
171
170
|
], 32),
|
|
172
171
|
_ctx.clearable ? withDirectives((openBlock(), createElementBlock("view", {
|
|
173
172
|
key: 0,
|
|
174
|
-
onClick: _cache[
|
|
173
|
+
onClick: _cache[4] || (_cache[4] = (...args) => _ctx.handleClear && _ctx.handleClear(...args)),
|
|
175
174
|
class: "nut-searchbar__input-clear"
|
|
176
175
|
}, [
|
|
177
176
|
createVNode(_component_nut_icon, {
|
|
@@ -192,5 +191,5 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
192
191
|
])) : createCommentVNode("", true)
|
|
193
192
|
], 4);
|
|
194
193
|
}
|
|
195
|
-
var
|
|
196
|
-
export {
|
|
194
|
+
var index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
195
|
+
export { index as default };
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.1.19-beta.
|
|
2
|
+
* @nutui/nutui v3.1.19-beta.2 Thu Apr 07 2022 17:52:31 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
|
-
import { ref, computed, watch,
|
|
6
|
+
import { ref, computed, watch, resolveComponent, openBlock, createElementBlock, createVNode, withCtx, createElementVNode, toDisplayString, withDirectives, normalizeStyle, vModelText, Fragment, renderList, createCommentVNode } from "vue";
|
|
7
7
|
import { c as createComponent } from "./component.js";
|
|
8
|
-
import Taro, { eventCenter, getCurrentInstance } from "@tarojs/taro";
|
|
9
8
|
import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
|
|
10
9
|
const { create } = createComponent("shortpassword");
|
|
11
10
|
const _sfc_main = create({
|
|
@@ -45,6 +44,10 @@ const _sfc_main = create({
|
|
|
45
44
|
length: {
|
|
46
45
|
type: [String, Number],
|
|
47
46
|
default: 6
|
|
47
|
+
},
|
|
48
|
+
isWrapTeleport: {
|
|
49
|
+
type: Boolean,
|
|
50
|
+
default: true
|
|
48
51
|
}
|
|
49
52
|
},
|
|
50
53
|
emits: ["update:modelValue", "update:visible", "complete", "change", "ok", "tips", "close", "cancel"],
|
|
@@ -53,42 +56,21 @@ const _sfc_main = create({
|
|
|
53
56
|
const realpwd = ref();
|
|
54
57
|
const comLen = computed(() => range(Number(props.length)));
|
|
55
58
|
const show = ref(props.visible);
|
|
56
|
-
const refRandomId = Math.random().toString(36).slice(-8);
|
|
57
|
-
const randRef = ref(refRandomId);
|
|
58
|
-
const isWx = ref(false);
|
|
59
59
|
function sureClick() {
|
|
60
60
|
emit("ok", realInput.value);
|
|
61
61
|
}
|
|
62
62
|
function focus() {
|
|
63
|
-
|
|
64
|
-
if (isWx.value) {
|
|
65
|
-
setTimeout(() => {
|
|
66
|
-
if (!document.getElementById("nut-input-real-taro-" + randRef.value))
|
|
67
|
-
return;
|
|
68
|
-
dom = document.getElementById("nut-input-real-taro-" + randRef.value);
|
|
69
|
-
if (!dom)
|
|
70
|
-
return;
|
|
71
|
-
dom.focus();
|
|
72
|
-
}, 150);
|
|
73
|
-
} else {
|
|
74
|
-
dom = document.getElementsByClassName("nut-input-real")[0];
|
|
75
|
-
let h = dom.children[0];
|
|
76
|
-
h.focus();
|
|
77
|
-
}
|
|
63
|
+
realpwd.value.focus();
|
|
78
64
|
}
|
|
79
65
|
watch(() => props.visible, (value) => {
|
|
80
66
|
show.value = value;
|
|
81
|
-
if (value) {
|
|
82
|
-
randRef.value = Math.random().toString(36).slice(-8);
|
|
83
|
-
if (Taro.getEnv() === "WEB") {
|
|
84
|
-
isWx.value = false;
|
|
85
|
-
} else {
|
|
86
|
-
isWx.value = true;
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
67
|
});
|
|
90
68
|
watch(() => props.modelValue, (value) => {
|
|
91
69
|
realInput.value = value;
|
|
70
|
+
emit("update:modelValue", value);
|
|
71
|
+
}, {
|
|
72
|
+
deep: true,
|
|
73
|
+
immediate: true
|
|
92
74
|
});
|
|
93
75
|
function changeValue(e) {
|
|
94
76
|
const input = e.target;
|
|
@@ -117,46 +99,54 @@ const _sfc_main = create({
|
|
|
117
99
|
function onTips() {
|
|
118
100
|
emit("tips");
|
|
119
101
|
}
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
102
|
+
function systemStyle() {
|
|
103
|
+
let u = navigator.userAgent;
|
|
104
|
+
let isAndroid = u.indexOf("Android") > -1 || u.indexOf("Linux") > -1;
|
|
105
|
+
let isIOS = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/);
|
|
106
|
+
if (isIOS) {
|
|
107
|
+
return {
|
|
108
|
+
paddingRight: "1200px"
|
|
109
|
+
};
|
|
127
110
|
}
|
|
128
|
-
|
|
111
|
+
if (isAndroid) {
|
|
112
|
+
return {
|
|
113
|
+
opacity: 0,
|
|
114
|
+
zindex: 10
|
|
115
|
+
};
|
|
116
|
+
}
|
|
117
|
+
}
|
|
129
118
|
return {
|
|
130
119
|
comLen,
|
|
131
120
|
sureClick,
|
|
132
121
|
realInput,
|
|
133
122
|
realpwd,
|
|
123
|
+
focus,
|
|
134
124
|
range,
|
|
135
125
|
changeValue,
|
|
136
126
|
close,
|
|
137
127
|
onTips,
|
|
138
|
-
focus,
|
|
139
128
|
show,
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
refRandomId,
|
|
143
|
-
randRef
|
|
129
|
+
systemStyle,
|
|
130
|
+
closeIcon
|
|
144
131
|
};
|
|
145
132
|
}
|
|
146
133
|
});
|
|
147
134
|
const _hoisted_1 = { class: "nut-shortpsd-title" };
|
|
148
|
-
const _hoisted_2 = { class: "nut-
|
|
149
|
-
const _hoisted_3 =
|
|
150
|
-
const _hoisted_4 = { class: "nut-input-
|
|
151
|
-
const _hoisted_5 =
|
|
152
|
-
const _hoisted_6 = {
|
|
135
|
+
const _hoisted_2 = { class: "nut-shortpsd-subtitle" };
|
|
136
|
+
const _hoisted_3 = { class: "nut-input-normalw" };
|
|
137
|
+
const _hoisted_4 = /* @__PURE__ */ createElementVNode("div", { class: "nut-input-site" }, null, -1);
|
|
138
|
+
const _hoisted_5 = {
|
|
153
139
|
key: 0,
|
|
154
140
|
class: "nut-shortpsd-icon"
|
|
155
141
|
};
|
|
156
|
-
const
|
|
157
|
-
const
|
|
142
|
+
const _hoisted_6 = { class: "nut-shortpsd-message" };
|
|
143
|
+
const _hoisted_7 = { class: "nut-shortpsd-error" };
|
|
144
|
+
const _hoisted_8 = {
|
|
145
|
+
key: 0,
|
|
146
|
+
class: "nut-shortpsd-forget"
|
|
147
|
+
};
|
|
158
148
|
const _hoisted_9 = {
|
|
159
|
-
key:
|
|
149
|
+
key: 0,
|
|
160
150
|
class: "nut-shortpsd-footer"
|
|
161
151
|
};
|
|
162
152
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
@@ -170,82 +160,70 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
170
160
|
textAlign: "center"
|
|
171
161
|
},
|
|
172
162
|
visible: _ctx.show,
|
|
173
|
-
"onUpdate:visible": _cache[
|
|
163
|
+
"onUpdate:visible": _cache[6] || (_cache[6] = ($event) => _ctx.show = $event),
|
|
174
164
|
closeable: true,
|
|
175
165
|
onClickCloseIcon: _ctx.closeIcon,
|
|
176
166
|
"close-on-click-overlay": _ctx.closeOnClickOverlay,
|
|
177
|
-
onClickOverlay: _ctx.close
|
|
167
|
+
onClickOverlay: _ctx.close,
|
|
168
|
+
isWrapTeleport: _ctx.isWrapTeleport
|
|
178
169
|
}, {
|
|
179
170
|
default: withCtx(() => [
|
|
180
171
|
createElementVNode("view", _hoisted_1, toDisplayString(_ctx.title), 1),
|
|
181
172
|
createElementVNode("view", _hoisted_2, toDisplayString(_ctx.desc), 1),
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
class: "nut-input-real-taro",
|
|
185
|
-
id: "nut-input-real-taro-" + _ctx.randRef,
|
|
186
|
-
type: "number",
|
|
187
|
-
maxlength: _ctx.length,
|
|
188
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.realInput = $event),
|
|
189
|
-
onInput: _cache[1] || (_cache[1] = (...args) => _ctx.changeValue && _ctx.changeValue(...args))
|
|
190
|
-
}, null, 40, _hoisted_3)), [
|
|
191
|
-
[vModelText, _ctx.realInput]
|
|
192
|
-
]) : createCommentVNode("", true),
|
|
193
|
-
createElementVNode("view", _hoisted_4, [
|
|
194
|
-
!_ctx.isWx ? withDirectives((openBlock(), createElementBlock("input", {
|
|
195
|
-
key: 0,
|
|
173
|
+
createElementVNode("div", _hoisted_3, [
|
|
174
|
+
withDirectives(createElementVNode("input", {
|
|
196
175
|
ref: "realpwd",
|
|
197
176
|
class: "nut-input-real",
|
|
198
177
|
type: "number",
|
|
199
178
|
maxlength: "6",
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
179
|
+
style: normalizeStyle(_ctx.systemStyle()),
|
|
180
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.realInput = $event),
|
|
181
|
+
onInput: _cache[1] || (_cache[1] = (...args) => _ctx.changeValue && _ctx.changeValue(...args))
|
|
182
|
+
}, null, 36), [
|
|
203
183
|
[vModelText, _ctx.realInput]
|
|
204
|
-
])
|
|
205
|
-
|
|
184
|
+
]),
|
|
185
|
+
_hoisted_4,
|
|
206
186
|
createElementVNode("view", {
|
|
207
|
-
class: "nut-shortpsd-fake
|
|
208
|
-
onClick: _cache[
|
|
187
|
+
class: "nut-shortpsd-fake",
|
|
188
|
+
onClick: _cache[2] || (_cache[2] = (...args) => _ctx.focus && _ctx.focus(...args))
|
|
209
189
|
}, [
|
|
210
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(new Array(_ctx.comLen), (sublen,
|
|
190
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(new Array(_ctx.comLen), (sublen, index2) => {
|
|
211
191
|
return openBlock(), createElementBlock("view", {
|
|
212
192
|
class: "nut-shortpsd-li",
|
|
213
|
-
key:
|
|
193
|
+
key: index2
|
|
214
194
|
}, [
|
|
215
|
-
String(_ctx.realInput).length >
|
|
195
|
+
String(_ctx.realInput).length > index2 ? (openBlock(), createElementBlock("view", _hoisted_5)) : createCommentVNode("", true)
|
|
216
196
|
]);
|
|
217
197
|
}), 128))
|
|
218
198
|
])
|
|
219
199
|
]),
|
|
220
|
-
createElementVNode("view",
|
|
221
|
-
createElementVNode("view",
|
|
222
|
-
_ctx.tips ? (openBlock(), createElementBlock("view",
|
|
223
|
-
key: 0,
|
|
224
|
-
class: "nut-shortpsd-forget",
|
|
225
|
-
onClick: _cache[5] || (_cache[5] = (...args) => _ctx.onTips && _ctx.onTips(...args))
|
|
226
|
-
}, [
|
|
200
|
+
createElementVNode("view", _hoisted_6, [
|
|
201
|
+
createElementVNode("view", _hoisted_7, toDisplayString(_ctx.errorMsg), 1),
|
|
202
|
+
_ctx.tips ? (openBlock(), createElementBlock("view", _hoisted_8, [
|
|
227
203
|
createVNode(_component_nut_icon, {
|
|
228
204
|
class: "icon",
|
|
229
205
|
size: "11px",
|
|
230
206
|
name: "tips"
|
|
231
207
|
}),
|
|
232
|
-
createElementVNode("view",
|
|
208
|
+
createElementVNode("view", {
|
|
209
|
+
onClick: _cache[3] || (_cache[3] = (...args) => _ctx.onTips && _ctx.onTips(...args))
|
|
210
|
+
}, toDisplayString(_ctx.tips), 1)
|
|
233
211
|
])) : createCommentVNode("", true)
|
|
234
212
|
]),
|
|
235
213
|
!_ctx.noButton ? (openBlock(), createElementBlock("view", _hoisted_9, [
|
|
236
214
|
createElementVNode("view", {
|
|
237
215
|
class: "nut-shortpsd-cancle",
|
|
238
|
-
onClick: _cache[
|
|
216
|
+
onClick: _cache[4] || (_cache[4] = (...args) => _ctx.close && _ctx.close(...args))
|
|
239
217
|
}, "\u53D6\u6D88"),
|
|
240
218
|
createElementVNode("view", {
|
|
241
219
|
class: "nut-shortpsd-sure",
|
|
242
|
-
onClick: _cache[
|
|
220
|
+
onClick: _cache[5] || (_cache[5] = (...args) => _ctx.sureClick && _ctx.sureClick(...args))
|
|
243
221
|
}, "\u786E\u8BA4")
|
|
244
222
|
])) : createCommentVNode("", true)
|
|
245
223
|
]),
|
|
246
224
|
_: 1
|
|
247
|
-
}, 8, ["visible", "onClickCloseIcon", "close-on-click-overlay", "onClickOverlay"])
|
|
225
|
+
}, 8, ["visible", "onClickCloseIcon", "close-on-click-overlay", "onClickOverlay", "isWrapTeleport"])
|
|
248
226
|
]);
|
|
249
227
|
}
|
|
250
|
-
var
|
|
251
|
-
export {
|
|
228
|
+
var index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
229
|
+
export { index as default };
|