@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
|
*/
|
|
@@ -90,6 +90,7 @@ const _sfc_main = create({
|
|
|
90
90
|
return null;
|
|
91
91
|
});
|
|
92
92
|
watch(choosed, (value, oldValue) => {
|
|
93
|
+
var _a, _b;
|
|
93
94
|
state.active = value;
|
|
94
95
|
let index2 = value;
|
|
95
96
|
if (props.name) {
|
|
@@ -97,20 +98,18 @@ const _sfc_main = create({
|
|
|
97
98
|
return item.name == value;
|
|
98
99
|
});
|
|
99
100
|
}
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
location.replace(to);
|
|
111
|
-
}
|
|
101
|
+
if ((_a = parent.children[index2]) == null ? void 0 : _a.href) {
|
|
102
|
+
window.location.href = parent.children[index2].href;
|
|
103
|
+
return;
|
|
104
|
+
}
|
|
105
|
+
if ((_b = parent.children[index2]) == null ? void 0 : _b.to) {
|
|
106
|
+
let to = parent.children[index2].to;
|
|
107
|
+
if (to && router) {
|
|
108
|
+
router.push(to);
|
|
109
|
+
} else {
|
|
110
|
+
location.replace(to);
|
|
112
111
|
}
|
|
113
|
-
}
|
|
112
|
+
}
|
|
114
113
|
});
|
|
115
114
|
return {
|
|
116
115
|
state,
|
|
@@ -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
|
*/
|
|
@@ -88,9 +88,12 @@ const component = (componentName2, translate2) => {
|
|
|
88
88
|
return [columns.key, columns.render];
|
|
89
89
|
});
|
|
90
90
|
};
|
|
91
|
-
watch(
|
|
92
|
-
|
|
93
|
-
|
|
91
|
+
watch(
|
|
92
|
+
() => props.data,
|
|
93
|
+
(val) => {
|
|
94
|
+
state.curData = val.slice();
|
|
95
|
+
}
|
|
96
|
+
);
|
|
94
97
|
return {
|
|
95
98
|
...toRefs(state),
|
|
96
99
|
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
|
*/
|
|
@@ -104,15 +104,21 @@ const component = {
|
|
|
104
104
|
}
|
|
105
105
|
findTabsIndex(props.modelValue);
|
|
106
106
|
};
|
|
107
|
-
watch(
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
107
|
+
watch(
|
|
108
|
+
() => {
|
|
109
|
+
var _a;
|
|
110
|
+
return (_a = slots.default) == null ? void 0 : _a.call(slots);
|
|
111
|
+
},
|
|
112
|
+
(vnodes) => {
|
|
113
|
+
init(vnodes);
|
|
114
|
+
}
|
|
115
|
+
);
|
|
116
|
+
watch(
|
|
117
|
+
() => props.modelValue,
|
|
118
|
+
(value) => {
|
|
119
|
+
findTabsIndex(value);
|
|
120
|
+
}
|
|
121
|
+
);
|
|
116
122
|
onMounted(init);
|
|
117
123
|
onActivated(init);
|
|
118
124
|
const contentStyle = computed(() => {
|
package/dist/packages/_es/Tag.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
|
*/
|
|
@@ -91,11 +91,14 @@ const _sfc_main = create({
|
|
|
91
91
|
textarea.style.height = height + "px";
|
|
92
92
|
}
|
|
93
93
|
};
|
|
94
|
-
watch(
|
|
95
|
-
|
|
96
|
-
|
|
94
|
+
watch(
|
|
95
|
+
() => props.modelValue,
|
|
96
|
+
() => {
|
|
97
|
+
if (props.autosize) {
|
|
98
|
+
nextTick(getContentHeight);
|
|
99
|
+
}
|
|
97
100
|
}
|
|
98
|
-
|
|
101
|
+
);
|
|
99
102
|
const emitChange = (value, event) => {
|
|
100
103
|
if (props.maxLength && value.length > Number(props.maxLength)) {
|
|
101
104
|
value = value.substring(0, Number(props.maxLength));
|
|
@@ -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
|
*/
|
|
@@ -106,11 +106,14 @@ const _sfc_main = create({
|
|
|
106
106
|
if (props.duration) {
|
|
107
107
|
show();
|
|
108
108
|
}
|
|
109
|
-
watch(
|
|
110
|
-
|
|
111
|
-
|
|
109
|
+
watch(
|
|
110
|
+
() => props.duration,
|
|
111
|
+
(val) => {
|
|
112
|
+
if (val) {
|
|
113
|
+
show();
|
|
114
|
+
}
|
|
112
115
|
}
|
|
113
|
-
|
|
116
|
+
);
|
|
114
117
|
const hasIcon = computed(() => {
|
|
115
118
|
if (props.type !== "text") {
|
|
116
119
|
return true;
|
|
@@ -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
|
*/
|
|
@@ -29,10 +29,14 @@ class Uploader {
|
|
|
29
29
|
const xhr = new XMLHttpRequest();
|
|
30
30
|
xhr.timeout = options.timeout;
|
|
31
31
|
if (xhr.upload) {
|
|
32
|
-
xhr.upload.addEventListener(
|
|
33
|
-
|
|
34
|
-
(
|
|
35
|
-
|
|
32
|
+
xhr.upload.addEventListener(
|
|
33
|
+
"progress",
|
|
34
|
+
(e) => {
|
|
35
|
+
var _a2;
|
|
36
|
+
(_a2 = options.onProgress) == null ? void 0 : _a2.call(options, e, options);
|
|
37
|
+
},
|
|
38
|
+
false
|
|
39
|
+
);
|
|
36
40
|
xhr.onreadystatechange = () => {
|
|
37
41
|
var _a2, _b;
|
|
38
42
|
if (xhr.readyState === 4) {
|
|
@@ -225,9 +229,11 @@ const _sfc_main = create({
|
|
|
225
229
|
if (props.autoUpload) {
|
|
226
230
|
task.upload();
|
|
227
231
|
} else {
|
|
228
|
-
uploadQueue.push(
|
|
229
|
-
resolve
|
|
230
|
-
|
|
232
|
+
uploadQueue.push(
|
|
233
|
+
new Promise((resolve, reject) => {
|
|
234
|
+
resolve(task);
|
|
235
|
+
})
|
|
236
|
+
);
|
|
231
237
|
}
|
|
232
238
|
};
|
|
233
239
|
const clearUploadQueue = (index2 = -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
|
*/
|
|
@@ -76,16 +76,23 @@ const _sfc_main = create({
|
|
|
76
76
|
const isDisabled = computed(() => {
|
|
77
77
|
return props.options.disabled;
|
|
78
78
|
});
|
|
79
|
-
watch(
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
79
|
+
watch(
|
|
80
|
+
() => props.source,
|
|
81
|
+
(newValue) => {
|
|
82
|
+
if (newValue.src) {
|
|
83
|
+
nextTick(() => {
|
|
84
|
+
state.videoElm.load();
|
|
85
|
+
});
|
|
86
|
+
}
|
|
84
87
|
}
|
|
85
|
-
|
|
86
|
-
watch(
|
|
87
|
-
|
|
88
|
-
|
|
88
|
+
);
|
|
89
|
+
watch(
|
|
90
|
+
() => props.options,
|
|
91
|
+
(newValue) => {
|
|
92
|
+
state.state.isMuted = newValue ? newValue.muted : false;
|
|
93
|
+
},
|
|
94
|
+
{ immediate: true }
|
|
95
|
+
);
|
|
89
96
|
const init = () => {
|
|
90
97
|
state.videoElm = root.value;
|
|
91
98
|
if (props.options.autoplay) {
|
|
@@ -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
|
*/
|
|
@@ -120,7 +120,13 @@ const _sfc_main = create({
|
|
|
120
120
|
img.referrerPolicy = "no-referrer";
|
|
121
121
|
img.src = image;
|
|
122
122
|
img.onload = () => {
|
|
123
|
-
ctx.drawImage(
|
|
123
|
+
ctx.drawImage(
|
|
124
|
+
img,
|
|
125
|
+
-imageWidth * ratio / 2,
|
|
126
|
+
-imageHeight * ratio / 2,
|
|
127
|
+
imageWidth * ratio,
|
|
128
|
+
imageHeight * ratio
|
|
129
|
+
);
|
|
124
130
|
ctx.restore();
|
|
125
131
|
state.base64Url = canvas.toDataURL();
|
|
126
132
|
};
|
|
@@ -141,25 +147,28 @@ const _sfc_main = create({
|
|
|
141
147
|
}
|
|
142
148
|
};
|
|
143
149
|
init();
|
|
144
|
-
watch(
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
150
|
+
watch(
|
|
151
|
+
() => [
|
|
152
|
+
zIndex,
|
|
153
|
+
gapX,
|
|
154
|
+
gapY,
|
|
155
|
+
width,
|
|
156
|
+
height,
|
|
157
|
+
rotate,
|
|
158
|
+
image,
|
|
159
|
+
imageWidth,
|
|
160
|
+
imageHeight,
|
|
161
|
+
content,
|
|
162
|
+
fontStyle,
|
|
163
|
+
fontWeight,
|
|
164
|
+
fontColor,
|
|
165
|
+
fontSize,
|
|
166
|
+
fontFamily
|
|
167
|
+
],
|
|
168
|
+
() => {
|
|
169
|
+
init();
|
|
170
|
+
}
|
|
171
|
+
);
|
|
163
172
|
const classes = computed(() => {
|
|
164
173
|
const prefixCls = componentName;
|
|
165
174
|
return {
|
|
@@ -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
|
*/
|
|
@@ -54,11 +54,17 @@ function useProvide(key, childName) {
|
|
|
54
54
|
};
|
|
55
55
|
const extend = Object.assign;
|
|
56
56
|
return (value) => {
|
|
57
|
-
provide(
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
57
|
+
provide(
|
|
58
|
+
key,
|
|
59
|
+
extend(
|
|
60
|
+
{
|
|
61
|
+
add,
|
|
62
|
+
remove,
|
|
63
|
+
internalChildren
|
|
64
|
+
},
|
|
65
|
+
value
|
|
66
|
+
)
|
|
67
|
+
);
|
|
62
68
|
return {
|
|
63
69
|
internalChildren
|
|
64
70
|
};
|
|
@@ -126,10 +132,14 @@ const component = {
|
|
|
126
132
|
});
|
|
127
133
|
return () => {
|
|
128
134
|
var _a;
|
|
129
|
-
return h(
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
135
|
+
return h(
|
|
136
|
+
"view",
|
|
137
|
+
{
|
|
138
|
+
class: rootClass.value,
|
|
139
|
+
style: rootStyle.value
|
|
140
|
+
},
|
|
141
|
+
(_a = slots.default) == null ? void 0 : _a.call(slots)
|
|
142
|
+
);
|
|
133
143
|
};
|
|
134
144
|
}
|
|
135
145
|
};
|
|
@@ -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
|
*/
|
|
@@ -384,11 +384,17 @@ const _sfc_main = create({
|
|
|
384
384
|
}
|
|
385
385
|
monthInfo.cssScrollHeight = cssScrollHeight;
|
|
386
386
|
if (type == "next") {
|
|
387
|
-
if (!state.endData || !Utils.compareDate(
|
|
387
|
+
if (!state.endData || !Utils.compareDate(
|
|
388
|
+
`${state.endData[0]}-${state.endData[1]}-${Utils.getMonthDays(state.endData[0], state.endData[1])}`,
|
|
389
|
+
`${curData[0]}-${curData[1]}-${curData[2]}`
|
|
390
|
+
)) {
|
|
388
391
|
state.monthsData.push(monthInfo);
|
|
389
392
|
}
|
|
390
393
|
} else {
|
|
391
|
-
if (!state.startData || !Utils.compareDate(
|
|
394
|
+
if (!state.startData || !Utils.compareDate(
|
|
395
|
+
`${curData[0]}-${curData[1]}-${curData[2]}`,
|
|
396
|
+
`${state.startData[0]}-${state.startData[1]}-01`
|
|
397
|
+
)) {
|
|
392
398
|
state.monthsData.unshift(monthInfo);
|
|
393
399
|
} else {
|
|
394
400
|
state.unLoadPrev = true;
|
|
@@ -440,9 +446,9 @@ const _sfc_main = create({
|
|
|
440
446
|
if (state.currDate.length > 0) {
|
|
441
447
|
let defaultArr = [];
|
|
442
448
|
let obj = {};
|
|
443
|
-
state.currDate.forEach((item
|
|
449
|
+
state.currDate.forEach((item) => {
|
|
444
450
|
if (propStartDate && !Utils.compareDate(item, propStartDate) && propEndDate && !Utils.compareDate(propEndDate, item)) {
|
|
445
|
-
if (!
|
|
451
|
+
if (!Object.hasOwnProperty.call(obj, item)) {
|
|
446
452
|
defaultArr.push(item);
|
|
447
453
|
obj[item] = item;
|
|
448
454
|
}
|
|
@@ -571,7 +577,7 @@ const _sfc_main = create({
|
|
|
571
577
|
}
|
|
572
578
|
return false;
|
|
573
579
|
};
|
|
574
|
-
const rangeTip = (
|
|
580
|
+
const rangeTip = () => {
|
|
575
581
|
if (state.currDate.length >= 2) {
|
|
576
582
|
return Utils.isEqual(state.currDate[0], state.currDate[1]);
|
|
577
583
|
}
|
|
@@ -621,13 +627,16 @@ const _sfc_main = create({
|
|
|
621
627
|
initData();
|
|
622
628
|
};
|
|
623
629
|
initData();
|
|
624
|
-
watch(
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
630
|
+
watch(
|
|
631
|
+
() => props.defaultValue,
|
|
632
|
+
(val) => {
|
|
633
|
+
if (val) {
|
|
634
|
+
if (props.poppable) {
|
|
635
|
+
resetRender();
|
|
636
|
+
}
|
|
628
637
|
}
|
|
629
638
|
}
|
|
630
|
-
|
|
639
|
+
);
|
|
631
640
|
return {
|
|
632
641
|
weeks,
|
|
633
642
|
compConthsData,
|
|
@@ -767,7 +776,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
767
776
|
!_ctx.bottomInfo && _ctx.showToday && _ctx.isCurrDay(day) ? (openBlock(), createElementBlock("view", _hoisted_12, toDisplayString(_ctx.translate("today")), 1)) : createCommentVNode("", true),
|
|
768
777
|
_ctx.isStartTip(day, month) ? (openBlock(), createElementBlock("view", {
|
|
769
778
|
key: 3,
|
|
770
|
-
class: normalizeClass(["calendar-day-tip", { "calendar-curr-tips-top": _ctx.rangeTip(
|
|
779
|
+
class: normalizeClass(["calendar-day-tip", { "calendar-curr-tips-top": _ctx.rangeTip() }])
|
|
771
780
|
}, toDisplayString(_ctx.startText || _ctx.translate("start")), 3)) : createCommentVNode("", true),
|
|
772
781
|
_ctx.isEndTip(day, month) ? (openBlock(), createElementBlock("view", _hoisted_13, toDisplayString(_ctx.endText || _ctx.translate("end")), 1)) : createCommentVNode("", true)
|
|
773
782
|
], 10, _hoisted_8);
|
package/dist/packages/_es/raf.js
CHANGED
|
@@ -1168,7 +1168,7 @@
|
|
|
1168
1168
|
"description": "属性说明:预览的视频数组(视频自动放到图片之前、taro场景暂不支持),默认值:[]"
|
|
1169
1169
|
},
|
|
1170
1170
|
"nut-imagepreview/images": {
|
|
1171
|
-
"type": "
|
|
1171
|
+
"type": "{ src: string }[]",
|
|
1172
1172
|
"description": "属性说明:预览图片数组,默认值:[]"
|
|
1173
1173
|
},
|
|
1174
1174
|
"nut-imagepreview/autoplay": {
|
|
@@ -1439,6 +1439,22 @@
|
|
|
1439
1439
|
"type": "boolean",
|
|
1440
1440
|
"description": "属性说明:只读状态禁用输入框操作行为,默认值:false"
|
|
1441
1441
|
},
|
|
1442
|
+
"nut-inputnumber/icon-left `v3.2.2`": {
|
|
1443
|
+
"type": "string",
|
|
1444
|
+
"description": "属性说明:左侧操作符图标名,同 Icon 组件 name 属性,默认值:`minus`"
|
|
1445
|
+
},
|
|
1446
|
+
"nut-inputnumber/icon-right `v3.2.2`": {
|
|
1447
|
+
"type": "string",
|
|
1448
|
+
"description": "属性说明:右侧操作符图标名,同 Icon 组件 name 属性,默认值:`plus`"
|
|
1449
|
+
},
|
|
1450
|
+
"nut-inputnumber/font-class-name `v3.2.2`": {
|
|
1451
|
+
"type": "string",
|
|
1452
|
+
"description": "属性说明:自定义icon 字体基础类名,默认值:`nutui-iconfont`"
|
|
1453
|
+
},
|
|
1454
|
+
"nut-inputnumber/class-prefix `v3.2.2`": {
|
|
1455
|
+
"type": "string",
|
|
1456
|
+
"description": "属性说明:自定义icon 类名前缀,用于使用自定义图标,默认值:`nut-icon`"
|
|
1457
|
+
},
|
|
1442
1458
|
"nut-layout/type": {
|
|
1443
1459
|
"type": "string",
|
|
1444
1460
|
"description": "属性说明:布局方式,可选值为flex,默认值:-"
|
|
@@ -1779,6 +1795,10 @@
|
|
|
1779
1795
|
"type": "boolean",
|
|
1780
1796
|
"description": "属性说明:是否开启3D效果,默认值:true"
|
|
1781
1797
|
},
|
|
1798
|
+
"nut-picker/swipe-duration`v3.2.2`": {
|
|
1799
|
+
"type": "number、string",
|
|
1800
|
+
"description": "属性说明:惯性滚动时长,默认值:1000"
|
|
1801
|
+
},
|
|
1782
1802
|
"nut-popover/list": {
|
|
1783
1803
|
"type": "list[]",
|
|
1784
1804
|
"description": "属性说明:选项列表,默认值:[]"
|