unika-components 1.0.294 → 1.0.296
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.
|
@@ -5,15 +5,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
5
5
|
styleProps: import("vue").ComputedRef<Pick<any, string>>;
|
|
6
6
|
handleClick: () => void;
|
|
7
7
|
maskStyle: import("vue").ComputedRef<{
|
|
8
|
-
WebkitMaskBoxImageRepeat: string;
|
|
9
8
|
WebkitMaskBoxImageSource: string;
|
|
10
|
-
|
|
11
|
-
MaskSize: string;
|
|
9
|
+
MaskBoxImageSource: string;
|
|
12
10
|
} | {
|
|
13
|
-
WebkitMaskBoxImageRepeat?: undefined;
|
|
14
11
|
WebkitMaskBoxImageSource?: undefined;
|
|
15
|
-
|
|
16
|
-
MaskSize?: undefined;
|
|
12
|
+
MaskBoxImageSource?: undefined;
|
|
17
13
|
}>;
|
|
18
14
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
19
15
|
[x: string]: any;
|
|
@@ -273,6 +273,7 @@ export declare const countdownDefaultProps: {
|
|
|
273
273
|
size: string;
|
|
274
274
|
flipAnimation: boolean;
|
|
275
275
|
deadline: string;
|
|
276
|
+
flexDirection: string;
|
|
276
277
|
transform: string;
|
|
277
278
|
display: string;
|
|
278
279
|
alignItems: string;
|
|
@@ -603,6 +604,7 @@ export declare const componentsDefaultProps: {
|
|
|
603
604
|
size: string;
|
|
604
605
|
flipAnimation: boolean;
|
|
605
606
|
deadline: string;
|
|
607
|
+
flexDirection: string;
|
|
606
608
|
transform: string;
|
|
607
609
|
display: string;
|
|
608
610
|
alignItems: string;
|
|
@@ -1,35 +1,24 @@
|
|
|
1
|
-
|
|
2
|
-
h2.uni-text-component, p.uni-text-component {
|
|
3
|
-
margin-top: 0;
|
|
4
|
-
margin-bottom: 0;
|
|
5
|
-
}
|
|
6
|
-
button.uni-text-component {
|
|
7
|
-
padding: 5px 10px;
|
|
8
|
-
cursor: pointer;
|
|
9
|
-
}
|
|
10
|
-
.uni-text-component {
|
|
11
|
-
box-sizing: border-box;
|
|
12
|
-
white-space: pre-wrap;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
.uni-image-component {
|
|
16
|
-
max-width: 100%;
|
|
17
|
-
}
|
|
18
|
-
.uni-image-mask-wrapper {
|
|
19
|
-
display: inline-block;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
.uni-calendar-component {
|
|
24
1
|
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
2
|
+
.uni-video-component {
|
|
3
|
+
position: relative;
|
|
4
|
+
text-align: center;
|
|
5
|
+
}
|
|
6
|
+
.play-pause-button {
|
|
7
|
+
position: absolute;
|
|
8
|
+
top: 50%;
|
|
9
|
+
left: 50%;
|
|
10
|
+
transform: translate(-50%, -50%);
|
|
11
|
+
cursor: pointer;
|
|
12
|
+
font-size: 2rem;
|
|
13
|
+
color: #fff;
|
|
14
|
+
background: rgba(0, 0, 0, 0.6);
|
|
15
|
+
border-radius: 50%;
|
|
16
|
+
padding: 10px;
|
|
17
|
+
transition: background 0.3s;
|
|
18
|
+
}
|
|
19
|
+
.play-pause-button:hover {
|
|
20
|
+
background: rgba(0, 0, 0, 0.8);
|
|
21
|
+
}
|
|
33
22
|
|
|
34
23
|
.slide-guide {
|
|
35
24
|
position: absolute;
|
|
@@ -114,27 +103,38 @@ body, html {
|
|
|
114
103
|
.edit-wrapper .uni-lotties-component, .edit-wrapper .uni-like-component, .edit-wrapper .uni-background-component, .edit-wrapper .uni-svg-component, .edit-wrapper .uni-register-form-component{
|
|
115
104
|
position: static !important;
|
|
116
105
|
}
|
|
106
|
+
|
|
107
|
+
h2.uni-text-component, p.uni-text-component {
|
|
108
|
+
margin-top: 0;
|
|
109
|
+
margin-bottom: 0;
|
|
110
|
+
}
|
|
111
|
+
button.uni-text-component {
|
|
112
|
+
padding: 5px 10px;
|
|
113
|
+
cursor: pointer;
|
|
114
|
+
}
|
|
115
|
+
.uni-text-component {
|
|
116
|
+
box-sizing: border-box;
|
|
117
|
+
white-space: pre-wrap;
|
|
118
|
+
}
|
|
117
119
|
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
background: rgba(0, 0, 0, 0.8);
|
|
137
|
-
}
|
|
120
|
+
|
|
121
|
+
.uni-calendar-component {
|
|
122
|
+
|
|
123
|
+
}
|
|
124
|
+
.slot-number {
|
|
125
|
+
position: absolute;
|
|
126
|
+
bottom: 2px;
|
|
127
|
+
left: 7px;
|
|
128
|
+
font-size: 12px;
|
|
129
|
+
color: #666
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
.uni-image-component {
|
|
133
|
+
max-width: 100%;
|
|
134
|
+
}
|
|
135
|
+
.uni-image-mask-wrapper {
|
|
136
|
+
display: inline-block;
|
|
137
|
+
}
|
|
138
138
|
|
|
139
139
|
.effect {
|
|
140
140
|
width: 100%;
|
|
@@ -176,10 +176,17 @@ body, html {
|
|
|
176
176
|
vertical-align: top;
|
|
177
177
|
}
|
|
178
178
|
|
|
179
|
+
.uni-build-up-component {
|
|
180
|
+
}
|
|
181
|
+
|
|
179
182
|
.uni-lotties-component {
|
|
180
183
|
width: 100%;
|
|
181
184
|
height: 100%;
|
|
182
185
|
}
|
|
186
|
+
|
|
187
|
+
.uni-svg-component {
|
|
188
|
+
display: inline-block;
|
|
189
|
+
}
|
|
183
190
|
|
|
184
191
|
.swiper-warp {
|
|
185
192
|
width: 100%;
|
|
@@ -216,13 +223,6 @@ body, html {
|
|
|
216
223
|
font-size: 16px;
|
|
217
224
|
color: #333;
|
|
218
225
|
}
|
|
219
|
-
|
|
220
|
-
.uni-build-up-component {
|
|
221
|
-
}
|
|
222
|
-
|
|
223
|
-
.uni-svg-component {
|
|
224
|
-
display: inline-block;
|
|
225
|
-
}
|
|
226
226
|
/**
|
|
227
227
|
* Swiper 6.8.4
|
|
228
228
|
* Most modern mobile touch slider and framework with hardware accelerated transitions
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { computed, defineComponent, openBlock, createBlock, resolveDynamicComponent, withModifiers, normalizeStyle as normalizeStyle$1, withCtx, createTextVNode, toDisplayString, createElementBlock, createElementVNode, Fragment, renderList, normalizeProps, guardReactiveProps, h as h$2, ref, onUpdated, watch, nextTick as nextTick$1, onMounted, onBeforeUnmount, onBeforeUpdate, resolveComponent, createVNode, normalizeClass, mergeProps,
|
|
1
|
+
import { computed, defineComponent, openBlock, createBlock, resolveDynamicComponent, withModifiers, normalizeStyle as normalizeStyle$1, withCtx, createTextVNode, toDisplayString, createElementBlock, createElementVNode, Fragment, renderList, normalizeProps, guardReactiveProps, h as h$2, ref, onUpdated, watch, nextTick as nextTick$1, onMounted, onBeforeUnmount, onBeforeUpdate, resolveComponent, createVNode, createCommentVNode, normalizeClass, mergeProps, renderSlot, pushScopeId, popScopeId, toRefs, onBeforeMount, onUnmounted, withDirectives, vShow, isVNode, Comment, Text, reactive, getCurrentInstance, inject, provide, unref, shallowRef, watchEffect, triggerRef, Transition, resolveDirective, cloneVNode, toRef, Teleport, isRef, toRaw, render as render$n, TransitionGroup } from 'vue';
|
|
2
2
|
import crypto from 'crypto';
|
|
3
3
|
|
|
4
4
|
/** Detect free variable `global` from Node.js. */
|
|
@@ -5121,6 +5121,7 @@ const countdownDefaultProps = {
|
|
|
5121
5121
|
size: 'small',
|
|
5122
5122
|
flipAnimation: true,
|
|
5123
5123
|
deadline: '2024-09-21 12:00:00',
|
|
5124
|
+
flexDirection: 'row',
|
|
5124
5125
|
transform: 'rotate(0deg)',
|
|
5125
5126
|
display: 'flex',
|
|
5126
5127
|
alignItems: 'center',
|
|
@@ -5426,11 +5427,12 @@ var script$k = defineComponent({
|
|
|
5426
5427
|
return props.maskImage
|
|
5427
5428
|
? {
|
|
5428
5429
|
// WebkitMaskImage: `url(${props.maskImage})`,
|
|
5429
|
-
WebkitMaskBoxImageRepeat: 'stretch',
|
|
5430
|
+
// WebkitMaskBoxImageRepeat: 'stretch',
|
|
5430
5431
|
// WebkitMaskSize: 'contain',
|
|
5431
5432
|
WebkitMaskBoxImageSource: `url(${props.maskImage})`,
|
|
5432
|
-
|
|
5433
|
-
|
|
5433
|
+
MaskBoxImageSource: `url(${props.maskImage})`
|
|
5434
|
+
// Mask: `url(${props.maskImage}) no-repeat center`,
|
|
5435
|
+
// MaskSize: 'cover'
|
|
5434
5436
|
}
|
|
5435
5437
|
: {};
|
|
5436
5438
|
});
|
|
@@ -13229,6 +13231,10 @@ function render$i(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
13229
13231
|
onSlideChange: _ctx.onSlideChange
|
|
13230
13232
|
}, {
|
|
13231
13233
|
default: withCtx(() => [
|
|
13234
|
+
createCommentVNode(" :autoplay='{"),
|
|
13235
|
+
createCommentVNode(" \"delay\": work.autoPlay.delay,"),
|
|
13236
|
+
createCommentVNode(" \"disableOnInteraction\": false"),
|
|
13237
|
+
createCommentVNode(" }'"),
|
|
13232
13238
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.work.pages, (page, index) => {
|
|
13233
13239
|
return (openBlock(), createBlock(_component_swiper_slide, {
|
|
13234
13240
|
class: normalizeClass(_ctx.slideClasses(index)),
|
|
@@ -22031,7 +22037,11 @@ var script$c = {
|
|
|
22031
22037
|
required: false
|
|
22032
22038
|
// default:"2.2rem"
|
|
22033
22039
|
},
|
|
22034
|
-
|
|
22040
|
+
flexDirection: {
|
|
22041
|
+
type: String,
|
|
22042
|
+
required: false,
|
|
22043
|
+
default:"row"
|
|
22044
|
+
},
|
|
22035
22045
|
labelSize: {
|
|
22036
22046
|
type: String,
|
|
22037
22047
|
required: false
|
|
@@ -22325,18 +22335,20 @@ var script$c = {
|
|
|
22325
22335
|
}
|
|
22326
22336
|
};
|
|
22327
22337
|
|
|
22328
|
-
const _hoisted_1$5 =
|
|
22329
|
-
const _hoisted_2 =
|
|
22330
|
-
const _hoisted_3 = {
|
|
22331
|
-
const _hoisted_4 =
|
|
22338
|
+
const _hoisted_1$5 = ["id"];
|
|
22339
|
+
const _hoisted_2 = { key: 0 };
|
|
22340
|
+
const _hoisted_3 = { class: "flip-card__top" };
|
|
22341
|
+
const _hoisted_4 = ["data-value"];
|
|
22332
22342
|
const _hoisted_5 = ["data-value"];
|
|
22333
22343
|
const _hoisted_6 = ["data-value"];
|
|
22334
|
-
const _hoisted_7 =
|
|
22335
|
-
const _hoisted_8 = {
|
|
22336
|
-
const _hoisted_9 = { class: "no-animation__card" };
|
|
22344
|
+
const _hoisted_7 = { key: 1 };
|
|
22345
|
+
const _hoisted_8 = { class: "no-animation__card" };
|
|
22337
22346
|
|
|
22338
22347
|
function render$d(_ctx, _cache, $props, $setup, $data, $options) {
|
|
22339
|
-
return (openBlock(), createElementBlock("div",
|
|
22348
|
+
return (openBlock(), createElementBlock("div", {
|
|
22349
|
+
class: "flip-clock",
|
|
22350
|
+
style: normalizeStyle$1({ display: 'flex', flexDirection: $props.flexDirection })
|
|
22351
|
+
}, [
|
|
22340
22352
|
(openBlock(true), createElementBlock(Fragment, null, renderList($setup.timeData, (data) => {
|
|
22341
22353
|
return withDirectives((openBlock(), createElementBlock("span", {
|
|
22342
22354
|
key: data.label,
|
|
@@ -22344,28 +22356,28 @@ function render$d(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
22344
22356
|
id: data.elementId
|
|
22345
22357
|
}, [
|
|
22346
22358
|
($props.flipAnimation)
|
|
22347
|
-
? (openBlock(), createElementBlock("div",
|
|
22359
|
+
? (openBlock(), createElementBlock("div", _hoisted_2, [
|
|
22348
22360
|
createElementVNode("span", {
|
|
22349
22361
|
class: "flip-clock__card flip-card",
|
|
22350
22362
|
style: normalizeStyle$1({ fontSize: $props.countdownSize ? $props.countdownSize : '2.25rem' })
|
|
22351
22363
|
}, [
|
|
22352
|
-
createElementVNode("b",
|
|
22364
|
+
createElementVNode("b", _hoisted_3, toDisplayString($setup.twoDigits(data.current)), 1 /* TEXT */),
|
|
22353
22365
|
createElementVNode("b", {
|
|
22354
22366
|
class: "flip-card__bottom",
|
|
22355
22367
|
"data-value": $setup.twoDigits(data.current)
|
|
22356
|
-
}, null, 8 /* PROPS */,
|
|
22368
|
+
}, null, 8 /* PROPS */, _hoisted_4),
|
|
22357
22369
|
createElementVNode("b", {
|
|
22358
22370
|
class: "flip-card__back",
|
|
22359
22371
|
"data-value": $setup.twoDigits(data.previous)
|
|
22360
|
-
}, null, 8 /* PROPS */,
|
|
22372
|
+
}, null, 8 /* PROPS */, _hoisted_5),
|
|
22361
22373
|
createElementVNode("b", {
|
|
22362
22374
|
class: "flip-card__back-bottom",
|
|
22363
22375
|
"data-value": $setup.twoDigits(data.previous)
|
|
22364
|
-
}, null, 8 /* PROPS */,
|
|
22376
|
+
}, null, 8 /* PROPS */, _hoisted_6)
|
|
22365
22377
|
], 4 /* STYLE */)
|
|
22366
22378
|
]))
|
|
22367
|
-
: (openBlock(), createElementBlock("div",
|
|
22368
|
-
createElementVNode("span",
|
|
22379
|
+
: (openBlock(), createElementBlock("div", _hoisted_7, [
|
|
22380
|
+
createElementVNode("span", _hoisted_8, toDisplayString($setup.twoDigits(data.current)), 1 /* TEXT */)
|
|
22369
22381
|
])),
|
|
22370
22382
|
($props.showLabels)
|
|
22371
22383
|
? (openBlock(), createElementBlock("span", {
|
|
@@ -22374,11 +22386,11 @@ function render$d(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
22374
22386
|
style: normalizeStyle$1({ fontSize: $props.labelSize ? $props.labelSize : '1rem' })
|
|
22375
22387
|
}, toDisplayString(data.label), 5 /* TEXT, STYLE */))
|
|
22376
22388
|
: createCommentVNode("v-if", true)
|
|
22377
|
-
], 8 /* PROPS */,
|
|
22389
|
+
], 8 /* PROPS */, _hoisted_1$5)), [
|
|
22378
22390
|
[vShow, data.show]
|
|
22379
22391
|
])
|
|
22380
22392
|
}), 128 /* KEYED_FRAGMENT */))
|
|
22381
|
-
]))
|
|
22393
|
+
], 4 /* STYLE */))
|
|
22382
22394
|
}
|
|
22383
22395
|
|
|
22384
22396
|
script$c.render = render$d;
|
|
@@ -22386,7 +22398,7 @@ script$c.__scopeId = "data-v-47d33153";
|
|
|
22386
22398
|
script$c.__file = "src/components/UniCountdown/Countdown.vue";
|
|
22387
22399
|
|
|
22388
22400
|
const defaultProps$a = transformToComponentProps(componentsDefaultProps['uni-countdown'].props, isEditingProp);
|
|
22389
|
-
const defaultStyles$8 = without$1(Object.keys(countdownDefaultProps), 'actionType', 'url', 'mainColor', 'mainFlipBackgroundColor', 'labelColor', 'showLabels', 'language', 'size', 'flipAnimation', 'deadline');
|
|
22401
|
+
const defaultStyles$8 = without$1(Object.keys(countdownDefaultProps), 'actionType', 'url', 'flexDirection', 'mainColor', 'mainFlipBackgroundColor', 'labelColor', 'showLabels', 'language', 'size', 'flipAnimation', 'deadline');
|
|
22390
22402
|
// 获取当前日期和时间
|
|
22391
22403
|
const now = new Date();
|
|
22392
22404
|
// 添加一天
|
|
@@ -22487,8 +22499,9 @@ function render$c(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
22487
22499
|
language: _ctx.language,
|
|
22488
22500
|
countdownSize: _ctx.countdownSize,
|
|
22489
22501
|
flipAnimation: _ctx.flipAnimation,
|
|
22502
|
+
flexDirection: _ctx.flexDirection,
|
|
22490
22503
|
labelSize: _ctx.labelSize
|
|
22491
|
-
}, null, 8 /* PROPS */, ["deadline", "mainColor", "secondFlipColor", "mainFlipBackgroundColor", "secondFlipBackgroundColor", "labelColor", "showLabels", "labels", "language", "countdownSize", "flipAnimation", "labelSize"])
|
|
22504
|
+
}, null, 8 /* PROPS */, ["deadline", "mainColor", "secondFlipColor", "mainFlipBackgroundColor", "secondFlipBackgroundColor", "labelColor", "showLabels", "labels", "language", "countdownSize", "flipAnimation", "flexDirection", "labelSize"])
|
|
22492
22505
|
], 4 /* STYLE */))
|
|
22493
22506
|
}
|
|
22494
22507
|
|
|
@@ -5128,6 +5128,7 @@
|
|
|
5128
5128
|
size: 'small',
|
|
5129
5129
|
flipAnimation: true,
|
|
5130
5130
|
deadline: '2024-09-21 12:00:00',
|
|
5131
|
+
flexDirection: 'row',
|
|
5131
5132
|
transform: 'rotate(0deg)',
|
|
5132
5133
|
display: 'flex',
|
|
5133
5134
|
alignItems: 'center',
|
|
@@ -5433,11 +5434,12 @@
|
|
|
5433
5434
|
return props.maskImage
|
|
5434
5435
|
? {
|
|
5435
5436
|
// WebkitMaskImage: `url(${props.maskImage})`,
|
|
5436
|
-
WebkitMaskBoxImageRepeat: 'stretch',
|
|
5437
|
+
// WebkitMaskBoxImageRepeat: 'stretch',
|
|
5437
5438
|
// WebkitMaskSize: 'contain',
|
|
5438
5439
|
WebkitMaskBoxImageSource: `url(${props.maskImage})`,
|
|
5439
|
-
|
|
5440
|
-
|
|
5440
|
+
MaskBoxImageSource: `url(${props.maskImage})`
|
|
5441
|
+
// Mask: `url(${props.maskImage}) no-repeat center`,
|
|
5442
|
+
// MaskSize: 'cover'
|
|
5441
5443
|
}
|
|
5442
5444
|
: {};
|
|
5443
5445
|
});
|
|
@@ -13236,6 +13238,10 @@
|
|
|
13236
13238
|
onSlideChange: _ctx.onSlideChange
|
|
13237
13239
|
}, {
|
|
13238
13240
|
default: vue.withCtx(() => [
|
|
13241
|
+
vue.createCommentVNode(" :autoplay='{"),
|
|
13242
|
+
vue.createCommentVNode(" \"delay\": work.autoPlay.delay,"),
|
|
13243
|
+
vue.createCommentVNode(" \"disableOnInteraction\": false"),
|
|
13244
|
+
vue.createCommentVNode(" }'"),
|
|
13239
13245
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.work.pages, (page, index) => {
|
|
13240
13246
|
return (vue.openBlock(), vue.createBlock(_component_swiper_slide, {
|
|
13241
13247
|
class: vue.normalizeClass(_ctx.slideClasses(index)),
|
|
@@ -22038,7 +22044,11 @@
|
|
|
22038
22044
|
required: false
|
|
22039
22045
|
// default:"2.2rem"
|
|
22040
22046
|
},
|
|
22041
|
-
|
|
22047
|
+
flexDirection: {
|
|
22048
|
+
type: String,
|
|
22049
|
+
required: false,
|
|
22050
|
+
default:"row"
|
|
22051
|
+
},
|
|
22042
22052
|
labelSize: {
|
|
22043
22053
|
type: String,
|
|
22044
22054
|
required: false
|
|
@@ -22332,18 +22342,20 @@
|
|
|
22332
22342
|
}
|
|
22333
22343
|
};
|
|
22334
22344
|
|
|
22335
|
-
const _hoisted_1$5 =
|
|
22336
|
-
const _hoisted_2 =
|
|
22337
|
-
const _hoisted_3 = {
|
|
22338
|
-
const _hoisted_4 =
|
|
22345
|
+
const _hoisted_1$5 = ["id"];
|
|
22346
|
+
const _hoisted_2 = { key: 0 };
|
|
22347
|
+
const _hoisted_3 = { class: "flip-card__top" };
|
|
22348
|
+
const _hoisted_4 = ["data-value"];
|
|
22339
22349
|
const _hoisted_5 = ["data-value"];
|
|
22340
22350
|
const _hoisted_6 = ["data-value"];
|
|
22341
|
-
const _hoisted_7 =
|
|
22342
|
-
const _hoisted_8 = {
|
|
22343
|
-
const _hoisted_9 = { class: "no-animation__card" };
|
|
22351
|
+
const _hoisted_7 = { key: 1 };
|
|
22352
|
+
const _hoisted_8 = { class: "no-animation__card" };
|
|
22344
22353
|
|
|
22345
22354
|
function render$d(_ctx, _cache, $props, $setup, $data, $options) {
|
|
22346
|
-
return (vue.openBlock(), vue.createElementBlock("div",
|
|
22355
|
+
return (vue.openBlock(), vue.createElementBlock("div", {
|
|
22356
|
+
class: "flip-clock",
|
|
22357
|
+
style: vue.normalizeStyle({ display: 'flex', flexDirection: $props.flexDirection })
|
|
22358
|
+
}, [
|
|
22347
22359
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList($setup.timeData, (data) => {
|
|
22348
22360
|
return vue.withDirectives((vue.openBlock(), vue.createElementBlock("span", {
|
|
22349
22361
|
key: data.label,
|
|
@@ -22351,28 +22363,28 @@
|
|
|
22351
22363
|
id: data.elementId
|
|
22352
22364
|
}, [
|
|
22353
22365
|
($props.flipAnimation)
|
|
22354
|
-
? (vue.openBlock(), vue.createElementBlock("div",
|
|
22366
|
+
? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2, [
|
|
22355
22367
|
vue.createElementVNode("span", {
|
|
22356
22368
|
class: "flip-clock__card flip-card",
|
|
22357
22369
|
style: vue.normalizeStyle({ fontSize: $props.countdownSize ? $props.countdownSize : '2.25rem' })
|
|
22358
22370
|
}, [
|
|
22359
|
-
vue.createElementVNode("b",
|
|
22371
|
+
vue.createElementVNode("b", _hoisted_3, vue.toDisplayString($setup.twoDigits(data.current)), 1 /* TEXT */),
|
|
22360
22372
|
vue.createElementVNode("b", {
|
|
22361
22373
|
class: "flip-card__bottom",
|
|
22362
22374
|
"data-value": $setup.twoDigits(data.current)
|
|
22363
|
-
}, null, 8 /* PROPS */,
|
|
22375
|
+
}, null, 8 /* PROPS */, _hoisted_4),
|
|
22364
22376
|
vue.createElementVNode("b", {
|
|
22365
22377
|
class: "flip-card__back",
|
|
22366
22378
|
"data-value": $setup.twoDigits(data.previous)
|
|
22367
|
-
}, null, 8 /* PROPS */,
|
|
22379
|
+
}, null, 8 /* PROPS */, _hoisted_5),
|
|
22368
22380
|
vue.createElementVNode("b", {
|
|
22369
22381
|
class: "flip-card__back-bottom",
|
|
22370
22382
|
"data-value": $setup.twoDigits(data.previous)
|
|
22371
|
-
}, null, 8 /* PROPS */,
|
|
22383
|
+
}, null, 8 /* PROPS */, _hoisted_6)
|
|
22372
22384
|
], 4 /* STYLE */)
|
|
22373
22385
|
]))
|
|
22374
|
-
: (vue.openBlock(), vue.createElementBlock("div",
|
|
22375
|
-
vue.createElementVNode("span",
|
|
22386
|
+
: (vue.openBlock(), vue.createElementBlock("div", _hoisted_7, [
|
|
22387
|
+
vue.createElementVNode("span", _hoisted_8, vue.toDisplayString($setup.twoDigits(data.current)), 1 /* TEXT */)
|
|
22376
22388
|
])),
|
|
22377
22389
|
($props.showLabels)
|
|
22378
22390
|
? (vue.openBlock(), vue.createElementBlock("span", {
|
|
@@ -22381,11 +22393,11 @@
|
|
|
22381
22393
|
style: vue.normalizeStyle({ fontSize: $props.labelSize ? $props.labelSize : '1rem' })
|
|
22382
22394
|
}, vue.toDisplayString(data.label), 5 /* TEXT, STYLE */))
|
|
22383
22395
|
: vue.createCommentVNode("v-if", true)
|
|
22384
|
-
], 8 /* PROPS */,
|
|
22396
|
+
], 8 /* PROPS */, _hoisted_1$5)), [
|
|
22385
22397
|
[vue.vShow, data.show]
|
|
22386
22398
|
])
|
|
22387
22399
|
}), 128 /* KEYED_FRAGMENT */))
|
|
22388
|
-
]))
|
|
22400
|
+
], 4 /* STYLE */))
|
|
22389
22401
|
}
|
|
22390
22402
|
|
|
22391
22403
|
script$c.render = render$d;
|
|
@@ -22393,7 +22405,7 @@
|
|
|
22393
22405
|
script$c.__file = "src/components/UniCountdown/Countdown.vue";
|
|
22394
22406
|
|
|
22395
22407
|
const defaultProps$a = transformToComponentProps(componentsDefaultProps['uni-countdown'].props, isEditingProp);
|
|
22396
|
-
const defaultStyles$8 = without$1(Object.keys(countdownDefaultProps), 'actionType', 'url', 'mainColor', 'mainFlipBackgroundColor', 'labelColor', 'showLabels', 'language', 'size', 'flipAnimation', 'deadline');
|
|
22408
|
+
const defaultStyles$8 = without$1(Object.keys(countdownDefaultProps), 'actionType', 'url', 'flexDirection', 'mainColor', 'mainFlipBackgroundColor', 'labelColor', 'showLabels', 'language', 'size', 'flipAnimation', 'deadline');
|
|
22397
22409
|
// 获取当前日期和时间
|
|
22398
22410
|
const now = new Date();
|
|
22399
22411
|
// 添加一天
|
|
@@ -22494,8 +22506,9 @@
|
|
|
22494
22506
|
language: _ctx.language,
|
|
22495
22507
|
countdownSize: _ctx.countdownSize,
|
|
22496
22508
|
flipAnimation: _ctx.flipAnimation,
|
|
22509
|
+
flexDirection: _ctx.flexDirection,
|
|
22497
22510
|
labelSize: _ctx.labelSize
|
|
22498
|
-
}, null, 8 /* PROPS */, ["deadline", "mainColor", "secondFlipColor", "mainFlipBackgroundColor", "secondFlipBackgroundColor", "labelColor", "showLabels", "labels", "language", "countdownSize", "flipAnimation", "labelSize"])
|
|
22511
|
+
}, null, 8 /* PROPS */, ["deadline", "mainColor", "secondFlipColor", "mainFlipBackgroundColor", "secondFlipBackgroundColor", "labelColor", "showLabels", "labels", "language", "countdownSize", "flipAnimation", "flexDirection", "labelSize"])
|
|
22499
22512
|
], 4 /* STYLE */))
|
|
22500
22513
|
}
|
|
22501
22514
|
|