@nutui/nutui 4.2.2-beta.3 → 4.2.3
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 +39 -0
- package/README.md +34 -21
- package/dist/nutui.es.js +1 -1
- package/dist/nutui.js +4128 -4136
- package/dist/nutui.umd.js +1 -1
- package/dist/packages/{Interceptor-6aab6fe0.js → Interceptor-WYVtGbGC.js} +1 -1
- package/dist/packages/actionsheet/ActionSheet.js +4 -4
- package/dist/packages/address/Address.js +7 -8
- package/dist/packages/addresslist/AddressList.js +6 -5
- package/dist/packages/animate/Animate.js +2 -2
- package/dist/packages/audio/Audio.js +5 -5
- package/dist/packages/audiooperate/AudioOperate.js +4 -4
- package/dist/packages/avatar/Avatar.js +5 -65
- package/dist/packages/avatarcropper/AvatarCropper.js +5 -5
- package/dist/packages/avatargroup/AvatarGroup.js +4 -4
- package/dist/packages/backtop/Backtop.js +3 -3
- package/dist/packages/badge/Badge.js +2 -2
- package/dist/packages/barrage/Barrage.js +2 -2
- package/dist/packages/button/Button.js +2 -2
- package/dist/packages/calendar/Calendar.js +8 -8
- package/dist/packages/calendaritem/CalendarItem.js +7 -7
- package/dist/packages/card/Card.js +2 -2
- package/dist/packages/cascader/Cascader.js +10 -10
- package/dist/packages/category/Category.js +2 -2
- package/dist/packages/categorypane/CategoryPane.js +2 -2
- package/dist/packages/cell/Cell.js +4 -4
- package/dist/packages/cellgroup/CellGroup.js +2 -2
- package/dist/packages/checkbox/Checkbox.js +4 -3
- package/dist/packages/checkboxgroup/CheckboxGroup.js +4 -3
- package/dist/packages/circleprogress/CircleProgress.js +3 -3
- package/dist/packages/col/Col.js +6 -5
- package/dist/packages/collapse/Collapse.js +7 -6
- package/dist/packages/collapseitem/CollapseItem.js +9 -9
- package/dist/packages/comment/Comment.js +7 -7
- package/dist/packages/{common-72c11f1d.js → common-4inKawxR.js} +3 -3
- package/dist/packages/configprovider/ConfigProvider.js +1 -1
- package/dist/packages/countdown/Countdown.js +4 -4
- package/dist/packages/countup/Countup.js +2 -2
- package/dist/packages/datepicker/DatePicker.js +6 -6
- package/dist/packages/dialog/Dialog.js +7 -7
- package/dist/packages/divider/Divider.js +2 -2
- package/dist/packages/drag/Drag.js +3 -3
- package/dist/packages/ecard/Ecard.js +5 -5
- package/dist/packages/elevator/Elevator.js +3 -3
- package/dist/packages/ellipsis/Ellipsis.js +2 -2
- package/dist/packages/empty/Empty.js +5 -5
- package/dist/packages/fixednav/FixedNav.js +4 -4
- package/dist/packages/form/Form.js +6 -44
- package/dist/packages/formitem/FormItem.js +8 -21
- package/dist/packages/grid/Grid.js +3 -3
- package/dist/packages/griditem/GridItem.js +5 -5
- package/dist/packages/image/Image.js +3 -3
- package/dist/packages/imagepreview/ImagePreview.js +12 -11
- package/dist/packages/index--uVlasFu.js +69 -0
- package/dist/packages/{index-914a76f0.js → index-cDNmNOtI.js} +5 -5
- package/dist/packages/{index-37ae1f41.js → index-rbZsBckW.js} +2 -2
- package/dist/packages/{index-c0fa0f6b.js → index-s3RgMhc7.js} +1 -1
- package/dist/packages/{index.vue_vue_type_script_lang-825ed1e0.js → index.vue_vue_type_script_lang-KuoPcQZs.js} +4 -3
- package/dist/packages/{index.vue_vue_type_script_lang-0185ccea.js → index.vue_vue_type_script_lang-Lc2BXA17.js} +3 -2
- package/dist/packages/indicator/Indicator.js +3 -3
- package/dist/packages/infiniteloading/InfiniteLoading.js +6 -6
- package/dist/packages/input/Input.js +2 -2
- package/dist/packages/inputnumber/InputNumber.js +7 -3
- package/dist/packages/invoice/Invoice.js +11 -7
- package/dist/packages/layout/Layout.js +1 -1
- package/dist/packages/list/List.js +4 -3
- 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/Menu.js +17 -52
- package/dist/packages/menuitem/MenuItem.js +8 -18
- package/dist/packages/{mountComponent-867a9167.js → mountComponent-uInXoTMp.js} +1 -1
- package/dist/packages/navbar/Navbar.js +2 -2
- package/dist/packages/noticebar/Noticebar.js +3 -3
- package/dist/packages/notify/Notify.js +4 -4
- package/dist/packages/numberkeyboard/NumberKeyboard.js +5 -5
- package/dist/packages/overlay/Overlay.js +3 -3
- package/dist/packages/pagination/Pagination.js +4 -4
- package/dist/packages/picker/Picker.js +6 -6
- package/dist/packages/popover/Popover.js +6 -6
- package/dist/packages/popup/Popup.js +4 -4
- package/dist/packages/price/Price.js +2 -2
- package/dist/packages/progress/Progress.js +2 -2
- package/dist/packages/pullrefresh/PullRefresh.js +7 -7
- package/dist/packages/radio/Radio.js +4 -3
- package/dist/packages/radiogroup/RadioGroup.js +3 -2
- package/dist/packages/range/Range.js +5 -5
- package/dist/packages/rate/Rate.js +5 -5
- package/dist/packages/row/Row.js +6 -5
- package/dist/packages/searchbar/Searchbar.js +5 -5
- package/dist/packages/shortpassword/ShortPassword.js +5 -5
- package/dist/packages/sidenavbar/SideNavbar.js +2 -2
- package/dist/packages/sidenavbaritem/SideNavbarItem.js +2 -2
- package/dist/packages/signature/Signature.js +4 -4
- package/dist/packages/skeleton/Skeleton.js +3 -3
- package/dist/packages/sku/Sku.js +6 -6
- package/dist/packages/space/Space.js +1 -1
- package/dist/packages/step/Step.js +4 -3
- package/dist/packages/steps/Steps.js +3 -2
- package/dist/packages/sticky/Sticky.js +4 -4
- package/dist/packages/subsidenavbar/SubSideNavbar.js +2 -2
- package/dist/packages/swipe/Swipe.js +5 -4
- package/dist/packages/swipegroup/SwipeGroup.js +4 -3
- package/dist/packages/swiper/Swiper.js +10 -11
- package/dist/packages/swiperitem/SwiperItem.js +5 -4
- package/dist/packages/switch/Switch.js +2 -2
- package/dist/packages/tabbar/Tabbar.js +5 -4
- package/dist/packages/tabbaritem/TabbarItem.js +6 -5
- package/dist/packages/table/Table.js +4 -4
- package/dist/packages/tabpane/TabPane.js +2 -2
- package/dist/packages/tabs/Tabs.js +8 -8
- package/dist/packages/tag/Tag.js +2 -2
- package/dist/packages/textarea/Textarea.js +4 -4
- package/dist/packages/timedetail/TimeDetail.js +2 -2
- package/dist/packages/timepannel/TimePannel.js +2 -2
- package/dist/packages/timeselect/TimeSelect.js +5 -5
- package/dist/packages/toast/Toast.js +5 -5
- package/dist/packages/tour/Tour.js +6 -6
- package/dist/packages/trendarrow/TrendArrow.js +3 -3
- package/dist/packages/types-4IflWeQO.js +4 -0
- package/dist/packages/types-9wCQwtH3.js +4 -0
- package/dist/packages/types-Cq2YypZn.js +4 -0
- package/dist/packages/types-RCVUm7Nb.js +4 -0
- package/dist/packages/types-Ww4ErYJT.js +4 -0
- package/dist/packages/types-Ynmct7na.js +4 -0
- package/dist/packages/types-j71K23JP.js +4 -0
- package/dist/packages/types-odSRziQJ.js +4 -0
- package/dist/packages/types-qOrhXtA_.js +4 -0
- package/dist/packages/types-zeKkNDAq.js +4 -0
- package/dist/packages/uploader/Uploader.js +5 -5
- package/dist/packages/useChildren-GU_NVfD8.js +54 -0
- package/dist/packages/useParent-KIxqkovs.js +16 -0
- package/dist/packages/video/Video.js +4 -4
- package/dist/packages/watermark/Watermark.js +2 -2
- package/dist/smartips/web-types.json +30 -3
- package/dist/style.js +1 -4
- package/dist/types/__VUE/avatar/index.vue.d.ts +1 -1
- package/dist/types/__VUE/avatar/types.d.ts +1 -0
- package/dist/types/__VUE/avatargroup/index.vue.d.ts +1 -1
- package/dist/types/__VUE/checkbox/types.d.ts +1 -0
- package/dist/types/__VUE/col/index.vue.d.ts +1 -0
- package/dist/types/__VUE/collapse/index.vue.d.ts +1 -1
- package/dist/types/__VUE/collapse/types.d.ts +5 -0
- package/dist/types/__VUE/collapseitem/index.vue.d.ts +1 -0
- package/dist/types/__VUE/form/types.d.ts +1 -0
- package/dist/types/__VUE/grid/index.vue.d.ts +1 -1
- package/dist/types/__VUE/input/type.d.ts +1 -1
- package/dist/types/__VUE/layout/types.d.ts +1 -0
- package/dist/types/__VUE/menu/index.vue.d.ts +18 -9
- package/dist/types/__VUE/menu/types.d.ts +6 -0
- package/dist/types/__VUE/menuitem/index.vue.d.ts +1 -1
- package/dist/types/__VUE/radio/types.d.ts +1 -0
- package/dist/types/__VUE/steps/types.d.ts +1 -0
- package/dist/types/__VUE/swipe/types.d.ts +1 -0
- package/dist/types/__VUE/swiper/index.vue.d.ts +0 -6
- package/dist/types/__VUE/swiper/types.d.ts +1 -0
- package/dist/types/__VUE/tabbar/types.d.ts +1 -0
- package/dist/types/index.d.ts +1 -1
- package/dist/types/utils/index.d.ts +1 -0
- package/dist/types/utils/useRelation/index.d.ts +2 -0
- package/dist/types/utils/useRelation/useChildren.d.ts +4 -0
- package/dist/types/utils/useRelation/useParent.d.ts +3 -0
- package/package.json +1 -1
- package/dist/types/__VUE/menuitem/type.d.ts +0 -4
- /package/dist/packages/{_plugin-vue_export-helper-cc2b3d55.js → _plugin-vue_export-helper-yVxbj29m.js} +0 -0
- /package/dist/packages/{component-669c158a.js → component-TCzwHGVq.js} +0 -0
- /package/dist/packages/{index-7a7385e4.js → index-084nl_oE.js} +0 -0
- /package/dist/packages/{index-54d03fc1.js → index-Ii9XdkPy.js} +0 -0
- /package/dist/packages/{index-79c5dc33.js → index-nRNEaTqA.js} +0 -0
- /package/dist/packages/{index-29892cda.js → index-rf29bejW.js} +0 -0
- /package/dist/packages/{index-97b44e6c.js → index-xDfQLRen.js} +0 -0
- /package/dist/packages/locale/lang/{baseLang-3a8457ac.js → baseLang-7uiEiO-2.js} +0 -0
- /package/dist/packages/{pxCheck-a27490eb.js → pxCheck-OnXlN1NC.js} +0 -0
- /package/dist/packages/{raf-729dad54.js → raf-MQjoO-Ag.js} +0 -0
- /package/dist/packages/{renderIcon-3d0fd47c.js → renderIcon--EgZu5_5.js} +0 -0
- /package/dist/packages/{util-6f26722f.js → util-4Jkyw4BJ.js} +0 -0
|
@@ -17,13 +17,13 @@ var __spreadValues = (a, b) => {
|
|
|
17
17
|
return a;
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
|
-
import { c as createComponent } from "../component-
|
|
20
|
+
import { c as createComponent } from "../component-TCzwHGVq.js";
|
|
21
21
|
import { useSlots, resolveComponent, openBlock, createBlock, withCtx, createElementVNode, createElementBlock, toDisplayString, createCommentVNode, renderSlot, Fragment, renderList, normalizeClass, normalizeStyle } from "vue";
|
|
22
|
-
import { N as NutPopup, p as popupProps } from "../index-
|
|
22
|
+
import { N as NutPopup, p as popupProps } from "../index-rbZsBckW.js";
|
|
23
23
|
import { Loading } from "@nutui/icons-vue";
|
|
24
|
-
import { _ as _export_sfc } from "../_plugin-vue_export-helper-
|
|
24
|
+
import { _ as _export_sfc } from "../_plugin-vue_export-helper-yVxbj29m.js";
|
|
25
25
|
import "../overlay/Overlay.js";
|
|
26
|
-
import "../util-
|
|
26
|
+
import "../util-4Jkyw4BJ.js";
|
|
27
27
|
const { create } = createComponent("action-sheet");
|
|
28
28
|
const _sfc_main = create({
|
|
29
29
|
components: {
|
|
@@ -19,14 +19,14 @@ var __spreadValues = (a, b) => {
|
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
20
|
import { ref, reactive, computed, watch, toRefs, nextTick, resolveComponent, openBlock, createBlock, withCtx, createElementVNode, renderSlot, withDirectives, createVNode, vShow, toDisplayString, createElementBlock, Fragment, renderList, normalizeClass, createCommentVNode, normalizeStyle, createTextVNode } from "vue";
|
|
21
21
|
import { Location, Location2, Check, Close, Left } from "@nutui/icons-vue";
|
|
22
|
-
import { c as createComponent } from "../component-
|
|
23
|
-
import { N as NutPopup, p as popupProps } from "../index-
|
|
22
|
+
import { c as createComponent } from "../component-TCzwHGVq.js";
|
|
23
|
+
import { N as NutPopup, p as popupProps } from "../index-rbZsBckW.js";
|
|
24
24
|
import NutElevator from "../elevator/Elevator.js";
|
|
25
|
-
import { u as useLocale } from "../index-
|
|
26
|
-
import { _ as _export_sfc } from "../_plugin-vue_export-helper-
|
|
25
|
+
import { u as useLocale } from "../index-s3RgMhc7.js";
|
|
26
|
+
import { _ as _export_sfc } from "../_plugin-vue_export-helper-yVxbj29m.js";
|
|
27
27
|
import "../overlay/Overlay.js";
|
|
28
|
-
import "../util-
|
|
29
|
-
import "../index-
|
|
28
|
+
import "../util-4Jkyw4BJ.js";
|
|
29
|
+
import "../index-nRNEaTqA.js";
|
|
30
30
|
import "@nutui/nutui/dist/packages/locale/lang";
|
|
31
31
|
const { create } = createComponent("address");
|
|
32
32
|
const cN = "NutAddress";
|
|
@@ -147,7 +147,6 @@ const _sfc_main = create({
|
|
|
147
147
|
newData[index2].list.push(item);
|
|
148
148
|
}
|
|
149
149
|
});
|
|
150
|
-
console.log("new", newData);
|
|
151
150
|
return newData;
|
|
152
151
|
};
|
|
153
152
|
let selectedRegion = ref([]);
|
|
@@ -202,11 +201,11 @@ const _sfc_main = create({
|
|
|
202
201
|
};
|
|
203
202
|
selectedRegion.value[tab] = item;
|
|
204
203
|
selectedRegion.value.splice(tab + 1, selectedRegion.value.length - (tab + 1));
|
|
204
|
+
callBackParams.value = item;
|
|
205
205
|
if (((_a = regionData[tab + 1]) == null ? void 0 : _a.length) > 0) {
|
|
206
206
|
tabIndex.value = tab + 1;
|
|
207
207
|
lineAnimation();
|
|
208
208
|
callBackParams.next = tabName.value[tabIndex.value];
|
|
209
|
-
callBackParams.value = item;
|
|
210
209
|
} else {
|
|
211
210
|
handClose();
|
|
212
211
|
emit("update:modelValue");
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import { resolveComponent, openBlock, createElementBlock, createElementVNode, renderSlot, toDisplayString, createCommentVNode, createVNode, createTextVNode, ref, h, createBlock, resolveDynamicComponent, withCtx, reactive, watch, onMounted, Fragment, renderList, createSlots } from "vue";
|
|
2
|
-
import { c as createComponent } from "../component-
|
|
3
|
-
import { l as floatData } from "../util-
|
|
4
|
-
import { u as useLocale } from "../index-
|
|
2
|
+
import { c as createComponent } from "../component-TCzwHGVq.js";
|
|
3
|
+
import { l as floatData } from "../util-4Jkyw4BJ.js";
|
|
4
|
+
import { u as useLocale } from "../index-s3RgMhc7.js";
|
|
5
5
|
import { Del, Edit } from "@nutui/icons-vue";
|
|
6
|
-
import { _ as _export_sfc } from "../_plugin-vue_export-helper-
|
|
6
|
+
import { _ as _export_sfc } from "../_plugin-vue_export-helper-yVxbj29m.js";
|
|
7
7
|
import NutButton from "../button/Button.js";
|
|
8
8
|
import NutSwipe from "../swipe/Swipe.js";
|
|
9
9
|
import "@nutui/nutui/dist/packages/locale/lang";
|
|
10
|
-
import "../index-
|
|
10
|
+
import "../index-084nl_oE.js";
|
|
11
|
+
import "../types-qOrhXtA_.js";
|
|
11
12
|
const { create: create$2 } = createComponent("address-list-item");
|
|
12
13
|
const cN$1 = "NutAddressList";
|
|
13
14
|
const _sfc_main$2 = create$2({
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ref, computed, watch, openBlock, createElementBlock, createElementVNode, normalizeClass, normalizeStyle, renderSlot } from "vue";
|
|
2
|
-
import { c as createComponent } from "../component-
|
|
3
|
-
import { _ as _export_sfc } from "../_plugin-vue_export-helper-
|
|
2
|
+
import { c as createComponent } from "../component-TCzwHGVq.js";
|
|
3
|
+
import { _ as _export_sfc } from "../_plugin-vue_export-helper-yVxbj29m.js";
|
|
4
4
|
const { create } = createComponent("animate");
|
|
5
5
|
const _sfc_main = create({
|
|
6
6
|
props: {
|
|
@@ -18,13 +18,13 @@ var __spreadValues = (a, b) => {
|
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
20
|
import { ref, reactive, onMounted, watch, provide, toRefs, resolveComponent, openBlock, createElementBlock, createElementVNode, toDisplayString, createVNode, withCtx, createCommentVNode, normalizeClass, createBlock, renderSlot } from "vue";
|
|
21
|
-
import { c as createComponent } from "../component-
|
|
21
|
+
import { c as createComponent } from "../component-TCzwHGVq.js";
|
|
22
22
|
import { Service } from "@nutui/icons-vue";
|
|
23
23
|
import NutRange from "../range/Range.js";
|
|
24
|
-
import { _ as _export_sfc } from "../_plugin-vue_export-helper-
|
|
25
|
-
import "../util-
|
|
26
|
-
import "../index-
|
|
27
|
-
import "../index-
|
|
24
|
+
import { _ as _export_sfc } from "../_plugin-vue_export-helper-yVxbj29m.js";
|
|
25
|
+
import "../util-4Jkyw4BJ.js";
|
|
26
|
+
import "../index-084nl_oE.js";
|
|
27
|
+
import "../index-rf29bejW.js";
|
|
28
28
|
const { create } = createComponent("audio");
|
|
29
29
|
const _sfc_main = create({
|
|
30
30
|
props: {
|
|
@@ -18,13 +18,13 @@ var __spreadValues = (a, b) => {
|
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
20
|
import { inject, reactive, ref, useSlots, toRefs, resolveComponent, openBlock, createElementBlock, createBlock, withCtx, createTextVNode, toDisplayString, createCommentVNode, renderSlot } from "vue";
|
|
21
|
-
import { c as createComponent } from "../component-
|
|
21
|
+
import { c as createComponent } from "../component-TCzwHGVq.js";
|
|
22
22
|
import NutButton from "../button/Button.js";
|
|
23
|
-
import { u as useLocale } from "../index-
|
|
24
|
-
import { _ as _export_sfc } from "../_plugin-vue_export-helper-
|
|
23
|
+
import { u as useLocale } from "../index-s3RgMhc7.js";
|
|
24
|
+
import { _ as _export_sfc } from "../_plugin-vue_export-helper-yVxbj29m.js";
|
|
25
25
|
import "@nutui/icons-vue";
|
|
26
26
|
import "@nutui/nutui/dist/packages/locale/lang";
|
|
27
|
-
import "../util-
|
|
27
|
+
import "../util-4Jkyw4BJ.js";
|
|
28
28
|
const { create } = createComponent("audio-operate");
|
|
29
29
|
const cN = "NutAudioOperate";
|
|
30
30
|
const _sfc_main = create({
|
|
@@ -1,67 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
const _sfc_main = create({
|
|
6
|
-
props: {
|
|
7
|
-
size: {
|
|
8
|
-
type: [String, Number],
|
|
9
|
-
default: "normal"
|
|
10
|
-
},
|
|
11
|
-
shape: {
|
|
12
|
-
type: String,
|
|
13
|
-
default: "round"
|
|
14
|
-
},
|
|
15
|
-
bgColor: {
|
|
16
|
-
type: String,
|
|
17
|
-
default: "#eee"
|
|
18
|
-
},
|
|
19
|
-
color: {
|
|
20
|
-
type: String,
|
|
21
|
-
default: "#666"
|
|
22
|
-
}
|
|
23
|
-
},
|
|
24
|
-
setup(props) {
|
|
25
|
-
const { size, shape, bgColor, color } = toRefs(props);
|
|
26
|
-
const sizeValue = ["large", "normal", "small"];
|
|
27
|
-
const avatarGroup = inject("avatarGroup", null);
|
|
28
|
-
const avatarRef = ref(null);
|
|
29
|
-
const classes = computed(() => {
|
|
30
|
-
var _a, _b;
|
|
31
|
-
const prefixCls = "nut-avatar";
|
|
32
|
-
return {
|
|
33
|
-
[prefixCls]: true,
|
|
34
|
-
[`nut-avatar-${size.value || ((_a = avatarGroup == null ? void 0 : avatarGroup.props) == null ? void 0 : _a.size) || "normal"}`]: true,
|
|
35
|
-
[`nut-avatar-${shape.value || ((_b = avatarGroup == null ? void 0 : avatarGroup.props) == null ? void 0 : _b.shape) || "round"}`]: true
|
|
36
|
-
};
|
|
37
|
-
});
|
|
38
|
-
const styles = computed(() => {
|
|
39
|
-
var _a, _b;
|
|
40
|
-
return {
|
|
41
|
-
width: size.value in sizeValue ? "" : `${size.value}px`,
|
|
42
|
-
height: size.value in sizeValue ? "" : `${size.value}px`,
|
|
43
|
-
backgroundColor: `${bgColor.value}`,
|
|
44
|
-
color: `${color.value}`,
|
|
45
|
-
marginLeft: ((_a = avatarGroup == null ? void 0 : avatarGroup.props) == null ? void 0 : _a.span) ? `${(_b = avatarGroup == null ? void 0 : avatarGroup.props) == null ? void 0 : _b.span}px` : ""
|
|
46
|
-
};
|
|
47
|
-
});
|
|
48
|
-
return {
|
|
49
|
-
classes,
|
|
50
|
-
styles,
|
|
51
|
-
avatarRef
|
|
52
|
-
};
|
|
53
|
-
}
|
|
54
|
-
});
|
|
55
|
-
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
56
|
-
return openBlock(), createElementBlock("view", {
|
|
57
|
-
ref: "avatarRef",
|
|
58
|
-
style: normalizeStyle(_ctx.styles),
|
|
59
|
-
class: normalizeClass(_ctx.classes)
|
|
60
|
-
}, [
|
|
61
|
-
renderSlot(_ctx.$slots, "default")
|
|
62
|
-
], 6);
|
|
63
|
-
}
|
|
64
|
-
const NutAvatar = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
1
|
+
import { N } from "../index--uVlasFu.js";
|
|
2
|
+
import "vue";
|
|
3
|
+
import "../_plugin-vue_export-helper-yVxbj29m.js";
|
|
4
|
+
import "../component-TCzwHGVq.js";
|
|
65
5
|
export {
|
|
66
|
-
|
|
6
|
+
N as default
|
|
67
7
|
};
|
|
@@ -40,12 +40,12 @@ var __async = (__this, __arguments, generator) => {
|
|
|
40
40
|
};
|
|
41
41
|
import { reactive, ref, computed, watch, toRefs, resolveComponent, openBlock, createElementBlock, Fragment, createElementVNode, renderSlot, withDirectives, normalizeStyle, normalizeClass, createVNode, withCtx, createTextVNode, toDisplayString, vShow } from "vue";
|
|
42
42
|
import NutButton from "../button/Button.js";
|
|
43
|
-
import { c as createComponent } from "../component-
|
|
44
|
-
import { d as preventDefault, e as clamp } from "../util-
|
|
43
|
+
import { c as createComponent } from "../component-TCzwHGVq.js";
|
|
44
|
+
import { d as preventDefault, e as clamp } from "../util-4Jkyw4BJ.js";
|
|
45
45
|
import { Refresh2, Retweet } from "@nutui/icons-vue";
|
|
46
|
-
import { u as useTouch } from "../index-
|
|
47
|
-
import { u as useRect } from "../index-
|
|
48
|
-
import { _ as _export_sfc } from "../_plugin-vue_export-helper-
|
|
46
|
+
import { u as useTouch } from "../index-084nl_oE.js";
|
|
47
|
+
import { u as useRect } from "../index-rf29bejW.js";
|
|
48
|
+
import { _ as _export_sfc } from "../_plugin-vue_export-helper-yVxbj29m.js";
|
|
49
49
|
const { create } = createComponent("avatar-cropper");
|
|
50
50
|
const _sfc_main = create({
|
|
51
51
|
components: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ref, computed, onMounted, nextTick, unref, onUnmounted, provide, resolveComponent, openBlock, createElementBlock, normalizeStyle, renderSlot, createBlock, withCtx, createTextVNode, toDisplayString, createCommentVNode } from "vue";
|
|
2
|
-
import { c as createComponent } from "../component-
|
|
3
|
-
import NutAvatar from "../
|
|
4
|
-
import { _ as _export_sfc } from "../_plugin-vue_export-helper-
|
|
2
|
+
import { c as createComponent } from "../component-TCzwHGVq.js";
|
|
3
|
+
import { N as NutAvatar, A as AVATAR_KEY } from "../index--uVlasFu.js";
|
|
4
|
+
import { _ as _export_sfc } from "../_plugin-vue_export-helper-yVxbj29m.js";
|
|
5
5
|
const { create } = createComponent("avatar-group");
|
|
6
6
|
const _sfc_main = create({
|
|
7
7
|
components: {
|
|
@@ -105,7 +105,7 @@ const _sfc_main = create({
|
|
|
105
105
|
var _a;
|
|
106
106
|
(_a = observer.value) == null ? void 0 : _a.disconnect();
|
|
107
107
|
});
|
|
108
|
-
provide(
|
|
108
|
+
provide(AVATAR_KEY, {
|
|
109
109
|
props,
|
|
110
110
|
avatarGroupRef
|
|
111
111
|
});
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { reactive, computed, onMounted, onUnmounted, onActivated, onDeactivated, resolveComponent, openBlock, createElementBlock, normalizeClass, normalizeStyle, withModifiers, renderSlot, createVNode } from "vue";
|
|
2
|
-
import { c as createComponent } from "../component-
|
|
3
|
-
import { r as requestAniFrame, c as cancelRaf } from "../raf-
|
|
2
|
+
import { c as createComponent } from "../component-TCzwHGVq.js";
|
|
3
|
+
import { r as requestAniFrame, c as cancelRaf } from "../raf-MQjoO-Ag.js";
|
|
4
4
|
import { Top } from "@nutui/icons-vue";
|
|
5
|
-
import { _ as _export_sfc } from "../_plugin-vue_export-helper-
|
|
5
|
+
import { _ as _export_sfc } from "../_plugin-vue_export-helper-yVxbj29m.js";
|
|
6
6
|
const { componentName, create } = createComponent("backtop");
|
|
7
7
|
const _sfc_main = create({
|
|
8
8
|
components: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { reactive, computed, openBlock, createElementBlock, withDirectives, createElementVNode, normalizeStyle, renderSlot, vShow, normalizeClass, toDisplayString } from "vue";
|
|
2
|
-
import { c as createComponent } from "../component-
|
|
3
|
-
import { _ as _export_sfc } from "../_plugin-vue_export-helper-
|
|
2
|
+
import { c as createComponent } from "../component-TCzwHGVq.js";
|
|
3
|
+
import { _ as _export_sfc } from "../_plugin-vue_export-helper-yVxbj29m.js";
|
|
4
4
|
const { create } = createComponent("badge");
|
|
5
5
|
const _sfc_main = create({
|
|
6
6
|
props: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useSlots, ref, onMounted, onUnmounted, watch, nextTick, openBlock, createElementBlock, createElementVNode, normalizeClass, renderSlot, createCommentVNode } from "vue";
|
|
2
|
-
import { c as createComponent } from "../component-
|
|
3
|
-
import { _ as _export_sfc } from "../_plugin-vue_export-helper-
|
|
2
|
+
import { c as createComponent } from "../component-TCzwHGVq.js";
|
|
3
|
+
import { _ as _export_sfc } from "../_plugin-vue_export-helper-yVxbj29m.js";
|
|
4
4
|
const { create } = createComponent("barrage");
|
|
5
5
|
const _sfc_main = create({
|
|
6
6
|
name: "barrage",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { toRefs, computed, resolveComponent, openBlock, createElementBlock, normalizeClass, normalizeStyle, createElementVNode, createBlock, createCommentVNode, renderSlot } from "vue";
|
|
2
|
-
import { c as createComponent } from "../component-
|
|
2
|
+
import { c as createComponent } from "../component-TCzwHGVq.js";
|
|
3
3
|
import { Loading } from "@nutui/icons-vue";
|
|
4
|
-
import { _ as _export_sfc } from "../_plugin-vue_export-helper-
|
|
4
|
+
import { _ as _export_sfc } from "../_plugin-vue_export-helper-yVxbj29m.js";
|
|
5
5
|
const { componentName, create } = createComponent("button");
|
|
6
6
|
const _sfc_main = create({
|
|
7
7
|
components: { Loading },
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { computed, ref, resolveComponent, openBlock, createBlock, mergeProps, withCtx, createVNode, createSlots, renderSlot } from "vue";
|
|
2
|
-
import { c as createComponent } from "../component-
|
|
3
|
-
import { N as NutCalendarItem, U as Utils } from "../index-
|
|
4
|
-
import { N as NutPopup } from "../index-
|
|
5
|
-
import { u as useExpose } from "../index-
|
|
6
|
-
import { _ as _export_sfc } from "../_plugin-vue_export-helper-
|
|
7
|
-
import "../raf-
|
|
8
|
-
import "../index-
|
|
2
|
+
import { c as createComponent } from "../component-TCzwHGVq.js";
|
|
3
|
+
import { N as NutCalendarItem, U as Utils } from "../index-cDNmNOtI.js";
|
|
4
|
+
import { N as NutPopup } from "../index-rbZsBckW.js";
|
|
5
|
+
import { u as useExpose } from "../index-nRNEaTqA.js";
|
|
6
|
+
import { _ as _export_sfc } from "../_plugin-vue_export-helper-yVxbj29m.js";
|
|
7
|
+
import "../raf-MQjoO-Ag.js";
|
|
8
|
+
import "../index-s3RgMhc7.js";
|
|
9
9
|
import "@nutui/nutui/dist/packages/locale/lang";
|
|
10
|
-
import "../util-
|
|
10
|
+
import "../util-4Jkyw4BJ.js";
|
|
11
11
|
import "@nutui/icons-vue";
|
|
12
12
|
import "../overlay/Overlay.js";
|
|
13
13
|
const { create } = createComponent("calendar");
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { N } from "../index-
|
|
1
|
+
import { N } from "../index-cDNmNOtI.js";
|
|
2
2
|
import "vue";
|
|
3
|
-
import "../_plugin-vue_export-helper-
|
|
4
|
-
import "../component-
|
|
5
|
-
import "../raf-
|
|
6
|
-
import "../index-
|
|
7
|
-
import "../index-
|
|
3
|
+
import "../_plugin-vue_export-helper-yVxbj29m.js";
|
|
4
|
+
import "../component-TCzwHGVq.js";
|
|
5
|
+
import "../raf-MQjoO-Ag.js";
|
|
6
|
+
import "../index-nRNEaTqA.js";
|
|
7
|
+
import "../index-s3RgMhc7.js";
|
|
8
8
|
import "@nutui/nutui/dist/packages/locale/lang";
|
|
9
|
-
import "../util-
|
|
9
|
+
import "../util-4Jkyw4BJ.js";
|
|
10
10
|
export {
|
|
11
11
|
N as default
|
|
12
12
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { c as createComponent } from "../component-
|
|
1
|
+
import { c as createComponent } from "../component-TCzwHGVq.js";
|
|
2
2
|
import { resolveComponent, openBlock, createElementBlock, createElementVNode, toDisplayString, renderSlot, createVNode, createCommentVNode, withCtx, createTextVNode } from "vue";
|
|
3
3
|
import NutPrice from "../price/Price.js";
|
|
4
4
|
import NutTag from "../tag/Tag.js";
|
|
5
|
-
import { _ as _export_sfc } from "../_plugin-vue_export-helper-
|
|
5
|
+
import { _ as _export_sfc } from "../_plugin-vue_export-helper-yVxbj29m.js";
|
|
6
6
|
import "@nutui/icons-vue";
|
|
7
7
|
const { create } = createComponent("card");
|
|
8
8
|
const _sfc_main = create({
|
|
@@ -55,21 +55,21 @@ var __async = (__this, __arguments, generator) => {
|
|
|
55
55
|
});
|
|
56
56
|
};
|
|
57
57
|
import { computed, ref, watch, resolveComponent, openBlock, createBlock, withCtx, createElementBlock, Fragment, renderList, createElementVNode, normalizeClass, toDisplayString, createCommentVNode, createVNode } from "vue";
|
|
58
|
-
import { N as NutPopup, p as popupProps } from "../index-
|
|
59
|
-
import { c as createComponent } from "../component-
|
|
58
|
+
import { N as NutPopup, p as popupProps } from "../index-rbZsBckW.js";
|
|
59
|
+
import { c as createComponent } from "../component-TCzwHGVq.js";
|
|
60
60
|
import { Loading, Checklist } from "@nutui/icons-vue";
|
|
61
61
|
import NutTabs from "../tabs/Tabs.js";
|
|
62
62
|
import NutTabPane from "../tabpane/TabPane.js";
|
|
63
|
-
import { u as useLocale } from "../index-
|
|
64
|
-
import { _ as _export_sfc } from "../_plugin-vue_export-helper-
|
|
63
|
+
import { u as useLocale } from "../index-s3RgMhc7.js";
|
|
64
|
+
import { _ as _export_sfc } from "../_plugin-vue_export-helper-yVxbj29m.js";
|
|
65
65
|
import "../overlay/Overlay.js";
|
|
66
|
-
import "../util-
|
|
67
|
-
import "../pxCheck-
|
|
68
|
-
import "../index-
|
|
69
|
-
import "../raf-
|
|
66
|
+
import "../util-4Jkyw4BJ.js";
|
|
67
|
+
import "../pxCheck-OnXlN1NC.js";
|
|
68
|
+
import "../index-rf29bejW.js";
|
|
69
|
+
import "../raf-MQjoO-Ag.js";
|
|
70
70
|
import "../sticky/Sticky.js";
|
|
71
|
-
import "../index-
|
|
72
|
-
import "../index-
|
|
71
|
+
import "../index-xDfQLRen.js";
|
|
72
|
+
import "../index-084nl_oE.js";
|
|
73
73
|
import "@nutui/nutui/dist/packages/locale/lang";
|
|
74
74
|
const formatTree = (tree, parent, config) => tree.map((node) => {
|
|
75
75
|
const { value: valueKey = "value", text: textKey = "text", children: childrenKey = "children" } = config;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ref, openBlock, createElementBlock, createElementVNode, Fragment, renderList, normalizeClass, toDisplayString, createCommentVNode, renderSlot } from "vue";
|
|
2
|
-
import { c as createComponent } from "../component-
|
|
3
|
-
import { _ as _export_sfc } from "../_plugin-vue_export-helper-
|
|
2
|
+
import { c as createComponent } from "../component-TCzwHGVq.js";
|
|
3
|
+
import { _ as _export_sfc } from "../_plugin-vue_export-helper-yVxbj29m.js";
|
|
4
4
|
const { create } = createComponent("category");
|
|
5
5
|
const _sfc_main = create({
|
|
6
6
|
props: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { c as createComponent } from "../component-
|
|
1
|
+
import { c as createComponent } from "../component-TCzwHGVq.js";
|
|
2
2
|
import { openBlock, createElementBlock, Fragment, renderList, createElementVNode, toDisplayString, createCommentVNode } from "vue";
|
|
3
|
-
import { _ as _export_sfc } from "../_plugin-vue_export-helper-
|
|
3
|
+
import { _ as _export_sfc } from "../_plugin-vue_export-helper-yVxbj29m.js";
|
|
4
4
|
const { create } = createComponent("category-pane");
|
|
5
5
|
const _sfc_main = create({
|
|
6
6
|
props: {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { computed, resolveComponent, openBlock, createElementBlock, normalizeClass, normalizeStyle, renderSlot, createCommentVNode, Fragment, createElementVNode, toDisplayString, createTextVNode, createBlock } from "vue";
|
|
2
|
-
import { c as createComponent } from "../component-
|
|
3
|
-
import { u as useRouter } from "../index-
|
|
4
|
-
import { p as pxCheck } from "../pxCheck-
|
|
2
|
+
import { c as createComponent } from "../component-TCzwHGVq.js";
|
|
3
|
+
import { u as useRouter } from "../index-Ii9XdkPy.js";
|
|
4
|
+
import { p as pxCheck } from "../pxCheck-OnXlN1NC.js";
|
|
5
5
|
import { Right } from "@nutui/icons-vue";
|
|
6
|
-
import { _ as _export_sfc } from "../_plugin-vue_export-helper-
|
|
6
|
+
import { _ as _export_sfc } from "../_plugin-vue_export-helper-yVxbj29m.js";
|
|
7
7
|
const { componentName, create } = createComponent("cell");
|
|
8
8
|
const _sfc_main = create({
|
|
9
9
|
components: { Right },
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { c as createComponent } from "../component-
|
|
1
|
+
import { c as createComponent } from "../component-TCzwHGVq.js";
|
|
2
2
|
import { openBlock, createElementBlock, renderSlot, toDisplayString, createCommentVNode, createElementVNode } from "vue";
|
|
3
|
-
import { _ as _export_sfc } from "../_plugin-vue_export-helper-
|
|
3
|
+
import { _ as _export_sfc } from "../_plugin-vue_export-helper-yVxbj29m.js";
|
|
4
4
|
const { create } = createComponent("cell-group");
|
|
5
5
|
const _sfc_main = create({
|
|
6
6
|
props: {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { c as createComponent } from "../component-
|
|
1
|
+
import { c as createComponent } from "../component-TCzwHGVq.js";
|
|
2
2
|
import { inject, reactive, computed, watch, onMounted, getCurrentInstance, onBeforeUnmount, h } from "vue";
|
|
3
|
-
import { p as pxCheck } from "../pxCheck-
|
|
3
|
+
import { p as pxCheck } from "../pxCheck-OnXlN1NC.js";
|
|
4
|
+
import { C as CHECKBOX_KEY } from "../types-zeKkNDAq.js";
|
|
4
5
|
import { CheckNormal, Checked, CheckDisabled } from "@nutui/icons-vue";
|
|
5
6
|
const component = (componentName2, components) => {
|
|
6
7
|
return {
|
|
@@ -38,7 +39,7 @@ const component = (componentName2, components) => {
|
|
|
38
39
|
},
|
|
39
40
|
emits: ["change", "update:modelValue"],
|
|
40
41
|
setup(props, { emit, slots }) {
|
|
41
|
-
const parent = inject(
|
|
42
|
+
const parent = inject(CHECKBOX_KEY, null);
|
|
42
43
|
const state = reactive({
|
|
43
44
|
partialSelect: props.indeterminate
|
|
44
45
|
});
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { reactive, provide, computed, watch, h } from "vue";
|
|
2
|
-
import { c as createComponent } from "../component-
|
|
3
|
-
import { u as useExpose } from "../index-
|
|
2
|
+
import { c as createComponent } from "../component-TCzwHGVq.js";
|
|
3
|
+
import { u as useExpose } from "../index-nRNEaTqA.js";
|
|
4
|
+
import { C as CHECKBOX_KEY } from "../types-zeKkNDAq.js";
|
|
4
5
|
const { create, componentName } = createComponent("checkbox-group");
|
|
5
6
|
const _sfc_main = create({
|
|
6
7
|
props: {
|
|
@@ -53,7 +54,7 @@ const _sfc_main = create({
|
|
|
53
54
|
}).map((item) => item.label);
|
|
54
55
|
emit("update:modelValue", value);
|
|
55
56
|
};
|
|
56
|
-
provide(
|
|
57
|
+
provide(CHECKBOX_KEY, {
|
|
57
58
|
value: computed(() => props.modelValue),
|
|
58
59
|
disabled: computed(() => props.disabled),
|
|
59
60
|
max: computed(() => props.max),
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { computed, openBlock, createElementBlock, normalizeStyle, createElementVNode, Fragment, renderList, renderSlot, toDisplayString } from "vue";
|
|
2
|
-
import { c as createComponent } from "../component-
|
|
3
|
-
import { k as isObject } from "../util-
|
|
4
|
-
import { _ as _export_sfc } from "../_plugin-vue_export-helper-
|
|
2
|
+
import { c as createComponent } from "../component-TCzwHGVq.js";
|
|
3
|
+
import { k as isObject } from "../util-4Jkyw4BJ.js";
|
|
4
|
+
import { _ as _export_sfc } from "../_plugin-vue_export-helper-yVxbj29m.js";
|
|
5
5
|
const { create } = createComponent("circle-progress");
|
|
6
6
|
const _sfc_main = create({
|
|
7
7
|
props: {
|
package/dist/packages/col/Col.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { inject, computed, openBlock, createElementBlock, normalizeClass, normalizeStyle, renderSlot } from "vue";
|
|
2
|
-
import { c as createComponent } from "../component-
|
|
3
|
-
import {
|
|
4
|
-
|
|
2
|
+
import { c as createComponent } from "../component-TCzwHGVq.js";
|
|
3
|
+
import { L as LAYOUT_KEY } from "../types-Ww4ErYJT.js";
|
|
4
|
+
import { _ as _export_sfc } from "../_plugin-vue_export-helper-yVxbj29m.js";
|
|
5
|
+
const { create } = createComponent("col");
|
|
5
6
|
const _sfc_main = create({
|
|
6
7
|
props: {
|
|
7
8
|
span: {
|
|
@@ -15,8 +16,8 @@ const _sfc_main = create({
|
|
|
15
16
|
},
|
|
16
17
|
emits: [],
|
|
17
18
|
setup(props) {
|
|
18
|
-
const prefixCls =
|
|
19
|
-
const gutter = inject(
|
|
19
|
+
const prefixCls = "nut-col";
|
|
20
|
+
const gutter = inject(LAYOUT_KEY);
|
|
20
21
|
const classes = computed(() => {
|
|
21
22
|
return {
|
|
22
23
|
[prefixCls]: true,
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ref, watch, provide, openBlock, createElementBlock, renderSlot } from "vue";
|
|
2
|
-
import { c as createComponent } from "../component-
|
|
3
|
-
import {
|
|
2
|
+
import { c as createComponent } from "../component-TCzwHGVq.js";
|
|
3
|
+
import { C as COLLAPSE_KEY } from "../types-4IflWeQO.js";
|
|
4
|
+
import { _ as _export_sfc } from "../_plugin-vue_export-helper-yVxbj29m.js";
|
|
4
5
|
const { create } = createComponent("collapse");
|
|
5
6
|
const _sfc_main = create({
|
|
6
7
|
props: {
|
|
@@ -15,7 +16,7 @@ const _sfc_main = create({
|
|
|
15
16
|
},
|
|
16
17
|
emits: ["update:modelValue", "change"],
|
|
17
18
|
setup(props, { emit }) {
|
|
18
|
-
const
|
|
19
|
+
const nutCollapseRef = ref(null);
|
|
19
20
|
const innerValue = ref(props.modelValue || (props.accordion ? "" : []));
|
|
20
21
|
watch(
|
|
21
22
|
() => props.modelValue,
|
|
@@ -57,15 +58,15 @@ const _sfc_main = create({
|
|
|
57
58
|
}
|
|
58
59
|
return false;
|
|
59
60
|
};
|
|
60
|
-
provide(
|
|
61
|
+
provide(COLLAPSE_KEY, {
|
|
61
62
|
updateVal,
|
|
62
63
|
isExpanded
|
|
63
64
|
});
|
|
64
|
-
return {
|
|
65
|
+
return { nutCollapseRef };
|
|
65
66
|
}
|
|
66
67
|
});
|
|
67
68
|
const _hoisted_1 = {
|
|
68
|
-
ref: "
|
|
69
|
+
ref: "nutCollapseRef",
|
|
69
70
|
class: "nut-collapse"
|
|
70
71
|
};
|
|
71
72
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { ref, inject,
|
|
1
|
+
import { ref, inject, computed, watch, openBlock, createElementBlock, normalizeClass, createElementVNode, renderSlot, toDisplayString, createCommentVNode, normalizeStyle, createBlock, resolveDynamicComponent } from "vue";
|
|
2
2
|
import { DownArrow } from "@nutui/icons-vue";
|
|
3
|
-
import { c as createComponent } from "../component-
|
|
4
|
-
import { r as renderIcon } from "../renderIcon
|
|
5
|
-
import {
|
|
6
|
-
|
|
3
|
+
import { c as createComponent } from "../component-TCzwHGVq.js";
|
|
4
|
+
import { r as renderIcon } from "../renderIcon--EgZu5_5.js";
|
|
5
|
+
import { C as COLLAPSE_KEY } from "../types-4IflWeQO.js";
|
|
6
|
+
import { _ as _export_sfc } from "../_plugin-vue_export-helper-yVxbj29m.js";
|
|
7
|
+
const { create } = createComponent("collapse-item");
|
|
7
8
|
const _sfc_main = create({
|
|
8
9
|
props: {
|
|
9
10
|
collapseRef: {
|
|
@@ -46,10 +47,9 @@ const _sfc_main = create({
|
|
|
46
47
|
setup(props) {
|
|
47
48
|
const wrapperRef = ref(null);
|
|
48
49
|
const contentRef = ref(null);
|
|
49
|
-
const
|
|
50
|
-
const parent = reactive(collapse);
|
|
50
|
+
const parent = inject(COLLAPSE_KEY);
|
|
51
51
|
const classes = computed(() => {
|
|
52
|
-
const prefixCls =
|
|
52
|
+
const prefixCls = "nut-collapse-item";
|
|
53
53
|
return {
|
|
54
54
|
[prefixCls]: true,
|
|
55
55
|
[prefixCls + "__border"]: props.border
|
|
@@ -63,7 +63,7 @@ const _sfc_main = create({
|
|
|
63
63
|
});
|
|
64
64
|
const wrapperHeight = ref(expanded.value ? "auto" : "0px");
|
|
65
65
|
const toggle = () => {
|
|
66
|
-
parent.updateVal(props.name);
|
|
66
|
+
parent && parent.updateVal(props.name);
|
|
67
67
|
};
|
|
68
68
|
const onTransitionEnd = () => {
|
|
69
69
|
if (expanded.value) {
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { resolveComponent, openBlock, createElementBlock, createElementVNode, createCommentVNode, normalizeClass, toDisplayString, renderSlot, createVNode, ref, watch, onMounted, Fragment, renderList, createBlock, computed, withCtx, normalizeStyle, createTextVNode } from "vue";
|
|
2
2
|
import { Right, Fabulous, Comment, MoreX } from "@nutui/icons-vue";
|
|
3
|
-
import { c as createComponent } from "../component-
|
|
3
|
+
import { c as createComponent } from "../component-TCzwHGVq.js";
|
|
4
4
|
import NutRate from "../rate/Rate.js";
|
|
5
|
-
import { _ as _export_sfc } from "../_plugin-vue_export-helper-
|
|
6
|
-
import { u as useLocale } from "../index-
|
|
7
|
-
import "../renderIcon
|
|
8
|
-
import "../pxCheck-
|
|
9
|
-
import "../index-
|
|
5
|
+
import { _ as _export_sfc } from "../_plugin-vue_export-helper-yVxbj29m.js";
|
|
6
|
+
import { u as useLocale } from "../index-s3RgMhc7.js";
|
|
7
|
+
import "../renderIcon--EgZu5_5.js";
|
|
8
|
+
import "../pxCheck-OnXlN1NC.js";
|
|
9
|
+
import "../index-084nl_oE.js";
|
|
10
10
|
import "@nutui/nutui/dist/packages/locale/lang";
|
|
11
|
-
import "../util-
|
|
11
|
+
import "../util-4Jkyw4BJ.js";
|
|
12
12
|
const { create: create$3 } = createComponent("comment-header");
|
|
13
13
|
const _sfc_main$3 = create$3({
|
|
14
14
|
components: {
|