@nutui/nutui 4.2.2 → 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 +14 -0
- package/README.md +34 -21
- package/dist/nutui.es.js +1 -1
- package/dist/nutui.js +4098 -4108
- 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 +6 -6
- 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-1579352e.js → common-4inKawxR.js} +2 -2
- 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 +3 -3
- package/dist/packages/invoice/Invoice.js +11 -7
- package/dist/packages/layout/Layout.js +1 -1
- package/dist/packages/list/List.js +3 -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 +8 -7
- 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 +28 -1
- 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/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/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
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { reactive, computed, provide, h } from "vue";
|
|
2
|
-
import { c as createComponent } from "../component-
|
|
2
|
+
import { c as createComponent } from "../component-TCzwHGVq.js";
|
|
3
|
+
import { S as STEPS_KEY } from "../types-RCVUm7Nb.js";
|
|
3
4
|
const { create, componentName } = createComponent("steps");
|
|
4
5
|
const _sfc_main = create({
|
|
5
6
|
props: {
|
|
@@ -35,7 +36,7 @@ const _sfc_main = create({
|
|
|
35
36
|
const onEmit = (index) => {
|
|
36
37
|
emit("clickStep", index);
|
|
37
38
|
};
|
|
38
|
-
provide(
|
|
39
|
+
provide(STEPS_KEY, {
|
|
39
40
|
relation,
|
|
40
41
|
state,
|
|
41
42
|
props,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ref, reactive, computed, watch, onMounted, onUnmounted, openBlock, createElementBlock, normalizeStyle, createElementVNode, renderSlot } from "vue";
|
|
2
|
-
import { c as createComponent } from "../component-
|
|
3
|
-
import { g as getScrollParent } from "../index-
|
|
4
|
-
import { u as useRect } from "../index-
|
|
5
|
-
import { _ as _export_sfc } from "../_plugin-vue_export-helper-
|
|
2
|
+
import { c as createComponent } from "../component-TCzwHGVq.js";
|
|
3
|
+
import { g as getScrollParent } from "../index-xDfQLRen.js";
|
|
4
|
+
import { u as useRect } from "../index-rf29bejW.js";
|
|
5
|
+
import { _ as _export_sfc } from "../_plugin-vue_export-helper-yVxbj29m.js";
|
|
6
6
|
const { create } = createComponent("sticky");
|
|
7
7
|
const _sfc_main = create({
|
|
8
8
|
props: {
|
|
@@ -18,9 +18,9 @@ var __spreadValues = (a, b) => {
|
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
20
|
import { reactive, computed, onMounted, toRefs, resolveComponent, openBlock, createElementBlock, createElementVNode, withModifiers, toDisplayString, createBlock, withDirectives, normalizeClass, normalizeStyle, renderSlot, vShow } from "vue";
|
|
21
|
-
import { c as createComponent } from "../component-
|
|
21
|
+
import { c as createComponent } from "../component-TCzwHGVq.js";
|
|
22
22
|
import { ArrowDown2, ArrowUp2 } from "@nutui/icons-vue";
|
|
23
|
-
import { _ as _export_sfc } from "../_plugin-vue_export-helper-
|
|
23
|
+
import { _ as _export_sfc } from "../_plugin-vue_export-helper-yVxbj29m.js";
|
|
24
24
|
const { create } = createComponent("sub-side-navbar");
|
|
25
25
|
const _sfc_main = create({
|
|
26
26
|
props: {
|
|
@@ -17,10 +17,11 @@ var __spreadValues = (a, b) => {
|
|
|
17
17
|
return a;
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
|
-
import { u as useTouch } from "../index-
|
|
20
|
+
import { u as useTouch } from "../index-084nl_oE.js";
|
|
21
21
|
import { ref, computed, inject, watch, reactive, openBlock, createElementBlock, normalizeStyle, createElementVNode, renderSlot } from "vue";
|
|
22
|
-
import { c as createComponent } from "../component-
|
|
23
|
-
import {
|
|
22
|
+
import { c as createComponent } from "../component-TCzwHGVq.js";
|
|
23
|
+
import { S as SWIPE_KEY } from "../types-qOrhXtA_.js";
|
|
24
|
+
import { _ as _export_sfc } from "../_plugin-vue_export-helper-yVxbj29m.js";
|
|
24
25
|
const { create } = createComponent("swipe");
|
|
25
26
|
const _sfc_main = create({
|
|
26
27
|
props: {
|
|
@@ -54,7 +55,7 @@ const _sfc_main = create({
|
|
|
54
55
|
const rightRef = ref(), rightRefWidth = computed(() => {
|
|
55
56
|
return getRefWidth(rightRef);
|
|
56
57
|
});
|
|
57
|
-
const parent = inject(
|
|
58
|
+
const parent = inject(SWIPE_KEY, null);
|
|
58
59
|
watch(
|
|
59
60
|
() => {
|
|
60
61
|
var _a;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ref, 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 { S as SWIPE_KEY } from "../types-qOrhXtA_.js";
|
|
4
|
+
import { _ as _export_sfc } from "../_plugin-vue_export-helper-yVxbj29m.js";
|
|
4
5
|
const { create } = createComponent("swipe-group");
|
|
5
6
|
const _sfc_main = create({
|
|
6
7
|
props: {
|
|
@@ -15,7 +16,7 @@ const _sfc_main = create({
|
|
|
15
16
|
const update = (n) => {
|
|
16
17
|
name.value = n;
|
|
17
18
|
};
|
|
18
|
-
provide(
|
|
19
|
+
provide(SWIPE_KEY, {
|
|
19
20
|
update,
|
|
20
21
|
lock: props.lock,
|
|
21
22
|
name
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { ref, reactive, computed, provide, onDeactivated, onBeforeUnmount, watch, nextTick, openBlock, createElementBlock, createElementVNode, normalizeClass, normalizeStyle, renderSlot, Fragment, renderList, createCommentVNode } from "vue";
|
|
2
|
-
import { c as createComponent } from "../component-
|
|
3
|
-
import { e as clamp } from "../util-
|
|
4
|
-
import { u as useTouch } from "../index-
|
|
5
|
-
import { u as useExpose } from "../index-
|
|
6
|
-
import { r as requestAniFrame } from "../raf-
|
|
7
|
-
import {
|
|
2
|
+
import { c as createComponent } from "../component-TCzwHGVq.js";
|
|
3
|
+
import { e as clamp } from "../util-4Jkyw4BJ.js";
|
|
4
|
+
import { u as useTouch } from "../index-084nl_oE.js";
|
|
5
|
+
import { u as useExpose } from "../index-nRNEaTqA.js";
|
|
6
|
+
import { r as requestAniFrame } from "../raf-MQjoO-Ag.js";
|
|
7
|
+
import { S as SWIPER_KEY } from "../types-9wCQwtH3.js";
|
|
8
|
+
import { _ as _export_sfc } from "../_plugin-vue_export-helper-yVxbj29m.js";
|
|
8
9
|
const { create, componentName } = createComponent("swiper");
|
|
9
10
|
const _sfc_main = create({
|
|
10
11
|
props: {
|
|
@@ -310,7 +311,7 @@ const _sfc_main = create({
|
|
|
310
311
|
getStyle();
|
|
311
312
|
autoplay();
|
|
312
313
|
};
|
|
313
|
-
provide(
|
|
314
|
+
provide(SWIPER_KEY, {
|
|
314
315
|
props,
|
|
315
316
|
size,
|
|
316
317
|
relation
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { inject, getCurrentInstance, reactive, computed, onUnmounted, openBlock, createElementBlock, normalizeStyle, renderSlot } from "vue";
|
|
2
|
-
import { c as createComponent } from "../component-
|
|
3
|
-
import { u as useExpose } from "../index-
|
|
4
|
-
import {
|
|
2
|
+
import { c as createComponent } from "../component-TCzwHGVq.js";
|
|
3
|
+
import { u as useExpose } from "../index-nRNEaTqA.js";
|
|
4
|
+
import { S as SWIPER_KEY } from "../types-9wCQwtH3.js";
|
|
5
|
+
import { _ as _export_sfc } from "../_plugin-vue_export-helper-yVxbj29m.js";
|
|
5
6
|
const { create } = createComponent("swiper-item");
|
|
6
7
|
const _sfc_main = create({
|
|
7
8
|
setup() {
|
|
8
|
-
const parent = inject(
|
|
9
|
+
const parent = inject(SWIPER_KEY);
|
|
9
10
|
parent["relation"](getCurrentInstance());
|
|
10
11
|
const state = reactive({
|
|
11
12
|
offset: 0
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { computed, watch, resolveComponent, openBlock, createElementBlock, normalizeClass, normalizeStyle, createElementVNode, renderSlot, createVNode, createCommentVNode, Fragment, withDirectives, toDisplayString, vShow } from "vue";
|
|
2
|
-
import { c as createComponent } from "../component-
|
|
2
|
+
import { c as createComponent } from "../component-TCzwHGVq.js";
|
|
3
3
|
import { Loading1 } 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("switch");
|
|
6
6
|
const _sfc_main = create({
|
|
7
7
|
components: { Loading1 },
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { toRefs, ref, reactive, provide, watch, onMounted, nextTick, openBlock, createElementBlock, normalizeClass, normalizeStyle, createElementVNode, renderSlot } from "vue";
|
|
2
|
-
import { c as createComponent } from "../component-
|
|
3
|
-
import {
|
|
2
|
+
import { c as createComponent } from "../component-TCzwHGVq.js";
|
|
3
|
+
import { T as TABBAR_KEY } from "../types-Cq2YypZn.js";
|
|
4
|
+
import { _ as _export_sfc } from "../_plugin-vue_export-helper-yVxbj29m.js";
|
|
4
5
|
const { create } = createComponent("tabbar");
|
|
5
6
|
const _sfc_main = create({
|
|
6
7
|
props: {
|
|
@@ -47,14 +48,14 @@ const _sfc_main = create({
|
|
|
47
48
|
parentData.modelValue = active;
|
|
48
49
|
emit("tabSwitch", parentData.children[index2], active);
|
|
49
50
|
}
|
|
50
|
-
|
|
51
|
+
const parentData = reactive({
|
|
51
52
|
children: mdValue.children,
|
|
52
53
|
modelValue: mdValue.val,
|
|
53
54
|
unactiveColor: props.unactiveColor,
|
|
54
55
|
activeColor: props.activeColor,
|
|
55
56
|
changeIndex
|
|
56
57
|
});
|
|
57
|
-
provide(
|
|
58
|
+
provide(TABBAR_KEY, parentData);
|
|
58
59
|
watch(
|
|
59
60
|
() => props.modelValue,
|
|
60
61
|
(value) => {
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { c as createComponent } from "../component-
|
|
2
|
-
import { r as renderIcon } from "../renderIcon
|
|
1
|
+
import { c as createComponent } from "../component-TCzwHGVq.js";
|
|
2
|
+
import { r as renderIcon } from "../renderIcon--EgZu5_5.js";
|
|
3
3
|
import { inject, reactive, getCurrentInstance, computed, resolveComponent, openBlock, createElementBlock, normalizeClass, normalizeStyle, createVNode, normalizeProps, guardReactiveProps, withCtx, createElementVNode, renderSlot, createCommentVNode, createBlock, resolveDynamicComponent, toDisplayString } from "vue";
|
|
4
|
-
import { u as useRouter } from "../index-
|
|
4
|
+
import { u as useRouter } from "../index-Ii9XdkPy.js";
|
|
5
5
|
import NutBadge from "../badge/Badge.js";
|
|
6
|
-
import {
|
|
6
|
+
import { T as TABBAR_KEY } from "../types-Cq2YypZn.js";
|
|
7
|
+
import { _ as _export_sfc } from "../_plugin-vue_export-helper-yVxbj29m.js";
|
|
7
8
|
const { create } = createComponent("tabbar-item");
|
|
8
9
|
const _sfc_main = create({
|
|
9
10
|
components: { NutBadge },
|
|
@@ -31,7 +32,7 @@ const _sfc_main = create({
|
|
|
31
32
|
const isHaveSlot = (slot) => {
|
|
32
33
|
return slots[slot];
|
|
33
34
|
};
|
|
34
|
-
const parent = inject(
|
|
35
|
+
const parent = inject(TABBAR_KEY);
|
|
35
36
|
const state = reactive({
|
|
36
37
|
unactiveColor: parent.unactiveColor,
|
|
37
38
|
// 未选中的颜色
|
|
@@ -18,12 +18,12 @@ var __spreadValues = (a, b) => {
|
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
20
|
import { defineComponent, h, reactive, watch, toRefs, resolveComponent, openBlock, createElementBlock, createElementVNode, normalizeClass, Fragment, renderList, normalizeStyle, createTextVNode, toDisplayString, renderSlot, createBlock, createCommentVNode } from "vue";
|
|
21
|
-
import { c as createComponent } from "../component-
|
|
21
|
+
import { c as createComponent } from "../component-TCzwHGVq.js";
|
|
22
22
|
import { DownArrow } from "@nutui/icons-vue";
|
|
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/nutui/dist/packages/locale/lang";
|
|
26
|
-
import "../util-
|
|
26
|
+
import "../util-4Jkyw4BJ.js";
|
|
27
27
|
const RenderColumn = defineComponent({
|
|
28
28
|
props: {
|
|
29
29
|
slots: {
|
|
@@ -18,8 +18,8 @@ var __spreadValues = (a, b) => {
|
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
20
|
import { inject, computed, openBlock, createElementBlock, normalizeClass, normalizeStyle, renderSlot } from "vue";
|
|
21
|
-
import { c as createComponent } from "../component-
|
|
22
|
-
import { _ as _export_sfc } from "../_plugin-vue_export-helper-
|
|
21
|
+
import { c as createComponent } from "../component-TCzwHGVq.js";
|
|
22
|
+
import { _ as _export_sfc } from "../_plugin-vue_export-helper-yVxbj29m.js";
|
|
23
23
|
const { create } = createComponent("tab-pane");
|
|
24
24
|
const _sfc_main = create({
|
|
25
25
|
props: {
|
|
@@ -38,17 +38,17 @@ var __async = (__this, __arguments, generator) => {
|
|
|
38
38
|
step((generator = generator.apply(__this, __arguments)).next());
|
|
39
39
|
});
|
|
40
40
|
};
|
|
41
|
-
import { c as createComponent } from "../component-
|
|
41
|
+
import { c as createComponent } from "../component-TCzwHGVq.js";
|
|
42
42
|
import { ref, onMounted, reactive, provide, computed, watch, onActivated, nextTick, resolveComponent, openBlock, createElementBlock, normalizeClass, createBlock, withCtx, createElementVNode, normalizeStyle, renderSlot, Fragment, renderList, createCommentVNode, createVNode, toDisplayString } from "vue";
|
|
43
|
-
import { T as TypeOfFun } from "../util-
|
|
44
|
-
import { p as pxCheck } from "../pxCheck-
|
|
45
|
-
import { u as useRect } from "../index-
|
|
46
|
-
import { r as requestAniFrame } from "../raf-
|
|
43
|
+
import { T as TypeOfFun } from "../util-4Jkyw4BJ.js";
|
|
44
|
+
import { p as pxCheck } from "../pxCheck-OnXlN1NC.js";
|
|
45
|
+
import { u as useRect } from "../index-rf29bejW.js";
|
|
46
|
+
import { r as requestAniFrame } from "../raf-MQjoO-Ag.js";
|
|
47
47
|
import NutSticky from "../sticky/Sticky.js";
|
|
48
48
|
import { JoySmile } from "@nutui/icons-vue";
|
|
49
|
-
import { u as useTouch } from "../index-
|
|
50
|
-
import { _ as _export_sfc } from "../_plugin-vue_export-helper-
|
|
51
|
-
import "../index-
|
|
49
|
+
import { u as useTouch } from "../index-084nl_oE.js";
|
|
50
|
+
import { _ as _export_sfc } from "../_plugin-vue_export-helper-yVxbj29m.js";
|
|
51
|
+
import "../index-xDfQLRen.js";
|
|
52
52
|
const useTabContentTouch = (props, tabMethods, taro, useTaroRect) => {
|
|
53
53
|
const tabsContentRef = ref();
|
|
54
54
|
const tabsContentRefRect = ref({ width: 0, height: 0 });
|
package/dist/packages/tag/Tag.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { computed, resolveComponent, openBlock, createElementBlock, normalizeClass, normalizeStyle, renderSlot, createBlock, createCommentVNode } from "vue";
|
|
2
|
-
import { c as createComponent } from "../component-
|
|
2
|
+
import { c as createComponent } from "../component-TCzwHGVq.js";
|
|
3
3
|
import { Close } 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 { create } = createComponent("tag");
|
|
6
6
|
const _sfc_main = create({
|
|
7
7
|
props: {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { ref, computed, onMounted, nextTick, watch, openBlock, createElementBlock, normalizeClass, createElementVNode, normalizeStyle, toDisplayString, createCommentVNode } from "vue";
|
|
2
|
-
import { c as createComponent } from "../component-
|
|
3
|
-
import { u as useLocale } from "../index-
|
|
4
|
-
import { _ as _export_sfc } from "../_plugin-vue_export-helper-
|
|
2
|
+
import { c as createComponent } from "../component-TCzwHGVq.js";
|
|
3
|
+
import { u as useLocale } from "../index-s3RgMhc7.js";
|
|
4
|
+
import { _ as _export_sfc } from "../_plugin-vue_export-helper-yVxbj29m.js";
|
|
5
5
|
import "@nutui/nutui/dist/packages/locale/lang";
|
|
6
|
-
import "../util-
|
|
6
|
+
import "../util-4Jkyw4BJ.js";
|
|
7
7
|
const { create } = createComponent("textarea");
|
|
8
8
|
const cN = "NutTextarea";
|
|
9
9
|
const _sfc_main = create({
|
|
@@ -18,8 +18,8 @@ var __spreadValues = (a, b) => {
|
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
20
|
import { inject, reactive, computed, toRefs, openBlock, createElementBlock, createElementVNode, Fragment, renderList, normalizeClass, toDisplayString } from "vue";
|
|
21
|
-
import { c as createComponent } from "../component-
|
|
22
|
-
import { _ as _export_sfc } from "../_plugin-vue_export-helper-
|
|
21
|
+
import { c as createComponent } from "../component-TCzwHGVq.js";
|
|
22
|
+
import { _ as _export_sfc } from "../_plugin-vue_export-helper-yVxbj29m.js";
|
|
23
23
|
const { create } = createComponent("time-detail");
|
|
24
24
|
const _sfc_main = create({
|
|
25
25
|
name: "timedetail",
|
|
@@ -18,8 +18,8 @@ var __spreadValues = (a, b) => {
|
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
20
|
import { inject, reactive, computed, toRefs, openBlock, createElementBlock, normalizeClass, toDisplayString } from "vue";
|
|
21
|
-
import { c as createComponent } from "../component-
|
|
22
|
-
import { _ as _export_sfc } from "../_plugin-vue_export-helper-
|
|
21
|
+
import { c as createComponent } from "../component-TCzwHGVq.js";
|
|
22
|
+
import { _ as _export_sfc } from "../_plugin-vue_export-helper-yVxbj29m.js";
|
|
23
23
|
const { componentName, create } = createComponent("time-pannel");
|
|
24
24
|
const _sfc_main = create({
|
|
25
25
|
name: "timepannel",
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { computed, provide, resolveComponent, openBlock, createBlock, normalizeStyle, withCtx, createElementVNode, createElementBlock, toDisplayString, renderSlot } from "vue";
|
|
2
|
-
import { c as createComponent } from "../component-
|
|
3
|
-
import { N as NutPopup } from "../index-
|
|
4
|
-
import { u as useLocale } from "../index-
|
|
5
|
-
import { _ as _export_sfc } from "../_plugin-vue_export-helper-
|
|
2
|
+
import { c as createComponent } from "../component-TCzwHGVq.js";
|
|
3
|
+
import { N as NutPopup } from "../index-rbZsBckW.js";
|
|
4
|
+
import { u as useLocale } from "../index-s3RgMhc7.js";
|
|
5
|
+
import { _ as _export_sfc } from "../_plugin-vue_export-helper-yVxbj29m.js";
|
|
6
6
|
import "@nutui/icons-vue";
|
|
7
7
|
import "../overlay/Overlay.js";
|
|
8
|
-
import "../util-
|
|
8
|
+
import "../util-4Jkyw4BJ.js";
|
|
9
9
|
import "@nutui/nutui/dist/packages/locale/lang";
|
|
10
10
|
const { create } = createComponent("time-select");
|
|
11
11
|
const cN = "NutTimeSelect";
|
|
@@ -18,12 +18,12 @@ var __spreadValues = (a, b) => {
|
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
20
|
import { reactive, onMounted, watch, computed, openBlock, createBlock, Transition, withCtx, withDirectives, createElementVNode, normalizeClass, normalizeStyle, createElementBlock, resolveDynamicComponent, createCommentVNode, toDisplayString, vShow, createVNode, render } from "vue";
|
|
21
|
-
import { c as createComponent } from "../component-
|
|
22
|
-
import { r as renderIcon } from "../renderIcon
|
|
23
|
-
import { _ as _export_sfc } from "../_plugin-vue_export-helper-
|
|
24
|
-
import { C as CreateComponent } from "../mountComponent-
|
|
21
|
+
import { c as createComponent } from "../component-TCzwHGVq.js";
|
|
22
|
+
import { r as renderIcon } from "../renderIcon--EgZu5_5.js";
|
|
23
|
+
import { _ as _export_sfc } from "../_plugin-vue_export-helper-yVxbj29m.js";
|
|
24
|
+
import { C as CreateComponent } from "../mountComponent-uInXoTMp.js";
|
|
25
25
|
import { Success, Failure, Tips, Loading } from "@nutui/icons-vue";
|
|
26
|
-
import "../util-
|
|
26
|
+
import "../util-4Jkyw4BJ.js";
|
|
27
27
|
const { create } = createComponent("toast");
|
|
28
28
|
const _sfc_main = create({
|
|
29
29
|
components: {},
|
|
@@ -18,14 +18,14 @@ var __spreadValues = (a, b) => {
|
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
20
|
import { reactive, ref, computed, onMounted, watch, toRefs, nextTick, resolveComponent, openBlock, createElementBlock, normalizeClass, withDirectives, createElementVNode, vShow, Fragment, renderList, normalizeStyle, createCommentVNode, createVNode, withCtx, renderSlot, toDisplayString } from "vue";
|
|
21
|
-
import { c as createComponent } from "../component-
|
|
22
|
-
import { u as useRect } from "../index-
|
|
21
|
+
import { c as createComponent } from "../component-TCzwHGVq.js";
|
|
22
|
+
import { u as useRect } from "../index-rf29bejW.js";
|
|
23
23
|
import { Close } from "@nutui/icons-vue";
|
|
24
24
|
import NutPopover from "../popover/Popover.js";
|
|
25
|
-
import { _ as _export_sfc } from "../_plugin-vue_export-helper-
|
|
26
|
-
import "../renderIcon
|
|
27
|
-
import "../util-
|
|
28
|
-
import "../index-
|
|
25
|
+
import { _ as _export_sfc } from "../_plugin-vue_export-helper-yVxbj29m.js";
|
|
26
|
+
import "../renderIcon--EgZu5_5.js";
|
|
27
|
+
import "../util-4Jkyw4BJ.js";
|
|
28
|
+
import "../index-rbZsBckW.js";
|
|
29
29
|
import "../overlay/Overlay.js";
|
|
30
30
|
const { create } = createComponent("tour");
|
|
31
31
|
const _sfc_main = create({
|
|
@@ -18,10 +18,10 @@ var __spreadValues = (a, b) => {
|
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
20
|
import { reactive, computed, toRefs, resolveComponent, openBlock, createElementBlock, normalizeStyle, toDisplayString, createCommentVNode, renderSlot, createVNode } from "vue";
|
|
21
|
-
import { m as myFixed } from "../util-
|
|
22
|
-
import { c as createComponent } from "../component-
|
|
21
|
+
import { m as myFixed } from "../util-4Jkyw4BJ.js";
|
|
22
|
+
import { c as createComponent } from "../component-TCzwHGVq.js";
|
|
23
23
|
import { TriangleUp, TriangleDown } 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
|
const { create } = createComponent("trend-arrow");
|
|
26
26
|
const _sfc_main = create({
|
|
27
27
|
components: { TriangleUp, TriangleDown },
|
|
@@ -5,13 +5,13 @@ var __publicField = (obj, key, value) => {
|
|
|
5
5
|
return value;
|
|
6
6
|
};
|
|
7
7
|
import { ref, watch, h, reactive, resolveComponent, openBlock, createElementBlock, renderSlot, createBlock, resolveDynamicComponent, createCommentVNode, Fragment, renderList, normalizeClass, createElementVNode, toDisplayString, createVNode } from "vue";
|
|
8
|
-
import { c as createComponent } from "../component-
|
|
9
|
-
import { f as funInterceptor } from "../Interceptor-
|
|
8
|
+
import { c as createComponent } from "../component-TCzwHGVq.js";
|
|
9
|
+
import { f as funInterceptor } from "../Interceptor-WYVtGbGC.js";
|
|
10
10
|
import NutProgress from "../progress/Progress.js";
|
|
11
11
|
import { Photograph, Failure, Loading, Del, Link } from "@nutui/icons-vue";
|
|
12
|
-
import { u as useLocale } from "../index-
|
|
13
|
-
import { _ as _export_sfc } from "../_plugin-vue_export-helper-
|
|
14
|
-
import "../util-
|
|
12
|
+
import { u as useLocale } from "../index-s3RgMhc7.js";
|
|
13
|
+
import { _ as _export_sfc } from "../_plugin-vue_export-helper-yVxbj29m.js";
|
|
14
|
+
import "../util-4Jkyw4BJ.js";
|
|
15
15
|
import "@nutui/nutui/dist/packages/locale/lang";
|
|
16
16
|
class UploadOptions {
|
|
17
17
|
constructor() {
|
|
@@ -0,0 +1,54 @@
|
|
|
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
|
+
import { reactive, provide } from "vue";
|
|
18
|
+
const useChildren = (key) => {
|
|
19
|
+
const publicChildren = reactive([]);
|
|
20
|
+
const internalChildren = reactive([]);
|
|
21
|
+
const linkChildren = (value) => {
|
|
22
|
+
const link = (child) => {
|
|
23
|
+
if (child.proxy) {
|
|
24
|
+
internalChildren.push(child);
|
|
25
|
+
publicChildren.push(child.proxy);
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
const unlink = (child) => {
|
|
29
|
+
if (child.proxy) {
|
|
30
|
+
let internalIndex = internalChildren.indexOf(child);
|
|
31
|
+
if (internalIndex > -1) {
|
|
32
|
+
internalChildren.splice(internalIndex, 1);
|
|
33
|
+
}
|
|
34
|
+
let publicIndex = publicChildren.indexOf(child.proxy);
|
|
35
|
+
if (internalIndex > -1) {
|
|
36
|
+
publicChildren.splice(publicIndex, 1);
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
};
|
|
40
|
+
provide(key, __spreadValues({
|
|
41
|
+
unlink,
|
|
42
|
+
link,
|
|
43
|
+
children: publicChildren,
|
|
44
|
+
internalChildren
|
|
45
|
+
}, value));
|
|
46
|
+
};
|
|
47
|
+
return {
|
|
48
|
+
children: publicChildren,
|
|
49
|
+
linkChildren
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
export {
|
|
53
|
+
useChildren as u
|
|
54
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { inject, getCurrentInstance, onUnmounted } from "vue";
|
|
2
|
+
const useParent = (key) => {
|
|
3
|
+
const parent = inject(key, null);
|
|
4
|
+
if (parent) {
|
|
5
|
+
const instance = getCurrentInstance();
|
|
6
|
+
const { link, unlink } = parent;
|
|
7
|
+
link(instance);
|
|
8
|
+
onUnmounted(() => {
|
|
9
|
+
unlink(instance);
|
|
10
|
+
});
|
|
11
|
+
}
|
|
12
|
+
return { parent };
|
|
13
|
+
};
|
|
14
|
+
export {
|
|
15
|
+
useParent as u
|
|
16
|
+
};
|
|
@@ -18,11 +18,11 @@ var __spreadValues = (a, b) => {
|
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
20
|
import { reactive, ref, computed, watch, nextTick, onMounted, toRefs, openBlock, createElementBlock, createElementVNode, createCommentVNode, withDirectives, vShow, normalizeClass, toDisplayString, normalizeStyle, withModifiers } from "vue";
|
|
21
|
-
import { c as createComponent } from "../component-
|
|
22
|
-
import { u as useLocale } from "../index-
|
|
23
|
-
import { _ as _export_sfc } from "../_plugin-vue_export-helper-
|
|
21
|
+
import { c as createComponent } from "../component-TCzwHGVq.js";
|
|
22
|
+
import { u as useLocale } from "../index-s3RgMhc7.js";
|
|
23
|
+
import { _ as _export_sfc } from "../_plugin-vue_export-helper-yVxbj29m.js";
|
|
24
24
|
import "@nutui/nutui/dist/packages/locale/lang";
|
|
25
|
-
import "../util-
|
|
25
|
+
import "../util-4Jkyw4BJ.js";
|
|
26
26
|
function throttle(fn, delay) {
|
|
27
27
|
let timer = null;
|
|
28
28
|
let startTime = Date.now();
|
|
@@ -18,8 +18,8 @@ var __spreadValues = (a, b) => {
|
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
20
|
import { reactive, watch, computed, toRefs, openBlock, createElementBlock, normalizeClass, normalizeStyle } from "vue";
|
|
21
|
-
import { c as createComponent } from "../component-
|
|
22
|
-
import { _ as _export_sfc } from "../_plugin-vue_export-helper-
|
|
21
|
+
import { c as createComponent } from "../component-TCzwHGVq.js";
|
|
22
|
+
import { _ as _export_sfc } from "../_plugin-vue_export-helper-yVxbj29m.js";
|
|
23
23
|
const { componentName, create } = createComponent("watermark");
|
|
24
24
|
const _sfc_main = create({
|
|
25
25
|
props: {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"$schema": "https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json",
|
|
3
3
|
"framework": "vue",
|
|
4
4
|
"name": "NutUI",
|
|
5
|
-
"version": "4.2.
|
|
5
|
+
"version": "4.2.3",
|
|
6
6
|
"contributions": {
|
|
7
7
|
"html": {
|
|
8
8
|
"tags": [
|
|
@@ -3458,6 +3458,24 @@
|
|
|
3458
3458
|
"slots": [],
|
|
3459
3459
|
"events": [],
|
|
3460
3460
|
"attributes": [
|
|
3461
|
+
{
|
|
3462
|
+
"name": "direction",
|
|
3463
|
+
"default": "`down`",
|
|
3464
|
+
"description": "菜单展开方向,可选值为 `up`",
|
|
3465
|
+
"value": {
|
|
3466
|
+
"type": "string",
|
|
3467
|
+
"kind": "expression"
|
|
3468
|
+
}
|
|
3469
|
+
},
|
|
3470
|
+
{
|
|
3471
|
+
"name": "duration",
|
|
3472
|
+
"default": "`0.3`",
|
|
3473
|
+
"description": "动画时长,单位 s",
|
|
3474
|
+
"value": {
|
|
3475
|
+
"type": "string | number",
|
|
3476
|
+
"kind": "expression"
|
|
3477
|
+
}
|
|
3478
|
+
},
|
|
3461
3479
|
{
|
|
3462
3480
|
"name": "active-color",
|
|
3463
3481
|
"default": "`#F2270C`",
|
|
@@ -3502,6 +3520,15 @@
|
|
|
3502
3520
|
"type": "boolean",
|
|
3503
3521
|
"kind": "expression"
|
|
3504
3522
|
}
|
|
3523
|
+
},
|
|
3524
|
+
{
|
|
3525
|
+
"name": "overlay",
|
|
3526
|
+
"default": "`true`",
|
|
3527
|
+
"description": "是否开启背景遮罩",
|
|
3528
|
+
"value": {
|
|
3529
|
+
"type": "boolean",
|
|
3530
|
+
"kind": "expression"
|
|
3531
|
+
}
|
|
3505
3532
|
}
|
|
3506
3533
|
]
|
|
3507
3534
|
},
|
package/dist/style.js
CHANGED