@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
|
@@ -18,12 +18,12 @@ var __spreadValues = (a, b) => {
|
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
20
|
import { toRef, 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 { u as useFormDisabled } from "../common-
|
|
26
|
-
import { _ as _export_sfc } from "../_plugin-vue_export-helper-
|
|
21
|
+
import { c as createComponent } from "../component-DQf3CENX.js";
|
|
22
|
+
import { a as isArray } from "../util-DnfK0Qan.js";
|
|
23
|
+
import { u as useTouch } from "../index-I8tfW3Kf.js";
|
|
24
|
+
import { u as useRect } from "../index-B1qsj2XR.js";
|
|
25
|
+
import { u as useFormDisabled } from "../common-DRG0ue26.js";
|
|
26
|
+
import { _ as _export_sfc } from "../_plugin-vue_export-helper-1tPrXgE0.js";
|
|
27
27
|
const { componentName, create } = createComponent("range");
|
|
28
28
|
const _sfc_main = create({
|
|
29
29
|
props: {
|
|
@@ -17,67 +17,45 @@ var __spreadValues = (a, b) => {
|
|
|
17
17
|
return a;
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
|
-
import { toRef, ref, openBlock, createElementBlock, Fragment, renderList, normalizeStyle, createElementVNode, createBlock, resolveDynamicComponent, normalizeClass, createCommentVNode } from "vue";
|
|
20
|
+
import { defineComponent, toRef, ref, openBlock, createElementBlock, Fragment, renderList, unref, normalizeStyle, createElementVNode, createBlock, resolveDynamicComponent, normalizeClass, createCommentVNode } from "vue";
|
|
21
21
|
import { StarFillN } from "@nutui/icons-vue";
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import { u as
|
|
26
|
-
import {
|
|
27
|
-
|
|
28
|
-
const
|
|
29
|
-
const
|
|
22
|
+
import { r as renderIcon } from "../renderIcon-BfOvhG7i.js";
|
|
23
|
+
import { p as pxCheck } from "../pxCheck-DN6FYV6q.js";
|
|
24
|
+
import { u as useTouch } from "../index-I8tfW3Kf.js";
|
|
25
|
+
import { u as useFormDisabled } from "../common-DRG0ue26.js";
|
|
26
|
+
import { w as withInstall } from "../with-install-Ch3FF0uS.js";
|
|
27
|
+
const _hoisted_1 = ["id"];
|
|
28
|
+
const _hoisted_2 = { class: "nut-rate-item__icon--full" };
|
|
29
|
+
const _hoisted_3 = {
|
|
30
|
+
key: 0,
|
|
31
|
+
class: "nut-rate-item__icon--half"
|
|
32
|
+
};
|
|
33
|
+
const _hoisted_4 = {
|
|
34
|
+
key: 1,
|
|
35
|
+
class: "nut-rate-item__icon--half"
|
|
36
|
+
};
|
|
37
|
+
const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({}, {
|
|
38
|
+
name: "NutRate"
|
|
39
|
+
}), {
|
|
40
|
+
__name: "rate",
|
|
30
41
|
props: {
|
|
31
|
-
count: {
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
},
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
},
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
return StarFillN;
|
|
43
|
-
}
|
|
44
|
-
},
|
|
45
|
-
size: {
|
|
46
|
-
type: [String, Number],
|
|
47
|
-
default: void 0
|
|
48
|
-
},
|
|
49
|
-
activeColor: {
|
|
50
|
-
type: String,
|
|
51
|
-
default: ""
|
|
52
|
-
},
|
|
53
|
-
voidColor: {
|
|
54
|
-
type: String,
|
|
55
|
-
default: ""
|
|
56
|
-
},
|
|
57
|
-
readonly: {
|
|
58
|
-
type: Boolean,
|
|
59
|
-
default: false
|
|
60
|
-
},
|
|
61
|
-
disabled: {
|
|
62
|
-
type: Boolean,
|
|
63
|
-
default: false
|
|
64
|
-
},
|
|
65
|
-
allowHalf: {
|
|
66
|
-
type: Boolean,
|
|
67
|
-
default: false
|
|
68
|
-
},
|
|
69
|
-
touchable: {
|
|
70
|
-
type: Boolean,
|
|
71
|
-
default: true
|
|
72
|
-
},
|
|
73
|
-
spacing: {
|
|
74
|
-
type: [String, Number],
|
|
75
|
-
default: void 0
|
|
76
|
-
}
|
|
42
|
+
count: { default: 5 },
|
|
43
|
+
modelValue: { default: 0 },
|
|
44
|
+
customIcon: { default: () => StarFillN },
|
|
45
|
+
size: {},
|
|
46
|
+
activeColor: { default: "" },
|
|
47
|
+
voidColor: { default: "" },
|
|
48
|
+
readonly: { type: Boolean, default: false },
|
|
49
|
+
disabled: { type: Boolean, default: false },
|
|
50
|
+
allowHalf: { type: Boolean, default: false },
|
|
51
|
+
touchable: { type: Boolean, default: true },
|
|
52
|
+
spacing: {}
|
|
77
53
|
},
|
|
78
|
-
components: { StarFillN },
|
|
79
54
|
emits: ["update:modelValue", "change"],
|
|
80
|
-
setup(
|
|
55
|
+
setup(__props, { emit: __emit }) {
|
|
56
|
+
const props = __props;
|
|
57
|
+
const emit = __emit;
|
|
58
|
+
const refRandomId = Math.random().toString(36).slice(-8);
|
|
81
59
|
const disabled = useFormDisabled(toRef(props, "disabled"));
|
|
82
60
|
const rateRefs = ref([]);
|
|
83
61
|
const updateVal = (value) => {
|
|
@@ -114,97 +92,77 @@ const _sfc_main = create({
|
|
|
114
92
|
return v;
|
|
115
93
|
};
|
|
116
94
|
const touch = useTouch();
|
|
117
|
-
const
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
if (
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
updateVal(getScoreByPosition(touch.moveX.value, rateRefs, props.allowHalf));
|
|
131
|
-
}
|
|
95
|
+
const onTouchStart = (event) => {
|
|
96
|
+
if (!props.touchable || props.readonly)
|
|
97
|
+
return;
|
|
98
|
+
touch.start(event);
|
|
99
|
+
};
|
|
100
|
+
const onTouchMove = (event) => {
|
|
101
|
+
if (!props.touchable)
|
|
102
|
+
return;
|
|
103
|
+
touch.move(event);
|
|
104
|
+
if (touch.isHorizontal()) {
|
|
105
|
+
if (rateRefs.value) {
|
|
106
|
+
event.preventDefault();
|
|
107
|
+
updateVal(getScoreByPosition(touch.moveX.value, rateRefs, props.allowHalf));
|
|
132
108
|
}
|
|
133
109
|
}
|
|
134
110
|
};
|
|
135
|
-
|
|
136
|
-
return __spreadProps(__spreadValues({}, touchMethods), {
|
|
137
|
-
onClick,
|
|
138
|
-
pxCheck,
|
|
139
|
-
rateRefs,
|
|
140
|
-
refRandomId,
|
|
141
|
-
renderIcon,
|
|
142
|
-
slots,
|
|
143
|
-
disabled
|
|
144
|
-
});
|
|
145
|
-
}
|
|
146
|
-
});
|
|
147
|
-
const _hoisted_1 = ["id"];
|
|
148
|
-
const _hoisted_2 = { class: "nut-rate-item__icon--full" };
|
|
149
|
-
const _hoisted_3 = {
|
|
150
|
-
key: 0,
|
|
151
|
-
class: "nut-rate-item__icon--half"
|
|
152
|
-
};
|
|
153
|
-
const _hoisted_4 = {
|
|
154
|
-
key: 1,
|
|
155
|
-
class: "nut-rate-item__icon--half"
|
|
156
|
-
};
|
|
157
|
-
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
158
|
-
return openBlock(), createElementBlock("view", {
|
|
159
|
-
class: "nut-rate",
|
|
160
|
-
onTouchstart: _cache[0] || (_cache[0] = (...args) => _ctx.onTouchStart && _ctx.onTouchStart(...args)),
|
|
161
|
-
onTouchmove: _cache[1] || (_cache[1] = (...args) => _ctx.onTouchMove && _ctx.onTouchMove(...args))
|
|
162
|
-
}, [
|
|
163
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(Number(_ctx.count), (n) => {
|
|
111
|
+
return (_ctx, _cache) => {
|
|
164
112
|
return openBlock(), createElementBlock("view", {
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
ref: "rateRefs",
|
|
169
|
-
class: "nut-rate-item",
|
|
170
|
-
style: normalizeStyle(n < Number(_ctx.count) ? { marginRight: _ctx.pxCheck(_ctx.spacing) } : {})
|
|
113
|
+
class: "nut-rate",
|
|
114
|
+
onTouchstart: onTouchStart,
|
|
115
|
+
onTouchmove: onTouchMove
|
|
171
116
|
}, [
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
}
|
|
207
|
-
|
|
117
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(Number(_ctx.count), (n) => {
|
|
118
|
+
return openBlock(), createElementBlock("view", {
|
|
119
|
+
id: "rateRefs-" + unref(refRandomId) + n,
|
|
120
|
+
key: n,
|
|
121
|
+
ref_for: true,
|
|
122
|
+
ref_key: "rateRefs",
|
|
123
|
+
ref: rateRefs,
|
|
124
|
+
class: "nut-rate-item",
|
|
125
|
+
style: normalizeStyle(n < Number(_ctx.count) ? { marginRight: unref(pxCheck)(_ctx.spacing) } : {})
|
|
126
|
+
}, [
|
|
127
|
+
createElementVNode("view", _hoisted_2, [
|
|
128
|
+
(openBlock(), createBlock(resolveDynamicComponent(
|
|
129
|
+
unref(renderIcon)(_ctx.customIcon, {
|
|
130
|
+
width: _ctx.size,
|
|
131
|
+
height: _ctx.size,
|
|
132
|
+
size: _ctx.size,
|
|
133
|
+
color: n <= Number(_ctx.modelValue) ? _ctx.activeColor : _ctx.voidColor
|
|
134
|
+
})
|
|
135
|
+
), {
|
|
136
|
+
class: normalizeClass(["nut-rate-item__icon", { "nut-rate-item__icon--disabled": unref(disabled) || n > Number(_ctx.modelValue) }]),
|
|
137
|
+
onClick: ($event) => onClick(1, n)
|
|
138
|
+
}, null, 8, ["class", "onClick"]))
|
|
139
|
+
]),
|
|
140
|
+
_ctx.allowHalf && Number(_ctx.modelValue) + 1 > n ? (openBlock(), createElementBlock("view", _hoisted_3, [
|
|
141
|
+
(openBlock(), createBlock(resolveDynamicComponent(
|
|
142
|
+
unref(renderIcon)(_ctx.customIcon, {
|
|
143
|
+
width: _ctx.size,
|
|
144
|
+
height: _ctx.size,
|
|
145
|
+
size: _ctx.size,
|
|
146
|
+
color: n <= Number(_ctx.modelValue) + 1 ? _ctx.activeColor : _ctx.voidColor
|
|
147
|
+
})
|
|
148
|
+
), {
|
|
149
|
+
class: "nut-rate-item__icon",
|
|
150
|
+
onClick: ($event) => onClick(2, n)
|
|
151
|
+
}, null, 8, ["onClick"]))
|
|
152
|
+
])) : _ctx.allowHalf && Number(_ctx.modelValue) + 1 < n ? (openBlock(), createElementBlock("view", _hoisted_4, [
|
|
153
|
+
(openBlock(), createBlock(resolveDynamicComponent(unref(renderIcon)(_ctx.customIcon, { width: _ctx.size, height: _ctx.size, size: _ctx.size, color: _ctx.voidColor })), {
|
|
154
|
+
class: "nut-rate-item__icon nut-rate-item__icon--disabled",
|
|
155
|
+
onClick: ($event) => onClick(2, n)
|
|
156
|
+
}, null, 8, ["onClick"]))
|
|
157
|
+
])) : createCommentVNode("", true)
|
|
158
|
+
], 12, _hoisted_1);
|
|
159
|
+
}), 128))
|
|
160
|
+
], 32);
|
|
161
|
+
};
|
|
162
|
+
}
|
|
163
|
+
}));
|
|
164
|
+
withInstall(_sfc_main);
|
|
208
165
|
export {
|
|
209
|
-
|
|
166
|
+
_sfc_main as Rate,
|
|
167
|
+
_sfc_main as default
|
|
210
168
|
};
|
package/dist/packages/row/Row.js
CHANGED
|
@@ -18,8 +18,8 @@ var __spreadValues = (a, b) => {
|
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
20
|
import { defineComponent, provide, computed, openBlock, createElementBlock, normalizeClass, renderSlot } from "vue";
|
|
21
|
-
import { L as LAYOUT_KEY } from "../types-
|
|
22
|
-
import { w as withInstall } from "../with-install-
|
|
21
|
+
import { L as LAYOUT_KEY } from "../types-BKDaJvHp.js";
|
|
22
|
+
import { w as withInstall } from "../with-install-Ch3FF0uS.js";
|
|
23
23
|
const prefixCls = "nut-row";
|
|
24
24
|
const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({}, {
|
|
25
25
|
name: "NutRow"
|
|
@@ -18,12 +18,12 @@ var __spreadValues = (a, b) => {
|
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
20
|
import { toRef, 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-DQf3CENX.js";
|
|
22
|
+
import { r as renderIcon } from "../renderIcon-BfOvhG7i.js";
|
|
23
23
|
import { CircleClose } from "@nutui/icons-vue";
|
|
24
|
-
import { u as useLocale } from "../index-
|
|
25
|
-
import { u as useFormDisabled } from "../common-
|
|
26
|
-
import { _ as _export_sfc } from "../_plugin-vue_export-helper-
|
|
24
|
+
import { u as useLocale } from "../index-CFigyH92.js";
|
|
25
|
+
import { u as useFormDisabled } from "../common-DRG0ue26.js";
|
|
26
|
+
import { _ as _export_sfc } from "../_plugin-vue_export-helper-1tPrXgE0.js";
|
|
27
27
|
const { create } = createComponent("searchbar");
|
|
28
28
|
const cN = "NutSearchbar";
|
|
29
29
|
const _sfc_main = create({
|
|
@@ -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,59 +1,59 @@
|
|
|
1
|
-
import { c as createComponent } from "../component-
|
|
1
|
+
import { c as createComponent } from "../component-DQf3CENX.js";
|
|
2
2
|
import { toRefs, computed, resolveComponent, openBlock, createElementBlock, renderSlot, createCommentVNode, createElementVNode, createBlock, normalizeClass, normalizeStyle, Fragment, renderList } from "vue";
|
|
3
|
-
import { N as NutAvatar } from "../index
|
|
4
|
-
import { _ as _export_sfc } from "../_plugin-vue_export-helper-
|
|
3
|
+
import { N as NutAvatar } from "../index-Do4_KY74.js";
|
|
4
|
+
import { _ as _export_sfc } from "../_plugin-vue_export-helper-1tPrXgE0.js";
|
|
5
5
|
const { create } = createComponent("skeleton");
|
|
6
6
|
const _sfc_main = create({
|
|
7
7
|
components: {
|
|
8
8
|
NutAvatar
|
|
9
9
|
},
|
|
10
10
|
props: {
|
|
11
|
-
|
|
11
|
+
// 每行宽度
|
|
12
12
|
width: {
|
|
13
13
|
type: String,
|
|
14
14
|
default: "100px"
|
|
15
15
|
},
|
|
16
|
-
|
|
16
|
+
// 每行高度
|
|
17
17
|
height: {
|
|
18
18
|
type: String,
|
|
19
19
|
default: "15px"
|
|
20
20
|
},
|
|
21
|
-
|
|
21
|
+
// 是否显示动画
|
|
22
22
|
animated: {
|
|
23
23
|
type: Boolean,
|
|
24
24
|
default: false
|
|
25
25
|
},
|
|
26
|
-
|
|
26
|
+
// 头像
|
|
27
27
|
avatar: {
|
|
28
28
|
type: Boolean,
|
|
29
29
|
default: false
|
|
30
30
|
},
|
|
31
|
-
|
|
31
|
+
// 头像形状:正方形/圆形
|
|
32
32
|
avatarShape: {
|
|
33
33
|
type: String,
|
|
34
34
|
default: "round"
|
|
35
35
|
},
|
|
36
|
-
|
|
36
|
+
// 头像大小
|
|
37
37
|
avatarSize: {
|
|
38
38
|
type: String,
|
|
39
39
|
default: "50px"
|
|
40
40
|
},
|
|
41
|
-
|
|
41
|
+
// 是否显示骨架屏
|
|
42
42
|
loading: {
|
|
43
43
|
type: Boolean,
|
|
44
44
|
default: true
|
|
45
45
|
},
|
|
46
|
-
|
|
46
|
+
// 标题/段落 圆角风格
|
|
47
47
|
round: {
|
|
48
48
|
type: Boolean,
|
|
49
49
|
default: false
|
|
50
50
|
},
|
|
51
|
-
|
|
51
|
+
// 显示段落行数
|
|
52
52
|
row: {
|
|
53
53
|
type: String,
|
|
54
54
|
default: "1"
|
|
55
55
|
},
|
|
56
|
-
|
|
56
|
+
// 是否显示段落标题
|
|
57
57
|
title: {
|
|
58
58
|
type: Boolean,
|
|
59
59
|
default: true
|
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-
|
|
6
|
-
import
|
|
7
|
-
import { N as NutPopup } from "../index-
|
|
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
|
+
import { InputNumber as _sfc_main$6 } from "../inputnumber/InputNumber.js";
|
|
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({
|
|
@@ -144,7 +144,7 @@ const _sfc_main$2 = create$2({
|
|
|
144
144
|
},
|
|
145
145
|
emits: ["click", "changeSku", "changeStepper", "clickBtnOptions", "overLimit", "reduce", "add"],
|
|
146
146
|
components: {
|
|
147
|
-
NutInputNumber
|
|
147
|
+
NutInputNumber: _sfc_main$6
|
|
148
148
|
},
|
|
149
149
|
setup(props, { emit }) {
|
|
150
150
|
const goodsCount = ref(props.stepperMin);
|
|
@@ -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: {
|