@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
|
*/
|
|
@@ -260,10 +260,13 @@ const _sfc_main = create({
|
|
|
260
260
|
lineAnimation();
|
|
261
261
|
};
|
|
262
262
|
const close = () => {
|
|
263
|
-
const resCopy = Object.assign(
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
263
|
+
const resCopy = Object.assign(
|
|
264
|
+
{
|
|
265
|
+
addressIdStr: "",
|
|
266
|
+
addressStr: ""
|
|
267
|
+
},
|
|
268
|
+
selectedRegion
|
|
269
|
+
);
|
|
267
270
|
const res = {
|
|
268
271
|
data: {},
|
|
269
272
|
type: privateType.value
|
|
@@ -306,35 +309,56 @@ const _sfc_main = create({
|
|
|
306
309
|
const handleElevatorItem = (key, item) => {
|
|
307
310
|
nextAreaList(item);
|
|
308
311
|
};
|
|
309
|
-
watch(
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
if (value == false) {
|
|
314
|
-
close();
|
|
315
|
-
} else {
|
|
316
|
-
initCustomSelected();
|
|
312
|
+
watch(
|
|
313
|
+
() => props.visible,
|
|
314
|
+
(value) => {
|
|
315
|
+
showPopup.value = value;
|
|
317
316
|
}
|
|
318
|
-
|
|
319
|
-
watch(
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
regionList.country = isCustom2.value ? transformData(value) : value;
|
|
327
|
-
});
|
|
328
|
-
watch(() => props.town, (value) => {
|
|
329
|
-
regionList.town = isCustom2.value ? transformData(value) : value;
|
|
330
|
-
});
|
|
331
|
-
watch(() => props.existAddress, (value) => {
|
|
332
|
-
value.forEach((item, index2) => {
|
|
333
|
-
if (item.selectedAddress) {
|
|
334
|
-
selectedExistAddress = item;
|
|
317
|
+
);
|
|
318
|
+
watch(
|
|
319
|
+
() => showPopup.value,
|
|
320
|
+
(value) => {
|
|
321
|
+
if (value == false) {
|
|
322
|
+
close();
|
|
323
|
+
} else {
|
|
324
|
+
initCustomSelected();
|
|
335
325
|
}
|
|
336
|
-
}
|
|
337
|
-
|
|
326
|
+
}
|
|
327
|
+
);
|
|
328
|
+
watch(
|
|
329
|
+
() => props.province,
|
|
330
|
+
(value) => {
|
|
331
|
+
regionList.province = isCustom2.value ? transformData(value) : value;
|
|
332
|
+
}
|
|
333
|
+
);
|
|
334
|
+
watch(
|
|
335
|
+
() => props.city,
|
|
336
|
+
(value) => {
|
|
337
|
+
regionList.city = isCustom2.value ? transformData(value) : value;
|
|
338
|
+
}
|
|
339
|
+
);
|
|
340
|
+
watch(
|
|
341
|
+
() => props.country,
|
|
342
|
+
(value) => {
|
|
343
|
+
regionList.country = isCustom2.value ? transformData(value) : value;
|
|
344
|
+
}
|
|
345
|
+
);
|
|
346
|
+
watch(
|
|
347
|
+
() => props.town,
|
|
348
|
+
(value) => {
|
|
349
|
+
regionList.town = isCustom2.value ? transformData(value) : value;
|
|
350
|
+
}
|
|
351
|
+
);
|
|
352
|
+
watch(
|
|
353
|
+
() => props.existAddress,
|
|
354
|
+
(value) => {
|
|
355
|
+
value.forEach((item, index2) => {
|
|
356
|
+
if (item.selectedAddress) {
|
|
357
|
+
selectedExistAddress = item;
|
|
358
|
+
}
|
|
359
|
+
});
|
|
360
|
+
}
|
|
361
|
+
);
|
|
338
362
|
return {
|
|
339
363
|
showPopup,
|
|
340
364
|
privateType,
|
|
@@ -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
|
*/
|
|
@@ -480,7 +480,11 @@ const _sfc_main = create({
|
|
|
480
480
|
});
|
|
481
481
|
}
|
|
482
482
|
};
|
|
483
|
-
watch(
|
|
483
|
+
watch(
|
|
484
|
+
() => props.data,
|
|
485
|
+
() => trowelData(),
|
|
486
|
+
{ deep: true }
|
|
487
|
+
);
|
|
484
488
|
const clickDelIcon = (event, item) => {
|
|
485
489
|
emit("handelDelIcon", event, item);
|
|
486
490
|
event.stopPropagation();
|
|
@@ -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
|
*/
|
|
@@ -142,9 +142,12 @@ const _sfc_main = create({
|
|
|
142
142
|
result += ("0" + seconds.toString()).slice(-2);
|
|
143
143
|
return result;
|
|
144
144
|
};
|
|
145
|
-
watch(
|
|
146
|
-
|
|
147
|
-
|
|
145
|
+
watch(
|
|
146
|
+
() => audioData.currentTime,
|
|
147
|
+
(value) => {
|
|
148
|
+
handle(value);
|
|
149
|
+
}
|
|
150
|
+
);
|
|
148
151
|
provide("audioParent", {
|
|
149
152
|
children: [],
|
|
150
153
|
props,
|
|
@@ -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
|
*/
|
|
@@ -64,9 +64,12 @@ const _sfc_main = create({
|
|
|
64
64
|
clearInterval(timer);
|
|
65
65
|
timer = 0;
|
|
66
66
|
});
|
|
67
|
-
watch(
|
|
68
|
-
|
|
69
|
-
|
|
67
|
+
watch(
|
|
68
|
+
() => props.danmu,
|
|
69
|
+
(newValue, oldVlaue) => {
|
|
70
|
+
danmuList.value = [...newValue];
|
|
71
|
+
}
|
|
72
|
+
);
|
|
70
73
|
const add = (word) => {
|
|
71
74
|
const _index = index2.value % danmuList.value.length;
|
|
72
75
|
if (!props.loop && index2.value === danmuList.value.length) {
|
|
@@ -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
|
*/
|
|
@@ -24,6 +24,10 @@ const _sfc_main = create({
|
|
|
24
24
|
type: Boolean,
|
|
25
25
|
default: false
|
|
26
26
|
},
|
|
27
|
+
toDateAnimation: {
|
|
28
|
+
type: Boolean,
|
|
29
|
+
default: true
|
|
30
|
+
},
|
|
27
31
|
poppable: {
|
|
28
32
|
type: Boolean,
|
|
29
33
|
default: true
|
|
@@ -160,7 +164,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
160
164
|
onSelect: _ctx.select,
|
|
161
165
|
"show-today": _ctx.showToday,
|
|
162
166
|
"show-title": _ctx.showTitle,
|
|
163
|
-
"show-sub-title": _ctx.showSubTitle
|
|
167
|
+
"show-sub-title": _ctx.showSubTitle,
|
|
168
|
+
"to-date-animation": _ctx.toDateAnimation
|
|
164
169
|
}, createSlots({ _: 2 }, [
|
|
165
170
|
_ctx.showTopBtn ? {
|
|
166
171
|
name: "btn",
|
|
@@ -192,7 +197,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
192
197
|
})
|
|
193
198
|
])
|
|
194
199
|
} : void 0
|
|
195
|
-
]), 1032, ["type", "is-auto-back-fill", "poppable", "title", "confirm-text", "start-text", "end-text", "default-value", "start-date", "end-date", "onUpdate", "onClose", "onChoose", "onSelect", "show-today", "show-title", "show-sub-title"])) : createCommentVNode("", true)
|
|
200
|
+
]), 1032, ["type", "is-auto-back-fill", "poppable", "title", "confirm-text", "start-text", "end-text", "default-value", "start-date", "end-date", "onUpdate", "onClose", "onChoose", "onSelect", "show-today", "show-title", "show-sub-title", "to-date-animation"])) : createCommentVNode("", true)
|
|
196
201
|
]),
|
|
197
202
|
_: 3
|
|
198
203
|
}, 8, ["visible", "onClickOverlay", "onClickCloseIcon"])) : (openBlock(), createBlock(_component_nut_calendar_item, {
|
|
@@ -214,6 +219,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
214
219
|
"show-today": _ctx.showToday,
|
|
215
220
|
"show-title": _ctx.showTitle,
|
|
216
221
|
"show-sub-title": _ctx.showSubTitle,
|
|
222
|
+
"to-date-animation": _ctx.toDateAnimation,
|
|
217
223
|
ref: "calendarRef"
|
|
218
224
|
}, createSlots({ _: 2 }, [
|
|
219
225
|
_ctx.showTopBtn ? {
|
|
@@ -246,7 +252,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
246
252
|
})
|
|
247
253
|
])
|
|
248
254
|
} : void 0
|
|
249
|
-
]), 1032, ["type", "is-auto-back-fill", "poppable", "title", "confirm-text", "start-text", "end-text", "default-value", "start-date", "end-date", "onUpdate", "onClose", "onChoose", "onSelect", "show-today", "show-title", "show-sub-title"]));
|
|
255
|
+
]), 1032, ["type", "is-auto-back-fill", "poppable", "title", "confirm-text", "start-text", "end-text", "default-value", "start-date", "end-date", "onUpdate", "onClose", "onChoose", "onSelect", "show-today", "show-title", "show-sub-title", "to-date-animation"]));
|
|
250
256
|
}
|
|
251
257
|
var index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
252
258
|
export { index as default };
|
|
@@ -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
|
*/
|
|
@@ -329,23 +329,33 @@ const _sfc_main$1 = create$1({
|
|
|
329
329
|
return pane.selectedNode && pane.selectedNode.value === node.value;
|
|
330
330
|
}
|
|
331
331
|
};
|
|
332
|
-
watch(
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
innerValue.value = value;
|
|
341
|
-
syncValue();
|
|
332
|
+
watch(
|
|
333
|
+
[configs, () => props.options],
|
|
334
|
+
() => {
|
|
335
|
+
init();
|
|
336
|
+
},
|
|
337
|
+
{
|
|
338
|
+
deep: true,
|
|
339
|
+
immediate: true
|
|
342
340
|
}
|
|
343
|
-
|
|
344
|
-
watch(
|
|
345
|
-
|
|
346
|
-
|
|
341
|
+
);
|
|
342
|
+
watch(
|
|
343
|
+
() => props.modelValue,
|
|
344
|
+
(value) => {
|
|
345
|
+
if (value !== innerValue.value) {
|
|
346
|
+
innerValue.value = value;
|
|
347
|
+
syncValue();
|
|
348
|
+
}
|
|
347
349
|
}
|
|
348
|
-
|
|
350
|
+
);
|
|
351
|
+
watch(
|
|
352
|
+
() => props.visible,
|
|
353
|
+
(val) => {
|
|
354
|
+
if (val && Array.isArray(innerValue.value) && innerValue.value.length > 0) {
|
|
355
|
+
syncValue();
|
|
356
|
+
}
|
|
357
|
+
}
|
|
358
|
+
);
|
|
349
359
|
return { panes, initLoading, tabsCursor, ...methods };
|
|
350
360
|
}
|
|
351
361
|
});
|
|
@@ -464,11 +474,14 @@ const _sfc_main = create({
|
|
|
464
474
|
const onPathChange = (pathNodes) => {
|
|
465
475
|
emit("pathChange", pathNodes);
|
|
466
476
|
};
|
|
467
|
-
watch(
|
|
468
|
-
|
|
469
|
-
|
|
477
|
+
watch(
|
|
478
|
+
() => props.modelValue,
|
|
479
|
+
(value) => {
|
|
480
|
+
if (value !== innerValue.value) {
|
|
481
|
+
innerValue.value = value;
|
|
482
|
+
}
|
|
470
483
|
}
|
|
471
|
-
|
|
484
|
+
);
|
|
472
485
|
return {
|
|
473
486
|
onChange,
|
|
474
487
|
onPathChange,
|
|
@@ -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
|
*/
|
|
@@ -86,13 +86,16 @@ const component = (componentName2, nutIcon) => {
|
|
|
86
86
|
emit("update:modelValue", value);
|
|
87
87
|
emit("change", value, label);
|
|
88
88
|
};
|
|
89
|
-
watch(
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
89
|
+
watch(
|
|
90
|
+
() => props.modelValue,
|
|
91
|
+
(v) => {
|
|
92
|
+
if (updateType == "click") {
|
|
93
|
+
updateType = "";
|
|
94
|
+
} else {
|
|
95
|
+
emit("change", v);
|
|
96
|
+
}
|
|
94
97
|
}
|
|
95
|
-
|
|
98
|
+
);
|
|
96
99
|
const renderIcon = () => {
|
|
97
100
|
const { iconName, iconSize, iconActiveName, iconClassPrefix, iconFontClassName, iconIndeterminateName } = props;
|
|
98
101
|
return h(nutIcon, {
|
|
@@ -105,9 +108,13 @@ const component = (componentName2, nutIcon) => {
|
|
|
105
108
|
};
|
|
106
109
|
const renderLabel = () => {
|
|
107
110
|
var _a;
|
|
108
|
-
return h(
|
|
109
|
-
|
|
110
|
-
|
|
111
|
+
return h(
|
|
112
|
+
"view",
|
|
113
|
+
{
|
|
114
|
+
class: `${componentName2}__label ${pDisabled.value ? `${componentName2}__label--disabled` : ""}`
|
|
115
|
+
},
|
|
116
|
+
(_a = slots.default) == null ? void 0 : _a.call(slots)
|
|
117
|
+
);
|
|
111
118
|
};
|
|
112
119
|
const handleClick = (e) => {
|
|
113
120
|
var _a, _b;
|
|
@@ -135,14 +142,21 @@ const component = (componentName2, nutIcon) => {
|
|
|
135
142
|
onMounted(() => {
|
|
136
143
|
hasParent.value && parent["relation"](getCurrentInstance());
|
|
137
144
|
});
|
|
138
|
-
watch(
|
|
139
|
-
|
|
140
|
-
|
|
145
|
+
watch(
|
|
146
|
+
() => props.indeterminate,
|
|
147
|
+
(newVal) => {
|
|
148
|
+
state.partialSelect = newVal;
|
|
149
|
+
}
|
|
150
|
+
);
|
|
141
151
|
return () => {
|
|
142
|
-
return h(
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
152
|
+
return h(
|
|
153
|
+
"view",
|
|
154
|
+
{
|
|
155
|
+
class: `${componentName2} ${props.textPosition === "left" ? `${componentName2}--reverse` : ""}`,
|
|
156
|
+
onClick: handleClick
|
|
157
|
+
},
|
|
158
|
+
[renderIcon(), renderLabel()]
|
|
159
|
+
);
|
|
146
160
|
};
|
|
147
161
|
}
|
|
148
162
|
};
|
|
@@ -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
|
*/
|
|
@@ -69,15 +69,22 @@ const _sfc_main = create({
|
|
|
69
69
|
updateValue,
|
|
70
70
|
relation
|
|
71
71
|
});
|
|
72
|
-
watch(
|
|
73
|
-
|
|
74
|
-
|
|
72
|
+
watch(
|
|
73
|
+
() => props.modelValue,
|
|
74
|
+
(value) => {
|
|
75
|
+
emit("change", value);
|
|
76
|
+
}
|
|
77
|
+
);
|
|
75
78
|
useExpose({ toggleAll, toggleReverse });
|
|
76
79
|
return () => {
|
|
77
80
|
var _a;
|
|
78
|
-
return h(
|
|
79
|
-
|
|
80
|
-
|
|
81
|
+
return h(
|
|
82
|
+
"view",
|
|
83
|
+
{
|
|
84
|
+
class: `${componentName}`
|
|
85
|
+
},
|
|
86
|
+
(_a = slots.default) == null ? void 0 : _a.call(slots)
|
|
87
|
+
);
|
|
81
88
|
};
|
|
82
89
|
}
|
|
83
90
|
});
|
package/dist/packages/_es/Col.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
|
*/
|
|
@@ -19,8 +19,8 @@ const _sfc_main = create({
|
|
|
19
19
|
default: "0"
|
|
20
20
|
}
|
|
21
21
|
},
|
|
22
|
-
emits: [
|
|
23
|
-
setup(props
|
|
22
|
+
emits: [],
|
|
23
|
+
setup(props) {
|
|
24
24
|
const prefixCls = componentName;
|
|
25
25
|
const gutter = inject("gutter");
|
|
26
26
|
const classes = computed(() => {
|
|
@@ -37,22 +37,16 @@ const _sfc_main = create({
|
|
|
37
37
|
paddingRight: gutter / 2 + "px"
|
|
38
38
|
};
|
|
39
39
|
});
|
|
40
|
-
const handleClick = (evt) => {
|
|
41
|
-
evt.stopPropagation();
|
|
42
|
-
emit("click", evt);
|
|
43
|
-
};
|
|
44
40
|
return {
|
|
45
41
|
classes,
|
|
46
|
-
style
|
|
47
|
-
handleClick
|
|
42
|
+
style
|
|
48
43
|
};
|
|
49
44
|
}
|
|
50
45
|
});
|
|
51
46
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
52
47
|
return openBlock(), createElementBlock("view", {
|
|
53
48
|
class: normalizeClass(_ctx.classes),
|
|
54
|
-
style: normalizeStyle(_ctx.style)
|
|
55
|
-
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.handleClick && _ctx.handleClick(...args))
|
|
49
|
+
style: normalizeStyle(_ctx.style)
|
|
56
50
|
}, [
|
|
57
51
|
renderSlot(_ctx.$slots, "default")
|
|
58
52
|
], 6);
|
|
@@ -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
|
*/
|
|
@@ -53,25 +53,28 @@ const _sfc_main = create({
|
|
|
53
53
|
setup(props, { emit, slots }) {
|
|
54
54
|
const collapseDom = ref(null);
|
|
55
55
|
const collapseChldren = ref([]);
|
|
56
|
-
watch(
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
56
|
+
watch(
|
|
57
|
+
() => props.active,
|
|
58
|
+
(newval, oldval) => {
|
|
59
|
+
let doms = collapseChldren.value;
|
|
60
|
+
Array.from(doms).forEach((item) => {
|
|
61
|
+
if (typeof newval == "number" || typeof newval == "string") {
|
|
62
|
+
if (newval == item.name) {
|
|
63
|
+
item.changeOpen(true);
|
|
64
|
+
} else {
|
|
65
|
+
item.changeOpen(false);
|
|
66
|
+
}
|
|
67
|
+
} else if (Object.values(newval) instanceof Array) {
|
|
68
|
+
if (newval.indexOf(Number(item.name)) > -1 || newval.indexOf(String(item.name)) > -1) {
|
|
69
|
+
item.changeOpen(true);
|
|
70
|
+
} else {
|
|
71
|
+
item.changeOpen(false);
|
|
72
|
+
}
|
|
64
73
|
}
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
item.changeOpen(false);
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
item.animation();
|
|
73
|
-
});
|
|
74
|
-
});
|
|
74
|
+
item.animation();
|
|
75
|
+
});
|
|
76
|
+
}
|
|
77
|
+
);
|
|
75
78
|
onMounted(() => {
|
|
76
79
|
collapseChldren.value = getCurrentInstance().provides.collapseParent.children || [];
|
|
77
80
|
});
|