@nutui/nutui 4.2.2 → 4.2.4
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 +33 -0
- package/README.md +34 -21
- package/dist/nutui.es.js +1 -1
- package/dist/nutui.js +6465 -6441
- 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 +5 -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 +9 -10
- package/dist/packages/calendaritem/CalendarItem.js +6 -7
- package/dist/packages/card/Card.js +2 -2
- package/dist/packages/cascader/Cascader.js +10 -10
- package/dist/packages/cascader/index.css +1 -1
- 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 +149 -152
- package/dist/packages/checkboxgroup/CheckboxGroup.js +5 -5
- 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 +4 -4
- package/dist/packages/drag/Drag.js +3 -3
- package/dist/packages/ecard/Ecard.js +5 -5
- package/dist/packages/elevator/Elevator.js +7 -8
- 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 +15 -46
- package/dist/packages/formitem/FormItem.js +38 -24
- package/dist/packages/formitem/index.css +1 -1
- package/dist/packages/formitem/index.scss +25 -0
- 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 +11 -11
- package/dist/packages/index--uVlasFu.js +69 -0
- package/dist/packages/{index-914a76f0.js → index-NLe0VBkN.js} +6 -7
- 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-0185ccea.js → index.vue_vue_type_script_lang-54PRh3YM.js} +3 -3
- package/dist/packages/{index.vue_vue_type_script_lang-825ed1e0.js → index.vue_vue_type_script_lang-MJYVRFbp.js} +14 -9
- 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 +4 -4
- package/dist/packages/invoice/Invoice.js +11 -7
- package/dist/packages/invoice/index.css +1 -1
- 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/navbar/index.css +1 -1
- package/dist/packages/navbar/index.scss +5 -16
- 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 +9 -8
- 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/radio/index.css +1 -1
- package/dist/packages/radio/index.scss +21 -0
- package/dist/packages/radiogroup/RadioGroup.js +3 -2
- package/dist/packages/radiogroup/index.scss +0 -5
- package/dist/packages/range/Range.js +5 -7
- 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 +9 -9
- package/dist/packages/swiperitem/SwiperItem.js +11 -5
- 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 +9 -9
- package/dist/packages/tabs/index.css +1 -1
- package/dist/packages/tabs/index.scss +114 -117
- package/dist/packages/tag/Tag.js +2 -2
- package/dist/packages/textarea/Textarea.js +4 -4
- package/dist/packages/textarea/index.css +1 -1
- package/dist/packages/textarea/index.scss +1 -0
- 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 +55 -1
- package/dist/style.css +1 -1
- package/dist/style.js +1 -4
- package/dist/types/__VUE/address/index.vue.d.ts +3 -3
- 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 +2 -2
- package/dist/types/__VUE/cell/index.vue.d.ts +1 -1
- package/dist/types/__VUE/checkbox/index.vue.d.ts +72 -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 +4 -29
- package/dist/types/__VUE/collapse/types.d.ts +5 -0
- package/dist/types/__VUE/collapseitem/index.vue.d.ts +2 -1
- package/dist/types/__VUE/countup/index.vue.d.ts +2 -2
- package/dist/types/__VUE/divider/index.vue.d.ts +15 -1
- package/dist/types/__VUE/form/common.d.ts +9 -1
- package/dist/types/__VUE/form/index.vue.d.ts +18 -0
- package/dist/types/__VUE/form/types.d.ts +4 -1
- package/dist/types/__VUE/formitem/index.vue.d.ts +21 -1
- package/dist/types/__VUE/formitem/types.d.ts +2 -0
- package/dist/types/__VUE/grid/index.vue.d.ts +1 -1
- package/dist/types/__VUE/image/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/navbar/index.vue.d.ts +1 -1
- package/dist/types/__VUE/radio/index.vue.d.ts +14 -3
- package/dist/types/__VUE/radio/types.d.ts +5 -0
- package/dist/types/__VUE/radiogroup/index.vue.d.ts +8 -6
- package/dist/types/__VUE/sku/components/SkuStepper.vue.d.ts +1 -1
- package/dist/types/__VUE/sku/index.vue.d.ts +1 -1
- 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/__VUE/tabs/index.vue.d.ts +1 -1
- package/dist/types/__VUE/toast/index.vue.d.ts +1 -1
- package/dist/types/__VUE/uploader/index.vue.d.ts +2 -28
- 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/packages/index-79c5dc33.js +0 -10
- package/dist/types/__VUE/checkbox/common.d.ts +0 -2
- package/dist/types/__VUE/menuitem/type.d.ts +0 -4
- package/dist/types/__VUE/picker/common.d.ts +0 -406
- /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-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,10 +1,10 @@
|
|
|
1
1
|
import { ref, computed, onMounted, watch, resolveComponent, openBlock, createElementBlock, Fragment, renderSlot, createCommentVNode, createElementVNode, normalizeClass, normalizeStyle, createVNode, withCtx, renderList, withModifiers, createBlock, resolveDynamicComponent, toDisplayString } from "vue";
|
|
2
|
-
import { c as createComponent } from "../component-
|
|
3
|
-
import { r as renderIcon } from "../renderIcon
|
|
4
|
-
import { a as isArray } from "../util-
|
|
5
|
-
import { u as useRect } from "../index-
|
|
6
|
-
import { N as NutPopup } from "../index-
|
|
7
|
-
import { _ as _export_sfc } from "../_plugin-vue_export-helper-
|
|
2
|
+
import { c as createComponent } from "../component-TCzwHGVq.js";
|
|
3
|
+
import { r as renderIcon } from "../renderIcon--EgZu5_5.js";
|
|
4
|
+
import { a as isArray } from "../util-4Jkyw4BJ.js";
|
|
5
|
+
import { u as useRect } from "../index-rf29bejW.js";
|
|
6
|
+
import { N as NutPopup } from "../index-rbZsBckW.js";
|
|
7
|
+
import { _ as _export_sfc } from "../_plugin-vue_export-helper-yVxbj29m.js";
|
|
8
8
|
import "@nutui/icons-vue";
|
|
9
9
|
import "../overlay/Overlay.js";
|
|
10
10
|
const { create } = createComponent("popover");
|
|
@@ -144,9 +144,10 @@ const _sfc_main = create({
|
|
|
144
144
|
}
|
|
145
145
|
rootRect.value = rect2;
|
|
146
146
|
setTimeout(() => {
|
|
147
|
+
var _a, _b;
|
|
147
148
|
conentRootRect.value = {
|
|
148
|
-
height: popoverContentRef.value.clientHeight,
|
|
149
|
-
width: popoverContentRef.value.clientWidth
|
|
149
|
+
height: (_a = popoverContentRef.value) == null ? void 0 : _a.clientHeight,
|
|
150
|
+
width: (_b = popoverContentRef.value) == null ? void 0 : _b.clientWidth
|
|
150
151
|
};
|
|
151
152
|
}, 0);
|
|
152
153
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { N } from "../index-
|
|
1
|
+
import { N } from "../index-rbZsBckW.js";
|
|
2
2
|
import "vue";
|
|
3
|
-
import "../_plugin-vue_export-helper-
|
|
3
|
+
import "../_plugin-vue_export-helper-yVxbj29m.js";
|
|
4
4
|
import "@nutui/icons-vue";
|
|
5
5
|
import "../overlay/Overlay.js";
|
|
6
|
-
import "../component-
|
|
7
|
-
import "../util-
|
|
6
|
+
import "../component-TCzwHGVq.js";
|
|
7
|
+
import "../util-4Jkyw4BJ.js";
|
|
8
8
|
export {
|
|
9
9
|
N as default
|
|
10
10
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { computed, openBlock, createElementBlock, normalizeClass, createCommentVNode, createElementVNode, 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 { componentName, create } = createComponent("price");
|
|
5
5
|
const _sfc_main = create({
|
|
6
6
|
props: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useSlots, computed, resolveComponent, openBlock, createElementBlock, createElementVNode, normalizeClass, normalizeStyle, toDisplayString, createCommentVNode, renderSlot, createVNode } from "vue";
|
|
2
2
|
import { Checked } from "@nutui/icons-vue";
|
|
3
|
-
import { c as createComponent } from "../component-
|
|
4
|
-
import { _ as _export_sfc } from "../_plugin-vue_export-helper-
|
|
3
|
+
import { c as createComponent } from "../component-TCzwHGVq.js";
|
|
4
|
+
import { _ as _export_sfc } from "../_plugin-vue_export-helper-yVxbj29m.js";
|
|
5
5
|
const { create } = createComponent("progress");
|
|
6
6
|
const _sfc_main = create({
|
|
7
7
|
components: { Checked },
|
|
@@ -18,14 +18,14 @@ var __spreadValues = (a, b) => {
|
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
20
|
import { ref, reactive, computed, watch, toRefs, nextTick, resolveComponent, openBlock, createElementBlock, createElementVNode, normalizeStyle, createBlock, createCommentVNode, toDisplayString, renderSlot } from "vue";
|
|
21
|
-
import { c as createComponent } from "../component-
|
|
22
|
-
import { j as getScrollTopRoot } from "../util-
|
|
23
|
-
import { u as useTouch } from "../index-
|
|
24
|
-
import { p as pxCheck } from "../pxCheck-
|
|
25
|
-
import { u as useScrollParent } from "../index-
|
|
21
|
+
import { c as createComponent } from "../component-TCzwHGVq.js";
|
|
22
|
+
import { j as getScrollTopRoot } from "../util-4Jkyw4BJ.js";
|
|
23
|
+
import { u as useTouch } from "../index-084nl_oE.js";
|
|
24
|
+
import { p as pxCheck } from "../pxCheck-OnXlN1NC.js";
|
|
25
|
+
import { u as useScrollParent } from "../index-xDfQLRen.js";
|
|
26
26
|
import { Loading } from "@nutui/icons-vue";
|
|
27
|
-
import { u as useLocale } from "../index-
|
|
28
|
-
import { _ as _export_sfc } from "../_plugin-vue_export-helper-
|
|
27
|
+
import { u as useLocale } from "../index-s3RgMhc7.js";
|
|
28
|
+
import { _ as _export_sfc } from "../_plugin-vue_export-helper-yVxbj29m.js";
|
|
29
29
|
import "@nutui/nutui/dist/packages/locale/lang";
|
|
30
30
|
const { create } = createComponent("pull-refresh");
|
|
31
31
|
const cN = "NutPullRefresh";
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { _ as _sfc_main } from "../index.vue_vue_type_script_lang-
|
|
1
|
+
import { _ as _sfc_main } from "../index.vue_vue_type_script_lang-MJYVRFbp.js";
|
|
2
2
|
import "vue";
|
|
3
|
-
import "../component-
|
|
3
|
+
import "../component-TCzwHGVq.js";
|
|
4
4
|
import "@nutui/icons-vue";
|
|
5
|
-
import "../pxCheck-
|
|
5
|
+
import "../pxCheck-OnXlN1NC.js";
|
|
6
|
+
import "../types-odSRziQJ.js";
|
|
6
7
|
export {
|
|
7
8
|
_sfc_main as default
|
|
8
9
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.nut-theme-dark .nut-radio__label{color:var(--nut-dark-color, var(--nut-white, #fff))}.nut-theme-dark .nut-radio__label--disabled{color:var(--nut-radio-label-disable-color, #999)}.nut-theme-dark .nut-radio__button{background:var(--nut-dark-background, #131313);color:var(--nut-dark-color, var(--nut-white, #fff))}.nut-theme-dark .nut-radio__button--disabled{color:var(--nut-radio-label-disable-color, #999);border:1px solid var(--nut-radio-label-disable-color, #999)}.nut-radio{display:flex;align-items:center;flex-shrink:0}.nut-radio:last-child{margin-bottom:0 !important;margin-right:0 !important}.nut-radio--reverse{flex-direction:row-reverse}.nut-radio--reverse .nut-radio__label{margin-right:var(--nut-radio-label-margin-left, 15px);margin-left:0}.nut-radio__button{display:inline-flex;align-items:center;padding:var(--nut-radio-button-padding, 5px 18px);font-size:var(--nut-radio-button-font-size, 12px);background:#f6f7f9;border-radius:var(--nut-radio-button-border-radius, 15px);color:var(--nut-radio-label-font-color, #1d1e1e);box-sizing:border-box;border:1px solid #f6f7f9}.nut-radio__button--active{background:rgba(0,0,0,0);color:var(--nut-radio-label-font-active-color, var(--nut-primary-color, #fa2c19));border:1px solid var(--nut-radio-label-button-border-color, var(--nut-primary-color, #fa2c19));position:relative}.nut-radio__button--active::after{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;background-color:var(--nut-radio-label-button-background, var(--nut-primary-color, #fa2c19));border-radius:var(--nut-radio-button-border-radius, 15px);opacity:.05;content:""}.nut-radio__button--disabled{color:var(--nut-radio-label-disable-color, #999);border:none}.nut-radio__label{flex:1;margin-left:var(--nut-radio-label-margin-left, 15px);font-size:var(--nut-radio-label-font-size, 14px);color:var(--nut-radio-label-font-color, #1d1e1e)}.nut-radio__label--disabled{color:var(--nut-radio-label-disable-color, #999)}.nut-radio__icon{color:var(--nut-radio-label-font-active-color, var(--nut-primary-color, #fa2c19));transition-duration:.3s;transition-property:color,border-color,background-color}.nut-radio__icon--unchecked{color:var(--nut-radio-icon-disable-color, #d6d6d6)}.nut-radio__icon--disable{color:var(--nut-radio-icon-disable-color2, var(--nut-help-color, #f5f5f5))}
|
|
1
|
+
.nut-theme-dark .nut-radio__label{color:var(--nut-dark-color, var(--nut-white, #fff))}.nut-theme-dark .nut-radio__label--disabled{color:var(--nut-radio-label-disable-color, #999)}.nut-theme-dark .nut-radio__button{background:var(--nut-dark-background, #131313);color:var(--nut-dark-color, var(--nut-white, #fff))}.nut-theme-dark .nut-radio__button--disabled{color:var(--nut-radio-label-disable-color, #999);border:1px solid var(--nut-radio-label-disable-color, #999)}.nut-radio{display:flex;align-items:center;flex-shrink:0;cursor:pointer}.nut-radio:last-child{margin-bottom:0 !important;margin-right:0 !important}.nut-radio--reverse{flex-direction:row-reverse}.nut-radio--reverse .nut-radio__label{margin-right:var(--nut-radio-label-margin-left, 15px);margin-left:0}.nut-radio__button{display:inline-flex;align-items:center;padding:var(--nut-radio-button-padding, 5px 18px);font-size:var(--nut-radio-button-font-size, 12px);background:#f6f7f9;border-radius:var(--nut-radio-button-border-radius, 15px);color:var(--nut-radio-label-font-color, #1d1e1e);box-sizing:border-box;border:1px solid #f6f7f9}.nut-radio__button--active{background:rgba(0,0,0,0);color:var(--nut-radio-label-font-active-color, var(--nut-primary-color, #fa2c19));border:1px solid var(--nut-radio-label-button-border-color, var(--nut-primary-color, #fa2c19));position:relative}.nut-radio__button--active::after{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;background-color:var(--nut-radio-label-button-background, var(--nut-primary-color, #fa2c19));border-radius:var(--nut-radio-button-border-radius, 15px);opacity:.05;content:""}.nut-radio__button--disabled{color:var(--nut-radio-label-disable-color, #999);border:none}.nut-radio__button--large{height:var(--nut-button-large-height, 48px);line-height:var(--nut-button-large-line-height, 46px);font-size:var(--nut-button-large-font-size, var(--nut-button-default-font-size, var(--nut-font-size-2, 14px)))}.nut-radio__button--small{height:var(--nut-button-small-height, 28px);line-height:var(--nut-button-small-line-height, 26px);padding:var(--nut-button-small-padding, 0 12px);font-size:var(--nut-button-small-font-size, var(--nut-font-size-1, 12px))}.nut-radio__button--mini{height:var(--nut-button-mini-height, 24px);line-height:var(--nut-button-mini-line-height, 1.2);padding:var(--nut-button-mini-padding, 0 12px);font-size:var(--nut-button-mini-font-size, var(--nut-font-size-1, 12px))}.nut-radio__label{flex:1;margin-left:var(--nut-radio-label-margin-left, 15px);font-size:var(--nut-radio-label-font-size, 14px);color:var(--nut-radio-label-font-color, #1d1e1e)}.nut-radio__label--disabled{color:var(--nut-radio-label-disable-color, #999)}.nut-radio__icon{color:var(--nut-radio-label-font-active-color, var(--nut-primary-color, #fa2c19));transition-duration:.3s;transition-property:color,border-color,background-color}.nut-radio__icon--unchecked{color:var(--nut-radio-icon-disable-color, #d6d6d6)}.nut-radio__icon--disable{color:var(--nut-radio-icon-disable-color2, var(--nut-help-color, #f5f5f5))}
|
|
@@ -24,6 +24,7 @@
|
|
|
24
24
|
display: flex;
|
|
25
25
|
align-items: center;
|
|
26
26
|
flex-shrink: 0;
|
|
27
|
+
cursor: pointer;
|
|
27
28
|
|
|
28
29
|
&:last-child {
|
|
29
30
|
margin-bottom: 0 !important;
|
|
@@ -75,6 +76,26 @@
|
|
|
75
76
|
color: $radio-label-disable-color;
|
|
76
77
|
border: none;
|
|
77
78
|
}
|
|
79
|
+
|
|
80
|
+
&--large {
|
|
81
|
+
height: $button-large-height;
|
|
82
|
+
line-height: $button-large-line-height;
|
|
83
|
+
font-size: $button-large-font-size;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
&--small {
|
|
87
|
+
height: $button-small-height;
|
|
88
|
+
line-height: $button-small-line-height;
|
|
89
|
+
padding: $button-small-padding;
|
|
90
|
+
font-size: $button-small-font-size;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
&--mini {
|
|
94
|
+
height: $button-mini-height;
|
|
95
|
+
line-height: $button-mini-line-height;
|
|
96
|
+
padding: $button-mini-padding;
|
|
97
|
+
font-size: $button-mini-font-size;
|
|
98
|
+
}
|
|
78
99
|
}
|
|
79
100
|
|
|
80
101
|
&__label {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { _ as _sfc_main } from "../index.vue_vue_type_script_lang-
|
|
1
|
+
import { _ as _sfc_main } from "../index.vue_vue_type_script_lang-54PRh3YM.js";
|
|
2
2
|
import "vue";
|
|
3
|
-
import "../component-
|
|
3
|
+
import "../component-TCzwHGVq.js";
|
|
4
|
+
import "../types-odSRziQJ.js";
|
|
4
5
|
export {
|
|
5
6
|
_sfc_main as default
|
|
6
7
|
};
|
|
@@ -18,11 +18,11 @@ var __spreadValues = (a, b) => {
|
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
20
|
import { ref, computed, toRefs, openBlock, createElementBlock, normalizeClass, toDisplayString, createCommentVNode, createElementVNode, normalizeStyle, withModifiers, Fragment, renderList, createTextVNode, renderSlot } from "vue";
|
|
21
|
-
import { c as createComponent } from "../component-
|
|
22
|
-
import { a as isArray } from "../util-
|
|
23
|
-
import { u as useTouch } from "../index-
|
|
24
|
-
import { u as useRect } from "../index-
|
|
25
|
-
import { _ as _export_sfc } from "../_plugin-vue_export-helper-
|
|
21
|
+
import { c as createComponent } from "../component-TCzwHGVq.js";
|
|
22
|
+
import { a as isArray } from "../util-4Jkyw4BJ.js";
|
|
23
|
+
import { u as useTouch } from "../index-084nl_oE.js";
|
|
24
|
+
import { u as useRect } from "../index-rf29bejW.js";
|
|
25
|
+
import { _ as _export_sfc } from "../_plugin-vue_export-helper-yVxbj29m.js";
|
|
26
26
|
const { componentName, create } = createComponent("range");
|
|
27
27
|
const _sfc_main = create({
|
|
28
28
|
props: {
|
|
@@ -272,8 +272,6 @@ const _sfc_main = create({
|
|
|
272
272
|
currentValue = startValue + diff;
|
|
273
273
|
}
|
|
274
274
|
updateValue(currentValue);
|
|
275
|
-
event.stopPropagation();
|
|
276
|
-
event.preventDefault();
|
|
277
275
|
};
|
|
278
276
|
const onTouchEnd = () => {
|
|
279
277
|
if (props.disabled) {
|
|
@@ -19,11 +19,11 @@ var __spreadValues = (a, b) => {
|
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
20
|
import { ref, openBlock, createElementBlock, Fragment, renderList, normalizeStyle, createElementVNode, createBlock, resolveDynamicComponent, normalizeClass, createCommentVNode } from "vue";
|
|
21
21
|
import { StarFillN } from "@nutui/icons-vue";
|
|
22
|
-
import { c as createComponent } from "../component-
|
|
23
|
-
import { r as renderIcon } from "../renderIcon
|
|
24
|
-
import { p as pxCheck } from "../pxCheck-
|
|
25
|
-
import { u as useTouch } from "../index-
|
|
26
|
-
import { _ as _export_sfc } from "../_plugin-vue_export-helper-
|
|
22
|
+
import { c as createComponent } from "../component-TCzwHGVq.js";
|
|
23
|
+
import { r as renderIcon } from "../renderIcon--EgZu5_5.js";
|
|
24
|
+
import { p as pxCheck } from "../pxCheck-OnXlN1NC.js";
|
|
25
|
+
import { u as useTouch } from "../index-084nl_oE.js";
|
|
26
|
+
import { _ as _export_sfc } from "../_plugin-vue_export-helper-yVxbj29m.js";
|
|
27
27
|
const { create } = createComponent("rate");
|
|
28
28
|
const _sfc_main = create({
|
|
29
29
|
props: {
|
package/dist/packages/row/Row.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { provide, computed, openBlock, createElementBlock, normalizeClass, 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("row");
|
|
5
6
|
const _sfc_main = create({
|
|
6
7
|
props: {
|
|
7
8
|
type: {
|
|
@@ -26,8 +27,8 @@ const _sfc_main = create({
|
|
|
26
27
|
}
|
|
27
28
|
},
|
|
28
29
|
setup(props) {
|
|
29
|
-
const prefixCls =
|
|
30
|
-
provide(
|
|
30
|
+
const prefixCls = "nut-row";
|
|
31
|
+
provide(LAYOUT_KEY, props.gutter);
|
|
31
32
|
const getClass = (prefix, type) => {
|
|
32
33
|
return prefix ? type ? `nut-row-${prefix}-${type}` : "" : `nut-row-${type}`;
|
|
33
34
|
};
|
|
@@ -18,13 +18,13 @@ var __spreadValues = (a, b) => {
|
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
20
|
import { reactive, computed, ref, onMounted, toRefs, openBlock, createElementBlock, normalizeClass, normalizeStyle, toDisplayString, createCommentVNode, renderSlot, createElementVNode, withModifiers, withDirectives, createBlock, resolveDynamicComponent, vShow } from "vue";
|
|
21
|
-
import { c as createComponent } from "../component-
|
|
22
|
-
import { r as renderIcon } from "../renderIcon
|
|
21
|
+
import { c as createComponent } from "../component-TCzwHGVq.js";
|
|
22
|
+
import { r as renderIcon } from "../renderIcon--EgZu5_5.js";
|
|
23
23
|
import { CircleClose } from "@nutui/icons-vue";
|
|
24
|
-
import { u as useLocale } from "../index-
|
|
25
|
-
import { _ as _export_sfc } from "../_plugin-vue_export-helper-
|
|
24
|
+
import { u as useLocale } from "../index-s3RgMhc7.js";
|
|
25
|
+
import { _ as _export_sfc } from "../_plugin-vue_export-helper-yVxbj29m.js";
|
|
26
26
|
import "@nutui/nutui/dist/packages/locale/lang";
|
|
27
|
-
import "../util-
|
|
27
|
+
import "../util-4Jkyw4BJ.js";
|
|
28
28
|
const { create } = createComponent("searchbar");
|
|
29
29
|
const cN = "NutSearchbar";
|
|
30
30
|
const _sfc_main = create({
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { ref, computed, watch, resolveComponent, openBlock, createElementBlock, createVNode, withCtx, createElementVNode, toDisplayString, Fragment, renderList, createCommentVNode } from "vue";
|
|
2
|
-
import { c as createComponent } from "../component-
|
|
3
|
-
import { N as NutPopup } from "../index-
|
|
2
|
+
import { c as createComponent } from "../component-TCzwHGVq.js";
|
|
3
|
+
import { N as NutPopup } from "../index-rbZsBckW.js";
|
|
4
4
|
import { Tips } from "@nutui/icons-vue";
|
|
5
|
-
import { u as useLocale } from "../index-
|
|
6
|
-
import { _ as _export_sfc } from "../_plugin-vue_export-helper-
|
|
5
|
+
import { u as useLocale } from "../index-s3RgMhc7.js";
|
|
6
|
+
import { _ as _export_sfc } from "../_plugin-vue_export-helper-yVxbj29m.js";
|
|
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("short-password");
|
|
11
11
|
const cN = "NutShortPassword";
|
|
@@ -18,8 +18,8 @@ var __spreadValues = (a, b) => {
|
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
20
|
import { ref, reactive, onMounted, toRefs, openBlock, createElementBlock, createElementVNode, 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("side-navbar");
|
|
24
24
|
const _sfc_main = create({
|
|
25
25
|
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, withModifiers, createElementVNode, toDisplayString } 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("side-navbar-item");
|
|
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, computed, reactive, onMounted, toRefs, resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, withDirectives, vShow, toDisplayString, createCommentVNode, createVNode, withCtx, createTextVNode } 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("signature");
|
|
29
29
|
const cN = "NutSignature";
|
|
30
30
|
const _sfc_main = create({
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { c as createComponent } from "../component-
|
|
1
|
+
import { c as createComponent } from "../component-TCzwHGVq.js";
|
|
2
2
|
import { toRefs, computed, resolveComponent, openBlock, createElementBlock, renderSlot, createCommentVNode, createElementVNode, createBlock, normalizeClass, normalizeStyle, Fragment, renderList } from "vue";
|
|
3
|
-
import NutAvatar from "../
|
|
4
|
-
import { _ as _export_sfc } from "../_plugin-vue_export-helper-
|
|
3
|
+
import { N as NutAvatar } from "../index--uVlasFu.js";
|
|
4
|
+
import { _ as _export_sfc } from "../_plugin-vue_export-helper-yVxbj29m.js";
|
|
5
5
|
const { create } = createComponent("skeleton");
|
|
6
6
|
const _sfc_main = create({
|
|
7
7
|
components: {
|
package/dist/packages/sku/Sku.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { resolveComponent, openBlock, createElementBlock, createElementVNode, renderSlot, createBlock, createCommentVNode, toDisplayString, ref, watch, onMounted, Fragment, renderList, normalizeClass, createVNode, withCtx, createSlots } from "vue";
|
|
2
2
|
import NutPrice from "../price/Price.js";
|
|
3
|
-
import { c as createComponent } from "../component-
|
|
4
|
-
import { u as useLocale } from "../index-
|
|
5
|
-
import { _ as _export_sfc } from "../_plugin-vue_export-helper-
|
|
6
|
-
import { T as TypeOfFun } from "../util-
|
|
3
|
+
import { c as createComponent } from "../component-TCzwHGVq.js";
|
|
4
|
+
import { u as useLocale } from "../index-s3RgMhc7.js";
|
|
5
|
+
import { _ as _export_sfc } from "../_plugin-vue_export-helper-yVxbj29m.js";
|
|
6
|
+
import { T as TypeOfFun } from "../util-4Jkyw4BJ.js";
|
|
7
7
|
import NutInputNumber from "../inputnumber/InputNumber.js";
|
|
8
|
-
import { N as NutPopup } from "../index-
|
|
8
|
+
import { N as NutPopup } from "../index-rbZsBckW.js";
|
|
9
9
|
import "@nutui/nutui/dist/packages/locale/lang";
|
|
10
|
-
import "../pxCheck-
|
|
10
|
+
import "../pxCheck-OnXlN1NC.js";
|
|
11
11
|
import "@nutui/icons-vue";
|
|
12
12
|
import "../overlay/Overlay.js";
|
|
13
13
|
const { create: create$4 } = createComponent("sku-header");
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { h, Fragment, Comment, Text } from "vue";
|
|
2
|
-
import { c as createComponent } from "../component-
|
|
2
|
+
import { c as createComponent } from "../component-TCzwHGVq.js";
|
|
3
3
|
const { create, componentName } = createComponent("space");
|
|
4
4
|
const _sfc_main = create({
|
|
5
5
|
props: {
|
|
@@ -18,8 +18,9 @@ var __spreadValues = (a, b) => {
|
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
20
|
import { getCurrentInstance, inject, reactive, computed, toRefs, openBlock, createElementBlock, normalizeClass, createElementVNode, renderSlot, Fragment, toDisplayString, createCommentVNode } from "vue";
|
|
21
|
-
import { c as createComponent } from "../component-
|
|
22
|
-
import {
|
|
21
|
+
import { c as createComponent } from "../component-TCzwHGVq.js";
|
|
22
|
+
import { S as STEPS_KEY } from "../types-RCVUm7Nb.js";
|
|
23
|
+
import { _ as _export_sfc } from "../_plugin-vue_export-helper-yVxbj29m.js";
|
|
23
24
|
const { create, componentName } = createComponent("step");
|
|
24
25
|
const _sfc_main = create({
|
|
25
26
|
props: {
|
|
@@ -35,7 +36,7 @@ const _sfc_main = create({
|
|
|
35
36
|
emits: ["clickStep"],
|
|
36
37
|
setup() {
|
|
37
38
|
const { proxy } = getCurrentInstance();
|
|
38
|
-
const parent = inject(
|
|
39
|
+
const parent = inject(STEPS_KEY);
|
|
39
40
|
parent["relation"](proxy);
|
|
40
41
|
const state = reactive({
|
|
41
42
|
dot: parent.props.progressDot
|
|
@@ -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,10 @@
|
|
|
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 {
|
|
6
|
-
import {
|
|
7
|
-
import { _ as _export_sfc } from "../_plugin-vue_export-helper-
|
|
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 { r as requestAniFrame } from "../raf-MQjoO-Ag.js";
|
|
6
|
+
import { S as SWIPER_KEY } from "../types-9wCQwtH3.js";
|
|
7
|
+
import { _ as _export_sfc } from "../_plugin-vue_export-helper-yVxbj29m.js";
|
|
8
8
|
const { create, componentName } = createComponent("swiper");
|
|
9
9
|
const _sfc_main = create({
|
|
10
10
|
props: {
|
|
@@ -57,7 +57,7 @@ const _sfc_main = create({
|
|
|
57
57
|
}
|
|
58
58
|
},
|
|
59
59
|
emits: ["change"],
|
|
60
|
-
setup(props, { emit, slots }) {
|
|
60
|
+
setup(props, { emit, slots, expose }) {
|
|
61
61
|
const container = ref();
|
|
62
62
|
const state = reactive({
|
|
63
63
|
active: 0,
|
|
@@ -310,12 +310,12 @@ const _sfc_main = create({
|
|
|
310
310
|
getStyle();
|
|
311
311
|
autoplay();
|
|
312
312
|
};
|
|
313
|
-
provide(
|
|
313
|
+
provide(SWIPER_KEY, {
|
|
314
314
|
props,
|
|
315
315
|
size,
|
|
316
316
|
relation
|
|
317
317
|
});
|
|
318
|
-
|
|
318
|
+
expose({
|
|
319
319
|
prev,
|
|
320
320
|
next,
|
|
321
321
|
to
|
|
@@ -1,11 +1,17 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { c as createComponent } from "../component-
|
|
3
|
-
import {
|
|
4
|
-
import { _ as _export_sfc } from "../_plugin-vue_export-helper-
|
|
1
|
+
import { getCurrentInstance, inject, reactive, computed, onUnmounted, openBlock, createElementBlock, normalizeStyle, renderSlot } from "vue";
|
|
2
|
+
import { c as createComponent } from "../component-TCzwHGVq.js";
|
|
3
|
+
import { S as SWIPER_KEY } from "../types-9wCQwtH3.js";
|
|
4
|
+
import { _ as _export_sfc } from "../_plugin-vue_export-helper-yVxbj29m.js";
|
|
5
|
+
function useExpose(apis) {
|
|
6
|
+
const instance = getCurrentInstance();
|
|
7
|
+
if (instance) {
|
|
8
|
+
Object.assign(instance.proxy, apis);
|
|
9
|
+
}
|
|
10
|
+
}
|
|
5
11
|
const { create } = createComponent("swiper-item");
|
|
6
12
|
const _sfc_main = create({
|
|
7
13
|
setup() {
|
|
8
|
-
const parent = inject(
|
|
14
|
+
const parent = inject(SWIPER_KEY);
|
|
9
15
|
parent["relation"](getCurrentInstance());
|
|
10
16
|
const state = reactive({
|
|
11
17
|
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
|
// 未选中的颜色
|