@nutui/nutui 3.1.22-beta.0 → 3.1.22-beta.3
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/dist/nutui.es.js +4019 -19251
- package/dist/nutui.umd.js +4012 -19344
- package/dist/packages/_es/ActionSheet.js +26 -157
- package/dist/packages/_es/Address.js +119 -542
- package/dist/packages/_es/AddressList.js +113 -613
- package/dist/packages/_es/Audio.js +62 -264
- package/dist/packages/_es/AudioOperate.js +18 -107
- package/dist/packages/_es/Avatar.js +42 -165
- package/dist/packages/_es/AvatarGroup.js +14 -73
- package/dist/packages/_es/BackTop.js +43 -156
- package/dist/packages/_es/Badge.js +14 -86
- package/dist/packages/_es/Barrage.js +41 -120
- package/dist/packages/_es/Button.js +23 -128
- package/dist/packages/_es/Calendar.js +24 -237
- package/dist/packages/_es/CalendarItem.js +1 -1
- package/dist/packages/_es/Card.js +10 -107
- package/dist/packages/_es/Cascader.js +156 -500
- package/dist/packages/_es/Category.js +15 -58
- package/dist/packages/_es/CategoryPane.js +11 -111
- package/dist/packages/_es/Cell.js +21 -100
- package/dist/packages/_es/CellGroup.js +9 -44
- package/dist/packages/_es/Checkbox.js +31 -113
- package/dist/packages/_es/CheckboxGroup.js +29 -58
- package/dist/packages/_es/CircleProgress.js +28 -151
- package/dist/packages/_es/Col.js +14 -56
- package/dist/packages/_es/Collapse.js +24 -85
- package/dist/packages/_es/CollapseItem.js +70 -261
- package/dist/packages/_es/Comment.js +64 -434
- package/dist/packages/_es/CountDown.js +61 -242
- package/dist/packages/_es/CountUp.js +149 -546
- package/dist/packages/_es/DatePicker.js +107 -322
- package/dist/packages/_es/Dialog.js +69 -261
- package/dist/packages/_es/Divider.js +18 -68
- package/dist/packages/_es/Drag.js +56 -197
- package/dist/packages/_es/Ecard.js +24 -159
- package/dist/packages/_es/Elevator.js +63 -198
- package/dist/packages/_es/Empty.js +12 -71
- package/dist/packages/_es/FixedNav.js +15 -122
- package/dist/packages/_es/Form.js +64 -151
- package/dist/packages/_es/FormItem.js +15 -110
- package/dist/packages/_es/Grid.js +5 -6
- package/dist/packages/_es/GridItem.js +33 -144
- package/dist/packages/_es/Icon.js +15 -40
- package/dist/packages/_es/ImagePreview.js +74 -298
- package/dist/packages/_es/Indicator.js +15 -62
- package/dist/packages/_es/InfiniteLoading.js +66 -258
- package/dist/packages/_es/Input.js +51 -413
- package/dist/packages/_es/InputNumber.js +41 -160
- package/dist/packages/_es/Layout.js +4 -5
- package/dist/packages/_es/List.js +23 -110
- package/dist/packages/_es/Menu.js +30 -118
- package/dist/packages/_es/MenuItem.js +34 -162
- package/dist/packages/_es/Navbar.js +30 -192
- package/dist/packages/_es/NoticeBar.js +83 -387
- package/dist/packages/_es/Notify.js +81 -236
- package/dist/packages/_es/NumberKeyboard.js +41 -272
- package/dist/packages/_es/OldPicker.js +140 -464
- package/dist/packages/_es/OverLay.js +32 -105
- package/dist/packages/_es/Pagination.js +39 -157
- package/dist/packages/_es/Picker.js +138 -459
- package/dist/packages/_es/Popover.js +327 -965
- package/dist/packages/_es/Popup.js +64 -303
- package/dist/packages/_es/Price.js +16 -118
- package/dist/packages/_es/Progress.js +14 -146
- package/dist/packages/_es/PullRefresh.js +92 -346
- package/dist/packages/_es/Radio.js +22 -90
- package/dist/packages/_es/RadioGroup.js +8 -37
- package/dist/packages/_es/Range.js +92 -417
- package/dist/packages/_es/Rate.js +16 -139
- package/dist/packages/_es/Row.js +22 -64
- package/dist/packages/_es/SearchBar.js +46 -247
- package/dist/packages/_es/ShortPassword.js +35 -225
- package/dist/packages/_es/SideNavBar.js +33 -89
- package/dist/packages/_es/SideNavBarItem.js +11 -46
- package/dist/packages/_es/Signature.js +46 -165
- package/dist/packages/_es/Skeleton.js +20 -136
- package/dist/packages/_es/Sku.js +93 -499
- package/dist/packages/_es/Step.js +25 -119
- package/dist/packages/_es/Steps.js +18 -53
- package/dist/packages/_es/Sticky.js +53 -138
- package/dist/packages/_es/SubSideNavBar.js +26 -90
- package/dist/packages/_es/Swipe.js +46 -183
- package/dist/packages/_es/Swiper.js +121 -433
- package/dist/packages/_es/SwiperItem.js +22 -53
- package/dist/packages/_es/Switch.js +21 -116
- package/dist/packages/_es/TabPane.js +12 -39
- package/dist/packages/_es/Tabbar.js +17 -72
- package/dist/packages/_es/TabbarItem.js +29 -151
- package/dist/packages/_es/Table.js +27 -186
- package/dist/packages/_es/Tabs.js +51 -209
- package/dist/packages/_es/Tag.js +20 -97
- package/dist/packages/_es/TextArea.js +42 -160
- package/dist/packages/_es/TimeDetail.js +23 -84
- package/dist/packages/_es/TimePannel.js +19 -52
- package/dist/packages/_es/TimeSelect.js +15 -103
- package/dist/packages/_es/Toast.js +80 -319
- package/dist/packages/_es/Uploader.js +112 -460
- package/dist/packages/_es/Video.js +83 -340
- package/dist/packages/_es/common.js +38 -128
- package/dist/packages/_es/component.js +35 -76
- package/dist/packages/_es/index.js +5 -6
- package/dist/packages/_es/index2.js +9 -30
- package/dist/packages/_es/index3.js +6 -8
- package/dist/packages/_es/index4.js +13 -58
- package/dist/packages/_es/index5.js +120 -675
- package/dist/packages/_es/plugin-vue_export-helper.js +7 -8
- package/dist/packages/_es/pxCheck.js +3 -5
- package/dist/packages/_es/raf.js +8 -15
- package/dist/packages/button/index.scss +2 -1
- package/dist/packages/cell/index.scss +11 -0
- package/dist/packages/checkbox/index.scss +6 -0
- package/dist/packages/dialog/index.scss +1 -0
- package/dist/packages/elevator/index.scss +21 -0
- package/dist/packages/input/index.scss +13 -1
- package/dist/packages/locale/lang/baseLang.d.ts +1 -0
- package/dist/packages/locale/lang/baseLang.js +3 -3
- package/dist/packages/locale/lang/en-US.d.ts +8 -0
- package/dist/packages/locale/lang/en-US.js +5 -97
- package/dist/packages/locale/lang/id-ID.d.ts +8 -0
- package/dist/packages/locale/lang/id-ID.js +5 -97
- package/dist/packages/locale/lang/index.js +16 -38
- package/dist/packages/locale/lang/zh-CN.d.ts +8 -0
- package/dist/packages/locale/lang/zh-CN.js +5 -97
- package/dist/packages/locale/lang/zh-TW.d.ts +8 -0
- package/dist/packages/locale/lang/zh-TW.js +5 -97
- package/dist/packages/radio/index.scss +1 -0
- package/dist/packages/switch/index.scss +3 -3
- package/dist/packages/tabpane/index.scss +1 -0
- package/dist/smartips/attributes.json +62 -10
- package/dist/smartips/tags.json +17 -4
- package/dist/style.css +1 -1
- package/dist/styles/themes/default.scss +49 -49
- package/dist/styles/themes/jdb.scss +49 -49
- package/dist/styles/themes/jdt.scss +49 -49
- package/dist/styles/variables-jdb.scss +10 -1
- package/dist/styles/variables-jdt.scss +10 -1
- package/dist/styles/variables.scss +10 -1
- package/dist/types/__VUE/address/index.vue.d.ts +5 -5
- package/dist/types/__VUE/addresslist/components/ItemContents.vue.d.ts +1 -0
- package/dist/types/__VUE/audiooperate/index.vue.d.ts +1 -0
- package/dist/types/__VUE/avatar/index.vue.d.ts +4 -4
- package/dist/types/__VUE/backtop/index.vue.d.ts +2 -2
- package/dist/types/__VUE/badge/index.vue.d.ts +2 -2
- package/dist/types/__VUE/button/index.vue.d.ts +2 -2
- package/dist/types/__VUE/cascader/index.vue.d.ts +1 -1
- package/dist/types/__VUE/cell/index.vue.d.ts +11 -4
- package/dist/types/__VUE/checkbox/common.d.ts +59 -0
- package/dist/types/__VUE/checkbox/index.vue.d.ts +18 -5
- package/dist/types/__VUE/checkboxgroup/index.vue.d.ts +7 -0
- package/dist/types/__VUE/collapseitem/index.vue.d.ts +2 -2
- package/dist/types/__VUE/dialog/index.d.ts +9 -2
- package/dist/types/__VUE/dialog/index.vue.d.ts +23 -8
- package/dist/types/__VUE/ecard/index.vue.d.ts +3 -3
- package/dist/types/__VUE/elevator/index.vue.d.ts +29 -0
- package/dist/types/__VUE/empty/index.vue.d.ts +2 -2
- package/dist/types/__VUE/formitem/index.vue.d.ts +3 -10
- package/dist/types/__VUE/grid/index.vue.d.ts +4 -4
- package/dist/types/__VUE/griditem/index.vue.d.ts +1 -1
- package/dist/types/__VUE/input/index.vue.d.ts +2 -2
- package/dist/types/__VUE/noticebar/index.vue.d.ts +1 -1
- package/dist/types/__VUE/oldpicker/index.vue.d.ts +2 -2
- package/dist/types/__VUE/picker/index.vue.d.ts +2 -2
- package/dist/types/__VUE/popover/index.vue.d.ts +2 -2
- package/dist/types/__VUE/range/index.vue.d.ts +1 -1
- package/dist/types/__VUE/rate/index.vue.d.ts +2 -2
- package/dist/types/__VUE/row/index.vue.d.ts +2 -2
- package/dist/types/__VUE/shortpassword/index.vue.d.ts +2 -2
- package/dist/types/__VUE/step/index.vue.d.ts +2 -2
- package/dist/types/__VUE/switch/index.vue.d.ts +2 -2
- package/dist/types/__VUE/tabbaritem/index.vue.d.ts +2 -2
- package/dist/types/__VUE/timeselect/index.vue.d.ts +9 -2
- package/dist/types/__VUE/toast/index.vue.d.ts +3 -3
- package/dist/types/__VUE/uploader/index.vue.d.ts +2 -2
- package/dist/types/__VUE/video/index.vue.d.ts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/package.json +2 -1
|
@@ -5,481 +5,157 @@ var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
|
5
5
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
6
|
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
7
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 = (
|
|
9
|
-
for (var prop in
|
|
10
|
-
if (__hasOwnProp.call(
|
|
11
|
-
__defNormalProp(
|
|
8
|
+
var __spreadValues = (a2, b2) => {
|
|
9
|
+
for (var prop in b2 || (b2 = {}))
|
|
10
|
+
if (__hasOwnProp.call(b2, prop))
|
|
11
|
+
__defNormalProp(a2, prop, b2[prop]);
|
|
12
12
|
if (__getOwnPropSymbols)
|
|
13
|
-
for (var prop of __getOwnPropSymbols(
|
|
14
|
-
if (__propIsEnum.call(
|
|
15
|
-
__defNormalProp(
|
|
13
|
+
for (var prop of __getOwnPropSymbols(b2)) {
|
|
14
|
+
if (__propIsEnum.call(b2, prop))
|
|
15
|
+
__defNormalProp(a2, prop, b2[prop]);
|
|
16
16
|
}
|
|
17
|
-
return
|
|
17
|
+
return a2;
|
|
18
18
|
};
|
|
19
|
-
var __spreadProps = (
|
|
19
|
+
var __spreadProps = (a2, b2) => __defProps(a2, __getOwnPropDescs(b2));
|
|
20
20
|
/*!
|
|
21
|
-
* @nutui/nutui v3.1.22-beta.
|
|
21
|
+
* @nutui/nutui v3.1.22-beta.3 Wed Jun 15 2022 20:12:30 GMT+0800 (中国标准时间)
|
|
22
22
|
* (c) 2022 @jdf2e.
|
|
23
23
|
* Released under the MIT License.
|
|
24
24
|
*/
|
|
25
|
-
import { ref, reactive, computed, watch, onMounted, toRefs, openBlock, createElementBlock, createElementVNode, normalizeStyle, Fragment, renderList, normalizeClass, toDisplayString, createCommentVNode, onBeforeUnmount, toRaw, resolveComponent, createVNode, withCtx } from "vue";
|
|
26
|
-
import { c as
|
|
27
|
-
import { _ as
|
|
28
|
-
import
|
|
25
|
+
import { ref as e, reactive as t, computed as l, watch as a, onMounted as o, toRefs as n, openBlock as r, createElementBlock as s, createElementVNode as i, normalizeStyle as u, Fragment as c, renderList as d, normalizeClass as m, toDisplayString as p, createCommentVNode as f, onBeforeUnmount as h, toRaw as v, resolveComponent as x, createVNode as g, withCtx as y } from "vue";
|
|
26
|
+
import { c as k } from "./component.js";
|
|
27
|
+
import { _ as I } from "./plugin-vue_export-helper.js";
|
|
28
|
+
import T, { popupProps as S } from "./Popup.js";
|
|
29
29
|
import "../locale/lang";
|
|
30
30
|
import "./OverLay.js";
|
|
31
31
|
import "./Icon.js";
|
|
32
32
|
import "./pxCheck.js";
|
|
33
|
-
const { create:
|
|
34
|
-
const
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
default: false
|
|
50
|
-
},
|
|
51
|
-
defaultIndex: {
|
|
52
|
-
type: [Number, String],
|
|
53
|
-
default: 0
|
|
33
|
+
const { create: b } = k("oldpicker-column"), w = b({ props: { dataType: String, itemShow: { type: Boolean, default: false }, listData: { type: Object, default: () => ({}) }, readonly: { type: Boolean, default: false }, defaultIndex: { type: [Number, String], default: 0 } }, emits: ["click", "change"], setup(r2, { emit: s2 }) {
|
|
34
|
+
const i2 = e(), u2 = t({ touchParams: { startY: 0, endY: 0, startTime: 0, endTime: 0, lastY: 0 }, currIndex: 1, transformY: 0, scrollDistance: 0, lineSpacing: 36, rotation: 20, timer: null }), c2 = e(null), d2 = e(null), m2 = e(null), p2 = e(0), f2 = e(0), h2 = e(0), v2 = l(() => ({ transition: `transform ${f2.value}ms cubic-bezier(0.19, 1, 0.22, 1)`, transform: `translate3d(0, ${u2.scrollDistance}px, 0)` })), x2 = l(() => ({ transition: `transform ${f2.value}ms cubic-bezier(0.19, 1, 0.22, 1)`, transform: `rotate3d(1, 0, 0, ${p2.value})` })), g2 = (e2 = 0, t2, l2 = 1e3, a2) => {
|
|
35
|
+
f2.value = t2 === "end" ? l2 : 0, p2.value = a2, h2.value = e2, u2.scrollDistance = e2;
|
|
36
|
+
}, y2 = (e2, t2, l2) => {
|
|
37
|
+
let a2 = e2 + u2.transformY;
|
|
38
|
+
if (t2 === "end") {
|
|
39
|
+
a2 > 0 && (a2 = 0), a2 < -(r2.listData.values.length - 1) * u2.lineSpacing && (a2 = -(r2.listData.values.length - 1) * u2.lineSpacing);
|
|
40
|
+
let e3 = Math.round(a2 / u2.lineSpacing) * u2.lineSpacing, o2 = (Math.abs(Math.round(e3 / u2.lineSpacing)) + 1) * u2.rotation + "deg";
|
|
41
|
+
g2(e3, t2, l2, o2);
|
|
42
|
+
let n2 = l2 ? l2 / 2 : 0;
|
|
43
|
+
u2.timer = setTimeout(() => {
|
|
44
|
+
k2();
|
|
45
|
+
}, n2), u2.currIndex = Math.abs(Math.round(e3 / u2.lineSpacing)) + 1;
|
|
46
|
+
} else {
|
|
47
|
+
let e3 = "0deg";
|
|
48
|
+
e3 = a2 < 0 ? (Math.abs(a2 / u2.lineSpacing) + 1) * u2.rotation + "deg" : (-a2 / u2.lineSpacing + 1) * u2.rotation + "deg", g2(a2, null, void 0, e3), u2.currIndex = Math.abs(Math.round(a2 / u2.lineSpacing)) + 1;
|
|
54
49
|
}
|
|
55
|
-
},
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
event.preventDefault();
|
|
101
|
-
let changedTouches = event.changedTouches[0];
|
|
102
|
-
state.touchParams.lastY = changedTouches.pageY;
|
|
103
|
-
state.touchParams.lastTime = event.timeStamp || Date.now();
|
|
104
|
-
let move = state.touchParams.lastY - state.touchParams.startY;
|
|
105
|
-
setMove(move);
|
|
106
|
-
};
|
|
107
|
-
const onTouchEnd = (event) => {
|
|
108
|
-
event.preventDefault();
|
|
109
|
-
let changedTouches = event.changedTouches[0];
|
|
110
|
-
state.touchParams.lastY = changedTouches.pageY;
|
|
111
|
-
state.touchParams.lastTime = event.timestamp || Date.now();
|
|
112
|
-
let move = state.touchParams.lastY - state.touchParams.startY;
|
|
113
|
-
let moveTime = state.touchParams.lastTime - state.touchParams.startTime;
|
|
114
|
-
if (moveTime <= 300) {
|
|
115
|
-
move = move * 2;
|
|
116
|
-
moveTime = moveTime + 1e3;
|
|
117
|
-
setMove(move, "end", moveTime);
|
|
118
|
-
} else {
|
|
119
|
-
setMove(move, "end");
|
|
120
|
-
}
|
|
121
|
-
};
|
|
122
|
-
const setRollerStyle = (index2) => {
|
|
123
|
-
return `transform: rotate3d(1, 0, 0, ${-state.rotation * index2}deg) translate3d(0px, 0px, 104px)`;
|
|
124
|
-
};
|
|
125
|
-
const isHidden = (index2) => {
|
|
126
|
-
if (index2 >= state.currIndex + 8 || index2 <= state.currIndex - 8) {
|
|
127
|
-
return true;
|
|
128
|
-
} else {
|
|
129
|
-
return false;
|
|
130
|
-
}
|
|
131
|
-
};
|
|
132
|
-
const setTransform = (translateY = 0, type, time = 1e3, deg) => {
|
|
133
|
-
if (type === "end") {
|
|
134
|
-
touchTime.value = time;
|
|
135
|
-
} else {
|
|
136
|
-
touchTime.value = 0;
|
|
137
|
-
}
|
|
138
|
-
touchDeg.value = deg;
|
|
139
|
-
touchTranslateY.value = translateY;
|
|
140
|
-
state.scrollDistance = translateY;
|
|
141
|
-
};
|
|
142
|
-
const setMove = (move, type, time) => {
|
|
143
|
-
let updateMove = move + state.transformY;
|
|
144
|
-
if (type === "end") {
|
|
145
|
-
if (updateMove > 0) {
|
|
146
|
-
updateMove = 0;
|
|
147
|
-
}
|
|
148
|
-
if (updateMove < -(props.listData.values.length - 1) * state.lineSpacing) {
|
|
149
|
-
updateMove = -(props.listData.values.length - 1) * state.lineSpacing;
|
|
150
|
-
}
|
|
151
|
-
let endMove = Math.round(updateMove / state.lineSpacing) * state.lineSpacing;
|
|
152
|
-
let deg = `${(Math.abs(Math.round(endMove / state.lineSpacing)) + 1) * state.rotation}deg`;
|
|
153
|
-
setTransform(endMove, type, time, deg);
|
|
154
|
-
let t = time ? time / 2 : 0;
|
|
155
|
-
state.timer = setTimeout(() => {
|
|
156
|
-
setChooseValue();
|
|
157
|
-
}, t);
|
|
158
|
-
state.currIndex = Math.abs(Math.round(endMove / state.lineSpacing)) + 1;
|
|
159
|
-
} else {
|
|
160
|
-
let deg = "0deg";
|
|
161
|
-
if (updateMove < 0) {
|
|
162
|
-
deg = `${(Math.abs(updateMove / state.lineSpacing) + 1) * state.rotation}deg`;
|
|
163
|
-
} else {
|
|
164
|
-
deg = `${(-updateMove / state.lineSpacing + 1) * state.rotation}deg`;
|
|
165
|
-
}
|
|
166
|
-
setTransform(updateMove, null, void 0, deg);
|
|
167
|
-
state.currIndex = Math.abs(Math.round(updateMove / state.lineSpacing)) + 1;
|
|
168
|
-
}
|
|
169
|
-
};
|
|
170
|
-
const setChooseValue = () => {
|
|
171
|
-
emit("change", state.currIndex - 1);
|
|
172
|
-
};
|
|
173
|
-
const modifyStatus = (type) => {
|
|
174
|
-
let index2 = props.defaultIndex;
|
|
175
|
-
state.currIndex = index2 === -1 ? 1 : index2 + 1;
|
|
176
|
-
let move = index2 === -1 ? 0 : index2 * state.lineSpacing;
|
|
177
|
-
type && setChooseValue();
|
|
178
|
-
setMove(-move);
|
|
179
|
-
};
|
|
180
|
-
watch(() => props.listData, (val) => {
|
|
181
|
-
state.transformY = 0;
|
|
182
|
-
modifyStatus(false);
|
|
183
|
-
}, {
|
|
184
|
-
deep: true
|
|
185
|
-
});
|
|
186
|
-
watch(() => props.defaultIndex, (val) => {
|
|
187
|
-
state.transformY = 0;
|
|
188
|
-
modifyStatus(false);
|
|
189
|
-
});
|
|
190
|
-
onMounted(() => {
|
|
191
|
-
modifyStatus(true);
|
|
192
|
-
});
|
|
193
|
-
return __spreadProps(__spreadValues(__spreadValues({}, toRefs(state)), toRefs(props)), {
|
|
194
|
-
wrapper,
|
|
195
|
-
setRollerStyle,
|
|
196
|
-
isHidden,
|
|
197
|
-
roller,
|
|
198
|
-
list,
|
|
199
|
-
listItem,
|
|
200
|
-
onTouchStart,
|
|
201
|
-
onTouchMove,
|
|
202
|
-
onTouchEnd,
|
|
203
|
-
touchRollerStyle,
|
|
204
|
-
touchListStyle,
|
|
205
|
-
setMove
|
|
206
|
-
});
|
|
207
|
-
}
|
|
208
|
-
});
|
|
209
|
-
const _hoisted_1$1 = { class: "nut-oldpicker-content" };
|
|
210
|
-
const _hoisted_2$1 = {
|
|
211
|
-
key: 0,
|
|
212
|
-
class: "nut-oldpicker-placeholder"
|
|
213
|
-
};
|
|
214
|
-
function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
215
|
-
return openBlock(), createElementBlock("view", {
|
|
216
|
-
class: "nut-oldpicker__list",
|
|
217
|
-
onTouchstart: _cache[0] || (_cache[0] = (...args) => _ctx.onTouchStart && _ctx.onTouchStart(...args)),
|
|
218
|
-
onTouchmove: _cache[1] || (_cache[1] = (...args) => _ctx.onTouchMove && _ctx.onTouchMove(...args)),
|
|
219
|
-
onTouchend: _cache[2] || (_cache[2] = (...args) => _ctx.onTouchEnd && _ctx.onTouchEnd(...args))
|
|
220
|
-
}, [
|
|
221
|
-
createElementVNode("view", {
|
|
222
|
-
class: "nut-oldpicker-roller",
|
|
223
|
-
ref: "roller",
|
|
224
|
-
style: normalizeStyle(_ctx.touchRollerStyle)
|
|
225
|
-
}, [
|
|
226
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.listData.values, (item, index2) => {
|
|
227
|
-
return openBlock(), createElementBlock("view", {
|
|
228
|
-
class: normalizeClass(["nut-oldpicker-roller-item", { "nut-oldpicker-roller-item-hidden": _ctx.isHidden(index2 + 1) }]),
|
|
229
|
-
style: normalizeStyle(_ctx.setRollerStyle(index2 + 1)),
|
|
230
|
-
key: item.label ? item.label : index2
|
|
231
|
-
}, toDisplayString(_ctx.dataType === "cascade" ? item.text : item), 7);
|
|
232
|
-
}), 128))
|
|
233
|
-
], 4),
|
|
234
|
-
createElementVNode("view", _hoisted_1$1, [
|
|
235
|
-
createElementVNode("view", {
|
|
236
|
-
class: "nut-oldpicker-list-panel",
|
|
237
|
-
ref: "list",
|
|
238
|
-
style: normalizeStyle(_ctx.touchListStyle)
|
|
239
|
-
}, [
|
|
240
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.listData.values, (item, index2) => {
|
|
241
|
-
return openBlock(), createElementBlock("view", {
|
|
242
|
-
class: "nut-oldpicker-item nut-oldpicker-item-ref",
|
|
243
|
-
key: item.label ? item.label : index2
|
|
244
|
-
}, toDisplayString(_ctx.dataType === "cascade" ? item.text : item), 1);
|
|
245
|
-
}), 128)),
|
|
246
|
-
_ctx.listData && _ctx.listData.length === 1 ? (openBlock(), createElementBlock("view", _hoisted_2$1)) : createCommentVNode("", true)
|
|
247
|
-
], 4)
|
|
248
|
-
])
|
|
249
|
-
], 32);
|
|
250
|
-
}
|
|
251
|
-
var column = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render$1]]);
|
|
252
|
-
const { create, componentName } = createComponent("oldpicker");
|
|
253
|
-
const _sfc_main = create({
|
|
254
|
-
components: {
|
|
255
|
-
[column.name]: column,
|
|
256
|
-
[Popup.name]: Popup
|
|
257
|
-
},
|
|
258
|
-
props: __spreadProps(__spreadValues({}, popupProps), {
|
|
259
|
-
title: {
|
|
260
|
-
type: String,
|
|
261
|
-
default: ""
|
|
262
|
-
},
|
|
263
|
-
cancelText: {
|
|
264
|
-
type: String,
|
|
265
|
-
default: "\u53D6\u6D88"
|
|
266
|
-
},
|
|
267
|
-
okText: {
|
|
268
|
-
type: String,
|
|
269
|
-
default: "\u786E\u5B9A"
|
|
270
|
-
},
|
|
271
|
-
listData: {
|
|
272
|
-
type: Array,
|
|
273
|
-
default: () => {
|
|
274
|
-
return [];
|
|
275
|
-
}
|
|
276
|
-
},
|
|
277
|
-
readonly: {
|
|
278
|
-
type: Boolean,
|
|
279
|
-
default: false
|
|
280
|
-
},
|
|
281
|
-
defaultIndex: {
|
|
282
|
-
type: [Number, String],
|
|
283
|
-
default: 0
|
|
50
|
+
}, k2 = () => {
|
|
51
|
+
s2("change", u2.currIndex - 1);
|
|
52
|
+
}, I2 = (e2) => {
|
|
53
|
+
let t2 = r2.defaultIndex;
|
|
54
|
+
u2.currIndex = t2 === -1 ? 1 : t2 + 1;
|
|
55
|
+
let l2 = t2 === -1 ? 0 : t2 * u2.lineSpacing;
|
|
56
|
+
e2 && k2(), y2(-l2);
|
|
57
|
+
};
|
|
58
|
+
return a(() => r2.listData, (e2) => {
|
|
59
|
+
u2.transformY = 0, I2(false);
|
|
60
|
+
}, { deep: true }), a(() => r2.defaultIndex, (e2) => {
|
|
61
|
+
u2.transformY = 0, I2(false);
|
|
62
|
+
}), o(() => {
|
|
63
|
+
I2(true);
|
|
64
|
+
}), __spreadProps(__spreadValues(__spreadValues({}, n(u2)), n(r2)), { wrapper: i2, setRollerStyle: (e2) => `transform: rotate3d(1, 0, 0, ${-u2.rotation * e2}deg) translate3d(0px, 0px, 104px)`, isHidden: (e2) => e2 >= u2.currIndex + 8 || e2 <= u2.currIndex - 8, roller: c2, list: d2, listItem: m2, onTouchStart: (e2) => {
|
|
65
|
+
e2.preventDefault();
|
|
66
|
+
let t2 = e2.changedTouches[0];
|
|
67
|
+
u2.touchParams.startY = t2.pageY, u2.touchParams.startTime = e2.timeStamp || Date.now(), u2.transformY = u2.scrollDistance;
|
|
68
|
+
}, onTouchMove: (e2) => {
|
|
69
|
+
e2.preventDefault();
|
|
70
|
+
let t2 = e2.changedTouches[0];
|
|
71
|
+
u2.touchParams.lastY = t2.pageY, u2.touchParams.lastTime = e2.timeStamp || Date.now();
|
|
72
|
+
let l2 = u2.touchParams.lastY - u2.touchParams.startY;
|
|
73
|
+
y2(l2);
|
|
74
|
+
}, onTouchEnd: (e2) => {
|
|
75
|
+
e2.preventDefault();
|
|
76
|
+
let t2 = e2.changedTouches[0];
|
|
77
|
+
u2.touchParams.lastY = t2.pageY, u2.touchParams.lastTime = e2.timestamp || Date.now();
|
|
78
|
+
let l2 = u2.touchParams.lastY - u2.touchParams.startY, a2 = u2.touchParams.lastTime - u2.touchParams.startTime;
|
|
79
|
+
a2 <= 300 ? (l2 *= 2, a2 += 1e3, y2(l2, "end", a2)) : y2(l2, "end");
|
|
80
|
+
}, touchRollerStyle: x2, touchListStyle: v2, setMove: y2 });
|
|
81
|
+
} }), _ = { class: "nut-oldpicker-content" }, C = { key: 0, class: "nut-oldpicker-placeholder" };
|
|
82
|
+
var D = I(w, [["render", function(e2, t2, l2, a2, o2, n2) {
|
|
83
|
+
return r(), s("view", { class: "nut-oldpicker__list", onTouchstart: t2[0] || (t2[0] = (...t3) => e2.onTouchStart && e2.onTouchStart(...t3)), onTouchmove: t2[1] || (t2[1] = (...t3) => e2.onTouchMove && e2.onTouchMove(...t3)), onTouchend: t2[2] || (t2[2] = (...t3) => e2.onTouchEnd && e2.onTouchEnd(...t3)) }, [i("view", { class: "nut-oldpicker-roller", ref: "roller", style: u(e2.touchRollerStyle) }, [(r(true), s(c, null, d(e2.listData.values, (t3, l3) => (r(), s("view", { class: m(["nut-oldpicker-roller-item", { "nut-oldpicker-roller-item-hidden": e2.isHidden(l3 + 1) }]), style: u(e2.setRollerStyle(l3 + 1)), key: t3.label ? t3.label : l3 }, p(e2.dataType === "cascade" ? t3.text : t3), 7))), 128))], 4), i("view", _, [i("view", { class: "nut-oldpicker-list-panel", ref: "list", style: u(e2.touchListStyle) }, [(r(true), s(c, null, d(e2.listData.values, (t3, l3) => (r(), s("view", { class: "nut-oldpicker-item nut-oldpicker-item-ref", key: t3.label ? t3.label : l3 }, p(e2.dataType === "cascade" ? t3.text : t3), 1))), 128)), e2.listData && e2.listData.length === 1 ? (r(), s("view", C)) : f("", true)], 4)])], 32);
|
|
84
|
+
}]]);
|
|
85
|
+
const { create: Y, componentName: P } = k("oldpicker"), M = Y({ components: { [D.name]: D, [T.name]: T }, props: __spreadProps(__spreadValues({}, S), { title: { type: String, default: "" }, cancelText: { type: String, default: "\u53D6\u6D88" }, okText: { type: String, default: "\u786E\u5B9A" }, listData: { type: Array, default: () => [] }, readonly: { type: Boolean, default: false }, defaultIndex: { type: [Number, String], default: 0 } }), emits: ["close", "change", "confirm", "update:visible"], setup(e2, { emit: r2 }) {
|
|
86
|
+
const s2 = t({ show: false, formattedColumns: e2.listData, defaultIndex: e2.defaultIndex });
|
|
87
|
+
let i2 = e2.defaultIndex, u2 = [];
|
|
88
|
+
const c2 = l(() => ({ [P]: true })), d2 = l(() => {
|
|
89
|
+
const t2 = s2.formattedColumns[0];
|
|
90
|
+
if (typeof t2 == "object") {
|
|
91
|
+
if (t2.children)
|
|
92
|
+
return "cascade";
|
|
93
|
+
if (t2 == null ? void 0 : t2.values)
|
|
94
|
+
return p2(e2.listData), "multipleColumns";
|
|
284
95
|
}
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
})
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
defaultIndex: children.defaultIndex || 0
|
|
339
|
-
});
|
|
340
|
-
children = children == null ? void 0 : children[children.defaultIndex || 0].children;
|
|
341
|
-
}
|
|
342
|
-
addDefaultIndexList(formatted);
|
|
343
|
-
return formatted;
|
|
344
|
-
};
|
|
345
|
-
const getCascadeData = (listData, defaultIndex) => {
|
|
346
|
-
var _a;
|
|
347
|
-
let arr = listData;
|
|
348
|
-
arr.defaultIndex = defaultIndex;
|
|
349
|
-
const dataList = [];
|
|
350
|
-
while (arr) {
|
|
351
|
-
const item = arr[(_a = arr.defaultIndex) != null ? _a : 0];
|
|
352
|
-
dataList.push(item.text);
|
|
353
|
-
arr = item.children;
|
|
354
|
-
}
|
|
355
|
-
return dataList;
|
|
356
|
-
};
|
|
357
|
-
const close = () => {
|
|
358
|
-
emit("close");
|
|
359
|
-
emit("update:visible", false);
|
|
360
|
-
};
|
|
361
|
-
const changeHandler = (columnIndex, dataIndex) => {
|
|
362
|
-
if (dataType.value === "cascade") {
|
|
363
|
-
let cursor = state.formattedColumns;
|
|
364
|
-
if (columnIndex === 0) {
|
|
365
|
-
state.defaultIndex = dataIndex;
|
|
366
|
-
}
|
|
367
|
-
let i = 0;
|
|
368
|
-
while (cursor) {
|
|
369
|
-
if (i === columnIndex) {
|
|
370
|
-
cursor.defaultIndex = dataIndex;
|
|
371
|
-
} else if (i > columnIndex) {
|
|
372
|
-
cursor.defaultIndex = 0;
|
|
373
|
-
}
|
|
374
|
-
cursor = cursor[cursor.defaultIndex || 0].children;
|
|
375
|
-
i++;
|
|
376
|
-
}
|
|
377
|
-
} else if (dataType.value === "text") {
|
|
378
|
-
_defaultIndex = dataIndex;
|
|
379
|
-
} else if (dataType.value === "multipleColumns") {
|
|
380
|
-
defaultIndexList[columnIndex] = dataIndex;
|
|
381
|
-
const val = defaultIndexList.map((res, i) => toRaw(state.formattedColumns)[i].values[res]);
|
|
382
|
-
emit("change", val, columnIndex, dataIndex);
|
|
383
|
-
}
|
|
384
|
-
};
|
|
385
|
-
const confirm = () => {
|
|
386
|
-
if (dataType.value === "text") {
|
|
387
|
-
state.defaultIndex = _defaultIndex;
|
|
388
|
-
emit("confirm", state.formattedColumns[_defaultIndex]);
|
|
389
|
-
} else if (dataType.value === "multipleColumns") {
|
|
390
|
-
for (let i = 0; i < defaultIndexList.length; i++) {
|
|
391
|
-
state.formattedColumns[i].defaultIndex = defaultIndexList[i];
|
|
96
|
+
return "text";
|
|
97
|
+
}), m2 = l(() => d2.value === "text" ? [{ values: s2.formattedColumns, defaultIndex: s2.defaultIndex }] : d2.value === "multipleColumns" ? s2.formattedColumns : d2.value === "cascade" ? f2(s2.formattedColumns, s2.defaultIndex) : s2.formattedColumns), p2 = (e3) => {
|
|
98
|
+
u2 = [], e3.forEach((e4) => {
|
|
99
|
+
u2.push(e4.defaultIndex || 0);
|
|
100
|
+
});
|
|
101
|
+
}, f2 = (e3, t2) => {
|
|
102
|
+
const l2 = [];
|
|
103
|
+
let a2 = e3;
|
|
104
|
+
for (a2.defaultIndex = t2; a2; )
|
|
105
|
+
l2.push({ values: a2, defaultIndex: a2.defaultIndex || 0 }), a2 = a2 == null ? void 0 : a2[a2.defaultIndex || 0].children;
|
|
106
|
+
return p2(l2), l2;
|
|
107
|
+
};
|
|
108
|
+
return o(() => {
|
|
109
|
+
e2.visible && (s2.show = e2.visible);
|
|
110
|
+
}), h(() => {
|
|
111
|
+
e2.visible && (s2.show = false);
|
|
112
|
+
}), a(() => e2.visible, (e3) => {
|
|
113
|
+
s2.show = e3;
|
|
114
|
+
}), a(() => e2.listData, (e3) => {
|
|
115
|
+
s2.formattedColumns = e3;
|
|
116
|
+
}), __spreadProps(__spreadValues({ classes: c2 }, n(s2)), { column: D, dataType: d2, columnList: m2, close: () => {
|
|
117
|
+
r2("close"), r2("update:visible", false);
|
|
118
|
+
}, changeHandler: (e3, t2) => {
|
|
119
|
+
if (d2.value === "cascade") {
|
|
120
|
+
let l2 = s2.formattedColumns;
|
|
121
|
+
e3 === 0 && (s2.defaultIndex = t2);
|
|
122
|
+
let a2 = 0;
|
|
123
|
+
for (; l2; )
|
|
124
|
+
a2 === e3 ? l2.defaultIndex = t2 : a2 > e3 && (l2.defaultIndex = 0), l2 = l2[l2.defaultIndex || 0].children, a2++;
|
|
125
|
+
} else if (d2.value === "text")
|
|
126
|
+
i2 = t2;
|
|
127
|
+
else if (d2.value === "multipleColumns") {
|
|
128
|
+
u2[e3] = t2;
|
|
129
|
+
const l2 = u2.map((e4, t3) => v(s2.formattedColumns)[t3].values[e4]);
|
|
130
|
+
r2("change", l2, e3, t2);
|
|
131
|
+
}
|
|
132
|
+
}, confirm: () => {
|
|
133
|
+
if (d2.value === "text")
|
|
134
|
+
s2.defaultIndex = i2, r2("confirm", s2.formattedColumns[i2]);
|
|
135
|
+
else if (d2.value === "multipleColumns") {
|
|
136
|
+
for (let e4 = 0; e4 < u2.length; e4++)
|
|
137
|
+
s2.formattedColumns[e4].defaultIndex = u2[e4];
|
|
138
|
+
const e3 = v(s2.formattedColumns).map((e4) => e4.values && e4.values[e4.defaultIndex]);
|
|
139
|
+
r2("confirm", e3);
|
|
140
|
+
} else
|
|
141
|
+
d2.value === "cascade" && r2("confirm", ((e3, t2) => {
|
|
142
|
+
var _a;
|
|
143
|
+
let l2 = e3;
|
|
144
|
+
l2.defaultIndex = t2;
|
|
145
|
+
const a2 = [];
|
|
146
|
+
for (; l2; ) {
|
|
147
|
+
const e4 = l2[(_a = l2.defaultIndex) != null ? _a : 0];
|
|
148
|
+
a2.push(e4.text), l2 = e4.children;
|
|
392
149
|
}
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
if (props.visible)
|
|
406
|
-
state.show = false;
|
|
407
|
-
});
|
|
408
|
-
watch(() => props.visible, (val) => {
|
|
409
|
-
state.show = val;
|
|
410
|
-
});
|
|
411
|
-
watch(() => props.listData, (val) => {
|
|
412
|
-
state.formattedColumns = val;
|
|
413
|
-
});
|
|
414
|
-
return __spreadProps(__spreadValues({
|
|
415
|
-
classes
|
|
416
|
-
}, toRefs(state)), {
|
|
417
|
-
column,
|
|
418
|
-
dataType,
|
|
419
|
-
columnList,
|
|
420
|
-
close,
|
|
421
|
-
changeHandler,
|
|
422
|
-
confirm
|
|
423
|
-
});
|
|
424
|
-
}
|
|
425
|
-
});
|
|
426
|
-
const _hoisted_1 = { class: "nut-oldpicker__bar" };
|
|
427
|
-
const _hoisted_2 = { class: "nut-oldpicker__title" };
|
|
428
|
-
const _hoisted_3 = { class: "nut-oldpicker__column" };
|
|
429
|
-
const _hoisted_4 = /* @__PURE__ */ createElementVNode("view", { class: "nut-oldpicker__hairline" }, null, -1);
|
|
430
|
-
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
431
|
-
const _component_nut_oldpicker_column = resolveComponent("nut-oldpicker-column");
|
|
432
|
-
const _component_nut_popup = resolveComponent("nut-popup");
|
|
433
|
-
return openBlock(), createElementBlock("view", {
|
|
434
|
-
class: normalizeClass(_ctx.classes)
|
|
435
|
-
}, [
|
|
436
|
-
createVNode(_component_nut_popup, {
|
|
437
|
-
position: "bottom",
|
|
438
|
-
visible: _ctx.show,
|
|
439
|
-
"onUpdate:visible": _cache[2] || (_cache[2] = ($event) => _ctx.show = $event),
|
|
440
|
-
teleport: _ctx.teleport,
|
|
441
|
-
"lock-scroll": _ctx.lockScroll,
|
|
442
|
-
"close-on-click-overlay": _ctx.closeOnClickOverlay,
|
|
443
|
-
onClose: _ctx.close,
|
|
444
|
-
round: true,
|
|
445
|
-
isWrapTeleport: _ctx.isWrapTeleport
|
|
446
|
-
}, {
|
|
447
|
-
default: withCtx(() => [
|
|
448
|
-
createElementVNode("view", _hoisted_1, [
|
|
449
|
-
createElementVNode("view", {
|
|
450
|
-
class: "nut-oldpicker__cancel nut-oldpicker__left nut-oldpicker__button",
|
|
451
|
-
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.close && _ctx.close(...args))
|
|
452
|
-
}, toDisplayString(_ctx.cancelText), 1),
|
|
453
|
-
createElementVNode("view", _hoisted_2, toDisplayString(_ctx.title), 1),
|
|
454
|
-
createElementVNode("view", {
|
|
455
|
-
class: "nut-oldpicker__confirm nut-oldpicker__button nut-oldpicker__right",
|
|
456
|
-
onClick: _cache[1] || (_cache[1] = ($event) => _ctx.confirm())
|
|
457
|
-
}, toDisplayString(_ctx.okText), 1)
|
|
458
|
-
]),
|
|
459
|
-
createElementVNode("view", _hoisted_3, [
|
|
460
|
-
_hoisted_4,
|
|
461
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.columnList, (item, columnIndex) => {
|
|
462
|
-
return openBlock(), createElementBlock("view", {
|
|
463
|
-
class: "nut-oldpicker__columnitem",
|
|
464
|
-
key: columnIndex
|
|
465
|
-
}, [
|
|
466
|
-
createVNode(_component_nut_oldpicker_column, {
|
|
467
|
-
itemShow: _ctx.show,
|
|
468
|
-
"list-data": item,
|
|
469
|
-
readonly: _ctx.readonly,
|
|
470
|
-
"default-index": item.defaultIndex,
|
|
471
|
-
"data-type": _ctx.dataType,
|
|
472
|
-
onChange: (dataIndex) => {
|
|
473
|
-
_ctx.changeHandler(columnIndex, dataIndex);
|
|
474
|
-
}
|
|
475
|
-
}, null, 8, ["itemShow", "list-data", "readonly", "default-index", "data-type", "onChange"])
|
|
476
|
-
]);
|
|
477
|
-
}), 128))
|
|
478
|
-
])
|
|
479
|
-
]),
|
|
480
|
-
_: 1
|
|
481
|
-
}, 8, ["visible", "teleport", "lock-scroll", "close-on-click-overlay", "onClose", "isWrapTeleport"])
|
|
482
|
-
], 2);
|
|
483
|
-
}
|
|
484
|
-
var index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
485
|
-
export { index as default };
|
|
150
|
+
return a2;
|
|
151
|
+
})(v(s2.formattedColumns), s2.defaultIndex));
|
|
152
|
+
r2("update:visible", false);
|
|
153
|
+
} });
|
|
154
|
+
} }), j = { class: "nut-oldpicker__bar" }, L = { class: "nut-oldpicker__title" }, $ = { class: "nut-oldpicker__column" }, E = i("view", { class: "nut-oldpicker__hairline" }, null, -1);
|
|
155
|
+
var H = I(M, [["render", function(e2, t2, l2, a2, o2, n2) {
|
|
156
|
+
const u2 = x("nut-oldpicker-column"), f2 = x("nut-popup");
|
|
157
|
+
return r(), s("view", { class: m(e2.classes) }, [g(f2, { position: "bottom", visible: e2.show, "onUpdate:visible": t2[2] || (t2[2] = (t3) => e2.show = t3), teleport: e2.teleport, "lock-scroll": e2.lockScroll, "close-on-click-overlay": e2.closeOnClickOverlay, onClose: e2.close, round: true, isWrapTeleport: e2.isWrapTeleport }, { default: y(() => [i("view", j, [i("view", { class: "nut-oldpicker__cancel nut-oldpicker__left nut-oldpicker__button", onClick: t2[0] || (t2[0] = (...t3) => e2.close && e2.close(...t3)) }, p(e2.cancelText), 1), i("view", L, p(e2.title), 1), i("view", { class: "nut-oldpicker__confirm nut-oldpicker__button nut-oldpicker__right", onClick: t2[1] || (t2[1] = (t3) => e2.confirm()) }, p(e2.okText), 1)]), i("view", $, [E, (r(true), s(c, null, d(e2.columnList, (t3, l3) => (r(), s("view", { class: "nut-oldpicker__columnitem", key: l3 }, [g(u2, { itemShow: e2.show, "list-data": t3, readonly: e2.readonly, "default-index": t3.defaultIndex, "data-type": e2.dataType, onChange: (t4) => {
|
|
158
|
+
e2.changeHandler(l3, t4);
|
|
159
|
+
} }, null, 8, ["itemShow", "list-data", "readonly", "default-index", "data-type", "onChange"])]))), 128))])]), _: 1 }, 8, ["visible", "teleport", "lock-scroll", "close-on-click-overlay", "onClose", "isWrapTeleport"])], 2);
|
|
160
|
+
}]]);
|
|
161
|
+
export { H as default };
|