unika-components 1.0.2 → 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 -0
- package/dist/src/index.d.ts +2 -1
- package/dist/unika-components.css +28 -4
- package/dist/unika-components.esm.js +137 -50
- package/dist/unika-components.umd.js +141 -53
- 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;
|
|
@@ -156,6 +156,17 @@ export declare const shapeDefaultProps: {
|
|
|
156
156
|
right: string;
|
|
157
157
|
backgroundColor: string;
|
|
158
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
|
+
};
|
|
159
170
|
export declare const componentsDefaultProps: {
|
|
160
171
|
'uni-text': {
|
|
161
172
|
props: {
|
|
@@ -235,6 +246,19 @@ export declare const componentsDefaultProps: {
|
|
|
235
246
|
backgroundColor: string;
|
|
236
247
|
};
|
|
237
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
|
+
};
|
|
238
262
|
};
|
|
239
263
|
export declare const isEditingProp: {
|
|
240
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
|
};
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
|
|
2
|
+
.uni-image-component {
|
|
3
|
+
max-width: 100%;
|
|
4
|
+
}
|
|
5
|
+
|
|
2
6
|
h2.uni-text-component, p.uni-text-component {
|
|
3
7
|
margin-bottom: 0;
|
|
4
8
|
}
|
|
@@ -10,7 +14,27 @@ button.uni-text-component {
|
|
|
10
14
|
box-sizing: border-box;
|
|
11
15
|
white-space: pre-wrap;
|
|
12
16
|
}
|
|
13
|
-
|
|
14
|
-
.uni-
|
|
15
|
-
|
|
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;
|
|
@@ -3426,6 +3426,17 @@ const shapeDefaultProps = {
|
|
|
3426
3426
|
backgroundColor: '',
|
|
3427
3427
|
...commonDefaultProps
|
|
3428
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
|
+
};
|
|
3429
3440
|
// this contains all default props for all the components
|
|
3430
3441
|
// useful for inserting new component into the store
|
|
3431
3442
|
const componentsDefaultProps = {
|
|
@@ -3437,6 +3448,9 @@ const componentsDefaultProps = {
|
|
|
3437
3448
|
},
|
|
3438
3449
|
'uni-shape': {
|
|
3439
3450
|
props: shapeDefaultProps
|
|
3451
|
+
},
|
|
3452
|
+
'uni-background': {
|
|
3453
|
+
props: backgroundDefaultProps
|
|
3440
3454
|
}
|
|
3441
3455
|
};
|
|
3442
3456
|
const isEditingProp = {
|
|
@@ -3484,12 +3498,12 @@ const extraProps = {
|
|
|
3484
3498
|
},
|
|
3485
3499
|
...isEditingProp
|
|
3486
3500
|
};
|
|
3487
|
-
const defaultProps$
|
|
3501
|
+
const defaultProps$2 = transformToComponentProps(componentsDefaultProps['uni-text'].props, extraProps);
|
|
3488
3502
|
// array that contains style props
|
|
3489
|
-
var script$
|
|
3503
|
+
var script$5 = defineComponent({
|
|
3490
3504
|
name: 'uni-text',
|
|
3491
3505
|
props: {
|
|
3492
|
-
...defaultProps$
|
|
3506
|
+
...defaultProps$2
|
|
3493
3507
|
},
|
|
3494
3508
|
setup(props) {
|
|
3495
3509
|
const styleProps = useStylePick(props);
|
|
@@ -3501,7 +3515,7 @@ var script$4 = defineComponent({
|
|
|
3501
3515
|
}
|
|
3502
3516
|
});
|
|
3503
3517
|
|
|
3504
|
-
function render$
|
|
3518
|
+
function render$5(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3505
3519
|
return (openBlock(), createBlock(resolveDynamicComponent(_ctx.tag), {
|
|
3506
3520
|
onClick: withModifiers(_ctx.handleClick, ["prevent"]),
|
|
3507
3521
|
style: normalizeStyle(_ctx.styleProps),
|
|
@@ -3514,16 +3528,16 @@ function render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3514
3528
|
}, 8 /* PROPS */, ["onClick", "style"]))
|
|
3515
3529
|
}
|
|
3516
3530
|
|
|
3517
|
-
script$
|
|
3518
|
-
script$
|
|
3519
|
-
script$
|
|
3531
|
+
script$5.render = render$5;
|
|
3532
|
+
script$5.__scopeId = "data-v-55ed80cb";
|
|
3533
|
+
script$5.__file = "src/components/UniText/UniText.vue";
|
|
3520
3534
|
|
|
3521
|
-
script$
|
|
3522
|
-
app.component(script$
|
|
3535
|
+
script$5.install = (app) => {
|
|
3536
|
+
app.component(script$5.name, script$5);
|
|
3523
3537
|
};
|
|
3524
3538
|
|
|
3525
3539
|
// array that contains style props
|
|
3526
|
-
var script$
|
|
3540
|
+
var script$4 = defineComponent({
|
|
3527
3541
|
name: 'uni-image',
|
|
3528
3542
|
props: transformToComponentProps(componentsDefaultProps['uni-image'].props, isEditingProp),
|
|
3529
3543
|
setup(props) {
|
|
@@ -3536,32 +3550,32 @@ var script$3 = defineComponent({
|
|
|
3536
3550
|
}
|
|
3537
3551
|
});
|
|
3538
3552
|
|
|
3539
|
-
const _hoisted_1$
|
|
3553
|
+
const _hoisted_1$3 = ["src"];
|
|
3540
3554
|
|
|
3541
|
-
function render$
|
|
3555
|
+
function render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3542
3556
|
return (openBlock(), createElementBlock("img", {
|
|
3543
3557
|
src: _ctx.imageSrc,
|
|
3544
3558
|
style: normalizeStyle(_ctx.styleProps),
|
|
3545
3559
|
onClick: _cache[0] || (_cache[0] = withModifiers((...args) => (_ctx.handleClick && _ctx.handleClick(...args)), ["prevent"])),
|
|
3546
3560
|
class: "uni-image-component",
|
|
3547
3561
|
draggable: false
|
|
3548
|
-
}, null, 12 /* STYLE, PROPS */, _hoisted_1$
|
|
3562
|
+
}, null, 12 /* STYLE, PROPS */, _hoisted_1$3))
|
|
3549
3563
|
}
|
|
3550
3564
|
|
|
3551
|
-
script$
|
|
3552
|
-
script$
|
|
3553
|
-
script$
|
|
3565
|
+
script$4.render = render$4;
|
|
3566
|
+
script$4.__scopeId = "data-v-03caca2f";
|
|
3567
|
+
script$4.__file = "src/components/UniImage/UniImage.vue";
|
|
3554
3568
|
|
|
3555
|
-
script$
|
|
3556
|
-
app.component(script$
|
|
3569
|
+
script$4.install = (app) => {
|
|
3570
|
+
app.component(script$4.name, script$4);
|
|
3557
3571
|
};
|
|
3558
3572
|
|
|
3559
|
-
const defaultProps = transformToComponentProps(componentsDefaultProps['uni-shape'].props, isEditingProp);
|
|
3573
|
+
const defaultProps$1 = transformToComponentProps(componentsDefaultProps['uni-shape'].props, isEditingProp);
|
|
3560
3574
|
// array that contains style props
|
|
3561
|
-
var script$
|
|
3575
|
+
var script$3 = defineComponent({
|
|
3562
3576
|
name: 'uni-shape',
|
|
3563
3577
|
props: {
|
|
3564
|
-
...defaultProps
|
|
3578
|
+
...defaultProps$1
|
|
3565
3579
|
},
|
|
3566
3580
|
setup(props) {
|
|
3567
3581
|
const styleProps = useStylePick(props);
|
|
@@ -3573,7 +3587,7 @@ var script$2 = defineComponent({
|
|
|
3573
3587
|
}
|
|
3574
3588
|
});
|
|
3575
3589
|
|
|
3576
|
-
function render$
|
|
3590
|
+
function render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3577
3591
|
return (openBlock(), createElementBlock("div", {
|
|
3578
3592
|
onClick: _cache[0] || (_cache[0] = withModifiers((...args) => (_ctx.handleClick && _ctx.handleClick(...args)), ["prevent"])),
|
|
3579
3593
|
style: normalizeStyle(_ctx.styleProps),
|
|
@@ -3582,14 +3596,14 @@ function render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3582
3596
|
}, null, 4 /* STYLE */))
|
|
3583
3597
|
}
|
|
3584
3598
|
|
|
3585
|
-
script$
|
|
3586
|
-
script$
|
|
3599
|
+
script$3.render = render$3;
|
|
3600
|
+
script$3.__file = "src/components/UniShape/UniShape.vue";
|
|
3587
3601
|
|
|
3588
|
-
script$
|
|
3589
|
-
app.component(script$
|
|
3602
|
+
script$3.install = (app) => {
|
|
3603
|
+
app.component(script$3.name, script$3);
|
|
3590
3604
|
};
|
|
3591
3605
|
|
|
3592
|
-
var script$
|
|
3606
|
+
var script$2 = defineComponent({
|
|
3593
3607
|
name: 'long-page',
|
|
3594
3608
|
props: {
|
|
3595
3609
|
work: {
|
|
@@ -3602,9 +3616,9 @@ var script$1 = defineComponent({
|
|
|
3602
3616
|
}
|
|
3603
3617
|
});
|
|
3604
3618
|
|
|
3605
|
-
const _hoisted_1$
|
|
3619
|
+
const _hoisted_1$2 = ["id"];
|
|
3606
3620
|
|
|
3607
|
-
function render$
|
|
3621
|
+
function render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3608
3622
|
return (openBlock(), createElementBlock("div", {
|
|
3609
3623
|
class: "final-page",
|
|
3610
3624
|
style: normalizeStyle(_ctx.work && {width: _ctx.work.width, height: _ctx.work.height} )
|
|
@@ -3615,20 +3629,20 @@ function render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3615
3629
|
id: `component-${item.id}`
|
|
3616
3630
|
}, [
|
|
3617
3631
|
(openBlock(), createBlock(resolveDynamicComponent(item.name), normalizeProps(guardReactiveProps(item.props)), null, 16 /* FULL_PROPS */))
|
|
3618
|
-
], 8 /* PROPS */, _hoisted_1$
|
|
3632
|
+
], 8 /* PROPS */, _hoisted_1$2))
|
|
3619
3633
|
}), 128 /* KEYED_FRAGMENT */))
|
|
3620
3634
|
], 4 /* STYLE */))
|
|
3621
3635
|
}
|
|
3622
3636
|
|
|
3623
|
-
script$
|
|
3624
|
-
script$
|
|
3637
|
+
script$2.render = render$2;
|
|
3638
|
+
script$2.__file = "src/components/LongPage/LongPage.vue";
|
|
3625
3639
|
|
|
3626
3640
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
3627
|
-
script$
|
|
3628
|
-
app.component(script$
|
|
3641
|
+
script$2.install = (app) => {
|
|
3642
|
+
app.component(script$2.name, script$2);
|
|
3629
3643
|
};
|
|
3630
3644
|
|
|
3631
|
-
var script = defineComponent({
|
|
3645
|
+
var script$1 = defineComponent({
|
|
3632
3646
|
name: 'swiper-page',
|
|
3633
3647
|
props: {
|
|
3634
3648
|
page: {
|
|
@@ -3641,34 +3655,107 @@ var script = defineComponent({
|
|
|
3641
3655
|
}
|
|
3642
3656
|
});
|
|
3643
3657
|
|
|
3644
|
-
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"];
|
|
3645
3718
|
|
|
3646
3719
|
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3720
|
+
const _component_a_watermark = resolveComponent("a-watermark");
|
|
3721
|
+
|
|
3647
3722
|
return (openBlock(), createElementBlock("div", {
|
|
3648
|
-
|
|
3649
|
-
|
|
3723
|
+
style: normalizeStyle(_ctx.styleProps),
|
|
3724
|
+
class: "uni-background-component"
|
|
3650
3725
|
}, [
|
|
3651
|
-
(
|
|
3652
|
-
|
|
3653
|
-
|
|
3654
|
-
|
|
3655
|
-
|
|
3656
|
-
|
|
3657
|
-
|
|
3658
|
-
|
|
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)
|
|
3659
3745
|
], 4 /* STYLE */))
|
|
3660
3746
|
}
|
|
3661
3747
|
|
|
3662
3748
|
script.render = render;
|
|
3663
|
-
script.
|
|
3749
|
+
script.__scopeId = "data-v-04e7238d";
|
|
3750
|
+
script.__file = "src/components/UniBackground/UniBackground.vue";
|
|
3664
3751
|
|
|
3665
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
3666
3752
|
script.install = (app) => {
|
|
3667
3753
|
app.component(script.name, script);
|
|
3668
3754
|
};
|
|
3669
3755
|
|
|
3670
3756
|
// export { textDefaultProps , textStylePropNames, TextComponentProps,
|
|
3671
3757
|
const components = [
|
|
3758
|
+
script$5,
|
|
3672
3759
|
script$4,
|
|
3673
3760
|
script$3,
|
|
3674
3761
|
script$2,
|
|
@@ -3685,4 +3772,4 @@ var index = {
|
|
|
3685
3772
|
install
|
|
3686
3773
|
};
|
|
3687
3774
|
|
|
3688
|
-
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 };
|
|
@@ -3430,6 +3430,17 @@
|
|
|
3430
3430
|
backgroundColor: '',
|
|
3431
3431
|
...commonDefaultProps
|
|
3432
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
|
+
};
|
|
3433
3444
|
// this contains all default props for all the components
|
|
3434
3445
|
// useful for inserting new component into the store
|
|
3435
3446
|
const componentsDefaultProps = {
|
|
@@ -3441,6 +3452,9 @@
|
|
|
3441
3452
|
},
|
|
3442
3453
|
'uni-shape': {
|
|
3443
3454
|
props: shapeDefaultProps
|
|
3455
|
+
},
|
|
3456
|
+
'uni-background': {
|
|
3457
|
+
props: backgroundDefaultProps
|
|
3444
3458
|
}
|
|
3445
3459
|
};
|
|
3446
3460
|
const isEditingProp = {
|
|
@@ -3488,12 +3502,12 @@
|
|
|
3488
3502
|
},
|
|
3489
3503
|
...isEditingProp
|
|
3490
3504
|
};
|
|
3491
|
-
const defaultProps$
|
|
3505
|
+
const defaultProps$2 = transformToComponentProps(componentsDefaultProps['uni-text'].props, extraProps);
|
|
3492
3506
|
// array that contains style props
|
|
3493
|
-
var script$
|
|
3507
|
+
var script$5 = vue.defineComponent({
|
|
3494
3508
|
name: 'uni-text',
|
|
3495
3509
|
props: {
|
|
3496
|
-
...defaultProps$
|
|
3510
|
+
...defaultProps$2
|
|
3497
3511
|
},
|
|
3498
3512
|
setup(props) {
|
|
3499
3513
|
const styleProps = useStylePick(props);
|
|
@@ -3505,7 +3519,7 @@
|
|
|
3505
3519
|
}
|
|
3506
3520
|
});
|
|
3507
3521
|
|
|
3508
|
-
function render$
|
|
3522
|
+
function render$5(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3509
3523
|
return (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.tag), {
|
|
3510
3524
|
onClick: vue.withModifiers(_ctx.handleClick, ["prevent"]),
|
|
3511
3525
|
style: vue.normalizeStyle(_ctx.styleProps),
|
|
@@ -3518,16 +3532,16 @@
|
|
|
3518
3532
|
}, 8 /* PROPS */, ["onClick", "style"]))
|
|
3519
3533
|
}
|
|
3520
3534
|
|
|
3521
|
-
script$
|
|
3522
|
-
script$
|
|
3523
|
-
script$
|
|
3535
|
+
script$5.render = render$5;
|
|
3536
|
+
script$5.__scopeId = "data-v-55ed80cb";
|
|
3537
|
+
script$5.__file = "src/components/UniText/UniText.vue";
|
|
3524
3538
|
|
|
3525
|
-
script$
|
|
3526
|
-
app.component(script$
|
|
3539
|
+
script$5.install = (app) => {
|
|
3540
|
+
app.component(script$5.name, script$5);
|
|
3527
3541
|
};
|
|
3528
3542
|
|
|
3529
3543
|
// array that contains style props
|
|
3530
|
-
var script$
|
|
3544
|
+
var script$4 = vue.defineComponent({
|
|
3531
3545
|
name: 'uni-image',
|
|
3532
3546
|
props: transformToComponentProps(componentsDefaultProps['uni-image'].props, isEditingProp),
|
|
3533
3547
|
setup(props) {
|
|
@@ -3540,32 +3554,32 @@
|
|
|
3540
3554
|
}
|
|
3541
3555
|
});
|
|
3542
3556
|
|
|
3543
|
-
const _hoisted_1$
|
|
3557
|
+
const _hoisted_1$3 = ["src"];
|
|
3544
3558
|
|
|
3545
|
-
function render$
|
|
3559
|
+
function render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3546
3560
|
return (vue.openBlock(), vue.createElementBlock("img", {
|
|
3547
3561
|
src: _ctx.imageSrc,
|
|
3548
3562
|
style: vue.normalizeStyle(_ctx.styleProps),
|
|
3549
3563
|
onClick: _cache[0] || (_cache[0] = vue.withModifiers((...args) => (_ctx.handleClick && _ctx.handleClick(...args)), ["prevent"])),
|
|
3550
3564
|
class: "uni-image-component",
|
|
3551
3565
|
draggable: false
|
|
3552
|
-
}, null, 12 /* STYLE, PROPS */, _hoisted_1$
|
|
3566
|
+
}, null, 12 /* STYLE, PROPS */, _hoisted_1$3))
|
|
3553
3567
|
}
|
|
3554
3568
|
|
|
3555
|
-
script$
|
|
3556
|
-
script$
|
|
3557
|
-
script$
|
|
3569
|
+
script$4.render = render$4;
|
|
3570
|
+
script$4.__scopeId = "data-v-03caca2f";
|
|
3571
|
+
script$4.__file = "src/components/UniImage/UniImage.vue";
|
|
3558
3572
|
|
|
3559
|
-
script$
|
|
3560
|
-
app.component(script$
|
|
3573
|
+
script$4.install = (app) => {
|
|
3574
|
+
app.component(script$4.name, script$4);
|
|
3561
3575
|
};
|
|
3562
3576
|
|
|
3563
|
-
const defaultProps = transformToComponentProps(componentsDefaultProps['uni-shape'].props, isEditingProp);
|
|
3577
|
+
const defaultProps$1 = transformToComponentProps(componentsDefaultProps['uni-shape'].props, isEditingProp);
|
|
3564
3578
|
// array that contains style props
|
|
3565
|
-
var script$
|
|
3579
|
+
var script$3 = vue.defineComponent({
|
|
3566
3580
|
name: 'uni-shape',
|
|
3567
3581
|
props: {
|
|
3568
|
-
...defaultProps
|
|
3582
|
+
...defaultProps$1
|
|
3569
3583
|
},
|
|
3570
3584
|
setup(props) {
|
|
3571
3585
|
const styleProps = useStylePick(props);
|
|
@@ -3577,7 +3591,7 @@
|
|
|
3577
3591
|
}
|
|
3578
3592
|
});
|
|
3579
3593
|
|
|
3580
|
-
function render$
|
|
3594
|
+
function render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3581
3595
|
return (vue.openBlock(), vue.createElementBlock("div", {
|
|
3582
3596
|
onClick: _cache[0] || (_cache[0] = vue.withModifiers((...args) => (_ctx.handleClick && _ctx.handleClick(...args)), ["prevent"])),
|
|
3583
3597
|
style: vue.normalizeStyle(_ctx.styleProps),
|
|
@@ -3586,14 +3600,14 @@
|
|
|
3586
3600
|
}, null, 4 /* STYLE */))
|
|
3587
3601
|
}
|
|
3588
3602
|
|
|
3589
|
-
script$
|
|
3590
|
-
script$
|
|
3603
|
+
script$3.render = render$3;
|
|
3604
|
+
script$3.__file = "src/components/UniShape/UniShape.vue";
|
|
3591
3605
|
|
|
3592
|
-
script$
|
|
3593
|
-
app.component(script$
|
|
3606
|
+
script$3.install = (app) => {
|
|
3607
|
+
app.component(script$3.name, script$3);
|
|
3594
3608
|
};
|
|
3595
3609
|
|
|
3596
|
-
var script$
|
|
3610
|
+
var script$2 = vue.defineComponent({
|
|
3597
3611
|
name: 'long-page',
|
|
3598
3612
|
props: {
|
|
3599
3613
|
work: {
|
|
@@ -3606,9 +3620,9 @@
|
|
|
3606
3620
|
}
|
|
3607
3621
|
});
|
|
3608
3622
|
|
|
3609
|
-
const _hoisted_1$
|
|
3623
|
+
const _hoisted_1$2 = ["id"];
|
|
3610
3624
|
|
|
3611
|
-
function render$
|
|
3625
|
+
function render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3612
3626
|
return (vue.openBlock(), vue.createElementBlock("div", {
|
|
3613
3627
|
class: "final-page",
|
|
3614
3628
|
style: vue.normalizeStyle(_ctx.work && {width: _ctx.work.width, height: _ctx.work.height} )
|
|
@@ -3619,20 +3633,20 @@
|
|
|
3619
3633
|
id: `component-${item.id}`
|
|
3620
3634
|
}, [
|
|
3621
3635
|
(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(item.name), vue.normalizeProps(vue.guardReactiveProps(item.props)), null, 16 /* FULL_PROPS */))
|
|
3622
|
-
], 8 /* PROPS */, _hoisted_1$
|
|
3636
|
+
], 8 /* PROPS */, _hoisted_1$2))
|
|
3623
3637
|
}), 128 /* KEYED_FRAGMENT */))
|
|
3624
3638
|
], 4 /* STYLE */))
|
|
3625
3639
|
}
|
|
3626
3640
|
|
|
3627
|
-
script$
|
|
3628
|
-
script$
|
|
3641
|
+
script$2.render = render$2;
|
|
3642
|
+
script$2.__file = "src/components/LongPage/LongPage.vue";
|
|
3629
3643
|
|
|
3630
3644
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
3631
|
-
script$
|
|
3632
|
-
app.component(script$
|
|
3645
|
+
script$2.install = (app) => {
|
|
3646
|
+
app.component(script$2.name, script$2);
|
|
3633
3647
|
};
|
|
3634
3648
|
|
|
3635
|
-
var script = vue.defineComponent({
|
|
3649
|
+
var script$1 = vue.defineComponent({
|
|
3636
3650
|
name: 'swiper-page',
|
|
3637
3651
|
props: {
|
|
3638
3652
|
page: {
|
|
@@ -3645,34 +3659,107 @@
|
|
|
3645
3659
|
}
|
|
3646
3660
|
});
|
|
3647
3661
|
|
|
3648
|
-
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"];
|
|
3649
3722
|
|
|
3650
3723
|
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3724
|
+
const _component_a_watermark = vue.resolveComponent("a-watermark");
|
|
3725
|
+
|
|
3651
3726
|
return (vue.openBlock(), vue.createElementBlock("div", {
|
|
3652
|
-
|
|
3653
|
-
|
|
3727
|
+
style: vue.normalizeStyle(_ctx.styleProps),
|
|
3728
|
+
class: "uni-background-component"
|
|
3654
3729
|
}, [
|
|
3655
|
-
(
|
|
3656
|
-
|
|
3657
|
-
|
|
3658
|
-
|
|
3659
|
-
|
|
3660
|
-
|
|
3661
|
-
|
|
3662
|
-
|
|
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)
|
|
3663
3749
|
], 4 /* STYLE */))
|
|
3664
3750
|
}
|
|
3665
3751
|
|
|
3666
3752
|
script.render = render;
|
|
3667
|
-
script.
|
|
3753
|
+
script.__scopeId = "data-v-04e7238d";
|
|
3754
|
+
script.__file = "src/components/UniBackground/UniBackground.vue";
|
|
3668
3755
|
|
|
3669
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
3670
3756
|
script.install = (app) => {
|
|
3671
3757
|
app.component(script.name, script);
|
|
3672
3758
|
};
|
|
3673
3759
|
|
|
3674
3760
|
// export { textDefaultProps , textStylePropNames, TextComponentProps,
|
|
3675
3761
|
const components = [
|
|
3762
|
+
script$5,
|
|
3676
3763
|
script$4,
|
|
3677
3764
|
script$3,
|
|
3678
3765
|
script$2,
|
|
@@ -3689,11 +3776,12 @@
|
|
|
3689
3776
|
install
|
|
3690
3777
|
};
|
|
3691
3778
|
|
|
3692
|
-
exports.LongPage = script$
|
|
3693
|
-
exports.SwiperPage = script;
|
|
3694
|
-
exports.
|
|
3695
|
-
exports.
|
|
3696
|
-
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;
|
|
3697
3785
|
exports["default"] = index;
|
|
3698
3786
|
exports.install = install;
|
|
3699
3787
|
|