@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
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { LcbImageProps } from './types'
|
|
2
|
+
declare const _default: import('vue').DefineComponent<
|
|
3
|
+
__VLS_WithDefaults<
|
|
4
|
+
__VLS_TypePropsToOption<LcbImageProps>,
|
|
5
|
+
{
|
|
6
|
+
styleGroup: number
|
|
7
|
+
imageMargin: number
|
|
8
|
+
imageSize: number
|
|
9
|
+
marginTop: number
|
|
10
|
+
marginBottom: number
|
|
11
|
+
marginHorizontal: number
|
|
12
|
+
}
|
|
13
|
+
>,
|
|
14
|
+
{},
|
|
15
|
+
unknown,
|
|
16
|
+
{},
|
|
17
|
+
{},
|
|
18
|
+
import('vue').ComponentOptionsMixin,
|
|
19
|
+
import('vue').ComponentOptionsMixin,
|
|
20
|
+
{},
|
|
21
|
+
string,
|
|
22
|
+
import('vue').PublicProps,
|
|
23
|
+
Readonly<
|
|
24
|
+
import('vue').ExtractPropTypes<
|
|
25
|
+
__VLS_WithDefaults<
|
|
26
|
+
__VLS_TypePropsToOption<LcbImageProps>,
|
|
27
|
+
{
|
|
28
|
+
styleGroup: number
|
|
29
|
+
imageMargin: number
|
|
30
|
+
imageSize: number
|
|
31
|
+
marginTop: number
|
|
32
|
+
marginBottom: number
|
|
33
|
+
marginHorizontal: number
|
|
34
|
+
}
|
|
35
|
+
>
|
|
36
|
+
>
|
|
37
|
+
>,
|
|
38
|
+
{
|
|
39
|
+
marginHorizontal: number
|
|
40
|
+
styleGroup: number
|
|
41
|
+
marginTop: number
|
|
42
|
+
imageMargin: number
|
|
43
|
+
imageSize: number
|
|
44
|
+
marginBottom: number
|
|
45
|
+
},
|
|
46
|
+
{}
|
|
47
|
+
>
|
|
48
|
+
export default _default
|
|
49
|
+
type __VLS_WithDefaults<P, D> = {
|
|
50
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D
|
|
51
|
+
? __VLS_Prettify<
|
|
52
|
+
P[K] & {
|
|
53
|
+
default: D[K]
|
|
54
|
+
}
|
|
55
|
+
>
|
|
56
|
+
: P[K]
|
|
57
|
+
}
|
|
58
|
+
type __VLS_Prettify<T> = {
|
|
59
|
+
[K in keyof T]: T[K]
|
|
60
|
+
} & {}
|
|
61
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T
|
|
62
|
+
type __VLS_TypePropsToOption<T> = {
|
|
63
|
+
[K in keyof T]-?: {} extends Pick<T, K>
|
|
64
|
+
? {
|
|
65
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>
|
|
66
|
+
}
|
|
67
|
+
: {
|
|
68
|
+
type: import('vue').PropType<T[K]>
|
|
69
|
+
required: true
|
|
70
|
+
}
|
|
71
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ActionView } from 'action'
|
|
2
|
+
export interface LcbImageProps {
|
|
3
|
+
items?: Partial<ActionView>[]
|
|
4
|
+
styleGroup?: number
|
|
5
|
+
imageRadius?: number
|
|
6
|
+
itemPadding?: number
|
|
7
|
+
enablePreview?: boolean
|
|
8
|
+
marginHorizontal?: number
|
|
9
|
+
imageMargin?: number
|
|
10
|
+
imageSize?: number
|
|
11
|
+
marginTop?: number
|
|
12
|
+
marginBottom?: number
|
|
13
|
+
}
|
|
@@ -3,14 +3,12 @@ declare const _default: import('vue').DefineComponent<
|
|
|
3
3
|
__VLS_WithDefaults<
|
|
4
4
|
__VLS_TypePropsToOption<LcbImgNavProps>,
|
|
5
5
|
{
|
|
6
|
-
bgColor: string
|
|
7
6
|
textColor: string
|
|
8
7
|
iconColor: string
|
|
9
8
|
iconRadius: number
|
|
10
|
-
|
|
11
|
-
bottomMargin: number
|
|
9
|
+
paddingVertical: number
|
|
12
10
|
iconSize: number
|
|
13
|
-
|
|
11
|
+
paddingHorizontal: number
|
|
14
12
|
iconTextMargin: number
|
|
15
13
|
pictureDistribution: number
|
|
16
14
|
}
|
|
@@ -29,14 +27,12 @@ declare const _default: import('vue').DefineComponent<
|
|
|
29
27
|
__VLS_WithDefaults<
|
|
30
28
|
__VLS_TypePropsToOption<LcbImgNavProps>,
|
|
31
29
|
{
|
|
32
|
-
bgColor: string
|
|
33
30
|
textColor: string
|
|
34
31
|
iconColor: string
|
|
35
32
|
iconRadius: number
|
|
36
|
-
|
|
37
|
-
bottomMargin: number
|
|
33
|
+
paddingVertical: number
|
|
38
34
|
iconSize: number
|
|
39
|
-
|
|
35
|
+
paddingHorizontal: number
|
|
40
36
|
iconTextMargin: number
|
|
41
37
|
pictureDistribution: number
|
|
42
38
|
}
|
|
@@ -44,14 +40,12 @@ declare const _default: import('vue').DefineComponent<
|
|
|
44
40
|
>
|
|
45
41
|
>,
|
|
46
42
|
{
|
|
43
|
+
paddingHorizontal: number
|
|
44
|
+
paddingVertical: number
|
|
47
45
|
iconSize: number
|
|
48
|
-
bgColor: string
|
|
49
46
|
textColor: string
|
|
50
47
|
iconColor: string
|
|
51
|
-
topMargin: 0 | 24 | 36
|
|
52
|
-
bottomMargin: 0 | 24 | 36
|
|
53
48
|
pictureDistribution: 3 | 4 | 5
|
|
54
|
-
leftRightMargin: number
|
|
55
49
|
iconRadius: number
|
|
56
50
|
iconTextMargin: number
|
|
57
51
|
},
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { ActionView } from 'action'
|
|
2
|
-
|
|
2
|
+
import { LcbBlockProps } from '../lcb-block/types'
|
|
3
|
+
export interface LcbImgNavProps extends LcbBlockProps {
|
|
3
4
|
/** 模式 1.单行 2.多行 */
|
|
4
5
|
styleGroup?: 1 | 2
|
|
5
6
|
/** 文字颜色 #212121 */
|
|
6
7
|
textColor?: string
|
|
7
|
-
/** 背景颜色 #ffffff */
|
|
8
|
-
bgColor?: string
|
|
9
8
|
/** 背景图片 */
|
|
10
9
|
bgImg?: string
|
|
11
10
|
/** 图标颜色 #212121 */
|
|
@@ -14,14 +13,8 @@ export interface LcbImgNavProps {
|
|
|
14
13
|
iconType?: 0 | 1
|
|
15
14
|
/** 数据内容 */
|
|
16
15
|
items?: ActionView[]
|
|
17
|
-
/** 上边距 */
|
|
18
|
-
topMargin?: 0 | 24 | 36
|
|
19
|
-
/** 下边距 */
|
|
20
|
-
bottomMargin?: 0 | 24 | 36
|
|
21
16
|
/** 排布方式每行几个 */
|
|
22
17
|
pictureDistribution?: 3 | 4 | 5
|
|
23
|
-
/** 左右间距 */
|
|
24
|
-
leftRightMargin?: number
|
|
25
18
|
/** 图标尺寸 0.小40px 2.大50px */
|
|
26
19
|
iconSize?: number
|
|
27
20
|
/** 图标圆角 默认 0 */
|
|
@@ -3,9 +3,11 @@ declare const _default: import('vue').DefineComponent<
|
|
|
3
3
|
__VLS_WithDefaults<
|
|
4
4
|
__VLS_TypePropsToOption<LcbTitleProps>,
|
|
5
5
|
{
|
|
6
|
+
marginHorizontal: number
|
|
6
7
|
fontWeight: number
|
|
7
8
|
fontSize: number
|
|
8
9
|
color: string
|
|
10
|
+
title: string
|
|
9
11
|
}
|
|
10
12
|
>,
|
|
11
13
|
{},
|
|
@@ -22,14 +24,18 @@ declare const _default: import('vue').DefineComponent<
|
|
|
22
24
|
__VLS_WithDefaults<
|
|
23
25
|
__VLS_TypePropsToOption<LcbTitleProps>,
|
|
24
26
|
{
|
|
27
|
+
marginHorizontal: number
|
|
25
28
|
fontWeight: number
|
|
26
29
|
fontSize: number
|
|
27
30
|
color: string
|
|
31
|
+
title: string
|
|
28
32
|
}
|
|
29
33
|
>
|
|
30
34
|
>
|
|
31
35
|
>,
|
|
32
36
|
{
|
|
37
|
+
title: string
|
|
38
|
+
marginHorizontal: number
|
|
33
39
|
color: string
|
|
34
40
|
fontSize: number
|
|
35
41
|
fontWeight: number
|
|
@@ -16,6 +16,7 @@ declare const _default: import('vue').DefineComponent<
|
|
|
16
16
|
iconName: string
|
|
17
17
|
editText: string
|
|
18
18
|
editSize: number
|
|
19
|
+
bgStyle: number
|
|
19
20
|
}
|
|
20
21
|
>,
|
|
21
22
|
{},
|
|
@@ -45,6 +46,7 @@ declare const _default: import('vue').DefineComponent<
|
|
|
45
46
|
iconName: string
|
|
46
47
|
editText: string
|
|
47
48
|
editSize: number
|
|
49
|
+
bgStyle: number
|
|
48
50
|
}
|
|
49
51
|
>
|
|
50
52
|
>
|
|
@@ -60,6 +62,7 @@ declare const _default: import('vue').DefineComponent<
|
|
|
60
62
|
textSize: number
|
|
61
63
|
photoRound: boolean
|
|
62
64
|
photoSize: number
|
|
65
|
+
bgStyle: 1 | 2
|
|
63
66
|
moreIcon: boolean
|
|
64
67
|
editText: string
|
|
65
68
|
editSize: number
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { LcbVideoProps } from './types'
|
|
2
|
+
declare const _default: import('vue').DefineComponent<
|
|
3
|
+
__VLS_WithDefaults<
|
|
4
|
+
__VLS_TypePropsToOption<LcbVideoProps>,
|
|
5
|
+
{
|
|
6
|
+
marginHorizontal: 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<LcbVideoProps>,
|
|
22
|
+
{
|
|
23
|
+
marginHorizontal: number
|
|
24
|
+
}
|
|
25
|
+
>
|
|
26
|
+
>
|
|
27
|
+
>,
|
|
28
|
+
{
|
|
29
|
+
marginHorizontal: 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
|
+
}
|