@nutui/nutui 4.3.2 → 4.3.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 +40 -0
- package/dist/nutui.es.js +2 -4
- package/dist/nutui.js +7000 -7518
- 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 +6 -6
- 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 +80 -90
- 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 +817 -6
- package/dist/packages/calendar/index.scss +0 -1
- package/dist/packages/calendarcard/CalendarCard.js +4 -4
- package/dist/packages/card/Card.js +4 -4
- 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 +4 -4
- package/dist/packages/cellgroup/CellGroup.js +2 -2
- package/dist/packages/checkbox/Checkbox.js +4 -4
- package/dist/packages/checkboxgroup/CheckboxGroup.js +2 -2
- package/dist/packages/circleprogress/CircleProgress.js +91 -98
- 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 +6 -6
- 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 +5 -5
- 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 +4 -4
- package/dist/packages/formitem/FormItem.js +4 -4
- 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 +10 -10
- package/dist/packages/inputnumber/InputNumber.js +85 -104
- package/dist/packages/invoice/Invoice.js +87 -138
- 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 +103 -115
- 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 +96 -115
- 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 +102 -144
- 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 +13 -13
- package/dist/packages/sku/Sku.js +6 -6
- 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 +98 -112
- package/dist/packages/swipegroup/SwipeGroup.js +42 -24
- 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 +57 -66
- 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 +9 -9
- 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 +2 -2
- package/dist/styles/base-jdb.css +1 -1
- package/dist/styles/base-jddkh.css +1 -1
- package/dist/styles/base-jdt.css +1 -1
- package/dist/styles/themes/default.scss +0 -1
- package/dist/styles/themes/jdb.scss +0 -1
- package/dist/styles/themes/jddkh.scss +0 -1
- package/dist/styles/themes/jdt.scss +0 -1
- package/dist/styles/variables-jdb.scss +0 -1
- package/dist/styles/variables-jddkh.scss +0 -1
- package/dist/styles/variables-jdt.scss +0 -1
- package/dist/styles/variables.scss +0 -1
- package/dist/types/__VUE/backtop/backtop.vue.d.ts +87 -0
- package/dist/types/__VUE/backtop/index.d.ts +5 -0
- package/dist/types/__VUE/calendaritem/index.vue.d.ts +2 -12
- package/dist/types/__VUE/circleprogress/circle-progress.vue.d.ts +88 -0
- package/dist/types/__VUE/circleprogress/index.d.ts +6 -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/inputnumber/index.d.ts +5 -0
- package/dist/types/__VUE/inputnumber/input-number.vue.d.ts +112 -0
- package/dist/types/__VUE/invoice/index.d.ts +6 -0
- package/dist/types/__VUE/invoice/invoice.vue.d.ts +59 -0
- package/dist/types/__VUE/invoice/types.d.ts +12 -0
- package/dist/types/__VUE/navbar/index.d.ts +5 -0
- package/dist/types/__VUE/navbar/navbar.vue.d.ts +125 -0
- package/dist/types/__VUE/progress/index.d.ts +6 -0
- package/dist/types/__VUE/progress/progress.vue.d.ts +91 -0
- package/dist/types/__VUE/rate/index.d.ts +5 -0
- package/dist/types/__VUE/rate/rate.vue.d.ts +208 -0
- package/dist/types/__VUE/swipe/index.d.ts +6 -0
- package/dist/types/__VUE/swipe/swipe.vue.d.ts +79 -0
- package/dist/types/__VUE/swipe/types.d.ts +1 -0
- package/dist/types/__VUE/swipegroup/index.d.ts +5 -0
- package/dist/types/__VUE/swipegroup/swipe-group.vue.d.ts +47 -0
- 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/tag/index.d.ts +6 -0
- package/dist/types/__VUE/tag/tag.vue.d.ts +90 -0
- package/dist/types/__VUE/tag/types.d.ts +1 -1
- 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/index.d.ts +36 -20
- 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/calendaritem/CalendarItem.js +0 -819
- package/dist/packages/calendaritem/index.css +0 -0
- package/dist/packages/calendaritem/index.mjs +0 -2
- package/dist/packages/calendaritem/index.scss +0 -0
- package/dist/packages/calendaritem/style/css.mjs +0 -2
- package/dist/packages/calendaritem/style/index.mjs +0 -2
- package/dist/packages/useParent-KIxqkovs.js +0 -16
- package/dist/types/__VUE/backtop/index.vue.d.ts +0 -98
- package/dist/types/__VUE/circleprogress/index.vue.d.ts +0 -95
- 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/inputnumber/index.vue.d.ts +0 -117
- package/dist/types/__VUE/invoice/index.vue.d.ts +0 -53
- package/dist/types/__VUE/navbar/index.vue.d.ts +0 -129
- package/dist/types/__VUE/progress/index.vue.d.ts +0 -120
- package/dist/types/__VUE/rate/index.vue.d.ts +0 -240
- package/dist/types/__VUE/swipe/index.vue.d.ts +0 -70
- package/dist/types/__VUE/swipegroup/index.vue.d.ts +0 -26
- 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/tag/index.vue.d.ts +0 -94
- 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,42 +1,49 @@
|
|
|
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, ref, computed, onMounted, nextTick, openBlock, createElementBlock, normalizeStyle, createElementVNode, normalizeClass, renderSlot, createVNode, unref, createCommentVNode, toDisplayString } from "vue";
|
|
3
21
|
import { Left } from "@nutui/icons-vue";
|
|
4
|
-
import {
|
|
5
|
-
const
|
|
6
|
-
|
|
7
|
-
|
|
22
|
+
import { w as withInstall } from "../with-install-Ch3FF0uS.js";
|
|
23
|
+
const _hoisted_1 = {
|
|
24
|
+
key: 1,
|
|
25
|
+
class: "nut-navbar__text"
|
|
26
|
+
};
|
|
27
|
+
const _hoisted_2 = { class: "nut-navbar__title" };
|
|
28
|
+
const _hoisted_3 = {
|
|
29
|
+
key: 0,
|
|
30
|
+
class: "nut-navbar__text"
|
|
31
|
+
};
|
|
32
|
+
const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({}, {
|
|
33
|
+
name: "NutNavbar"
|
|
34
|
+
}), {
|
|
35
|
+
__name: "navbar",
|
|
8
36
|
props: {
|
|
9
37
|
leftShow: { type: Boolean, default: false },
|
|
10
|
-
|
|
11
|
-
title: { type: String, default: "" },
|
|
12
|
-
//中间 文字标题
|
|
38
|
+
title: { default: "" },
|
|
13
39
|
titleIcon: { type: Boolean, default: false },
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
default: false
|
|
22
|
-
},
|
|
23
|
-
safeAreaInsetTop: {
|
|
24
|
-
type: Boolean,
|
|
25
|
-
default: false
|
|
26
|
-
},
|
|
27
|
-
border: {
|
|
28
|
-
type: Boolean,
|
|
29
|
-
default: false
|
|
30
|
-
},
|
|
31
|
-
placeholder: {
|
|
32
|
-
// 生成一个等高的占位元素
|
|
33
|
-
type: Boolean,
|
|
34
|
-
default: true
|
|
35
|
-
},
|
|
36
|
-
zIndex: {
|
|
37
|
-
type: [Number, String],
|
|
38
|
-
default: 10
|
|
39
|
-
}
|
|
40
|
+
leftText: { default: "" },
|
|
41
|
+
desc: { default: "" },
|
|
42
|
+
fixed: { type: Boolean, default: false },
|
|
43
|
+
safeAreaInsetTop: { type: Boolean, default: false },
|
|
44
|
+
border: { type: Boolean, default: false },
|
|
45
|
+
placeholder: { type: Boolean, default: true },
|
|
46
|
+
zIndex: { default: 10 }
|
|
40
47
|
},
|
|
41
48
|
emits: [
|
|
42
49
|
"clickBack",
|
|
@@ -49,21 +56,22 @@ const _sfc_main = create({
|
|
|
49
56
|
"onClickIcon",
|
|
50
57
|
"onClickRight"
|
|
51
58
|
],
|
|
52
|
-
setup(
|
|
53
|
-
const
|
|
59
|
+
setup(__props, { emit: __emit }) {
|
|
60
|
+
const props = __props;
|
|
61
|
+
const emit = __emit;
|
|
54
62
|
const navHeight = ref("auto");
|
|
55
63
|
const navbarRef = ref();
|
|
56
64
|
const classes = computed(() => {
|
|
57
|
-
const prefixCls =
|
|
65
|
+
const prefixCls = "nut-navbar";
|
|
58
66
|
return {
|
|
59
67
|
[prefixCls]: true,
|
|
60
|
-
[`${prefixCls}--border`]: border
|
|
61
|
-
[`${prefixCls}--fixed`]: fixed
|
|
62
|
-
[`${prefixCls}--safe-area-inset-top`]: safeAreaInsetTop
|
|
68
|
+
[`${prefixCls}--border`]: props.border,
|
|
69
|
+
[`${prefixCls}--fixed`]: props.fixed,
|
|
70
|
+
[`${prefixCls}--safe-area-inset-top`]: props.safeAreaInsetTop
|
|
63
71
|
};
|
|
64
72
|
});
|
|
65
73
|
const rootStyle = computed(() => {
|
|
66
|
-
if (fixed
|
|
74
|
+
if (props.fixed && props.placeholder) {
|
|
67
75
|
return {
|
|
68
76
|
height: navHeight.value
|
|
69
77
|
};
|
|
@@ -77,7 +85,7 @@ const _sfc_main = create({
|
|
|
77
85
|
}
|
|
78
86
|
};
|
|
79
87
|
onMounted(() => {
|
|
80
|
-
if (fixed
|
|
88
|
+
if (props.fixed && props.placeholder) {
|
|
81
89
|
nextTick(() => {
|
|
82
90
|
getNavHeight();
|
|
83
91
|
});
|
|
@@ -99,79 +107,59 @@ const _sfc_main = create({
|
|
|
99
107
|
emit("clickRight");
|
|
100
108
|
emit("onClickRight");
|
|
101
109
|
};
|
|
102
|
-
return {
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
navHeight,
|
|
107
|
-
handleLeft,
|
|
108
|
-
handleCenter,
|
|
109
|
-
handleCenterIcon,
|
|
110
|
-
handleRight
|
|
111
|
-
};
|
|
112
|
-
}
|
|
113
|
-
});
|
|
114
|
-
const _hoisted_1 = {
|
|
115
|
-
key: 1,
|
|
116
|
-
class: "nut-navbar__text"
|
|
117
|
-
};
|
|
118
|
-
const _hoisted_2 = { class: "nut-navbar__title" };
|
|
119
|
-
const _hoisted_3 = {
|
|
120
|
-
key: 0,
|
|
121
|
-
class: "nut-navbar__text"
|
|
122
|
-
};
|
|
123
|
-
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
124
|
-
const _component_Left = resolveComponent("Left");
|
|
125
|
-
return openBlock(), createElementBlock("view", {
|
|
126
|
-
class: "nut-navbar--placeholder",
|
|
127
|
-
style: normalizeStyle(_ctx.rootStyle)
|
|
128
|
-
}, [
|
|
129
|
-
createElementVNode("view", {
|
|
130
|
-
ref: "navbarRef",
|
|
131
|
-
class: normalizeClass(_ctx.classes),
|
|
132
|
-
style: normalizeStyle({ zIndex: _ctx.zIndex })
|
|
133
|
-
}, [
|
|
134
|
-
createElementVNode("view", {
|
|
135
|
-
class: "nut-navbar__left",
|
|
136
|
-
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.handleLeft && _ctx.handleLeft(...args))
|
|
110
|
+
return (_ctx, _cache) => {
|
|
111
|
+
return openBlock(), createElementBlock("view", {
|
|
112
|
+
class: "nut-navbar--placeholder",
|
|
113
|
+
style: normalizeStyle(rootStyle.value)
|
|
137
114
|
}, [
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
})
|
|
143
|
-
]) : createCommentVNode("", true),
|
|
144
|
-
_ctx.leftText ? (openBlock(), createElementBlock("view", _hoisted_1, toDisplayString(_ctx.leftText), 1)) : createCommentVNode("", true),
|
|
145
|
-
renderSlot(_ctx.$slots, "left")
|
|
146
|
-
]),
|
|
147
|
-
createElementVNode("view", _hoisted_2, [
|
|
148
|
-
_ctx.title ? (openBlock(), createElementBlock("view", {
|
|
149
|
-
key: 0,
|
|
150
|
-
class: "title",
|
|
151
|
-
onClick: _cache[1] || (_cache[1] = (...args) => _ctx.handleCenter && _ctx.handleCenter(...args))
|
|
152
|
-
}, toDisplayString(_ctx.title), 1)) : createCommentVNode("", true),
|
|
153
|
-
_ctx.titleIcon ? (openBlock(), createElementBlock("view", {
|
|
154
|
-
key: 1,
|
|
155
|
-
class: "icon",
|
|
156
|
-
onClick: _cache[3] || (_cache[3] = (...args) => _ctx.handleCenterIcon && _ctx.handleCenterIcon(...args))
|
|
115
|
+
createElementVNode("view", {
|
|
116
|
+
ref_key: "navbarRef",
|
|
117
|
+
ref: navbarRef,
|
|
118
|
+
class: normalizeClass(classes.value),
|
|
119
|
+
style: normalizeStyle({ zIndex: _ctx.zIndex })
|
|
157
120
|
}, [
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
121
|
+
createElementVNode("view", {
|
|
122
|
+
class: "nut-navbar__left",
|
|
123
|
+
onClick: handleLeft
|
|
124
|
+
}, [
|
|
125
|
+
_ctx.leftShow ? renderSlot(_ctx.$slots, "left-show", { key: 0 }, () => [
|
|
126
|
+
createVNode(unref(Left), {
|
|
127
|
+
height: "12px",
|
|
128
|
+
color: "#979797"
|
|
129
|
+
})
|
|
130
|
+
]) : createCommentVNode("", true),
|
|
131
|
+
_ctx.leftText ? (openBlock(), createElementBlock("view", _hoisted_1, toDisplayString(_ctx.leftText), 1)) : createCommentVNode("", true),
|
|
132
|
+
renderSlot(_ctx.$slots, "left")
|
|
133
|
+
]),
|
|
134
|
+
createElementVNode("view", _hoisted_2, [
|
|
135
|
+
_ctx.title ? (openBlock(), createElementBlock("view", {
|
|
136
|
+
key: 0,
|
|
137
|
+
class: "title",
|
|
138
|
+
onClick: handleCenter
|
|
139
|
+
}, toDisplayString(_ctx.title), 1)) : createCommentVNode("", true),
|
|
140
|
+
_ctx.titleIcon ? (openBlock(), createElementBlock("view", {
|
|
141
|
+
key: 1,
|
|
142
|
+
class: "icon",
|
|
143
|
+
onClick: handleCenterIcon
|
|
144
|
+
}, [
|
|
145
|
+
renderSlot(_ctx.$slots, "title-icon", { onClick: handleCenterIcon })
|
|
146
|
+
])) : createCommentVNode("", true),
|
|
147
|
+
renderSlot(_ctx.$slots, "content")
|
|
148
|
+
]),
|
|
149
|
+
createElementVNode("view", {
|
|
150
|
+
class: "nut-navbar__right",
|
|
151
|
+
onClick: handleRight
|
|
152
|
+
}, [
|
|
153
|
+
_ctx.desc ? (openBlock(), createElementBlock("view", _hoisted_3, toDisplayString(_ctx.desc), 1)) : createCommentVNode("", true),
|
|
154
|
+
renderSlot(_ctx.$slots, "right")
|
|
155
|
+
])
|
|
156
|
+
], 6)
|
|
157
|
+
], 4);
|
|
158
|
+
};
|
|
159
|
+
}
|
|
160
|
+
}));
|
|
161
|
+
withInstall(_sfc_main);
|
|
175
162
|
export {
|
|
176
|
-
|
|
163
|
+
_sfc_main as Navbar,
|
|
164
|
+
_sfc_main as default
|
|
177
165
|
};
|
|
@@ -19,9 +19,9 @@ var __spreadValues = (a, b) => {
|
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
20
|
import { h, ref, reactive, computed, watch, onMounted, onActivated, onDeactivated, onUnmounted, toRefs, resolveComponent, openBlock, createElementBlock, withDirectives, normalizeClass, normalizeStyle, renderSlot, createVNode, createCommentVNode, createElementVNode, createTextVNode, toDisplayString, withModifiers, createBlock, vShow, Fragment, renderList } from "vue";
|
|
21
21
|
import { Notice, CircleClose } from "@nutui/icons-vue";
|
|
22
|
-
import { c as createComponent } from "../component-
|
|
23
|
-
import { p as pxCheck } from "../pxCheck-
|
|
24
|
-
import { _ as _export_sfc } from "../_plugin-vue_export-helper-
|
|
22
|
+
import { c as createComponent } from "../component-DQf3CENX.js";
|
|
23
|
+
import { p as pxCheck } from "../pxCheck-DN6FYV6q.js";
|
|
24
|
+
import { _ as _export_sfc } from "../_plugin-vue_export-helper-1tPrXgE0.js";
|
|
25
25
|
const { create } = createComponent("noticebar");
|
|
26
26
|
const _sfc_main = create({
|
|
27
27
|
props: {
|
|
@@ -18,9 +18,9 @@ var __spreadValues = (a, b) => {
|
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
20
|
import { ref, watch, resolveComponent, openBlock, createBlock, withCtx, createElementVNode, normalizeClass, normalizeStyle, renderSlot, createElementBlock, Fragment, createTextVNode, toDisplayString, createVNode, render, onMounted, h } from "vue";
|
|
21
|
-
import { c as createComponent } from "../component-
|
|
22
|
-
import { N as NutPopup } from "../index-
|
|
23
|
-
import { _ as _export_sfc } from "../_plugin-vue_export-helper-
|
|
21
|
+
import { c as createComponent } from "../component-DQf3CENX.js";
|
|
22
|
+
import { N as NutPopup } from "../index-uHBD4dfS.js";
|
|
23
|
+
import { _ as _export_sfc } from "../_plugin-vue_export-helper-1tPrXgE0.js";
|
|
24
24
|
const { create } = createComponent("notify");
|
|
25
25
|
const _sfc_main = create({
|
|
26
26
|
components: {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ref, computed, watch, resolveComponent, openBlock, createElementBlock, createVNode, withCtx, createElementVNode, toDisplayString, createCommentVNode, Fragment, renderList, normalizeClass, createTextVNode } 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-DQf3CENX.js";
|
|
3
|
+
import { N as NutPopup } from "../index-uHBD4dfS.js";
|
|
4
|
+
import { u as useLocale } from "../index-CFigyH92.js";
|
|
5
|
+
import { _ as _export_sfc } from "../_plugin-vue_export-helper-1tPrXgE0.js";
|
|
6
6
|
const { create } = createComponent("number-keyboard");
|
|
7
7
|
const cN = "NutNumberKeyboard";
|
|
8
8
|
const _sfc_main = create({
|
|
@@ -15,9 +15,9 @@ var __spreadValues = (a, b) => {
|
|
|
15
15
|
return a;
|
|
16
16
|
};
|
|
17
17
|
import { computed, watchEffect, openBlock, createBlock, Transition, withCtx, withDirectives, createElementVNode, normalizeClass, normalizeStyle, withModifiers, renderSlot, vShow } from "vue";
|
|
18
|
-
import { c as createComponent } from "../component-
|
|
19
|
-
import { b as body } from "../util-
|
|
20
|
-
import { _ as _export_sfc } from "../_plugin-vue_export-helper-
|
|
18
|
+
import { c as createComponent } from "../component-DQf3CENX.js";
|
|
19
|
+
import { b as body } from "../util-DnfK0Qan.js";
|
|
20
|
+
import { _ as _export_sfc } from "../_plugin-vue_export-helper-1tPrXgE0.js";
|
|
21
21
|
let count = 0;
|
|
22
22
|
const CLSNAME = "nut-overflow-hidden";
|
|
23
23
|
const useLockScroll = (isLock) => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { toRefs, computed, watchEffect, openBlock, createElementBlock, createElementVNode, normalizeClass, renderSlot, createTextVNode, toDisplayString, Fragment, renderList, 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-DQf3CENX.js";
|
|
3
|
+
import { u as useLocale } from "../index-CFigyH92.js";
|
|
4
|
+
import { _ as _export_sfc } from "../_plugin-vue_export-helper-1tPrXgE0.js";
|
|
5
5
|
const { create } = createComponent("pagination");
|
|
6
6
|
const cN = "NutPagination";
|
|
7
7
|
const _sfc_main = create({
|
|
@@ -18,12 +18,12 @@ var __spreadValues = (a, b) => {
|
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
20
|
import { reactive, computed, ref, watch, toRefs, onMounted, openBlock, createElementBlock, createElementVNode, normalizeStyle, Fragment, renderList, normalizeClass, toDisplayString, createCommentVNode, resolveComponent, renderSlot, createVNode } from "vue";
|
|
21
|
-
import { c as createComponent } from "../component-
|
|
22
|
-
import { d as preventDefault, e as clamp } from "../util-
|
|
23
|
-
import { p as pxCheck } from "../pxCheck-
|
|
24
|
-
import { u as useTouch } from "../index-
|
|
25
|
-
import { _ as _export_sfc } from "../_plugin-vue_export-helper-
|
|
26
|
-
import { u as useLocale } from "../index-
|
|
21
|
+
import { c as createComponent } from "../component-DQf3CENX.js";
|
|
22
|
+
import { d as preventDefault, e as clamp } from "../util-DnfK0Qan.js";
|
|
23
|
+
import { p as pxCheck } from "../pxCheck-DN6FYV6q.js";
|
|
24
|
+
import { u as useTouch } from "../index-I8tfW3Kf.js";
|
|
25
|
+
import { _ as _export_sfc } from "../_plugin-vue_export-helper-1tPrXgE0.js";
|
|
26
|
+
import { u as useLocale } from "../index-CFigyH92.js";
|
|
27
27
|
const DEFAULT_FILED_NAMES = {
|
|
28
28
|
text: "text",
|
|
29
29
|
value: "value",
|
|
@@ -77,10 +77,7 @@ const usePicker = (props, emit) => {
|
|
|
77
77
|
result = state.formattedColumns;
|
|
78
78
|
break;
|
|
79
79
|
case "cascade":
|
|
80
|
-
result = formatCascade(
|
|
81
|
-
state.formattedColumns,
|
|
82
|
-
defaultValues.value ? defaultValues.value : []
|
|
83
|
-
);
|
|
80
|
+
result = formatCascade(state.formattedColumns, defaultValues.value ? defaultValues.value : []);
|
|
84
81
|
break;
|
|
85
82
|
default:
|
|
86
83
|
result = [state.formattedColumns];
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { ref, computed, onMounted, watch, nextTick, resolveComponent, openBlock, createElementBlock, Fragment, renderSlot, createCommentVNode, createBlock, Teleport, createElementVNode, normalizeClass, normalizeStyle, createVNode, withCtx, renderList, withModifiers, resolveDynamicComponent, toDisplayString } from "vue";
|
|
2
|
-
import { c as createComponent } from "../component-
|
|
3
|
-
import { r as renderIcon } from "../renderIcon
|
|
4
|
-
import { u as useRect } from "../index-
|
|
5
|
-
import { N as NutPopup } from "../index-
|
|
6
|
-
import { _ as _export_sfc } from "../_plugin-vue_export-helper-
|
|
2
|
+
import { c as createComponent } from "../component-DQf3CENX.js";
|
|
3
|
+
import { r as renderIcon } from "../renderIcon-BfOvhG7i.js";
|
|
4
|
+
import { u as useRect } from "../index-B1qsj2XR.js";
|
|
5
|
+
import { N as NutPopup } from "../index-uHBD4dfS.js";
|
|
6
|
+
import { _ as _export_sfc } from "../_plugin-vue_export-helper-1tPrXgE0.js";
|
|
7
7
|
const { create } = createComponent("popover");
|
|
8
8
|
const _sfc_main = create({
|
|
9
9
|
components: {
|
|
@@ -18,7 +18,7 @@ var __spreadValues = (a, b) => {
|
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
20
|
import { defineComponent, computed, openBlock, createElementBlock, normalizeClass, createCommentVNode, createElementVNode, toDisplayString } from "vue";
|
|
21
|
-
import { w as withInstall } from "../with-install-
|
|
21
|
+
import { w as withInstall } from "../with-install-Ch3FF0uS.js";
|
|
22
22
|
const _hoisted_1 = ["innerHTML"];
|
|
23
23
|
const _hoisted_2 = ["innerHTML"];
|
|
24
24
|
const prefix = "nut-price";
|
|
@@ -1,55 +1,44 @@
|
|
|
1
|
-
|
|
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, openBlock, createElementBlock, createElementVNode, normalizeClass, normalizeStyle, toDisplayString, createCommentVNode, renderSlot, createVNode, unref } from "vue";
|
|
2
21
|
import { Checked } from "@nutui/icons-vue";
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
const
|
|
6
|
-
|
|
7
|
-
|
|
22
|
+
import { w as withInstall } from "../with-install-Ch3FF0uS.js";
|
|
23
|
+
const _hoisted_1 = { class: "nut-progress" };
|
|
24
|
+
const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({}, {
|
|
25
|
+
name: "NutProgress"
|
|
26
|
+
}), {
|
|
27
|
+
__name: "progress",
|
|
8
28
|
props: {
|
|
9
|
-
percentage: {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
},
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
},
|
|
18
|
-
|
|
19
|
-
type: String,
|
|
20
|
-
default: "text"
|
|
21
|
-
},
|
|
22
|
-
strokeWidth: {
|
|
23
|
-
type: [Number, String],
|
|
24
|
-
default: ""
|
|
25
|
-
},
|
|
26
|
-
textInside: {
|
|
27
|
-
type: Boolean,
|
|
28
|
-
default: false
|
|
29
|
-
},
|
|
30
|
-
showText: {
|
|
31
|
-
type: Boolean,
|
|
32
|
-
default: true
|
|
33
|
-
},
|
|
34
|
-
strokeColor: {
|
|
35
|
-
type: String,
|
|
36
|
-
default: ""
|
|
37
|
-
},
|
|
38
|
-
textColor: {
|
|
39
|
-
type: String,
|
|
40
|
-
default: ""
|
|
41
|
-
},
|
|
42
|
-
textBackground: {
|
|
43
|
-
type: String,
|
|
44
|
-
default: ""
|
|
45
|
-
},
|
|
46
|
-
isShowPercentage: {
|
|
47
|
-
type: Boolean,
|
|
48
|
-
default: true
|
|
49
|
-
}
|
|
29
|
+
percentage: { default: 0 },
|
|
30
|
+
size: { default: "base" },
|
|
31
|
+
status: { default: "text" },
|
|
32
|
+
strokeWidth: {},
|
|
33
|
+
textInside: { type: Boolean, default: false },
|
|
34
|
+
showText: { type: Boolean, default: true },
|
|
35
|
+
strokeColor: {},
|
|
36
|
+
textColor: {},
|
|
37
|
+
textBackground: {},
|
|
38
|
+
isShowPercentage: { type: Boolean, default: true }
|
|
50
39
|
},
|
|
51
|
-
setup(
|
|
52
|
-
const
|
|
40
|
+
setup(__props) {
|
|
41
|
+
const props = __props;
|
|
53
42
|
const height = computed(() => {
|
|
54
43
|
if (props.strokeWidth) {
|
|
55
44
|
return props.strokeWidth + "px";
|
|
@@ -70,73 +59,65 @@ const _sfc_main = create({
|
|
|
70
59
|
color: props.textColor || ""
|
|
71
60
|
};
|
|
72
61
|
});
|
|
73
|
-
return {
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
62
|
+
return (_ctx, _cache) => {
|
|
63
|
+
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
64
|
+
createElementVNode("div", {
|
|
65
|
+
class: normalizeClass(["nut-progress-outer", [_ctx.showText && !_ctx.textInside ? "nut-progress-outer-part" : "", _ctx.size ? "nut-progress-" + _ctx.size : ""]]),
|
|
66
|
+
style: normalizeStyle({ height: height.value })
|
|
67
|
+
}, [
|
|
68
|
+
createElementVNode("div", {
|
|
69
|
+
class: normalizeClass(["nut-progress-inner", _ctx.status === "active" ? "nut-active" : ""]),
|
|
70
|
+
style: normalizeStyle(bgStyle.value)
|
|
71
|
+
}, null, 6),
|
|
72
|
+
_ctx.showText && _ctx.textInside && !_ctx.$slots.default ? (openBlock(), createElementBlock("div", {
|
|
73
|
+
key: 0,
|
|
74
|
+
class: "nut-progress-text nut-progress-insidetext",
|
|
75
|
+
style: normalizeStyle({
|
|
76
|
+
lineHeight: height.value,
|
|
77
|
+
left: `${percentage.value}%`,
|
|
78
|
+
transform: `translate(-${+percentage.value}%,-50%)`,
|
|
79
|
+
background: _ctx.textBackground || _ctx.strokeColor
|
|
80
|
+
})
|
|
81
|
+
}, [
|
|
82
|
+
createElementVNode("span", {
|
|
83
|
+
style: normalizeStyle(textStyle.value)
|
|
84
|
+
}, toDisplayString(percentage.value) + toDisplayString(_ctx.isShowPercentage ? "%" : ""), 5)
|
|
85
|
+
], 4)) : createCommentVNode("", true),
|
|
86
|
+
_ctx.showText && _ctx.textInside && _ctx.$slots.default ? (openBlock(), createElementBlock("div", {
|
|
87
|
+
key: 1,
|
|
88
|
+
class: "nut-progress-slot",
|
|
89
|
+
style: normalizeStyle({
|
|
90
|
+
position: `absolute`,
|
|
91
|
+
top: `50%`,
|
|
92
|
+
left: `${percentage.value}%`,
|
|
93
|
+
transform: `translate(-${+percentage.value}%,-50%)`
|
|
94
|
+
})
|
|
95
|
+
}, [
|
|
96
|
+
renderSlot(_ctx.$slots, "default")
|
|
97
|
+
], 4)) : createCommentVNode("", true)
|
|
98
|
+
], 6),
|
|
99
|
+
_ctx.showText && !_ctx.textInside ? (openBlock(), createElementBlock("div", {
|
|
100
|
+
key: 0,
|
|
101
|
+
class: "nut-progress-text",
|
|
102
|
+
style: normalizeStyle({ lineHeight: height.value })
|
|
103
|
+
}, [
|
|
104
|
+
_ctx.status === "text" || _ctx.status === "active" ? (openBlock(), createElementBlock("span", {
|
|
105
|
+
key: 0,
|
|
106
|
+
style: normalizeStyle(textStyle.value)
|
|
107
|
+
}, toDisplayString(percentage.value) + toDisplayString(_ctx.isShowPercentage ? "%" : ""), 5)) : _ctx.status === "icon" ? renderSlot(_ctx.$slots, "icon-name", { key: 1 }, () => [
|
|
108
|
+
createVNode(unref(Checked), {
|
|
109
|
+
width: "15px",
|
|
110
|
+
height: "15px",
|
|
111
|
+
color: "#439422"
|
|
112
|
+
})
|
|
113
|
+
]) : createCommentVNode("", true)
|
|
114
|
+
], 4)) : createCommentVNode("", true)
|
|
115
|
+
]);
|
|
79
116
|
};
|
|
80
117
|
}
|
|
81
|
-
});
|
|
82
|
-
|
|
83
|
-
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
84
|
-
const _component_Checked = resolveComponent("Checked");
|
|
85
|
-
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
86
|
-
createElementVNode("div", {
|
|
87
|
-
class: normalizeClass(["nut-progress-outer", [_ctx.showText && !_ctx.textInside ? "nut-progress-outer-part" : "", _ctx.size ? "nut-progress-" + _ctx.size : ""]]),
|
|
88
|
-
style: normalizeStyle({ height: _ctx.height })
|
|
89
|
-
}, [
|
|
90
|
-
createElementVNode("div", {
|
|
91
|
-
class: normalizeClass(["nut-progress-inner", _ctx.status === "active" ? "nut-active" : ""]),
|
|
92
|
-
style: normalizeStyle(_ctx.bgStyle)
|
|
93
|
-
}, null, 6),
|
|
94
|
-
_ctx.showText && _ctx.textInside && !_ctx.slotDefault ? (openBlock(), createElementBlock("div", {
|
|
95
|
-
key: 0,
|
|
96
|
-
class: "nut-progress-text nut-progress-insidetext",
|
|
97
|
-
style: normalizeStyle({
|
|
98
|
-
lineHeight: _ctx.height,
|
|
99
|
-
left: `${_ctx.percentage}%`,
|
|
100
|
-
transform: `translate(-${+_ctx.percentage}%,-50%)`,
|
|
101
|
-
background: _ctx.textBackground || _ctx.strokeColor
|
|
102
|
-
})
|
|
103
|
-
}, [
|
|
104
|
-
createElementVNode("span", {
|
|
105
|
-
style: normalizeStyle(_ctx.textStyle)
|
|
106
|
-
}, toDisplayString(_ctx.percentage) + toDisplayString(_ctx.isShowPercentage ? "%" : ""), 5)
|
|
107
|
-
], 4)) : createCommentVNode("", true),
|
|
108
|
-
_ctx.showText && _ctx.textInside && _ctx.slotDefault ? (openBlock(), createElementBlock("div", {
|
|
109
|
-
key: 1,
|
|
110
|
-
class: "nut-progress-slot",
|
|
111
|
-
style: normalizeStyle({
|
|
112
|
-
position: `absolute`,
|
|
113
|
-
top: `50%`,
|
|
114
|
-
left: `${_ctx.percentage}%`,
|
|
115
|
-
transform: `translate(-${+_ctx.percentage}%,-50%)`
|
|
116
|
-
})
|
|
117
|
-
}, [
|
|
118
|
-
renderSlot(_ctx.$slots, "default")
|
|
119
|
-
], 4)) : createCommentVNode("", true)
|
|
120
|
-
], 6),
|
|
121
|
-
_ctx.showText && !_ctx.textInside ? (openBlock(), createElementBlock("div", {
|
|
122
|
-
key: 0,
|
|
123
|
-
class: "nut-progress-text",
|
|
124
|
-
style: normalizeStyle({ lineHeight: _ctx.height })
|
|
125
|
-
}, [
|
|
126
|
-
_ctx.status === "text" || _ctx.status === "active" ? (openBlock(), createElementBlock("span", {
|
|
127
|
-
key: 0,
|
|
128
|
-
style: normalizeStyle(_ctx.textStyle)
|
|
129
|
-
}, toDisplayString(_ctx.percentage) + toDisplayString(_ctx.isShowPercentage ? "%" : ""), 5)) : _ctx.status === "icon" ? renderSlot(_ctx.$slots, "icon-name", { key: 1 }, () => [
|
|
130
|
-
createVNode(_component_Checked, {
|
|
131
|
-
width: "15px",
|
|
132
|
-
height: "15px",
|
|
133
|
-
color: "#439422"
|
|
134
|
-
})
|
|
135
|
-
]) : createCommentVNode("", true)
|
|
136
|
-
], 4)) : createCommentVNode("", true)
|
|
137
|
-
]);
|
|
138
|
-
}
|
|
139
|
-
const NutProgress = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
118
|
+
}));
|
|
119
|
+
withInstall(_sfc_main);
|
|
140
120
|
export {
|
|
141
|
-
|
|
121
|
+
_sfc_main as Progress,
|
|
122
|
+
_sfc_main as default
|
|
142
123
|
};
|
|
@@ -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-DQf3CENX.js";
|
|
22
|
+
import { j as getScrollTopRoot } from "../util-DnfK0Qan.js";
|
|
23
|
+
import { u as useTouch } from "../index-I8tfW3Kf.js";
|
|
24
|
+
import { p as pxCheck } from "../pxCheck-DN6FYV6q.js";
|
|
25
|
+
import { u as useScrollParent } from "../index-BvmDLUYP.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-CFigyH92.js";
|
|
28
|
+
import { _ as _export_sfc } from "../_plugin-vue_export-helper-1tPrXgE0.js";
|
|
29
29
|
const { create } = createComponent("pull-refresh");
|
|
30
30
|
const cN = "NutPullRefresh";
|
|
31
31
|
const _sfc_main = create({
|