@nutui/nutui 3.2.1 → 3.2.2-beta.1
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 +938 -548
- package/dist/nutui.umd.js +938 -548
- package/dist/packages/_es/ActionSheet.js +1 -1
- package/dist/packages/_es/Address.js +56 -32
- package/dist/packages/_es/AddressList.js +6 -2
- package/dist/packages/_es/Animate.js +1 -1
- package/dist/packages/_es/Audio.js +7 -4
- package/dist/packages/_es/AudioOperate.js +1 -1
- package/dist/packages/_es/Avatar.js +1 -1
- 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 +7 -4
- package/dist/packages/_es/Button.js +1 -1
- package/dist/packages/_es/Calendar.js +10 -4
- package/dist/packages/_es/CalendarItem.js +1 -1
- package/dist/packages/_es/Card.js +1 -1
- package/dist/packages/_es/Cascader.js +33 -20
- 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 +1 -1
- package/dist/packages/_es/Col.js +5 -11
- package/dist/packages/_es/Collapse.js +22 -19
- package/dist/packages/_es/CollapseItem.js +12 -9
- package/dist/packages/_es/Comment.js +13 -9
- package/dist/packages/_es/ConfigProvider.js +8 -4
- package/dist/packages/_es/CountDown.js +36 -24
- package/dist/packages/_es/CountUp.js +35 -19
- package/dist/packages/_es/DatePicker.js +19 -10
- package/dist/packages/_es/Dialog.js +9 -6
- package/dist/packages/_es/Divider.js +1 -1
- package/dist/packages/_es/Drag.js +1 -1
- package/dist/packages/_es/Ecard.js +7 -4
- package/dist/packages/_es/Elevator.js +21 -15
- package/dist/packages/_es/Ellipsis.js +13 -8
- package/dist/packages/_es/Empty.js +1 -1
- package/dist/packages/_es/FixedNav.js +1 -1
- package/dist/packages/_es/Form.js +8 -4
- 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 +7 -4
- package/dist/packages/_es/ImagePreview.js +15 -9
- package/dist/packages/_es/Indicator.js +1 -1
- package/dist/packages/_es/InfiniteLoading.js +1 -1
- package/dist/packages/_es/Input.js +8 -5
- package/dist/packages/_es/InputNumber.js +20 -14
- package/dist/packages/_es/Layout.js +1 -1
- package/dist/packages/_es/List.js +7 -4
- package/dist/packages/_es/Menu.js +12 -6
- package/dist/packages/_es/MenuItem.js +1 -1
- package/dist/packages/_es/Navbar.js +1 -1
- package/dist/packages/_es/NoticeBar.js +13 -7
- package/dist/packages/_es/Notify.js +8 -5
- package/dist/packages/_es/NumberKeyboard.js +12 -5
- package/dist/packages/_es/OldPicker.js +36 -19
- package/dist/packages/_es/OverLay.js +7 -4
- package/dist/packages/_es/Pagination.js +1 -1
- package/dist/packages/_es/Picker.js +64 -32
- package/dist/packages/_es/Popover.js +52 -31
- package/dist/packages/_es/Popup.js +22 -13
- package/dist/packages/_es/Price.js +1 -1
- package/dist/packages/_es/Progress.js +1 -1
- package/dist/packages/_es/PullRefresh.js +1 -1
- package/dist/packages/_es/Radio.js +25 -13
- package/dist/packages/_es/RadioGroup.js +12 -5
- package/dist/packages/_es/Range.js +16 -10
- package/dist/packages/_es/Rate.js +1 -1
- package/dist/packages/_es/Row.js +5 -11
- package/dist/packages/_es/SearchBar.js +1 -1
- package/dist/packages/_es/ShortPassword.js +18 -11
- package/dist/packages/_es/SideNavBar.js +1 -1
- package/dist/packages/_es/SideNavBarItem.js +1 -1
- package/dist/packages/_es/Signature.js +1 -1
- package/dist/packages/_es/Skeleton.js +1 -1
- package/dist/packages/_es/Sku.js +21 -11
- package/dist/packages/_es/Step.js +1 -1
- package/dist/packages/_es/Steps.js +8 -4
- package/dist/packages/_es/Sticky.js +23 -12
- package/dist/packages/_es/SubSideNavBar.js +1 -1
- package/dist/packages/_es/Swipe.js +1 -1
- 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 +13 -14
- package/dist/packages/_es/Table.js +7 -4
- package/dist/packages/_es/Tabs.js +16 -10
- package/dist/packages/_es/Tag.js +1 -1
- package/dist/packages/_es/TextArea.js +8 -5
- package/dist/packages/_es/TimeDetail.js +1 -1
- package/dist/packages/_es/TimePannel.js +1 -1
- package/dist/packages/_es/TimeSelect.js +1 -1
- package/dist/packages/_es/Toast.js +8 -5
- package/dist/packages/_es/Uploader.js +14 -8
- package/dist/packages/_es/Video.js +17 -10
- package/dist/packages/_es/WaterMark.js +30 -21
- package/dist/packages/_es/common.js +20 -10
- package/dist/packages/_es/component.js +1 -1
- 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 +21 -12
- 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/button/index.scss +1 -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/radio/index.scss +1 -0
- package/dist/smartips/attributes.json +21 -1
- package/dist/smartips/tags.json +7 -2
- package/dist/smartips/web-types.json +47 -2
- 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/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 +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/calendar/index.vue.d.ts +8 -1
- package/dist/types/__VUE/calendaritem/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/col/index.vue.d.ts +2 -5
- 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 +2 -2
- package/dist/types/__VUE/dialog/index.vue.d.ts +2 -2
- package/dist/types/__VUE/divider/index.vue.d.ts +2 -2
- package/dist/types/__VUE/fixednav/index.vue.d.ts +4 -4
- package/dist/types/__VUE/grid/index.vue.d.ts +3 -3
- package/dist/types/__VUE/griditem/index.vue.d.ts +1 -1
- package/dist/types/__VUE/imagepreview/index.d.ts +7 -6
- package/dist/types/__VUE/imagepreview/index.vue.d.ts +3 -3
- package/dist/types/__VUE/imagepreview/types.d.ts +7 -0
- package/dist/types/__VUE/input/index.vue.d.ts +4 -4
- package/dist/types/__VUE/inputnumber/index.vue.d.ts +14 -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/numberkeyboard/index.vue.d.ts +4 -4
- package/dist/types/__VUE/oldpicker/index.vue.d.ts +3 -3
- package/dist/types/__VUE/picker/Column.vue.d.ts +8 -0
- package/dist/types/__VUE/picker/index.vue.d.ts +18 -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/row/index.vue.d.ts +2 -5
- 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 +2 -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/package.json +2 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.2.1
|
|
2
|
+
* @nutui/nutui v3.2.2-beta.1 Mon Aug 22 2022 15:19:47 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -182,19 +182,28 @@ const _sfc_main = create({
|
|
|
182
182
|
state.keepAlive = true;
|
|
183
183
|
}
|
|
184
184
|
});
|
|
185
|
-
watch(
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
185
|
+
watch(
|
|
186
|
+
() => props.visible,
|
|
187
|
+
(value) => {
|
|
188
|
+
if (value) {
|
|
189
|
+
open();
|
|
190
|
+
} else {
|
|
191
|
+
close();
|
|
192
|
+
}
|
|
190
193
|
}
|
|
191
|
-
|
|
192
|
-
watch(
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
194
|
+
);
|
|
195
|
+
watch(
|
|
196
|
+
() => props.position,
|
|
197
|
+
(value) => {
|
|
198
|
+
value === "center" ? state.transitionName = "popup-fade" : state.transitionName = `popup-slide-${value}`;
|
|
199
|
+
}
|
|
200
|
+
);
|
|
201
|
+
watch(
|
|
202
|
+
() => props.closeable,
|
|
203
|
+
(value) => {
|
|
204
|
+
state.closed = value;
|
|
205
|
+
}
|
|
206
|
+
);
|
|
198
207
|
return {
|
|
199
208
|
...toRefs(state),
|
|
200
209
|
popStyle,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.2.1
|
|
2
|
+
* @nutui/nutui v3.2.2-beta.1 Mon Aug 22 2022 15:19:47 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -67,15 +67,23 @@ const _sfc_main = create({
|
|
|
67
67
|
};
|
|
68
68
|
const renderLabel = () => {
|
|
69
69
|
var _a;
|
|
70
|
-
return h(
|
|
71
|
-
|
|
72
|
-
|
|
70
|
+
return h(
|
|
71
|
+
"view",
|
|
72
|
+
{
|
|
73
|
+
class: `${componentName}__label ${props.disabled ? `${componentName}__label--disabled` : ""}`
|
|
74
|
+
},
|
|
75
|
+
(_a = slots.default) == null ? void 0 : _a.call(slots)
|
|
76
|
+
);
|
|
73
77
|
};
|
|
74
78
|
const renderButton = () => {
|
|
75
79
|
var _a;
|
|
76
|
-
return h(
|
|
77
|
-
|
|
78
|
-
|
|
80
|
+
return h(
|
|
81
|
+
"view",
|
|
82
|
+
{
|
|
83
|
+
class: `${componentName}__button ${isCurValue.value && `${componentName}__button--active`} ${props.disabled ? `${componentName}__button--disabled` : ""}`
|
|
84
|
+
},
|
|
85
|
+
(_a = slots.default) == null ? void 0 : _a.call(slots)
|
|
86
|
+
);
|
|
79
87
|
};
|
|
80
88
|
const handleClick = () => {
|
|
81
89
|
if (isCurValue.value || props.disabled)
|
|
@@ -84,12 +92,16 @@ const _sfc_main = create({
|
|
|
84
92
|
};
|
|
85
93
|
let reverseState = position.value === "left";
|
|
86
94
|
return () => {
|
|
87
|
-
return h(
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
95
|
+
return h(
|
|
96
|
+
"view",
|
|
97
|
+
{
|
|
98
|
+
class: `${componentName} ${componentName}--${props.shape} ${reverseState ? `${componentName}--reverse` : ""}`,
|
|
99
|
+
onClick: handleClick
|
|
100
|
+
},
|
|
101
|
+
[
|
|
102
|
+
props.shape == "button" ? renderButton() : reverseState ? [renderLabel(), renderIcon()] : [renderIcon(), renderLabel()]
|
|
103
|
+
]
|
|
104
|
+
);
|
|
93
105
|
};
|
|
94
106
|
}
|
|
95
107
|
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.2.1
|
|
2
|
+
* @nutui/nutui v3.2.2-beta.1 Mon Aug 22 2022 15:19:47 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -30,12 +30,19 @@ const _sfc_main = create({
|
|
|
30
30
|
position: props.textPosition,
|
|
31
31
|
updateValue
|
|
32
32
|
});
|
|
33
|
-
watch(
|
|
33
|
+
watch(
|
|
34
|
+
() => props.modelValue,
|
|
35
|
+
(value) => emit("change", value)
|
|
36
|
+
);
|
|
34
37
|
return () => {
|
|
35
38
|
var _a;
|
|
36
|
-
return h(
|
|
37
|
-
|
|
38
|
-
|
|
39
|
+
return h(
|
|
40
|
+
"view",
|
|
41
|
+
{
|
|
42
|
+
class: `${componentName} ${componentName}--${props.direction}`
|
|
43
|
+
},
|
|
44
|
+
(_a = slots.default) == null ? void 0 : _a.call(slots)
|
|
45
|
+
);
|
|
39
46
|
};
|
|
40
47
|
}
|
|
41
48
|
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.2.1
|
|
2
|
+
* @nutui/nutui v3.2.2-beta.1 Mon Aug 22 2022 15:19:47 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -361,12 +361,15 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
361
361
|
"aria-valuenow": _ctx.curValue(index2),
|
|
362
362
|
"aria-valuemax": +_ctx.max,
|
|
363
363
|
"aria-orientation": "horizontal",
|
|
364
|
-
onTouchstart: withModifiers(
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
364
|
+
onTouchstart: withModifiers(
|
|
365
|
+
(e) => {
|
|
366
|
+
if (typeof index2 === "number") {
|
|
367
|
+
_ctx.buttonIndex = index2;
|
|
368
|
+
}
|
|
369
|
+
_ctx.onTouchStart(e);
|
|
370
|
+
},
|
|
371
|
+
["stop", "prevent"]
|
|
372
|
+
),
|
|
370
373
|
onTouchmove: _cache[0] || (_cache[0] = withModifiers((...args) => _ctx.onTouchMove && _ctx.onTouchMove(...args), ["stop", "prevent"])),
|
|
371
374
|
onTouchend: _cache[1] || (_cache[1] = withModifiers((...args) => _ctx.onTouchEnd && _ctx.onTouchEnd(...args), ["stop", "prevent"])),
|
|
372
375
|
onTouchcancel: _cache[2] || (_cache[2] = withModifiers((...args) => _ctx.onTouchEnd && _ctx.onTouchEnd(...args), ["stop", "prevent"])),
|
|
@@ -389,9 +392,12 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
389
392
|
"aria-valuenow": _ctx.curValue(),
|
|
390
393
|
"aria-valuemax": +_ctx.max,
|
|
391
394
|
"aria-orientation": "horizontal",
|
|
392
|
-
onTouchstart: _cache[4] || (_cache[4] = withModifiers(
|
|
393
|
-
|
|
394
|
-
|
|
395
|
+
onTouchstart: _cache[4] || (_cache[4] = withModifiers(
|
|
396
|
+
(e) => {
|
|
397
|
+
_ctx.onTouchStart(e);
|
|
398
|
+
},
|
|
399
|
+
["stop", "prevent"]
|
|
400
|
+
)),
|
|
395
401
|
onTouchmove: _cache[5] || (_cache[5] = withModifiers((...args) => _ctx.onTouchMove && _ctx.onTouchMove(...args), ["stop", "prevent"])),
|
|
396
402
|
onTouchend: _cache[6] || (_cache[6] = withModifiers((...args) => _ctx.onTouchEnd && _ctx.onTouchEnd(...args), ["stop", "prevent"])),
|
|
397
403
|
onTouchcancel: _cache[7] || (_cache[7] = withModifiers((...args) => _ctx.onTouchEnd && _ctx.onTouchEnd(...args), ["stop", "prevent"])),
|
package/dist/packages/_es/Row.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.2.1
|
|
2
|
+
* @nutui/nutui v3.2.2-beta.1 Mon Aug 22 2022 15:19:47 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -31,8 +31,8 @@ const _sfc_main = create({
|
|
|
31
31
|
default: "nowrap"
|
|
32
32
|
}
|
|
33
33
|
},
|
|
34
|
-
emits: [
|
|
35
|
-
setup(props
|
|
34
|
+
emits: [],
|
|
35
|
+
setup(props) {
|
|
36
36
|
const prefixCls = componentName;
|
|
37
37
|
provide("gutter", props.gutter);
|
|
38
38
|
const getClass = (prefix, type) => {
|
|
@@ -47,20 +47,14 @@ const _sfc_main = create({
|
|
|
47
47
|
${prefixCls}
|
|
48
48
|
`;
|
|
49
49
|
};
|
|
50
|
-
const handleClick = (evt) => {
|
|
51
|
-
evt.stopPropagation();
|
|
52
|
-
emit("click", evt);
|
|
53
|
-
};
|
|
54
50
|
return {
|
|
55
|
-
getClasses
|
|
56
|
-
handleClick
|
|
51
|
+
getClasses
|
|
57
52
|
};
|
|
58
53
|
}
|
|
59
54
|
});
|
|
60
55
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
61
56
|
return openBlock(), createElementBlock("view", {
|
|
62
|
-
class: normalizeClass(_ctx.getClasses())
|
|
63
|
-
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.handleClick && _ctx.handleClick(...args))
|
|
57
|
+
class: normalizeClass(_ctx.getClasses())
|
|
64
58
|
}, [
|
|
65
59
|
renderSlot(_ctx.$slots, "default")
|
|
66
60
|
], 2);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.2.1
|
|
2
|
+
* @nutui/nutui v3.2.2-beta.1 Mon Aug 22 2022 15:19:47 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -63,16 +63,23 @@ const _sfc_main = create({
|
|
|
63
63
|
function focus() {
|
|
64
64
|
realpwd.value.focus();
|
|
65
65
|
}
|
|
66
|
-
watch(
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
66
|
+
watch(
|
|
67
|
+
() => props.visible,
|
|
68
|
+
(value) => {
|
|
69
|
+
show.value = value;
|
|
70
|
+
}
|
|
71
|
+
);
|
|
72
|
+
watch(
|
|
73
|
+
() => props.modelValue,
|
|
74
|
+
(value) => {
|
|
75
|
+
realInput.value = value;
|
|
76
|
+
emit("update:modelValue", value);
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
deep: true,
|
|
80
|
+
immediate: true
|
|
81
|
+
}
|
|
82
|
+
);
|
|
76
83
|
function changeValue(e) {
|
|
77
84
|
const input = e.target;
|
|
78
85
|
let val = input.value;
|
package/dist/packages/_es/Sku.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.2.1
|
|
2
|
+
* @nutui/nutui v3.2.2-beta.1 Mon Aug 22 2022 15:19:47 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -65,9 +65,13 @@ const _sfc_main$3 = create$3({
|
|
|
65
65
|
emits: ["selectSku"],
|
|
66
66
|
setup(props, { emit }) {
|
|
67
67
|
const skuInfo = ref([]);
|
|
68
|
-
watch(
|
|
69
|
-
|
|
70
|
-
|
|
68
|
+
watch(
|
|
69
|
+
() => props.sku,
|
|
70
|
+
(value) => {
|
|
71
|
+
skuInfo.value = [].slice.call(value);
|
|
72
|
+
},
|
|
73
|
+
{ deep: true }
|
|
74
|
+
);
|
|
71
75
|
onMounted(() => {
|
|
72
76
|
if (props.sku.length > 0) {
|
|
73
77
|
skuInfo.value = [].slice.call(props.sku);
|
|
@@ -349,14 +353,20 @@ const _sfc_main = create({
|
|
|
349
353
|
setup(props, { emit, slots }) {
|
|
350
354
|
const showPopup = ref(props.visible);
|
|
351
355
|
const goodsCount = ref(props.stepperMin);
|
|
352
|
-
watch(
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
if (value == false) {
|
|
357
|
-
close();
|
|
356
|
+
watch(
|
|
357
|
+
() => props.visible,
|
|
358
|
+
(value) => {
|
|
359
|
+
showPopup.value = value;
|
|
358
360
|
}
|
|
359
|
-
|
|
361
|
+
);
|
|
362
|
+
watch(
|
|
363
|
+
() => showPopup.value,
|
|
364
|
+
(value) => {
|
|
365
|
+
if (value == false) {
|
|
366
|
+
close();
|
|
367
|
+
}
|
|
368
|
+
}
|
|
369
|
+
);
|
|
360
370
|
onMounted(() => {
|
|
361
371
|
});
|
|
362
372
|
const getSlots = (name) => slots[name];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.2.1
|
|
2
|
+
* @nutui/nutui v3.2.2-beta.1 Mon Aug 22 2022 15:19:47 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -49,9 +49,13 @@ const _sfc_main = create({
|
|
|
49
49
|
});
|
|
50
50
|
return () => {
|
|
51
51
|
var _a;
|
|
52
|
-
return h(
|
|
53
|
-
|
|
54
|
-
|
|
52
|
+
return h(
|
|
53
|
+
"view",
|
|
54
|
+
{
|
|
55
|
+
class: classes.value
|
|
56
|
+
},
|
|
57
|
+
(_a = slots.default) == null ? void 0 : _a.call(slots)
|
|
58
|
+
);
|
|
55
59
|
};
|
|
56
60
|
}
|
|
57
61
|
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.2.1
|
|
2
|
+
* @nutui/nutui v3.2.2-beta.1 Mon Aug 22 2022 15:19:47 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -83,10 +83,14 @@ const _sfc_main = create({
|
|
|
83
83
|
};
|
|
84
84
|
const renderFixed = () => {
|
|
85
85
|
var _a;
|
|
86
|
-
return h(
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
86
|
+
return h(
|
|
87
|
+
"view",
|
|
88
|
+
{
|
|
89
|
+
style: stickyStyle.value,
|
|
90
|
+
class: state.fixed ? `${componentName} nut-sticky--fixed` : componentName
|
|
91
|
+
},
|
|
92
|
+
(_a = slots.default) == null ? void 0 : _a.call(slots)
|
|
93
|
+
);
|
|
90
94
|
};
|
|
91
95
|
const onScroll = () => {
|
|
92
96
|
if (!isExistRoot())
|
|
@@ -123,9 +127,12 @@ const _sfc_main = create({
|
|
|
123
127
|
fixed: state.fixed
|
|
124
128
|
});
|
|
125
129
|
};
|
|
126
|
-
watch(
|
|
127
|
-
|
|
128
|
-
|
|
130
|
+
watch(
|
|
131
|
+
() => state.fixed,
|
|
132
|
+
(val) => {
|
|
133
|
+
emit("change", val);
|
|
134
|
+
}
|
|
135
|
+
);
|
|
129
136
|
onMounted(() => {
|
|
130
137
|
window.addEventListener("scroll", onScroll);
|
|
131
138
|
onScroll();
|
|
@@ -134,10 +141,14 @@ const _sfc_main = create({
|
|
|
134
141
|
window.removeEventListener("scroll", onScroll);
|
|
135
142
|
});
|
|
136
143
|
return () => {
|
|
137
|
-
return h(
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
144
|
+
return h(
|
|
145
|
+
"view",
|
|
146
|
+
{
|
|
147
|
+
style: rootStyle.value,
|
|
148
|
+
ref: root
|
|
149
|
+
},
|
|
150
|
+
[renderFixed()]
|
|
151
|
+
);
|
|
141
152
|
};
|
|
142
153
|
}
|
|
143
154
|
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.2.1
|
|
2
|
+
* @nutui/nutui v3.2.2-beta.1 Mon Aug 22 2022 15:19:47 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -391,19 +391,28 @@ const _sfc_main = create({
|
|
|
391
391
|
onBeforeUnmount(() => {
|
|
392
392
|
stopAutoPlay();
|
|
393
393
|
});
|
|
394
|
-
watch(
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
394
|
+
watch(
|
|
395
|
+
() => props.initPage,
|
|
396
|
+
(val) => {
|
|
397
|
+
nextTick(() => {
|
|
398
|
+
init(Number(val));
|
|
399
|
+
});
|
|
400
|
+
}
|
|
401
|
+
);
|
|
402
|
+
watch(
|
|
403
|
+
() => state.children.length,
|
|
404
|
+
() => {
|
|
405
|
+
nextTick(() => {
|
|
406
|
+
init();
|
|
407
|
+
});
|
|
408
|
+
}
|
|
409
|
+
);
|
|
410
|
+
watch(
|
|
411
|
+
() => props.autoPlay,
|
|
412
|
+
(val) => {
|
|
413
|
+
val > 0 ? autoplay() : stopAutoPlay();
|
|
414
|
+
}
|
|
415
|
+
);
|
|
407
416
|
return {
|
|
408
417
|
state,
|
|
409
418
|
classes,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.2.1
|
|
2
|
+
* @nutui/nutui v3.2.2-beta.1 Mon Aug 22 2022 15:19:47 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -85,13 +85,16 @@ const _sfc_main = create({
|
|
|
85
85
|
emit("update:modelValue", value);
|
|
86
86
|
emit("change", value, event);
|
|
87
87
|
};
|
|
88
|
-
watch(
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
88
|
+
watch(
|
|
89
|
+
() => props.modelValue,
|
|
90
|
+
(v) => {
|
|
91
|
+
if (updateType == "click") {
|
|
92
|
+
updateType = "";
|
|
93
|
+
} else {
|
|
94
|
+
emit("change", v);
|
|
95
|
+
}
|
|
93
96
|
}
|
|
94
|
-
|
|
97
|
+
);
|
|
95
98
|
return {
|
|
96
99
|
classes,
|
|
97
100
|
style,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.2.1
|
|
2
|
+
* @nutui/nutui v3.2.2-beta.1 Mon Aug 22 2022 15:19:47 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -59,9 +59,12 @@ const _sfc_main = create({
|
|
|
59
59
|
changeIndex
|
|
60
60
|
});
|
|
61
61
|
provide("parent", parentData);
|
|
62
|
-
watch(
|
|
63
|
-
|
|
64
|
-
|
|
62
|
+
watch(
|
|
63
|
+
() => props.visible,
|
|
64
|
+
(value) => {
|
|
65
|
+
parentData.modelValue = value;
|
|
66
|
+
}
|
|
67
|
+
);
|
|
65
68
|
return {
|
|
66
69
|
changeIndex
|
|
67
70
|
};
|