unika-components 1.0.3 → 1.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/components/UniBackground/UniBackground.vue.d.ts +17 -0
- package/dist/src/components/UniBackground/index.d.ts +2 -0
- package/dist/src/defaultProps.d.ts +24 -6
- package/dist/src/index.d.ts +2 -1
- package/dist/unika-components.css +24 -0
- package/dist/unika-components.esm.js +137 -53
- package/dist/unika-components.umd.js +141 -56
- package/package.json +1 -1
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
|
2
|
+
watermark: {
|
|
3
|
+
type: BooleanConstructor;
|
|
4
|
+
default: boolean;
|
|
5
|
+
};
|
|
6
|
+
}, {
|
|
7
|
+
styleProps: import("vue").ComputedRef<Pick<any, string>>;
|
|
8
|
+
handleClick: () => void;
|
|
9
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
10
|
+
watermark: {
|
|
11
|
+
type: BooleanConstructor;
|
|
12
|
+
default: boolean;
|
|
13
|
+
};
|
|
14
|
+
}>>, {
|
|
15
|
+
watermark: boolean;
|
|
16
|
+
}, {}>;
|
|
17
|
+
export default _default;
|
|
@@ -113,9 +113,6 @@ export declare const textDefaultProps: {
|
|
|
113
113
|
textAlign: string;
|
|
114
114
|
color: string;
|
|
115
115
|
backgroundColor: string;
|
|
116
|
-
display: string;
|
|
117
|
-
alignItems: string;
|
|
118
|
-
justifyContent: string;
|
|
119
116
|
};
|
|
120
117
|
export declare const imageDefaultProps: {
|
|
121
118
|
actionType: string;
|
|
@@ -159,6 +156,17 @@ export declare const shapeDefaultProps: {
|
|
|
159
156
|
right: string;
|
|
160
157
|
backgroundColor: string;
|
|
161
158
|
};
|
|
159
|
+
export declare const backgroundDefaultProps: {
|
|
160
|
+
backgroundColor: string;
|
|
161
|
+
backgroundImage: string;
|
|
162
|
+
backgroundSize: string;
|
|
163
|
+
backgroundRepeat: string;
|
|
164
|
+
opacity: number;
|
|
165
|
+
height: string;
|
|
166
|
+
position: string;
|
|
167
|
+
left: string;
|
|
168
|
+
top: string;
|
|
169
|
+
};
|
|
162
170
|
export declare const componentsDefaultProps: {
|
|
163
171
|
'uni-text': {
|
|
164
172
|
props: {
|
|
@@ -190,9 +198,6 @@ export declare const componentsDefaultProps: {
|
|
|
190
198
|
textAlign: string;
|
|
191
199
|
color: string;
|
|
192
200
|
backgroundColor: string;
|
|
193
|
-
display: string;
|
|
194
|
-
alignItems: string;
|
|
195
|
-
justifyContent: string;
|
|
196
201
|
};
|
|
197
202
|
};
|
|
198
203
|
'uni-image': {
|
|
@@ -241,6 +246,19 @@ export declare const componentsDefaultProps: {
|
|
|
241
246
|
backgroundColor: string;
|
|
242
247
|
};
|
|
243
248
|
};
|
|
249
|
+
'uni-background': {
|
|
250
|
+
props: {
|
|
251
|
+
backgroundColor: string;
|
|
252
|
+
backgroundImage: string;
|
|
253
|
+
backgroundSize: string;
|
|
254
|
+
backgroundRepeat: string;
|
|
255
|
+
opacity: number;
|
|
256
|
+
height: string;
|
|
257
|
+
position: string;
|
|
258
|
+
left: string;
|
|
259
|
+
top: string;
|
|
260
|
+
};
|
|
261
|
+
};
|
|
244
262
|
};
|
|
245
263
|
export declare const isEditingProp: {
|
|
246
264
|
isEditing: {
|
package/dist/src/index.d.ts
CHANGED
|
@@ -4,8 +4,9 @@ import UniImage from './components/UniImage';
|
|
|
4
4
|
import UniShape from './components/UniShape';
|
|
5
5
|
import LongPage from './components/LongPage';
|
|
6
6
|
import SwiperPage from './components/SwiperPage';
|
|
7
|
+
import UniBackground from './components/UniBackground';
|
|
7
8
|
declare const install: (app: App) => void;
|
|
8
|
-
export { UniText, UniImage, UniShape, LongPage, SwiperPage, install };
|
|
9
|
+
export { UniText, UniImage, UniShape, LongPage, SwiperPage, UniBackground, install };
|
|
9
10
|
declare const _default: {
|
|
10
11
|
install: (app: App<any>) => void;
|
|
11
12
|
};
|
|
@@ -14,3 +14,27 @@ button.uni-text-component {
|
|
|
14
14
|
box-sizing: border-box;
|
|
15
15
|
white-space: pre-wrap;
|
|
16
16
|
}
|
|
17
|
+
|
|
18
|
+
.uni-background-component {
|
|
19
|
+
width: 100%;
|
|
20
|
+
}
|
|
21
|
+
.bg-img {
|
|
22
|
+
width: 100%;
|
|
23
|
+
height: 100%;
|
|
24
|
+
object-fit: cover;
|
|
25
|
+
z-index:1;
|
|
26
|
+
}
|
|
27
|
+
.watermark {
|
|
28
|
+
height: 100%;
|
|
29
|
+
position: absolute;
|
|
30
|
+
top: 0;
|
|
31
|
+
left: 0;
|
|
32
|
+
right: 0;
|
|
33
|
+
bottom: 0;
|
|
34
|
+
}
|
|
35
|
+
.watermark-div {
|
|
36
|
+
height: 100%;
|
|
37
|
+
width:100%;
|
|
38
|
+
position:absolute;
|
|
39
|
+
z-index:99999999;
|
|
40
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { computed, defineComponent, openBlock, createBlock, resolveDynamicComponent, withModifiers, normalizeStyle, withCtx, createTextVNode, toDisplayString, createElementBlock, Fragment, renderList, normalizeProps, guardReactiveProps } from 'vue';
|
|
1
|
+
import { computed, defineComponent, openBlock, createBlock, resolveDynamicComponent, withModifiers, normalizeStyle, withCtx, createTextVNode, toDisplayString, createElementBlock, Fragment, renderList, normalizeProps, guardReactiveProps, resolveComponent, createElementVNode, createVNode, createCommentVNode, pushScopeId, popScopeId } from 'vue';
|
|
2
2
|
|
|
3
3
|
/** Detect free variable `global` from Node.js. */
|
|
4
4
|
var freeGlobal = typeof global == 'object' && global && global.Object === Object && global;
|
|
@@ -3416,9 +3416,6 @@ const textDefaultProps = {
|
|
|
3416
3416
|
textAlign: 'left',
|
|
3417
3417
|
color: '#000000',
|
|
3418
3418
|
backgroundColor: '',
|
|
3419
|
-
display: 'flex',
|
|
3420
|
-
alignItems: 'center',
|
|
3421
|
-
justifyContent: 'center',
|
|
3422
3419
|
...commonDefaultProps
|
|
3423
3420
|
};
|
|
3424
3421
|
const imageDefaultProps = {
|
|
@@ -3429,6 +3426,17 @@ const shapeDefaultProps = {
|
|
|
3429
3426
|
backgroundColor: '',
|
|
3430
3427
|
...commonDefaultProps
|
|
3431
3428
|
};
|
|
3429
|
+
const backgroundDefaultProps = {
|
|
3430
|
+
backgroundColor: '#ffffff',
|
|
3431
|
+
backgroundImage: '',
|
|
3432
|
+
backgroundSize: 'cover',
|
|
3433
|
+
backgroundRepeat: 'no-repeat',
|
|
3434
|
+
opacity: 1,
|
|
3435
|
+
height: '735px',
|
|
3436
|
+
position: 'absolute',
|
|
3437
|
+
left: '0px',
|
|
3438
|
+
top: '0px'
|
|
3439
|
+
};
|
|
3432
3440
|
// this contains all default props for all the components
|
|
3433
3441
|
// useful for inserting new component into the store
|
|
3434
3442
|
const componentsDefaultProps = {
|
|
@@ -3440,6 +3448,9 @@ const componentsDefaultProps = {
|
|
|
3440
3448
|
},
|
|
3441
3449
|
'uni-shape': {
|
|
3442
3450
|
props: shapeDefaultProps
|
|
3451
|
+
},
|
|
3452
|
+
'uni-background': {
|
|
3453
|
+
props: backgroundDefaultProps
|
|
3443
3454
|
}
|
|
3444
3455
|
};
|
|
3445
3456
|
const isEditingProp = {
|
|
@@ -3487,12 +3498,12 @@ const extraProps = {
|
|
|
3487
3498
|
},
|
|
3488
3499
|
...isEditingProp
|
|
3489
3500
|
};
|
|
3490
|
-
const defaultProps$
|
|
3501
|
+
const defaultProps$2 = transformToComponentProps(componentsDefaultProps['uni-text'].props, extraProps);
|
|
3491
3502
|
// array that contains style props
|
|
3492
|
-
var script$
|
|
3503
|
+
var script$5 = defineComponent({
|
|
3493
3504
|
name: 'uni-text',
|
|
3494
3505
|
props: {
|
|
3495
|
-
...defaultProps$
|
|
3506
|
+
...defaultProps$2
|
|
3496
3507
|
},
|
|
3497
3508
|
setup(props) {
|
|
3498
3509
|
const styleProps = useStylePick(props);
|
|
@@ -3504,7 +3515,7 @@ var script$4 = defineComponent({
|
|
|
3504
3515
|
}
|
|
3505
3516
|
});
|
|
3506
3517
|
|
|
3507
|
-
function render$
|
|
3518
|
+
function render$5(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3508
3519
|
return (openBlock(), createBlock(resolveDynamicComponent(_ctx.tag), {
|
|
3509
3520
|
onClick: withModifiers(_ctx.handleClick, ["prevent"]),
|
|
3510
3521
|
style: normalizeStyle(_ctx.styleProps),
|
|
@@ -3517,16 +3528,16 @@ function render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3517
3528
|
}, 8 /* PROPS */, ["onClick", "style"]))
|
|
3518
3529
|
}
|
|
3519
3530
|
|
|
3520
|
-
script$
|
|
3521
|
-
script$
|
|
3522
|
-
script$
|
|
3531
|
+
script$5.render = render$5;
|
|
3532
|
+
script$5.__scopeId = "data-v-55ed80cb";
|
|
3533
|
+
script$5.__file = "src/components/UniText/UniText.vue";
|
|
3523
3534
|
|
|
3524
|
-
script$
|
|
3525
|
-
app.component(script$
|
|
3535
|
+
script$5.install = (app) => {
|
|
3536
|
+
app.component(script$5.name, script$5);
|
|
3526
3537
|
};
|
|
3527
3538
|
|
|
3528
3539
|
// array that contains style props
|
|
3529
|
-
var script$
|
|
3540
|
+
var script$4 = defineComponent({
|
|
3530
3541
|
name: 'uni-image',
|
|
3531
3542
|
props: transformToComponentProps(componentsDefaultProps['uni-image'].props, isEditingProp),
|
|
3532
3543
|
setup(props) {
|
|
@@ -3539,32 +3550,32 @@ var script$3 = defineComponent({
|
|
|
3539
3550
|
}
|
|
3540
3551
|
});
|
|
3541
3552
|
|
|
3542
|
-
const _hoisted_1$
|
|
3553
|
+
const _hoisted_1$3 = ["src"];
|
|
3543
3554
|
|
|
3544
|
-
function render$
|
|
3555
|
+
function render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3545
3556
|
return (openBlock(), createElementBlock("img", {
|
|
3546
3557
|
src: _ctx.imageSrc,
|
|
3547
3558
|
style: normalizeStyle(_ctx.styleProps),
|
|
3548
3559
|
onClick: _cache[0] || (_cache[0] = withModifiers((...args) => (_ctx.handleClick && _ctx.handleClick(...args)), ["prevent"])),
|
|
3549
3560
|
class: "uni-image-component",
|
|
3550
3561
|
draggable: false
|
|
3551
|
-
}, null, 12 /* STYLE, PROPS */, _hoisted_1$
|
|
3562
|
+
}, null, 12 /* STYLE, PROPS */, _hoisted_1$3))
|
|
3552
3563
|
}
|
|
3553
3564
|
|
|
3554
|
-
script$
|
|
3555
|
-
script$
|
|
3556
|
-
script$
|
|
3565
|
+
script$4.render = render$4;
|
|
3566
|
+
script$4.__scopeId = "data-v-03caca2f";
|
|
3567
|
+
script$4.__file = "src/components/UniImage/UniImage.vue";
|
|
3557
3568
|
|
|
3558
|
-
script$
|
|
3559
|
-
app.component(script$
|
|
3569
|
+
script$4.install = (app) => {
|
|
3570
|
+
app.component(script$4.name, script$4);
|
|
3560
3571
|
};
|
|
3561
3572
|
|
|
3562
|
-
const defaultProps = transformToComponentProps(componentsDefaultProps['uni-shape'].props, isEditingProp);
|
|
3573
|
+
const defaultProps$1 = transformToComponentProps(componentsDefaultProps['uni-shape'].props, isEditingProp);
|
|
3563
3574
|
// array that contains style props
|
|
3564
|
-
var script$
|
|
3575
|
+
var script$3 = defineComponent({
|
|
3565
3576
|
name: 'uni-shape',
|
|
3566
3577
|
props: {
|
|
3567
|
-
...defaultProps
|
|
3578
|
+
...defaultProps$1
|
|
3568
3579
|
},
|
|
3569
3580
|
setup(props) {
|
|
3570
3581
|
const styleProps = useStylePick(props);
|
|
@@ -3576,7 +3587,7 @@ var script$2 = defineComponent({
|
|
|
3576
3587
|
}
|
|
3577
3588
|
});
|
|
3578
3589
|
|
|
3579
|
-
function render$
|
|
3590
|
+
function render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3580
3591
|
return (openBlock(), createElementBlock("div", {
|
|
3581
3592
|
onClick: _cache[0] || (_cache[0] = withModifiers((...args) => (_ctx.handleClick && _ctx.handleClick(...args)), ["prevent"])),
|
|
3582
3593
|
style: normalizeStyle(_ctx.styleProps),
|
|
@@ -3585,14 +3596,14 @@ function render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3585
3596
|
}, null, 4 /* STYLE */))
|
|
3586
3597
|
}
|
|
3587
3598
|
|
|
3588
|
-
script$
|
|
3589
|
-
script$
|
|
3599
|
+
script$3.render = render$3;
|
|
3600
|
+
script$3.__file = "src/components/UniShape/UniShape.vue";
|
|
3590
3601
|
|
|
3591
|
-
script$
|
|
3592
|
-
app.component(script$
|
|
3602
|
+
script$3.install = (app) => {
|
|
3603
|
+
app.component(script$3.name, script$3);
|
|
3593
3604
|
};
|
|
3594
3605
|
|
|
3595
|
-
var script$
|
|
3606
|
+
var script$2 = defineComponent({
|
|
3596
3607
|
name: 'long-page',
|
|
3597
3608
|
props: {
|
|
3598
3609
|
work: {
|
|
@@ -3605,9 +3616,9 @@ var script$1 = defineComponent({
|
|
|
3605
3616
|
}
|
|
3606
3617
|
});
|
|
3607
3618
|
|
|
3608
|
-
const _hoisted_1$
|
|
3619
|
+
const _hoisted_1$2 = ["id"];
|
|
3609
3620
|
|
|
3610
|
-
function render$
|
|
3621
|
+
function render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3611
3622
|
return (openBlock(), createElementBlock("div", {
|
|
3612
3623
|
class: "final-page",
|
|
3613
3624
|
style: normalizeStyle(_ctx.work && {width: _ctx.work.width, height: _ctx.work.height} )
|
|
@@ -3618,20 +3629,20 @@ function render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3618
3629
|
id: `component-${item.id}`
|
|
3619
3630
|
}, [
|
|
3620
3631
|
(openBlock(), createBlock(resolveDynamicComponent(item.name), normalizeProps(guardReactiveProps(item.props)), null, 16 /* FULL_PROPS */))
|
|
3621
|
-
], 8 /* PROPS */, _hoisted_1$
|
|
3632
|
+
], 8 /* PROPS */, _hoisted_1$2))
|
|
3622
3633
|
}), 128 /* KEYED_FRAGMENT */))
|
|
3623
3634
|
], 4 /* STYLE */))
|
|
3624
3635
|
}
|
|
3625
3636
|
|
|
3626
|
-
script$
|
|
3627
|
-
script$
|
|
3637
|
+
script$2.render = render$2;
|
|
3638
|
+
script$2.__file = "src/components/LongPage/LongPage.vue";
|
|
3628
3639
|
|
|
3629
3640
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
3630
|
-
script$
|
|
3631
|
-
app.component(script$
|
|
3641
|
+
script$2.install = (app) => {
|
|
3642
|
+
app.component(script$2.name, script$2);
|
|
3632
3643
|
};
|
|
3633
3644
|
|
|
3634
|
-
var script = defineComponent({
|
|
3645
|
+
var script$1 = defineComponent({
|
|
3635
3646
|
name: 'swiper-page',
|
|
3636
3647
|
props: {
|
|
3637
3648
|
page: {
|
|
@@ -3644,34 +3655,107 @@ var script = defineComponent({
|
|
|
3644
3655
|
}
|
|
3645
3656
|
});
|
|
3646
3657
|
|
|
3647
|
-
const _hoisted_1 =
|
|
3658
|
+
const _hoisted_1$1 = { class: "swiper-wrapper" };
|
|
3659
|
+
|
|
3660
|
+
function render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3661
|
+
const _component_final_page = resolveComponent("final-page");
|
|
3662
|
+
|
|
3663
|
+
return (openBlock(), createElementBlock("div", {
|
|
3664
|
+
style: normalizeStyle(_ctx.styleProps),
|
|
3665
|
+
class: "swiper-container"
|
|
3666
|
+
}, [
|
|
3667
|
+
createElementVNode("div", _hoisted_1$1, [
|
|
3668
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.slides, (slide, index) => {
|
|
3669
|
+
return (openBlock(), createElementBlock("div", {
|
|
3670
|
+
class: "swiper-slide",
|
|
3671
|
+
key: index
|
|
3672
|
+
}, [
|
|
3673
|
+
createVNode(_component_final_page, {
|
|
3674
|
+
components: _ctx.page.components
|
|
3675
|
+
}, null, 8 /* PROPS */, ["components"])
|
|
3676
|
+
]))
|
|
3677
|
+
}), 128 /* KEYED_FRAGMENT */))
|
|
3678
|
+
])
|
|
3679
|
+
], 4 /* STYLE */))
|
|
3680
|
+
}
|
|
3681
|
+
|
|
3682
|
+
script$1.render = render$1;
|
|
3683
|
+
script$1.__file = "src/components/SwiperPage/SwiperPage.vue";
|
|
3684
|
+
|
|
3685
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
3686
|
+
script$1.install = (app) => {
|
|
3687
|
+
app.component(script$1.name, script$1);
|
|
3688
|
+
};
|
|
3689
|
+
|
|
3690
|
+
const defaultProps = transformToComponentProps(componentsDefaultProps['uni-background'].props, isEditingProp);
|
|
3691
|
+
// array that contains style props
|
|
3692
|
+
var script = defineComponent({
|
|
3693
|
+
name: 'uni-background',
|
|
3694
|
+
props: {
|
|
3695
|
+
watermark: {
|
|
3696
|
+
type: Boolean,
|
|
3697
|
+
default: false
|
|
3698
|
+
},
|
|
3699
|
+
...defaultProps
|
|
3700
|
+
},
|
|
3701
|
+
components: {},
|
|
3702
|
+
setup(props) {
|
|
3703
|
+
// 重用并且简化
|
|
3704
|
+
// 抽离并且获得 styleProps
|
|
3705
|
+
// const { styleProps, handleClick } = useComponentCommon(props, backgroundStylePropsNames)
|
|
3706
|
+
const styleProps = useStylePick(props);
|
|
3707
|
+
const handleClick = useComponentClick(props);
|
|
3708
|
+
return {
|
|
3709
|
+
styleProps,
|
|
3710
|
+
handleClick
|
|
3711
|
+
};
|
|
3712
|
+
}
|
|
3713
|
+
});
|
|
3714
|
+
|
|
3715
|
+
const _withScopeId = n => (pushScopeId("data-v-04e7238d"),n=n(),popScopeId(),n);
|
|
3716
|
+
const _hoisted_1 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/createElementVNode("div", { style: {} }, null, -1 /* HOISTED */));
|
|
3717
|
+
const _hoisted_2 = ["src"];
|
|
3648
3718
|
|
|
3649
3719
|
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3720
|
+
const _component_a_watermark = resolveComponent("a-watermark");
|
|
3721
|
+
|
|
3650
3722
|
return (openBlock(), createElementBlock("div", {
|
|
3651
|
-
|
|
3652
|
-
|
|
3723
|
+
style: normalizeStyle(_ctx.styleProps),
|
|
3724
|
+
class: "uni-background-component"
|
|
3653
3725
|
}, [
|
|
3654
|
-
(
|
|
3655
|
-
|
|
3656
|
-
|
|
3657
|
-
|
|
3658
|
-
|
|
3659
|
-
|
|
3660
|
-
|
|
3661
|
-
|
|
3726
|
+
(_ctx.watermark)
|
|
3727
|
+
? (openBlock(), createBlock(_component_a_watermark, {
|
|
3728
|
+
key: 0,
|
|
3729
|
+
content: "Unika",
|
|
3730
|
+
class: "watermark"
|
|
3731
|
+
}, {
|
|
3732
|
+
default: withCtx(() => [
|
|
3733
|
+
_hoisted_1
|
|
3734
|
+
]),
|
|
3735
|
+
_: 1 /* STABLE */
|
|
3736
|
+
}))
|
|
3737
|
+
: createCommentVNode("v-if", true),
|
|
3738
|
+
(_ctx.backgroundImage !== '')
|
|
3739
|
+
? (openBlock(), createElementBlock("img", {
|
|
3740
|
+
key: 1,
|
|
3741
|
+
src: _ctx.backgroundImage,
|
|
3742
|
+
class: "bg-img"
|
|
3743
|
+
}, null, 8 /* PROPS */, _hoisted_2))
|
|
3744
|
+
: createCommentVNode("v-if", true)
|
|
3662
3745
|
], 4 /* STYLE */))
|
|
3663
3746
|
}
|
|
3664
3747
|
|
|
3665
3748
|
script.render = render;
|
|
3666
|
-
script.
|
|
3749
|
+
script.__scopeId = "data-v-04e7238d";
|
|
3750
|
+
script.__file = "src/components/UniBackground/UniBackground.vue";
|
|
3667
3751
|
|
|
3668
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
3669
3752
|
script.install = (app) => {
|
|
3670
3753
|
app.component(script.name, script);
|
|
3671
3754
|
};
|
|
3672
3755
|
|
|
3673
3756
|
// export { textDefaultProps , textStylePropNames, TextComponentProps,
|
|
3674
3757
|
const components = [
|
|
3758
|
+
script$5,
|
|
3675
3759
|
script$4,
|
|
3676
3760
|
script$3,
|
|
3677
3761
|
script$2,
|
|
@@ -3688,4 +3772,4 @@ var index = {
|
|
|
3688
3772
|
install
|
|
3689
3773
|
};
|
|
3690
3774
|
|
|
3691
|
-
export { script$
|
|
3775
|
+
export { script$2 as LongPage, script$1 as SwiperPage, script as UniBackground, script$4 as UniImage, script$3 as UniShape, script$5 as UniText, index as default, install };
|
|
@@ -3420,9 +3420,6 @@
|
|
|
3420
3420
|
textAlign: 'left',
|
|
3421
3421
|
color: '#000000',
|
|
3422
3422
|
backgroundColor: '',
|
|
3423
|
-
display: 'flex',
|
|
3424
|
-
alignItems: 'center',
|
|
3425
|
-
justifyContent: 'center',
|
|
3426
3423
|
...commonDefaultProps
|
|
3427
3424
|
};
|
|
3428
3425
|
const imageDefaultProps = {
|
|
@@ -3433,6 +3430,17 @@
|
|
|
3433
3430
|
backgroundColor: '',
|
|
3434
3431
|
...commonDefaultProps
|
|
3435
3432
|
};
|
|
3433
|
+
const backgroundDefaultProps = {
|
|
3434
|
+
backgroundColor: '#ffffff',
|
|
3435
|
+
backgroundImage: '',
|
|
3436
|
+
backgroundSize: 'cover',
|
|
3437
|
+
backgroundRepeat: 'no-repeat',
|
|
3438
|
+
opacity: 1,
|
|
3439
|
+
height: '735px',
|
|
3440
|
+
position: 'absolute',
|
|
3441
|
+
left: '0px',
|
|
3442
|
+
top: '0px'
|
|
3443
|
+
};
|
|
3436
3444
|
// this contains all default props for all the components
|
|
3437
3445
|
// useful for inserting new component into the store
|
|
3438
3446
|
const componentsDefaultProps = {
|
|
@@ -3444,6 +3452,9 @@
|
|
|
3444
3452
|
},
|
|
3445
3453
|
'uni-shape': {
|
|
3446
3454
|
props: shapeDefaultProps
|
|
3455
|
+
},
|
|
3456
|
+
'uni-background': {
|
|
3457
|
+
props: backgroundDefaultProps
|
|
3447
3458
|
}
|
|
3448
3459
|
};
|
|
3449
3460
|
const isEditingProp = {
|
|
@@ -3491,12 +3502,12 @@
|
|
|
3491
3502
|
},
|
|
3492
3503
|
...isEditingProp
|
|
3493
3504
|
};
|
|
3494
|
-
const defaultProps$
|
|
3505
|
+
const defaultProps$2 = transformToComponentProps(componentsDefaultProps['uni-text'].props, extraProps);
|
|
3495
3506
|
// array that contains style props
|
|
3496
|
-
var script$
|
|
3507
|
+
var script$5 = vue.defineComponent({
|
|
3497
3508
|
name: 'uni-text',
|
|
3498
3509
|
props: {
|
|
3499
|
-
...defaultProps$
|
|
3510
|
+
...defaultProps$2
|
|
3500
3511
|
},
|
|
3501
3512
|
setup(props) {
|
|
3502
3513
|
const styleProps = useStylePick(props);
|
|
@@ -3508,7 +3519,7 @@
|
|
|
3508
3519
|
}
|
|
3509
3520
|
});
|
|
3510
3521
|
|
|
3511
|
-
function render$
|
|
3522
|
+
function render$5(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3512
3523
|
return (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.tag), {
|
|
3513
3524
|
onClick: vue.withModifiers(_ctx.handleClick, ["prevent"]),
|
|
3514
3525
|
style: vue.normalizeStyle(_ctx.styleProps),
|
|
@@ -3521,16 +3532,16 @@
|
|
|
3521
3532
|
}, 8 /* PROPS */, ["onClick", "style"]))
|
|
3522
3533
|
}
|
|
3523
3534
|
|
|
3524
|
-
script$
|
|
3525
|
-
script$
|
|
3526
|
-
script$
|
|
3535
|
+
script$5.render = render$5;
|
|
3536
|
+
script$5.__scopeId = "data-v-55ed80cb";
|
|
3537
|
+
script$5.__file = "src/components/UniText/UniText.vue";
|
|
3527
3538
|
|
|
3528
|
-
script$
|
|
3529
|
-
app.component(script$
|
|
3539
|
+
script$5.install = (app) => {
|
|
3540
|
+
app.component(script$5.name, script$5);
|
|
3530
3541
|
};
|
|
3531
3542
|
|
|
3532
3543
|
// array that contains style props
|
|
3533
|
-
var script$
|
|
3544
|
+
var script$4 = vue.defineComponent({
|
|
3534
3545
|
name: 'uni-image',
|
|
3535
3546
|
props: transformToComponentProps(componentsDefaultProps['uni-image'].props, isEditingProp),
|
|
3536
3547
|
setup(props) {
|
|
@@ -3543,32 +3554,32 @@
|
|
|
3543
3554
|
}
|
|
3544
3555
|
});
|
|
3545
3556
|
|
|
3546
|
-
const _hoisted_1$
|
|
3557
|
+
const _hoisted_1$3 = ["src"];
|
|
3547
3558
|
|
|
3548
|
-
function render$
|
|
3559
|
+
function render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3549
3560
|
return (vue.openBlock(), vue.createElementBlock("img", {
|
|
3550
3561
|
src: _ctx.imageSrc,
|
|
3551
3562
|
style: vue.normalizeStyle(_ctx.styleProps),
|
|
3552
3563
|
onClick: _cache[0] || (_cache[0] = vue.withModifiers((...args) => (_ctx.handleClick && _ctx.handleClick(...args)), ["prevent"])),
|
|
3553
3564
|
class: "uni-image-component",
|
|
3554
3565
|
draggable: false
|
|
3555
|
-
}, null, 12 /* STYLE, PROPS */, _hoisted_1$
|
|
3566
|
+
}, null, 12 /* STYLE, PROPS */, _hoisted_1$3))
|
|
3556
3567
|
}
|
|
3557
3568
|
|
|
3558
|
-
script$
|
|
3559
|
-
script$
|
|
3560
|
-
script$
|
|
3569
|
+
script$4.render = render$4;
|
|
3570
|
+
script$4.__scopeId = "data-v-03caca2f";
|
|
3571
|
+
script$4.__file = "src/components/UniImage/UniImage.vue";
|
|
3561
3572
|
|
|
3562
|
-
script$
|
|
3563
|
-
app.component(script$
|
|
3573
|
+
script$4.install = (app) => {
|
|
3574
|
+
app.component(script$4.name, script$4);
|
|
3564
3575
|
};
|
|
3565
3576
|
|
|
3566
|
-
const defaultProps = transformToComponentProps(componentsDefaultProps['uni-shape'].props, isEditingProp);
|
|
3577
|
+
const defaultProps$1 = transformToComponentProps(componentsDefaultProps['uni-shape'].props, isEditingProp);
|
|
3567
3578
|
// array that contains style props
|
|
3568
|
-
var script$
|
|
3579
|
+
var script$3 = vue.defineComponent({
|
|
3569
3580
|
name: 'uni-shape',
|
|
3570
3581
|
props: {
|
|
3571
|
-
...defaultProps
|
|
3582
|
+
...defaultProps$1
|
|
3572
3583
|
},
|
|
3573
3584
|
setup(props) {
|
|
3574
3585
|
const styleProps = useStylePick(props);
|
|
@@ -3580,7 +3591,7 @@
|
|
|
3580
3591
|
}
|
|
3581
3592
|
});
|
|
3582
3593
|
|
|
3583
|
-
function render$
|
|
3594
|
+
function render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3584
3595
|
return (vue.openBlock(), vue.createElementBlock("div", {
|
|
3585
3596
|
onClick: _cache[0] || (_cache[0] = vue.withModifiers((...args) => (_ctx.handleClick && _ctx.handleClick(...args)), ["prevent"])),
|
|
3586
3597
|
style: vue.normalizeStyle(_ctx.styleProps),
|
|
@@ -3589,14 +3600,14 @@
|
|
|
3589
3600
|
}, null, 4 /* STYLE */))
|
|
3590
3601
|
}
|
|
3591
3602
|
|
|
3592
|
-
script$
|
|
3593
|
-
script$
|
|
3603
|
+
script$3.render = render$3;
|
|
3604
|
+
script$3.__file = "src/components/UniShape/UniShape.vue";
|
|
3594
3605
|
|
|
3595
|
-
script$
|
|
3596
|
-
app.component(script$
|
|
3606
|
+
script$3.install = (app) => {
|
|
3607
|
+
app.component(script$3.name, script$3);
|
|
3597
3608
|
};
|
|
3598
3609
|
|
|
3599
|
-
var script$
|
|
3610
|
+
var script$2 = vue.defineComponent({
|
|
3600
3611
|
name: 'long-page',
|
|
3601
3612
|
props: {
|
|
3602
3613
|
work: {
|
|
@@ -3609,9 +3620,9 @@
|
|
|
3609
3620
|
}
|
|
3610
3621
|
});
|
|
3611
3622
|
|
|
3612
|
-
const _hoisted_1$
|
|
3623
|
+
const _hoisted_1$2 = ["id"];
|
|
3613
3624
|
|
|
3614
|
-
function render$
|
|
3625
|
+
function render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3615
3626
|
return (vue.openBlock(), vue.createElementBlock("div", {
|
|
3616
3627
|
class: "final-page",
|
|
3617
3628
|
style: vue.normalizeStyle(_ctx.work && {width: _ctx.work.width, height: _ctx.work.height} )
|
|
@@ -3622,20 +3633,20 @@
|
|
|
3622
3633
|
id: `component-${item.id}`
|
|
3623
3634
|
}, [
|
|
3624
3635
|
(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(item.name), vue.normalizeProps(vue.guardReactiveProps(item.props)), null, 16 /* FULL_PROPS */))
|
|
3625
|
-
], 8 /* PROPS */, _hoisted_1$
|
|
3636
|
+
], 8 /* PROPS */, _hoisted_1$2))
|
|
3626
3637
|
}), 128 /* KEYED_FRAGMENT */))
|
|
3627
3638
|
], 4 /* STYLE */))
|
|
3628
3639
|
}
|
|
3629
3640
|
|
|
3630
|
-
script$
|
|
3631
|
-
script$
|
|
3641
|
+
script$2.render = render$2;
|
|
3642
|
+
script$2.__file = "src/components/LongPage/LongPage.vue";
|
|
3632
3643
|
|
|
3633
3644
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
3634
|
-
script$
|
|
3635
|
-
app.component(script$
|
|
3645
|
+
script$2.install = (app) => {
|
|
3646
|
+
app.component(script$2.name, script$2);
|
|
3636
3647
|
};
|
|
3637
3648
|
|
|
3638
|
-
var script = vue.defineComponent({
|
|
3649
|
+
var script$1 = vue.defineComponent({
|
|
3639
3650
|
name: 'swiper-page',
|
|
3640
3651
|
props: {
|
|
3641
3652
|
page: {
|
|
@@ -3648,34 +3659,107 @@
|
|
|
3648
3659
|
}
|
|
3649
3660
|
});
|
|
3650
3661
|
|
|
3651
|
-
const _hoisted_1 =
|
|
3662
|
+
const _hoisted_1$1 = { class: "swiper-wrapper" };
|
|
3663
|
+
|
|
3664
|
+
function render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3665
|
+
const _component_final_page = vue.resolveComponent("final-page");
|
|
3666
|
+
|
|
3667
|
+
return (vue.openBlock(), vue.createElementBlock("div", {
|
|
3668
|
+
style: vue.normalizeStyle(_ctx.styleProps),
|
|
3669
|
+
class: "swiper-container"
|
|
3670
|
+
}, [
|
|
3671
|
+
vue.createElementVNode("div", _hoisted_1$1, [
|
|
3672
|
+
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.slides, (slide, index) => {
|
|
3673
|
+
return (vue.openBlock(), vue.createElementBlock("div", {
|
|
3674
|
+
class: "swiper-slide",
|
|
3675
|
+
key: index
|
|
3676
|
+
}, [
|
|
3677
|
+
vue.createVNode(_component_final_page, {
|
|
3678
|
+
components: _ctx.page.components
|
|
3679
|
+
}, null, 8 /* PROPS */, ["components"])
|
|
3680
|
+
]))
|
|
3681
|
+
}), 128 /* KEYED_FRAGMENT */))
|
|
3682
|
+
])
|
|
3683
|
+
], 4 /* STYLE */))
|
|
3684
|
+
}
|
|
3685
|
+
|
|
3686
|
+
script$1.render = render$1;
|
|
3687
|
+
script$1.__file = "src/components/SwiperPage/SwiperPage.vue";
|
|
3688
|
+
|
|
3689
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
3690
|
+
script$1.install = (app) => {
|
|
3691
|
+
app.component(script$1.name, script$1);
|
|
3692
|
+
};
|
|
3693
|
+
|
|
3694
|
+
const defaultProps = transformToComponentProps(componentsDefaultProps['uni-background'].props, isEditingProp);
|
|
3695
|
+
// array that contains style props
|
|
3696
|
+
var script = vue.defineComponent({
|
|
3697
|
+
name: 'uni-background',
|
|
3698
|
+
props: {
|
|
3699
|
+
watermark: {
|
|
3700
|
+
type: Boolean,
|
|
3701
|
+
default: false
|
|
3702
|
+
},
|
|
3703
|
+
...defaultProps
|
|
3704
|
+
},
|
|
3705
|
+
components: {},
|
|
3706
|
+
setup(props) {
|
|
3707
|
+
// 重用并且简化
|
|
3708
|
+
// 抽离并且获得 styleProps
|
|
3709
|
+
// const { styleProps, handleClick } = useComponentCommon(props, backgroundStylePropsNames)
|
|
3710
|
+
const styleProps = useStylePick(props);
|
|
3711
|
+
const handleClick = useComponentClick(props);
|
|
3712
|
+
return {
|
|
3713
|
+
styleProps,
|
|
3714
|
+
handleClick
|
|
3715
|
+
};
|
|
3716
|
+
}
|
|
3717
|
+
});
|
|
3718
|
+
|
|
3719
|
+
const _withScopeId = n => (vue.pushScopeId("data-v-04e7238d"),n=n(),vue.popScopeId(),n);
|
|
3720
|
+
const _hoisted_1 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/vue.createElementVNode("div", { style: {} }, null, -1 /* HOISTED */));
|
|
3721
|
+
const _hoisted_2 = ["src"];
|
|
3652
3722
|
|
|
3653
3723
|
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3724
|
+
const _component_a_watermark = vue.resolveComponent("a-watermark");
|
|
3725
|
+
|
|
3654
3726
|
return (vue.openBlock(), vue.createElementBlock("div", {
|
|
3655
|
-
|
|
3656
|
-
|
|
3727
|
+
style: vue.normalizeStyle(_ctx.styleProps),
|
|
3728
|
+
class: "uni-background-component"
|
|
3657
3729
|
}, [
|
|
3658
|
-
(
|
|
3659
|
-
|
|
3660
|
-
|
|
3661
|
-
|
|
3662
|
-
|
|
3663
|
-
|
|
3664
|
-
|
|
3665
|
-
|
|
3730
|
+
(_ctx.watermark)
|
|
3731
|
+
? (vue.openBlock(), vue.createBlock(_component_a_watermark, {
|
|
3732
|
+
key: 0,
|
|
3733
|
+
content: "Unika",
|
|
3734
|
+
class: "watermark"
|
|
3735
|
+
}, {
|
|
3736
|
+
default: vue.withCtx(() => [
|
|
3737
|
+
_hoisted_1
|
|
3738
|
+
]),
|
|
3739
|
+
_: 1 /* STABLE */
|
|
3740
|
+
}))
|
|
3741
|
+
: vue.createCommentVNode("v-if", true),
|
|
3742
|
+
(_ctx.backgroundImage !== '')
|
|
3743
|
+
? (vue.openBlock(), vue.createElementBlock("img", {
|
|
3744
|
+
key: 1,
|
|
3745
|
+
src: _ctx.backgroundImage,
|
|
3746
|
+
class: "bg-img"
|
|
3747
|
+
}, null, 8 /* PROPS */, _hoisted_2))
|
|
3748
|
+
: vue.createCommentVNode("v-if", true)
|
|
3666
3749
|
], 4 /* STYLE */))
|
|
3667
3750
|
}
|
|
3668
3751
|
|
|
3669
3752
|
script.render = render;
|
|
3670
|
-
script.
|
|
3753
|
+
script.__scopeId = "data-v-04e7238d";
|
|
3754
|
+
script.__file = "src/components/UniBackground/UniBackground.vue";
|
|
3671
3755
|
|
|
3672
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
3673
3756
|
script.install = (app) => {
|
|
3674
3757
|
app.component(script.name, script);
|
|
3675
3758
|
};
|
|
3676
3759
|
|
|
3677
3760
|
// export { textDefaultProps , textStylePropNames, TextComponentProps,
|
|
3678
3761
|
const components = [
|
|
3762
|
+
script$5,
|
|
3679
3763
|
script$4,
|
|
3680
3764
|
script$3,
|
|
3681
3765
|
script$2,
|
|
@@ -3692,11 +3776,12 @@
|
|
|
3692
3776
|
install
|
|
3693
3777
|
};
|
|
3694
3778
|
|
|
3695
|
-
exports.LongPage = script$
|
|
3696
|
-
exports.SwiperPage = script;
|
|
3697
|
-
exports.
|
|
3698
|
-
exports.
|
|
3699
|
-
exports.
|
|
3779
|
+
exports.LongPage = script$2;
|
|
3780
|
+
exports.SwiperPage = script$1;
|
|
3781
|
+
exports.UniBackground = script;
|
|
3782
|
+
exports.UniImage = script$4;
|
|
3783
|
+
exports.UniShape = script$3;
|
|
3784
|
+
exports.UniText = script$5;
|
|
3700
3785
|
exports["default"] = index;
|
|
3701
3786
|
exports.install = install;
|
|
3702
3787
|
|