unika-components 1.0.130 → 1.0.131
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.
|
@@ -1,52 +1,6 @@
|
|
|
1
|
+
export declare const defaultStyles: string[];
|
|
1
2
|
declare const _default: import("vue").DefineComponent<{
|
|
2
|
-
|
|
3
|
-
type: StringConstructor;
|
|
4
|
-
default: string;
|
|
5
|
-
};
|
|
6
|
-
top: {
|
|
7
|
-
type: StringConstructor;
|
|
8
|
-
default: string;
|
|
9
|
-
};
|
|
10
|
-
opacity: {
|
|
11
|
-
type: NumberConstructor;
|
|
12
|
-
default: number;
|
|
13
|
-
};
|
|
14
|
-
deadline: {
|
|
15
|
-
type: StringConstructor;
|
|
16
|
-
default: string;
|
|
17
|
-
};
|
|
18
|
-
mainColor: {
|
|
19
|
-
type: StringConstructor;
|
|
20
|
-
default: string;
|
|
21
|
-
};
|
|
22
|
-
mainFlipBackgroundColor: {
|
|
23
|
-
type: StringConstructor;
|
|
24
|
-
default: string;
|
|
25
|
-
};
|
|
26
|
-
labelColor: {
|
|
27
|
-
type: StringConstructor;
|
|
28
|
-
default: string;
|
|
29
|
-
};
|
|
30
|
-
showLabels: {
|
|
31
|
-
type: BooleanConstructor;
|
|
32
|
-
required: false;
|
|
33
|
-
default: boolean;
|
|
34
|
-
};
|
|
35
|
-
flipAnimation: {
|
|
36
|
-
type: BooleanConstructor;
|
|
37
|
-
required: false;
|
|
38
|
-
default: boolean;
|
|
39
|
-
};
|
|
40
|
-
language: {
|
|
41
|
-
type: StringConstructor;
|
|
42
|
-
required: false;
|
|
43
|
-
default: string;
|
|
44
|
-
};
|
|
45
|
-
size: {
|
|
46
|
-
type: StringConstructor;
|
|
47
|
-
required: false;
|
|
48
|
-
default: string;
|
|
49
|
-
};
|
|
3
|
+
[x: string]: any;
|
|
50
4
|
}, {
|
|
51
5
|
styleProps: import("vue").ComputedRef<Pick<any, string>>;
|
|
52
6
|
handleClick: () => void;
|
|
@@ -59,65 +13,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
59
13
|
seconds: string;
|
|
60
14
|
}>;
|
|
61
15
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
62
|
-
|
|
63
|
-
type: StringConstructor;
|
|
64
|
-
default: string;
|
|
65
|
-
};
|
|
66
|
-
top: {
|
|
67
|
-
type: StringConstructor;
|
|
68
|
-
default: string;
|
|
69
|
-
};
|
|
70
|
-
opacity: {
|
|
71
|
-
type: NumberConstructor;
|
|
72
|
-
default: number;
|
|
73
|
-
};
|
|
74
|
-
deadline: {
|
|
75
|
-
type: StringConstructor;
|
|
76
|
-
default: string;
|
|
77
|
-
};
|
|
78
|
-
mainColor: {
|
|
79
|
-
type: StringConstructor;
|
|
80
|
-
default: string;
|
|
81
|
-
};
|
|
82
|
-
mainFlipBackgroundColor: {
|
|
83
|
-
type: StringConstructor;
|
|
84
|
-
default: string;
|
|
85
|
-
};
|
|
86
|
-
labelColor: {
|
|
87
|
-
type: StringConstructor;
|
|
88
|
-
default: string;
|
|
89
|
-
};
|
|
90
|
-
showLabels: {
|
|
91
|
-
type: BooleanConstructor;
|
|
92
|
-
required: false;
|
|
93
|
-
default: boolean;
|
|
94
|
-
};
|
|
95
|
-
flipAnimation: {
|
|
96
|
-
type: BooleanConstructor;
|
|
97
|
-
required: false;
|
|
98
|
-
default: boolean;
|
|
99
|
-
};
|
|
100
|
-
language: {
|
|
101
|
-
type: StringConstructor;
|
|
102
|
-
required: false;
|
|
103
|
-
default: string;
|
|
104
|
-
};
|
|
105
|
-
size: {
|
|
106
|
-
type: StringConstructor;
|
|
107
|
-
required: false;
|
|
108
|
-
default: string;
|
|
109
|
-
};
|
|
16
|
+
[x: string]: any;
|
|
110
17
|
}>>, {
|
|
111
|
-
|
|
112
|
-
size: string;
|
|
113
|
-
top: string;
|
|
114
|
-
opacity: number;
|
|
115
|
-
deadline: string;
|
|
116
|
-
mainColor: string;
|
|
117
|
-
mainFlipBackgroundColor: string;
|
|
118
|
-
labelColor: string;
|
|
119
|
-
showLabels: boolean;
|
|
120
|
-
flipAnimation: boolean;
|
|
121
|
-
language: string;
|
|
18
|
+
[x: string]: any;
|
|
122
19
|
}, {}>;
|
|
123
20
|
export default _default;
|
|
@@ -253,6 +253,10 @@ export declare const calendarDefaultProps: {
|
|
|
253
253
|
export declare const countdownDefaultProps: {
|
|
254
254
|
left: string;
|
|
255
255
|
top: string;
|
|
256
|
+
width: string;
|
|
257
|
+
height: string;
|
|
258
|
+
position: string;
|
|
259
|
+
boxShadow: string;
|
|
256
260
|
opacity: number;
|
|
257
261
|
mainColor: string;
|
|
258
262
|
mainFlipBackgroundColor: string;
|
|
@@ -554,6 +558,10 @@ export declare const componentsDefaultProps: {
|
|
|
554
558
|
props: {
|
|
555
559
|
left: string;
|
|
556
560
|
top: string;
|
|
561
|
+
width: string;
|
|
562
|
+
height: string;
|
|
563
|
+
position: string;
|
|
564
|
+
boxShadow: string;
|
|
557
565
|
opacity: number;
|
|
558
566
|
mainColor: string;
|
|
559
567
|
mainFlipBackgroundColor: string;
|
|
@@ -1,8 +1,4 @@
|
|
|
1
1
|
|
|
2
|
-
.uni-image-component {
|
|
3
|
-
max-width: 100%;
|
|
4
|
-
}
|
|
5
|
-
|
|
6
2
|
h2.uni-text-component, p.uni-text-component {
|
|
7
3
|
margin-bottom: 0;
|
|
8
4
|
}
|
|
@@ -87,14 +83,10 @@ body, html {
|
|
|
87
83
|
transform: translate3d(-50%, -50%, 0);
|
|
88
84
|
}
|
|
89
85
|
}
|
|
90
|
-
|
|
91
|
-
.
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
left: 7px;
|
|
95
|
-
font-size: 12px;
|
|
96
|
-
color: #666
|
|
97
|
-
}
|
|
86
|
+
|
|
87
|
+
.uni-image-component {
|
|
88
|
+
max-width: 100%;
|
|
89
|
+
}
|
|
98
90
|
|
|
99
91
|
.uni-video-component {
|
|
100
92
|
position: relative;
|
|
@@ -117,26 +109,17 @@ body, html {
|
|
|
117
109
|
background: rgba(0, 0, 0, 0.8);
|
|
118
110
|
}
|
|
119
111
|
|
|
120
|
-
.
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
.icon-heart {
|
|
128
|
-
font-size: 24px;
|
|
129
|
-
color: #e74c3c;
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
.liked {
|
|
133
|
-
color: #f00; /* 更改颜色以示已赞 */
|
|
112
|
+
.slot-number {
|
|
113
|
+
position: absolute;
|
|
114
|
+
bottom: 2px;
|
|
115
|
+
left: 7px;
|
|
116
|
+
font-size: 12px;
|
|
117
|
+
color: #666
|
|
134
118
|
}
|
|
135
119
|
|
|
136
|
-
.
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
color: #333;
|
|
120
|
+
.effect {
|
|
121
|
+
width: 100%;
|
|
122
|
+
height: 100%;
|
|
140
123
|
}
|
|
141
124
|
|
|
142
125
|
.ant-input-number {
|
|
@@ -174,9 +157,26 @@ body, html {
|
|
|
174
157
|
vertical-align: top;
|
|
175
158
|
}
|
|
176
159
|
|
|
177
|
-
.
|
|
178
|
-
|
|
179
|
-
|
|
160
|
+
.like-button {
|
|
161
|
+
display: flex;
|
|
162
|
+
flex-direction: column;
|
|
163
|
+
align-items: center;
|
|
164
|
+
cursor: pointer;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
.icon-heart {
|
|
168
|
+
font-size: 24px;
|
|
169
|
+
color: #e74c3c;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
.liked {
|
|
173
|
+
color: #f00; /* 更改颜色以示已赞 */
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
.like-count {
|
|
177
|
+
margin-top: 4px;
|
|
178
|
+
font-size: 16px;
|
|
179
|
+
color: #333;
|
|
180
180
|
}
|
|
181
181
|
|
|
182
182
|
.swiper-warp {
|
|
@@ -5078,11 +5078,15 @@ const calendarDefaultProps = {
|
|
|
5078
5078
|
language: 'en',
|
|
5079
5079
|
};
|
|
5080
5080
|
const countdownDefaultProps = {
|
|
5081
|
-
left: '
|
|
5082
|
-
top: '
|
|
5081
|
+
left: '0px',
|
|
5082
|
+
top: '324.5px',
|
|
5083
|
+
width: '375px',
|
|
5084
|
+
height: '85px',
|
|
5085
|
+
position: 'absolute',
|
|
5086
|
+
boxShadow: 'rgb(153, 153, 153) 0px 0px 0px',
|
|
5083
5087
|
opacity: 1,
|
|
5084
|
-
mainColor: '
|
|
5085
|
-
mainFlipBackgroundColor: '
|
|
5088
|
+
mainColor: 'white',
|
|
5089
|
+
mainFlipBackgroundColor: 'black',
|
|
5086
5090
|
labelColor: 'blue',
|
|
5087
5091
|
showLabels: true,
|
|
5088
5092
|
language: 'th',
|
|
@@ -5284,9 +5288,9 @@ const transformToComponentProps = (props, extraProps) => {
|
|
|
5284
5288
|
}
|
|
5285
5289
|
};
|
|
5286
5290
|
|
|
5287
|
-
const defaultStyles$
|
|
5291
|
+
const defaultStyles$3 = without$1(Object.keys(textDefaultProps), 'actionType', 'url', 'text');
|
|
5288
5292
|
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types, @typescript-eslint/no-explicit-any
|
|
5289
|
-
const useStylePick = (props, pickStyles = defaultStyles$
|
|
5293
|
+
const useStylePick = (props, pickStyles = defaultStyles$3) => {
|
|
5290
5294
|
return computed(() => pick$1(props, pickStyles));
|
|
5291
5295
|
};
|
|
5292
5296
|
|
|
@@ -5300,19 +5304,19 @@ const useComponentClick = (props) => {
|
|
|
5300
5304
|
return handleClick;
|
|
5301
5305
|
};
|
|
5302
5306
|
|
|
5303
|
-
const extraProps
|
|
5307
|
+
const extraProps = {
|
|
5304
5308
|
tag: {
|
|
5305
5309
|
type: String,
|
|
5306
5310
|
default: 'p'
|
|
5307
5311
|
},
|
|
5308
5312
|
...isEditingProp
|
|
5309
5313
|
};
|
|
5310
|
-
const defaultProps$
|
|
5314
|
+
const defaultProps$b = transformToComponentProps(componentsDefaultProps['uni-text'].props, extraProps);
|
|
5311
5315
|
// array that contains style props
|
|
5312
5316
|
var script$j = defineComponent({
|
|
5313
5317
|
name: 'uni-text',
|
|
5314
5318
|
props: {
|
|
5315
|
-
...defaultProps$
|
|
5319
|
+
...defaultProps$b
|
|
5316
5320
|
},
|
|
5317
5321
|
setup(props) {
|
|
5318
5322
|
const styleProps = useStylePick(props);
|
|
@@ -5379,12 +5383,12 @@ script$i.install = (app) => {
|
|
|
5379
5383
|
app.component(script$i.name, script$i);
|
|
5380
5384
|
};
|
|
5381
5385
|
|
|
5382
|
-
const defaultProps$
|
|
5386
|
+
const defaultProps$a = transformToComponentProps(componentsDefaultProps['uni-shape'].props, isEditingProp);
|
|
5383
5387
|
// array that contains style props
|
|
5384
5388
|
var script$h = defineComponent({
|
|
5385
5389
|
name: 'uni-shape',
|
|
5386
5390
|
props: {
|
|
5387
|
-
...defaultProps$
|
|
5391
|
+
...defaultProps$a
|
|
5388
5392
|
},
|
|
5389
5393
|
setup(props) {
|
|
5390
5394
|
const styleProps = useStylePick(props);
|
|
@@ -13131,16 +13135,16 @@ script$f.install = (app) => {
|
|
|
13131
13135
|
app.component(script$f.name, script$f);
|
|
13132
13136
|
};
|
|
13133
13137
|
|
|
13134
|
-
const defaultProps$
|
|
13135
|
-
const defaultStyles$
|
|
13138
|
+
const defaultProps$9 = transformToComponentProps(componentsDefaultProps['uni-background'].props, isEditingProp);
|
|
13139
|
+
const defaultStyles$2 = Object.keys(backgroundDefaultProps);
|
|
13136
13140
|
// array that contains style props
|
|
13137
13141
|
var script$e = defineComponent({
|
|
13138
13142
|
name: 'uni-background',
|
|
13139
13143
|
props: {
|
|
13140
|
-
...defaultProps$
|
|
13144
|
+
...defaultProps$9
|
|
13141
13145
|
},
|
|
13142
13146
|
setup(props) {
|
|
13143
|
-
const styleProps = useStylePick(props, defaultStyles$
|
|
13147
|
+
const styleProps = useStylePick(props, defaultStyles$2);
|
|
13144
13148
|
const handleClick = useComponentClick(props);
|
|
13145
13149
|
return {
|
|
13146
13150
|
styleProps,
|
|
@@ -13165,12 +13169,12 @@ script$e.install = (app) => {
|
|
|
13165
13169
|
app.component(script$e.name, script$e);
|
|
13166
13170
|
};
|
|
13167
13171
|
|
|
13168
|
-
const defaultProps$
|
|
13172
|
+
const defaultProps$8 = transformToComponentProps(componentsDefaultProps['uni-video'].props, isEditingProp);
|
|
13169
13173
|
// array that contains style props
|
|
13170
13174
|
var script$d = defineComponent({
|
|
13171
13175
|
name: 'uni-video',
|
|
13172
13176
|
props: {
|
|
13173
|
-
...defaultProps$
|
|
13177
|
+
...defaultProps$8,
|
|
13174
13178
|
videoSrc: {
|
|
13175
13179
|
type: String,
|
|
13176
13180
|
default: ''
|
|
@@ -15698,11 +15702,11 @@ const now$3 = new Date();
|
|
|
15698
15702
|
// 添加一天
|
|
15699
15703
|
now$3.setDate(now$3.getDate() + 1);
|
|
15700
15704
|
// 格式化日期和时间
|
|
15701
|
-
const year$
|
|
15702
|
-
const month$
|
|
15703
|
-
const day$
|
|
15705
|
+
const year$1 = now$3.getFullYear();
|
|
15706
|
+
const month$1 = String(now$3.getMonth() + 1).padStart(2, '0'); // 月份是从0开始的
|
|
15707
|
+
const day$1 = String(now$3.getDate()).padStart(2, '0');
|
|
15704
15708
|
// 拼接成最终的字符串
|
|
15705
|
-
const formattedDate$
|
|
15709
|
+
const formattedDate$1 = `${year$1}-${month$1}-${day$1}`;
|
|
15706
15710
|
// interface CalendarData {
|
|
15707
15711
|
// date: string;
|
|
15708
15712
|
// value: string;
|
|
@@ -15730,7 +15734,7 @@ var script$c = defineComponent({
|
|
|
15730
15734
|
},
|
|
15731
15735
|
weddingDate: {
|
|
15732
15736
|
type: String,
|
|
15733
|
-
default: formattedDate$
|
|
15737
|
+
default: formattedDate$1
|
|
15734
15738
|
},
|
|
15735
15739
|
backgroundColor: {
|
|
15736
15740
|
type: String,
|
|
@@ -16020,11 +16024,11 @@ const now$2 = new Date();
|
|
|
16020
16024
|
// 添加一天
|
|
16021
16025
|
now$2.setDate(now$2.getDate() + 1);
|
|
16022
16026
|
// 格式化日期和时间
|
|
16023
|
-
const year
|
|
16024
|
-
const month
|
|
16025
|
-
const day
|
|
16027
|
+
const year = now$2.getFullYear();
|
|
16028
|
+
const month = String(now$2.getMonth() + 1).padStart(2, '0'); // 月份是从0开始的
|
|
16029
|
+
const day = String(now$2.getDate()).padStart(2, '0');
|
|
16026
16030
|
// 拼接成最终的字符串
|
|
16027
|
-
const formattedDate
|
|
16031
|
+
const formattedDate = `${year}-${month}-${day}`;
|
|
16028
16032
|
// array that contains style props
|
|
16029
16033
|
var script$b = defineComponent({
|
|
16030
16034
|
name: 'uni-calendar',
|
|
@@ -16048,7 +16052,7 @@ var script$b = defineComponent({
|
|
|
16048
16052
|
},
|
|
16049
16053
|
date: {
|
|
16050
16054
|
type: String,
|
|
16051
|
-
default: formattedDate
|
|
16055
|
+
default: formattedDate
|
|
16052
16056
|
},
|
|
16053
16057
|
backgroundColor: {
|
|
16054
16058
|
type: String,
|
|
@@ -21604,9 +21608,9 @@ function makeGetter(name) {
|
|
|
21604
21608
|
}
|
|
21605
21609
|
|
|
21606
21610
|
var milliseconds = makeGetter('milliseconds'),
|
|
21607
|
-
seconds
|
|
21608
|
-
minutes
|
|
21609
|
-
hours
|
|
21611
|
+
seconds = makeGetter('seconds'),
|
|
21612
|
+
minutes = makeGetter('minutes'),
|
|
21613
|
+
hours = makeGetter('hours'),
|
|
21610
21614
|
days = makeGetter('days'),
|
|
21611
21615
|
months = makeGetter('months'),
|
|
21612
21616
|
years = makeGetter('years');
|
|
@@ -21817,9 +21821,9 @@ proto._bubble = bubble;
|
|
|
21817
21821
|
proto.clone = clone;
|
|
21818
21822
|
proto.get = get$1;
|
|
21819
21823
|
proto.milliseconds = milliseconds;
|
|
21820
|
-
proto.seconds = seconds
|
|
21821
|
-
proto.minutes = minutes
|
|
21822
|
-
proto.hours = hours
|
|
21824
|
+
proto.seconds = seconds;
|
|
21825
|
+
proto.minutes = minutes;
|
|
21826
|
+
proto.hours = hours;
|
|
21823
21827
|
proto.days = days;
|
|
21824
21828
|
proto.weeks = weeks;
|
|
21825
21829
|
proto.months = months;
|
|
@@ -22269,72 +22273,24 @@ script$a.render = render$b;
|
|
|
22269
22273
|
script$a.__scopeId = "data-v-47d33153";
|
|
22270
22274
|
script$a.__file = "src/components/UniCountdown/Countdown.vue";
|
|
22271
22275
|
|
|
22272
|
-
transformToComponentProps(componentsDefaultProps['uni-countdown'].props, isEditingProp);
|
|
22276
|
+
const defaultProps$7 = transformToComponentProps(componentsDefaultProps['uni-countdown'].props, isEditingProp);
|
|
22277
|
+
const defaultStyles$1 = without$1(Object.keys(countdownDefaultProps), 'actionType', 'url', 'mainColor', 'mainFlipBackgroundColor', 'labelColor', 'showLabels', 'language', 'size', 'flipAnimation', 'deadline');
|
|
22273
22278
|
// 获取当前日期和时间
|
|
22274
22279
|
const now = new Date();
|
|
22275
22280
|
// 添加一天
|
|
22276
22281
|
now.setDate(now.getDate() + 1);
|
|
22277
22282
|
// 格式化日期和时间
|
|
22278
|
-
|
|
22279
|
-
|
|
22280
|
-
|
|
22281
|
-
|
|
22282
|
-
|
|
22283
|
-
|
|
22284
|
-
// 拼接成最终的字符串
|
|
22285
|
-
const formattedDate = `${year}-${month}-${day} ${hours}:${minutes}:${seconds}`;
|
|
22283
|
+
now.getFullYear();
|
|
22284
|
+
String(now.getMonth() + 1).padStart(2, '0'); // 月份是从0开始的
|
|
22285
|
+
String(now.getDate()).padStart(2, '0');
|
|
22286
|
+
String(now.getHours()).padStart(2, '0');
|
|
22287
|
+
String(now.getMinutes()).padStart(2, '0');
|
|
22288
|
+
String(now.getSeconds()).padStart(2, '0');
|
|
22286
22289
|
// array that contains style props
|
|
22287
22290
|
var script$9 = defineComponent({
|
|
22288
22291
|
name: 'uni-countdown',
|
|
22289
22292
|
props: {
|
|
22290
|
-
|
|
22291
|
-
type: String,
|
|
22292
|
-
default: '25px'
|
|
22293
|
-
},
|
|
22294
|
-
top: {
|
|
22295
|
-
type: String,
|
|
22296
|
-
default: '204.5px'
|
|
22297
|
-
},
|
|
22298
|
-
opacity: {
|
|
22299
|
-
type: Number,
|
|
22300
|
-
default: 1
|
|
22301
|
-
},
|
|
22302
|
-
deadline: {
|
|
22303
|
-
type: String,
|
|
22304
|
-
default: formattedDate
|
|
22305
|
-
},
|
|
22306
|
-
mainColor: {
|
|
22307
|
-
type: String,
|
|
22308
|
-
default: '#EC685C' // 上层时间颜色
|
|
22309
|
-
},
|
|
22310
|
-
mainFlipBackgroundColor: {
|
|
22311
|
-
type: String,
|
|
22312
|
-
default: '#222222' // 上层背景颜色
|
|
22313
|
-
},
|
|
22314
|
-
labelColor: {
|
|
22315
|
-
type: String,
|
|
22316
|
-
default: '#222222' // 时间单位颜色
|
|
22317
|
-
},
|
|
22318
|
-
showLabels: {
|
|
22319
|
-
type: Boolean,
|
|
22320
|
-
required: false,
|
|
22321
|
-
default: true
|
|
22322
|
-
},
|
|
22323
|
-
flipAnimation: {
|
|
22324
|
-
type: Boolean,
|
|
22325
|
-
required: false,
|
|
22326
|
-
default: true
|
|
22327
|
-
},
|
|
22328
|
-
language: {
|
|
22329
|
-
type: String,
|
|
22330
|
-
required: false,
|
|
22331
|
-
default: 'en'
|
|
22332
|
-
},
|
|
22333
|
-
size: {
|
|
22334
|
-
type: String,
|
|
22335
|
-
required: false,
|
|
22336
|
-
default: "middle"
|
|
22337
|
-
},
|
|
22293
|
+
...defaultProps$7,
|
|
22338
22294
|
},
|
|
22339
22295
|
components: {
|
|
22340
22296
|
Countdown: script$a
|
|
@@ -22342,7 +22298,7 @@ var script$9 = defineComponent({
|
|
|
22342
22298
|
setup(props) {
|
|
22343
22299
|
// 重用并且简化
|
|
22344
22300
|
// 抽离并且获得 styleProps
|
|
22345
|
-
const styleProps = useStylePick(props);
|
|
22301
|
+
const styleProps = useStylePick(props, defaultStyles$1);
|
|
22346
22302
|
const handleClick = useComponentClick(props);
|
|
22347
22303
|
const labelSize = computed(() => {
|
|
22348
22304
|
if (props.size == 'middle') {
|
|
@@ -22398,8 +22354,9 @@ function render$a(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
22398
22354
|
const _component_Countdown = resolveComponent("Countdown");
|
|
22399
22355
|
|
|
22400
22356
|
return (openBlock(), createElementBlock("div", {
|
|
22401
|
-
|
|
22402
|
-
style: normalizeStyle$1(
|
|
22357
|
+
onClick: _cache[0] || (_cache[0] = withModifiers((...args) => (_ctx.handleClick && _ctx.handleClick(...args)), ["prevent"])),
|
|
22358
|
+
style: normalizeStyle$1(_ctx.styleProps),
|
|
22359
|
+
class: "uni-countdown-component"
|
|
22403
22360
|
}, [
|
|
22404
22361
|
createVNode(_component_Countdown, {
|
|
22405
22362
|
deadline: _ctx.deadline,
|
|
@@ -75542,14 +75499,7 @@ script$2.install = (app) => {
|
|
|
75542
75499
|
app.component(script$2.name, script$2);
|
|
75543
75500
|
};
|
|
75544
75501
|
|
|
75545
|
-
const
|
|
75546
|
-
buttonText: {
|
|
75547
|
-
type: String,
|
|
75548
|
-
default: 'Link'
|
|
75549
|
-
},
|
|
75550
|
-
...isEditingProp
|
|
75551
|
-
};
|
|
75552
|
-
const defaultProps = transformToComponentProps(componentsDefaultProps['uni-button'].props, extraProps);
|
|
75502
|
+
const defaultProps = transformToComponentProps(componentsDefaultProps['uni-button'].props, isEditingProp);
|
|
75553
75503
|
const defaultStyles = without$1(Object.keys(buttonDefaultProps), 'actionType', 'url', 'buttonText');
|
|
75554
75504
|
// array that contains style props
|
|
75555
75505
|
var script$1 = defineComponent({
|
|
@@ -5085,11 +5085,15 @@
|
|
|
5085
5085
|
language: 'en',
|
|
5086
5086
|
};
|
|
5087
5087
|
const countdownDefaultProps = {
|
|
5088
|
-
left: '
|
|
5089
|
-
top: '
|
|
5088
|
+
left: '0px',
|
|
5089
|
+
top: '324.5px',
|
|
5090
|
+
width: '375px',
|
|
5091
|
+
height: '85px',
|
|
5092
|
+
position: 'absolute',
|
|
5093
|
+
boxShadow: 'rgb(153, 153, 153) 0px 0px 0px',
|
|
5090
5094
|
opacity: 1,
|
|
5091
|
-
mainColor: '
|
|
5092
|
-
mainFlipBackgroundColor: '
|
|
5095
|
+
mainColor: 'white',
|
|
5096
|
+
mainFlipBackgroundColor: 'black',
|
|
5093
5097
|
labelColor: 'blue',
|
|
5094
5098
|
showLabels: true,
|
|
5095
5099
|
language: 'th',
|
|
@@ -5291,9 +5295,9 @@
|
|
|
5291
5295
|
}
|
|
5292
5296
|
};
|
|
5293
5297
|
|
|
5294
|
-
const defaultStyles$
|
|
5298
|
+
const defaultStyles$3 = without$1(Object.keys(textDefaultProps), 'actionType', 'url', 'text');
|
|
5295
5299
|
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types, @typescript-eslint/no-explicit-any
|
|
5296
|
-
const useStylePick = (props, pickStyles = defaultStyles$
|
|
5300
|
+
const useStylePick = (props, pickStyles = defaultStyles$3) => {
|
|
5297
5301
|
return vue.computed(() => pick$1(props, pickStyles));
|
|
5298
5302
|
};
|
|
5299
5303
|
|
|
@@ -5307,19 +5311,19 @@
|
|
|
5307
5311
|
return handleClick;
|
|
5308
5312
|
};
|
|
5309
5313
|
|
|
5310
|
-
const extraProps
|
|
5314
|
+
const extraProps = {
|
|
5311
5315
|
tag: {
|
|
5312
5316
|
type: String,
|
|
5313
5317
|
default: 'p'
|
|
5314
5318
|
},
|
|
5315
5319
|
...isEditingProp
|
|
5316
5320
|
};
|
|
5317
|
-
const defaultProps$
|
|
5321
|
+
const defaultProps$b = transformToComponentProps(componentsDefaultProps['uni-text'].props, extraProps);
|
|
5318
5322
|
// array that contains style props
|
|
5319
5323
|
var script$j = vue.defineComponent({
|
|
5320
5324
|
name: 'uni-text',
|
|
5321
5325
|
props: {
|
|
5322
|
-
...defaultProps$
|
|
5326
|
+
...defaultProps$b
|
|
5323
5327
|
},
|
|
5324
5328
|
setup(props) {
|
|
5325
5329
|
const styleProps = useStylePick(props);
|
|
@@ -5386,12 +5390,12 @@
|
|
|
5386
5390
|
app.component(script$i.name, script$i);
|
|
5387
5391
|
};
|
|
5388
5392
|
|
|
5389
|
-
const defaultProps$
|
|
5393
|
+
const defaultProps$a = transformToComponentProps(componentsDefaultProps['uni-shape'].props, isEditingProp);
|
|
5390
5394
|
// array that contains style props
|
|
5391
5395
|
var script$h = vue.defineComponent({
|
|
5392
5396
|
name: 'uni-shape',
|
|
5393
5397
|
props: {
|
|
5394
|
-
...defaultProps$
|
|
5398
|
+
...defaultProps$a
|
|
5395
5399
|
},
|
|
5396
5400
|
setup(props) {
|
|
5397
5401
|
const styleProps = useStylePick(props);
|
|
@@ -13138,16 +13142,16 @@
|
|
|
13138
13142
|
app.component(script$f.name, script$f);
|
|
13139
13143
|
};
|
|
13140
13144
|
|
|
13141
|
-
const defaultProps$
|
|
13142
|
-
const defaultStyles$
|
|
13145
|
+
const defaultProps$9 = transformToComponentProps(componentsDefaultProps['uni-background'].props, isEditingProp);
|
|
13146
|
+
const defaultStyles$2 = Object.keys(backgroundDefaultProps);
|
|
13143
13147
|
// array that contains style props
|
|
13144
13148
|
var script$e = vue.defineComponent({
|
|
13145
13149
|
name: 'uni-background',
|
|
13146
13150
|
props: {
|
|
13147
|
-
...defaultProps$
|
|
13151
|
+
...defaultProps$9
|
|
13148
13152
|
},
|
|
13149
13153
|
setup(props) {
|
|
13150
|
-
const styleProps = useStylePick(props, defaultStyles$
|
|
13154
|
+
const styleProps = useStylePick(props, defaultStyles$2);
|
|
13151
13155
|
const handleClick = useComponentClick(props);
|
|
13152
13156
|
return {
|
|
13153
13157
|
styleProps,
|
|
@@ -13172,12 +13176,12 @@
|
|
|
13172
13176
|
app.component(script$e.name, script$e);
|
|
13173
13177
|
};
|
|
13174
13178
|
|
|
13175
|
-
const defaultProps$
|
|
13179
|
+
const defaultProps$8 = transformToComponentProps(componentsDefaultProps['uni-video'].props, isEditingProp);
|
|
13176
13180
|
// array that contains style props
|
|
13177
13181
|
var script$d = vue.defineComponent({
|
|
13178
13182
|
name: 'uni-video',
|
|
13179
13183
|
props: {
|
|
13180
|
-
...defaultProps$
|
|
13184
|
+
...defaultProps$8,
|
|
13181
13185
|
videoSrc: {
|
|
13182
13186
|
type: String,
|
|
13183
13187
|
default: ''
|
|
@@ -15705,11 +15709,11 @@
|
|
|
15705
15709
|
// 添加一天
|
|
15706
15710
|
now$3.setDate(now$3.getDate() + 1);
|
|
15707
15711
|
// 格式化日期和时间
|
|
15708
|
-
const year$
|
|
15709
|
-
const month$
|
|
15710
|
-
const day$
|
|
15712
|
+
const year$1 = now$3.getFullYear();
|
|
15713
|
+
const month$1 = String(now$3.getMonth() + 1).padStart(2, '0'); // 月份是从0开始的
|
|
15714
|
+
const day$1 = String(now$3.getDate()).padStart(2, '0');
|
|
15711
15715
|
// 拼接成最终的字符串
|
|
15712
|
-
const formattedDate$
|
|
15716
|
+
const formattedDate$1 = `${year$1}-${month$1}-${day$1}`;
|
|
15713
15717
|
// interface CalendarData {
|
|
15714
15718
|
// date: string;
|
|
15715
15719
|
// value: string;
|
|
@@ -15737,7 +15741,7 @@
|
|
|
15737
15741
|
},
|
|
15738
15742
|
weddingDate: {
|
|
15739
15743
|
type: String,
|
|
15740
|
-
default: formattedDate$
|
|
15744
|
+
default: formattedDate$1
|
|
15741
15745
|
},
|
|
15742
15746
|
backgroundColor: {
|
|
15743
15747
|
type: String,
|
|
@@ -16027,11 +16031,11 @@
|
|
|
16027
16031
|
// 添加一天
|
|
16028
16032
|
now$2.setDate(now$2.getDate() + 1);
|
|
16029
16033
|
// 格式化日期和时间
|
|
16030
|
-
const year
|
|
16031
|
-
const month
|
|
16032
|
-
const day
|
|
16034
|
+
const year = now$2.getFullYear();
|
|
16035
|
+
const month = String(now$2.getMonth() + 1).padStart(2, '0'); // 月份是从0开始的
|
|
16036
|
+
const day = String(now$2.getDate()).padStart(2, '0');
|
|
16033
16037
|
// 拼接成最终的字符串
|
|
16034
|
-
const formattedDate
|
|
16038
|
+
const formattedDate = `${year}-${month}-${day}`;
|
|
16035
16039
|
// array that contains style props
|
|
16036
16040
|
var script$b = vue.defineComponent({
|
|
16037
16041
|
name: 'uni-calendar',
|
|
@@ -16055,7 +16059,7 @@
|
|
|
16055
16059
|
},
|
|
16056
16060
|
date: {
|
|
16057
16061
|
type: String,
|
|
16058
|
-
default: formattedDate
|
|
16062
|
+
default: formattedDate
|
|
16059
16063
|
},
|
|
16060
16064
|
backgroundColor: {
|
|
16061
16065
|
type: String,
|
|
@@ -21611,9 +21615,9 @@
|
|
|
21611
21615
|
}
|
|
21612
21616
|
|
|
21613
21617
|
var milliseconds = makeGetter('milliseconds'),
|
|
21614
|
-
seconds
|
|
21615
|
-
minutes
|
|
21616
|
-
hours
|
|
21618
|
+
seconds = makeGetter('seconds'),
|
|
21619
|
+
minutes = makeGetter('minutes'),
|
|
21620
|
+
hours = makeGetter('hours'),
|
|
21617
21621
|
days = makeGetter('days'),
|
|
21618
21622
|
months = makeGetter('months'),
|
|
21619
21623
|
years = makeGetter('years');
|
|
@@ -21824,9 +21828,9 @@
|
|
|
21824
21828
|
proto.clone = clone;
|
|
21825
21829
|
proto.get = get$1;
|
|
21826
21830
|
proto.milliseconds = milliseconds;
|
|
21827
|
-
proto.seconds = seconds
|
|
21828
|
-
proto.minutes = minutes
|
|
21829
|
-
proto.hours = hours
|
|
21831
|
+
proto.seconds = seconds;
|
|
21832
|
+
proto.minutes = minutes;
|
|
21833
|
+
proto.hours = hours;
|
|
21830
21834
|
proto.days = days;
|
|
21831
21835
|
proto.weeks = weeks;
|
|
21832
21836
|
proto.months = months;
|
|
@@ -22276,72 +22280,24 @@
|
|
|
22276
22280
|
script$a.__scopeId = "data-v-47d33153";
|
|
22277
22281
|
script$a.__file = "src/components/UniCountdown/Countdown.vue";
|
|
22278
22282
|
|
|
22279
|
-
transformToComponentProps(componentsDefaultProps['uni-countdown'].props, isEditingProp);
|
|
22283
|
+
const defaultProps$7 = transformToComponentProps(componentsDefaultProps['uni-countdown'].props, isEditingProp);
|
|
22284
|
+
const defaultStyles$1 = without$1(Object.keys(countdownDefaultProps), 'actionType', 'url', 'mainColor', 'mainFlipBackgroundColor', 'labelColor', 'showLabels', 'language', 'size', 'flipAnimation', 'deadline');
|
|
22280
22285
|
// 获取当前日期和时间
|
|
22281
22286
|
const now = new Date();
|
|
22282
22287
|
// 添加一天
|
|
22283
22288
|
now.setDate(now.getDate() + 1);
|
|
22284
22289
|
// 格式化日期和时间
|
|
22285
|
-
|
|
22286
|
-
|
|
22287
|
-
|
|
22288
|
-
|
|
22289
|
-
|
|
22290
|
-
|
|
22291
|
-
// 拼接成最终的字符串
|
|
22292
|
-
const formattedDate = `${year}-${month}-${day} ${hours}:${minutes}:${seconds}`;
|
|
22290
|
+
now.getFullYear();
|
|
22291
|
+
String(now.getMonth() + 1).padStart(2, '0'); // 月份是从0开始的
|
|
22292
|
+
String(now.getDate()).padStart(2, '0');
|
|
22293
|
+
String(now.getHours()).padStart(2, '0');
|
|
22294
|
+
String(now.getMinutes()).padStart(2, '0');
|
|
22295
|
+
String(now.getSeconds()).padStart(2, '0');
|
|
22293
22296
|
// array that contains style props
|
|
22294
22297
|
var script$9 = vue.defineComponent({
|
|
22295
22298
|
name: 'uni-countdown',
|
|
22296
22299
|
props: {
|
|
22297
|
-
|
|
22298
|
-
type: String,
|
|
22299
|
-
default: '25px'
|
|
22300
|
-
},
|
|
22301
|
-
top: {
|
|
22302
|
-
type: String,
|
|
22303
|
-
default: '204.5px'
|
|
22304
|
-
},
|
|
22305
|
-
opacity: {
|
|
22306
|
-
type: Number,
|
|
22307
|
-
default: 1
|
|
22308
|
-
},
|
|
22309
|
-
deadline: {
|
|
22310
|
-
type: String,
|
|
22311
|
-
default: formattedDate
|
|
22312
|
-
},
|
|
22313
|
-
mainColor: {
|
|
22314
|
-
type: String,
|
|
22315
|
-
default: '#EC685C' // 上层时间颜色
|
|
22316
|
-
},
|
|
22317
|
-
mainFlipBackgroundColor: {
|
|
22318
|
-
type: String,
|
|
22319
|
-
default: '#222222' // 上层背景颜色
|
|
22320
|
-
},
|
|
22321
|
-
labelColor: {
|
|
22322
|
-
type: String,
|
|
22323
|
-
default: '#222222' // 时间单位颜色
|
|
22324
|
-
},
|
|
22325
|
-
showLabels: {
|
|
22326
|
-
type: Boolean,
|
|
22327
|
-
required: false,
|
|
22328
|
-
default: true
|
|
22329
|
-
},
|
|
22330
|
-
flipAnimation: {
|
|
22331
|
-
type: Boolean,
|
|
22332
|
-
required: false,
|
|
22333
|
-
default: true
|
|
22334
|
-
},
|
|
22335
|
-
language: {
|
|
22336
|
-
type: String,
|
|
22337
|
-
required: false,
|
|
22338
|
-
default: 'en'
|
|
22339
|
-
},
|
|
22340
|
-
size: {
|
|
22341
|
-
type: String,
|
|
22342
|
-
required: false,
|
|
22343
|
-
default: "middle"
|
|
22344
|
-
},
|
|
22300
|
+
...defaultProps$7,
|
|
22345
22301
|
},
|
|
22346
22302
|
components: {
|
|
22347
22303
|
Countdown: script$a
|
|
@@ -22349,7 +22305,7 @@
|
|
|
22349
22305
|
setup(props) {
|
|
22350
22306
|
// 重用并且简化
|
|
22351
22307
|
// 抽离并且获得 styleProps
|
|
22352
|
-
const styleProps = useStylePick(props);
|
|
22308
|
+
const styleProps = useStylePick(props, defaultStyles$1);
|
|
22353
22309
|
const handleClick = useComponentClick(props);
|
|
22354
22310
|
const labelSize = vue.computed(() => {
|
|
22355
22311
|
if (props.size == 'middle') {
|
|
@@ -22405,8 +22361,9 @@
|
|
|
22405
22361
|
const _component_Countdown = vue.resolveComponent("Countdown");
|
|
22406
22362
|
|
|
22407
22363
|
return (vue.openBlock(), vue.createElementBlock("div", {
|
|
22408
|
-
|
|
22409
|
-
style: vue.normalizeStyle(
|
|
22364
|
+
onClick: _cache[0] || (_cache[0] = vue.withModifiers((...args) => (_ctx.handleClick && _ctx.handleClick(...args)), ["prevent"])),
|
|
22365
|
+
style: vue.normalizeStyle(_ctx.styleProps),
|
|
22366
|
+
class: "uni-countdown-component"
|
|
22410
22367
|
}, [
|
|
22411
22368
|
vue.createVNode(_component_Countdown, {
|
|
22412
22369
|
deadline: _ctx.deadline,
|
|
@@ -75549,14 +75506,7 @@ summary tabindex target title type usemap value width wmode wrap`;
|
|
|
75549
75506
|
app.component(script$2.name, script$2);
|
|
75550
75507
|
};
|
|
75551
75508
|
|
|
75552
|
-
const
|
|
75553
|
-
buttonText: {
|
|
75554
|
-
type: String,
|
|
75555
|
-
default: 'Link'
|
|
75556
|
-
},
|
|
75557
|
-
...isEditingProp
|
|
75558
|
-
};
|
|
75559
|
-
const defaultProps = transformToComponentProps(componentsDefaultProps['uni-button'].props, extraProps);
|
|
75509
|
+
const defaultProps = transformToComponentProps(componentsDefaultProps['uni-button'].props, isEditingProp);
|
|
75560
75510
|
const defaultStyles = without$1(Object.keys(buttonDefaultProps), 'actionType', 'url', 'buttonText');
|
|
75561
75511
|
// array that contains style props
|
|
75562
75512
|
var script$1 = vue.defineComponent({
|