@nutui/nutui 3.1.23-beta.6 → 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/CHANGELOG.md +63 -1
- package/dist/nutui.es.js +1475 -1070
- package/dist/nutui.umd.js +1468 -1063
- package/dist/packages/_es/ActionSheet.js +4 -22
- package/dist/packages/_es/Address.js +79 -71
- package/dist/packages/_es/AddressList.js +7 -5
- package/dist/packages/_es/Animate.js +2 -21
- package/dist/packages/_es/Audio.js +39 -68
- package/dist/packages/_es/AudioOperate.js +3 -24
- package/dist/packages/_es/Avatar.js +8 -24
- 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 +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 +51 -65
- 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 +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 +30 -42
- package/dist/packages/_es/Comment.js +13 -9
- package/dist/packages/_es/ConfigProvider.js +8 -4
- package/dist/packages/_es/CountDown.js +40 -46
- package/dist/packages/_es/CountUp.js +39 -40
- package/dist/packages/_es/DatePicker.js +25 -33
- package/dist/packages/_es/Dialog.js +12 -27
- package/dist/packages/_es/Divider.js +7 -24
- package/dist/packages/_es/Drag.js +1 -1
- package/dist/packages/_es/Ecard.js +7 -4
- package/dist/packages/_es/Elevator.js +25 -38
- package/dist/packages/_es/Ellipsis.js +14 -28
- package/dist/packages/_es/Empty.js +1 -1
- package/dist/packages/_es/FixedNav.js +18 -14
- 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 +6 -5
- package/dist/packages/_es/Icon.js +15 -11
- package/dist/packages/_es/Image.js +8 -24
- package/dist/packages/_es/ImagePreview.js +24 -39
- package/dist/packages/_es/Indicator.js +1 -1
- package/dist/packages/_es/InfiniteLoading.js +8 -33
- package/dist/packages/_es/Input.js +75 -69
- package/dist/packages/_es/InputNumber.js +20 -14
- package/dist/packages/_es/Layout.js +1 -1
- package/dist/packages/_es/List.js +10 -25
- package/dist/packages/_es/Menu.js +17 -10
- package/dist/packages/_es/MenuItem.js +5 -26
- package/dist/packages/_es/Navbar.js +10 -8
- package/dist/packages/_es/NoticeBar.js +20 -31
- package/dist/packages/_es/Notify.js +16 -32
- package/dist/packages/_es/NumberKeyboard.js +21 -16
- package/dist/packages/_es/OldPicker.js +47 -46
- package/dist/packages/_es/OverLay.js +11 -23
- package/dist/packages/_es/Pagination.js +1 -1
- package/dist/packages/_es/Picker.js +81 -59
- package/dist/packages/_es/Popover.js +58 -58
- package/dist/packages/_es/Popup.js +38 -43
- package/dist/packages/_es/Price.js +1 -1
- package/dist/packages/_es/Progress.js +4 -5
- package/dist/packages/_es/PullRefresh.js +5 -20
- package/dist/packages/_es/Radio.js +25 -13
- package/dist/packages/_es/RadioGroup.js +12 -5
- package/dist/packages/_es/Range.js +20 -33
- package/dist/packages/_es/Rate.js +5 -24
- package/dist/packages/_es/Row.js +5 -11
- package/dist/packages/_es/SearchBar.js +5 -24
- package/dist/packages/_es/ShortPassword.js +18 -11
- package/dist/packages/_es/SideNavBar.js +4 -22
- package/dist/packages/_es/SideNavBarItem.js +1 -1
- package/dist/packages/_es/Signature.js +15 -23
- package/dist/packages/_es/Skeleton.js +1 -1
- package/dist/packages/_es/Sku.js +24 -32
- package/dist/packages/_es/Step.js +9 -26
- package/dist/packages/_es/Steps.js +8 -4
- package/dist/packages/_es/Sticky.js +23 -12
- package/dist/packages/_es/SubSideNavBar.js +4 -22
- package/dist/packages/_es/Swipe.js +5 -24
- package/dist/packages/_es/Swiper.js +23 -14
- package/dist/packages/_es/SwiperItem.js +1 -1
- package/dist/packages/_es/Switch.js +15 -11
- 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 +10 -25
- package/dist/packages/_es/Tabs.js +20 -29
- package/dist/packages/_es/Tag.js +11 -15
- package/dist/packages/_es/TextArea.js +8 -5
- package/dist/packages/_es/TimeDetail.js +5 -24
- package/dist/packages/_es/TimePannel.js +4 -22
- package/dist/packages/_es/TimeSelect.js +1 -1
- package/dist/packages/_es/Toast.js +22 -39
- package/dist/packages/_es/Uploader.js +54 -54
- package/dist/packages/_es/Video.js +22 -33
- package/dist/packages/_es/WaterMark.js +31 -44
- package/dist/packages/_es/common.js +21 -11
- 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 +26 -35
- 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/actionsheet/index.scss +17 -0
- package/dist/packages/address/index.scss +60 -0
- package/dist/packages/addresslist/index.scss +57 -17
- package/dist/packages/audio/index.scss +8 -0
- package/dist/packages/barrage/index.scss +7 -0
- package/dist/packages/button/index.scss +1 -0
- package/dist/packages/card/index.scss +8 -1
- package/dist/packages/category/index.scss +25 -4
- package/dist/packages/categorypane/index.scss +18 -65
- package/dist/packages/circleprogress/index.scss +6 -0
- package/dist/packages/collapseitem/index.scss +21 -0
- package/dist/packages/comment/index.scss +37 -0
- package/dist/packages/countup/index.scss +24 -3
- package/dist/packages/ecard/index.scss +31 -1
- package/dist/packages/elevator/index.scss +16 -0
- package/dist/packages/empty/index.scss +6 -0
- package/dist/packages/fixednav/index.scss +7 -0
- package/dist/packages/image/index.scss +12 -0
- package/dist/packages/infiniteloading/index.scss +18 -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 +8 -0
- package/dist/packages/noticebar/index.scss +13 -0
- package/dist/packages/numberkeyboard/index.scss +10 -0
- package/dist/packages/picker/index.scss +33 -0
- package/dist/packages/popup/index.scss +10 -0
- package/dist/packages/radio/index.scss +1 -0
- package/dist/packages/shortpassword/index.scss +20 -0
- package/dist/packages/sidenavbaritem/index.scss +9 -0
- package/dist/packages/sku/index.scss +40 -0
- package/dist/packages/step/index.scss +52 -0
- package/dist/packages/subsidenavbar/index.scss +12 -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/watermark/index.scss +1 -1
- package/dist/smartips/attributes.json +38 -2
- package/dist/smartips/tags.json +14 -4
- package/dist/smartips/web-types.json +86 -4
- package/dist/style.css +1 -1
- package/dist/styles/themes/default.scss +51 -51
- package/dist/styles/themes/jdb.scss +51 -51
- package/dist/styles/themes/jdt.scss +51 -51
- package/dist/styles/variables-jdb.scss +28 -7
- package/dist/styles/variables-jdt.scss +28 -7
- package/dist/styles/variables.scss +27 -7
- package/dist/types/__VUE/actionsheet/index.vue.d.ts +1 -1
- package/dist/types/__VUE/address/index.vue.d.ts +1 -1
- package/dist/types/__VUE/addresslist/index.vue.d.ts +1 -1
- package/dist/types/__VUE/audio/index.vue.d.ts +4 -1
- package/dist/types/__VUE/audiooperate/index.vue.d.ts +15 -72
- package/dist/types/__VUE/avatargroup/index.vue.d.ts +1 -1
- package/dist/types/__VUE/backtop/index.vue.d.ts +1 -1
- package/dist/types/__VUE/calendar/index.vue.d.ts +7 -0
- package/dist/types/__VUE/calendaritem/index.vue.d.ts +2 -2
- package/dist/types/__VUE/categorypane/index.vue.d.ts +1 -1
- package/dist/types/__VUE/cell/index.vue.d.ts +9 -2
- package/dist/types/__VUE/cellgroup/index.vue.d.ts +1 -1
- package/dist/types/__VUE/checkboxgroup/index.vue.d.ts +1 -1
- package/dist/types/__VUE/circleprogress/index.vue.d.ts +1 -1
- 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 +1 -1
- package/dist/types/__VUE/configprovider/index.vue.d.ts +1 -1
- package/dist/types/__VUE/countdown/index.vue.d.ts +1 -1
- package/dist/types/__VUE/countup/index.vue.d.ts +1 -1
- package/dist/types/__VUE/datepicker/index.vue.d.ts +1 -1
- package/dist/types/__VUE/fixednav/common.d.ts +56 -0
- package/dist/types/__VUE/fixednav/index.vue.d.ts +17 -9
- package/dist/types/__VUE/formitem/index.vue.d.ts +1 -1
- package/dist/types/__VUE/griditem/index.vue.d.ts +1 -1
- package/dist/types/__VUE/imagepreview/imagePreviewItem.vue.d.ts +1 -1
- package/dist/types/__VUE/imagepreview/index.d.ts +7 -6
- package/dist/types/__VUE/imagepreview/index.vue.d.ts +4 -4
- package/dist/types/__VUE/imagepreview/types.d.ts +7 -0
- package/dist/types/__VUE/infiniteloading/index.vue.d.ts +1 -1
- package/dist/types/__VUE/input/index.vue.d.ts +4 -9
- package/dist/types/__VUE/inputnumber/index.vue.d.ts +15 -1
- package/dist/types/__VUE/menu/index.vue.d.ts +3 -0
- package/dist/types/__VUE/menuitem/index.vue.d.ts +1 -4
- package/dist/types/__VUE/noticebar/index.vue.d.ts +4 -4
- package/dist/types/__VUE/numberkeyboard/index.vue.d.ts +1 -1
- package/dist/types/__VUE/oldpicker/Column.vue.d.ts +1 -1
- package/dist/types/__VUE/oldpicker/index.vue.d.ts +1 -1
- package/dist/types/__VUE/overlay/index.vue.d.ts +1 -1
- package/dist/types/__VUE/picker/Column.vue.d.ts +8 -0
- package/dist/types/__VUE/picker/index.vue.d.ts +28 -13
- package/dist/types/__VUE/popover/index.vue.d.ts +2 -2
- package/dist/types/__VUE/pullrefresh/index.vue.d.ts +1 -1
- package/dist/types/__VUE/radiogroup/index.vue.d.ts +1 -1
- package/dist/types/__VUE/row/index.vue.d.ts +2 -5
- package/dist/types/__VUE/searchbar/index.vue.d.ts +1 -1
- package/dist/types/__VUE/shortpassword/index.vue.d.ts +1 -1
- package/dist/types/__VUE/sidenavbar/index.vue.d.ts +1 -1
- package/dist/types/__VUE/sidenavbaritem/index.vue.d.ts +1 -1
- package/dist/types/__VUE/signature/index.vue.d.ts +5 -2
- package/dist/types/__VUE/subsidenavbar/index.vue.d.ts +1 -1
- package/dist/types/__VUE/swiperitem/index.vue.d.ts +1 -1
- package/dist/types/__VUE/switch/index.vue.d.ts +2 -2
- package/dist/types/__VUE/tabbaritem/index.vue.d.ts +1 -1
- package/dist/types/__VUE/tabpane/index.vue.d.ts +1 -1
- package/dist/types/__VUE/textarea/index.vue.d.ts +1 -1
- package/dist/types/__VUE/timedetail/index.vue.d.ts +1 -1
- package/dist/types/__VUE/timepannel/index.vue.d.ts +1 -1
- package/dist/types/__VUE/timeselect/index.vue.d.ts +1 -1
- package/dist/types/__VUE/uploader/index.vue.d.ts +7 -0
- package/dist/types/__VUE/uploader/uploader.d.ts +1 -0
- package/dist/types/__VUE/watermark/index.vue.d.ts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/package.json +2 -1
- package/dist/packages/index.d.ts +0 -3
|
@@ -1,24 +1,5 @@
|
|
|
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
1
|
/*!
|
|
21
|
-
* @nutui/nutui v3.
|
|
2
|
+
* @nutui/nutui v3.2.2-beta.1 Mon Aug 22 2022 15:19:47 GMT+0800 (中国标准时间)
|
|
22
3
|
* (c) 2022 @jdf2e.
|
|
23
4
|
* Released under the MIT License.
|
|
24
5
|
*/
|
|
@@ -32,7 +13,8 @@ import "./Icon.js";
|
|
|
32
13
|
import "./pxCheck.js";
|
|
33
14
|
const { componentName, create } = createComponent("actionsheet");
|
|
34
15
|
const _sfc_main = create({
|
|
35
|
-
props:
|
|
16
|
+
props: {
|
|
17
|
+
...popupProps,
|
|
36
18
|
cancelTxt: {
|
|
37
19
|
type: String,
|
|
38
20
|
default: ""
|
|
@@ -73,7 +55,7 @@ const _sfc_main = create({
|
|
|
73
55
|
type: Boolean,
|
|
74
56
|
default: true
|
|
75
57
|
}
|
|
76
|
-
}
|
|
58
|
+
},
|
|
77
59
|
emits: ["cancel", "close", "choose", "update:visible"],
|
|
78
60
|
setup(props, { emit }) {
|
|
79
61
|
const slotDefault = !!useSlots().default;
|
|
@@ -1,28 +1,9 @@
|
|
|
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
1
|
/*!
|
|
21
|
-
* @nutui/nutui v3.
|
|
2
|
+
* @nutui/nutui v3.2.2-beta.1 Mon Aug 22 2022 15:19:47 GMT+0800 (中国标准时间)
|
|
22
3
|
* (c) 2022 @jdf2e.
|
|
23
4
|
* Released under the MIT License.
|
|
24
5
|
*/
|
|
25
|
-
import { ref, computed, reactive, onMounted, watch, toRefs, nextTick, resolveComponent, openBlock, createBlock, withCtx, createElementVNode, withDirectives, createVNode, vShow, toDisplayString, createCommentVNode, createElementBlock, Fragment, renderList, normalizeClass, normalizeStyle, createTextVNode } from "vue";
|
|
6
|
+
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";
|
|
26
7
|
import { c as createComponent } from "./component.js";
|
|
27
8
|
import { popupProps } from "./Popup.js";
|
|
28
9
|
import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
|
|
@@ -33,7 +14,8 @@ import "./pxCheck.js";
|
|
|
33
14
|
const { componentName, create, translate } = createComponent("address");
|
|
34
15
|
const _sfc_main = create({
|
|
35
16
|
inheritAttrs: false,
|
|
36
|
-
props:
|
|
17
|
+
props: {
|
|
18
|
+
...popupProps,
|
|
37
19
|
modelValue: {
|
|
38
20
|
type: Array,
|
|
39
21
|
default: () => []
|
|
@@ -102,7 +84,7 @@ const _sfc_main = create({
|
|
|
102
84
|
type: [String, Array],
|
|
103
85
|
default: ""
|
|
104
86
|
}
|
|
105
|
-
}
|
|
87
|
+
},
|
|
106
88
|
emits: ["update:visible", "update:modelValue", "type", "change", "selected", "close", "close-mask", "switch-module"],
|
|
107
89
|
setup(props, { emit }) {
|
|
108
90
|
const regionLine = ref(null);
|
|
@@ -278,10 +260,13 @@ const _sfc_main = create({
|
|
|
278
260
|
lineAnimation();
|
|
279
261
|
};
|
|
280
262
|
const close = () => {
|
|
281
|
-
const resCopy = Object.assign(
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
263
|
+
const resCopy = Object.assign(
|
|
264
|
+
{
|
|
265
|
+
addressIdStr: "",
|
|
266
|
+
addressStr: ""
|
|
267
|
+
},
|
|
268
|
+
selectedRegion
|
|
269
|
+
);
|
|
285
270
|
const res = {
|
|
286
271
|
data: {},
|
|
287
272
|
type: privateType.value
|
|
@@ -324,36 +309,57 @@ const _sfc_main = create({
|
|
|
324
309
|
const handleElevatorItem = (key, item) => {
|
|
325
310
|
nextAreaList(item);
|
|
326
311
|
};
|
|
327
|
-
watch(
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
if (value == false) {
|
|
332
|
-
close();
|
|
333
|
-
} else {
|
|
334
|
-
initCustomSelected();
|
|
312
|
+
watch(
|
|
313
|
+
() => props.visible,
|
|
314
|
+
(value) => {
|
|
315
|
+
showPopup.value = value;
|
|
335
316
|
}
|
|
336
|
-
|
|
337
|
-
watch(
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
regionList.country = isCustom2.value ? transformData(value) : value;
|
|
345
|
-
});
|
|
346
|
-
watch(() => props.town, (value) => {
|
|
347
|
-
regionList.town = isCustom2.value ? transformData(value) : value;
|
|
348
|
-
});
|
|
349
|
-
watch(() => props.existAddress, (value) => {
|
|
350
|
-
value.forEach((item, index2) => {
|
|
351
|
-
if (item.selectedAddress) {
|
|
352
|
-
selectedExistAddress = item;
|
|
317
|
+
);
|
|
318
|
+
watch(
|
|
319
|
+
() => showPopup.value,
|
|
320
|
+
(value) => {
|
|
321
|
+
if (value == false) {
|
|
322
|
+
close();
|
|
323
|
+
} else {
|
|
324
|
+
initCustomSelected();
|
|
353
325
|
}
|
|
354
|
-
}
|
|
355
|
-
|
|
356
|
-
|
|
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
|
+
);
|
|
362
|
+
return {
|
|
357
363
|
showPopup,
|
|
358
364
|
privateType,
|
|
359
365
|
tabIndex,
|
|
@@ -374,10 +380,10 @@ const _sfc_main = create({
|
|
|
374
380
|
clickOverlay,
|
|
375
381
|
handClose,
|
|
376
382
|
handleElevatorItem,
|
|
377
|
-
initCustomSelected
|
|
378
|
-
|
|
383
|
+
initCustomSelected,
|
|
384
|
+
...toRefs(props),
|
|
379
385
|
translate
|
|
380
|
-
}
|
|
386
|
+
};
|
|
381
387
|
}
|
|
382
388
|
});
|
|
383
389
|
const _hoisted_1 = { class: "nut-address" };
|
|
@@ -443,10 +449,10 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
443
449
|
class: "arrow-back",
|
|
444
450
|
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.switchModule && _ctx.switchModule(...args))
|
|
445
451
|
}, [
|
|
446
|
-
withDirectives(createVNode(_component_nut_icon, {
|
|
452
|
+
withDirectives(createVNode(_component_nut_icon, mergeProps(_ctx.$attrs, {
|
|
447
453
|
name: _ctx.backBtnIcon,
|
|
448
454
|
color: "#cccccc"
|
|
449
|
-
}, null,
|
|
455
|
+
}), null, 16, ["name"]), [
|
|
450
456
|
[vShow, _ctx.type == "exist" && _ctx.privateType == "custom" && _ctx.backBtnIcon]
|
|
451
457
|
])
|
|
452
458
|
]),
|
|
@@ -455,12 +461,11 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
455
461
|
class: "arrow-close",
|
|
456
462
|
onClick: _cache[1] || (_cache[1] = ($event) => _ctx.handClose("cross"))
|
|
457
463
|
}, [
|
|
458
|
-
_ctx.closeBtnIcon ? (openBlock(), createBlock(_component_nut_icon, {
|
|
459
|
-
key: 0,
|
|
464
|
+
_ctx.closeBtnIcon ? (openBlock(), createBlock(_component_nut_icon, mergeProps({ key: 0 }, _ctx.$attrs, {
|
|
460
465
|
name: _ctx.closeBtnIcon,
|
|
461
466
|
color: "#cccccc",
|
|
462
467
|
size: "18px"
|
|
463
|
-
}, null,
|
|
468
|
+
}), null, 16, ["name"])) : createCommentVNode("", true)
|
|
464
469
|
])
|
|
465
470
|
]),
|
|
466
471
|
_ctx.privateType == "custom" ? (openBlock(), createElementBlock("view", _hoisted_4, [
|
|
@@ -488,13 +493,14 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
488
493
|
class: normalizeClass(["region-item", [_ctx.selectedRegion[_ctx.tabName[_ctx.tabIndex]].id == item.id ? "active" : ""]]),
|
|
489
494
|
onClick: ($event) => _ctx.nextAreaList(item)
|
|
490
495
|
}, [
|
|
491
|
-
_ctx.selectedRegion[_ctx.tabName[_ctx.tabIndex]].id == item.id ? (openBlock(), createBlock(_component_nut_icon, {
|
|
496
|
+
_ctx.selectedRegion[_ctx.tabName[_ctx.tabIndex]].id == item.id ? (openBlock(), createBlock(_component_nut_icon, mergeProps({
|
|
492
497
|
key: 0,
|
|
493
498
|
class: "region-item-icon",
|
|
494
|
-
type: "self"
|
|
499
|
+
type: "self"
|
|
500
|
+
}, _ctx.$attrs, {
|
|
495
501
|
name: _ctx.selectedIcon,
|
|
496
502
|
size: "13px"
|
|
497
|
-
}, null,
|
|
503
|
+
}), null, 16, ["name"])) : createCommentVNode("", true),
|
|
498
504
|
createTextVNode(toDisplayString(item.name), 1)
|
|
499
505
|
], 10, _hoisted_9);
|
|
500
506
|
}), 128))
|
|
@@ -533,12 +539,13 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
533
539
|
key: index2,
|
|
534
540
|
onClick: ($event) => _ctx.selectedExist(item)
|
|
535
541
|
}, [
|
|
536
|
-
createVNode(_component_nut_icon, {
|
|
542
|
+
createVNode(_component_nut_icon, mergeProps({
|
|
537
543
|
class: "exist-item-icon",
|
|
538
|
-
type: "self"
|
|
544
|
+
type: "self"
|
|
545
|
+
}, _ctx.$attrs, {
|
|
539
546
|
name: item.selectedAddress ? _ctx.selectedIcon : _ctx.defaultIcon,
|
|
540
547
|
size: "13px"
|
|
541
|
-
}, null,
|
|
548
|
+
}), null, 16, ["name"]),
|
|
542
549
|
createElementVNode("div", _hoisted_18, [
|
|
543
550
|
item.name && item.phone ? (openBlock(), createElementBlock("div", _hoisted_19, [
|
|
544
551
|
createElementVNode("div", _hoisted_20, toDisplayString(item.name), 1),
|
|
@@ -559,10 +566,11 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
559
566
|
}, [
|
|
560
567
|
createElementVNode("div", _hoisted_23, toDisplayString(_ctx.customAndExistTitle || _ctx.translate("chooseAnotherAddress")), 1)
|
|
561
568
|
])) : createCommentVNode("", true)
|
|
562
|
-
])) : createCommentVNode("", true)
|
|
569
|
+
])) : createCommentVNode("", true),
|
|
570
|
+
renderSlot(_ctx.$slots, "bottom")
|
|
563
571
|
])
|
|
564
572
|
]),
|
|
565
|
-
_:
|
|
573
|
+
_: 3
|
|
566
574
|
}, 8, ["lock-scroll", "onClose", "onClickOverlay", "visible", "isWrapTeleport", "teleport"]);
|
|
567
575
|
}
|
|
568
576
|
var index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.
|
|
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
|
*/
|
|
@@ -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,14 +474,17 @@ 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
|
-
|
|
479
|
-
if (Object.keys(props.dataMapOptions).length > 0 && props.data.length > 0) {
|
|
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);
|
|
482
480
|
});
|
|
483
481
|
}
|
|
484
482
|
};
|
|
485
|
-
watch(
|
|
483
|
+
watch(
|
|
484
|
+
() => props.data,
|
|
485
|
+
() => trowelData(),
|
|
486
|
+
{ deep: true }
|
|
487
|
+
);
|
|
486
488
|
const clickDelIcon = (event, item) => {
|
|
487
489
|
emit("handelDelIcon", event, item);
|
|
488
490
|
event.stopPropagation();
|
|
@@ -1,24 +1,5 @@
|
|
|
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
1
|
/*!
|
|
21
|
-
* @nutui/nutui v3.
|
|
2
|
+
* @nutui/nutui v3.2.2-beta.1 Mon Aug 22 2022 15:19:47 GMT+0800 (中国标准时间)
|
|
22
3
|
* (c) 2022 @jdf2e.
|
|
23
4
|
* Released under the MIT License.
|
|
24
5
|
*/
|
|
@@ -65,7 +46,7 @@ const _sfc_main = create({
|
|
|
65
46
|
}
|
|
66
47
|
emit("click", event);
|
|
67
48
|
};
|
|
68
|
-
return
|
|
49
|
+
return { ...toRefs(state), classes, handleClick };
|
|
69
50
|
}
|
|
70
51
|
});
|
|
71
52
|
const _hoisted_1 = { class: "nut-animate" };
|
|
@@ -1,24 +1,5 @@
|
|
|
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
1
|
/*!
|
|
21
|
-
* @nutui/nutui v3.
|
|
2
|
+
* @nutui/nutui v3.2.2-beta.1 Mon Aug 22 2022 15:19:47 GMT+0800 (中国标准时间)
|
|
22
3
|
* (c) 2022 @jdf2e.
|
|
23
4
|
* Released under the MIT License.
|
|
24
5
|
*/
|
|
@@ -59,7 +40,7 @@ const _sfc_main = create({
|
|
|
59
40
|
}
|
|
60
41
|
},
|
|
61
42
|
components: {},
|
|
62
|
-
emits: ["fastBack", "play", "forward", "ended", "changeProgress", "mute"],
|
|
43
|
+
emits: ["fastBack", "play", "forward", "ended", "changeProgress", "mute", "can-play"],
|
|
63
44
|
setup(props, { emit }) {
|
|
64
45
|
const audioRef = ref(null);
|
|
65
46
|
const audioData = reactive({
|
|
@@ -91,22 +72,25 @@ const _sfc_main = create({
|
|
|
91
72
|
} catch (e) {
|
|
92
73
|
console.log(e.message);
|
|
93
74
|
}
|
|
94
|
-
setTimeout(() => {
|
|
95
|
-
const audioR = audioRef.value;
|
|
96
|
-
if (props.autoplay) {
|
|
97
|
-
if (audioR && audioR.paused) {
|
|
98
|
-
audioR.play();
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
audioData.second = audioR.duration;
|
|
102
|
-
audioData.duration = formatSeconds(audioR.duration);
|
|
103
|
-
}, 500);
|
|
104
75
|
});
|
|
76
|
+
const onCanplay = (e) => {
|
|
77
|
+
const audioR = audioRef.value;
|
|
78
|
+
if (props.autoplay) {
|
|
79
|
+
if (audioR && audioR.paused) {
|
|
80
|
+
audioR.play();
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
audioData.second = audioR.duration;
|
|
84
|
+
audioData.duration = formatSeconds(audioR.duration);
|
|
85
|
+
emit("can-play", e);
|
|
86
|
+
};
|
|
105
87
|
const onTimeupdate = (e) => {
|
|
106
88
|
audioData.currentTime = parseInt(e.target.currentTime);
|
|
107
89
|
};
|
|
108
90
|
const fastBack = () => {
|
|
109
|
-
audioData.currentTime
|
|
91
|
+
if (audioData.currentTime > 0) {
|
|
92
|
+
audioData.currentTime--;
|
|
93
|
+
}
|
|
110
94
|
audioRef.value.currentTime = audioData.currentTime;
|
|
111
95
|
emit("fastBack", audioData.currentTime);
|
|
112
96
|
};
|
|
@@ -145,42 +129,25 @@ const _sfc_main = create({
|
|
|
145
129
|
emit("mute", audioData.hanMuted);
|
|
146
130
|
};
|
|
147
131
|
const formatSeconds = (value) => {
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
let theTime2 = 0;
|
|
151
|
-
if (theTime > 60) {
|
|
152
|
-
theTime1 = Math.floor(theTime / 60);
|
|
153
|
-
theTime = Math.floor(theTime % 60);
|
|
154
|
-
if (theTime1 > 60) {
|
|
155
|
-
theTime2 = Math.floor(theTime1 / 60);
|
|
156
|
-
theTime1 = Math.floor(theTime1 % 60);
|
|
157
|
-
}
|
|
132
|
+
if (!value) {
|
|
133
|
+
return "00:00:00";
|
|
158
134
|
}
|
|
135
|
+
let time = parseInt(value);
|
|
136
|
+
let hours = Math.floor(time / 3600);
|
|
137
|
+
let minutes = Math.floor((time - hours * 3600) / 60);
|
|
138
|
+
let seconds = time - hours * 3600 - minutes * 60;
|
|
159
139
|
let result = "";
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
if (theTime1 > 0) {
|
|
164
|
-
result = "" + theTime1 + ":" + result;
|
|
165
|
-
if (theTime1 < 10) {
|
|
166
|
-
result = "0" + result;
|
|
167
|
-
}
|
|
168
|
-
} else {
|
|
169
|
-
result = "00:" + result;
|
|
170
|
-
}
|
|
171
|
-
if (theTime2 > 0) {
|
|
172
|
-
result = "" + theTime2 + ":" + result;
|
|
173
|
-
if (theTime2 < 10) {
|
|
174
|
-
result = "0" + result;
|
|
175
|
-
}
|
|
176
|
-
} else {
|
|
177
|
-
result = "00:" + result;
|
|
178
|
-
}
|
|
140
|
+
result += ("0" + hours.toString()).slice(-2) + ":";
|
|
141
|
+
result += ("0" + minutes.toString()).slice(-2) + ":";
|
|
142
|
+
result += ("0" + seconds.toString()).slice(-2);
|
|
179
143
|
return result;
|
|
180
144
|
};
|
|
181
|
-
watch(
|
|
182
|
-
|
|
183
|
-
|
|
145
|
+
watch(
|
|
146
|
+
() => audioData.currentTime,
|
|
147
|
+
(value) => {
|
|
148
|
+
handle(value);
|
|
149
|
+
}
|
|
150
|
+
);
|
|
184
151
|
provide("audioParent", {
|
|
185
152
|
children: [],
|
|
186
153
|
props,
|
|
@@ -190,7 +157,9 @@ const _sfc_main = create({
|
|
|
190
157
|
fastBack,
|
|
191
158
|
changeStatus
|
|
192
159
|
});
|
|
193
|
-
return
|
|
160
|
+
return {
|
|
161
|
+
...toRefs(props),
|
|
162
|
+
...toRefs(audioData),
|
|
194
163
|
audioRef,
|
|
195
164
|
fastBack,
|
|
196
165
|
forward,
|
|
@@ -198,8 +167,9 @@ const _sfc_main = create({
|
|
|
198
167
|
progressChange,
|
|
199
168
|
audioEnd,
|
|
200
169
|
onTimeupdate,
|
|
201
|
-
handleMute
|
|
202
|
-
|
|
170
|
+
handleMute,
|
|
171
|
+
onCanplay
|
|
172
|
+
};
|
|
203
173
|
}
|
|
204
174
|
});
|
|
205
175
|
const _hoisted_1 = { class: "nut-audio" };
|
|
@@ -271,7 +241,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
271
241
|
autoplay: _ctx.autoplay,
|
|
272
242
|
loop: _ctx.loop,
|
|
273
243
|
onTimeupdate: _cache[3] || (_cache[3] = (...args) => _ctx.onTimeupdate && _ctx.onTimeupdate(...args)),
|
|
274
|
-
|
|
244
|
+
onCanplay: _cache[4] || (_cache[4] = (...args) => _ctx.onCanplay && _ctx.onCanplay(...args)),
|
|
245
|
+
onEnded: _cache[5] || (_cache[5] = (...args) => _ctx.audioEnd && _ctx.audioEnd(...args)),
|
|
275
246
|
muted: _ctx.hanMuted
|
|
276
247
|
}, null, 40, _hoisted_8)
|
|
277
248
|
]);
|
|
@@ -1,24 +1,5 @@
|
|
|
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
1
|
/*!
|
|
21
|
-
* @nutui/nutui v3.
|
|
2
|
+
* @nutui/nutui v3.2.2-beta.1 Mon Aug 22 2022 15:19:47 GMT+0800 (中国标准时间)
|
|
22
3
|
* (c) 2022 @jdf2e.
|
|
23
4
|
* Released under the MIT License.
|
|
24
5
|
*/
|
|
@@ -31,9 +12,7 @@ const _sfc_main = create({
|
|
|
31
12
|
props: {
|
|
32
13
|
type: {
|
|
33
14
|
type: String,
|
|
34
|
-
default()
|
|
35
|
-
return "play";
|
|
36
|
-
}
|
|
15
|
+
default: () => "play"
|
|
37
16
|
}
|
|
38
17
|
},
|
|
39
18
|
components: {},
|
|
@@ -42,7 +21,7 @@ const _sfc_main = create({
|
|
|
42
21
|
const audio = inject("audioParent");
|
|
43
22
|
const parent = reactive(audio);
|
|
44
23
|
const customSlot = ref(useSlots().default);
|
|
45
|
-
return
|
|
24
|
+
return { ...toRefs(props), ...toRefs(parent), customSlot, translate };
|
|
46
25
|
}
|
|
47
26
|
});
|
|
48
27
|
const _hoisted_1 = { class: "nut-audio-operate" };
|
|
@@ -1,25 +1,9 @@
|
|
|
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
|
-
};
|
|
17
1
|
/*!
|
|
18
|
-
* @nutui/nutui v3.
|
|
2
|
+
* @nutui/nutui v3.2.2-beta.1 Mon Aug 22 2022 15:19:47 GMT+0800 (中国标准时间)
|
|
19
3
|
* (c) 2022 @jdf2e.
|
|
20
4
|
* Released under the MIT License.
|
|
21
5
|
*/
|
|
22
|
-
import { toRefs, inject, ref, reactive, onMounted, computed, resolveComponent, openBlock, createElementBlock, normalizeStyle, normalizeClass, Fragment, createBlock, createCommentVNode, renderSlot, toDisplayString } from "vue";
|
|
6
|
+
import { toRefs, inject, ref, reactive, onMounted, computed, resolveComponent, openBlock, createElementBlock, normalizeStyle, normalizeClass, Fragment, createBlock, mergeProps, createCommentVNode, renderSlot, toDisplayString } from "vue";
|
|
23
7
|
import { c as createComponent } from "./component.js";
|
|
24
8
|
import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
|
|
25
9
|
import "../locale/lang";
|
|
@@ -128,7 +112,7 @@ const _sfc_main = create({
|
|
|
128
112
|
const onError = (event) => {
|
|
129
113
|
emit("onError", event);
|
|
130
114
|
};
|
|
131
|
-
return
|
|
115
|
+
return {
|
|
132
116
|
classes,
|
|
133
117
|
styles,
|
|
134
118
|
iconStyles,
|
|
@@ -138,8 +122,9 @@ const _sfc_main = create({
|
|
|
138
122
|
onError,
|
|
139
123
|
avatarGroup,
|
|
140
124
|
visible,
|
|
141
|
-
avatarRef
|
|
142
|
-
|
|
125
|
+
avatarRef,
|
|
126
|
+
...toRefs(state)
|
|
127
|
+
};
|
|
143
128
|
}
|
|
144
129
|
});
|
|
145
130
|
const _hoisted_1 = ["src", "alt"];
|
|
@@ -167,11 +152,10 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
167
152
|
src: _ctx.url,
|
|
168
153
|
alt: _ctx.alt,
|
|
169
154
|
onError: _cache[0] || (_cache[0] = (...args) => _ctx.onError && _ctx.onError(...args))
|
|
170
|
-
}, null, 40, _hoisted_1)) : _ctx.icon ? (openBlock(), createBlock(_component_nut_icon, {
|
|
171
|
-
key: 1,
|
|
155
|
+
}, null, 40, _hoisted_1)) : _ctx.icon ? (openBlock(), createBlock(_component_nut_icon, mergeProps({ key: 1 }, _ctx.$attrs, {
|
|
172
156
|
class: "icon",
|
|
173
157
|
name: _ctx.iconStyles
|
|
174
|
-
}, null,
|
|
158
|
+
}), null, 16, ["name"])) : createCommentVNode("", true),
|
|
175
159
|
_ctx.isShowText ? (openBlock(), createElementBlock("view", _hoisted_2, [
|
|
176
160
|
renderSlot(_ctx.$slots, "default")
|
|
177
161
|
])) : createCommentVNode("", true)
|