@nutui/nutui 4.0.0 → 4.0.1-2.beta-1
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 +226 -0
- package/README.md +34 -65
- package/dist/nutui.es.js +10 -17
- package/dist/nutui.js +16202 -0
- package/dist/nutui.umd.js +1 -7
- package/dist/packages/_es/ActionSheet.js +79 -94
- package/dist/packages/_es/Address.js +260 -345
- package/dist/packages/_es/AddressList.js +269 -354
- package/dist/packages/_es/Animate.js +46 -38
- package/dist/packages/_es/Audio.js +128 -180
- package/dist/packages/_es/AudioOperate.js +60 -52
- package/dist/packages/_es/Avatar.js +67 -75
- package/dist/packages/_es/AvatarGroup.js +23 -31
- package/dist/packages/_es/Backtop.js +59 -99
- package/dist/packages/_es/Badge.js +39 -46
- package/dist/packages/_es/Barrage.js +68 -145
- package/dist/packages/_es/Button.js +47 -66
- package/dist/packages/_es/Calendar.js +135 -152
- package/dist/packages/_es/CalendarItem.js +6 -6
- package/dist/packages/_es/Card.js +42 -56
- package/dist/packages/_es/Cascader.js +323 -433
- package/dist/packages/_es/Category.js +29 -39
- package/dist/packages/_es/CategoryPane.js +57 -83
- package/dist/packages/_es/Cell.js +56 -71
- package/dist/packages/_es/CellGroup.js +19 -27
- package/dist/packages/_es/Checkbox.js +109 -138
- package/dist/packages/_es/CheckboxGroup.js +38 -61
- package/dist/packages/_es/CircleProgress.js +67 -96
- package/dist/packages/_es/Col.js +23 -31
- package/dist/packages/_es/Collapse.js +37 -67
- package/dist/packages/_es/CollapseItem.js +91 -184
- package/dist/packages/_es/Comment.js +207 -279
- package/dist/packages/_es/ConfigProvider.js +38 -56
- package/dist/packages/_es/Countdown.js +100 -194
- package/dist/packages/_es/Countup.js +232 -428
- package/dist/packages/_es/DatePicker.js +169 -245
- package/dist/packages/_es/Dialog.js +163 -188
- package/dist/packages/_es/Divider.js +42 -40
- package/dist/packages/_es/Drag.js +70 -153
- package/dist/packages/_es/Ecard.js +64 -104
- package/dist/packages/_es/Elevator.js +144 -201
- package/dist/packages/_es/Ellipsis.js +95 -159
- package/dist/packages/_es/Empty.js +23 -39
- package/dist/packages/_es/FixedNav.js +93 -116
- package/dist/packages/_es/Form.js +108 -164
- package/dist/packages/_es/FormItem.js +48 -61
- package/dist/packages/_es/Grid.js +5 -6
- package/dist/packages/_es/GridItem.js +58 -84
- package/dist/packages/_es/Image.js +98 -88
- package/dist/packages/_es/ImagePreview.js +262 -392
- package/dist/packages/_es/Indicator.js +30 -34
- package/dist/packages/_es/InfiniteLoading.js +83 -117
- package/dist/packages/_es/Input.js +176 -223
- package/dist/packages/_es/InputNumber.js +81 -117
- package/dist/packages/_es/Interceptor-6e26b757.js +18 -0
- package/dist/packages/_es/Invoice.js +105 -113
- package/dist/packages/_es/Layout.js +3 -4
- package/dist/packages/_es/List.js +147 -89
- package/dist/packages/_es/Menu.js +96 -152
- package/dist/packages/_es/MenuItem.js +117 -153
- package/dist/packages/_es/Navbar.js +103 -119
- package/dist/packages/_es/Noticebar.js +207 -273
- package/dist/packages/_es/Notify.js +110 -147
- package/dist/packages/_es/NumberKeyboard.js +127 -202
- package/dist/packages/_es/Overlay.js +53 -66
- package/dist/packages/_es/Pagination.js +70 -100
- package/dist/packages/_es/Picker.js +276 -425
- package/dist/packages/_es/Popover.js +122 -225
- package/dist/packages/_es/Popup.js +4 -4
- package/dist/packages/_es/Price.js +47 -80
- package/dist/packages/_es/Progress.js +63 -79
- package/dist/packages/_es/PullRefresh.js +96 -157
- package/dist/packages/_es/Radio.js +4 -4
- package/dist/packages/_es/RadioGroup.js +3 -3
- package/dist/packages/_es/Range.js +205 -329
- package/dist/packages/_es/Rate.js +93 -122
- package/dist/packages/_es/Row.js +21 -27
- package/dist/packages/_es/Searchbar.js +130 -160
- package/dist/packages/_es/ShortPassword.js +69 -93
- package/dist/packages/_es/SideNavbar.js +49 -59
- package/dist/packages/_es/SideNavbarItem.js +22 -32
- package/dist/packages/_es/Signature.js +83 -128
- package/dist/packages/_es/Skeleton.js +110 -130
- package/dist/packages/_es/Sku.js +251 -326
- package/dist/packages/_es/Step.js +60 -69
- package/dist/packages/_es/Steps.js +26 -31
- package/dist/packages/_es/Sticky.js +4 -4
- package/dist/packages/_es/SubSideNavbar.js +52 -56
- package/dist/packages/_es/Swipe.js +84 -137
- package/dist/packages/_es/Swiper.js +175 -310
- package/dist/packages/_es/SwiperItem.js +28 -44
- package/dist/packages/_es/Switch.js +55 -67
- package/dist/packages/_es/TabPane.js +32 -20
- package/dist/packages/_es/Tabbar.js +41 -52
- package/dist/packages/_es/TabbarItem.js +61 -81
- package/dist/packages/_es/Table.js +110 -148
- package/dist/packages/_es/Tabs.js +284 -205
- package/dist/packages/_es/Tag.js +44 -61
- package/dist/packages/_es/Textarea.js +80 -124
- package/dist/packages/_es/TimeDetail.js +49 -57
- package/dist/packages/_es/TimePannel.js +35 -31
- package/dist/packages/_es/TimeSelect.js +47 -68
- package/dist/packages/_es/Toast.js +150 -203
- package/dist/packages/_es/Tour.js +139 -175
- package/dist/packages/_es/TrendArrow.js +57 -58
- package/dist/packages/_es/Uploader.js +235 -359
- package/dist/packages/_es/Video.js +191 -298
- package/dist/packages/_es/Watermark.js +84 -98
- package/dist/packages/_es/_plugin-vue_export-helper-dad06003.js +9 -0
- package/dist/packages/_es/common-d218746f.js +116 -0
- package/dist/packages/_es/component-234624bc.js +89 -0
- package/dist/packages/_es/index-14dfadc4.js +561 -0
- package/dist/packages/_es/index-192a3ef6.js +29 -0
- package/dist/packages/_es/index-360c5092.js +210 -0
- package/dist/packages/_es/index-496e6e05.js +24 -0
- package/dist/packages/_es/index-50eed3d9.js +7 -0
- package/dist/packages/_es/index-53ec2d4d.js +34 -0
- package/dist/packages/_es/index-fadb0974.js +8 -0
- package/dist/packages/_es/index.vue_vue_type_script_lang-1139b29a.js +43 -0
- package/dist/packages/_es/index.vue_vue_type_script_lang-43b774dd.js +77 -0
- package/dist/packages/_es/index.vue_vue_type_script_lang-f44c159d.js +110 -0
- package/dist/packages/_es/mountComponent-6d4ff200.js +23 -0
- package/dist/packages/_es/pxCheck-38173291.js +4 -0
- package/dist/packages/_es/raf-a74f1a06.js +16 -0
- package/dist/packages/_es/renderIcon-47498b32.js +5 -0
- package/dist/packages/actionsheet/index.scss +2 -0
- package/dist/packages/actionsheet/style.mjs +0 -2
- package/dist/packages/address/index.scss +5 -2
- package/dist/packages/address/style.mjs +0 -3
- package/dist/packages/addresslist/index.scss +3 -0
- package/dist/packages/addresslist/style.mjs +0 -2
- package/dist/packages/audio/index.scss +2 -0
- package/dist/packages/audio/style.mjs +0 -1
- package/dist/packages/audiooperate/index.scss +2 -0
- package/dist/packages/audiooperate/style.mjs +0 -1
- package/dist/packages/badge/index.scss +3 -0
- package/dist/packages/button/index.scss +1 -1
- package/dist/packages/calendar/index.scss +3 -0
- package/dist/packages/calendar/style.mjs +0 -3
- package/dist/packages/card/index.scss +3 -0
- package/dist/packages/card/style.mjs +0 -2
- package/dist/packages/cascader/index.scss +4 -0
- package/dist/packages/cascader/style.mjs +0 -5
- package/dist/packages/cellgroup/index.scss +1 -1
- package/dist/packages/checkbox/index.scss +41 -0
- package/dist/packages/col/index.scss +2 -2
- package/dist/packages/comment/index.scss +2 -0
- package/dist/packages/comment/style.mjs +0 -1
- package/dist/packages/datepicker/index.scss +1 -2
- package/dist/packages/datepicker/style.mjs +0 -3
- package/dist/packages/dialog/index.scss +11 -0
- package/dist/packages/dialog/style.mjs +0 -3
- package/dist/packages/ecard/index.scss +2 -0
- package/dist/packages/ecard/style.mjs +0 -1
- package/dist/packages/fixednav/index.scss +2 -0
- package/dist/packages/fixednav/style.mjs +0 -1
- package/dist/packages/form/index.scss +1 -2
- package/dist/packages/form/style.mjs +0 -1
- package/dist/packages/formitem/index.scss +3 -0
- package/dist/packages/formitem/style.mjs +0 -1
- package/dist/packages/imagepreview/index.scss +5 -5
- package/dist/packages/imagepreview/style.mjs +0 -5
- package/dist/packages/input/index.scss +13 -13
- package/dist/packages/invoice/index.scss +6 -0
- package/dist/packages/invoice/style.mjs +0 -7
- package/dist/packages/list/index.scss +8 -8
- package/dist/packages/menuitem/index.scss +9 -10
- package/dist/packages/menuitem/style.mjs +0 -2
- package/dist/packages/navbar/index.scss +0 -1
- package/dist/packages/noticebar/index.scss +12 -2
- package/dist/packages/notify/index.scss +2 -0
- package/dist/packages/notify/style.mjs +0 -2
- package/dist/packages/numberkeyboard/index.scss +2 -0
- package/dist/packages/numberkeyboard/style.mjs +0 -2
- package/dist/packages/picker/index.scss +4 -9
- package/dist/packages/picker/style.mjs +0 -2
- package/dist/packages/popover/index.scss +2 -0
- package/dist/packages/popover/style.mjs +0 -2
- package/dist/packages/popup/index.scss +2 -0
- package/dist/packages/popup/style.mjs +0 -1
- package/dist/packages/price/index.scss +5 -10
- package/dist/packages/rate/index.scss +6 -9
- package/dist/packages/searchbar/index.scss +4 -0
- package/dist/packages/shortpassword/index.scss +18 -0
- package/dist/packages/shortpassword/style.mjs +0 -2
- package/dist/packages/signature/index.scss +2 -0
- package/dist/packages/signature/style.mjs +0 -1
- package/dist/packages/skeleton/index.scss +2 -0
- package/dist/packages/skeleton/style.mjs +0 -1
- package/dist/packages/sku/index.scss +4 -0
- package/dist/packages/sku/style.mjs +0 -4
- package/dist/packages/tabbaritem/index.scss +2 -0
- package/dist/packages/tabbaritem/style.mjs +0 -1
- package/dist/packages/tabs/index.scss +36 -2
- package/dist/packages/tabs/style.mjs +0 -1
- package/dist/packages/textarea/index.scss +2 -0
- package/dist/packages/timeselect/index.scss +2 -0
- package/dist/packages/timeselect/style.mjs +0 -2
- package/dist/packages/tour/index.scss +2 -0
- package/dist/packages/tour/style.mjs +0 -3
- package/dist/packages/uploader/index.scss +10 -2
- package/dist/packages/uploader/style.mjs +0 -2
- package/dist/resolver/index.d.ts +6 -0
- package/dist/resolver/index.js +1 -0
- package/dist/resolver/index.mjs +24 -0
- package/dist/resolver/package.json +20 -0
- package/dist/smartips/web-types.json +114 -15
- package/dist/style.css +1 -1
- package/dist/styles/themes/default.scss +155 -52
- package/dist/styles/themes/jdb.scss +155 -52
- package/dist/styles/themes/jddkh.scss +155 -52
- package/dist/styles/themes/jdt.scss +155 -52
- package/dist/styles/variables-jdb.scss +9 -1
- package/dist/styles/variables-jddkh.scss +9 -1
- package/dist/styles/variables-jdt.scss +9 -1
- package/dist/styles/variables.scss +8 -0
- package/dist/types/__VUE/address/index.vue.d.ts +2 -1
- package/dist/types/__VUE/addresslist/components/GeneralShell.vue.d.ts +1 -1
- package/dist/types/__VUE/addresslist/components/ItemContents.vue.d.ts +1 -1
- package/dist/types/__VUE/addresslist/index.vue.d.ts +1 -1
- package/dist/types/__VUE/animate/index.vue.d.ts +6 -0
- package/dist/types/__VUE/audiooperate/index.vue.d.ts +4 -4
- package/dist/types/__VUE/badge/index.vue.d.ts +9 -0
- package/dist/types/__VUE/button/type.d.ts +1 -0
- package/dist/types/__VUE/calendaritem/type.d.ts +1 -0
- package/dist/types/__VUE/collapse/index.vue.d.ts +31 -5
- package/dist/types/__VUE/collapseitem/index.vue.d.ts +117 -11
- package/dist/types/__VUE/configprovider/index.vue.d.ts +2 -2
- package/dist/types/__VUE/datepicker/index.vue.d.ts +1 -1
- package/dist/types/__VUE/dialog/index.d.ts +1 -0
- package/dist/types/__VUE/dialog/index.vue.d.ts +1 -0
- package/dist/types/__VUE/grid/index.vue.d.ts +1 -1
- package/dist/types/__VUE/image/index.vue.d.ts +14 -3
- package/dist/types/__VUE/imagepreview/imagePreviewItem.vue.d.ts +9 -0
- package/dist/types/__VUE/imagepreview/index.vue.d.ts +1 -1
- package/dist/types/__VUE/input/index.vue.d.ts +27 -2
- package/dist/types/__VUE/list/index.vue.d.ts +42 -13
- package/dist/types/__VUE/list/type.d.ts +13 -0
- package/dist/types/__VUE/menu/index.vue.d.ts +0 -2
- package/dist/types/__VUE/menuitem/index.vue.d.ts +9 -17
- package/dist/types/__VUE/navbar/index.vue.d.ts +1 -1
- package/dist/types/__VUE/noticebar/index.vue.d.ts +5 -2
- package/dist/types/__VUE/picker/common.d.ts +2 -0
- package/dist/types/__VUE/picker/usePicker.d.ts +1 -1
- package/dist/types/__VUE/price/index.vue.d.ts +9 -0
- package/dist/types/__VUE/rate/index.vue.d.ts +110 -3
- package/dist/types/__VUE/row/index.vue.d.ts +1 -1
- package/dist/types/__VUE/searchbar/index.vue.d.ts +121 -5
- package/dist/types/__VUE/skeleton/index.vue.d.ts +2 -2
- package/dist/types/__VUE/swiper/index.vue.d.ts +9 -2
- package/dist/types/__VUE/switch/index.vue.d.ts +1 -0
- package/dist/types/__VUE/table/common.d.ts +55 -2
- package/dist/types/__VUE/tabpane/index.vue.d.ts +1 -4
- package/dist/types/__VUE/tabs/hooks.d.ts +12 -0
- package/dist/types/__VUE/tabs/index.vue.d.ts +35 -5
- package/dist/types/__VUE/tabs/types.d.ts +12 -0
- package/dist/types/__VUE/timeselect/index.vue.d.ts +1 -1
- package/dist/types/__VUE/toast/index.vue.d.ts +11 -4
- package/dist/types/__VUE/uploader/type.d.ts +2 -1
- package/dist/types/__VUE/watermark/index.vue.d.ts +1 -1
- package/dist/types/index.d.ts +1 -2
- package/dist/types/resolver/index.d.ts +6 -0
- package/dist/types/utils/date.d.ts +4 -0
- package/dist/types/utils/useTaroRect/index.d.ts +1 -1
- package/dist/types/utils/util.d.ts +1 -1
- package/package.json +13 -6
- package/dist/packages/_es/_plugin-vue_export-helper-cc2b3d55.js +0 -10
- package/dist/packages/_es/common-b9a5e726.js +0 -145
- package/dist/packages/_es/component-81a4c1d0.js +0 -145
- package/dist/packages/_es/index-29892cda.js +0 -33
- package/dist/packages/_es/index-2ae3ae87.js +0 -846
- package/dist/packages/_es/index-43c34ac6.js +0 -30
- package/dist/packages/_es/index-54d03fc1.js +0 -8
- package/dist/packages/_es/index-79c5dc33.js +0 -10
- package/dist/packages/_es/index-7a7385e4.js +0 -67
- package/dist/packages/_es/index-991c279f.js +0 -244
- package/dist/packages/_es/index.vue_vue_type_script_lang-22dfc112.js +0 -46
- package/dist/packages/_es/index.vue_vue_type_script_lang-442e4704.js +0 -98
- package/dist/packages/_es/index.vue_vue_type_script_lang-cc5c4086.js +0 -151
- package/dist/packages/_es/interceptor-956b24fc.js +0 -29
- package/dist/packages/_es/mountComponent-1ece4110.js +0 -39
- package/dist/packages/_es/pxCheck-c6b9f6b7.js +0 -6
- package/dist/packages/_es/raf-729dad54.js +0 -25
- package/dist/packages/_es/renderIcon-3d0fd47c.js +0 -9
- /package/dist/types/utils/{interceptor.d.ts → Interceptor.d.ts} +0 -0
|
@@ -1,18 +1,17 @@
|
|
|
1
|
-
import { computed, ref, resolveComponent, openBlock, createBlock, withCtx, createSlots, renderSlot, createCommentVNode } from "vue";
|
|
2
|
-
import { c as
|
|
3
|
-
import { C as
|
|
4
|
-
import { P as
|
|
5
|
-
import { u as
|
|
6
|
-
import { _ as
|
|
1
|
+
import { computed as p, ref as D, resolveComponent as c, openBlock as f, createBlock as u, withCtx as o, createSlots as k, renderSlot as n, createCommentVNode as S } from "vue";
|
|
2
|
+
import { c as B } from "./component-234624bc.js";
|
|
3
|
+
import { C as w, U as v } from "./index-14dfadc4.js";
|
|
4
|
+
import { P as T } from "./index-360c5092.js";
|
|
5
|
+
import { u as I } from "./index-fadb0974.js";
|
|
6
|
+
import { _ as $ } from "./_plugin-vue_export-helper-dad06003.js";
|
|
7
7
|
import "../locale/lang";
|
|
8
|
-
import "./raf-
|
|
8
|
+
import "./raf-a74f1a06.js";
|
|
9
9
|
import "./Overlay.js";
|
|
10
10
|
import "@nutui/icons-vue";
|
|
11
|
-
const { create } =
|
|
12
|
-
const _sfc_main = create({
|
|
11
|
+
const { create: g } = B("calendar"), P = g({
|
|
13
12
|
components: {
|
|
14
|
-
[
|
|
15
|
-
[
|
|
13
|
+
[w.name]: w,
|
|
14
|
+
[T.name]: T
|
|
16
15
|
},
|
|
17
16
|
props: {
|
|
18
17
|
type: {
|
|
@@ -21,31 +20,31 @@ const _sfc_main = create({
|
|
|
21
20
|
},
|
|
22
21
|
isAutoBackFill: {
|
|
23
22
|
type: Boolean,
|
|
24
|
-
default:
|
|
23
|
+
default: !1
|
|
25
24
|
},
|
|
26
25
|
toDateAnimation: {
|
|
27
26
|
type: Boolean,
|
|
28
|
-
default:
|
|
27
|
+
default: !0
|
|
29
28
|
},
|
|
30
29
|
poppable: {
|
|
31
30
|
type: Boolean,
|
|
32
|
-
default:
|
|
31
|
+
default: !0
|
|
33
32
|
},
|
|
34
33
|
showTitle: {
|
|
35
34
|
type: Boolean,
|
|
36
|
-
default:
|
|
35
|
+
default: !0
|
|
37
36
|
},
|
|
38
37
|
showSubTitle: {
|
|
39
38
|
type: Boolean,
|
|
40
|
-
default:
|
|
39
|
+
default: !0
|
|
41
40
|
},
|
|
42
41
|
visible: {
|
|
43
42
|
type: Boolean,
|
|
44
|
-
default:
|
|
43
|
+
default: !1
|
|
45
44
|
},
|
|
46
45
|
showToday: {
|
|
47
46
|
type: Boolean,
|
|
48
|
-
default:
|
|
47
|
+
default: !0
|
|
49
48
|
},
|
|
50
49
|
title: {
|
|
51
50
|
type: String,
|
|
@@ -68,207 +67,191 @@ const _sfc_main = create({
|
|
|
68
67
|
},
|
|
69
68
|
startDate: {
|
|
70
69
|
type: String,
|
|
71
|
-
default:
|
|
70
|
+
default: v.getDay(0)
|
|
72
71
|
},
|
|
73
72
|
endDate: {
|
|
74
73
|
type: String,
|
|
75
|
-
default:
|
|
74
|
+
default: v.getDay(365)
|
|
76
75
|
},
|
|
77
76
|
firstDayOfWeek: {
|
|
78
77
|
type: Number,
|
|
79
78
|
default: 0,
|
|
80
|
-
validator: (
|
|
79
|
+
validator: (e) => e >= 0 && e <= 6
|
|
81
80
|
}
|
|
82
81
|
},
|
|
83
82
|
emits: ["choose", "close", "update:visible", "select"],
|
|
84
|
-
setup(
|
|
85
|
-
const
|
|
86
|
-
|
|
83
|
+
setup(e, { emit: s, slots: l }) {
|
|
84
|
+
const y = p(() => l.btn), m = p(() => l["top-info"]), b = p(() => l.day), d = p(() => l["bottom-info"]), i = D(null);
|
|
85
|
+
I({
|
|
86
|
+
scrollToDate: (a) => {
|
|
87
|
+
var h;
|
|
88
|
+
(h = i.value) == null || h.scrollToDate(a);
|
|
89
|
+
},
|
|
90
|
+
initPosition: () => {
|
|
91
|
+
var a;
|
|
92
|
+
(a = i.value) == null || a.initPosition();
|
|
93
|
+
}
|
|
87
94
|
});
|
|
88
|
-
const
|
|
89
|
-
|
|
90
|
-
})
|
|
91
|
-
|
|
92
|
-
return slots.day;
|
|
93
|
-
});
|
|
94
|
-
const bottomInfo = computed(() => {
|
|
95
|
-
return slots["bottom-info"];
|
|
96
|
-
});
|
|
97
|
-
const calendarRef = ref(null);
|
|
98
|
-
const scrollToDate = (date) => {
|
|
99
|
-
var _a;
|
|
100
|
-
(_a = calendarRef.value) == null ? void 0 : _a.scrollToDate(date);
|
|
101
|
-
};
|
|
102
|
-
useExpose({
|
|
103
|
-
scrollToDate
|
|
104
|
-
});
|
|
105
|
-
const update = () => {
|
|
106
|
-
emit("update:visible", false);
|
|
107
|
-
};
|
|
108
|
-
const close = () => {
|
|
109
|
-
emit("close");
|
|
110
|
-
emit("update:visible", false);
|
|
111
|
-
};
|
|
112
|
-
const choose = (param) => {
|
|
113
|
-
close();
|
|
114
|
-
emit("choose", param);
|
|
115
|
-
};
|
|
116
|
-
const select = (param) => {
|
|
117
|
-
emit("select", param);
|
|
118
|
-
};
|
|
119
|
-
const closePopup = () => {
|
|
120
|
-
close();
|
|
95
|
+
const C = () => {
|
|
96
|
+
s("update:visible", !1);
|
|
97
|
+
}, r = () => {
|
|
98
|
+
s("close"), s("update:visible", !1);
|
|
121
99
|
};
|
|
122
100
|
return {
|
|
123
|
-
closePopup
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
101
|
+
closePopup: () => {
|
|
102
|
+
r();
|
|
103
|
+
},
|
|
104
|
+
update: C,
|
|
105
|
+
close: r,
|
|
106
|
+
choose: (a) => {
|
|
107
|
+
r(), s("choose", a);
|
|
108
|
+
},
|
|
109
|
+
select: (a) => {
|
|
110
|
+
s("select", a);
|
|
111
|
+
},
|
|
112
|
+
calendarRef: i,
|
|
113
|
+
showTopBtn: y,
|
|
114
|
+
topInfo: m,
|
|
115
|
+
dayInfo: b,
|
|
116
|
+
bottomInfo: d
|
|
133
117
|
};
|
|
134
118
|
}
|
|
135
119
|
});
|
|
136
|
-
function
|
|
137
|
-
const
|
|
138
|
-
|
|
139
|
-
return _ctx.poppable ? (openBlock(), createBlock(_component_nut_popup, {
|
|
120
|
+
function A(e, s, l, y, m, b) {
|
|
121
|
+
const d = c("nut-calendar-item"), i = c("nut-popup");
|
|
122
|
+
return e.poppable ? (f(), u(i, {
|
|
140
123
|
key: 0,
|
|
141
|
-
visible:
|
|
124
|
+
visible: e.visible,
|
|
142
125
|
position: "bottom",
|
|
143
126
|
round: "",
|
|
144
|
-
closeable:
|
|
145
|
-
onClickOverlay:
|
|
146
|
-
onClickCloseIcon:
|
|
147
|
-
"destroy-on-close":
|
|
127
|
+
closeable: !0,
|
|
128
|
+
onClickOverlay: e.closePopup,
|
|
129
|
+
onClickCloseIcon: e.closePopup,
|
|
130
|
+
"destroy-on-close": !0,
|
|
148
131
|
style: { height: "85vh" }
|
|
149
132
|
}, {
|
|
150
|
-
default:
|
|
151
|
-
|
|
133
|
+
default: o(() => [
|
|
134
|
+
e.visible ? (f(), u(d, {
|
|
152
135
|
key: 0,
|
|
153
136
|
props: "",
|
|
154
137
|
ref: "calendarRef",
|
|
155
|
-
type:
|
|
156
|
-
"is-auto-back-fill":
|
|
157
|
-
poppable:
|
|
158
|
-
title:
|
|
159
|
-
"confirm-text":
|
|
160
|
-
"start-text":
|
|
161
|
-
"end-text":
|
|
162
|
-
"default-value":
|
|
163
|
-
"start-date":
|
|
164
|
-
"end-date":
|
|
165
|
-
onUpdate:
|
|
166
|
-
onClose:
|
|
167
|
-
onChoose:
|
|
168
|
-
onSelect:
|
|
169
|
-
"show-today":
|
|
170
|
-
"show-title":
|
|
171
|
-
"show-sub-title":
|
|
172
|
-
"to-date-animation":
|
|
173
|
-
"first-day-of-week":
|
|
174
|
-
},
|
|
175
|
-
|
|
138
|
+
type: e.type,
|
|
139
|
+
"is-auto-back-fill": e.isAutoBackFill,
|
|
140
|
+
poppable: e.poppable,
|
|
141
|
+
title: e.title,
|
|
142
|
+
"confirm-text": e.confirmText,
|
|
143
|
+
"start-text": e.startText,
|
|
144
|
+
"end-text": e.endText,
|
|
145
|
+
"default-value": e.defaultValue,
|
|
146
|
+
"start-date": e.startDate,
|
|
147
|
+
"end-date": e.endDate,
|
|
148
|
+
onUpdate: e.update,
|
|
149
|
+
onClose: e.close,
|
|
150
|
+
onChoose: e.choose,
|
|
151
|
+
onSelect: e.select,
|
|
152
|
+
"show-today": e.showToday,
|
|
153
|
+
"show-title": e.showTitle,
|
|
154
|
+
"show-sub-title": e.showSubTitle,
|
|
155
|
+
"to-date-animation": e.toDateAnimation,
|
|
156
|
+
"first-day-of-week": e.firstDayOfWeek
|
|
157
|
+
}, k({ _: 2 }, [
|
|
158
|
+
e.showTopBtn ? {
|
|
176
159
|
name: "btn",
|
|
177
|
-
fn:
|
|
178
|
-
|
|
160
|
+
fn: o(() => [
|
|
161
|
+
n(e.$slots, "btn")
|
|
179
162
|
]),
|
|
180
163
|
key: "0"
|
|
181
164
|
} : void 0,
|
|
182
|
-
|
|
165
|
+
e.dayInfo ? {
|
|
183
166
|
name: "day",
|
|
184
|
-
fn:
|
|
185
|
-
|
|
186
|
-
date:
|
|
167
|
+
fn: o((t) => [
|
|
168
|
+
n(e.$slots, "day", {
|
|
169
|
+
date: t.date
|
|
187
170
|
})
|
|
188
171
|
]),
|
|
189
172
|
key: "1"
|
|
190
173
|
} : void 0,
|
|
191
|
-
|
|
174
|
+
e.topInfo ? {
|
|
192
175
|
name: "top-info",
|
|
193
|
-
fn:
|
|
194
|
-
|
|
195
|
-
date:
|
|
176
|
+
fn: o((t) => [
|
|
177
|
+
n(e.$slots, "top-info", {
|
|
178
|
+
date: t.date
|
|
196
179
|
})
|
|
197
180
|
]),
|
|
198
181
|
key: "2"
|
|
199
182
|
} : void 0,
|
|
200
|
-
|
|
183
|
+
e.bottomInfo ? {
|
|
201
184
|
name: "bottom-info",
|
|
202
|
-
fn:
|
|
203
|
-
|
|
204
|
-
date:
|
|
185
|
+
fn: o((t) => [
|
|
186
|
+
n(e.$slots, "bottom-info", {
|
|
187
|
+
date: t.date
|
|
205
188
|
})
|
|
206
189
|
]),
|
|
207
190
|
key: "3"
|
|
208
191
|
} : void 0
|
|
209
|
-
]), 1032, ["type", "is-auto-back-fill", "poppable", "title", "confirm-text", "start-text", "end-text", "default-value", "start-date", "end-date", "onUpdate", "onClose", "onChoose", "onSelect", "show-today", "show-title", "show-sub-title", "to-date-animation", "first-day-of-week"])) :
|
|
192
|
+
]), 1032, ["type", "is-auto-back-fill", "poppable", "title", "confirm-text", "start-text", "end-text", "default-value", "start-date", "end-date", "onUpdate", "onClose", "onChoose", "onSelect", "show-today", "show-title", "show-sub-title", "to-date-animation", "first-day-of-week"])) : S("", !0)
|
|
210
193
|
]),
|
|
211
194
|
_: 3
|
|
212
|
-
}, 8, ["visible", "onClickOverlay", "onClickCloseIcon"])) : (
|
|
195
|
+
}, 8, ["visible", "onClickOverlay", "onClickCloseIcon"])) : (f(), u(d, {
|
|
213
196
|
key: 1,
|
|
214
|
-
type:
|
|
215
|
-
"is-auto-back-fill":
|
|
216
|
-
poppable:
|
|
217
|
-
title:
|
|
218
|
-
"confirm-text":
|
|
219
|
-
"start-text":
|
|
220
|
-
"end-text":
|
|
221
|
-
"default-value":
|
|
222
|
-
"start-date":
|
|
223
|
-
"end-date":
|
|
224
|
-
onUpdate:
|
|
225
|
-
onClose:
|
|
226
|
-
onChoose:
|
|
227
|
-
onSelect:
|
|
228
|
-
"show-today":
|
|
229
|
-
"show-title":
|
|
230
|
-
"show-sub-title":
|
|
231
|
-
"to-date-animation":
|
|
232
|
-
"first-day-of-week":
|
|
197
|
+
type: e.type,
|
|
198
|
+
"is-auto-back-fill": e.isAutoBackFill,
|
|
199
|
+
poppable: e.poppable,
|
|
200
|
+
title: e.title,
|
|
201
|
+
"confirm-text": e.confirmText,
|
|
202
|
+
"start-text": e.startText,
|
|
203
|
+
"end-text": e.endText,
|
|
204
|
+
"default-value": e.defaultValue,
|
|
205
|
+
"start-date": e.startDate,
|
|
206
|
+
"end-date": e.endDate,
|
|
207
|
+
onUpdate: e.update,
|
|
208
|
+
onClose: e.close,
|
|
209
|
+
onChoose: e.choose,
|
|
210
|
+
onSelect: e.select,
|
|
211
|
+
"show-today": e.showToday,
|
|
212
|
+
"show-title": e.showTitle,
|
|
213
|
+
"show-sub-title": e.showSubTitle,
|
|
214
|
+
"to-date-animation": e.toDateAnimation,
|
|
215
|
+
"first-day-of-week": e.firstDayOfWeek,
|
|
233
216
|
ref: "calendarRef"
|
|
234
|
-
},
|
|
235
|
-
|
|
217
|
+
}, k({ _: 2 }, [
|
|
218
|
+
e.showTopBtn ? {
|
|
236
219
|
name: "btn",
|
|
237
|
-
fn:
|
|
238
|
-
|
|
220
|
+
fn: o(() => [
|
|
221
|
+
n(e.$slots, "btn")
|
|
239
222
|
]),
|
|
240
223
|
key: "0"
|
|
241
224
|
} : void 0,
|
|
242
|
-
|
|
225
|
+
e.dayInfo ? {
|
|
243
226
|
name: "day",
|
|
244
|
-
fn:
|
|
245
|
-
|
|
246
|
-
date:
|
|
227
|
+
fn: o((t) => [
|
|
228
|
+
n(e.$slots, "day", {
|
|
229
|
+
date: t.date
|
|
247
230
|
})
|
|
248
231
|
]),
|
|
249
232
|
key: "1"
|
|
250
233
|
} : void 0,
|
|
251
|
-
|
|
234
|
+
e.topInfo ? {
|
|
252
235
|
name: "top-info",
|
|
253
|
-
fn:
|
|
254
|
-
|
|
255
|
-
date:
|
|
236
|
+
fn: o((t) => [
|
|
237
|
+
n(e.$slots, "top-info", {
|
|
238
|
+
date: t.date
|
|
256
239
|
})
|
|
257
240
|
]),
|
|
258
241
|
key: "2"
|
|
259
242
|
} : void 0,
|
|
260
|
-
|
|
243
|
+
e.bottomInfo ? {
|
|
261
244
|
name: "bottom-info",
|
|
262
|
-
fn:
|
|
263
|
-
|
|
264
|
-
date:
|
|
245
|
+
fn: o((t) => [
|
|
246
|
+
n(e.$slots, "bottom-info", {
|
|
247
|
+
date: t.date
|
|
265
248
|
})
|
|
266
249
|
]),
|
|
267
250
|
key: "3"
|
|
268
251
|
} : void 0
|
|
269
252
|
]), 1032, ["type", "is-auto-back-fill", "poppable", "title", "confirm-text", "start-text", "end-text", "default-value", "start-date", "end-date", "onUpdate", "onClose", "onChoose", "onSelect", "show-today", "show-title", "show-sub-title", "to-date-animation", "first-day-of-week"]));
|
|
270
253
|
}
|
|
271
|
-
const
|
|
254
|
+
const K = /* @__PURE__ */ $(P, [["render", A]]);
|
|
272
255
|
export {
|
|
273
|
-
|
|
256
|
+
K as default
|
|
274
257
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { C } from "./index-
|
|
1
|
+
import { C as f } from "./index-14dfadc4.js";
|
|
2
2
|
import "vue";
|
|
3
|
-
import "./_plugin-vue_export-helper-
|
|
4
|
-
import "./component-
|
|
3
|
+
import "./_plugin-vue_export-helper-dad06003.js";
|
|
4
|
+
import "./component-234624bc.js";
|
|
5
5
|
import "../locale/lang";
|
|
6
|
-
import "./raf-
|
|
7
|
-
import "./index-
|
|
6
|
+
import "./raf-a74f1a06.js";
|
|
7
|
+
import "./index-fadb0974.js";
|
|
8
8
|
export {
|
|
9
|
-
|
|
9
|
+
f as default
|
|
10
10
|
};
|
|
@@ -1,15 +1,14 @@
|
|
|
1
|
-
import { c as
|
|
2
|
-
import { resolveComponent, openBlock, createElementBlock, createElementVNode, toDisplayString, renderSlot, createBlock, createCommentVNode, Fragment, createVNode, withCtx, createTextVNode } from "vue";
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import { _ as
|
|
1
|
+
import { c as f } from "./component-234624bc.js";
|
|
2
|
+
import { resolveComponent as _, openBlock as r, createElementBlock as s, createElementVNode as t, toDisplayString as i, renderSlot as o, createBlock as l, createCommentVNode as S, Fragment as k, createVNode as d, withCtx as m, createTextVNode as g } from "vue";
|
|
3
|
+
import u from "./Price.js";
|
|
4
|
+
import h from "./Tag.js";
|
|
5
|
+
import { _ as $ } from "./_plugin-vue_export-helper-dad06003.js";
|
|
6
6
|
import "../locale/lang";
|
|
7
7
|
import "@nutui/icons-vue";
|
|
8
|
-
const { create } =
|
|
9
|
-
const _sfc_main = create({
|
|
8
|
+
const { create: N } = f("card"), H = N({
|
|
10
9
|
components: {
|
|
11
|
-
[
|
|
12
|
-
[
|
|
10
|
+
[u.name]: u,
|
|
11
|
+
[h.name]: h
|
|
13
12
|
},
|
|
14
13
|
props: {
|
|
15
14
|
imgUrl: {
|
|
@@ -35,78 +34,65 @@ const _sfc_main = create({
|
|
|
35
34
|
},
|
|
36
35
|
isNeedPrice: {
|
|
37
36
|
type: Boolean,
|
|
38
|
-
default:
|
|
37
|
+
default: !0
|
|
39
38
|
}
|
|
40
39
|
},
|
|
41
|
-
setup(
|
|
42
|
-
const isHaveSlot = (slot) => {
|
|
43
|
-
return slots[slot];
|
|
44
|
-
};
|
|
40
|
+
setup(e, { emit: y, slots: n }) {
|
|
45
41
|
return {
|
|
46
|
-
isHaveSlot
|
|
42
|
+
isHaveSlot: (c) => n[c]
|
|
47
43
|
};
|
|
48
44
|
}
|
|
49
|
-
})
|
|
50
|
-
const _hoisted_1 = { class: "nut-card" };
|
|
51
|
-
const _hoisted_2 = { class: "nut-card__left" };
|
|
52
|
-
const _hoisted_3 = ["src"];
|
|
53
|
-
const _hoisted_4 = { class: "nut-card__right" };
|
|
54
|
-
const _hoisted_5 = { class: "nut-card__right__title" };
|
|
55
|
-
const _hoisted_6 = {
|
|
45
|
+
}), P = { class: "nut-card" }, B = { class: "nut-card__left" }, C = ["src"], V = { class: "nut-card__right" }, D = { class: "nut-card__right__title" }, E = {
|
|
56
46
|
key: 0,
|
|
57
47
|
class: "nut-card__right__price"
|
|
58
|
-
};
|
|
59
|
-
|
|
60
|
-
const
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
66
|
-
createElementVNode("div", _hoisted_2, [
|
|
67
|
-
createElementVNode("img", {
|
|
68
|
-
src: _ctx.imgUrl,
|
|
48
|
+
}, T = { class: "nut-card__right__other" }, U = { class: "nut-card__right__shop" }, w = { class: "nut-card__right__shop__name" };
|
|
49
|
+
function F(e, y, n, v, c, b) {
|
|
50
|
+
const a = _("nut-price"), p = _("nut-tag");
|
|
51
|
+
return r(), s("div", P, [
|
|
52
|
+
t("div", B, [
|
|
53
|
+
t("img", {
|
|
54
|
+
src: e.imgUrl,
|
|
69
55
|
alt: ""
|
|
70
|
-
}, null, 8,
|
|
56
|
+
}, null, 8, C)
|
|
71
57
|
]),
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
58
|
+
t("div", V, [
|
|
59
|
+
t("div", D, i(e.title), 1),
|
|
60
|
+
o(e.$slots, "prolist"),
|
|
61
|
+
e.isNeedPrice ? (r(), s("div", E, [
|
|
62
|
+
e.isHaveSlot("price") ? o(e.$slots, "price", { key: 0 }) : (r(), l(a, {
|
|
77
63
|
key: 1,
|
|
78
|
-
price:
|
|
64
|
+
price: e.price
|
|
79
65
|
}, null, 8, ["price"])),
|
|
80
|
-
|
|
66
|
+
e.isHaveSlot("origin") ? o(e.$slots, "origin", { key: 2 }) : (r(), l(a, {
|
|
81
67
|
key: 3,
|
|
82
68
|
class: "nut-card__right__price__origin",
|
|
83
|
-
price:
|
|
69
|
+
price: e.vipPrice
|
|
84
70
|
}, null, 8, ["price"]))
|
|
85
|
-
])) :
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
default:
|
|
90
|
-
|
|
71
|
+
])) : S("", !0),
|
|
72
|
+
t("div", T, [
|
|
73
|
+
e.isHaveSlot("shop-tag") ? o(e.$slots, "shop-tag", { key: 0 }) : (r(), s(k, { key: 1 }, [
|
|
74
|
+
d(p, { type: "danger" }, {
|
|
75
|
+
default: m(() => [
|
|
76
|
+
g(i(e.shopDesc), 1)
|
|
91
77
|
]),
|
|
92
78
|
_: 1
|
|
93
79
|
}),
|
|
94
|
-
|
|
95
|
-
default:
|
|
96
|
-
|
|
80
|
+
d(p, { plain: "" }, {
|
|
81
|
+
default: m(() => [
|
|
82
|
+
g(i(e.delivery), 1)
|
|
97
83
|
]),
|
|
98
84
|
_: 1
|
|
99
85
|
})
|
|
100
86
|
], 64))
|
|
101
87
|
]),
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
88
|
+
t("div", U, [
|
|
89
|
+
t("div", w, i(e.shopName), 1),
|
|
90
|
+
o(e.$slots, "footer")
|
|
105
91
|
])
|
|
106
92
|
])
|
|
107
93
|
]);
|
|
108
94
|
}
|
|
109
|
-
const
|
|
95
|
+
const K = /* @__PURE__ */ $(H, [["render", F]]);
|
|
110
96
|
export {
|
|
111
|
-
|
|
97
|
+
K as default
|
|
112
98
|
};
|