@nutui/nutui 3.2.2-beta.1 → 3.2.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/CHANGELOG.md +40 -0
- package/README.md +5 -3
- package/dist/nutui.es.js +1767 -1993
- package/dist/nutui.umd.js +1777 -2002
- package/dist/packages/_es/ActionSheet.js +22 -4
- package/dist/packages/_es/Address.js +57 -63
- package/dist/packages/_es/AddressList.js +3 -7
- package/dist/packages/_es/Animate.js +21 -2
- package/dist/packages/_es/Audio.js +25 -11
- package/dist/packages/_es/AudioOperate.js +21 -2
- package/dist/packages/_es/Avatar.js +20 -5
- package/dist/packages/_es/AvatarGroup.js +1 -1
- package/dist/packages/_es/BackTop.js +2 -2
- package/dist/packages/_es/Badge.js +1 -1
- package/dist/packages/_es/Barrage.js +4 -7
- package/dist/packages/_es/Button.js +1 -1
- package/dist/packages/_es/Calendar.js +1 -1
- package/dist/packages/_es/CalendarItem.js +1 -1
- package/dist/packages/_es/Card.js +1 -1
- package/dist/packages/_es/Cascader.js +65 -51
- 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 +17 -31
- package/dist/packages/_es/CheckboxGroup.js +7 -14
- package/dist/packages/_es/CircleProgress.js +1 -1
- package/dist/packages/_es/Col.js +1 -1
- package/dist/packages/_es/Collapse.js +19 -22
- package/dist/packages/_es/CollapseItem.js +32 -18
- package/dist/packages/_es/Comment.js +9 -13
- package/dist/packages/_es/ConfigProvider.js +4 -8
- package/dist/packages/_es/CountDown.js +46 -40
- package/dist/packages/_es/CountUp.js +40 -39
- package/dist/packages/_es/DatePicker.js +40 -27
- package/dist/packages/_es/Dialog.js +28 -13
- package/dist/packages/_es/Divider.js +24 -7
- package/dist/packages/_es/Drag.js +4 -4
- package/dist/packages/_es/Ecard.js +4 -7
- package/dist/packages/_es/Elevator.js +38 -25
- package/dist/packages/_es/Ellipsis.js +28 -14
- package/dist/packages/_es/Empty.js +1 -1
- package/dist/packages/_es/FixedNav.js +1 -1
- package/dist/packages/_es/Form.js +5 -9
- package/dist/packages/_es/FormItem.js +5 -4
- package/dist/packages/_es/Grid.js +1 -1
- package/dist/packages/_es/GridItem.js +1 -1
- package/dist/packages/_es/Icon.js +11 -15
- package/dist/packages/_es/Image.js +24 -8
- package/dist/packages/_es/ImagePreview.js +34 -22
- package/dist/packages/_es/Indicator.js +1 -1
- package/dist/packages/_es/InfiniteLoading.js +24 -5
- package/dist/packages/_es/Input.js +9 -13
- package/dist/packages/_es/InputNumber.js +1 -1
- package/dist/packages/_es/Invoice.js +156 -0
- package/dist/packages/_es/Layout.js +1 -1
- package/dist/packages/_es/List.js +25 -10
- package/dist/packages/_es/Menu.js +7 -13
- package/dist/packages/_es/MenuItem.js +22 -3
- package/dist/packages/_es/Navbar.js +2 -2
- package/dist/packages/_es/NoticeBar.js +28 -17
- package/dist/packages/_es/Notify.js +38 -20
- package/dist/packages/_es/NumberKeyboard.js +5 -12
- package/dist/packages/_es/OldPicker.js +46 -47
- package/dist/packages/_es/OverLay.js +23 -11
- package/dist/packages/_es/Pagination.js +1 -1
- package/dist/packages/_es/Picker.js +72 -64
- package/dist/packages/_es/Popover.js +52 -55
- package/dist/packages/_es/Popup.js +40 -35
- package/dist/packages/_es/Price.js +1 -1
- package/dist/packages/_es/Progress.js +1 -1
- package/dist/packages/_es/PullRefresh.js +20 -5
- package/dist/packages/_es/Radio.js +15 -27
- package/dist/packages/_es/RadioGroup.js +5 -12
- package/dist/packages/_es/Range.js +33 -20
- package/dist/packages/_es/Rate.js +24 -5
- package/dist/packages/_es/Row.js +1 -1
- package/dist/packages/_es/SearchBar.js +44 -11
- package/dist/packages/_es/ShortPassword.js +11 -18
- package/dist/packages/_es/SideNavBar.js +22 -4
- package/dist/packages/_es/SideNavBarItem.js +1 -1
- package/dist/packages/_es/Signature.js +21 -2
- package/dist/packages/_es/Skeleton.js +1 -1
- package/dist/packages/_es/Sku.js +32 -24
- package/dist/packages/_es/Step.js +22 -4
- package/dist/packages/_es/Steps.js +4 -8
- package/dist/packages/_es/Sticky.js +12 -23
- package/dist/packages/_es/SubSideNavBar.js +22 -4
- package/dist/packages/_es/Swipe.js +24 -5
- package/dist/packages/_es/Swiper.js +14 -23
- package/dist/packages/_es/SwiperItem.js +1 -1
- package/dist/packages/_es/Switch.js +7 -10
- package/dist/packages/_es/TabPane.js +1 -1
- package/dist/packages/_es/Tabbar.js +4 -7
- package/dist/packages/_es/TabbarItem.js +1 -1
- package/dist/packages/_es/Table.js +25 -10
- package/dist/packages/_es/Tabs.js +41 -25
- package/dist/packages/_es/Tag.js +1 -1
- package/dist/packages/_es/TextArea.js +5 -8
- package/dist/packages/_es/TimeDetail.js +24 -5
- package/dist/packages/_es/TimePannel.js +22 -4
- package/dist/packages/_es/TimeSelect.js +1 -1
- package/dist/packages/_es/Toast.js +47 -28
- package/dist/packages/_es/Uploader.js +27 -18
- package/dist/packages/_es/Video.js +33 -22
- package/dist/packages/_es/WaterMark.js +41 -31
- package/dist/packages/_es/common.js +11 -21
- package/dist/packages/_es/component.js +5 -5
- 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 +31 -23
- 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/address/index.scss +17 -0
- package/dist/packages/invoice/index.scss +33 -0
- 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/menuitem/index.scss +3 -1
- package/dist/packages/navbar/index.scss +6 -8
- package/dist/packages/picker/index.scss +8 -0
- package/dist/packages/price/index.scss +1 -1
- package/dist/packages/searchbar/index.scss +2 -0
- package/dist/packages/textarea/index.scss +4 -1
- package/dist/packages/toast/index.scss +3 -0
- package/dist/smartips/attributes.json +36 -12
- package/dist/smartips/tags.json +20 -10
- package/dist/smartips/web-types.json +74 -13
- package/dist/style.css +1 -1
- package/dist/style.es.js +1 -1
- package/dist/styles/themes/default.scss +51 -50
- package/dist/styles/themes/jdb.scss +51 -50
- package/dist/styles/themes/jdt.scss +51 -50
- 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 +3 -3
- package/dist/types/__VUE/address/index.vue.d.ts +3 -3
- package/dist/types/__VUE/avatar/index.vue.d.ts +4 -4
- package/dist/types/__VUE/avatargroup/index.vue.d.ts +2 -2
- package/dist/types/__VUE/backtop/index.vue.d.ts +5 -8
- 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/calendar/index.vue.d.ts +1 -1
- package/dist/types/__VUE/cascader/index.vue.d.ts +3 -3
- package/dist/types/__VUE/cell/index.vue.d.ts +8 -8
- package/dist/types/__VUE/collapse/index.vue.d.ts +2 -2
- package/dist/types/__VUE/collapseitem/index.vue.d.ts +2 -2
- package/dist/types/__VUE/datepicker/index.vue.d.ts +9 -2
- package/dist/types/__VUE/dialog/index.vue.d.ts +2 -2
- package/dist/types/__VUE/fixednav/index.vue.d.ts +2 -2
- package/dist/types/__VUE/formitem/index.vue.d.ts +1 -0
- 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 +6 -7
- package/dist/types/__VUE/invoice/index.vue.d.ts +48 -0
- package/dist/types/__VUE/menu/index.vue.d.ts +2 -2
- package/dist/types/__VUE/noticebar/index.vue.d.ts +3 -3
- package/dist/types/__VUE/notify/index.d.ts +15 -5
- package/dist/types/__VUE/numberkeyboard/index.vue.d.ts +2 -2
- package/dist/types/__VUE/oldpicker/index.vue.d.ts +3 -3
- package/dist/types/__VUE/picker/index.vue.d.ts +5 -3
- package/dist/types/__VUE/popover/index.vue.d.ts +6 -6
- package/dist/types/__VUE/popup/index.vue.d.ts +4 -4
- package/dist/types/__VUE/radio/index.vue.d.ts +3 -3
- package/dist/types/__VUE/searchbar/index.vue.d.ts +18 -3
- package/dist/types/__VUE/shortpassword/index.vue.d.ts +1 -1
- package/dist/types/__VUE/sku/index.vue.d.ts +3 -3
- package/dist/types/__VUE/step/index.vue.d.ts +2 -2
- package/dist/types/__VUE/swipe/index.vue.d.ts +2 -2
- package/dist/types/__VUE/tabbaritem/index.vue.d.ts +2 -2
- package/dist/types/__VUE/toast/index.vue.d.ts +5 -2
- 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/dist/types/nutui.d.ts +2 -1
- package/package.json +1 -1
|
@@ -1,5 +1,24 @@
|
|
|
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));
|
|
1
20
|
/*!
|
|
2
|
-
* @nutui/nutui v3.2.2
|
|
21
|
+
* @nutui/nutui v3.2.2 Thu Sep 08 2022 22:10:31 GMT+0800 (中国标准时间)
|
|
3
22
|
* (c) 2022 @jdf2e.
|
|
4
23
|
* Released under the MIT License.
|
|
5
24
|
*/
|
|
@@ -116,35 +135,23 @@ const _sfc_main = create({
|
|
|
116
135
|
typeMachine: ""
|
|
117
136
|
});
|
|
118
137
|
const { startFlag, scrolling, customBgImg, type } = reactive(props);
|
|
119
|
-
watch(
|
|
120
|
-
()
|
|
121
|
-
(
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
);
|
|
126
|
-
watch(
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
)
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
(
|
|
135
|
-
|
|
136
|
-
data.valFlag = false;
|
|
137
|
-
valChange();
|
|
138
|
-
}
|
|
139
|
-
);
|
|
140
|
-
watch(
|
|
141
|
-
() => props.endNum,
|
|
142
|
-
(count, prevCount) => {
|
|
143
|
-
data.current = props.initNum;
|
|
144
|
-
data.valFlag = false;
|
|
145
|
-
valChange();
|
|
146
|
-
}
|
|
147
|
-
);
|
|
138
|
+
watch(() => props.customChangeNum, (count, prevCount) => {
|
|
139
|
+
clearIntervalTime();
|
|
140
|
+
countGo(0);
|
|
141
|
+
});
|
|
142
|
+
watch(() => props.machinePrizeLevel, (count, prevCount) => {
|
|
143
|
+
data.prizeLevelTrun = count;
|
|
144
|
+
});
|
|
145
|
+
watch(() => props.initNum, (count, prevCount) => {
|
|
146
|
+
data.current = count;
|
|
147
|
+
data.valFlag = false;
|
|
148
|
+
valChange();
|
|
149
|
+
});
|
|
150
|
+
watch(() => props.endNum, (count, prevCount) => {
|
|
151
|
+
data.current = props.initNum;
|
|
152
|
+
data.valFlag = false;
|
|
153
|
+
valChange();
|
|
154
|
+
});
|
|
148
155
|
const valChange = () => {
|
|
149
156
|
if (data.valFlag) {
|
|
150
157
|
return false;
|
|
@@ -391,11 +398,7 @@ const _sfc_main = create({
|
|
|
391
398
|
if (data.prizeLevelTrun < 0) {
|
|
392
399
|
newLocation += props.numHeight * data.notPrize[i];
|
|
393
400
|
}
|
|
394
|
-
scrollTime(
|
|
395
|
-
i,
|
|
396
|
-
newLocation,
|
|
397
|
-
local
|
|
398
|
-
);
|
|
401
|
+
scrollTime(i, newLocation, local);
|
|
399
402
|
}, 500 * i);
|
|
400
403
|
}
|
|
401
404
|
};
|
|
@@ -445,14 +448,12 @@ const _sfc_main = create({
|
|
|
445
448
|
clearIntervalTime();
|
|
446
449
|
data.timer = null;
|
|
447
450
|
});
|
|
448
|
-
return {
|
|
449
|
-
...toRefs(data),
|
|
450
|
-
...toRefs(reactive(props)),
|
|
451
|
+
return __spreadProps(__spreadValues(__spreadValues({}, toRefs(data)), toRefs(reactive(props))), {
|
|
451
452
|
runNumberImg,
|
|
452
453
|
setRef,
|
|
453
454
|
topNumber,
|
|
454
455
|
turnNumber
|
|
455
|
-
};
|
|
456
|
+
});
|
|
456
457
|
}
|
|
457
458
|
});
|
|
458
459
|
const _hoisted_1 = { class: "nut-countup" };
|
|
@@ -1,5 +1,24 @@
|
|
|
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));
|
|
1
20
|
/*!
|
|
2
|
-
* @nutui/nutui v3.2.2
|
|
21
|
+
* @nutui/nutui v3.2.2 Thu Sep 08 2022 22:10:31 GMT+0800 (中国标准时间)
|
|
3
22
|
* (c) 2022 @jdf2e.
|
|
4
23
|
* Released under the MIT License.
|
|
5
24
|
*/
|
|
@@ -37,8 +56,7 @@ const _sfc_main = create({
|
|
|
37
56
|
components: {
|
|
38
57
|
[Picker.name]: Picker
|
|
39
58
|
},
|
|
40
|
-
props: {
|
|
41
|
-
...popupProps,
|
|
59
|
+
props: __spreadProps(__spreadValues({}, popupProps), {
|
|
42
60
|
modelValue: null,
|
|
43
61
|
title: {
|
|
44
62
|
type: String,
|
|
@@ -82,8 +100,12 @@ const _sfc_main = create({
|
|
|
82
100
|
type: Boolean,
|
|
83
101
|
default: true
|
|
84
102
|
},
|
|
103
|
+
swipeDuration: {
|
|
104
|
+
type: [Number, String],
|
|
105
|
+
default: 1e3
|
|
106
|
+
},
|
|
85
107
|
filter: Function
|
|
86
|
-
},
|
|
108
|
+
}),
|
|
87
109
|
emits: ["click", "update:visible", "change", "confirm", "update:moduleValue"],
|
|
88
110
|
setup(props, { emit }) {
|
|
89
111
|
const state = reactive({
|
|
@@ -290,31 +312,21 @@ const _sfc_main = create({
|
|
|
290
312
|
onBeforeMount(() => {
|
|
291
313
|
state.currentDate = formatValue(props.modelValue);
|
|
292
314
|
});
|
|
293
|
-
watch(
|
|
294
|
-
()
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
);
|
|
299
|
-
watch(
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
}
|
|
304
|
-
);
|
|
305
|
-
watch(
|
|
306
|
-
() => props.visible,
|
|
307
|
-
(val) => {
|
|
308
|
-
state.show = val;
|
|
309
|
-
}
|
|
310
|
-
);
|
|
311
|
-
return {
|
|
312
|
-
...toRefs(state),
|
|
315
|
+
watch(() => props.modelValue, (value) => {
|
|
316
|
+
state.currentDate = formatValue(value);
|
|
317
|
+
});
|
|
318
|
+
watch(() => props.title, (val) => {
|
|
319
|
+
state.title = val;
|
|
320
|
+
});
|
|
321
|
+
watch(() => props.visible, (val) => {
|
|
322
|
+
state.show = val;
|
|
323
|
+
});
|
|
324
|
+
return __spreadProps(__spreadValues({}, toRefs(state)), {
|
|
313
325
|
changeHandler,
|
|
314
326
|
closeHandler,
|
|
315
327
|
confirm,
|
|
316
328
|
columns
|
|
317
|
-
};
|
|
329
|
+
});
|
|
318
330
|
}
|
|
319
331
|
});
|
|
320
332
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
@@ -332,7 +344,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
332
344
|
title: _ctx.title,
|
|
333
345
|
onConfirm: _ctx.confirm,
|
|
334
346
|
isWrapTeleport: _ctx.isWrapTeleport,
|
|
335
|
-
threeDimensional: _ctx.threeDimensional
|
|
347
|
+
threeDimensional: _ctx.threeDimensional,
|
|
348
|
+
swipeDuration: _ctx.swipeDuration
|
|
336
349
|
}, {
|
|
337
350
|
top: withCtx(() => [
|
|
338
351
|
renderSlot(_ctx.$slots, "top")
|
|
@@ -341,7 +354,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
341
354
|
renderSlot(_ctx.$slots, "default")
|
|
342
355
|
]),
|
|
343
356
|
_: 3
|
|
344
|
-
}, 8, ["modelValue", "visible", "okText", "cancelText", "onClose", "columns", "onChange", "title", "onConfirm", "isWrapTeleport", "threeDimensional"]);
|
|
357
|
+
}, 8, ["modelValue", "visible", "okText", "cancelText", "onClose", "columns", "onChange", "title", "onConfirm", "isWrapTeleport", "threeDimensional", "swipeDuration"]);
|
|
345
358
|
}
|
|
346
359
|
var index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
347
360
|
export { index as default };
|
|
@@ -1,5 +1,24 @@
|
|
|
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));
|
|
1
20
|
/*!
|
|
2
|
-
* @nutui/nutui v3.2.2
|
|
21
|
+
* @nutui/nutui v3.2.2 Thu Sep 08 2022 22:10:31 GMT+0800 (中国标准时间)
|
|
3
22
|
* (c) 2022 @jdf2e.
|
|
4
23
|
* Released under the MIT License.
|
|
5
24
|
*/
|
|
@@ -19,8 +38,7 @@ const _sfc_main = create({
|
|
|
19
38
|
[Popup.name]: Popup,
|
|
20
39
|
[Button.name]: Button
|
|
21
40
|
},
|
|
22
|
-
props: {
|
|
23
|
-
...popupProps,
|
|
41
|
+
props: __spreadProps(__spreadValues({}, popupProps), {
|
|
24
42
|
closeOnClickOverlay: {
|
|
25
43
|
type: Boolean,
|
|
26
44
|
default: false
|
|
@@ -79,7 +97,7 @@ const _sfc_main = create({
|
|
|
79
97
|
beforeClose: {
|
|
80
98
|
type: Function
|
|
81
99
|
}
|
|
82
|
-
},
|
|
100
|
+
}),
|
|
83
101
|
emits: ["update", "update:visible", "ok", "cancel", "opened", "closed"],
|
|
84
102
|
setup(props, { emit }) {
|
|
85
103
|
const showPopup = ref(props.visible);
|
|
@@ -90,15 +108,12 @@ const _sfc_main = create({
|
|
|
90
108
|
});
|
|
91
109
|
}
|
|
92
110
|
});
|
|
93
|
-
watch(
|
|
94
|
-
|
|
95
|
-
(value)
|
|
96
|
-
|
|
97
|
-
if (value) {
|
|
98
|
-
emit("opened");
|
|
99
|
-
}
|
|
111
|
+
watch(() => props.visible, (value) => {
|
|
112
|
+
showPopup.value = value;
|
|
113
|
+
if (value) {
|
|
114
|
+
emit("opened");
|
|
100
115
|
}
|
|
101
|
-
);
|
|
116
|
+
});
|
|
102
117
|
const classes = computed(() => {
|
|
103
118
|
return {
|
|
104
119
|
[componentName]: true,
|
|
@@ -171,7 +186,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
171
186
|
createElementVNode("view", {
|
|
172
187
|
class: normalizeClass(_ctx.classes)
|
|
173
188
|
}, [
|
|
174
|
-
_ctx.title ? (openBlock(), createElementBlock("view", _hoisted_1, [
|
|
189
|
+
_ctx.$slots.header || _ctx.title ? (openBlock(), createElementBlock("view", _hoisted_1, [
|
|
175
190
|
_ctx.$slots.header ? renderSlot(_ctx.$slots, "header", { key: 0 }) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
176
191
|
createTextVNode(toDisplayString(_ctx.title), 1)
|
|
177
192
|
], 64))
|
|
@@ -1,5 +1,24 @@
|
|
|
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));
|
|
1
20
|
/*!
|
|
2
|
-
* @nutui/nutui v3.2.2
|
|
21
|
+
* @nutui/nutui v3.2.2 Thu Sep 08 2022 22:10:31 GMT+0800 (中国标准时间)
|
|
3
22
|
* (c) 2022 @jdf2e.
|
|
4
23
|
* Released under the MIT License.
|
|
5
24
|
*/
|
|
@@ -36,19 +55,17 @@ const _sfc_main = create({
|
|
|
36
55
|
};
|
|
37
56
|
let classesObj = {};
|
|
38
57
|
if (props.direction === "horizontal") {
|
|
39
|
-
classesObj = {
|
|
40
|
-
...defaultClassesObj,
|
|
58
|
+
classesObj = __spreadProps(__spreadValues({}, defaultClassesObj), {
|
|
41
59
|
[`${prefixCls}-center`]: context.slots.default,
|
|
42
60
|
[`${prefixCls}-left`]: props.contentPosition === "left",
|
|
43
61
|
[`${prefixCls}-right`]: props.contentPosition === "right",
|
|
44
62
|
[`${prefixCls}-dashed`]: props.dashed,
|
|
45
63
|
[`${prefixCls}-hairline`]: props.hairline
|
|
46
|
-
};
|
|
64
|
+
});
|
|
47
65
|
} else {
|
|
48
|
-
classesObj = {
|
|
49
|
-
...defaultClassesObj,
|
|
66
|
+
classesObj = __spreadProps(__spreadValues({}, defaultClassesObj), {
|
|
50
67
|
[`${prefixCls}-vertical`]: props.direction === "vertical"
|
|
51
|
-
};
|
|
68
|
+
});
|
|
52
69
|
}
|
|
53
70
|
return classesObj;
|
|
54
71
|
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.2.2
|
|
2
|
+
* @nutui/nutui v3.2.2 Thu Sep 08 2022 22:10:31 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -176,9 +176,9 @@ const _sfc_main = create({
|
|
|
176
176
|
});
|
|
177
177
|
onDeactivated(() => {
|
|
178
178
|
state.keepAlive = true;
|
|
179
|
-
myDrag.removeEventListener("touchstart", touchStart);
|
|
180
|
-
myDrag.removeEventListener("touchmove", touchMove);
|
|
181
|
-
myDrag.removeEventListener("touchend", touchEnd);
|
|
179
|
+
myDrag.value.removeEventListener("touchstart", touchStart);
|
|
180
|
+
myDrag.value.removeEventListener("touchmove", touchMove);
|
|
181
|
+
myDrag.value.removeEventListener("touchend", touchEnd);
|
|
182
182
|
});
|
|
183
183
|
return {
|
|
184
184
|
classes,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.2.2
|
|
2
|
+
* @nutui/nutui v3.2.2 Thu Sep 08 2022 22:10:31 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -94,12 +94,9 @@ const _sfc_main = create({
|
|
|
94
94
|
stepValue.value = value;
|
|
95
95
|
emit("changeStep", stepValue.value, currentValue.value);
|
|
96
96
|
};
|
|
97
|
-
watch(
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
money.value = value;
|
|
101
|
-
}
|
|
102
|
-
);
|
|
97
|
+
watch(() => props.modelValue, (value) => {
|
|
98
|
+
money.value = value;
|
|
99
|
+
});
|
|
103
100
|
return {
|
|
104
101
|
handleClick,
|
|
105
102
|
changeStep,
|
|
@@ -1,5 +1,24 @@
|
|
|
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));
|
|
1
20
|
/*!
|
|
2
|
-
* @nutui/nutui v3.2.2
|
|
21
|
+
* @nutui/nutui v3.2.2 Thu Sep 08 2022 22:10:31 GMT+0800 (中国标准时间)
|
|
3
22
|
* (c) 2022 @jdf2e.
|
|
4
23
|
* Released under the MIT License.
|
|
5
24
|
*/
|
|
@@ -152,30 +171,24 @@ const _sfc_main = create({
|
|
|
152
171
|
useExpose({
|
|
153
172
|
scrollTo
|
|
154
173
|
});
|
|
155
|
-
watch(
|
|
156
|
-
|
|
157
|
-
()
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
const listHeight = state.listHeight;
|
|
166
|
-
let fixedTop = newVal > 0 && newVal < props.titleHeight ? newVal - props.titleHeight : 0;
|
|
167
|
-
if (state.scrollY + clientHeight.value === listHeight[listHeight.length - 1]) {
|
|
168
|
-
if (fixedTop !== 0)
|
|
169
|
-
fixedTop = 0;
|
|
170
|
-
}
|
|
171
|
-
if (state.fixedTop === fixedTop)
|
|
172
|
-
return;
|
|
173
|
-
state.fixedTop = fixedTop;
|
|
174
|
+
watch(() => state.listGroup.length, () => {
|
|
175
|
+
state.listHeight = [];
|
|
176
|
+
nextTick(calculateHeight);
|
|
177
|
+
});
|
|
178
|
+
watch(() => state.diff, (newVal) => {
|
|
179
|
+
const listHeight = state.listHeight;
|
|
180
|
+
let fixedTop = newVal > 0 && newVal < props.titleHeight ? newVal - props.titleHeight : 0;
|
|
181
|
+
if (state.scrollY + clientHeight.value === listHeight[listHeight.length - 1]) {
|
|
182
|
+
if (fixedTop !== 0)
|
|
183
|
+
fixedTop = 0;
|
|
174
184
|
}
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
185
|
+
if (state.fixedTop === fixedTop)
|
|
186
|
+
return;
|
|
187
|
+
state.fixedTop = fixedTop;
|
|
188
|
+
});
|
|
189
|
+
return __spreadProps(__spreadValues({
|
|
190
|
+
classes
|
|
191
|
+
}, toRefs(state)), {
|
|
179
192
|
fixedStyle,
|
|
180
193
|
clientHeight,
|
|
181
194
|
setListGroup,
|
|
@@ -185,7 +198,7 @@ const _sfc_main = create({
|
|
|
185
198
|
touchEnd,
|
|
186
199
|
handleClickItem,
|
|
187
200
|
handleClickIndex
|
|
188
|
-
};
|
|
201
|
+
});
|
|
189
202
|
}
|
|
190
203
|
});
|
|
191
204
|
const _hoisted_1 = { class: "nut-elevator__list__item__code" };
|
|
@@ -1,5 +1,24 @@
|
|
|
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));
|
|
1
20
|
/*!
|
|
2
|
-
* @nutui/nutui v3.2.2
|
|
21
|
+
* @nutui/nutui v3.2.2 Thu Sep 08 2022 22:10:31 GMT+0800 (中国标准时间)
|
|
3
22
|
* (c) 2022 @jdf2e.
|
|
4
23
|
* Released under the MIT License.
|
|
5
24
|
*/
|
|
@@ -51,17 +70,14 @@ const _sfc_main = create({
|
|
|
51
70
|
[prefixCls]: true
|
|
52
71
|
};
|
|
53
72
|
});
|
|
54
|
-
watch(
|
|
55
|
-
()
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
if (container) {
|
|
59
|
-
document.body.appendChild(container);
|
|
60
|
-
}
|
|
61
|
-
createContainer();
|
|
73
|
+
watch(() => props.content, (newV, oldVal) => {
|
|
74
|
+
if (newV != oldVal) {
|
|
75
|
+
if (container) {
|
|
76
|
+
document.body.appendChild(container);
|
|
62
77
|
}
|
|
78
|
+
createContainer();
|
|
63
79
|
}
|
|
64
|
-
);
|
|
80
|
+
});
|
|
65
81
|
onMounted(() => {
|
|
66
82
|
createContainer();
|
|
67
83
|
});
|
|
@@ -86,9 +102,7 @@ const _sfc_main = create({
|
|
|
86
102
|
container.style.webkitLineClamp = "unset";
|
|
87
103
|
container.style.display = "block";
|
|
88
104
|
const lineHeight = pxToNumber(originStyle.lineHeight);
|
|
89
|
-
maxHeight = Math.floor(
|
|
90
|
-
lineHeight * (Number(props.rows) + 0.5) + pxToNumber(originStyle.paddingTop) + pxToNumber(originStyle.paddingBottom)
|
|
91
|
-
);
|
|
105
|
+
maxHeight = Math.floor(lineHeight * (Number(props.rows) + 0.5) + pxToNumber(originStyle.paddingTop) + pxToNumber(originStyle.paddingBottom));
|
|
92
106
|
container.innerText = props.content;
|
|
93
107
|
document.body.appendChild(container);
|
|
94
108
|
calcEllipse();
|
|
@@ -175,7 +189,7 @@ const _sfc_main = create({
|
|
|
175
189
|
const handleClick = () => {
|
|
176
190
|
emit("click");
|
|
177
191
|
};
|
|
178
|
-
return {
|
|
192
|
+
return __spreadProps(__spreadValues({}, toRefs(state)), { root, ellipsis, classes, clickHandle, handleClick });
|
|
179
193
|
}
|
|
180
194
|
});
|
|
181
195
|
const _hoisted_1 = { key: 0 };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.2.2
|
|
2
|
+
* @nutui/nutui v3.2.2 Thu Sep 08 2022 22:10:31 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -27,13 +27,9 @@ const component = {
|
|
|
27
27
|
const reset = () => {
|
|
28
28
|
clearErrorTips();
|
|
29
29
|
};
|
|
30
|
-
watch(
|
|
31
|
-
()
|
|
32
|
-
|
|
33
|
-
clearErrorTips(value);
|
|
34
|
-
},
|
|
35
|
-
{ immediate: true }
|
|
36
|
-
);
|
|
30
|
+
watch(() => props.modelValue, (value) => {
|
|
31
|
+
clearErrorTips(value);
|
|
32
|
+
}, { immediate: true });
|
|
37
33
|
const findFormItem = (vnodes) => {
|
|
38
34
|
let task = [];
|
|
39
35
|
vnodes.forEach((vnode, index2) => {
|
|
@@ -80,7 +76,7 @@ const component = {
|
|
|
80
76
|
const { required, validator, regex, message } = _rules.shift();
|
|
81
77
|
const errorMsg = { prop, message };
|
|
82
78
|
if (required) {
|
|
83
|
-
if (
|
|
79
|
+
if (value === "" || value === void 0 || value === null) {
|
|
84
80
|
return _Promise(errorMsg);
|
|
85
81
|
}
|
|
86
82
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.2.2
|
|
2
|
+
* @nutui/nutui v3.2.2 Thu Sep 08 2022 22:10:31 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -57,7 +57,7 @@ const _sfc_main = create({
|
|
|
57
57
|
},
|
|
58
58
|
components: {},
|
|
59
59
|
emits: [""],
|
|
60
|
-
setup(props, { emit }) {
|
|
60
|
+
setup(props, { emit, slots }) {
|
|
61
61
|
const parent = inject("formErrorTip");
|
|
62
62
|
provide("form", {
|
|
63
63
|
props
|
|
@@ -78,7 +78,8 @@ const _sfc_main = create({
|
|
|
78
78
|
textAlign: props.errorMessageAlign
|
|
79
79
|
};
|
|
80
80
|
});
|
|
81
|
-
|
|
81
|
+
const getSlots = (name) => slots[name];
|
|
82
|
+
return { parent, labelStyle, bodyStyle, errorMessageStyle, getSlots };
|
|
82
83
|
}
|
|
83
84
|
});
|
|
84
85
|
const _hoisted_1 = { class: "nut-cell__value nut-form-item__body" };
|
|
@@ -89,7 +90,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
89
90
|
style: normalizeStyle(_ctx.$attrs.style)
|
|
90
91
|
}, {
|
|
91
92
|
default: withCtx(() => [
|
|
92
|
-
_ctx.label ? (openBlock(), createElementBlock("view", {
|
|
93
|
+
_ctx.label || _ctx.getSlots("label") ? (openBlock(), createElementBlock("view", {
|
|
93
94
|
key: 0,
|
|
94
95
|
class: normalizeClass(["nut-cell__title nut-form-item__label", { required: _ctx.required }]),
|
|
95
96
|
style: normalizeStyle(_ctx.labelStyle)
|