@nutui/nutui 4.3.3 → 4.3.5
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 +40 -0
- package/dist/nutui.es.js +1 -1
- package/dist/nutui.js +4809 -5077
- package/dist/nutui.umd.js +1 -1
- package/dist/packages/{Interceptor-WYVtGbGC.js → Interceptor-DlY2h6Y7.js} +2 -2
- package/dist/packages/actionsheet/ActionSheet.js +3 -3
- package/dist/packages/address/Address.js +5 -5
- package/dist/packages/addresslist/AddressList.js +4 -4
- package/dist/packages/animate/Animate.js +1 -1
- package/dist/packages/audio/Audio.js +2 -2
- package/dist/packages/audiooperate/AudioOperate.js +3 -3
- package/dist/packages/avatar/Avatar.js +2 -2
- package/dist/packages/avatarcropper/AvatarCropper.js +5 -5
- package/dist/packages/avatargroup/AvatarGroup.js +3 -3
- package/dist/packages/backtop/Backtop.js +2 -2
- package/dist/packages/badge/Badge.js +2 -2
- package/dist/packages/barrage/Barrage.js +2 -2
- package/dist/packages/button/Button.js +1 -1
- package/dist/packages/calendar/Calendar.js +6 -6
- package/dist/packages/calendarcard/CalendarCard.js +3 -3
- package/dist/packages/card/Card.js +2 -2
- package/dist/packages/cascader/Cascader.js +4 -4
- package/dist/packages/category/Category.js +4 -4
- package/dist/packages/categorypane/CategoryPane.js +5 -5
- package/dist/packages/cell/Cell.js +91 -82
- package/dist/packages/cellgroup/CellGroup.js +44 -21
- package/dist/packages/checkbox/Checkbox.js +4 -4
- package/dist/packages/checkboxgroup/CheckboxGroup.js +2 -2
- package/dist/packages/circleprogress/CircleProgress.js +2 -2
- package/dist/packages/col/Col.js +2 -2
- package/dist/packages/collapse/Collapse.js +2 -2
- package/dist/packages/collapseitem/CollapseItem.js +3 -3
- package/dist/packages/comment/Comment.js +4 -4
- package/dist/packages/{common-4inKawxR.js → common-Chr7cC9o.js} +2 -2
- package/dist/packages/{common-FZL3qC99.js → common-DRG0ue26.js} +1 -1
- package/dist/packages/configprovider/ConfigProvider.js +1 -1
- package/dist/packages/countdown/Countdown.js +4 -4
- package/dist/packages/countup/Countup.js +9 -9
- package/dist/packages/{date-djiVNSnJ.js → date-DHXcwF1m.js} +2 -2
- package/dist/packages/datepicker/DatePicker.js +3 -3
- package/dist/packages/dialog/Dialog.js +8 -8
- package/dist/packages/divider/Divider.js +1 -1
- package/dist/packages/drag/Drag.js +3 -3
- package/dist/packages/ecard/Ecard.js +3 -3
- package/dist/packages/elevator/Elevator.js +2 -2
- package/dist/packages/ellipsis/Ellipsis.js +4 -4
- package/dist/packages/empty/Empty.js +67 -52
- package/dist/packages/fixednav/FixedNav.js +3 -3
- package/dist/packages/form/Form.js +7 -7
- package/dist/packages/formitem/FormItem.js +7 -7
- package/dist/packages/grid/Grid.js +2 -2
- package/dist/packages/griditem/GridItem.js +5 -5
- package/dist/packages/image/Image.js +3 -3
- package/dist/packages/imagepreview/ImagePreview.js +8 -8
- package/dist/packages/{index-s3RgMhc7.js → index-CFigyH92.js} +1 -1
- package/dist/packages/{index--uVlasFu.js → index-Do4_KY74.js} +2 -2
- package/dist/packages/{index-BqB5dTeo.js → index-uHBD4dfS.js} +2 -2
- package/dist/packages/{index.vue_vue_type_script_lang-n0HbjvfF.js → index.vue_vue_type_script_lang-CTQUvlgN.js} +4 -4
- package/dist/packages/{index.vue_vue_type_script_lang-54PRh3YM.js → index.vue_vue_type_script_lang-CaSiRl9x.js} +2 -2
- package/dist/packages/indicator/Indicator.js +56 -50
- package/dist/packages/infiniteloading/InfiniteLoading.js +6 -6
- package/dist/packages/input/Input.js +3 -3
- package/dist/packages/inputnumber/InputNumber.js +9 -9
- package/dist/packages/invoice/Invoice.js +3 -3
- package/dist/packages/layout/Layout.js +2 -2
- 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 +2 -2
- 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 +5 -5
- package/dist/packages/menuitem/MenuItem.js +5 -5
- package/dist/packages/{mountComponent-uInXoTMp.js → mountComponent-DBQ88Fjz.js} +1 -1
- package/dist/packages/navbar/Navbar.js +1 -1
- package/dist/packages/noticebar/Noticebar.js +3 -3
- package/dist/packages/notify/Notify.js +3 -3
- package/dist/packages/numberkeyboard/NumberKeyboard.js +4 -4
- package/dist/packages/overlay/Overlay.js +3 -3
- package/dist/packages/pagination/Pagination.js +3 -3
- package/dist/packages/picker/Picker.js +7 -10
- package/dist/packages/popover/Popover.js +5 -5
- package/dist/packages/popup/Popup.js +2 -2
- package/dist/packages/price/Price.js +1 -1
- package/dist/packages/progress/Progress.js +1 -1
- package/dist/packages/pullrefresh/PullRefresh.js +7 -7
- package/dist/packages/radio/Radio.js +1 -1
- package/dist/packages/radiogroup/RadioGroup.js +1 -1
- package/dist/packages/range/Range.js +6 -6
- package/dist/packages/rate/Rate.js +5 -5
- package/dist/packages/row/Row.js +2 -2
- 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 +3 -3
- package/dist/packages/skeleton/Skeleton.js +89 -124
- package/dist/packages/sku/Sku.js +4 -4
- package/dist/packages/space/Space.js +1 -1
- package/dist/packages/step/Step.js +3 -3
- package/dist/packages/steps/Steps.js +2 -2
- package/dist/packages/sticky/Sticky.js +4 -4
- package/dist/packages/subsidenavbar/SubSideNavbar.js +2 -2
- package/dist/packages/swipe/Swipe.js +3 -3
- package/dist/packages/swipegroup/SwipeGroup.js +2 -2
- package/dist/packages/swiper/Swiper.js +7 -7
- package/dist/packages/swiperitem/SwiperItem.js +3 -3
- package/dist/packages/switch/Switch.js +68 -86
- package/dist/packages/tabbar/Tabbar.js +78 -78
- package/dist/packages/tabbaritem/TabbarItem.js +89 -113
- package/dist/packages/table/Table.js +3 -3
- package/dist/packages/tabpane/TabPane.js +2 -2
- package/dist/packages/tabs/Tabs.js +9 -9
- package/dist/packages/tag/Tag.js +1 -1
- package/dist/packages/textarea/Textarea.js +113 -127
- package/dist/packages/timedetail/TimeDetail.js +2 -2
- package/dist/packages/timepannel/TimePannel.js +2 -2
- package/dist/packages/timeselect/TimeSelect.js +4 -4
- package/dist/packages/toast/Toast.js +6 -6
- package/dist/packages/tour/Tour.js +3 -3
- package/dist/packages/trendarrow/TrendArrow.js +51 -83
- package/dist/packages/uploader/Uploader.js +5 -5
- package/dist/packages/{useChildren-GU_NVfD8.js → useChildren-BZ4-J79J.js} +2 -2
- package/dist/packages/useParent-D6DiuxZZ.js +21 -0
- package/dist/packages/{util-4Jkyw4BJ.js → util-DnfK0Qan.js} +2 -2
- package/dist/packages/video/Video.js +16 -16
- package/dist/packages/watermark/Watermark.js +2 -2
- package/dist/smartips/web-types.json +1 -1
- package/dist/types/__VUE/cell/cell.vue.d.ts +113 -0
- package/dist/types/__VUE/cell/index.d.ts +6 -0
- package/dist/types/__VUE/cellgroup/cell-group.vue.d.ts +55 -0
- package/dist/types/__VUE/cellgroup/index.d.ts +5 -0
- package/dist/types/__VUE/empty/empty.vue.d.ts +62 -0
- package/dist/types/__VUE/empty/index.d.ts +6 -0
- package/dist/types/__VUE/indicator/index.d.ts +6 -0
- package/dist/types/__VUE/indicator/indicator.vue.d.ts +65 -0
- package/dist/types/__VUE/navbar/navbar.vue.d.ts +1 -1
- package/dist/types/__VUE/skeleton/index.d.ts +5 -0
- package/dist/types/__VUE/skeleton/skeleton.vue.d.ts +102 -0
- package/dist/types/__VUE/swiper/index.vue.d.ts +2 -2
- package/dist/types/__VUE/switch/index.d.ts +5 -0
- package/dist/types/__VUE/switch/switch.vue.d.ts +109 -0
- package/dist/types/__VUE/tabbar/index.d.ts +5 -0
- package/dist/types/__VUE/tabbar/tabbar.vue.d.ts +83 -0
- package/dist/types/__VUE/tabbaritem/index.d.ts +5 -0
- package/dist/types/__VUE/tabbaritem/tabbar-item.vue.d.ts +65 -0
- package/dist/types/__VUE/tabs/index.vue.d.ts +12 -12
- package/dist/types/__VUE/textarea/index.d.ts +5 -0
- package/dist/types/__VUE/textarea/textarea.vue.d.ts +104 -0
- package/dist/types/__VUE/trendarrow/index.d.ts +5 -0
- package/dist/types/__VUE/trendarrow/trend-arrow.vue.d.ts +96 -0
- package/dist/types/__VUE/uploader/index.vue.d.ts +1 -1
- package/dist/types/index.d.ts +21 -11
- package/dist/types/utils/Interceptor.d.ts +2 -2
- package/dist/types/utils/throttle.d.ts +1 -1
- package/dist/types/utils/useRelation/useParent.d.ts +1 -0
- package/package.json +1 -1
- package/dist/packages/useParent-KIxqkovs.js +0 -16
- package/dist/types/__VUE/cell/index.vue.d.ts +0 -120
- package/dist/types/__VUE/cellgroup/index.vue.d.ts +0 -33
- package/dist/types/__VUE/empty/index.vue.d.ts +0 -53
- package/dist/types/__VUE/indicator/index.vue.d.ts +0 -69
- package/dist/types/__VUE/skeleton/index.vue.d.ts +0 -117
- package/dist/types/__VUE/switch/index.vue.d.ts +0 -118
- package/dist/types/__VUE/tabbar/index.vue.d.ts +0 -85
- package/dist/types/__VUE/tabbaritem/index.vue.d.ts +0 -60
- package/dist/types/__VUE/textarea/index.vue.d.ts +0 -127
- package/dist/types/__VUE/trendarrow/index.vue.d.ts +0 -102
- /package/dist/packages/{_plugin-vue_export-helper-yVxbj29m.js → _plugin-vue_export-helper-1tPrXgE0.js} +0 -0
- /package/dist/packages/{component-TCzwHGVq.js → component-DQf3CENX.js} +0 -0
- /package/dist/packages/{index-cp6Ms_Qe.js → index-B1qsj2XR.js} +0 -0
- /package/dist/packages/{index-xDfQLRen.js → index-BvmDLUYP.js} +0 -0
- /package/dist/packages/{index-084nl_oE.js → index-I8tfW3Kf.js} +0 -0
- /package/dist/packages/{index-Ii9XdkPy.js → index-aiGQ-EiA.js} +0 -0
- /package/dist/packages/locale/lang/{baseLang-7uiEiO-2.js → baseLang-Bnfy6fTl.js} +0 -0
- /package/dist/packages/{pxCheck-OnXlN1NC.js → pxCheck-DN6FYV6q.js} +0 -0
- /package/dist/packages/{raf-MQjoO-Ag.js → raf-c01wDYCo.js} +0 -0
- /package/dist/packages/{renderIcon--EgZu5_5.js → renderIcon-BfOvhG7i.js} +0 -0
- /package/dist/packages/{types-RCVUm7Nb.js → types-1HzUV14W.js} +0 -0
- /package/dist/packages/{types-zeKkNDAq.js → types-48N1bMrT.js} +0 -0
- /package/dist/packages/{types-Ww4ErYJT.js → types-BKDaJvHp.js} +0 -0
- /package/dist/packages/{types-odSRziQJ.js → types-BODurTjN.js} +0 -0
- /package/dist/packages/{types-qOrhXtA_.js → types-BWhKcf4T.js} +0 -0
- /package/dist/packages/{types-4IflWeQO.js → types-BomhFk3T.js} +0 -0
- /package/dist/packages/{types-j71K23JP.js → types-CkPfROfI.js} +0 -0
- /package/dist/packages/{types-9wCQwtH3.js → types-DUkJysbi.js} +0 -0
- /package/dist/packages/{types-Cq2YypZn.js → types-MuhxzCWc.js} +0 -0
- /package/dist/packages/{with-install-p59gYYU_.js → with-install-Ch3FF0uS.js} +0 -0
|
@@ -1,9 +1,9 @@
|
|
|
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-DQf3CENX.js";
|
|
3
|
+
import { N as NutPopup } from "../index-uHBD4dfS.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-CFigyH92.js";
|
|
6
|
+
import { _ as _export_sfc } from "../_plugin-vue_export-helper-1tPrXgE0.js";
|
|
7
7
|
const { create } = createComponent("short-password");
|
|
8
8
|
const cN = "NutShortPassword";
|
|
9
9
|
const _sfc_main = create({
|
|
@@ -42,7 +42,7 @@ const _sfc_main = create({
|
|
|
42
42
|
},
|
|
43
43
|
length: {
|
|
44
44
|
type: [String, Number],
|
|
45
|
-
//4~6
|
|
45
|
+
// 4~6
|
|
46
46
|
default: 6
|
|
47
47
|
},
|
|
48
48
|
lockScroll: {
|
|
@@ -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-DQf3CENX.js";
|
|
22
|
+
import { _ as _export_sfc } from "../_plugin-vue_export-helper-1tPrXgE0.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-DQf3CENX.js";
|
|
2
2
|
import { openBlock, createElementBlock, createElementVNode, toDisplayString } from "vue";
|
|
3
|
-
import { _ as _export_sfc } from "../_plugin-vue_export-helper-
|
|
3
|
+
import { _ as _export_sfc } from "../_plugin-vue_export-helper-1tPrXgE0.js";
|
|
4
4
|
const { create } = createComponent("side-navbar-item");
|
|
5
5
|
const _sfc_main = create({
|
|
6
6
|
props: {
|
|
@@ -18,10 +18,10 @@ 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-DQf3CENX.js";
|
|
22
22
|
import { Button as _sfc_main$1 } 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-CFigyH92.js";
|
|
24
|
+
import { _ as _export_sfc } from "../_plugin-vue_export-helper-1tPrXgE0.js";
|
|
25
25
|
const { create } = createComponent("signature");
|
|
26
26
|
const cN = "NutSignature";
|
|
27
27
|
const _sfc_main = create({
|
|
@@ -1,143 +1,108 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
//每行高度
|
|
17
|
-
height: {
|
|
18
|
-
type: String,
|
|
19
|
-
default: "15px"
|
|
20
|
-
},
|
|
21
|
-
//是否显示动画
|
|
22
|
-
animated: {
|
|
23
|
-
type: Boolean,
|
|
24
|
-
default: false
|
|
25
|
-
},
|
|
26
|
-
//头像
|
|
27
|
-
avatar: {
|
|
28
|
-
type: Boolean,
|
|
29
|
-
default: false
|
|
30
|
-
},
|
|
31
|
-
//头像形状:正方形/圆形
|
|
32
|
-
avatarShape: {
|
|
33
|
-
type: String,
|
|
34
|
-
default: "round"
|
|
35
|
-
},
|
|
36
|
-
//头像大小
|
|
37
|
-
avatarSize: {
|
|
38
|
-
type: String,
|
|
39
|
-
default: "50px"
|
|
40
|
-
},
|
|
41
|
-
//是否显示骨架屏
|
|
42
|
-
loading: {
|
|
43
|
-
type: Boolean,
|
|
44
|
-
default: true
|
|
45
|
-
},
|
|
46
|
-
//标题/段落 圆角风格
|
|
47
|
-
round: {
|
|
48
|
-
type: Boolean,
|
|
49
|
-
default: false
|
|
50
|
-
},
|
|
51
|
-
//显示段落行数
|
|
52
|
-
row: {
|
|
53
|
-
type: String,
|
|
54
|
-
default: "1"
|
|
55
|
-
},
|
|
56
|
-
//是否显示段落标题
|
|
57
|
-
title: {
|
|
58
|
-
type: Boolean,
|
|
59
|
-
default: true
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __defProps = Object.defineProperties;
|
|
3
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
4
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
7
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
8
|
+
var __spreadValues = (a, b) => {
|
|
9
|
+
for (var prop in b || (b = {}))
|
|
10
|
+
if (__hasOwnProp.call(b, prop))
|
|
11
|
+
__defNormalProp(a, prop, b[prop]);
|
|
12
|
+
if (__getOwnPropSymbols)
|
|
13
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
14
|
+
if (__propIsEnum.call(b, prop))
|
|
15
|
+
__defNormalProp(a, prop, b[prop]);
|
|
60
16
|
}
|
|
17
|
+
return a;
|
|
18
|
+
};
|
|
19
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
|
+
import { defineComponent, computed, openBlock, createElementBlock, renderSlot, createCommentVNode, createElementVNode, createBlock, normalizeClass, normalizeStyle, Fragment, renderList } from "vue";
|
|
21
|
+
import { N as NutAvatar } from "../index-Do4_KY74.js";
|
|
22
|
+
import { w as withInstall } from "../with-install-Ch3FF0uS.js";
|
|
23
|
+
const _hoisted_1 = { key: 0 };
|
|
24
|
+
const _hoisted_2 = {
|
|
25
|
+
key: 1,
|
|
26
|
+
class: "nut-skeleton"
|
|
27
|
+
};
|
|
28
|
+
const _hoisted_3 = {
|
|
29
|
+
key: 0,
|
|
30
|
+
class: "nut-skeleton-animation"
|
|
31
|
+
};
|
|
32
|
+
const _hoisted_4 = { class: "nut-skeleton-content" };
|
|
33
|
+
const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({}, {
|
|
34
|
+
name: "NutSkeleton"
|
|
35
|
+
}), {
|
|
36
|
+
__name: "skeleton",
|
|
37
|
+
props: {
|
|
38
|
+
width: { default: "100px" },
|
|
39
|
+
height: { default: "15px" },
|
|
40
|
+
animated: { type: Boolean, default: false },
|
|
41
|
+
avatar: { type: Boolean, default: false },
|
|
42
|
+
avatarShape: { default: "round" },
|
|
43
|
+
avatarSize: { default: "50px" },
|
|
44
|
+
loading: { type: Boolean, default: true },
|
|
45
|
+
round: { type: Boolean, default: false },
|
|
46
|
+
row: { default: "1" },
|
|
47
|
+
title: { type: Boolean, default: true }
|
|
61
48
|
},
|
|
62
|
-
setup(
|
|
63
|
-
const
|
|
49
|
+
setup(__props) {
|
|
50
|
+
const props = __props;
|
|
64
51
|
const avatarClass = computed(() => {
|
|
65
52
|
const prefixCls = "avatarClass";
|
|
66
53
|
return {
|
|
67
54
|
[prefixCls]: true,
|
|
68
|
-
[`${prefixCls}--${avatarShape
|
|
55
|
+
[`${prefixCls}--${props.avatarShape}`]: props.avatarShape
|
|
69
56
|
};
|
|
70
57
|
});
|
|
71
58
|
const getBlockClass = (prefixCls) => {
|
|
72
59
|
return {
|
|
73
60
|
[prefixCls]: true,
|
|
74
|
-
[`${prefixCls}--round`]: round
|
|
61
|
+
[`${prefixCls}--round`]: props.round
|
|
75
62
|
};
|
|
76
63
|
};
|
|
77
|
-
const
|
|
78
|
-
if (avatarSize.value) {
|
|
79
|
-
return {
|
|
80
|
-
width: avatarSize.value,
|
|
81
|
-
height: avatarSize.value
|
|
82
|
-
};
|
|
83
|
-
}
|
|
64
|
+
const avatarStyle = computed(() => {
|
|
84
65
|
return {
|
|
85
|
-
width:
|
|
86
|
-
height:
|
|
66
|
+
width: props.avatarSize,
|
|
67
|
+
height: props.avatarSize
|
|
87
68
|
};
|
|
88
|
-
};
|
|
89
|
-
return {
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
69
|
+
});
|
|
70
|
+
return (_ctx, _cache) => {
|
|
71
|
+
return !_ctx.loading ? (openBlock(), createElementBlock("view", _hoisted_1, [
|
|
72
|
+
renderSlot(_ctx.$slots, "default")
|
|
73
|
+
])) : (openBlock(), createElementBlock("view", _hoisted_2, [
|
|
74
|
+
_ctx.animated ? (openBlock(), createElementBlock("view", _hoisted_3)) : createCommentVNode("", true),
|
|
75
|
+
createElementVNode("view", _hoisted_4, [
|
|
76
|
+
_ctx.avatar ? (openBlock(), createBlock(NutAvatar, {
|
|
77
|
+
key: 0,
|
|
78
|
+
class: normalizeClass(avatarClass.value),
|
|
79
|
+
shape: _ctx.avatarShape,
|
|
80
|
+
style: normalizeStyle(avatarStyle.value)
|
|
81
|
+
}, null, 8, ["class", "shape", "style"])) : createCommentVNode("", true),
|
|
82
|
+
createElementVNode("view", {
|
|
83
|
+
class: "nut-skeleton-content__line",
|
|
84
|
+
style: normalizeStyle({ width: _ctx.width })
|
|
85
|
+
}, [
|
|
86
|
+
_ctx.title ? (openBlock(), createElementBlock("view", {
|
|
87
|
+
key: 0,
|
|
88
|
+
class: normalizeClass(getBlockClass("nut-skeleton-blockTitle")),
|
|
89
|
+
style: normalizeStyle({ height: _ctx.height })
|
|
90
|
+
}, null, 6)) : createCommentVNode("", true),
|
|
91
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(Number(_ctx.row), (_) => {
|
|
92
|
+
return openBlock(), createElementBlock("view", {
|
|
93
|
+
key: _,
|
|
94
|
+
class: normalizeClass(getBlockClass("nut-skeleton-blockLine")),
|
|
95
|
+
style: normalizeStyle({ height: _ctx.height })
|
|
96
|
+
}, null, 6);
|
|
97
|
+
}), 128))
|
|
98
|
+
], 4)
|
|
99
|
+
])
|
|
100
|
+
]));
|
|
94
101
|
};
|
|
95
102
|
}
|
|
96
|
-
});
|
|
97
|
-
|
|
98
|
-
const _hoisted_2 = {
|
|
99
|
-
key: 1,
|
|
100
|
-
class: "nut-skeleton"
|
|
101
|
-
};
|
|
102
|
-
const _hoisted_3 = {
|
|
103
|
-
key: 0,
|
|
104
|
-
class: "nut-skeleton-animation"
|
|
105
|
-
};
|
|
106
|
-
const _hoisted_4 = { class: "nut-skeleton-content" };
|
|
107
|
-
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
108
|
-
const _component_nut_avatar = resolveComponent("nut-avatar");
|
|
109
|
-
return !_ctx.loading ? (openBlock(), createElementBlock("view", _hoisted_1, [
|
|
110
|
-
renderSlot(_ctx.$slots, "default")
|
|
111
|
-
])) : (openBlock(), createElementBlock("view", _hoisted_2, [
|
|
112
|
-
_ctx.animated ? (openBlock(), createElementBlock("view", _hoisted_3)) : createCommentVNode("", true),
|
|
113
|
-
createElementVNode("view", _hoisted_4, [
|
|
114
|
-
_ctx.avatar ? (openBlock(), createBlock(_component_nut_avatar, {
|
|
115
|
-
key: 0,
|
|
116
|
-
class: normalizeClass(_ctx.avatarClass),
|
|
117
|
-
shape: _ctx.avatarShape,
|
|
118
|
-
style: normalizeStyle(_ctx.getStyle())
|
|
119
|
-
}, null, 8, ["class", "shape", "style"])) : createCommentVNode("", true),
|
|
120
|
-
createElementVNode("view", {
|
|
121
|
-
class: "nut-skeleton-content__line",
|
|
122
|
-
style: normalizeStyle({ width: _ctx.width })
|
|
123
|
-
}, [
|
|
124
|
-
_ctx.title ? (openBlock(), createElementBlock("view", {
|
|
125
|
-
key: 0,
|
|
126
|
-
class: normalizeClass(_ctx.getBlockClass("nut-skeleton-blockTitle")),
|
|
127
|
-
style: normalizeStyle({ height: _ctx.height })
|
|
128
|
-
}, null, 6)) : createCommentVNode("", true),
|
|
129
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(Number(_ctx.row), (_) => {
|
|
130
|
-
return openBlock(), createElementBlock("view", {
|
|
131
|
-
key: _,
|
|
132
|
-
class: normalizeClass(_ctx.getBlockClass("nut-skeleton-blockLine")),
|
|
133
|
-
style: normalizeStyle({ height: _ctx.height })
|
|
134
|
-
}, null, 6);
|
|
135
|
-
}), 128))
|
|
136
|
-
], 4)
|
|
137
|
-
])
|
|
138
|
-
]));
|
|
139
|
-
}
|
|
140
|
-
const index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
103
|
+
}));
|
|
104
|
+
withInstall(_sfc_main);
|
|
141
105
|
export {
|
|
142
|
-
|
|
106
|
+
_sfc_main as Skeleton,
|
|
107
|
+
_sfc_main as default
|
|
143
108
|
};
|
package/dist/packages/sku/Sku.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
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 { Price as _sfc_main$5 } 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-
|
|
3
|
+
import { c as createComponent } from "../component-DQf3CENX.js";
|
|
4
|
+
import { u as useLocale } from "../index-CFigyH92.js";
|
|
5
|
+
import { _ as _export_sfc } from "../_plugin-vue_export-helper-1tPrXgE0.js";
|
|
6
6
|
import { InputNumber as _sfc_main$6 } from "../inputnumber/InputNumber.js";
|
|
7
|
-
import { N as NutPopup } from "../index-
|
|
7
|
+
import { N as NutPopup } from "../index-uHBD4dfS.js";
|
|
8
8
|
const { create: create$4 } = createComponent("sku-header");
|
|
9
9
|
const cN$1 = "NutSkuHeader";
|
|
10
10
|
const _sfc_main$4 = create$4({
|
|
@@ -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-DQf3CENX.js";
|
|
3
3
|
const { create, componentName } = createComponent("space");
|
|
4
4
|
const _sfc_main = create({
|
|
5
5
|
props: {
|
|
@@ -18,9 +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 { S as STEPS_KEY } from "../types-
|
|
23
|
-
import { _ as _export_sfc } from "../_plugin-vue_export-helper-
|
|
21
|
+
import { c as createComponent } from "../component-DQf3CENX.js";
|
|
22
|
+
import { S as STEPS_KEY } from "../types-1HzUV14W.js";
|
|
23
|
+
import { _ as _export_sfc } from "../_plugin-vue_export-helper-1tPrXgE0.js";
|
|
24
24
|
const { create, componentName } = createComponent("step");
|
|
25
25
|
const _sfc_main = create({
|
|
26
26
|
props: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { reactive, computed, provide, h } from "vue";
|
|
2
|
-
import { c as createComponent } from "../component-
|
|
3
|
-
import { S as STEPS_KEY } from "../types-
|
|
2
|
+
import { c as createComponent } from "../component-DQf3CENX.js";
|
|
3
|
+
import { S as STEPS_KEY } from "../types-1HzUV14W.js";
|
|
4
4
|
const { create, componentName } = createComponent("steps");
|
|
5
5
|
const _sfc_main = create({
|
|
6
6
|
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-DQf3CENX.js";
|
|
3
|
+
import { g as getScrollParent } from "../index-BvmDLUYP.js";
|
|
4
|
+
import { u as useRect } from "../index-B1qsj2XR.js";
|
|
5
|
+
import { _ as _export_sfc } from "../_plugin-vue_export-helper-1tPrXgE0.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-DQf3CENX.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-1tPrXgE0.js";
|
|
24
24
|
const { create } = createComponent("sub-side-navbar");
|
|
25
25
|
const _sfc_main = create({
|
|
26
26
|
props: {
|
|
@@ -18,9 +18,9 @@ var __spreadValues = (a, b) => {
|
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
20
|
import { defineComponent, ref, computed, inject, watch, reactive, openBlock, createElementBlock, normalizeStyle, createElementVNode, renderSlot } from "vue";
|
|
21
|
-
import { u as useTouch } from "../index-
|
|
22
|
-
import { S as SWIPE_KEY } from "../types-
|
|
23
|
-
import { w as withInstall } from "../with-install-
|
|
21
|
+
import { u as useTouch } from "../index-I8tfW3Kf.js";
|
|
22
|
+
import { S as SWIPE_KEY } from "../types-BWhKcf4T.js";
|
|
23
|
+
import { w as withInstall } from "../with-install-Ch3FF0uS.js";
|
|
24
24
|
const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({}, {
|
|
25
25
|
name: "NutSwipe"
|
|
26
26
|
}), {
|
|
@@ -18,8 +18,8 @@ var __spreadValues = (a, b) => {
|
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
20
|
import { defineComponent, ref, provide, openBlock, createElementBlock, renderSlot } from "vue";
|
|
21
|
-
import { S as SWIPE_KEY } from "../types-
|
|
22
|
-
import { w as withInstall } from "../with-install-
|
|
21
|
+
import { S as SWIPE_KEY } from "../types-BWhKcf4T.js";
|
|
22
|
+
import { w as withInstall } from "../with-install-Ch3FF0uS.js";
|
|
23
23
|
const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({}, {
|
|
24
24
|
name: "NutSwipeGroup"
|
|
25
25
|
}), {
|
|
@@ -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 { r as requestAniFrame } from "../raf-
|
|
6
|
-
import { S as SWIPER_KEY } from "../types-
|
|
7
|
-
import { _ as _export_sfc } from "../_plugin-vue_export-helper-
|
|
2
|
+
import { c as createComponent } from "../component-DQf3CENX.js";
|
|
3
|
+
import { e as clamp } from "../util-DnfK0Qan.js";
|
|
4
|
+
import { u as useTouch } from "../index-I8tfW3Kf.js";
|
|
5
|
+
import { r as requestAniFrame } from "../raf-c01wDYCo.js";
|
|
6
|
+
import { S as SWIPER_KEY } from "../types-DUkJysbi.js";
|
|
7
|
+
import { _ as _export_sfc } from "../_plugin-vue_export-helper-1tPrXgE0.js";
|
|
8
8
|
const { create, componentName } = createComponent("swiper");
|
|
9
9
|
const _sfc_main = create({
|
|
10
10
|
props: {
|
|
@@ -17,7 +17,7 @@ const _sfc_main = create({
|
|
|
17
17
|
direction: {
|
|
18
18
|
type: String,
|
|
19
19
|
default: "horizontal"
|
|
20
|
-
//horizontal and vertical
|
|
20
|
+
// horizontal and vertical
|
|
21
21
|
},
|
|
22
22
|
paginationVisible: {
|
|
23
23
|
type: Boolean,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { getCurrentInstance, inject, reactive, computed, onUnmounted, openBlock, createElementBlock, normalizeStyle, renderSlot } from "vue";
|
|
2
|
-
import { c as createComponent } from "../component-
|
|
3
|
-
import { S as SWIPER_KEY } from "../types-
|
|
4
|
-
import { _ as _export_sfc } from "../_plugin-vue_export-helper-
|
|
2
|
+
import { c as createComponent } from "../component-DQf3CENX.js";
|
|
3
|
+
import { S as SWIPER_KEY } from "../types-DUkJysbi.js";
|
|
4
|
+
import { _ as _export_sfc } from "../_plugin-vue_export-helper-1tPrXgE0.js";
|
|
5
5
|
function useExpose(apis) {
|
|
6
6
|
const instance = getCurrentInstance();
|
|
7
7
|
if (instance) {
|
|
@@ -1,63 +1,52 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __defProps = Object.defineProperties;
|
|
3
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
4
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
7
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
8
|
+
var __spreadValues = (a, b) => {
|
|
9
|
+
for (var prop in b || (b = {}))
|
|
10
|
+
if (__hasOwnProp.call(b, prop))
|
|
11
|
+
__defNormalProp(a, prop, b[prop]);
|
|
12
|
+
if (__getOwnPropSymbols)
|
|
13
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
14
|
+
if (__propIsEnum.call(b, prop))
|
|
15
|
+
__defNormalProp(a, prop, b[prop]);
|
|
16
|
+
}
|
|
17
|
+
return a;
|
|
18
|
+
};
|
|
19
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
|
+
import { defineComponent, computed, watch, openBlock, createElementBlock, normalizeClass, normalizeStyle, createElementVNode, renderSlot, createVNode, unref, createCommentVNode, Fragment, withDirectives, toDisplayString, vShow } from "vue";
|
|
3
21
|
import { Loading1 } from "@nutui/icons-vue";
|
|
4
|
-
import { u as useFormDisabled } from "../common-
|
|
5
|
-
import {
|
|
6
|
-
const
|
|
7
|
-
const _sfc_main =
|
|
8
|
-
|
|
22
|
+
import { u as useFormDisabled } from "../common-DRG0ue26.js";
|
|
23
|
+
import { w as withInstall } from "../with-install-Ch3FF0uS.js";
|
|
24
|
+
const _hoisted_1 = { class: "nut-switch-button" };
|
|
25
|
+
const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({}, {
|
|
26
|
+
name: "NutSwitch"
|
|
27
|
+
}), {
|
|
28
|
+
__name: "switch",
|
|
9
29
|
props: {
|
|
10
|
-
modelValue: {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
},
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
},
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
*/
|
|
21
|
-
disable: {
|
|
22
|
-
type: Boolean,
|
|
23
|
-
default: false
|
|
24
|
-
},
|
|
25
|
-
activeColor: {
|
|
26
|
-
type: String,
|
|
27
|
-
default: ""
|
|
28
|
-
},
|
|
29
|
-
inactiveColor: {
|
|
30
|
-
type: String,
|
|
31
|
-
default: ""
|
|
32
|
-
},
|
|
33
|
-
activeText: {
|
|
34
|
-
type: String,
|
|
35
|
-
default: ""
|
|
36
|
-
},
|
|
37
|
-
inactiveText: {
|
|
38
|
-
type: String,
|
|
39
|
-
default: ""
|
|
40
|
-
},
|
|
41
|
-
activeValue: {
|
|
42
|
-
type: [String, Number, Boolean],
|
|
43
|
-
default: true
|
|
44
|
-
},
|
|
45
|
-
inactiveValue: {
|
|
46
|
-
type: [String, Number, Boolean],
|
|
47
|
-
default: false
|
|
48
|
-
},
|
|
49
|
-
loading: {
|
|
50
|
-
type: Boolean,
|
|
51
|
-
default: false
|
|
52
|
-
}
|
|
30
|
+
modelValue: { type: [String, Number, Boolean], default: false },
|
|
31
|
+
disabled: { type: Boolean, default: false },
|
|
32
|
+
activeColor: { default: "" },
|
|
33
|
+
inactiveColor: { default: "" },
|
|
34
|
+
activeText: { default: "" },
|
|
35
|
+
inactiveText: { default: "" },
|
|
36
|
+
activeValue: { type: [String, Number, Boolean], default: true },
|
|
37
|
+
inactiveValue: { type: [String, Number, Boolean], default: false },
|
|
38
|
+
loading: { type: Boolean, default: false },
|
|
39
|
+
disable: { type: Boolean, default: false }
|
|
53
40
|
},
|
|
54
41
|
emits: ["change", "update:modelValue", "update:loading"],
|
|
55
|
-
setup(
|
|
42
|
+
setup(__props, { emit: __emit }) {
|
|
43
|
+
const props = __props;
|
|
44
|
+
const emit = __emit;
|
|
56
45
|
const legacyDisabled = computed(() => props.disabled || props.disable);
|
|
57
46
|
const disabled = useFormDisabled(legacyDisabled);
|
|
58
47
|
const isActive = computed(() => props.modelValue === props.activeValue);
|
|
59
48
|
const classes = computed(() => {
|
|
60
|
-
const prefixCls =
|
|
49
|
+
const prefixCls = "nut-switch";
|
|
61
50
|
return {
|
|
62
51
|
[prefixCls]: true,
|
|
63
52
|
[isActive.value ? "nut-switch-open" : "nut-switch-close"]: true,
|
|
@@ -89,41 +78,34 @@ const _sfc_main = create({
|
|
|
89
78
|
}
|
|
90
79
|
}
|
|
91
80
|
);
|
|
92
|
-
return {
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
81
|
+
return (_ctx, _cache) => {
|
|
82
|
+
return openBlock(), createElementBlock("view", {
|
|
83
|
+
class: normalizeClass(classes.value),
|
|
84
|
+
style: normalizeStyle(style.value),
|
|
85
|
+
onClick
|
|
86
|
+
}, [
|
|
87
|
+
createElementVNode("view", _hoisted_1, [
|
|
88
|
+
_ctx.loading ? renderSlot(_ctx.$slots, "icon", { key: 0 }, () => [
|
|
89
|
+
createVNode(unref(Loading1), {
|
|
90
|
+
name: "loading",
|
|
91
|
+
color: _ctx.activeColor
|
|
92
|
+
}, null, 8, ["color"])
|
|
93
|
+
]) : createCommentVNode("", true),
|
|
94
|
+
_ctx.activeText ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
95
|
+
withDirectives(createElementVNode("view", { class: "nut-switch-label open" }, toDisplayString(_ctx.activeText), 513), [
|
|
96
|
+
[vShow, isActive.value]
|
|
97
|
+
]),
|
|
98
|
+
withDirectives(createElementVNode("view", { class: "nut-switch-label close" }, toDisplayString(_ctx.inactiveText), 513), [
|
|
99
|
+
[vShow, !isActive.value]
|
|
100
|
+
])
|
|
101
|
+
], 64)) : createCommentVNode("", true)
|
|
102
|
+
])
|
|
103
|
+
], 6);
|
|
97
104
|
};
|
|
98
105
|
}
|
|
99
|
-
});
|
|
100
|
-
|
|
101
|
-
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
102
|
-
const _component_Loading1 = resolveComponent("Loading1");
|
|
103
|
-
return openBlock(), createElementBlock("view", {
|
|
104
|
-
class: normalizeClass(_ctx.classes),
|
|
105
|
-
style: normalizeStyle(_ctx.style),
|
|
106
|
-
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.onClick && _ctx.onClick(...args))
|
|
107
|
-
}, [
|
|
108
|
-
createElementVNode("view", _hoisted_1, [
|
|
109
|
-
_ctx.loading ? renderSlot(_ctx.$slots, "icon", { key: 0 }, () => [
|
|
110
|
-
createVNode(_component_Loading1, {
|
|
111
|
-
name: "loading",
|
|
112
|
-
color: _ctx.activeColor
|
|
113
|
-
}, null, 8, ["color"])
|
|
114
|
-
]) : createCommentVNode("", true),
|
|
115
|
-
_ctx.activeText ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
116
|
-
withDirectives(createElementVNode("view", { class: "nut-switch-label open" }, toDisplayString(_ctx.activeText), 513), [
|
|
117
|
-
[vShow, _ctx.isActive]
|
|
118
|
-
]),
|
|
119
|
-
withDirectives(createElementVNode("view", { class: "nut-switch-label close" }, toDisplayString(_ctx.inactiveText), 513), [
|
|
120
|
-
[vShow, !_ctx.isActive]
|
|
121
|
-
])
|
|
122
|
-
], 64)) : createCommentVNode("", true)
|
|
123
|
-
])
|
|
124
|
-
], 6);
|
|
125
|
-
}
|
|
126
|
-
const index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
106
|
+
}));
|
|
107
|
+
withInstall(_sfc_main);
|
|
127
108
|
export {
|
|
128
|
-
|
|
109
|
+
_sfc_main as Switch,
|
|
110
|
+
_sfc_main as default
|
|
129
111
|
};
|