@tplc/business 0.0.17 → 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 +36 -31
- package/components/lcb-banner/types.ts +3 -3
- package/components/lcb-banner-block/lcb-banner-block.vue +43 -35
- package/components/lcb-banner-block/types.ts +5 -0
- package/components/lcb-block/lcb-block.vue +10 -23
- package/components/lcb-block/types.ts +23 -9
- package/components/lcb-filter/components/FilterSlider/index.vue +40 -4
- package/components/lcb-filter/components/TreeSelect/index.vue +48 -5
- package/components/lcb-filter/lcb-filter.vue +4 -0
- package/components/lcb-gap/lcb-gap.vue +23 -0
- package/components/lcb-gap/types.ts +5 -0
- package/components/lcb-grid/lcb-grid.vue +5 -10
- package/components/lcb-home-search/lcb-home-search.vue +73 -38
- package/components/lcb-home-search/types.ts +7 -0
- 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 +42 -44
- package/components/lcb-img-nav/types.ts +2 -9
- package/components/lcb-nav/lcb-nav.vue +10 -6
- 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 +4 -0
- package/iconfonts/index.css +24 -5
- package/package.json +2 -2
- 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 +3 -3
- package/types/components/lcb-banner-block/lcb-banner-block.vue.d.ts +9 -2
- package/types/components/lcb-banner-block/types.d.ts +5 -0
- 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-gap/lcb-gap.vue.d.ts +42 -0
- package/types/components/lcb-gap/types.d.ts +5 -0
- package/types/components/lcb-grid/lcb-grid.vue.d.ts +4 -1
- package/types/components/lcb-home-search/lcb-home-search.vue.d.ts +37 -7
- package/types/components/lcb-home-search/types.d.ts +6 -0
- 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
- package/utils/transform.ts +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tplc/business",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.20",
|
|
4
4
|
"keywords": [
|
|
5
5
|
"业务组件"
|
|
6
6
|
],
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
},
|
|
12
12
|
"peerDependencies": {
|
|
13
13
|
"vue": ">=3.2.47",
|
|
14
|
-
"@tplc/wot": "0.1.
|
|
14
|
+
"@tplc/wot": "0.1.6"
|
|
15
15
|
},
|
|
16
16
|
"engines": {
|
|
17
17
|
"node": ">=18",
|
|
@@ -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.卡片 */
|
|
@@ -13,6 +14,7 @@ export interface LcbBannerProps {
|
|
|
13
14
|
duration?: number
|
|
14
15
|
/** 轮播图高度 默认192 */
|
|
15
16
|
height?: number
|
|
17
|
+
imgWidth?: number
|
|
16
18
|
/** 轮播间隔时间 5000ms */
|
|
17
19
|
interval?: number
|
|
18
20
|
/** 是否循环播放 默认 true */
|
|
@@ -42,6 +44,4 @@ export interface LcbBannerProps {
|
|
|
42
44
|
indicator?: 'dots' | 'dots-bar' | 'fraction'
|
|
43
45
|
/** 滑动样式 1平面 2立体 */
|
|
44
46
|
slidingStyle?: 1 | 2
|
|
45
|
-
marginTop?: number
|
|
46
|
-
marginBottom?: number
|
|
47
47
|
}
|
|
@@ -3,7 +3,9 @@ declare const _default: import('vue').DefineComponent<
|
|
|
3
3
|
__VLS_WithDefaults<
|
|
4
4
|
__VLS_TypePropsToOption<LcbBannerListProps>,
|
|
5
5
|
{
|
|
6
|
-
|
|
6
|
+
radius: number
|
|
7
|
+
imageRadius: number
|
|
8
|
+
marginHorizontal: number
|
|
7
9
|
backgroundColor: string
|
|
8
10
|
}
|
|
9
11
|
>,
|
|
@@ -21,14 +23,19 @@ declare const _default: import('vue').DefineComponent<
|
|
|
21
23
|
__VLS_WithDefaults<
|
|
22
24
|
__VLS_TypePropsToOption<LcbBannerListProps>,
|
|
23
25
|
{
|
|
24
|
-
|
|
26
|
+
radius: number
|
|
27
|
+
imageRadius: number
|
|
28
|
+
marginHorizontal: number
|
|
25
29
|
backgroundColor: string
|
|
26
30
|
}
|
|
27
31
|
>
|
|
28
32
|
>
|
|
29
33
|
>,
|
|
30
34
|
{
|
|
35
|
+
marginHorizontal: number
|
|
31
36
|
backgroundColor: string
|
|
37
|
+
radius: number
|
|
38
|
+
imageRadius: number
|
|
32
39
|
},
|
|
33
40
|
{}
|
|
34
41
|
>
|
|
@@ -6,8 +6,13 @@ export interface LcbBannerListProps extends LcbBlockProps {
|
|
|
6
6
|
styleGroup?: 1 | 2
|
|
7
7
|
/** 轮播图高度 默认192 */
|
|
8
8
|
height?: number
|
|
9
|
+
/** 轮播图宽度 */
|
|
10
|
+
imgWidth?: number
|
|
9
11
|
title: string
|
|
10
12
|
hint?: string
|
|
13
|
+
logo?: string
|
|
11
14
|
rightIcon?: string
|
|
12
15
|
leftIcon?: string
|
|
16
|
+
itemPadding?: number
|
|
17
|
+
imageRadius?: number
|
|
13
18
|
}
|
|
@@ -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
|
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { LcbGapProps } from './types'
|
|
2
|
+
declare const _default: import('vue').DefineComponent<
|
|
3
|
+
__VLS_WithDefaults<__VLS_TypePropsToOption<LcbGapProps>, {}>,
|
|
4
|
+
{},
|
|
5
|
+
unknown,
|
|
6
|
+
{},
|
|
7
|
+
{},
|
|
8
|
+
import('vue').ComponentOptionsMixin,
|
|
9
|
+
import('vue').ComponentOptionsMixin,
|
|
10
|
+
{},
|
|
11
|
+
string,
|
|
12
|
+
import('vue').PublicProps,
|
|
13
|
+
Readonly<
|
|
14
|
+
import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<LcbGapProps>, {}>>
|
|
15
|
+
>,
|
|
16
|
+
{},
|
|
17
|
+
{}
|
|
18
|
+
>
|
|
19
|
+
export default _default
|
|
20
|
+
type __VLS_WithDefaults<P, D> = {
|
|
21
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D
|
|
22
|
+
? __VLS_Prettify<
|
|
23
|
+
P[K] & {
|
|
24
|
+
default: D[K]
|
|
25
|
+
}
|
|
26
|
+
>
|
|
27
|
+
: P[K]
|
|
28
|
+
}
|
|
29
|
+
type __VLS_Prettify<T> = {
|
|
30
|
+
[K in keyof T]: T[K]
|
|
31
|
+
} & {}
|
|
32
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T
|
|
33
|
+
type __VLS_TypePropsToOption<T> = {
|
|
34
|
+
[K in keyof T]-?: {} extends Pick<T, K>
|
|
35
|
+
? {
|
|
36
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>
|
|
37
|
+
}
|
|
38
|
+
: {
|
|
39
|
+
type: import('vue').PropType<T[K]>
|
|
40
|
+
required: true
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -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
|
{}
|
|
@@ -1,7 +1,14 @@
|
|
|
1
|
+
import { LcbHomeSearch } from './types'
|
|
1
2
|
declare const _default: import('vue').DefineComponent<
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
__VLS_WithDefaults<
|
|
4
|
+
__VLS_TypePropsToOption<LcbHomeSearch>,
|
|
5
|
+
{
|
|
6
|
+
marginHorizontal: number
|
|
7
|
+
backgroundColor: string
|
|
8
|
+
radius: number
|
|
9
|
+
placeholder: string
|
|
10
|
+
}
|
|
11
|
+
>,
|
|
5
12
|
{},
|
|
6
13
|
unknown,
|
|
7
14
|
{},
|
|
@@ -13,15 +20,38 @@ declare const _default: import('vue').DefineComponent<
|
|
|
13
20
|
import('vue').PublicProps,
|
|
14
21
|
Readonly<
|
|
15
22
|
import('vue').ExtractPropTypes<
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
23
|
+
__VLS_WithDefaults<
|
|
24
|
+
__VLS_TypePropsToOption<LcbHomeSearch>,
|
|
25
|
+
{
|
|
26
|
+
marginHorizontal: number
|
|
27
|
+
backgroundColor: string
|
|
28
|
+
radius: number
|
|
29
|
+
placeholder: string
|
|
30
|
+
}
|
|
31
|
+
>
|
|
19
32
|
>
|
|
20
33
|
>,
|
|
21
|
-
{
|
|
34
|
+
{
|
|
35
|
+
marginHorizontal: number
|
|
36
|
+
backgroundColor: string
|
|
37
|
+
radius: number
|
|
38
|
+
placeholder: string
|
|
39
|
+
},
|
|
22
40
|
{}
|
|
23
41
|
>
|
|
24
42
|
export default _default
|
|
43
|
+
type __VLS_WithDefaults<P, D> = {
|
|
44
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D
|
|
45
|
+
? __VLS_Prettify<
|
|
46
|
+
P[K] & {
|
|
47
|
+
default: D[K]
|
|
48
|
+
}
|
|
49
|
+
>
|
|
50
|
+
: P[K]
|
|
51
|
+
}
|
|
52
|
+
type __VLS_Prettify<T> = {
|
|
53
|
+
[K in keyof T]: T[K]
|
|
54
|
+
} & {}
|
|
25
55
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T
|
|
26
56
|
type __VLS_TypePropsToOption<T> = {
|
|
27
57
|
[K in keyof T]-?: {} extends Pick<T, K>
|
|
@@ -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
|
+
}
|
|
@@ -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
46
|
textColor: string
|
|
49
|
-
bgColor: 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
|