@nutui/nutui 3.2.0 → 3.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +62 -0
- package/README.md +5 -3
- package/dist/nutui.es.js +1563 -1402
- package/dist/nutui.umd.js +1567 -1405
- package/dist/packages/_es/ActionSheet.js +22 -4
- package/dist/packages/_es/Address.js +39 -20
- package/dist/packages/_es/AddressList.js +2 -4
- package/dist/packages/_es/Animate.js +21 -2
- package/dist/packages/_es/Audio.js +22 -5
- package/dist/packages/_es/AudioOperate.js +22 -5
- package/dist/packages/_es/Avatar.js +23 -9
- package/dist/packages/_es/AvatarGroup.js +1 -1
- package/dist/packages/_es/BackTop.js +2 -2
- package/dist/packages/_es/Badge.js +1 -1
- package/dist/packages/_es/Barrage.js +1 -1
- package/dist/packages/_es/Button.js +6 -5
- 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 +46 -19
- package/dist/packages/_es/Category.js +2 -2
- package/dist/packages/_es/CategoryPane.js +10 -10
- package/dist/packages/_es/Cell.js +8 -9
- 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 +5 -11
- package/dist/packages/_es/Collapse.js +1 -1
- package/dist/packages/_es/CollapseItem.js +36 -17
- 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 +31 -9
- package/dist/packages/_es/Dialog.js +23 -5
- package/dist/packages/_es/Divider.js +24 -7
- package/dist/packages/_es/Drag.js +4 -4
- 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 +18 -14
- package/dist/packages/_es/Form.js +2 -2
- package/dist/packages/_es/FormItem.js +5 -4
- package/dist/packages/_es/Grid.js +1 -1
- package/dist/packages/_es/GridItem.js +6 -5
- package/dist/packages/_es/Icon.js +1 -1
- package/dist/packages/_es/Image.js +21 -2
- package/dist/packages/_es/ImagePreview.js +28 -13
- package/dist/packages/_es/Indicator.js +1 -1
- package/dist/packages/_es/InfiniteLoading.js +27 -14
- package/dist/packages/_es/Input.js +70 -68
- package/dist/packages/_es/InputNumber.js +20 -14
- package/dist/packages/_es/Invoice.js +156 -0
- package/dist/packages/_es/Layout.js +1 -1
- package/dist/packages/_es/List.js +22 -4
- package/dist/packages/_es/Menu.js +6 -5
- package/dist/packages/_es/MenuItem.js +25 -8
- package/dist/packages/_es/Navbar.js +11 -9
- package/dist/packages/_es/NoticeBar.js +26 -9
- package/dist/packages/_es/Notify.js +34 -13
- package/dist/packages/_es/NumberKeyboard.js +10 -12
- 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 +63 -17
- package/dist/packages/_es/Popover.js +25 -10
- package/dist/packages/_es/Popup.js +31 -17
- package/dist/packages/_es/Price.js +1 -1
- package/dist/packages/_es/Progress.js +4 -5
- package/dist/packages/_es/PullRefresh.js +20 -5
- package/dist/packages/_es/Radio.js +3 -3
- 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 +5 -11
- package/dist/packages/_es/SearchBar.js +44 -11
- 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 +21 -2
- package/dist/packages/_es/Skeleton.js +1 -1
- package/dist/packages/_es/Sku.js +22 -4
- package/dist/packages/_es/Step.js +27 -8
- 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 +6 -5
- package/dist/packages/_es/TabPane.js +1 -1
- package/dist/packages/_es/Tabbar.js +1 -1
- package/dist/packages/_es/TabbarItem.js +13 -14
- package/dist/packages/_es/Table.js +22 -4
- package/dist/packages/_es/Tabs.js +32 -10
- package/dist/packages/_es/Tag.js +11 -15
- 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 +46 -25
- package/dist/packages/_es/Uploader.js +49 -30
- package/dist/packages/_es/Video.js +24 -6
- package/dist/packages/_es/WaterMark.js +21 -5
- package/dist/packages/_es/common.js +2 -2
- package/dist/packages/_es/component.js +5 -5
- package/dist/packages/_es/index.js +1 -1
- package/dist/packages/_es/index2.js +1 -1
- package/dist/packages/_es/index3.js +1 -1
- package/dist/packages/_es/index4.js +1 -1
- package/dist/packages/_es/index5.js +28 -11
- 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/_es/style.css +1 -111
- package/dist/packages/address/index.scss +17 -0
- package/dist/packages/addresslist/index.scss +57 -17
- package/dist/packages/button/index.scss +1 -0
- package/dist/packages/category/index.scss +25 -4
- package/dist/packages/categorypane/index.scss +18 -65
- package/dist/packages/fixednav/index.scss +7 -0
- package/dist/packages/invoice/index.scss +33 -0
- package/dist/packages/locale/lang/baseLang.js +1 -1
- package/dist/packages/locale/lang/en-US.js +1 -1
- package/dist/packages/locale/lang/id-ID.js +1 -1
- package/dist/packages/locale/lang/index.js +1 -1
- package/dist/packages/locale/lang/zh-CN.js +1 -1
- package/dist/packages/locale/lang/zh-TW.js +1 -1
- package/dist/packages/menu/index.scss +14 -2
- package/dist/packages/menuitem/index.scss +11 -1
- package/dist/packages/navbar/index.scss +6 -8
- package/dist/packages/picker/index.scss +8 -0
- package/dist/packages/price/index.scss +1 -1
- package/dist/packages/radio/index.scss +1 -0
- package/dist/packages/searchbar/index.scss +2 -0
- package/dist/packages/step/index.scss +52 -0
- package/dist/packages/swiper/index.scss +2 -0
- package/dist/packages/swiperitem/index.scss +3 -0
- package/dist/packages/tag/index.scss +20 -0
- package/dist/packages/textarea/index.scss +4 -1
- package/dist/packages/toast/index.scss +3 -0
- package/dist/packages/watermark/index.scss +1 -1
- package/dist/smartips/attributes.json +70 -14
- package/dist/smartips/tags.json +34 -15
- package/dist/smartips/web-types.json +150 -16
- package/dist/style.css +1 -1
- package/dist/style.es.js +1 -1
- package/dist/styles/themes/default.scss +55 -54
- package/dist/styles/themes/jdb.scss +55 -54
- package/dist/styles/themes/jdt.scss +55 -54
- package/dist/styles/variables-jdb.scss +26 -8
- package/dist/styles/variables-jdt.scss +26 -8
- package/dist/styles/variables.scss +25 -8
- 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/audiooperate/index.vue.d.ts +14 -71
- package/dist/types/__VUE/avatar/index.vue.d.ts +4 -4
- package/dist/types/__VUE/avatargroup/index.vue.d.ts +2 -2
- package/dist/types/__VUE/backtop/index.vue.d.ts +5 -8
- package/dist/types/__VUE/badge/index.vue.d.ts +2 -2
- package/dist/types/__VUE/button/index.vue.d.ts +2 -2
- package/dist/types/__VUE/calendar/index.vue.d.ts +8 -1
- package/dist/types/__VUE/calendaritem/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 +15 -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 +9 -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/common.d.ts +56 -0
- package/dist/types/__VUE/fixednav/index.vue.d.ts +18 -10
- package/dist/types/__VUE/formitem/index.vue.d.ts +1 -0
- package/dist/types/__VUE/grid/index.vue.d.ts +5 -5
- 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 +8 -14
- package/dist/types/__VUE/inputnumber/index.vue.d.ts +14 -0
- package/dist/types/__VUE/invoice/index.vue.d.ts +48 -0
- package/dist/types/__VUE/menu/index.vue.d.ts +5 -2
- package/dist/types/__VUE/menuitem/index.vue.d.ts +0 -3
- package/dist/types/__VUE/noticebar/index.vue.d.ts +3 -3
- package/dist/types/__VUE/notify/index.d.ts +15 -5
- package/dist/types/__VUE/numberkeyboard/index.vue.d.ts +2 -2
- package/dist/types/__VUE/oldpicker/index.vue.d.ts +3 -3
- package/dist/types/__VUE/picker/Column.vue.d.ts +8 -0
- package/dist/types/__VUE/picker/index.vue.d.ts +20 -3
- package/dist/types/__VUE/popover/index.vue.d.ts +6 -6
- package/dist/types/__VUE/popup/index.vue.d.ts +4 -4
- package/dist/types/__VUE/radio/index.vue.d.ts +3 -3
- package/dist/types/__VUE/range/index.vue.d.ts +1 -1
- package/dist/types/__VUE/rate/index.vue.d.ts +2 -2
- package/dist/types/__VUE/row/index.vue.d.ts +2 -5
- package/dist/types/__VUE/searchbar/index.vue.d.ts +18 -3
- package/dist/types/__VUE/shortpassword/index.vue.d.ts +1 -1
- package/dist/types/__VUE/sku/index.vue.d.ts +3 -3
- package/dist/types/__VUE/step/index.vue.d.ts +2 -2
- package/dist/types/__VUE/swipe/index.vue.d.ts +2 -2
- package/dist/types/__VUE/switch/index.vue.d.ts +2 -2
- package/dist/types/__VUE/tabbaritem/index.vue.d.ts +2 -2
- package/dist/types/__VUE/toast/index.vue.d.ts +5 -2
- package/dist/types/__VUE/uploader/index.vue.d.ts +2 -2
- package/dist/types/__VUE/video/index.vue.d.ts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/nutui.d.ts +2 -1
- package/package.json +2 -1
|
@@ -1,5 +1,24 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __defProps = Object.defineProperties;
|
|
3
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
4
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
7
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
8
|
+
var __spreadValues = (a, b) => {
|
|
9
|
+
for (var prop in b || (b = {}))
|
|
10
|
+
if (__hasOwnProp.call(b, prop))
|
|
11
|
+
__defNormalProp(a, prop, b[prop]);
|
|
12
|
+
if (__getOwnPropSymbols)
|
|
13
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
14
|
+
if (__propIsEnum.call(b, prop))
|
|
15
|
+
__defNormalProp(a, prop, b[prop]);
|
|
16
|
+
}
|
|
17
|
+
return a;
|
|
18
|
+
};
|
|
19
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
1
20
|
/*!
|
|
2
|
-
* @nutui/nutui v3.2.
|
|
21
|
+
* @nutui/nutui v3.2.2 Thu Sep 08 2022 22:10:31 GMT+0800 (中国标准时间)
|
|
3
22
|
* (c) 2022 @jdf2e.
|
|
4
23
|
* Released under the MIT License.
|
|
5
24
|
*/
|
|
@@ -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,9 +1,28 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __defProps = Object.defineProperties;
|
|
3
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
4
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
7
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
8
|
+
var __spreadValues = (a, b) => {
|
|
9
|
+
for (var prop in b || (b = {}))
|
|
10
|
+
if (__hasOwnProp.call(b, prop))
|
|
11
|
+
__defNormalProp(a, prop, b[prop]);
|
|
12
|
+
if (__getOwnPropSymbols)
|
|
13
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
14
|
+
if (__propIsEnum.call(b, prop))
|
|
15
|
+
__defNormalProp(a, prop, b[prop]);
|
|
16
|
+
}
|
|
17
|
+
return a;
|
|
18
|
+
};
|
|
19
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
1
20
|
/*!
|
|
2
|
-
* @nutui/nutui v3.2.
|
|
21
|
+
* @nutui/nutui v3.2.2 Thu Sep 08 2022 22:10:31 GMT+0800 (中国标准时间)
|
|
3
22
|
* (c) 2022 @jdf2e.
|
|
4
23
|
* Released under the MIT License.
|
|
5
24
|
*/
|
|
6
|
-
import { ref, computed, reactive, onMounted, watch, toRefs, nextTick, resolveComponent, openBlock, createBlock, withCtx, createElementVNode, withDirectives, createVNode, vShow, toDisplayString, createCommentVNode, createElementBlock, Fragment, renderList, normalizeClass, normalizeStyle, createTextVNode, renderSlot } from "vue";
|
|
25
|
+
import { ref, computed, reactive, onMounted, watch, toRefs, nextTick, resolveComponent, openBlock, createBlock, withCtx, createElementVNode, withDirectives, createVNode, mergeProps, vShow, toDisplayString, createCommentVNode, createElementBlock, Fragment, renderList, normalizeClass, normalizeStyle, createTextVNode, renderSlot } from "vue";
|
|
7
26
|
import { c as createComponent } from "./component.js";
|
|
8
27
|
import { popupProps } from "./Popup.js";
|
|
9
28
|
import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
|
|
@@ -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" };
|
|
@@ -425,10 +443,10 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
425
443
|
class: "arrow-back",
|
|
426
444
|
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.switchModule && _ctx.switchModule(...args))
|
|
427
445
|
}, [
|
|
428
|
-
withDirectives(createVNode(_component_nut_icon, {
|
|
446
|
+
withDirectives(createVNode(_component_nut_icon, mergeProps(_ctx.$attrs, {
|
|
429
447
|
name: _ctx.backBtnIcon,
|
|
430
448
|
color: "#cccccc"
|
|
431
|
-
}, null,
|
|
449
|
+
}), null, 16, ["name"]), [
|
|
432
450
|
[vShow, _ctx.type == "exist" && _ctx.privateType == "custom" && _ctx.backBtnIcon]
|
|
433
451
|
])
|
|
434
452
|
]),
|
|
@@ -437,12 +455,11 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
437
455
|
class: "arrow-close",
|
|
438
456
|
onClick: _cache[1] || (_cache[1] = ($event) => _ctx.handClose("cross"))
|
|
439
457
|
}, [
|
|
440
|
-
_ctx.closeBtnIcon ? (openBlock(), createBlock(_component_nut_icon, {
|
|
441
|
-
key: 0,
|
|
458
|
+
_ctx.closeBtnIcon ? (openBlock(), createBlock(_component_nut_icon, mergeProps({ key: 0 }, _ctx.$attrs, {
|
|
442
459
|
name: _ctx.closeBtnIcon,
|
|
443
460
|
color: "#cccccc",
|
|
444
461
|
size: "18px"
|
|
445
|
-
}, null,
|
|
462
|
+
}), null, 16, ["name"])) : createCommentVNode("", true)
|
|
446
463
|
])
|
|
447
464
|
]),
|
|
448
465
|
_ctx.privateType == "custom" ? (openBlock(), createElementBlock("view", _hoisted_4, [
|
|
@@ -470,13 +487,14 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
470
487
|
class: normalizeClass(["region-item", [_ctx.selectedRegion[_ctx.tabName[_ctx.tabIndex]].id == item.id ? "active" : ""]]),
|
|
471
488
|
onClick: ($event) => _ctx.nextAreaList(item)
|
|
472
489
|
}, [
|
|
473
|
-
_ctx.selectedRegion[_ctx.tabName[_ctx.tabIndex]].id == item.id ? (openBlock(), createBlock(_component_nut_icon, {
|
|
490
|
+
_ctx.selectedRegion[_ctx.tabName[_ctx.tabIndex]].id == item.id ? (openBlock(), createBlock(_component_nut_icon, mergeProps({
|
|
474
491
|
key: 0,
|
|
475
492
|
class: "region-item-icon",
|
|
476
|
-
type: "self"
|
|
493
|
+
type: "self"
|
|
494
|
+
}, _ctx.$attrs, {
|
|
477
495
|
name: _ctx.selectedIcon,
|
|
478
496
|
size: "13px"
|
|
479
|
-
}, null,
|
|
497
|
+
}), null, 16, ["name"])) : createCommentVNode("", true),
|
|
480
498
|
createTextVNode(toDisplayString(item.name), 1)
|
|
481
499
|
], 10, _hoisted_9);
|
|
482
500
|
}), 128))
|
|
@@ -515,12 +533,13 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
515
533
|
key: index2,
|
|
516
534
|
onClick: ($event) => _ctx.selectedExist(item)
|
|
517
535
|
}, [
|
|
518
|
-
createVNode(_component_nut_icon, {
|
|
536
|
+
createVNode(_component_nut_icon, mergeProps({
|
|
519
537
|
class: "exist-item-icon",
|
|
520
|
-
type: "self"
|
|
538
|
+
type: "self"
|
|
539
|
+
}, _ctx.$attrs, {
|
|
521
540
|
name: item.selectedAddress ? _ctx.selectedIcon : _ctx.defaultIcon,
|
|
522
541
|
size: "13px"
|
|
523
|
-
}, null,
|
|
542
|
+
}), null, 16, ["name"]),
|
|
524
543
|
createElementVNode("div", _hoisted_18, [
|
|
525
544
|
item.name && item.phone ? (openBlock(), createElementBlock("div", _hoisted_19, [
|
|
526
545
|
createElementVNode("div", _hoisted_20, toDisplayString(item.name), 1),
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.2.
|
|
2
|
+
* @nutui/nutui v3.2.2 Thu Sep 08 2022 22:10:31 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -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 = /* @__PURE__ */ (() => "/* @import './index.scss'; */")();
|
|
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({
|
|
@@ -26,7 +26,6 @@ const _sfc_main$4 = create$4({
|
|
|
26
26
|
setup(props, { emit }) {
|
|
27
27
|
const delClick = (event) => {
|
|
28
28
|
emit("delIconClick", event, props.item);
|
|
29
|
-
console.log(123);
|
|
30
29
|
event.stopPropagation();
|
|
31
30
|
};
|
|
32
31
|
const editClick = (event) => {
|
|
@@ -475,7 +474,6 @@ const _sfc_main = create({
|
|
|
475
474
|
fullAddress: "\u5317\u4EAC\u5E02\u901A\u5DDE\u533A\u6D4B\u8BD5\u6D4B\u8BD5\u6D4B\u8BD5\u6D4B\u8BD5\u6D4B\u8BD5\u6D4B\u8BD5\u6D4B\u8BD5\u6D4B\u8BD5\u6D4B\u8BD5"
|
|
476
475
|
});
|
|
477
476
|
const trowelData = () => {
|
|
478
|
-
console.log("props.data", props.data);
|
|
479
477
|
if (Object.keys(props.dataMapOptions).length > 0) {
|
|
480
478
|
dataArray.value = props.data.map((item, index2) => {
|
|
481
479
|
return floatData(dataInfo, item, props.dataMapOptions);
|
|
@@ -1,5 +1,24 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __defProps = Object.defineProperties;
|
|
3
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
4
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
7
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
8
|
+
var __spreadValues = (a, b) => {
|
|
9
|
+
for (var prop in b || (b = {}))
|
|
10
|
+
if (__hasOwnProp.call(b, prop))
|
|
11
|
+
__defNormalProp(a, prop, b[prop]);
|
|
12
|
+
if (__getOwnPropSymbols)
|
|
13
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
14
|
+
if (__propIsEnum.call(b, prop))
|
|
15
|
+
__defNormalProp(a, prop, b[prop]);
|
|
16
|
+
}
|
|
17
|
+
return a;
|
|
18
|
+
};
|
|
19
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
1
20
|
/*!
|
|
2
|
-
* @nutui/nutui v3.2.
|
|
21
|
+
* @nutui/nutui v3.2.2 Thu Sep 08 2022 22:10:31 GMT+0800 (中国标准时间)
|
|
3
22
|
* (c) 2022 @jdf2e.
|
|
4
23
|
* Released under the MIT License.
|
|
5
24
|
*/
|
|
@@ -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.2.
|
|
21
|
+
* @nutui/nutui v3.2.2 Thu Sep 08 2022 22:10:31 GMT+0800 (中国标准时间)
|
|
3
22
|
* (c) 2022 @jdf2e.
|
|
4
23
|
* Released under the MIT License.
|
|
5
24
|
*/
|
|
@@ -154,9 +173,7 @@ const _sfc_main = create({
|
|
|
154
173
|
fastBack,
|
|
155
174
|
changeStatus
|
|
156
175
|
});
|
|
157
|
-
return {
|
|
158
|
-
...toRefs(props),
|
|
159
|
-
...toRefs(audioData),
|
|
176
|
+
return __spreadProps(__spreadValues(__spreadValues({}, toRefs(props)), toRefs(audioData)), {
|
|
160
177
|
audioRef,
|
|
161
178
|
fastBack,
|
|
162
179
|
forward,
|
|
@@ -166,7 +183,7 @@ const _sfc_main = create({
|
|
|
166
183
|
onTimeupdate,
|
|
167
184
|
handleMute,
|
|
168
185
|
onCanplay
|
|
169
|
-
};
|
|
186
|
+
});
|
|
170
187
|
}
|
|
171
188
|
});
|
|
172
189
|
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.2.
|
|
21
|
+
* @nutui/nutui v3.2.2 Thu Sep 08 2022 22:10:31 GMT+0800 (中国标准时间)
|
|
3
22
|
* (c) 2022 @jdf2e.
|
|
4
23
|
* Released under the MIT License.
|
|
5
24
|
*/
|
|
@@ -12,9 +31,7 @@ const _sfc_main = create({
|
|
|
12
31
|
props: {
|
|
13
32
|
type: {
|
|
14
33
|
type: String,
|
|
15
|
-
default()
|
|
16
|
-
return "play";
|
|
17
|
-
}
|
|
34
|
+
default: () => "play"
|
|
18
35
|
}
|
|
19
36
|
},
|
|
20
37
|
components: {},
|
|
@@ -23,7 +40,7 @@ const _sfc_main = create({
|
|
|
23
40
|
const audio = inject("audioParent");
|
|
24
41
|
const parent = reactive(audio);
|
|
25
42
|
const customSlot = ref(useSlots().default);
|
|
26
|
-
return {
|
|
43
|
+
return __spreadProps(__spreadValues(__spreadValues({}, toRefs(props)), toRefs(parent)), { customSlot, translate });
|
|
27
44
|
}
|
|
28
45
|
});
|
|
29
46
|
const _hoisted_1 = { class: "nut-audio-operate" };
|
|
@@ -1,9 +1,25 @@
|
|
|
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.2.
|
|
18
|
+
* @nutui/nutui v3.2.2 Thu Sep 08 2022 22:10:31 GMT+0800 (中国标准时间)
|
|
3
19
|
* (c) 2022 @jdf2e.
|
|
4
20
|
* Released under the MIT License.
|
|
5
21
|
*/
|
|
6
|
-
import { toRefs, inject, ref, reactive, onMounted, computed, resolveComponent, openBlock, createElementBlock, normalizeStyle, normalizeClass, Fragment, createBlock, createCommentVNode, renderSlot, toDisplayString } from "vue";
|
|
22
|
+
import { toRefs, inject, ref, reactive, onMounted, computed, resolveComponent, openBlock, createElementBlock, normalizeStyle, normalizeClass, Fragment, createBlock, mergeProps, createCommentVNode, renderSlot, toDisplayString } from "vue";
|
|
7
23
|
import { c as createComponent } from "./component.js";
|
|
8
24
|
import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
|
|
9
25
|
import "../locale/lang";
|
|
@@ -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"];
|
|
@@ -152,11 +167,10 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
152
167
|
src: _ctx.url,
|
|
153
168
|
alt: _ctx.alt,
|
|
154
169
|
onError: _cache[0] || (_cache[0] = (...args) => _ctx.onError && _ctx.onError(...args))
|
|
155
|
-
}, null, 40, _hoisted_1)) : _ctx.icon ? (openBlock(), createBlock(_component_nut_icon, {
|
|
156
|
-
key: 1,
|
|
170
|
+
}, null, 40, _hoisted_1)) : _ctx.icon ? (openBlock(), createBlock(_component_nut_icon, mergeProps({ key: 1 }, _ctx.$attrs, {
|
|
157
171
|
class: "icon",
|
|
158
172
|
name: _ctx.iconStyles
|
|
159
|
-
}, null,
|
|
173
|
+
}), null, 16, ["name"])) : createCommentVNode("", true),
|
|
160
174
|
_ctx.isShowText ? (openBlock(), createElementBlock("view", _hoisted_2, [
|
|
161
175
|
renderSlot(_ctx.$slots, "default")
|
|
162
176
|
])) : createCommentVNode("", true)
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.2.
|
|
2
|
+
* @nutui/nutui v3.2.2 Thu Sep 08 2022 22:10:31 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -19,7 +19,7 @@ const _sfc_main = create({
|
|
|
19
19
|
default: 10
|
|
20
20
|
},
|
|
21
21
|
elId: {
|
|
22
|
-
type: [String
|
|
22
|
+
type: [String],
|
|
23
23
|
default: "body"
|
|
24
24
|
},
|
|
25
25
|
distance: {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.2.
|
|
2
|
+
* @nutui/nutui v3.2.2 Thu Sep 08 2022 22:10:31 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
|
-
import { toRefs, computed, resolveComponent, openBlock, createElementBlock, normalizeClass, normalizeStyle, createElementVNode, createBlock, createCommentVNode, renderSlot } from "vue";
|
|
6
|
+
import { toRefs, computed, resolveComponent, openBlock, createElementBlock, normalizeClass, normalizeStyle, createElementVNode, createBlock, createCommentVNode, mergeProps, renderSlot } from "vue";
|
|
7
7
|
import { c as createComponent } from "./component.js";
|
|
8
8
|
import _sfc_main$1 from "./Icon.js";
|
|
9
9
|
import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
|
|
@@ -115,12 +115,13 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
115
115
|
key: 0,
|
|
116
116
|
class: "nut-icon-loading"
|
|
117
117
|
})) : createCommentVNode("", true),
|
|
118
|
-
_ctx.icon && !_ctx.loading ? (openBlock(), createBlock(_component_nut_icon, {
|
|
118
|
+
_ctx.icon && !_ctx.loading ? (openBlock(), createBlock(_component_nut_icon, mergeProps({
|
|
119
119
|
key: 1,
|
|
120
|
-
name: _ctx.icon
|
|
120
|
+
name: _ctx.icon
|
|
121
|
+
}, _ctx.$attrs, {
|
|
121
122
|
"class-prefix": _ctx.iconClassPrefix,
|
|
122
123
|
"font-class-name": _ctx.iconFontClassName
|
|
123
|
-
}, null,
|
|
124
|
+
}), null, 16, ["name", "class-prefix", "font-class-name"])) : createCommentVNode("", true),
|
|
124
125
|
_ctx.$slots.default ? (openBlock(), createElementBlock("view", {
|
|
125
126
|
key: 2,
|
|
126
127
|
class: normalizeClass({ text: _ctx.icon || _ctx.loading })
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.2.
|
|
2
|
+
* @nutui/nutui v3.2.2 Thu Sep 08 2022 22:10:31 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -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,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.2.
|
|
34
|
+
* @nutui/nutui v3.2.2 Thu Sep 08 2022 22:10: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);
|