@nutui/nutui 3.1.23-beta.3 → 3.1.23-beta.6
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/README.md +7 -0
- package/dist/nutui.es.js +356 -286
- package/dist/nutui.umd.js +356 -286
- package/dist/packages/_es/ActionSheet.js +22 -4
- package/dist/packages/_es/Address.js +26 -8
- package/dist/packages/_es/AddressList.js +2 -2
- package/dist/packages/_es/Animate.js +21 -2
- package/dist/packages/_es/Audio.js +22 -5
- 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 +1 -1
- package/dist/packages/_es/Badge.js +1 -1
- package/dist/packages/_es/Barrage.js +1 -1
- 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 +46 -19
- package/dist/packages/_es/Category.js +1 -1
- package/dist/packages/_es/CategoryPane.js +2 -2
- package/dist/packages/_es/Cell.js +1 -1
- package/dist/packages/_es/CellGroup.js +1 -1
- package/dist/packages/_es/Checkbox.js +1 -1
- package/dist/packages/_es/CheckboxGroup.js +1 -1
- package/dist/packages/_es/CircleProgress.js +1 -1
- package/dist/packages/_es/Col.js +1 -1
- package/dist/packages/_es/Collapse.js +10 -9
- package/dist/packages/_es/CollapseItem.js +24 -7
- package/dist/packages/_es/Comment.js +1 -1
- package/dist/packages/_es/ConfigProvider.js +1 -1
- package/dist/packages/_es/CountDown.js +23 -5
- package/dist/packages/_es/CountUp.js +22 -5
- package/dist/packages/_es/DatePicker.js +32 -9
- package/dist/packages/_es/Dialog.js +22 -4
- package/dist/packages/_es/Divider.js +24 -7
- package/dist/packages/_es/Drag.js +1 -1
- package/dist/packages/_es/Ecard.js +1 -1
- package/dist/packages/_es/Elevator.js +24 -5
- package/dist/packages/_es/Ellipsis.js +21 -2
- package/dist/packages/_es/Empty.js +1 -1
- package/dist/packages/_es/FixedNav.js +1 -1
- package/dist/packages/_es/Form.js +1 -1
- 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 +1 -1
- package/dist/packages/_es/Image.js +21 -2
- package/dist/packages/_es/ImagePreview.js +26 -8
- package/dist/packages/_es/Indicator.js +1 -1
- package/dist/packages/_es/InfiniteLoading.js +24 -5
- package/dist/packages/_es/Input.js +31 -4
- package/dist/packages/_es/InputNumber.js +1 -1
- package/dist/packages/_es/Layout.js +1 -1
- package/dist/packages/_es/List.js +22 -4
- package/dist/packages/_es/Menu.js +1 -1
- package/dist/packages/_es/MenuItem.js +28 -5
- package/dist/packages/_es/Navbar.js +1 -1
- package/dist/packages/_es/NoticeBar.js +23 -6
- package/dist/packages/_es/Notify.js +32 -19
- package/dist/packages/_es/NumberKeyboard.js +1 -1
- package/dist/packages/_es/OldPicker.js +28 -12
- package/dist/packages/_es/OverLay.js +20 -5
- package/dist/packages/_es/Pagination.js +1 -1
- package/dist/packages/_es/Picker.js +40 -14
- package/dist/packages/_es/Popover.js +22 -4
- package/dist/packages/_es/Popup.js +28 -14
- 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 +1 -1
- package/dist/packages/_es/RadioGroup.js +1 -1
- package/dist/packages/_es/Range.js +24 -5
- package/dist/packages/_es/Rate.js +24 -5
- package/dist/packages/_es/Row.js +1 -1
- package/dist/packages/_es/SearchBar.js +24 -5
- package/dist/packages/_es/ShortPassword.js +1 -1
- package/dist/packages/_es/SideNavBar.js +22 -4
- package/dist/packages/_es/SideNavBarItem.js +1 -1
- package/dist/packages/_es/Signature.js +28 -7
- package/dist/packages/_es/Skeleton.js +1 -1
- package/dist/packages/_es/Sku.js +22 -4
- package/dist/packages/_es/Step.js +22 -4
- package/dist/packages/_es/Steps.js +1 -1
- package/dist/packages/_es/Sticky.js +1 -1
- package/dist/packages/_es/SubSideNavBar.js +22 -4
- package/dist/packages/_es/Swipe.js +24 -5
- package/dist/packages/_es/Swiper.js +1 -1
- package/dist/packages/_es/SwiperItem.js +1 -1
- package/dist/packages/_es/Switch.js +1 -1
- package/dist/packages/_es/TabPane.js +1 -1
- package/dist/packages/_es/Tabbar.js +3 -3
- package/dist/packages/_es/TabbarItem.js +33 -13
- package/dist/packages/_es/Table.js +57 -24
- package/dist/packages/_es/Tabs.js +20 -5
- package/dist/packages/_es/Tag.js +1 -1
- package/dist/packages/_es/TextArea.js +1 -1
- 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 +31 -12
- package/dist/packages/_es/Uploader.js +29 -7
- package/dist/packages/_es/Video.js +24 -6
- package/dist/packages/_es/WaterMark.js +21 -2
- package/dist/packages/_es/common.js +1 -1
- 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 +24 -6
- 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/backtop/index.scss +8 -0
- package/dist/packages/badge/index.scss +8 -0
- package/dist/packages/calendar/index.scss +27 -1
- package/dist/packages/cascader/index.scss +13 -0
- package/dist/packages/cell/index.scss +2 -1
- package/dist/packages/index.d.ts +3 -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/notify/index.scss +5 -0
- package/dist/packages/oldpicker/index.scss +2 -0
- package/dist/packages/picker/index.scss +2 -0
- package/dist/packages/table/index.scss +33 -0
- package/dist/packages/textarea/index.scss +6 -0
- package/dist/packages/timedetail/index.scss +16 -0
- package/dist/packages/timepannel/index.scss +10 -0
- package/dist/packages/timeselect/index.scss +19 -1
- package/dist/packages/uploader/index.scss +10 -0
- package/dist/smartips/web-types.json +1 -1
- package/dist/style.css +1 -1
- package/dist/style.es.js +1 -1
- package/dist/styles/themes/default.scss +53 -53
- package/dist/styles/themes/jdb.scss +53 -53
- package/dist/styles/themes/jdt.scss +53 -53
- package/dist/styles/variables-jdb.scss +5 -4
- package/dist/styles/variables-jdt.scss +5 -4
- package/dist/styles/variables.scss +5 -4
- package/dist/types/__VUE/actionsheet/index.vue.d.ts +3 -3
- package/dist/types/__VUE/address/index.vue.d.ts +4 -4
- package/dist/types/__VUE/avatar/index.vue.d.ts +4 -4
- package/dist/types/__VUE/backtop/index.vue.d.ts +2 -2
- package/dist/types/__VUE/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 +2 -2
- package/dist/types/__VUE/cell/index.vue.d.ts +4 -4
- 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 +2 -2
- package/dist/types/__VUE/grid/index.vue.d.ts +3 -3
- package/dist/types/__VUE/input/index.vue.d.ts +3 -2
- package/dist/types/__VUE/menu/index.vue.d.ts +2 -2
- package/dist/types/__VUE/menuitem/index.vue.d.ts +6 -0
- package/dist/types/__VUE/notify/index.vue.d.ts +5 -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/Column.vue.d.ts +1 -1
- package/dist/types/__VUE/picker/index.vue.d.ts +4 -4
- package/dist/types/__VUE/popover/index.vue.d.ts +4 -4
- package/dist/types/__VUE/popup/index.vue.d.ts +4 -4
- package/dist/types/__VUE/range/index.vue.d.ts +1 -1
- package/dist/types/__VUE/rate/index.vue.d.ts +2 -2
- package/dist/types/__VUE/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/switch/index.vue.d.ts +4 -4
- package/dist/types/__VUE/tabbar/index.vue.d.ts +3 -3
- package/dist/types/__VUE/tabbaritem/index.vue.d.ts +9 -3
- package/dist/types/__VUE/table/common.d.ts +3 -0
- package/dist/types/__VUE/table/index.vue.d.ts +3 -0
- package/dist/types/__VUE/table/types.d.ts +2 -0
- 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/uploader/uploader.d.ts +1 -0
- package/dist/types/index.d.ts +1 -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.1.23-beta.
|
|
21
|
+
* @nutui/nutui v3.1.23-beta.6 Thu Jul 28 2022 18:06:31 GMT+0800 (中国标准时间)
|
|
3
22
|
* (c) 2022 @jdf2e.
|
|
4
23
|
* Released under the MIT License.
|
|
5
24
|
*/
|
|
@@ -13,8 +32,7 @@ import "./Icon.js";
|
|
|
13
32
|
import "./pxCheck.js";
|
|
14
33
|
const { componentName, create } = createComponent("actionsheet");
|
|
15
34
|
const _sfc_main = create({
|
|
16
|
-
props: {
|
|
17
|
-
...popupProps,
|
|
35
|
+
props: __spreadProps(__spreadValues({}, popupProps), {
|
|
18
36
|
cancelTxt: {
|
|
19
37
|
type: String,
|
|
20
38
|
default: ""
|
|
@@ -55,7 +73,7 @@ const _sfc_main = create({
|
|
|
55
73
|
type: Boolean,
|
|
56
74
|
default: true
|
|
57
75
|
}
|
|
58
|
-
},
|
|
76
|
+
}),
|
|
59
77
|
emits: ["cancel", "close", "choose", "update:visible"],
|
|
60
78
|
setup(props, { emit }) {
|
|
61
79
|
const slotDefault = !!useSlots().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.1.23-beta.
|
|
21
|
+
* @nutui/nutui v3.1.23-beta.6 Thu Jul 28 2022 18:06:31 GMT+0800 (中国标准时间)
|
|
3
22
|
* (c) 2022 @jdf2e.
|
|
4
23
|
* Released under the MIT License.
|
|
5
24
|
*/
|
|
@@ -14,8 +33,7 @@ import "./pxCheck.js";
|
|
|
14
33
|
const { componentName, create, translate } = createComponent("address");
|
|
15
34
|
const _sfc_main = create({
|
|
16
35
|
inheritAttrs: false,
|
|
17
|
-
props: {
|
|
18
|
-
...popupProps,
|
|
36
|
+
props: __spreadProps(__spreadValues({}, popupProps), {
|
|
19
37
|
modelValue: {
|
|
20
38
|
type: Array,
|
|
21
39
|
default: () => []
|
|
@@ -84,7 +102,7 @@ const _sfc_main = create({
|
|
|
84
102
|
type: [String, Array],
|
|
85
103
|
default: ""
|
|
86
104
|
}
|
|
87
|
-
},
|
|
105
|
+
}),
|
|
88
106
|
emits: ["update:visible", "update:modelValue", "type", "change", "selected", "close", "close-mask", "switch-module"],
|
|
89
107
|
setup(props, { emit }) {
|
|
90
108
|
const regionLine = ref(null);
|
|
@@ -335,7 +353,7 @@ const _sfc_main = create({
|
|
|
335
353
|
}
|
|
336
354
|
});
|
|
337
355
|
});
|
|
338
|
-
return {
|
|
356
|
+
return __spreadProps(__spreadValues({
|
|
339
357
|
showPopup,
|
|
340
358
|
privateType,
|
|
341
359
|
tabIndex,
|
|
@@ -356,10 +374,10 @@ const _sfc_main = create({
|
|
|
356
374
|
clickOverlay,
|
|
357
375
|
handClose,
|
|
358
376
|
handleElevatorItem,
|
|
359
|
-
initCustomSelected
|
|
360
|
-
|
|
377
|
+
initCustomSelected
|
|
378
|
+
}, toRefs(props)), {
|
|
361
379
|
translate
|
|
362
|
-
};
|
|
380
|
+
});
|
|
363
381
|
}
|
|
364
382
|
});
|
|
365
383
|
const _hoisted_1 = { class: "nut-address" };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.1.23-beta.
|
|
2
|
+
* @nutui/nutui v3.1.23-beta.6 Thu Jul 28 2022 18:06:31 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -7,7 +7,7 @@ import { resolveComponent, openBlock, createElementBlock, createElementVNode, re
|
|
|
7
7
|
import { c as createComponent, f as floatData } from "./component.js";
|
|
8
8
|
import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
|
|
9
9
|
import "../locale/lang";
|
|
10
|
-
var ItemContents_vue_vue_type_style_index_0_lang =
|
|
10
|
+
var ItemContents_vue_vue_type_style_index_0_lang = "";
|
|
11
11
|
const { componentName: componentName$4, create: create$4 } = createComponent("item-contents");
|
|
12
12
|
const { translate: translate$1 } = createComponent("addresslist");
|
|
13
13
|
const _sfc_main$4 = create$4({
|
|
@@ -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.1.23-beta.
|
|
21
|
+
* @nutui/nutui v3.1.23-beta.6 Thu Jul 28 2022 18:06:31 GMT+0800 (中国标准时间)
|
|
3
22
|
* (c) 2022 @jdf2e.
|
|
4
23
|
* Released under the MIT License.
|
|
5
24
|
*/
|
|
@@ -46,7 +65,7 @@ const _sfc_main = create({
|
|
|
46
65
|
}
|
|
47
66
|
emit("click", event);
|
|
48
67
|
};
|
|
49
|
-
return {
|
|
68
|
+
return __spreadProps(__spreadValues({}, toRefs(state)), { classes, handleClick });
|
|
50
69
|
}
|
|
51
70
|
});
|
|
52
71
|
const _hoisted_1 = { class: "nut-animate" };
|
|
@@ -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.1.23-beta.
|
|
21
|
+
* @nutui/nutui v3.1.23-beta.6 Thu Jul 28 2022 18:06:31 GMT+0800 (中国标准时间)
|
|
3
22
|
* (c) 2022 @jdf2e.
|
|
4
23
|
* Released under the MIT License.
|
|
5
24
|
*/
|
|
@@ -171,9 +190,7 @@ const _sfc_main = create({
|
|
|
171
190
|
fastBack,
|
|
172
191
|
changeStatus
|
|
173
192
|
});
|
|
174
|
-
return {
|
|
175
|
-
...toRefs(props),
|
|
176
|
-
...toRefs(audioData),
|
|
193
|
+
return __spreadProps(__spreadValues(__spreadValues({}, toRefs(props)), toRefs(audioData)), {
|
|
177
194
|
audioRef,
|
|
178
195
|
fastBack,
|
|
179
196
|
forward,
|
|
@@ -182,7 +199,7 @@ const _sfc_main = create({
|
|
|
182
199
|
audioEnd,
|
|
183
200
|
onTimeupdate,
|
|
184
201
|
handleMute
|
|
185
|
-
};
|
|
202
|
+
});
|
|
186
203
|
}
|
|
187
204
|
});
|
|
188
205
|
const _hoisted_1 = { class: "nut-audio" };
|
|
@@ -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.1.23-beta.
|
|
21
|
+
* @nutui/nutui v3.1.23-beta.6 Thu Jul 28 2022 18:06:31 GMT+0800 (中国标准时间)
|
|
3
22
|
* (c) 2022 @jdf2e.
|
|
4
23
|
* Released under the MIT License.
|
|
5
24
|
*/
|
|
@@ -23,7 +42,7 @@ const _sfc_main = create({
|
|
|
23
42
|
const audio = inject("audioParent");
|
|
24
43
|
const parent = reactive(audio);
|
|
25
44
|
const customSlot = ref(useSlots().default);
|
|
26
|
-
return {
|
|
45
|
+
return __spreadProps(__spreadValues(__spreadValues({}, toRefs(props)), toRefs(parent)), { customSlot, translate });
|
|
27
46
|
}
|
|
28
47
|
});
|
|
29
48
|
const _hoisted_1 = { class: "nut-audio-operate" };
|
|
@@ -1,5 +1,21 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
3
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
4
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
6
|
+
var __spreadValues = (a, b) => {
|
|
7
|
+
for (var prop in b || (b = {}))
|
|
8
|
+
if (__hasOwnProp.call(b, prop))
|
|
9
|
+
__defNormalProp(a, prop, b[prop]);
|
|
10
|
+
if (__getOwnPropSymbols)
|
|
11
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
12
|
+
if (__propIsEnum.call(b, prop))
|
|
13
|
+
__defNormalProp(a, prop, b[prop]);
|
|
14
|
+
}
|
|
15
|
+
return a;
|
|
16
|
+
};
|
|
1
17
|
/*!
|
|
2
|
-
* @nutui/nutui v3.1.23-beta.
|
|
18
|
+
* @nutui/nutui v3.1.23-beta.6 Thu Jul 28 2022 18:06:31 GMT+0800 (中国标准时间)
|
|
3
19
|
* (c) 2022 @jdf2e.
|
|
4
20
|
* Released under the MIT License.
|
|
5
21
|
*/
|
|
@@ -112,7 +128,7 @@ const _sfc_main = create({
|
|
|
112
128
|
const onError = (event) => {
|
|
113
129
|
emit("onError", event);
|
|
114
130
|
};
|
|
115
|
-
return {
|
|
131
|
+
return __spreadValues({
|
|
116
132
|
classes,
|
|
117
133
|
styles,
|
|
118
134
|
iconStyles,
|
|
@@ -122,9 +138,8 @@ const _sfc_main = create({
|
|
|
122
138
|
onError,
|
|
123
139
|
avatarGroup,
|
|
124
140
|
visible,
|
|
125
|
-
avatarRef
|
|
126
|
-
|
|
127
|
-
};
|
|
141
|
+
avatarRef
|
|
142
|
+
}, toRefs(state));
|
|
128
143
|
}
|
|
129
144
|
});
|
|
130
145
|
const _hoisted_1 = ["src", "alt"];
|
|
@@ -1,5 +1,37 @@
|
|
|
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));
|
|
20
|
+
var __restKey = (key) => typeof key === "symbol" ? key : key + "";
|
|
21
|
+
var __objRest = (source, exclude) => {
|
|
22
|
+
var target = {};
|
|
23
|
+
for (var prop in source)
|
|
24
|
+
if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
25
|
+
target[prop] = source[prop];
|
|
26
|
+
if (source != null && __getOwnPropSymbols)
|
|
27
|
+
for (var prop of __getOwnPropSymbols(source)) {
|
|
28
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
|
|
29
|
+
target[prop] = source[prop];
|
|
30
|
+
}
|
|
31
|
+
return target;
|
|
32
|
+
};
|
|
1
33
|
/*!
|
|
2
|
-
* @nutui/nutui v3.1.23-beta.
|
|
34
|
+
* @nutui/nutui v3.1.23-beta.6 Thu Jul 28 2022 18:06:31 GMT+0800 (中国标准时间)
|
|
3
35
|
* (c) 2022 @jdf2e.
|
|
4
36
|
* Released under the MIT License.
|
|
5
37
|
*/
|
|
@@ -13,16 +45,16 @@ import "./Icon.js";
|
|
|
13
45
|
import "./pxCheck.js";
|
|
14
46
|
const formatTree = (tree, parent, config) => tree.map((node) => {
|
|
15
47
|
const { value: valueKey = "value", text: textKey = "text", children: childrenKey = "children" } = config;
|
|
16
|
-
const { [valueKey]: value, [textKey]: text, [childrenKey]: children,
|
|
17
|
-
const newNode = {
|
|
18
|
-
loading: false
|
|
19
|
-
|
|
48
|
+
const _a = node, { [valueKey]: value, [textKey]: text, [childrenKey]: children } = _a, others = __objRest(_a, [__restKey(valueKey), __restKey(textKey), __restKey(childrenKey)]);
|
|
49
|
+
const newNode = __spreadProps(__spreadValues({
|
|
50
|
+
loading: false
|
|
51
|
+
}, others), {
|
|
20
52
|
level: parent ? (parent && parent.level || 0) + 1 : 0,
|
|
21
53
|
value,
|
|
22
54
|
text,
|
|
23
55
|
children,
|
|
24
56
|
_parent: parent
|
|
25
|
-
};
|
|
57
|
+
});
|
|
26
58
|
if (newNode.children && newNode.children.length) {
|
|
27
59
|
newNode.children = formatTree(newNode.children, newNode, config);
|
|
28
60
|
}
|
|
@@ -47,15 +79,12 @@ const defaultConvertConfig = {
|
|
|
47
79
|
sortKey: ""
|
|
48
80
|
};
|
|
49
81
|
const convertListToOptions = (list, options) => {
|
|
50
|
-
const mergedOptions = {
|
|
51
|
-
...defaultConvertConfig,
|
|
52
|
-
...options || {}
|
|
53
|
-
};
|
|
82
|
+
const mergedOptions = __spreadValues(__spreadValues({}, defaultConvertConfig), options || {});
|
|
54
83
|
const { topId, idKey, pidKey, sortKey } = mergedOptions;
|
|
55
84
|
let result = [];
|
|
56
85
|
let map = {};
|
|
57
86
|
list.forEach((node) => {
|
|
58
|
-
node = {
|
|
87
|
+
node = __spreadValues({}, node);
|
|
59
88
|
const { [idKey]: id, [pidKey]: pid } = node;
|
|
60
89
|
const children = map[pid] = map[pid] || [];
|
|
61
90
|
if (!result.length && pid === topId) {
|
|
@@ -76,12 +105,11 @@ const convertListToOptions = (list, options) => {
|
|
|
76
105
|
};
|
|
77
106
|
class Tree {
|
|
78
107
|
constructor(nodes, config) {
|
|
79
|
-
this.config = {
|
|
108
|
+
this.config = __spreadValues({
|
|
80
109
|
value: "value",
|
|
81
110
|
text: "text",
|
|
82
|
-
children: "children"
|
|
83
|
-
|
|
84
|
-
};
|
|
111
|
+
children: "children"
|
|
112
|
+
}, config || {});
|
|
85
113
|
this.nodes = formatTree(nodes, null, this.config);
|
|
86
114
|
}
|
|
87
115
|
updateChildren(nodes, parent) {
|
|
@@ -346,7 +374,7 @@ const _sfc_main$1 = create$1({
|
|
|
346
374
|
syncValue();
|
|
347
375
|
}
|
|
348
376
|
});
|
|
349
|
-
return { panes, initLoading, tabsCursor,
|
|
377
|
+
return __spreadValues({ panes, initLoading, tabsCursor }, methods);
|
|
350
378
|
}
|
|
351
379
|
});
|
|
352
380
|
const _hoisted_1$1 = {
|
|
@@ -419,8 +447,7 @@ const _sfc_main = create({
|
|
|
419
447
|
components: {
|
|
420
448
|
[CascaderItem.name]: CascaderItem
|
|
421
449
|
},
|
|
422
|
-
props: {
|
|
423
|
-
...popupProps,
|
|
450
|
+
props: __spreadProps(__spreadValues({}, popupProps), {
|
|
424
451
|
modelValue: Array,
|
|
425
452
|
visible: Boolean,
|
|
426
453
|
title: String,
|
|
@@ -443,7 +470,7 @@ const _sfc_main = create({
|
|
|
443
470
|
default: "children"
|
|
444
471
|
},
|
|
445
472
|
convertConfig: Object
|
|
446
|
-
},
|
|
473
|
+
}),
|
|
447
474
|
emits: ["update:modelValue", "change", "pathChange", "update:visible"],
|
|
448
475
|
setup(props, { emit }) {
|
|
449
476
|
const innerValue = ref(props.modelValue);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.1.23-beta.
|
|
2
|
+
* @nutui/nutui v3.1.23-beta.6 Thu Jul 28 2022 18:06:31 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -7,7 +7,7 @@ import { c as createComponent } from "./component.js";
|
|
|
7
7
|
import { openBlock, createElementBlock, Fragment, renderList, createElementVNode, toDisplayString, createCommentVNode } from "vue";
|
|
8
8
|
import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
|
|
9
9
|
import "../locale/lang";
|
|
10
|
-
var index_vue_vue_type_style_index_0_lang =
|
|
10
|
+
var index_vue_vue_type_style_index_0_lang = "";
|
|
11
11
|
const { componentName, create } = createComponent("categorypane");
|
|
12
12
|
const _sfc_main = create({
|
|
13
13
|
props: {
|
package/dist/packages/_es/Col.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.1.23-beta.
|
|
2
|
+
* @nutui/nutui v3.1.23-beta.6 Thu Jul 28 2022 18:06:31 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
|
-
import { ref, watch, provide, openBlock, createElementBlock, renderSlot } from "vue";
|
|
6
|
+
import { ref, watch, onMounted, getCurrentInstance, provide, openBlock, createElementBlock, renderSlot } from "vue";
|
|
7
7
|
import { c as createComponent } from "./component.js";
|
|
8
8
|
import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
|
|
9
9
|
import "../locale/lang";
|
|
@@ -52,20 +52,18 @@ const _sfc_main = create({
|
|
|
52
52
|
emits: ["update:active", "change"],
|
|
53
53
|
setup(props, { emit, slots }) {
|
|
54
54
|
const collapseDom = ref(null);
|
|
55
|
+
const collapseChldren = ref([]);
|
|
55
56
|
watch(() => props.active, (newval, oldval) => {
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
let doms = (_b = collapseDom.value) == null ? void 0 : _b.children;
|
|
59
|
-
Array.from(doms).forEach((dom, index2) => {
|
|
60
|
-
const item = dom["__vueParentComponent"]["ctx"];
|
|
57
|
+
let doms = collapseChldren.value;
|
|
58
|
+
Array.from(doms).forEach((item) => {
|
|
61
59
|
if (typeof newval == "number" || typeof newval == "string") {
|
|
62
|
-
if (newval ==
|
|
60
|
+
if (newval == item.name) {
|
|
63
61
|
item.changeOpen(!item.openExpanded);
|
|
64
62
|
} else {
|
|
65
63
|
item.changeOpen(false);
|
|
66
64
|
}
|
|
67
65
|
} else if (Object.values(newval) instanceof Array) {
|
|
68
|
-
if (newval.indexOf(Number(
|
|
66
|
+
if (newval.indexOf(Number(item.name)) > -1 || newval.indexOf(String(item.name)) > -1) {
|
|
69
67
|
item.changeOpen(true);
|
|
70
68
|
} else {
|
|
71
69
|
item.changeOpen(false);
|
|
@@ -74,6 +72,9 @@ const _sfc_main = create({
|
|
|
74
72
|
item.animation();
|
|
75
73
|
});
|
|
76
74
|
});
|
|
75
|
+
onMounted(() => {
|
|
76
|
+
collapseChldren.value = getCurrentInstance().provides.collapseParent.children || [];
|
|
77
|
+
});
|
|
77
78
|
const changeVal = (val) => {
|
|
78
79
|
emit("update:active", val);
|
|
79
80
|
emit("change", val);
|
|
@@ -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.1.23-beta.
|
|
21
|
+
* @nutui/nutui v3.1.23-beta.6 Thu Jul 28 2022 18:06:31 GMT+0800 (中国标准时间)
|
|
3
22
|
* (c) 2022 @jdf2e.
|
|
4
23
|
* Released under the MIT License.
|
|
5
24
|
*/
|
|
@@ -166,19 +185,17 @@ const _sfc_main = create({
|
|
|
166
185
|
}
|
|
167
186
|
return _class;
|
|
168
187
|
});
|
|
169
|
-
return {
|
|
188
|
+
return __spreadProps(__spreadValues(__spreadValues(__spreadValues({
|
|
170
189
|
classes,
|
|
171
|
-
emptyContent
|
|
172
|
-
|
|
173
|
-
...toRefs(parent.props),
|
|
174
|
-
...toRefs(titleIconStyle),
|
|
190
|
+
emptyContent
|
|
191
|
+
}, toRefs(proxyData)), toRefs(parent.props)), toRefs(titleIconStyle)), {
|
|
175
192
|
wrapperRef,
|
|
176
193
|
contentRef,
|
|
177
194
|
open,
|
|
178
195
|
toggleOpen,
|
|
179
196
|
changeOpen,
|
|
180
197
|
animation
|
|
181
|
-
};
|
|
198
|
+
});
|
|
182
199
|
}
|
|
183
200
|
});
|
|
184
201
|
const _hoisted_1 = { class: "collapse-title" };
|