@nutui/nutui 3.2.2 → 3.2.4-beta.0
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/CHANGELOG.md +53 -0
- package/README.md +4 -4
- package/dist/nutui.es.js +2136 -1419
- package/dist/nutui.umd.js +2145 -1427
- package/dist/packages/_es/ActionSheet.js +4 -22
- package/dist/packages/_es/Address.js +63 -57
- package/dist/packages/_es/AddressList.js +12 -9
- package/dist/packages/_es/Animate.js +2 -21
- package/dist/packages/_es/Audio.js +11 -25
- package/dist/packages/_es/AudioOperate.js +3 -23
- package/dist/packages/_es/Avatar.js +6 -21
- package/dist/packages/_es/AvatarGroup.js +1 -1
- package/dist/packages/_es/BackTop.js +1 -1
- package/dist/packages/_es/Badge.js +1 -1
- package/dist/packages/_es/Barrage.js +74 -22
- package/dist/packages/_es/Button.js +1 -1
- package/dist/packages/_es/Calendar.js +17 -9
- package/dist/packages/_es/CalendarItem.js +1 -1
- package/dist/packages/_es/Card.js +1 -1
- package/dist/packages/_es/Cascader.js +72 -68
- package/dist/packages/_es/Category.js +1 -1
- package/dist/packages/_es/CategoryPane.js +1 -1
- package/dist/packages/_es/Cell.js +1 -1
- package/dist/packages/_es/CellGroup.js +1 -1
- package/dist/packages/_es/Checkbox.js +31 -17
- package/dist/packages/_es/CheckboxGroup.js +14 -7
- package/dist/packages/_es/CircleProgress.js +4 -4
- package/dist/packages/_es/Col.js +1 -1
- package/dist/packages/_es/Collapse.js +22 -19
- package/dist/packages/_es/CollapseItem.js +18 -32
- package/dist/packages/_es/Comment.js +13 -9
- package/dist/packages/_es/ConfigProvider.js +8 -4
- package/dist/packages/_es/CountDown.js +40 -46
- package/dist/packages/_es/CountUp.js +41 -40
- package/dist/packages/_es/DatePicker.js +25 -33
- package/dist/packages/_es/Dialog.js +13 -28
- package/dist/packages/_es/Divider.js +7 -24
- package/dist/packages/_es/Drag.js +2 -2
- package/dist/packages/_es/Ecard.js +8 -5
- package/dist/packages/_es/Elevator.js +27 -39
- package/dist/packages/_es/Ellipsis.js +21 -31
- package/dist/packages/_es/Empty.js +1 -1
- package/dist/packages/_es/FixedNav.js +1 -1
- package/dist/packages/_es/Form.js +23 -12
- package/dist/packages/_es/FormItem.js +1 -1
- package/dist/packages/_es/Grid.js +1 -1
- package/dist/packages/_es/GridItem.js +1 -1
- package/dist/packages/_es/Icon.js +15 -11
- package/dist/packages/_es/Image.js +8 -24
- package/dist/packages/_es/ImagePreview.js +34 -48
- package/dist/packages/_es/Indicator.js +1 -1
- package/dist/packages/_es/InfiniteLoading.js +5 -24
- package/dist/packages/_es/Input.js +8 -5
- package/dist/packages/_es/InputNumber.js +1 -1
- package/dist/packages/_es/Invoice.js +10 -25
- package/dist/packages/_es/Layout.js +1 -1
- package/dist/packages/_es/List.js +21 -30
- package/dist/packages/_es/Menu.js +13 -7
- package/dist/packages/_es/MenuItem.js +2 -21
- package/dist/packages/_es/Navbar.js +1 -1
- package/dist/packages/_es/NoticeBar.js +18 -29
- package/dist/packages/_es/Notify.js +16 -32
- package/dist/packages/_es/NumberKeyboard.js +23 -18
- package/dist/packages/_es/OldPicker.js +47 -46
- package/dist/packages/_es/OverLay.js +11 -23
- package/dist/packages/_es/Pagination.js +6 -6
- package/dist/packages/_es/Picker.js +66 -59
- package/dist/packages/_es/Popover.js +55 -52
- package/dist/packages/_es/Popup.js +35 -40
- package/dist/packages/_es/Price.js +1 -1
- package/dist/packages/_es/Progress.js +2 -2
- package/dist/packages/_es/PullRefresh.js +5 -20
- package/dist/packages/_es/Radio.js +25 -13
- package/dist/packages/_es/RadioGroup.js +12 -5
- package/dist/packages/_es/Range.js +20 -33
- package/dist/packages/_es/Rate.js +6 -24
- package/dist/packages/_es/Row.js +1 -1
- package/dist/packages/_es/SearchBar.js +6 -25
- package/dist/packages/_es/ShortPassword.js +18 -11
- package/dist/packages/_es/SideNavBar.js +6 -24
- package/dist/packages/_es/SideNavBarItem.js +1 -1
- package/dist/packages/_es/Signature.js +2 -21
- package/dist/packages/_es/Skeleton.js +1 -1
- package/dist/packages/_es/Sku.js +30 -35
- package/dist/packages/_es/Step.js +4 -22
- package/dist/packages/_es/Steps.js +8 -4
- package/dist/packages/_es/Sticky.js +23 -12
- package/dist/packages/_es/SubSideNavBar.js +4 -22
- package/dist/packages/_es/Swipe.js +5 -24
- package/dist/packages/_es/Swiper.js +23 -14
- package/dist/packages/_es/SwiperItem.js +1 -1
- package/dist/packages/_es/Switch.js +10 -7
- package/dist/packages/_es/TabPane.js +1 -1
- package/dist/packages/_es/Tabbar.js +7 -4
- package/dist/packages/_es/TabbarItem.js +1 -1
- package/dist/packages/_es/Table.js +10 -25
- package/dist/packages/_es/Tabs.js +99 -34
- package/dist/packages/_es/Tag.js +1 -2
- package/dist/packages/_es/TextArea.js +8 -5
- package/dist/packages/_es/TimeDetail.js +5 -24
- package/dist/packages/_es/TimePannel.js +4 -22
- package/dist/packages/_es/TimeSelect.js +1 -1
- package/dist/packages/_es/Toast.js +21 -37
- package/dist/packages/_es/TrendArrow.js +131 -0
- package/dist/packages/_es/Uploader.js +40 -34
- package/dist/packages/_es/Video.js +22 -33
- package/dist/packages/_es/WaterMark.js +31 -41
- package/dist/packages/_es/common.js +21 -11
- package/dist/packages/_es/component.js +13 -6
- package/dist/packages/_es/index.js +1 -1
- package/dist/packages/_es/index2.js +1 -1
- package/dist/packages/_es/index3.js +1 -1
- package/dist/packages/_es/index4.js +1 -1
- package/dist/packages/_es/index5.js +39 -41
- 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 +1 -1
- package/dist/packages/_es/style.css +16 -1
- package/dist/packages/barrage/index.scss +27 -18
- package/dist/packages/ellipsis/index.scss +1 -0
- package/dist/packages/index.d.ts +5 -0
- package/dist/packages/list/index.scss +0 -1
- package/dist/packages/locale/lang/baseLang.js +1 -1
- package/dist/packages/locale/lang/en-US.js +1 -1
- package/dist/packages/locale/lang/id-ID.js +1 -1
- package/dist/packages/locale/lang/index.js +1 -1
- package/dist/packages/locale/lang/zh-CN.js +1 -1
- package/dist/packages/locale/lang/zh-TW.js +1 -1
- package/dist/packages/picker/index.scss +14 -0
- package/dist/packages/tabbar/index.scss +3 -2
- package/dist/packages/trendarrow/index.scss +17 -0
- package/dist/smartips/attributes.json +76 -12
- package/dist/smartips/tags.json +30 -10
- package/dist/smartips/web-types.json +164 -13
- package/dist/style.css +1 -1
- package/dist/style.es.js +1 -1
- package/dist/styles/font/config.json +3 -1
- package/dist/styles/font/demo_index.html +51 -5
- package/dist/styles/font/iconfont.css +11 -3
- package/dist/styles/font/iconfont.js +64 -61
- package/dist/styles/font/iconfont.json +14 -0
- package/dist/styles/font/iconfont.ttf +0 -0
- package/dist/styles/font/iconfont.woff +0 -0
- package/dist/styles/font/iconfont.woff2 +0 -0
- package/dist/styles/themes/default.scss +53 -52
- package/dist/styles/themes/jdb.scss +53 -52
- package/dist/styles/themes/jdt.scss +53 -52
- package/dist/styles/variables-jdb.scss +4 -1
- package/dist/styles/variables-jdt.scss +4 -1
- package/dist/styles/variables.scss +4 -1
- package/dist/types/__VUE/actionsheet/index.vue.d.ts +121 -74
- package/dist/types/__VUE/address/index.vue.d.ts +159 -91
- package/dist/types/__VUE/addresslist/components/GeneralShell.vue.d.ts +9 -15
- package/dist/types/__VUE/addresslist/components/ItemContents.vue.d.ts +13 -17
- package/dist/types/__VUE/addresslist/components/LongPressShell.vue.d.ts +9 -15
- package/dist/types/__VUE/addresslist/components/SwipeShell.vue.d.ts +9 -15
- package/dist/types/__VUE/addresslist/index.vue.d.ts +25 -23
- package/dist/types/__VUE/animate/index.vue.d.ts +18 -19
- package/dist/types/__VUE/audio/index.vue.d.ts +33 -27
- package/dist/types/__VUE/audiooperate/index.vue.d.ts +9 -15
- package/dist/types/__VUE/avatar/index.vue.d.ts +37 -31
- package/dist/types/__VUE/avatargroup/index.vue.d.ts +37 -29
- package/dist/types/__VUE/backtop/index.vue.d.ts +34 -28
- package/dist/types/__VUE/badge/index.vue.d.ts +37 -31
- package/dist/types/__VUE/barrage/index.vue.d.ts +31 -26
- package/dist/types/__VUE/button/index.vue.d.ts +48 -37
- package/dist/types/__VUE/calendar/index.vue.d.ts +65 -45
- package/dist/types/__VUE/calendaritem/index.vue.d.ts +101 -55
- package/dist/types/__VUE/card/index.vue.d.ts +37 -29
- package/dist/types/__VUE/cascader/cascader-item.vue.d.ts +29 -33
- package/dist/types/__VUE/cascader/index.vue.d.ts +114 -74
- package/dist/types/__VUE/cascader/types.d.ts +5 -0
- package/dist/types/__VUE/category/index.vue.d.ts +14 -17
- package/dist/types/__VUE/categorypane/index.vue.d.ts +17 -19
- package/dist/types/__VUE/cell/index.vue.d.ts +58 -44
- package/dist/types/__VUE/cellgroup/index.vue.d.ts +13 -17
- package/dist/types/__VUE/checkbox/index.vue.d.ts +49 -35
- package/dist/types/__VUE/checkboxgroup/index.vue.d.ts +17 -19
- package/dist/types/__VUE/circleprogress/index.vue.d.ts +33 -27
- package/dist/types/__VUE/col/index.vue.d.ts +13 -17
- package/dist/types/__VUE/collapse/index.vue.d.ts +43 -34
- package/dist/types/__VUE/collapseitem/index.vue.d.ts +32 -31
- package/dist/types/__VUE/comment/components/CmtBottom.vue.d.ts +17 -19
- package/dist/types/__VUE/comment/components/CmtHeader.vue.d.ts +17 -19
- package/dist/types/__VUE/comment/components/CmtImages.vue.d.ts +17 -19
- package/dist/types/__VUE/comment/index.vue.d.ts +41 -31
- package/dist/types/__VUE/configprovider/index.vue.d.ts +13 -17
- package/dist/types/__VUE/countdown/index.vue.d.ts +37 -30
- package/dist/types/__VUE/countup/index.vue.d.ts +76 -50
- package/dist/types/__VUE/datepicker/index.vue.d.ts +136 -82
- package/dist/types/__VUE/dialog/index.vue.d.ts +141 -85
- package/dist/types/__VUE/divider/index.vue.d.ts +21 -21
- package/dist/types/__VUE/drag/index.vue.d.ts +22 -19
- package/dist/types/__VUE/ecard/index.vue.d.ts +46 -33
- package/dist/types/__VUE/elevator/index.vue.d.ts +36 -26
- package/dist/types/__VUE/ellipsis/index.vue.d.ts +44 -25
- package/dist/types/__VUE/empty/index.vue.d.ts +17 -19
- package/dist/types/__VUE/fixednav/index.vue.d.ts +42 -31
- package/dist/types/__VUE/form/common.d.ts +4 -0
- package/dist/types/__VUE/form/index.vue.d.ts +18 -15
- package/dist/types/__VUE/form/types.d.ts +3 -0
- package/dist/types/__VUE/formitem/index.vue.d.ts +46 -33
- package/dist/types/__VUE/formitem/types.d.ts +5 -2
- package/dist/types/__VUE/grid/index.vue.d.ts +44 -35
- package/dist/types/__VUE/griditem/index.vue.d.ts +29 -28
- package/dist/types/__VUE/icon/index.vue.d.ts +30 -25
- package/dist/types/__VUE/image/index.vue.d.ts +41 -35
- package/dist/types/__VUE/imagepreview/imagePreviewItem.vue.d.ts +47 -39
- package/dist/types/__VUE/imagepreview/index.d.ts +4 -4
- package/dist/types/__VUE/imagepreview/index.vue.d.ts +70 -47
- package/dist/types/__VUE/indicator/index.vue.d.ts +27 -23
- package/dist/types/__VUE/infiniteloading/index.vue.d.ts +49 -35
- package/dist/types/__VUE/input/index.vue.d.ts +137 -80
- package/dist/types/__VUE/inputnumber/index.vue.d.ts +49 -35
- package/dist/types/__VUE/invoice/index.vue.d.ts +17 -19
- package/dist/types/__VUE/layout/index.vue.d.ts +2 -9
- package/dist/types/__VUE/list/index.vue.d.ts +19 -19
- package/dist/types/__VUE/menu/index.vue.d.ts +35 -32
- package/dist/types/__VUE/menuitem/index.vue.d.ts +26 -30
- package/dist/types/__VUE/navbar/index.vue.d.ts +45 -33
- package/dist/types/__VUE/noticebar/index.vue.d.ts +69 -47
- package/dist/types/__VUE/notify/index.vue.d.ts +45 -40
- package/dist/types/__VUE/numberkeyboard/index.vue.d.ts +69 -46
- package/dist/types/__VUE/oldpicker/Column.vue.d.ts +22 -24
- package/dist/types/__VUE/oldpicker/index.vue.d.ts +129 -82
- package/dist/types/__VUE/overlay/index.vue.d.ts +64 -1557
- package/dist/types/__VUE/pagination/index.vue.d.ts +45 -35
- package/dist/types/__VUE/picker/Column.vue.d.ts +30 -29
- package/dist/types/__VUE/picker/index.vue.d.ts +150 -91
- package/dist/types/__VUE/popover/index.vue.d.ts +112 -70
- package/dist/types/__VUE/popup/index.vue.d.ts +177 -73
- package/dist/types/__VUE/price/index.vue.d.ts +33 -27
- package/dist/types/__VUE/progress/index.vue.d.ts +54 -37
- package/dist/types/__VUE/pullrefresh/index.vue.d.ts +49 -27
- package/dist/types/__VUE/radio/index.vue.d.ts +37 -29
- package/dist/types/__VUE/radiogroup/index.vue.d.ts +17 -19
- package/dist/types/__VUE/range/index.vue.d.ts +50 -44
- package/dist/types/__VUE/rate/index.vue.d.ts +61 -41
- package/dist/types/__VUE/row/index.vue.d.ts +25 -23
- package/dist/types/__VUE/searchbar/index.vue.d.ts +62 -41
- package/dist/types/__VUE/searchbar/type.d.ts +5 -0
- package/dist/types/__VUE/shortpassword/index.vue.d.ts +45 -33
- package/dist/types/__VUE/sidenavbar/index.vue.d.ts +10 -15
- package/dist/types/__VUE/sidenavbaritem/index.vue.d.ts +13 -17
- package/dist/types/__VUE/signature/index.vue.d.ts +25 -23
- package/dist/types/__VUE/skeleton/common.d.ts +1 -1
- package/dist/types/__VUE/skeleton/index.vue.d.ts +46 -34
- package/dist/types/__VUE/sku/components/SkuHeader.vue.d.ts +9 -15
- package/dist/types/__VUE/sku/components/SkuOperate.vue.d.ts +25 -23
- package/dist/types/__VUE/sku/components/SkuSelect.vue.d.ts +9 -15
- package/dist/types/__VUE/sku/components/SkuStepper.vue.d.ts +21 -21
- package/dist/types/__VUE/sku/index.vue.d.ts +129 -78
- package/dist/types/__VUE/step/index.vue.d.ts +27 -25
- package/dist/types/__VUE/steps/index.vue.d.ts +17 -19
- package/dist/types/__VUE/sticky/index.vue.d.ts +26 -25
- package/dist/types/__VUE/subsidenavbar/index.vue.d.ts +17 -19
- package/dist/types/__VUE/swipe/index.vue.d.ts +24 -22
- package/dist/types/__VUE/swiper/index.vue.d.ts +59 -40
- package/dist/types/__VUE/swiperitem/index.vue.d.ts +8 -10
- package/dist/types/__VUE/switch/index.vue.d.ts +53 -37
- package/dist/types/__VUE/tabbar/index.vue.d.ts +34 -28
- package/dist/types/__VUE/tabbaritem/index.vue.d.ts +45 -36
- package/dist/types/__VUE/table/common.d.ts +1 -1
- package/dist/types/__VUE/table/index.vue.d.ts +26 -24
- package/dist/types/__VUE/tabpane/index.vue.d.ts +17 -19
- package/dist/types/__VUE/tabs/common.d.ts +13 -0
- package/dist/types/__VUE/tabs/index.vue.d.ts +72 -35
- package/dist/types/__VUE/tag/index.vue.d.ts +34 -27
- package/dist/types/__VUE/textarea/index.vue.d.ts +46 -34
- package/dist/types/__VUE/timedetail/index.vue.d.ts +13 -17
- package/dist/types/__VUE/timepannel/index.vue.d.ts +13 -17
- package/dist/types/__VUE/timeselect/index.vue.d.ts +34 -28
- package/dist/types/__VUE/toast/index.d.ts +5 -5
- package/dist/types/__VUE/toast/index.vue.d.ts +62 -54
- package/dist/types/__VUE/trendarrow/index.vue.d.ts +131 -0
- package/dist/types/__VUE/uploader/index.vue.d.ts +111 -68
- package/dist/types/__VUE/video/index.vue.d.ts +30 -20
- package/dist/types/__VUE/watermark/index.vue.d.ts +75 -49
- package/dist/types/index.d.ts +1 -1
- package/dist/types/nutui.d.ts +2 -1
- package/package.json +5 -5
|
@@ -1,32 +1,14 @@
|
|
|
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.2.
|
|
2
|
+
* @nutui/nutui v3.2.4-beta.0 Fri Oct 14 2022 14:39:24 GMT+0800 (中国标准时间)
|
|
22
3
|
* (c) 2022 @jdf2e.
|
|
23
4
|
* Released under the MIT License.
|
|
24
5
|
*/
|
|
25
|
-
import { ref, reactive, computed, watch, toRefs, openBlock, createElementBlock, normalizeClass,
|
|
6
|
+
import { ref, reactive, computed, watch, toRefs, openBlock, createElementBlock, normalizeClass, normalizeStyle, createElementVNode, Fragment, renderList, renderSlot } from "vue";
|
|
26
7
|
import { c as createComponent } from "./component.js";
|
|
27
8
|
import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
|
|
28
9
|
import "../locale/lang";
|
|
29
10
|
const { componentName, create } = createComponent("list");
|
|
11
|
+
const clientHeight = document.documentElement.clientHeight || document.body.clientHeight || 667;
|
|
30
12
|
const _sfc_main = create({
|
|
31
13
|
props: {
|
|
32
14
|
height: {
|
|
@@ -41,7 +23,7 @@ const _sfc_main = create({
|
|
|
41
23
|
},
|
|
42
24
|
containerHeight: {
|
|
43
25
|
type: [Number],
|
|
44
|
-
default:
|
|
26
|
+
default: clientHeight
|
|
45
27
|
}
|
|
46
28
|
},
|
|
47
29
|
emits: ["scroll", "scroll-bottom"],
|
|
@@ -52,8 +34,11 @@ const _sfc_main = create({
|
|
|
52
34
|
start: 0,
|
|
53
35
|
list: props.listData.slice()
|
|
54
36
|
});
|
|
37
|
+
const getContainerHeight = computed(() => {
|
|
38
|
+
return Math.min(props.containerHeight, clientHeight);
|
|
39
|
+
});
|
|
55
40
|
const visibleCount = computed(() => {
|
|
56
|
-
return Math.ceil(
|
|
41
|
+
return Math.ceil(getContainerHeight.value / props.height);
|
|
57
42
|
});
|
|
58
43
|
const end = computed(() => {
|
|
59
44
|
return state.start + visibleCount.value;
|
|
@@ -83,22 +68,28 @@ const _sfc_main = create({
|
|
|
83
68
|
}
|
|
84
69
|
state.startOffset = scrollTop - scrollTop % props.height;
|
|
85
70
|
};
|
|
86
|
-
watch(
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
71
|
+
watch(
|
|
72
|
+
() => props.listData,
|
|
73
|
+
() => {
|
|
74
|
+
state.list = props.listData.slice();
|
|
75
|
+
}
|
|
76
|
+
);
|
|
77
|
+
return {
|
|
78
|
+
...toRefs(state),
|
|
90
79
|
list,
|
|
91
80
|
getTransform,
|
|
92
81
|
listHeight,
|
|
93
82
|
visibleData,
|
|
94
83
|
classes,
|
|
84
|
+
getContainerHeight,
|
|
95
85
|
handleScrollEvent
|
|
96
|
-
}
|
|
86
|
+
};
|
|
97
87
|
}
|
|
98
88
|
});
|
|
99
89
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
100
|
-
return openBlock(), createElementBlock("
|
|
90
|
+
return openBlock(), createElementBlock("div", {
|
|
101
91
|
class: normalizeClass(_ctx.classes),
|
|
92
|
+
style: normalizeStyle({ height: `${_ctx.getContainerHeight}px` }),
|
|
102
93
|
onScrollPassive: _cache[0] || (_cache[0] = (...args) => _ctx.handleScrollEvent && _ctx.handleScrollEvent(...args)),
|
|
103
94
|
ref: "list"
|
|
104
95
|
}, [
|
|
@@ -123,7 +114,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
123
114
|
], 4);
|
|
124
115
|
}), 128))
|
|
125
116
|
], 4)
|
|
126
|
-
],
|
|
117
|
+
], 38);
|
|
127
118
|
}
|
|
128
119
|
var index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
129
120
|
export { index as default };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.2.
|
|
2
|
+
* @nutui/nutui v3.2.4-beta.0 Fri Oct 14 2022 14:39:24 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
|
-
import { ref, computed, onMounted, onUnmounted, reactive,
|
|
6
|
+
import { ref, computed, onMounted, onUnmounted, reactive, resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, Fragment, renderList, normalizeStyle, toDisplayString, createVNode, mergeProps, renderSlot, provide } from "vue";
|
|
7
7
|
import { c as createComponent } from "./component.js";
|
|
8
8
|
import { u as useRect } from "./index2.js";
|
|
9
9
|
import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
|
|
@@ -56,11 +56,17 @@ const _sfc_main = create({
|
|
|
56
56
|
publicChildren.push(child.proxy);
|
|
57
57
|
}
|
|
58
58
|
};
|
|
59
|
-
provide(
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
59
|
+
provide(
|
|
60
|
+
"menuParent",
|
|
61
|
+
Object.assign(
|
|
62
|
+
{
|
|
63
|
+
link,
|
|
64
|
+
children: publicChildren,
|
|
65
|
+
internalChildren
|
|
66
|
+
},
|
|
67
|
+
value
|
|
68
|
+
)
|
|
69
|
+
);
|
|
64
70
|
};
|
|
65
71
|
return {
|
|
66
72
|
children: publicChildren,
|
|
@@ -1,24 +1,5 @@
|
|
|
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.2.
|
|
2
|
+
* @nutui/nutui v3.2.4-beta.0 Fri Oct 14 2022 14:39:24 GMT+0800 (中国标准时间)
|
|
22
3
|
* (c) 2022 @jdf2e.
|
|
23
4
|
* Released under the MIT License.
|
|
24
5
|
*/
|
|
@@ -89,7 +70,7 @@ const _sfc_main = create({
|
|
|
89
70
|
if (parent.props.direction === "down") {
|
|
90
71
|
return heightStyle;
|
|
91
72
|
} else {
|
|
92
|
-
return
|
|
73
|
+
return { ...heightStyle, top: "auto" };
|
|
93
74
|
}
|
|
94
75
|
});
|
|
95
76
|
const toggle = (show = !state.showPopup, options = {}) => {
|
|
@@ -1,24 +1,5 @@
|
|
|
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.2.
|
|
2
|
+
* @nutui/nutui v3.2.4-beta.0 Fri Oct 14 2022 14:39:24 GMT+0800 (中国标准时间)
|
|
22
3
|
* (c) 2022 @jdf2e.
|
|
23
4
|
* Released under the MIT License.
|
|
24
5
|
*/
|
|
@@ -171,12 +152,18 @@ const _sfc_main = create({
|
|
|
171
152
|
}
|
|
172
153
|
return styles;
|
|
173
154
|
});
|
|
174
|
-
watch(
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
155
|
+
watch(
|
|
156
|
+
() => props.text,
|
|
157
|
+
(value) => {
|
|
158
|
+
initScrollWrap();
|
|
159
|
+
}
|
|
160
|
+
);
|
|
161
|
+
watch(
|
|
162
|
+
() => props.list,
|
|
163
|
+
(value) => {
|
|
164
|
+
state.scrollList = [].concat(value);
|
|
165
|
+
}
|
|
166
|
+
);
|
|
180
167
|
const initScrollWrap = (value) => {
|
|
181
168
|
if (state.showNoticeBar == false) {
|
|
182
169
|
return;
|
|
@@ -277,7 +264,9 @@ const _sfc_main = create({
|
|
|
277
264
|
onUnmounted(() => {
|
|
278
265
|
clearInterval(state.timer);
|
|
279
266
|
});
|
|
280
|
-
return
|
|
267
|
+
return {
|
|
268
|
+
...toRefs(props),
|
|
269
|
+
...toRefs(state),
|
|
281
270
|
isEllipsis,
|
|
282
271
|
classes,
|
|
283
272
|
iconShow,
|
|
@@ -293,7 +282,7 @@ const _sfc_main = create({
|
|
|
293
282
|
go,
|
|
294
283
|
handleClickIcon,
|
|
295
284
|
slots
|
|
296
|
-
}
|
|
285
|
+
};
|
|
297
286
|
}
|
|
298
287
|
});
|
|
299
288
|
const _hoisted_1 = {
|
|
@@ -333,7 +322,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
333
322
|
class: normalizeClass(["content", _ctx.animationClass, { "nut-ellipsis": _ctx.isEllipsis }]),
|
|
334
323
|
style: normalizeStyle(_ctx.contentStyle),
|
|
335
324
|
onAnimationend: _cache[0] || (_cache[0] = (...args) => _ctx.onAnimationEnd && _ctx.onAnimationEnd(...args)),
|
|
336
|
-
|
|
325
|
+
"on:webkitAnimationEnd": _cache[1] || (_cache[1] = (...args) => _ctx.onAnimationEnd && _ctx.onAnimationEnd(...args))
|
|
337
326
|
}, [
|
|
338
327
|
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
339
328
|
createTextVNode(toDisplayString(_ctx.text), 1)
|
|
@@ -1,24 +1,5 @@
|
|
|
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.2.
|
|
2
|
+
* @nutui/nutui v3.2.4-beta.0 Fri Oct 14 2022 14:39:24 GMT+0800 (中国标准时间)
|
|
22
3
|
* (c) 2022 @jdf2e.
|
|
23
4
|
* Released under the MIT License.
|
|
24
5
|
*/
|
|
@@ -96,11 +77,14 @@ const _sfc_main = create({
|
|
|
96
77
|
if (props.duration) {
|
|
97
78
|
show();
|
|
98
79
|
}
|
|
99
|
-
watch(
|
|
100
|
-
|
|
101
|
-
|
|
80
|
+
watch(
|
|
81
|
+
() => props.duration,
|
|
82
|
+
(val) => {
|
|
83
|
+
if (val) {
|
|
84
|
+
show();
|
|
85
|
+
}
|
|
102
86
|
}
|
|
103
|
-
|
|
87
|
+
);
|
|
104
88
|
const onAfterLeave = () => {
|
|
105
89
|
clearTimer();
|
|
106
90
|
props.unmount && props.unmount(props.id);
|
|
@@ -170,9 +154,9 @@ const updateNotify = (opts) => {
|
|
|
170
154
|
if (container) {
|
|
171
155
|
const currentOpt = optsMap.find((item) => item.id === opts.id);
|
|
172
156
|
if (currentOpt) {
|
|
173
|
-
opts =
|
|
157
|
+
opts = { ...defaultOptions, ...currentOpt, ...opts };
|
|
174
158
|
} else {
|
|
175
|
-
opts =
|
|
159
|
+
opts = { ...defaultOptions, ...opts };
|
|
176
160
|
}
|
|
177
161
|
const instance = createVNode(Notify, opts);
|
|
178
162
|
render(instance, container);
|
|
@@ -190,7 +174,7 @@ const mountNotify = (opts) => {
|
|
|
190
174
|
} else {
|
|
191
175
|
_id = new Date().getTime() + "";
|
|
192
176
|
}
|
|
193
|
-
opts =
|
|
177
|
+
opts = { ...defaultOptions, ...opts };
|
|
194
178
|
opts.id = _id;
|
|
195
179
|
idsMap.push(opts.id);
|
|
196
180
|
optsMap.push(opts);
|
|
@@ -222,23 +206,23 @@ const errorMsg = (msg) => {
|
|
|
222
206
|
const NotifyFunction = {
|
|
223
207
|
text(msg, obj = {}) {
|
|
224
208
|
errorMsg(msg);
|
|
225
|
-
return mountNotify(
|
|
209
|
+
return mountNotify({ ...obj, msg });
|
|
226
210
|
},
|
|
227
211
|
primary(msg, obj = {}) {
|
|
228
212
|
errorMsg(msg);
|
|
229
|
-
return mountNotify(
|
|
213
|
+
return mountNotify({ ...obj, msg, type: "primary" });
|
|
230
214
|
},
|
|
231
215
|
success(msg, obj = {}) {
|
|
232
216
|
errorMsg(msg);
|
|
233
|
-
return mountNotify(
|
|
217
|
+
return mountNotify({ ...obj, msg, type: "success" });
|
|
234
218
|
},
|
|
235
219
|
danger(msg, obj = {}) {
|
|
236
220
|
errorMsg(msg);
|
|
237
|
-
return mountNotify(
|
|
221
|
+
return mountNotify({ ...obj, msg, type: "danger" });
|
|
238
222
|
},
|
|
239
223
|
warn(msg, obj = {}) {
|
|
240
224
|
errorMsg(msg);
|
|
241
|
-
return mountNotify(
|
|
225
|
+
return mountNotify({ ...obj, msg, type: "warning" });
|
|
242
226
|
},
|
|
243
227
|
hide() {
|
|
244
228
|
clearNotify();
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.2.
|
|
2
|
+
* @nutui/nutui v3.2.4-beta.0 Fri Oct 14 2022 14:39:24 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, createBlock, withCtx, createElementVNode, createElementBlock, toDisplayString, createCommentVNode, Fragment, renderList, normalizeClass, createTextVNode } from "vue";
|
|
7
7
|
import { c as createComponent } from "./component.js";
|
|
8
8
|
import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
|
|
9
9
|
import "../locale/lang";
|
|
@@ -106,7 +106,11 @@ const _sfc_main = create({
|
|
|
106
106
|
keys.push({ id: 0, type: "number" }, { id: customKeys[0], type: "custom" });
|
|
107
107
|
}
|
|
108
108
|
} else if (customKeys.length === 2) {
|
|
109
|
-
keys.push(
|
|
109
|
+
keys.push(
|
|
110
|
+
{ id: customKeys[0], type: "custom" },
|
|
111
|
+
{ id: 0, type: "number" },
|
|
112
|
+
{ id: customKeys[1], type: "custom" }
|
|
113
|
+
);
|
|
110
114
|
}
|
|
111
115
|
return keys;
|
|
112
116
|
}
|
|
@@ -116,9 +120,12 @@ const _sfc_main = create({
|
|
|
116
120
|
}
|
|
117
121
|
return defaultKey();
|
|
118
122
|
});
|
|
119
|
-
watch(
|
|
120
|
-
|
|
121
|
-
|
|
123
|
+
watch(
|
|
124
|
+
() => props.visible,
|
|
125
|
+
(value) => {
|
|
126
|
+
show.value = value;
|
|
127
|
+
}
|
|
128
|
+
);
|
|
122
129
|
function onTouchstart(item, event) {
|
|
123
130
|
event.stopPropagation();
|
|
124
131
|
clickKeyIndex.value = item.id;
|
|
@@ -136,7 +143,7 @@ const _sfc_main = create({
|
|
|
136
143
|
emit("update:value", props.value.slice(0, props.value.length - 1));
|
|
137
144
|
}
|
|
138
145
|
}
|
|
139
|
-
function onTouchMove(
|
|
146
|
+
function onTouchMove(event) {
|
|
140
147
|
event.stopPropagation();
|
|
141
148
|
}
|
|
142
149
|
function onTouchEnd(event) {
|
|
@@ -146,8 +153,6 @@ const _sfc_main = create({
|
|
|
146
153
|
function closeBoard() {
|
|
147
154
|
emit("close");
|
|
148
155
|
}
|
|
149
|
-
onMounted(() => {
|
|
150
|
-
});
|
|
151
156
|
return {
|
|
152
157
|
clickKeyIndex,
|
|
153
158
|
defaultKey,
|
|
@@ -175,7 +180,7 @@ const _hoisted_2 = {
|
|
|
175
180
|
const _hoisted_3 = { class: "tit" };
|
|
176
181
|
const _hoisted_4 = { class: "number-board-body" };
|
|
177
182
|
const _hoisted_5 = { class: "number-board" };
|
|
178
|
-
const _hoisted_6 = ["onTouchstart"
|
|
183
|
+
const _hoisted_6 = ["onTouchstart"];
|
|
179
184
|
const _hoisted_7 = {
|
|
180
185
|
key: 1,
|
|
181
186
|
src: "https://img11.360buyimg.com/imagetools/jfs/t1/146371/38/8485/738/5f606425Eca239740/14f4b4f5f20d8a68.png"
|
|
@@ -197,12 +202,12 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
197
202
|
const _component_nut_popup = resolveComponent("nut-popup");
|
|
198
203
|
return openBlock(), createBlock(_component_nut_popup, {
|
|
199
204
|
visible: _ctx.show,
|
|
200
|
-
"onUpdate:visible": _cache[
|
|
205
|
+
"onUpdate:visible": _cache[7] || (_cache[7] = ($event) => _ctx.show = $event),
|
|
201
206
|
position: "bottom",
|
|
202
207
|
teleport: _ctx.teleport,
|
|
203
208
|
popClass: _ctx.popClass,
|
|
204
209
|
overlay: _ctx.overlay,
|
|
205
|
-
onClickOverlay: _cache[
|
|
210
|
+
onClickOverlay: _cache[8] || (_cache[8] = ($event) => _ctx.closeBoard()),
|
|
206
211
|
isWrapTeleport: _ctx.isWrapTeleport,
|
|
207
212
|
"overlay-class": "nut-numberkeyboard-overlay"
|
|
208
213
|
}, {
|
|
@@ -236,8 +241,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
236
241
|
{ delete: item.type == "delete" }
|
|
237
242
|
]),
|
|
238
243
|
onTouchstart: (event) => _ctx.onTouchstart(item, event),
|
|
239
|
-
onTouchmove: (event) => _ctx.onTouchMove(
|
|
240
|
-
onTouchend: _cache[
|
|
244
|
+
onTouchmove: _cache[1] || (_cache[1] = (event) => _ctx.onTouchMove(event)),
|
|
245
|
+
onTouchend: _cache[2] || (_cache[2] = (event) => _ctx.onTouchEnd(event))
|
|
241
246
|
}, [
|
|
242
247
|
item.type == "number" || item.type == "custom" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
243
248
|
createTextVNode(toDisplayString(item.id), 1)
|
|
@@ -252,14 +257,14 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
252
257
|
createElementVNode("div", _hoisted_10, [
|
|
253
258
|
createElementVNode("div", {
|
|
254
259
|
class: normalizeClass(["key", { active: _ctx.clickKeyIndex == "delete" }]),
|
|
255
|
-
onTouchstart: _cache[
|
|
256
|
-
onTouchmove: _cache[
|
|
257
|
-
onTouchend: _cache[
|
|
260
|
+
onTouchstart: _cache[3] || (_cache[3] = (event) => _ctx.onTouchstart({ id: "delete", type: "delete" }, event)),
|
|
261
|
+
onTouchmove: _cache[4] || (_cache[4] = (event) => _ctx.onTouchMove({ id: "delete", type: "delete" }, event)),
|
|
262
|
+
onTouchend: _cache[5] || (_cache[5] = (...args) => _ctx.onTouchEnd && _ctx.onTouchEnd(...args))
|
|
258
263
|
}, _hoisted_12, 34)
|
|
259
264
|
]),
|
|
260
265
|
createElementVNode("div", {
|
|
261
266
|
class: "key-board-wrapper key-board-finish",
|
|
262
|
-
onClick: _cache[
|
|
267
|
+
onClick: _cache[6] || (_cache[6] = ($event) => _ctx.closeBoard())
|
|
263
268
|
}, [
|
|
264
269
|
createElementVNode("div", {
|
|
265
270
|
class: normalizeClass(["key", "finish", { activeFinsh: _ctx.clickKeyIndex == "finish" }])
|
|
@@ -1,24 +1,5 @@
|
|
|
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.2.
|
|
2
|
+
* @nutui/nutui v3.2.4-beta.0 Fri Oct 14 2022 14:39:24 GMT+0800 (中国标准时间)
|
|
22
3
|
* (c) 2022 @jdf2e.
|
|
23
4
|
* Released under the MIT License.
|
|
24
5
|
*/
|
|
@@ -177,20 +158,29 @@ const _sfc_main$1 = create$1({
|
|
|
177
158
|
type && setChooseValue();
|
|
178
159
|
setMove(-move);
|
|
179
160
|
};
|
|
180
|
-
watch(
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
161
|
+
watch(
|
|
162
|
+
() => props.listData,
|
|
163
|
+
(val) => {
|
|
164
|
+
state.transformY = 0;
|
|
165
|
+
modifyStatus(false);
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
deep: true
|
|
169
|
+
}
|
|
170
|
+
);
|
|
171
|
+
watch(
|
|
172
|
+
() => props.defaultIndex,
|
|
173
|
+
(val) => {
|
|
174
|
+
state.transformY = 0;
|
|
175
|
+
modifyStatus(false);
|
|
176
|
+
}
|
|
177
|
+
);
|
|
190
178
|
onMounted(() => {
|
|
191
179
|
modifyStatus(true);
|
|
192
180
|
});
|
|
193
|
-
return
|
|
181
|
+
return {
|
|
182
|
+
...toRefs(state),
|
|
183
|
+
...toRefs(props),
|
|
194
184
|
wrapper,
|
|
195
185
|
setRollerStyle,
|
|
196
186
|
isHidden,
|
|
@@ -203,7 +193,7 @@ const _sfc_main$1 = create$1({
|
|
|
203
193
|
touchRollerStyle,
|
|
204
194
|
touchListStyle,
|
|
205
195
|
setMove
|
|
206
|
-
}
|
|
196
|
+
};
|
|
207
197
|
}
|
|
208
198
|
});
|
|
209
199
|
const _hoisted_1$1 = { class: "nut-oldpicker-content" };
|
|
@@ -255,7 +245,8 @@ const _sfc_main = create({
|
|
|
255
245
|
[column.name]: column,
|
|
256
246
|
[Popup.name]: Popup
|
|
257
247
|
},
|
|
258
|
-
props:
|
|
248
|
+
props: {
|
|
249
|
+
...popupProps,
|
|
259
250
|
title: {
|
|
260
251
|
type: String,
|
|
261
252
|
default: ""
|
|
@@ -282,7 +273,7 @@ const _sfc_main = create({
|
|
|
282
273
|
type: [Number, String],
|
|
283
274
|
default: 0
|
|
284
275
|
}
|
|
285
|
-
}
|
|
276
|
+
},
|
|
286
277
|
emits: ["close", "change", "confirm", "update:visible"],
|
|
287
278
|
setup(props, { emit }) {
|
|
288
279
|
const childrenKey = "children";
|
|
@@ -378,7 +369,9 @@ const _sfc_main = create({
|
|
|
378
369
|
_defaultIndex = dataIndex;
|
|
379
370
|
} else if (dataType.value === "multipleColumns") {
|
|
380
371
|
defaultIndexList[columnIndex] = dataIndex;
|
|
381
|
-
const val = defaultIndexList.map(
|
|
372
|
+
const val = defaultIndexList.map(
|
|
373
|
+
(res, i) => toRaw(state.formattedColumns)[i].values[res]
|
|
374
|
+
);
|
|
382
375
|
emit("change", val, columnIndex, dataIndex);
|
|
383
376
|
}
|
|
384
377
|
};
|
|
@@ -390,7 +383,9 @@ const _sfc_main = create({
|
|
|
390
383
|
for (let i = 0; i < defaultIndexList.length; i++) {
|
|
391
384
|
state.formattedColumns[i].defaultIndex = defaultIndexList[i];
|
|
392
385
|
}
|
|
393
|
-
const checkedArr = toRaw(state.formattedColumns).map(
|
|
386
|
+
const checkedArr = toRaw(state.formattedColumns).map(
|
|
387
|
+
(res) => res.values && res.values[res.defaultIndex]
|
|
388
|
+
);
|
|
394
389
|
emit("confirm", checkedArr);
|
|
395
390
|
} else if (dataType.value === "cascade") {
|
|
396
391
|
emit("confirm", getCascadeData(toRaw(state.formattedColumns), state.defaultIndex));
|
|
@@ -405,22 +400,28 @@ const _sfc_main = create({
|
|
|
405
400
|
if (props.visible)
|
|
406
401
|
state.show = false;
|
|
407
402
|
});
|
|
408
|
-
watch(
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
403
|
+
watch(
|
|
404
|
+
() => props.visible,
|
|
405
|
+
(val) => {
|
|
406
|
+
state.show = val;
|
|
407
|
+
}
|
|
408
|
+
);
|
|
409
|
+
watch(
|
|
410
|
+
() => props.listData,
|
|
411
|
+
(val) => {
|
|
412
|
+
state.formattedColumns = val;
|
|
413
|
+
}
|
|
414
|
+
);
|
|
415
|
+
return {
|
|
416
|
+
classes,
|
|
417
|
+
...toRefs(state),
|
|
417
418
|
column,
|
|
418
419
|
dataType,
|
|
419
420
|
columnList,
|
|
420
421
|
close,
|
|
421
422
|
changeHandler,
|
|
422
423
|
confirm
|
|
423
|
-
}
|
|
424
|
+
};
|
|
424
425
|
}
|
|
425
426
|
});
|
|
426
427
|
const _hoisted_1 = { class: "nut-oldpicker__bar" };
|
|
@@ -1,21 +1,5 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
3
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
4
|
-
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
6
|
-
var __spreadValues = (a, b) => {
|
|
7
|
-
for (var prop in b || (b = {}))
|
|
8
|
-
if (__hasOwnProp.call(b, prop))
|
|
9
|
-
__defNormalProp(a, prop, b[prop]);
|
|
10
|
-
if (__getOwnPropSymbols)
|
|
11
|
-
for (var prop of __getOwnPropSymbols(b)) {
|
|
12
|
-
if (__propIsEnum.call(b, prop))
|
|
13
|
-
__defNormalProp(a, prop, b[prop]);
|
|
14
|
-
}
|
|
15
|
-
return a;
|
|
16
|
-
};
|
|
17
1
|
/*!
|
|
18
|
-
* @nutui/nutui v3.2.
|
|
2
|
+
* @nutui/nutui v3.2.4-beta.0 Fri Oct 14 2022 14:39:24 GMT+0800 (中国标准时间)
|
|
19
3
|
* (c) 2022 @jdf2e.
|
|
20
4
|
* Released under the MIT License.
|
|
21
5
|
*/
|
|
@@ -64,9 +48,12 @@ const _sfc_main = create({
|
|
|
64
48
|
[props.overlayClass]: true
|
|
65
49
|
};
|
|
66
50
|
});
|
|
67
|
-
watch(
|
|
68
|
-
|
|
69
|
-
|
|
51
|
+
watch(
|
|
52
|
+
() => props.visible,
|
|
53
|
+
(value) => {
|
|
54
|
+
value ? lock() : unlock();
|
|
55
|
+
}
|
|
56
|
+
);
|
|
70
57
|
const lock = () => {
|
|
71
58
|
if (props.lockScroll && props.visible) {
|
|
72
59
|
document.body.classList.add("nut-overflow-hidden");
|
|
@@ -80,10 +67,11 @@ const _sfc_main = create({
|
|
|
80
67
|
onMounted(lock);
|
|
81
68
|
onActivated(lock);
|
|
82
69
|
const style = computed(() => {
|
|
83
|
-
return
|
|
70
|
+
return {
|
|
84
71
|
animationDuration: `${props.duration}s`,
|
|
85
|
-
zIndex: props.zIndex
|
|
86
|
-
|
|
72
|
+
zIndex: props.zIndex,
|
|
73
|
+
...props.overlayStyle
|
|
74
|
+
};
|
|
87
75
|
});
|
|
88
76
|
const touchmove = (e) => {
|
|
89
77
|
if (props.lockScroll)
|