@tplc/business 0.0.18 → 0.0.20
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/CHANGELOG.md +130 -0
- package/action.d.ts +8 -0
- package/components/lcb-action-view/lcb-action-view.vue +145 -0
- package/components/lcb-action-view/types.ts +13 -0
- package/components/lcb-banner/lcb-banner.vue +1 -6
- package/components/lcb-banner/types.ts +2 -4
- package/components/lcb-banner-block/lcb-banner-block.vue +6 -16
- package/components/lcb-block/lcb-block.vue +10 -23
- package/components/lcb-block/types.ts +23 -9
- package/components/lcb-grid/lcb-grid.vue +2 -8
- package/components/lcb-home-search/lcb-home-search.vue +44 -24
- package/components/lcb-home-search/types.ts +2 -2
- package/components/lcb-image/Image/index.vue +96 -0
- package/components/lcb-image/lcb-image.vue +88 -0
- package/components/lcb-image/types.ts +15 -0
- package/components/lcb-img-nav/lcb-img-nav.vue +37 -39
- package/components/lcb-img-nav/types.ts +2 -9
- package/components/lcb-title/lcb-title.vue +2 -3
- package/components/lcb-user-order/lcb-user-order.vue +59 -54
- package/components/lcb-user-order/types.ts +2 -2
- package/components/lcb-user-top/lcb-user-top.vue +96 -48
- package/components/lcb-user-top/types.ts +1 -0
- package/components/lcb-video/lcb-video.vue +33 -0
- package/components/lcb-video/types.ts +11 -0
- package/global.d.ts +3 -0
- package/package.json +1 -1
- package/types/components/lcb-action-view/lcb-action-view.vue.d.ts +41 -0
- package/types/components/lcb-action-view/types.d.ts +13 -0
- package/types/components/lcb-banner/lcb-banner.vue.d.ts +1 -2
- package/types/components/lcb-banner/types.d.ts +2 -3
- package/types/components/lcb-banner-block/lcb-banner-block.vue.d.ts +7 -3
- package/types/components/lcb-block/lcb-block.vue.d.ts +18 -25
- package/types/components/lcb-block/types.d.ts +21 -9
- package/types/components/lcb-grid/lcb-grid.vue.d.ts +4 -1
- package/types/components/lcb-home-search/lcb-home-search.vue.d.ts +9 -0
- package/types/components/lcb-home-search/types.d.ts +2 -2
- package/types/components/lcb-image/Image/index.vue.d.ts +56 -0
- package/types/components/lcb-image/lcb-image.vue.d.ts +71 -0
- package/types/components/lcb-image/types.d.ts +13 -0
- package/types/components/lcb-img-nav/lcb-img-nav.vue.d.ts +6 -12
- package/types/components/lcb-img-nav/types.d.ts +2 -9
- package/types/components/lcb-nav/lcb-nav.vue.d.ts +1 -1
- package/types/components/lcb-title/lcb-title.vue.d.ts +6 -0
- package/types/components/lcb-user-order/lcb-user-order.vue.d.ts +1 -1
- package/types/components/lcb-user-top/lcb-user-top.vue.d.ts +3 -0
- package/types/components/lcb-user-top/types.d.ts +1 -0
- package/types/components/lcb-video/lcb-video.vue.d.ts +56 -0
- package/types/components/lcb-video/types.d.ts +10 -0
|
@@ -1,55 +1,91 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<lcb-block
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
2
|
+
<lcb-block
|
|
3
|
+
v-bind="{
|
|
4
|
+
paddingTop,
|
|
5
|
+
paddingBottom,
|
|
6
|
+
paddingLeft,
|
|
7
|
+
paddingRight,
|
|
8
|
+
backgroundColor: bgStyle === 1 ? backgroundColor : '',
|
|
9
|
+
backgroundImage: bgStyle === 2 ? backgroundImage : '',
|
|
10
|
+
}"
|
|
11
|
+
>
|
|
10
12
|
<view class="flex flex-items-center">
|
|
11
|
-
<wd-img
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
13
|
+
<wd-img
|
|
14
|
+
v-if="!!photoUrl"
|
|
15
|
+
v-bind="{
|
|
16
|
+
width: transformValueUnit(photoSize),
|
|
17
|
+
height: transformValueUnit(photoSize),
|
|
18
|
+
round: photoRound,
|
|
19
|
+
src: photoUrl,
|
|
20
|
+
}"
|
|
21
|
+
class="mr-20rpx"
|
|
22
|
+
/>
|
|
23
|
+
<view
|
|
24
|
+
v-if="!photoUrl"
|
|
25
|
+
:style="{
|
|
26
|
+
width: transformValueUnit(photoSize),
|
|
27
|
+
height: transformValueUnit(photoSize),
|
|
28
|
+
borderRadius: photoRound ? '50%' : '',
|
|
29
|
+
}"
|
|
30
|
+
class="bg-#eee userPlace mr-20rpx"
|
|
31
|
+
>
|
|
32
|
+
<!-- flex justify-center items-center overflow-hidden relative -->
|
|
33
|
+
<!-- <wd-icon name="user" :size="transformValueUnit(photoSize * 0.9)" color="#ddd" class="absolute photoIcon"></wd-icon> -->
|
|
34
|
+
</view>
|
|
17
35
|
<view class="flex-1">
|
|
18
|
-
<view
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
<view class="flex" v-if="editBtn == true">
|
|
23
|
-
<view class="flex flex-content-center flex-items-center mt-5px border-style-solid" :style="{
|
|
36
|
+
<view
|
|
37
|
+
class="font-bold"
|
|
38
|
+
:style="{
|
|
39
|
+
fontSize: transformValueUnit(textSize),
|
|
24
40
|
color: textColor,
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
41
|
+
}"
|
|
42
|
+
>
|
|
43
|
+
用户
|
|
44
|
+
</view>
|
|
45
|
+
<view class="flex" v-if="editBtn == true">
|
|
46
|
+
<view
|
|
47
|
+
class="flex flex-content-center flex-items-center mt-5px border-style-solid"
|
|
48
|
+
:style="{
|
|
49
|
+
color: textColor,
|
|
50
|
+
borderWidth: editBorder ? transformValueUnit(1) : 0,
|
|
51
|
+
borderColor: textColor,
|
|
52
|
+
padding: editBorder ? `2px ${editSize / 2.5}px 2px ${editSize / 2.5}px` : '',
|
|
53
|
+
borderRadius: transformValueUnit(30),
|
|
54
|
+
fontSize: transformValueUnit(editSize),
|
|
55
|
+
}"
|
|
56
|
+
>
|
|
31
57
|
<view>{{ editText }}</view>
|
|
32
58
|
</view>
|
|
33
59
|
</view>
|
|
34
60
|
</view>
|
|
35
|
-
<div
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
<view v-if="moreIcon == true && iconType === 0">
|
|
42
|
-
<wd-icon class-prefix="iconfont" v-bind="{
|
|
43
|
-
name: iconName,
|
|
44
|
-
size: transformValueUnit(textSize),
|
|
61
|
+
<div
|
|
62
|
+
v-if="moreIcon == true && iconType === 1"
|
|
63
|
+
class="overflow-hidden bg-no-repeat bg-contain"
|
|
64
|
+
:style="{
|
|
65
|
+
height: transformValueUnit(textSize),
|
|
66
|
+
width: transformValueUnit(textSize),
|
|
45
67
|
color: textColor,
|
|
46
|
-
|
|
68
|
+
backgroundImage: `url('${iconUpload}')`,
|
|
69
|
+
}"
|
|
70
|
+
/>
|
|
71
|
+
<view v-if="moreIcon == true && iconType === 0">
|
|
72
|
+
<wd-icon
|
|
73
|
+
class-prefix="iconfont"
|
|
74
|
+
v-bind="{
|
|
75
|
+
name: iconName,
|
|
76
|
+
size: transformValueUnit(textSize),
|
|
77
|
+
color: textColor,
|
|
78
|
+
}"
|
|
79
|
+
/>
|
|
47
80
|
</view>
|
|
48
81
|
</view>
|
|
49
|
-
<view
|
|
50
|
-
|
|
82
|
+
<view
|
|
83
|
+
v-if="valuesCard == true || coupons == true || presales == true"
|
|
84
|
+
class="flex flex-justify-between text-center mt-15px"
|
|
85
|
+
:style="{
|
|
51
86
|
color: textColor,
|
|
52
|
-
}"
|
|
87
|
+
}"
|
|
88
|
+
>
|
|
53
89
|
<View v-if="valuesCard == true" class="">
|
|
54
90
|
<view class="text-22px font-bold">0</view>
|
|
55
91
|
<view class="text-12px optName">储值卡</view>
|
|
@@ -69,6 +105,7 @@
|
|
|
69
105
|
<script setup lang="ts">
|
|
70
106
|
import { LcbUserTopProps } from './types'
|
|
71
107
|
import { transformValueUnit } from '../../utils/transform'
|
|
108
|
+
import { styleText } from 'util'
|
|
72
109
|
defineOptions({
|
|
73
110
|
name: 'LcbUserTop',
|
|
74
111
|
options: {
|
|
@@ -78,23 +115,34 @@ defineOptions({
|
|
|
78
115
|
},
|
|
79
116
|
})
|
|
80
117
|
withDefaults(defineProps<LcbUserTopProps>(), {
|
|
81
|
-
photoSize:
|
|
82
|
-
paddingLeft:
|
|
83
|
-
paddingRight:
|
|
84
|
-
paddingTop:
|
|
85
|
-
paddingBottom:
|
|
118
|
+
photoSize: 100,
|
|
119
|
+
paddingLeft: 35,
|
|
120
|
+
paddingRight: 35,
|
|
121
|
+
paddingTop: 100,
|
|
122
|
+
paddingBottom: 100,
|
|
86
123
|
photoRound: false,
|
|
87
|
-
textSize:
|
|
124
|
+
textSize: 32,
|
|
88
125
|
textColor: '#333',
|
|
89
126
|
moreIcon: true,
|
|
90
127
|
iconType: 0,
|
|
91
128
|
iconName: 'xiayiye',
|
|
92
129
|
editText: '编辑资料',
|
|
93
|
-
editSize:
|
|
130
|
+
editSize: 28,
|
|
131
|
+
bgStyle: 1,
|
|
94
132
|
})
|
|
95
133
|
</script>
|
|
96
134
|
<style lang="scss" scoped>
|
|
97
|
-
.optName{
|
|
135
|
+
.optName {
|
|
98
136
|
opacity: 0.7;
|
|
99
137
|
}
|
|
138
|
+
.userPlace {
|
|
139
|
+
background-image: url('https://image-c.weimobwmc.com/static-resource/33c59afc76d04917a8b3b62520835db6.jpg');
|
|
140
|
+
background-size: contain;
|
|
141
|
+
background-position: center bottom;
|
|
142
|
+
}
|
|
143
|
+
.photoIcon {
|
|
144
|
+
bottom: -20rpx;
|
|
145
|
+
left: 50%;
|
|
146
|
+
transform: translateX(-50%);
|
|
147
|
+
}
|
|
100
148
|
</style>
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<lcb-block v-bind="{
|
|
3
|
+
marginTop,
|
|
4
|
+
marginBottom,
|
|
5
|
+
marginLeft: marginHorizontal,
|
|
6
|
+
marginRight: marginHorizontal,
|
|
7
|
+
}">
|
|
8
|
+
<video v-bind="{
|
|
9
|
+
src,
|
|
10
|
+
loop,
|
|
11
|
+
muted,
|
|
12
|
+
autoplay,
|
|
13
|
+
showProgress,
|
|
14
|
+
}" class="w-full" />
|
|
15
|
+
</lcb-block>
|
|
16
|
+
</template>
|
|
17
|
+
|
|
18
|
+
<script setup lang="ts">
|
|
19
|
+
import { LcbVideoProps } from './types'
|
|
20
|
+
defineOptions({
|
|
21
|
+
name: 'LcbVideo',
|
|
22
|
+
options: {
|
|
23
|
+
addGlobalClass: true,
|
|
24
|
+
virtualHost: true,
|
|
25
|
+
styleIsolation: 'shared',
|
|
26
|
+
},
|
|
27
|
+
})
|
|
28
|
+
withDefaults(defineProps<LcbVideoProps>(), {
|
|
29
|
+
marginHorizontal: 0,
|
|
30
|
+
})
|
|
31
|
+
</script>
|
|
32
|
+
|
|
33
|
+
<style lang="scss" scoped></style>
|
package/global.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
declare module 'vue' {
|
|
2
2
|
// Helper for Volar
|
|
3
3
|
export interface GlobalComponents {
|
|
4
|
+
'lcb-action-view': (typeof import('./types/components/lcb-action-view/lcb-action-view.vue'))['default']
|
|
4
5
|
'lcb-banner': (typeof import('./types/components/lcb-banner/lcb-banner.vue'))['default']
|
|
5
6
|
'lcb-banner-block': (typeof import('./types/components/lcb-banner-block/lcb-banner-block.vue'))['default']
|
|
6
7
|
'lcb-block': (typeof import('./types/components/lcb-block/lcb-block.vue'))['default']
|
|
@@ -8,12 +9,14 @@ declare module 'vue' {
|
|
|
8
9
|
'lcb-gap': (typeof import('./types/components/lcb-gap/lcb-gap.vue'))['default']
|
|
9
10
|
'lcb-grid': (typeof import('./types/components/lcb-grid/lcb-grid.vue'))['default']
|
|
10
11
|
'lcb-home-search': (typeof import('./types/components/lcb-home-search/lcb-home-search.vue'))['default']
|
|
12
|
+
'lcb-image': (typeof import('./types/components/lcb-image/lcb-image.vue'))['default']
|
|
11
13
|
'lcb-img-nav': (typeof import('./types/components/lcb-img-nav/lcb-img-nav.vue'))['default']
|
|
12
14
|
'lcb-nav': (typeof import('./types/components/lcb-nav/lcb-nav.vue'))['default']
|
|
13
15
|
'lcb-swiper': (typeof import('./types/components/lcb-swiper/lcb-swiper.vue'))['default']
|
|
14
16
|
'lcb-title': (typeof import('./types/components/lcb-title/lcb-title.vue'))['default']
|
|
15
17
|
'lcb-user-order': (typeof import('./types/components/lcb-user-order/lcb-user-order.vue'))['default']
|
|
16
18
|
'lcb-user-top': (typeof import('./types/components/lcb-user-top/lcb-user-top.vue'))['default']
|
|
19
|
+
'lcb-video': (typeof import('./types/components/lcb-video/lcb-video.vue'))['default']
|
|
17
20
|
}
|
|
18
21
|
}
|
|
19
22
|
|
package/package.json
CHANGED
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { LcbActionViewProps } from './types'
|
|
2
|
+
declare function __VLS_template(): {
|
|
3
|
+
default?(_: {}): any
|
|
4
|
+
}
|
|
5
|
+
declare const __VLS_component: import('vue').DefineComponent<
|
|
6
|
+
__VLS_TypePropsToOption<LcbActionViewProps>,
|
|
7
|
+
{},
|
|
8
|
+
unknown,
|
|
9
|
+
{},
|
|
10
|
+
{},
|
|
11
|
+
import('vue').ComponentOptionsMixin,
|
|
12
|
+
import('vue').ComponentOptionsMixin,
|
|
13
|
+
{},
|
|
14
|
+
string,
|
|
15
|
+
import('vue').PublicProps,
|
|
16
|
+
Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToOption<LcbActionViewProps>>>,
|
|
17
|
+
{},
|
|
18
|
+
{}
|
|
19
|
+
>
|
|
20
|
+
declare const _default: __VLS_WithTemplateSlots<
|
|
21
|
+
typeof __VLS_component,
|
|
22
|
+
ReturnType<typeof __VLS_template>
|
|
23
|
+
>
|
|
24
|
+
export default _default
|
|
25
|
+
|
|
26
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
27
|
+
new (): {
|
|
28
|
+
$slots: S
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T
|
|
32
|
+
type __VLS_TypePropsToOption<T> = {
|
|
33
|
+
[K in keyof T]-?: {} extends Pick<T, K>
|
|
34
|
+
? {
|
|
35
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>
|
|
36
|
+
}
|
|
37
|
+
: {
|
|
38
|
+
type: import('vue').PropType<T[K]>
|
|
39
|
+
required: true
|
|
40
|
+
}
|
|
41
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export interface LcbActionViewProps {
|
|
2
|
+
/**
|
|
3
|
+
* 跳转类型 1: 网页 2: 小程序内页 10: 跳转小程序 11: 跳转半屏小程序 12: 小程序客服
|
|
4
|
+
* 13: 退出登录 14: 小程序弹框 21: 新窗口跳到页面 22: 切换TAB页 23: 重启进入某页面
|
|
5
|
+
* 24: 回到上一层 25: 关闭当前页面 26: 关闭当前窗口 30: 拨打电话 88: 授权手机号
|
|
6
|
+
*/
|
|
7
|
+
jumpType: 1 | 2 | 10 | 11 | 12 | 13 | 14 | 21 | 22 | 23 | 24 | 25 | 26 | 30 | 88
|
|
8
|
+
/** 跳转路径 */
|
|
9
|
+
jumpPageUrl?: string
|
|
10
|
+
/** 小程序appid */
|
|
11
|
+
jumpAppid?: string
|
|
12
|
+
phoneNumber?: string
|
|
13
|
+
}
|
|
@@ -30,14 +30,13 @@ declare const _default: import('vue').DefineComponent<
|
|
|
30
30
|
>
|
|
31
31
|
>,
|
|
32
32
|
{
|
|
33
|
-
styleGroup: 1 | 2
|
|
34
33
|
radius: number
|
|
34
|
+
styleGroup: 1 | 2
|
|
35
35
|
slidingStyle: 1 | 2
|
|
36
36
|
},
|
|
37
37
|
{}
|
|
38
38
|
>
|
|
39
39
|
export default _default
|
|
40
|
-
|
|
41
40
|
type __VLS_WithDefaults<P, D> = {
|
|
42
41
|
[K in keyof Pick<P, keyof P>]: K extends keyof D
|
|
43
42
|
? __VLS_Prettify<
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ActionView } from 'action'
|
|
2
|
-
|
|
2
|
+
import { LcbBlockProps } from '../lcb-block/types'
|
|
3
|
+
export interface LcbBannerProps extends LcbBlockProps {
|
|
3
4
|
items?: Partial<ActionView>[]
|
|
4
5
|
imageWidth?: number
|
|
5
6
|
/** 风格 1.平铺 2.卡片 */
|
|
@@ -43,6 +44,4 @@ export interface LcbBannerProps {
|
|
|
43
44
|
indicator?: 'dots' | 'dots-bar' | 'fraction'
|
|
44
45
|
/** 滑动样式 1平面 2立体 */
|
|
45
46
|
slidingStyle?: 1 | 2
|
|
46
|
-
marginTop?: number
|
|
47
|
-
marginBottom?: number
|
|
48
47
|
}
|
|
@@ -3,8 +3,9 @@ declare const _default: import('vue').DefineComponent<
|
|
|
3
3
|
__VLS_WithDefaults<
|
|
4
4
|
__VLS_TypePropsToOption<LcbBannerListProps>,
|
|
5
5
|
{
|
|
6
|
-
|
|
6
|
+
radius: number
|
|
7
7
|
imageRadius: number
|
|
8
|
+
marginHorizontal: number
|
|
8
9
|
backgroundColor: string
|
|
9
10
|
}
|
|
10
11
|
>,
|
|
@@ -22,16 +23,19 @@ declare const _default: import('vue').DefineComponent<
|
|
|
22
23
|
__VLS_WithDefaults<
|
|
23
24
|
__VLS_TypePropsToOption<LcbBannerListProps>,
|
|
24
25
|
{
|
|
25
|
-
|
|
26
|
+
radius: number
|
|
26
27
|
imageRadius: number
|
|
28
|
+
marginHorizontal: number
|
|
27
29
|
backgroundColor: string
|
|
28
30
|
}
|
|
29
31
|
>
|
|
30
32
|
>
|
|
31
33
|
>,
|
|
32
34
|
{
|
|
33
|
-
|
|
35
|
+
marginHorizontal: number
|
|
34
36
|
backgroundColor: string
|
|
37
|
+
radius: number
|
|
38
|
+
imageRadius: number
|
|
35
39
|
},
|
|
36
40
|
{}
|
|
37
41
|
>
|
|
@@ -1,9 +1,16 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { LcbBlockInnerProps } from './types'
|
|
2
2
|
declare function __VLS_template(): {
|
|
3
3
|
default?(_: {}): any
|
|
4
4
|
}
|
|
5
5
|
declare const __VLS_component: import('vue').DefineComponent<
|
|
6
|
-
__VLS_WithDefaults<
|
|
6
|
+
__VLS_WithDefaults<
|
|
7
|
+
__VLS_TypePropsToOption<LcbBlockInnerProps>,
|
|
8
|
+
{
|
|
9
|
+
backgroundSize: string
|
|
10
|
+
backgroundRepeat: string
|
|
11
|
+
backgroundPosition: string
|
|
12
|
+
}
|
|
13
|
+
>,
|
|
7
14
|
{},
|
|
8
15
|
unknown,
|
|
9
16
|
{},
|
|
@@ -15,31 +22,17 @@ declare const __VLS_component: import('vue').DefineComponent<
|
|
|
15
22
|
import('vue').PublicProps,
|
|
16
23
|
Readonly<
|
|
17
24
|
import('vue').ExtractPropTypes<
|
|
18
|
-
__VLS_WithDefaults<
|
|
25
|
+
__VLS_WithDefaults<
|
|
26
|
+
__VLS_TypePropsToOption<LcbBlockInnerProps>,
|
|
27
|
+
{
|
|
28
|
+
backgroundSize: string
|
|
29
|
+
backgroundRepeat: string
|
|
30
|
+
backgroundPosition: string
|
|
31
|
+
}
|
|
32
|
+
>
|
|
19
33
|
>
|
|
20
34
|
>,
|
|
21
|
-
{
|
|
22
|
-
radius: number
|
|
23
|
-
marginTop: number
|
|
24
|
-
marginBottom: number
|
|
25
|
-
bold: boolean
|
|
26
|
-
customClass: string
|
|
27
|
-
backgroundColor: string
|
|
28
|
-
backgroundImage: string
|
|
29
|
-
paddingTop: number
|
|
30
|
-
paddingBottom: number
|
|
31
|
-
color: string
|
|
32
|
-
fontSize: number
|
|
33
|
-
card: boolean
|
|
34
|
-
paddingLeft: number
|
|
35
|
-
paddingRight: number
|
|
36
|
-
marginLeft: number
|
|
37
|
-
marginRight: number
|
|
38
|
-
backgroundRepeat: 'repeat' | 'repeat-x' | 'repeat-y' | 'no-repeat'
|
|
39
|
-
backgroundSize: string
|
|
40
|
-
backgroundPosition: string
|
|
41
|
-
boxShadow: string
|
|
42
|
-
},
|
|
35
|
+
{},
|
|
43
36
|
{}
|
|
44
37
|
>
|
|
45
38
|
declare const _default: __VLS_WithTemplateSlots<
|
|
@@ -1,22 +1,34 @@
|
|
|
1
1
|
export interface LcbBlockProps {
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
/** 左右外距 */
|
|
3
|
+
marginHorizontal?: number
|
|
4
|
+
/** 左右内距 */
|
|
5
|
+
paddingHorizontal?: number
|
|
6
|
+
/** 上下内距 */
|
|
7
|
+
paddingVertical?: number
|
|
8
|
+
/** 背景颜色 #ffffff */
|
|
4
9
|
backgroundColor?: string
|
|
10
|
+
/** 背景图片 */
|
|
5
11
|
backgroundImage?: string
|
|
12
|
+
/** 上浮距离 */
|
|
13
|
+
floatUp?: number
|
|
14
|
+
/** 阴影颜色 */
|
|
15
|
+
shadowColor?: string
|
|
16
|
+
/** 阴影大小 */
|
|
17
|
+
shadowSize?: number
|
|
18
|
+
/** 模糊大小 */
|
|
19
|
+
blurSize?: number
|
|
6
20
|
paddingTop?: number
|
|
7
21
|
paddingBottom?: number
|
|
22
|
+
paddingLeft?: number
|
|
23
|
+
paddingRight?: number
|
|
8
24
|
color?: string
|
|
9
25
|
fontSize?: number
|
|
10
|
-
bold?: boolean
|
|
11
26
|
radius?: number
|
|
12
27
|
customClass?: string
|
|
13
|
-
card?: boolean
|
|
14
|
-
paddingLeft?: number
|
|
15
|
-
paddingRight?: number
|
|
16
|
-
marginLeft?: number
|
|
17
|
-
marginRight?: number
|
|
18
28
|
backgroundRepeat?: 'repeat' | 'repeat-x' | 'repeat-y' | 'no-repeat'
|
|
19
29
|
backgroundSize?: string
|
|
20
30
|
backgroundPosition?: string
|
|
21
|
-
|
|
31
|
+
}
|
|
32
|
+
export interface LcbBlockInnerProps extends LcbBlockProps {
|
|
33
|
+
[key: string]: any
|
|
22
34
|
}
|
|
@@ -3,6 +3,7 @@ declare const _default: import('vue').DefineComponent<
|
|
|
3
3
|
__VLS_WithDefaults<
|
|
4
4
|
__VLS_TypePropsToOption<LcbGridProps>,
|
|
5
5
|
{
|
|
6
|
+
marginHorizontal: number
|
|
6
7
|
height: number
|
|
7
8
|
cols: number
|
|
8
9
|
radius: number
|
|
@@ -22,6 +23,7 @@ declare const _default: import('vue').DefineComponent<
|
|
|
22
23
|
__VLS_WithDefaults<
|
|
23
24
|
__VLS_TypePropsToOption<LcbGridProps>,
|
|
24
25
|
{
|
|
26
|
+
marginHorizontal: number
|
|
25
27
|
height: number
|
|
26
28
|
cols: number
|
|
27
29
|
radius: number
|
|
@@ -30,8 +32,9 @@ declare const _default: import('vue').DefineComponent<
|
|
|
30
32
|
>
|
|
31
33
|
>,
|
|
32
34
|
{
|
|
33
|
-
|
|
35
|
+
marginHorizontal: number
|
|
34
36
|
radius: number
|
|
37
|
+
height: number
|
|
35
38
|
cols: number
|
|
36
39
|
},
|
|
37
40
|
{}
|
|
@@ -3,6 +3,9 @@ declare const _default: import('vue').DefineComponent<
|
|
|
3
3
|
__VLS_WithDefaults<
|
|
4
4
|
__VLS_TypePropsToOption<LcbHomeSearch>,
|
|
5
5
|
{
|
|
6
|
+
marginHorizontal: number
|
|
7
|
+
backgroundColor: string
|
|
8
|
+
radius: number
|
|
6
9
|
placeholder: string
|
|
7
10
|
}
|
|
8
11
|
>,
|
|
@@ -20,12 +23,18 @@ declare const _default: import('vue').DefineComponent<
|
|
|
20
23
|
__VLS_WithDefaults<
|
|
21
24
|
__VLS_TypePropsToOption<LcbHomeSearch>,
|
|
22
25
|
{
|
|
26
|
+
marginHorizontal: number
|
|
27
|
+
backgroundColor: string
|
|
28
|
+
radius: number
|
|
23
29
|
placeholder: string
|
|
24
30
|
}
|
|
25
31
|
>
|
|
26
32
|
>
|
|
27
33
|
>,
|
|
28
34
|
{
|
|
35
|
+
marginHorizontal: number
|
|
36
|
+
backgroundColor: string
|
|
37
|
+
radius: number
|
|
29
38
|
placeholder: string
|
|
30
39
|
},
|
|
31
40
|
{}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { LcbImageProps } from '../types'
|
|
2
|
+
declare const _default: import('vue').DefineComponent<
|
|
3
|
+
__VLS_WithDefaults<
|
|
4
|
+
__VLS_TypePropsToOption<LcbImageProps>,
|
|
5
|
+
{
|
|
6
|
+
imageMargin: number
|
|
7
|
+
}
|
|
8
|
+
>,
|
|
9
|
+
{},
|
|
10
|
+
unknown,
|
|
11
|
+
{},
|
|
12
|
+
{},
|
|
13
|
+
import('vue').ComponentOptionsMixin,
|
|
14
|
+
import('vue').ComponentOptionsMixin,
|
|
15
|
+
{},
|
|
16
|
+
string,
|
|
17
|
+
import('vue').PublicProps,
|
|
18
|
+
Readonly<
|
|
19
|
+
import('vue').ExtractPropTypes<
|
|
20
|
+
__VLS_WithDefaults<
|
|
21
|
+
__VLS_TypePropsToOption<LcbImageProps>,
|
|
22
|
+
{
|
|
23
|
+
imageMargin: number
|
|
24
|
+
}
|
|
25
|
+
>
|
|
26
|
+
>
|
|
27
|
+
>,
|
|
28
|
+
{
|
|
29
|
+
imageMargin: number
|
|
30
|
+
},
|
|
31
|
+
{}
|
|
32
|
+
>
|
|
33
|
+
export default _default
|
|
34
|
+
type __VLS_WithDefaults<P, D> = {
|
|
35
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D
|
|
36
|
+
? __VLS_Prettify<
|
|
37
|
+
P[K] & {
|
|
38
|
+
default: D[K]
|
|
39
|
+
}
|
|
40
|
+
>
|
|
41
|
+
: P[K]
|
|
42
|
+
}
|
|
43
|
+
type __VLS_Prettify<T> = {
|
|
44
|
+
[K in keyof T]: T[K]
|
|
45
|
+
} & {}
|
|
46
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T
|
|
47
|
+
type __VLS_TypePropsToOption<T> = {
|
|
48
|
+
[K in keyof T]-?: {} extends Pick<T, K>
|
|
49
|
+
? {
|
|
50
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>
|
|
51
|
+
}
|
|
52
|
+
: {
|
|
53
|
+
type: import('vue').PropType<T[K]>
|
|
54
|
+
required: true
|
|
55
|
+
}
|
|
56
|
+
}
|