@nutui/nutui 3.1.6 → 3.1.7

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.
Files changed (92) hide show
  1. package/CHANGELOG.md +40 -0
  2. package/dist/nutui.d.ts +7 -1
  3. package/dist/nutui.es.js +1097 -517
  4. package/dist/nutui.umd.js +1158 -571
  5. package/dist/packages/_es/ActionSheet.js +158 -0
  6. package/dist/packages/_es/Address.js +525 -0
  7. package/dist/packages/_es/Avatar.js +87 -0
  8. package/dist/packages/_es/BackTop.js +159 -0
  9. package/dist/packages/_es/Badge.js +90 -0
  10. package/dist/packages/_es/Barrage.js +118 -0
  11. package/dist/packages/_es/Button.js +124 -0
  12. package/dist/packages/_es/Calendar.js +700 -0
  13. package/dist/packages/_es/Cell.js +95 -0
  14. package/dist/packages/_es/CellGroup.js +42 -0
  15. package/dist/packages/_es/Checkbox.js +109 -0
  16. package/dist/packages/_es/CheckboxGroup.js +62 -0
  17. package/dist/packages/_es/CircleProgress.js +109 -0
  18. package/dist/packages/_es/Col.js +53 -0
  19. package/dist/packages/_es/Collapse.js +89 -0
  20. package/dist/packages/_es/CollapseItem.js +257 -0
  21. package/dist/packages/_es/CountDown.js +224 -0
  22. package/dist/packages/_es/CountUp.js +547 -0
  23. package/dist/packages/_es/DatePicker.js +282 -0
  24. package/dist/packages/_es/Dialog.js +313 -0
  25. package/dist/packages/_es/Divider.js +49 -0
  26. package/dist/packages/_es/Drag.js +198 -0
  27. package/dist/packages/_es/Elevator.js +207 -0
  28. package/dist/packages/_es/FixedNav.js +127 -0
  29. package/dist/packages/_es/Icon.js +44 -0
  30. package/dist/packages/_es/ImagePreview.js +109 -0
  31. package/dist/packages/_es/InfiniteLoading.js +265 -0
  32. package/dist/packages/_es/Input.js +183 -0
  33. package/dist/packages/_es/InputNumber.js +172 -0
  34. package/dist/packages/_es/Layout.js +10 -0
  35. package/dist/packages/_es/MenuItem.js +180 -0
  36. package/dist/packages/_es/Navbar.js +160 -0
  37. package/dist/packages/_es/NoticeBar.js +389 -0
  38. package/dist/packages/_es/Notify.js +233 -0
  39. package/dist/packages/_es/NumberKeyboard.js +248 -0
  40. package/dist/packages/_es/OverLay.js +118 -0
  41. package/dist/packages/_es/Pagination.js +163 -0
  42. package/dist/packages/_es/Picker.js +485 -0
  43. package/dist/packages/_es/Popover.js +157 -0
  44. package/dist/packages/_es/Popup.js +268 -0
  45. package/dist/packages/_es/Price.js +104 -0
  46. package/dist/packages/_es/Progress.js +131 -0
  47. package/dist/packages/_es/Radio.js +72 -0
  48. package/dist/packages/_es/RadioGroup.js +37 -0
  49. package/dist/packages/_es/Range.js +350 -0
  50. package/dist/packages/_es/Rate.js +129 -0
  51. package/dist/packages/_es/Row.js +61 -0
  52. package/dist/packages/_es/ShortPassword.js +221 -0
  53. package/dist/packages/_es/Signature.js +167 -0
  54. package/dist/packages/_es/Step.js +116 -0
  55. package/dist/packages/_es/Steps.js +52 -0
  56. package/dist/packages/_es/Swipe.js +193 -0
  57. package/dist/packages/_es/Swiper.js +429 -0
  58. package/dist/packages/_es/SwiperItem.js +60 -0
  59. package/dist/packages/_es/Switch.js +90 -0
  60. package/dist/packages/_es/Tab.js +179 -0
  61. package/dist/packages/_es/TabPane.js +42 -0
  62. package/dist/packages/_es/TabPanel.js +30 -0
  63. package/dist/packages/_es/Tabbar.js +73 -0
  64. package/dist/packages/_es/TabbarItem.js +142 -0
  65. package/dist/packages/_es/Tag.js +98 -0
  66. package/dist/packages/_es/TextArea.js +127 -0
  67. package/dist/packages/_es/Toast.js +317 -0
  68. package/dist/packages/_es/Uploader.js +400 -0
  69. package/dist/packages/_es/Video.js +405 -0
  70. package/dist/packages/_es/component.js +26 -0
  71. package/dist/packages/_es/index.js +64 -0
  72. package/dist/packages/_es/index2.js +13 -0
  73. package/dist/packages/_es/plugin-vue_export-helper.js +12 -0
  74. package/dist/packages/_es/pxCheck.js +9 -0
  75. package/dist/packages/_es/raf.js +19 -0
  76. package/dist/packages/avatar/index.scss +0 -1
  77. package/dist/packages/badge/index.scss +35 -0
  78. package/dist/packages/calendar/index.scss +13 -0
  79. package/dist/packages/imagepreview/index.scss +48 -0
  80. package/dist/packages/input/index.scss +14 -7
  81. package/dist/packages/pagination/index.scss +51 -0
  82. package/dist/packages/popover/index.scss +159 -0
  83. package/dist/packages/shortpassword/index.scss +19 -7
  84. package/dist/packages/tabpane/index.scss +1 -0
  85. package/dist/packages/tabs/index.scss +1 -0
  86. package/dist/packages/tag/index.scss +47 -0
  87. package/dist/packages/uploader/index.scss +0 -1
  88. package/dist/style.css +1 -1
  89. package/dist/style.es.js +2 -1
  90. package/dist/styles/themes/default.scss +35 -28
  91. package/dist/styles/variables.scss +55 -32
  92. package/package.json +7 -7
@@ -0,0 +1,257 @@
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
+ /*!
21
+ * @nutui/nutui v3.1.7 Thu Sep 30 2021 20:17:02 GMT+0800 (中国标准时间)
22
+ * (c) 2021 @jdf2e.
23
+ * Released under the MIT License.
24
+ */
25
+ import { inject, reactive, computed, getCurrentInstance, ref, watch, onMounted, toRefs, nextTick, resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, createBlock, createCommentVNode, renderSlot, normalizeStyle } from "vue";
26
+ import { c as createComponent } from "./component.js";
27
+ import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
28
+ const { create, componentName } = createComponent("collapse-item");
29
+ const _sfc_main = create({
30
+ props: {
31
+ title: {
32
+ type: String,
33
+ default: ""
34
+ },
35
+ subTitle: {
36
+ type: String,
37
+ default: ""
38
+ },
39
+ disabled: {
40
+ type: Boolean,
41
+ default: false
42
+ },
43
+ name: {
44
+ type: [Number, String],
45
+ default: -1,
46
+ required: true
47
+ },
48
+ collapseRef: {
49
+ type: Object
50
+ }
51
+ },
52
+ setup(props) {
53
+ const collapse = inject("collapseParent");
54
+ const parent = reactive(collapse);
55
+ const classes = computed(() => {
56
+ const prefixCls = componentName;
57
+ return {
58
+ [prefixCls]: true,
59
+ [`${prefixCls}-icon`]: parent.props.icon
60
+ };
61
+ });
62
+ const relation = (child) => {
63
+ if (child.proxy) {
64
+ parent.children.push(child.proxy);
65
+ }
66
+ };
67
+ relation(getCurrentInstance());
68
+ const proxyData = reactive({
69
+ icon: parent.props.icon,
70
+ iconSize: parent.props.iconSize,
71
+ iconColor: parent.props.iconColor,
72
+ openExpanded: false,
73
+ iconStyle: {
74
+ transform: "rotate(0deg)",
75
+ marginTop: parent.props.iconHeght ? "-" + parent.props.iconHeght / 2 + "px" : "-10px"
76
+ }
77
+ });
78
+ const titleIconStyle = reactive({
79
+ titleIcon: parent.props.titleIcon,
80
+ titleIconSize: parent.props.titleIconSize,
81
+ titleIconColor: parent.props.titleIconColor,
82
+ titleIconPosition: parent.props.titleIconPosition
83
+ });
84
+ const wrapperRef = ref(null);
85
+ const contentRef = ref(null);
86
+ const onTransitionEnd = () => {
87
+ const wrapperRefEle = document.getElementsByClassName("collapse-wrapper")[0];
88
+ wrapperRefEle.style.willChange = "auto";
89
+ };
90
+ const animation = () => {
91
+ const wrapperRefEle = wrapperRef.value;
92
+ const contentRefEle = contentRef.value;
93
+ if (!wrapperRefEle || !contentRefEle) {
94
+ return;
95
+ }
96
+ const offsetHeight = contentRefEle.offsetHeight;
97
+ if (offsetHeight) {
98
+ const contentHeight = `${offsetHeight}px`;
99
+ wrapperRefEle.style.willChange = "height";
100
+ wrapperRefEle.style.height = !proxyData.openExpanded ? 0 : contentHeight;
101
+ if (parent.props.icon && !proxyData.openExpanded) {
102
+ proxyData.iconStyle["transform"] = "rotate(0deg)";
103
+ } else {
104
+ proxyData.iconStyle["transform"] = "rotate(" + parent.props.rotate + "deg)";
105
+ }
106
+ }
107
+ if (!proxyData.openExpanded) {
108
+ onTransitionEnd();
109
+ }
110
+ };
111
+ const open = () => {
112
+ proxyData.openExpanded = !proxyData.openExpanded;
113
+ animation();
114
+ };
115
+ const defaultOpen = () => {
116
+ open();
117
+ if (parent.props.icon) {
118
+ proxyData["iconStyle"]["transform"] = "rotate(" + parent.props.rotate + "deg)";
119
+ }
120
+ };
121
+ const currentName = computed(() => props.name);
122
+ const toggleOpen = () => {
123
+ if (parent.props.accordion) {
124
+ parent.children.forEach((item, index2) => {
125
+ if (currentName.value == item.name) {
126
+ item.changeOpen(!item.openExpanded);
127
+ } else {
128
+ item.changeOpen(false);
129
+ item.animation();
130
+ }
131
+ });
132
+ nextTick(() => {
133
+ parent.changeVal(currentName.value);
134
+ animation();
135
+ });
136
+ } else {
137
+ parent.changeValAry(props.name);
138
+ open();
139
+ }
140
+ };
141
+ const changeOpen = (bol) => {
142
+ proxyData.openExpanded = bol;
143
+ };
144
+ const expanded = computed(() => {
145
+ if (parent) {
146
+ return parent.isExpanded(props.name);
147
+ }
148
+ return null;
149
+ });
150
+ watch(expanded, (value, oldValue) => {
151
+ if (value) {
152
+ proxyData.openExpanded = true;
153
+ }
154
+ });
155
+ onMounted(() => {
156
+ const { name } = props;
157
+ const active = parent && parent.props.active;
158
+ if (typeof active == "number" || typeof active == "string") {
159
+ if (name == active) {
160
+ defaultOpen();
161
+ }
162
+ } else if (Object.values(active) instanceof Array) {
163
+ const f = Object.values(active).filter((item) => item == name);
164
+ if (f.length > 0) {
165
+ defaultOpen();
166
+ }
167
+ }
168
+ });
169
+ return __spreadProps(__spreadValues(__spreadValues(__spreadValues({
170
+ classes
171
+ }, toRefs(proxyData)), toRefs(parent.props)), toRefs(titleIconStyle)), {
172
+ wrapperRef,
173
+ contentRef,
174
+ open,
175
+ toggleOpen,
176
+ changeOpen,
177
+ animation
178
+ });
179
+ }
180
+ });
181
+ const _hoisted_1 = { class: "collapse-title" };
182
+ const _hoisted_2 = { class: "collapse-title-value" };
183
+ const _hoisted_3 = ["innerHTML"];
184
+ const _hoisted_4 = {
185
+ key: 0,
186
+ class: "subTitle"
187
+ };
188
+ const _hoisted_5 = ["innerHTML"];
189
+ const _hoisted_6 = {
190
+ class: "collapse-wrapper",
191
+ ref: "wrapperRef"
192
+ };
193
+ const _hoisted_7 = {
194
+ class: "collapse-content",
195
+ ref: "contentRef"
196
+ };
197
+ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
198
+ const _component_nut_icon = resolveComponent("nut-icon");
199
+ return openBlock(), createElementBlock("view", {
200
+ class: normalizeClass(_ctx.classes)
201
+ }, [
202
+ createElementVNode("view", {
203
+ class: normalizeClass([
204
+ "collapse-item",
205
+ { "item-expanded": _ctx.openExpanded },
206
+ { "nut-collapse-item-disabled": _ctx.disabled }
207
+ ]),
208
+ onClick: _cache[0] || (_cache[0] = (...args) => _ctx.toggleOpen && _ctx.toggleOpen(...args))
209
+ }, [
210
+ createElementVNode("view", _hoisted_1, [
211
+ createElementVNode("view", null, [
212
+ createElementVNode("view", _hoisted_2, [
213
+ _ctx.titleIcon ? (openBlock(), createBlock(_component_nut_icon, {
214
+ key: 0,
215
+ name: _ctx.titleIcon,
216
+ size: _ctx.titleIconSize,
217
+ color: _ctx.titleIconColor,
218
+ class: normalizeClass([
219
+ _ctx.titleIconPosition == "left" ? "titleIconLeft" : "titleIconRight"
220
+ ])
221
+ }, null, 8, ["name", "size", "color", "class"])) : createCommentVNode("", true),
222
+ _ctx.$slots.mTitle ? renderSlot(_ctx.$slots, "mTitle", { key: 1 }) : (openBlock(), createElementBlock("view", {
223
+ key: 2,
224
+ innerHTML: _ctx.title
225
+ }, null, 8, _hoisted_3))
226
+ ])
227
+ ])
228
+ ]),
229
+ _ctx.$slots.sTitle ? (openBlock(), createElementBlock("view", _hoisted_4, [
230
+ renderSlot(_ctx.$slots, "sTitle")
231
+ ])) : (openBlock(), createElementBlock("view", {
232
+ key: 1,
233
+ innerHTML: _ctx.subTitle,
234
+ class: "subTitle"
235
+ }, null, 8, _hoisted_5)),
236
+ _ctx.icon ? (openBlock(), createBlock(_component_nut_icon, {
237
+ key: 2,
238
+ name: _ctx.icon,
239
+ size: _ctx.iconSize,
240
+ color: _ctx.iconColor,
241
+ class: normalizeClass([
242
+ "collapse-icon",
243
+ { "col-expanded": _ctx.openExpanded },
244
+ { "collapse-icon-disabled": _ctx.disabled }
245
+ ]),
246
+ style: normalizeStyle(_ctx.iconStyle)
247
+ }, null, 8, ["name", "size", "color", "class", "style"])) : createCommentVNode("", true)
248
+ ], 2),
249
+ createElementVNode("view", _hoisted_6, [
250
+ createElementVNode("view", _hoisted_7, [
251
+ renderSlot(_ctx.$slots, "default")
252
+ ], 512)
253
+ ], 512)
254
+ ], 2);
255
+ }
256
+ var index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
257
+ export { index as default };
@@ -0,0 +1,224 @@
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
+ /*!
21
+ * @nutui/nutui v3.1.7 Thu Sep 30 2021 20:17:02 GMT+0800 (中国标准时间)
22
+ * (c) 2021 @jdf2e.
23
+ * Released under the MIT License.
24
+ */
25
+ import { reactive, computed, watch, toRefs, openBlock, createElementBlock, normalizeClass, renderSlot, toDisplayString, Fragment, createElementVNode, createCommentVNode } from "vue";
26
+ import { c as createComponent } from "./component.js";
27
+ import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
28
+ const { componentName, create } = createComponent("countdown");
29
+ const _sfc_main = create({
30
+ props: {
31
+ modelValue: {
32
+ type: Object,
33
+ default: () => {
34
+ return {};
35
+ }
36
+ },
37
+ paused: {
38
+ default: false,
39
+ type: Boolean
40
+ },
41
+ showDays: {
42
+ default: false,
43
+ type: Boolean
44
+ },
45
+ showPlainText: {
46
+ default: false,
47
+ type: Boolean
48
+ },
49
+ startTime: {
50
+ type: [Number, String],
51
+ validator(v) {
52
+ const dateStr = new Date(v).toString().toLowerCase();
53
+ return dateStr !== "invalid date";
54
+ }
55
+ },
56
+ endTime: {
57
+ type: [Number, String],
58
+ validator(v) {
59
+ const dateStr = new Date(v).toString().toLowerCase();
60
+ return dateStr !== "invalid date";
61
+ }
62
+ }
63
+ },
64
+ components: {},
65
+ emits: ["input", "on-end", "on-restart", "on-paused"],
66
+ setup(props, { emit, slots }) {
67
+ console.log("componentName", componentName);
68
+ const state = reactive({
69
+ restTime: 0,
70
+ p: 0,
71
+ _curr: 0,
72
+ timer: null
73
+ });
74
+ const resttime = computed(() => {
75
+ const rest = restTime(state.restTime);
76
+ const { d, h, m, s } = rest;
77
+ if (!props.showDays && d > 0) {
78
+ rest.h = fill2(Number(rest.h) + d * 24);
79
+ rest.d = 0;
80
+ }
81
+ return rest;
82
+ });
83
+ const plainText = computed(() => {
84
+ const { d, h, m, s } = resttime.value;
85
+ return `${d > 0 && props.showDays ? d + "\u5929" + h : h}\u5C0F\u65F6${m}\u5206${s}\u79D2`;
86
+ });
87
+ watch(() => props.value, (value) => {
88
+ });
89
+ watch(() => state.restTime, (value) => {
90
+ let tranTime = restTime(value);
91
+ emit("update:modelValue", tranTime);
92
+ emit("input", tranTime);
93
+ });
94
+ watch(() => props.paused, (v, ov) => {
95
+ if (!ov) {
96
+ state._curr = getTimeStamp();
97
+ emit("on-paused", state.restTime);
98
+ } else {
99
+ state.p += getTimeStamp() - state._curr;
100
+ emit("on-restart", state.restTime);
101
+ }
102
+ });
103
+ watch(() => props.endTime, (value) => {
104
+ initTimer();
105
+ });
106
+ watch(() => props.startTime, (value) => {
107
+ initTimer();
108
+ });
109
+ const classes = computed(() => {
110
+ const prefixCls = componentName;
111
+ return {
112
+ [prefixCls]: true
113
+ };
114
+ });
115
+ const getTimeStamp = (timeStr) => {
116
+ if (!timeStr)
117
+ return Date.now();
118
+ let t = timeStr;
119
+ t = t > 0 ? +t : t.toString().replace(/\-/g, "/");
120
+ return new Date(t).getTime();
121
+ };
122
+ const initTimer = () => {
123
+ const delay = 1e3;
124
+ const curr = Date.now();
125
+ const start = getTimeStamp(props.startTime || curr);
126
+ const end = getTimeStamp(props.endTime || curr);
127
+ const diffTime = curr - start;
128
+ state.restTime = end - (start + diffTime);
129
+ state.timer = setInterval(() => {
130
+ if (!props.paused) {
131
+ let restTime2 = end - (Date.now() - state.p + diffTime);
132
+ state.restTime = restTime2;
133
+ if (restTime2 < delay) {
134
+ state.restTime = 0;
135
+ emit("on-end");
136
+ clearInterval(state.timer);
137
+ }
138
+ }
139
+ }, delay);
140
+ };
141
+ const fill2 = (v) => {
142
+ v += "";
143
+ while (v.length < 2) {
144
+ v = "0" + v;
145
+ }
146
+ return v;
147
+ };
148
+ const restTime = (t) => {
149
+ const ts = t;
150
+ let rest = {
151
+ d: "-",
152
+ h: "--",
153
+ m: "--",
154
+ s: "--"
155
+ };
156
+ if (ts === 0) {
157
+ rest = {
158
+ d: "0",
159
+ h: "00",
160
+ m: "00",
161
+ s: "00"
162
+ };
163
+ }
164
+ if (ts) {
165
+ const ds = 24 * 60 * 60 * 1e3;
166
+ const hs = 60 * 60 * 1e3;
167
+ const ms = 60 * 1e3;
168
+ const d = ts >= ds ? parseInt(ts / ds) : 0;
169
+ const h = ts - d * ds >= hs ? parseInt((ts - d * ds) / hs) : 0;
170
+ const m = ts - d * ds - h * hs >= ms ? parseInt((ts - d * ds - h * hs) / ms) : 0;
171
+ const s = Math.round((ts - d * ds - h * hs - m * ms) / 1e3);
172
+ if (d >= 0)
173
+ rest.d = d + "";
174
+ if (h >= 0)
175
+ rest.h = fill2(h);
176
+ if (m >= 0)
177
+ rest.m = fill2(m);
178
+ if (s >= 0)
179
+ rest.s = fill2(s);
180
+ }
181
+ return rest;
182
+ };
183
+ initTimer();
184
+ return __spreadProps(__spreadValues({}, toRefs(props)), {
185
+ slots,
186
+ classes,
187
+ getTimeStamp,
188
+ initTimer,
189
+ resttime,
190
+ plainText
191
+ });
192
+ }
193
+ });
194
+ const _hoisted_1 = {
195
+ key: 1,
196
+ class: "nut-cd-block"
197
+ };
198
+ const _hoisted_2 = { class: "nut-cd-block" };
199
+ const _hoisted_3 = /* @__PURE__ */ createElementVNode("view", { class: "nut-cd-dot" }, "\u5929", -1);
200
+ const _hoisted_4 = { class: "nut-cd-block" };
201
+ const _hoisted_5 = /* @__PURE__ */ createElementVNode("view", { class: "nut-cd-dot" }, ":", -1);
202
+ const _hoisted_6 = { class: "nut-cd-block" };
203
+ const _hoisted_7 = /* @__PURE__ */ createElementVNode("view", { class: "nut-cd-dot" }, ":", -1);
204
+ const _hoisted_8 = { class: "nut-cd-block" };
205
+ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
206
+ return openBlock(), createElementBlock("view", {
207
+ class: normalizeClass(_ctx.classes),
208
+ onClick: _cache[0] || (_cache[0] = (...args) => _ctx.handleClick && _ctx.handleClick(...args))
209
+ }, [
210
+ _ctx.slots.default ? renderSlot(_ctx.$slots, "default", { key: 0 }) : _ctx.showPlainText ? (openBlock(), createElementBlock("view", _hoisted_1, toDisplayString(_ctx.plainText), 1)) : (openBlock(), createElementBlock(Fragment, { key: 2 }, [
211
+ _ctx.resttime.d >= 0 && _ctx.showDays ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
212
+ createElementVNode("view", _hoisted_2, toDisplayString(_ctx.resttime.d), 1),
213
+ _hoisted_3
214
+ ], 64)) : createCommentVNode("", true),
215
+ createElementVNode("view", _hoisted_4, toDisplayString(_ctx.resttime.h), 1),
216
+ _hoisted_5,
217
+ createElementVNode("view", _hoisted_6, toDisplayString(_ctx.resttime.m), 1),
218
+ _hoisted_7,
219
+ createElementVNode("view", _hoisted_8, toDisplayString(_ctx.resttime.s), 1)
220
+ ], 64))
221
+ ], 2);
222
+ }
223
+ var index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
224
+ export { index as default };