@tplc/business 0.0.48 → 0.0.50
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 +270 -0
- package/action.d.ts +7 -2
- package/api/user.ts +6 -0
- package/components/lcb-action-view/types.ts +2 -2
- package/components/lcb-block/types.ts +1 -0
- package/components/lcb-button/lcb-button.vue +32 -0
- package/components/lcb-button/types.ts +8 -0
- package/components/lcb-city-select/components/lcb-city-letter/index.vue +1 -1
- package/components/lcb-city-select/components/lcb-city-list/index.vue +1 -1
- package/components/lcb-city-select/components/lcb-city-list/types.ts +1 -1
- package/components/lcb-dynamic-data/lcb-dynamic-data.vue +10 -3
- package/components/lcb-image/Image/index.vue +15 -25
- package/components/lcb-list/components/FilterList/index.vue +9 -4
- package/components/lcb-list/components/FilterList/mockData.ts +575 -0
- package/components/lcb-list/hooks/useSelect.ts +2 -0
- package/components/lcb-list/lcb-list.vue +32 -17
- package/components/lcb-list/types.ts +0 -13
- package/components/lcb-nav/lcb-nav.vue +1 -1
- package/components/lcb-notice/api/index.ts +21 -0
- package/components/lcb-notice/lcb-notice.vue +66 -50
- package/components/lcb-notice/types.ts +11 -26
- package/components/lcb-product/lcb-product.vue +37 -33
- package/components/lcb-product-item/components/ItemValue.vue +103 -22
- package/components/lcb-product-item/lcb-product-item.vue +249 -70
- package/components/lcb-product-item/types.ts +15 -14
- package/components/lcb-text/lcb-text.vue +20 -0
- package/components/lcb-text/types.ts +5 -0
- package/components/lcb-user-top/Nums/index.vue +19 -10
- package/components/lcb-user-top/lcb-user-top.vue +51 -43
- package/constants.ts +2 -0
- package/global.d.ts +2 -0
- package/hooks/useUpload.ts +3 -6
- package/index.ts +1 -1
- package/package.json +2 -2
- package/tsconfig.json +24 -0
- package/types/api/user.d.ts +6 -0
- package/types/components/lcb-action-view/types.d.ts +2 -2
- package/types/components/lcb-block/types.d.ts +1 -0
- package/types/components/{lcb-notice/Item/index.vue.d.ts → lcb-button/lcb-button.vue.d.ts} +4 -18
- package/types/components/lcb-button/types.d.ts +7 -0
- package/types/components/lcb-city-select/components/lcb-city-letter/index.vue.d.ts +1 -1
- package/types/components/lcb-city-select/components/lcb-city-list/types.d.ts +1 -1
- package/types/components/lcb-list/components/FilterList/mockData.d.ts +63 -0
- package/types/components/lcb-list/lcb-list.vue.d.ts +7 -3
- package/types/components/lcb-list/types.d.ts +0 -1
- package/types/components/lcb-notice/api/index.d.ts +19 -0
- package/types/components/lcb-notice/lcb-notice.vue.d.ts +25 -19
- package/types/components/lcb-notice/types.d.ts +11 -24
- package/types/components/lcb-product/lcb-product.vue.d.ts +2 -22
- package/types/components/lcb-product-item/components/ItemValue.vue.d.ts +26 -8
- package/types/components/lcb-product-item/lcb-product-item.vue.d.ts +63 -23
- package/types/components/lcb-product-item/types.d.ts +14 -13
- package/types/components/lcb-text/lcb-text.vue.d.ts +42 -0
- package/types/components/lcb-text/types.d.ts +4 -0
- package/types/constants.d.ts +2 -0
- package/types/hooks/useUpload.d.ts +1 -3
- package/types/utils/auth.d.ts +2 -0
- package/types/utils/utils.d.ts +2 -0
- package/utils/auth.ts +19 -0
- package/utils/utils.ts +6 -1
- package/components/lcb-notice/Item/index.vue +0 -112
- package/components/lcb-user-top/api/index.ts +0 -13
- package/types/components/lcb-user-top/api/index.d.ts +0 -10
package/global.d.ts
CHANGED
|
@@ -6,6 +6,7 @@ declare module 'vue' {
|
|
|
6
6
|
'lcb-banner': (typeof import('./types/components/lcb-banner/lcb-banner.vue'))['default']
|
|
7
7
|
'lcb-banner-block': (typeof import('./types/components/lcb-banner-block/lcb-banner-block.vue'))['default']
|
|
8
8
|
'lcb-block': (typeof import('./types/components/lcb-block/lcb-block.vue'))['default']
|
|
9
|
+
'lcb-button': (typeof import('./types/components/lcb-button/lcb-button.vue'))['default']
|
|
9
10
|
'lcb-calendar': (typeof import('./types/components/lcb-calendar/lcb-calendar.vue'))['default']
|
|
10
11
|
'lcb-calendar-search': (typeof import('./types/components/lcb-calendar-search/lcb-calendar-search.vue'))['default']
|
|
11
12
|
'lcb-city-select': (typeof import('./types/components/lcb-city-select/lcb-city-select.vue'))['default']
|
|
@@ -22,6 +23,7 @@ declare module 'vue' {
|
|
|
22
23
|
'lcb-product-item': (typeof import('./types/components/lcb-product-item/lcb-product-item.vue'))['default']
|
|
23
24
|
'lcb-swiper': (typeof import('./types/components/lcb-swiper/lcb-swiper.vue'))['default']
|
|
24
25
|
'lcb-tags': (typeof import('./types/components/lcb-tags/lcb-tags.vue'))['default']
|
|
26
|
+
'lcb-text': (typeof import('./types/components/lcb-text/lcb-text.vue'))['default']
|
|
25
27
|
'lcb-title': (typeof import('./types/components/lcb-title/lcb-title.vue'))['default']
|
|
26
28
|
'lcb-user-order': (typeof import('./types/components/lcb-user-order/lcb-user-order.vue'))['default']
|
|
27
29
|
'lcb-user-top': (typeof import('./types/components/lcb-user-top/lcb-user-top.vue'))['default']
|
package/hooks/useUpload.ts
CHANGED
|
@@ -28,8 +28,7 @@ export default function useUpload(onSuccess?: (url: string) => void) {
|
|
|
28
28
|
count: 1,
|
|
29
29
|
success: (res) => {
|
|
30
30
|
const name = res.tempFiles[0].name
|
|
31
|
-
|
|
32
|
-
uploadFile({ data, name, file, onSuccess })
|
|
31
|
+
uploadFile({ data, name, filePath: res.tempFilePaths[0], onSuccess })
|
|
33
32
|
},
|
|
34
33
|
fail: (err) => {
|
|
35
34
|
console.error('uni.chooseImage err->', err)
|
|
@@ -43,13 +42,11 @@ export default function useUpload(onSuccess?: (url: string) => void) {
|
|
|
43
42
|
|
|
44
43
|
export async function uploadFile({
|
|
45
44
|
filePath,
|
|
46
|
-
file,
|
|
47
45
|
data,
|
|
48
46
|
name,
|
|
49
47
|
onSuccess,
|
|
50
48
|
}: {
|
|
51
|
-
filePath
|
|
52
|
-
file?: File
|
|
49
|
+
filePath: string
|
|
53
50
|
data?: Ref<string>
|
|
54
51
|
name: string
|
|
55
52
|
onSuccess?: (url: string) => void
|
|
@@ -86,7 +83,7 @@ export async function uploadFile({
|
|
|
86
83
|
})
|
|
87
84
|
}
|
|
88
85
|
// #ifdef H5
|
|
89
|
-
fun(
|
|
86
|
+
fun(await (await fetch(filePath)).arrayBuffer())
|
|
90
87
|
// #endif
|
|
91
88
|
|
|
92
89
|
// #ifndef H5
|
package/index.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tplc/business",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.50",
|
|
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.22"
|
|
15
15
|
},
|
|
16
16
|
"engines": {
|
|
17
17
|
"node": ">=18",
|
package/tsconfig.json
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"target": "ESNext",
|
|
4
|
+
"useDefineForClassFields": true,
|
|
5
|
+
"noImplicitAny": false,
|
|
6
|
+
"module": "ESNext",
|
|
7
|
+
"moduleResolution": "Node",
|
|
8
|
+
"strict": true,
|
|
9
|
+
"jsx": "preserve",
|
|
10
|
+
"allowSyntheticDefaultImports": true,
|
|
11
|
+
"sourceMap": true,
|
|
12
|
+
"resolveJsonModule": true,
|
|
13
|
+
"isolatedModules": true,
|
|
14
|
+
"esModuleInterop": true,
|
|
15
|
+
"lib": ["ESNext", "DOM"],
|
|
16
|
+
"baseUrl": "./",
|
|
17
|
+
"paths": {
|
|
18
|
+
"@/*": ["./src/*"]
|
|
19
|
+
},
|
|
20
|
+
"types": ["@dcloudio/types", "node", "@tplc/wot/global.d.ts"],
|
|
21
|
+
"skipLibCheck": true
|
|
22
|
+
},
|
|
23
|
+
"exclude": ["node_modules", "scripts"]
|
|
24
|
+
}
|
|
@@ -2,9 +2,9 @@ export interface LcbActionViewProps {
|
|
|
2
2
|
/**
|
|
3
3
|
* 跳转类型 1: 网页 2: 小程序内页 10: 跳转小程序 11: 跳转半屏小程序 12: 小程序客服
|
|
4
4
|
* 13: 退出登录 14: 小程序弹框 21: 新窗口跳到页面 22: 切换TAB页 23: 重启进入某页面
|
|
5
|
-
* 24: 回到上一层 25: 关闭当前页面 26: 关闭当前窗口 30: 拨打电话 88: 授权手机号
|
|
5
|
+
* 24: 回到上一层 25: 关闭当前页面 26: 关闭当前窗口 30: 拨打电话 88: 授权手机号 101 用户头像
|
|
6
6
|
*/
|
|
7
|
-
jumpType?: 1 | 2 | 10 | 11 | 12 | 13 | 14 | 21 | 22 | 23 | 24 | 25 | 26 | 30 | 88
|
|
7
|
+
jumpType?: 1 | 2 | 10 | 11 | 12 | 13 | 14 | 21 | 22 | 23 | 24 | 25 | 26 | 30 | 88 | 101
|
|
8
8
|
/** 跳转路径 */
|
|
9
9
|
jumpUrl?: string
|
|
10
10
|
/** 小程序appid */
|
|
@@ -1,11 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { LcbButtonProps } from './types'
|
|
2
2
|
declare const _default: import('vue').DefineComponent<
|
|
3
|
-
__VLS_WithDefaults<
|
|
4
|
-
__VLS_TypePropsToOption<NoticeBarItemProps>,
|
|
5
|
-
{
|
|
6
|
-
textSpeed: number
|
|
7
|
-
}
|
|
8
|
-
>,
|
|
3
|
+
__VLS_WithDefaults<__VLS_TypePropsToOption<LcbButtonProps>, {}>,
|
|
9
4
|
{},
|
|
10
5
|
unknown,
|
|
11
6
|
{},
|
|
@@ -16,18 +11,9 @@ declare const _default: import('vue').DefineComponent<
|
|
|
16
11
|
string,
|
|
17
12
|
import('vue').PublicProps,
|
|
18
13
|
Readonly<
|
|
19
|
-
import('vue').ExtractPropTypes<
|
|
20
|
-
__VLS_WithDefaults<
|
|
21
|
-
__VLS_TypePropsToOption<NoticeBarItemProps>,
|
|
22
|
-
{
|
|
23
|
-
textSpeed: number
|
|
24
|
-
}
|
|
25
|
-
>
|
|
26
|
-
>
|
|
14
|
+
import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<LcbButtonProps>, {}>>
|
|
27
15
|
>,
|
|
28
|
-
{
|
|
29
|
-
textSpeed: number
|
|
30
|
-
},
|
|
16
|
+
{},
|
|
31
17
|
{}
|
|
32
18
|
>
|
|
33
19
|
export default _default
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { LcbCitySelectProps } from '../../../lcb-city-select/types'
|
|
2
|
-
import { ChildHotAddress } from '
|
|
2
|
+
import { ChildHotAddress } from '../../api'
|
|
3
3
|
declare let __VLS_typeProps: LcbCitySelectProps
|
|
4
4
|
type __VLS_PublicProps = {
|
|
5
5
|
modelValue?: ChildHotAddress
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
code: string
|
|
3
|
+
count: number
|
|
4
|
+
data: {
|
|
5
|
+
address: string
|
|
6
|
+
agentId: string
|
|
7
|
+
areaId: string
|
|
8
|
+
areaName: string
|
|
9
|
+
auditDateTime: string
|
|
10
|
+
auditRemark: string
|
|
11
|
+
auditStatus: number
|
|
12
|
+
behindUnit: string
|
|
13
|
+
bigIcon: boolean
|
|
14
|
+
businessStatus: number
|
|
15
|
+
cityAreaName: string
|
|
16
|
+
cityId: string
|
|
17
|
+
cityName: string
|
|
18
|
+
clickCount: number
|
|
19
|
+
collectCount: number
|
|
20
|
+
collectFlag: boolean
|
|
21
|
+
commentCount: number
|
|
22
|
+
coverImg: string
|
|
23
|
+
createDate: string
|
|
24
|
+
distance: string
|
|
25
|
+
hideTags: string
|
|
26
|
+
hierarchy: number
|
|
27
|
+
lastModifyDate: string
|
|
28
|
+
latitude: string
|
|
29
|
+
level: string
|
|
30
|
+
longitude: string
|
|
31
|
+
mapShowFlag: boolean
|
|
32
|
+
marketingType: number
|
|
33
|
+
merchantHeadId: string
|
|
34
|
+
merchantId: string
|
|
35
|
+
orderCount: number
|
|
36
|
+
orderSkuCount: number
|
|
37
|
+
peopleNumScope: string
|
|
38
|
+
phone: string
|
|
39
|
+
poiId: string
|
|
40
|
+
poiName: string
|
|
41
|
+
poiNameI18n: string
|
|
42
|
+
poiType: string
|
|
43
|
+
praiseCount: number
|
|
44
|
+
praiseFlag: boolean
|
|
45
|
+
price: number
|
|
46
|
+
productId: string
|
|
47
|
+
productName: string
|
|
48
|
+
productNameI18n: string
|
|
49
|
+
productType: string
|
|
50
|
+
provinceId: string
|
|
51
|
+
provinceName: string
|
|
52
|
+
scribePrice: number
|
|
53
|
+
showDateFlag: boolean
|
|
54
|
+
startDateStr: string
|
|
55
|
+
startTime: string
|
|
56
|
+
status: number
|
|
57
|
+
tags: string
|
|
58
|
+
weightSort: string
|
|
59
|
+
}[]
|
|
60
|
+
dataClass: string
|
|
61
|
+
traceId: string
|
|
62
|
+
}
|
|
63
|
+
export default _default
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
import { LcbListProps } from './types'
|
|
2
2
|
import './index.scss'
|
|
3
|
-
declare function __VLS_template(): {
|
|
4
|
-
list
|
|
3
|
+
declare function __VLS_template(): Readonly<{
|
|
4
|
+
list(props: { items: any }): any
|
|
5
|
+
item(props: { item: any }): any
|
|
6
|
+
}> & {
|
|
7
|
+
list(props: { items: any }): any
|
|
8
|
+
item(props: { item: any }): any
|
|
5
9
|
}
|
|
6
10
|
declare const __VLS_component: import('vue').DefineComponent<
|
|
7
11
|
__VLS_WithDefaults<__VLS_TypePropsToOption<LcbListProps>, any>,
|
|
@@ -20,9 +24,9 @@ declare const __VLS_component: import('vue').DefineComponent<
|
|
|
20
24
|
{
|
|
21
25
|
listType: 'horizontal' | 'list' | 'grid' | 'waterfall'
|
|
22
26
|
pageFilterType: string
|
|
27
|
+
pageListProps: import('./components/FilterList/type').PageListProps
|
|
23
28
|
border: boolean
|
|
24
29
|
styleMode: 'default' | 'plain'
|
|
25
|
-
pageListProps: import('./components/FilterList/type').PageListProps
|
|
26
30
|
},
|
|
27
31
|
{}
|
|
28
32
|
>
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export interface AdvertItem {
|
|
2
|
+
adContent: string
|
|
3
|
+
advertId: string
|
|
4
|
+
closeTime: number
|
|
5
|
+
closeType: string
|
|
6
|
+
createDate: string
|
|
7
|
+
jumpType: number
|
|
8
|
+
lastModifyDate: string
|
|
9
|
+
pageType: string
|
|
10
|
+
type: number
|
|
11
|
+
title?: string
|
|
12
|
+
weightSort: string
|
|
13
|
+
}
|
|
14
|
+
/** 获取公告 */
|
|
15
|
+
export declare const getAdvertList: (data: {
|
|
16
|
+
pageType: string
|
|
17
|
+
/** 1: 文字 2: 图片 */
|
|
18
|
+
type: 1 | 2
|
|
19
|
+
}) => Promise<import('../../../action').IResData<AdvertItem[]>>
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { LcbNoticeBarProps } from './types'
|
|
2
|
-
declare let __VLS_typeProps: LcbNoticeBarProps
|
|
3
|
-
declare const interval: import('vue').ModelRef<number, string>
|
|
4
|
-
type __VLS_PublicProps = {
|
|
5
|
-
modelValue?: any
|
|
6
|
-
interval?: NonNullable<(typeof interval)['value']>
|
|
7
|
-
} & typeof __VLS_typeProps
|
|
8
2
|
declare const _default: import('vue').DefineComponent<
|
|
9
3
|
__VLS_WithDefaults<
|
|
10
|
-
__VLS_TypePropsToOption<
|
|
4
|
+
__VLS_TypePropsToOption<LcbNoticeBarProps>,
|
|
11
5
|
{
|
|
12
|
-
|
|
6
|
+
speed: number
|
|
13
7
|
borderColor: string
|
|
8
|
+
direction: string
|
|
9
|
+
backgroundColor: string
|
|
10
|
+
paddingVertical: number
|
|
11
|
+
rightArrow: boolean
|
|
12
|
+
color: string
|
|
13
|
+
iconSize: number
|
|
14
14
|
}
|
|
15
15
|
>,
|
|
16
16
|
{},
|
|
@@ -19,29 +19,35 @@ declare const _default: import('vue').DefineComponent<
|
|
|
19
19
|
{},
|
|
20
20
|
import('vue').ComponentOptionsMixin,
|
|
21
21
|
import('vue').ComponentOptionsMixin,
|
|
22
|
-
{
|
|
23
|
-
'update:modelValue': (modelValue: any) => void
|
|
24
|
-
'update:interval': (interval: number) => void
|
|
25
|
-
},
|
|
22
|
+
{},
|
|
26
23
|
string,
|
|
27
24
|
import('vue').PublicProps,
|
|
28
25
|
Readonly<
|
|
29
26
|
import('vue').ExtractPropTypes<
|
|
30
27
|
__VLS_WithDefaults<
|
|
31
|
-
__VLS_TypePropsToOption<
|
|
28
|
+
__VLS_TypePropsToOption<LcbNoticeBarProps>,
|
|
32
29
|
{
|
|
33
|
-
|
|
30
|
+
speed: number
|
|
34
31
|
borderColor: string
|
|
32
|
+
direction: string
|
|
33
|
+
backgroundColor: string
|
|
34
|
+
paddingVertical: number
|
|
35
|
+
rightArrow: boolean
|
|
36
|
+
color: string
|
|
37
|
+
iconSize: number
|
|
35
38
|
}
|
|
36
39
|
>
|
|
37
40
|
>
|
|
38
|
-
|
|
39
|
-
'onUpdate:modelValue'?: ((modelValue: any) => any) | undefined
|
|
40
|
-
'onUpdate:interval'?: ((interval: number) => any) | undefined
|
|
41
|
-
},
|
|
41
|
+
>,
|
|
42
42
|
{
|
|
43
|
+
paddingVertical: number
|
|
44
|
+
backgroundColor: string
|
|
45
|
+
color: string
|
|
43
46
|
borderColor: string
|
|
44
|
-
|
|
47
|
+
direction: import('@tplc/wot/types/components/wd-notice-bar/types').NoticeBarScrollDirection
|
|
48
|
+
iconSize: number
|
|
49
|
+
speed: number
|
|
50
|
+
rightArrow: boolean
|
|
45
51
|
},
|
|
46
52
|
{}
|
|
47
53
|
>
|
|
@@ -1,27 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
noticeContent?: string
|
|
5
|
-
icon?: string
|
|
6
|
-
link?: LcbActionViewProps
|
|
7
|
-
}
|
|
8
|
-
export interface LcbNoticeBarProps {
|
|
9
|
-
items?: Partial<NoticeItem>[]
|
|
1
|
+
import { NoticeBarScrollDirection } from '@tplc/wot/types/components/wd-notice-bar/types'
|
|
2
|
+
import { LcbBlockProps } from '../lcb-block/types'
|
|
3
|
+
export interface LcbNoticeBarProps extends LcbBlockProps {
|
|
10
4
|
vertical?: boolean
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
borderColor?: string
|
|
16
|
-
}
|
|
17
|
-
export interface NoticeBarItemProps {
|
|
18
|
-
idx?: number
|
|
19
|
-
current?: number
|
|
20
|
-
text?: string
|
|
21
|
-
lens?: number
|
|
22
|
-
iconType?: number
|
|
23
|
-
item?: NoticeItem
|
|
24
|
-
textSpeed?: number
|
|
5
|
+
/** -1 无 0 图标 1 自定义 */
|
|
6
|
+
iconType?: -1 | 0 | 1
|
|
7
|
+
direction?: NoticeBarScrollDirection
|
|
8
|
+
speed?: number
|
|
25
9
|
textColor?: string
|
|
10
|
+
pageType?: string
|
|
11
|
+
rightArrow?: boolean
|
|
12
|
+
icon?: string
|
|
13
|
+
iconSize?: number
|
|
26
14
|
}
|
|
27
|
-
export {}
|
|
@@ -1,28 +1,8 @@
|
|
|
1
1
|
import { LcbProductProps } from './types'
|
|
2
2
|
declare function __VLS_template(): Readonly<{
|
|
3
|
-
|
|
4
|
-
title(): any
|
|
5
|
-
subTitle(): any
|
|
6
|
-
price(): any
|
|
7
|
-
priceUnit(): any
|
|
8
|
-
priceSuffix(): any
|
|
9
|
-
originPrice(): any
|
|
10
|
-
originPriceUnit(): any
|
|
11
|
-
tags(): any
|
|
12
|
-
location(): any
|
|
13
|
-
distance(): any
|
|
3
|
+
item(props: { item: any }): any
|
|
14
4
|
}> & {
|
|
15
|
-
|
|
16
|
-
title(): any
|
|
17
|
-
subTitle(): any
|
|
18
|
-
price(): any
|
|
19
|
-
priceUnit(): any
|
|
20
|
-
priceSuffix(): any
|
|
21
|
-
originPrice(): any
|
|
22
|
-
originPriceUnit(): any
|
|
23
|
-
tags(): any
|
|
24
|
-
location(): any
|
|
25
|
-
distance(): any
|
|
5
|
+
item(props: { item: any }): any
|
|
26
6
|
}
|
|
27
7
|
declare const __VLS_component: import('vue').DefineComponent<
|
|
28
8
|
__VLS_WithDefaults<__VLS_TypePropsToOption<LcbProductProps>, any>,
|
|
@@ -1,11 +1,29 @@
|
|
|
1
|
-
declare function __VLS_template(): {
|
|
2
|
-
image
|
|
3
|
-
title
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
priceUnit
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
declare function __VLS_template(): Readonly<{
|
|
2
|
+
image(props: { value: any }): any
|
|
3
|
+
title(props: { value: any }): any
|
|
4
|
+
subTitle(props: { value: any }): any
|
|
5
|
+
price(props: { value: any }): any
|
|
6
|
+
priceUnit(props: { value: any }): any
|
|
7
|
+
priceSuffix(props: { value: any }): any
|
|
8
|
+
originPrice(props: { value: any }): any
|
|
9
|
+
originPriceUnit(props: { value: any }): any
|
|
10
|
+
originPriceSuffix(props: { value: any }): any
|
|
11
|
+
tags(props: { value: any }): any
|
|
12
|
+
location(props: { value: any }): any
|
|
13
|
+
distance(props: { value: any }): any
|
|
14
|
+
}> & {
|
|
15
|
+
image(props: { value: any }): any
|
|
16
|
+
title(props: { value: any }): any
|
|
17
|
+
subTitle(props: { value: any }): any
|
|
18
|
+
price(props: { value: any }): any
|
|
19
|
+
priceUnit(props: { value: any }): any
|
|
20
|
+
priceSuffix(props: { value: any }): any
|
|
21
|
+
originPrice(props: { value: any }): any
|
|
22
|
+
originPriceUnit(props: { value: any }): any
|
|
23
|
+
originPriceSuffix(props: { value: any }): any
|
|
24
|
+
tags(props: { value: any }): any
|
|
25
|
+
location(props: { value: any }): any
|
|
26
|
+
distance(props: { value: any }): any
|
|
9
27
|
}
|
|
10
28
|
declare const __VLS_component: import('vue').DefineComponent<
|
|
11
29
|
__VLS_WithDefaults<
|
|
@@ -1,34 +1,57 @@
|
|
|
1
1
|
import { LcbProductItemProps } from './types'
|
|
2
2
|
declare function __VLS_template(): Readonly<{
|
|
3
|
-
image(): any
|
|
4
|
-
title(): any
|
|
5
|
-
subTitle(): any
|
|
6
|
-
price(): any
|
|
7
|
-
priceUnit(): any
|
|
8
|
-
priceSuffix(): any
|
|
9
|
-
originPrice(): any
|
|
10
|
-
originPriceUnit(): any
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
3
|
+
image(props: { value: any }): any
|
|
4
|
+
title(props: { value: any }): any
|
|
5
|
+
subTitle(props: { value: any }): any
|
|
6
|
+
price(props: { value: any }): any
|
|
7
|
+
priceUnit(props: { value: any }): any
|
|
8
|
+
priceSuffix(props: { value: any }): any
|
|
9
|
+
originPrice(props: { value: any }): any
|
|
10
|
+
originPriceUnit(props: { value: any }): any
|
|
11
|
+
originPriceSuffix(props: { value: any }): any
|
|
12
|
+
tags(props: { value: any }): any
|
|
13
|
+
location(props: { value: any }): any
|
|
14
|
+
distance(props: { value: any }): any
|
|
15
|
+
itemSection(): any
|
|
16
|
+
itemTopSection(): any
|
|
17
|
+
itemBottomSection(): any
|
|
18
|
+
itemLeftSection(): any
|
|
19
|
+
itemRightSection(): any
|
|
20
|
+
imageSection(): any
|
|
21
|
+
contentSection(): any
|
|
14
22
|
}> & {
|
|
15
|
-
image(): any
|
|
16
|
-
title(): any
|
|
17
|
-
subTitle(): any
|
|
18
|
-
price(): any
|
|
19
|
-
priceUnit(): any
|
|
20
|
-
priceSuffix(): any
|
|
21
|
-
originPrice(): any
|
|
22
|
-
originPriceUnit(): any
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
23
|
+
image(props: { value: any }): any
|
|
24
|
+
title(props: { value: any }): any
|
|
25
|
+
subTitle(props: { value: any }): any
|
|
26
|
+
price(props: { value: any }): any
|
|
27
|
+
priceUnit(props: { value: any }): any
|
|
28
|
+
priceSuffix(props: { value: any }): any
|
|
29
|
+
originPrice(props: { value: any }): any
|
|
30
|
+
originPriceUnit(props: { value: any }): any
|
|
31
|
+
originPriceSuffix(props: { value: any }): any
|
|
32
|
+
tags(props: { value: any }): any
|
|
33
|
+
location(props: { value: any }): any
|
|
34
|
+
distance(props: { value: any }): any
|
|
35
|
+
itemSection(): any
|
|
36
|
+
itemTopSection(): any
|
|
37
|
+
itemBottomSection(): any
|
|
38
|
+
itemLeftSection(): any
|
|
39
|
+
itemRightSection(): any
|
|
40
|
+
imageSection(): any
|
|
41
|
+
contentSection(): any
|
|
26
42
|
}
|
|
27
43
|
declare const __VLS_component: import('vue').DefineComponent<
|
|
28
44
|
__VLS_WithDefaults<
|
|
29
45
|
__VLS_TypePropsToOption<LcbProductItemProps>,
|
|
30
46
|
{
|
|
31
47
|
layoutType: string
|
|
48
|
+
titleLineClamp: number
|
|
49
|
+
tagOverflowWrap: boolean
|
|
50
|
+
tagType: string
|
|
51
|
+
tagPlain: boolean
|
|
52
|
+
tagMark: boolean
|
|
53
|
+
tagRound: boolean
|
|
54
|
+
distanceUnit: string
|
|
32
55
|
priceUnit: string
|
|
33
56
|
originPriceUnit: string
|
|
34
57
|
imageVisible: boolean
|
|
@@ -39,6 +62,7 @@ declare const __VLS_component: import('vue').DefineComponent<
|
|
|
39
62
|
priceSuffixVisible: boolean
|
|
40
63
|
originPriceVisible: boolean
|
|
41
64
|
originPriceUnitVisible: boolean
|
|
65
|
+
originPriceSuffixVisible: boolean
|
|
42
66
|
tagsVisible: boolean
|
|
43
67
|
locationVisible: boolean
|
|
44
68
|
distanceVisible: boolean
|
|
@@ -59,6 +83,13 @@ declare const __VLS_component: import('vue').DefineComponent<
|
|
|
59
83
|
__VLS_TypePropsToOption<LcbProductItemProps>,
|
|
60
84
|
{
|
|
61
85
|
layoutType: string
|
|
86
|
+
titleLineClamp: number
|
|
87
|
+
tagOverflowWrap: boolean
|
|
88
|
+
tagType: string
|
|
89
|
+
tagPlain: boolean
|
|
90
|
+
tagMark: boolean
|
|
91
|
+
tagRound: boolean
|
|
92
|
+
distanceUnit: string
|
|
62
93
|
priceUnit: string
|
|
63
94
|
originPriceUnit: string
|
|
64
95
|
imageVisible: boolean
|
|
@@ -69,6 +100,7 @@ declare const __VLS_component: import('vue').DefineComponent<
|
|
|
69
100
|
priceSuffixVisible: boolean
|
|
70
101
|
originPriceVisible: boolean
|
|
71
102
|
originPriceUnitVisible: boolean
|
|
103
|
+
originPriceSuffixVisible: boolean
|
|
72
104
|
tagsVisible: boolean
|
|
73
105
|
locationVisible: boolean
|
|
74
106
|
distanceVisible: boolean
|
|
@@ -77,9 +109,16 @@ declare const __VLS_component: import('vue').DefineComponent<
|
|
|
77
109
|
>
|
|
78
110
|
>,
|
|
79
111
|
{
|
|
112
|
+
layoutType: 'vertical' | 'horizontal'
|
|
80
113
|
priceUnit: any
|
|
81
114
|
originPriceUnit: any
|
|
82
|
-
|
|
115
|
+
titleLineClamp: number
|
|
116
|
+
tagOverflowWrap: boolean
|
|
117
|
+
tagType: import('@tplc/wot/components/wd-tag/types').TagType
|
|
118
|
+
tagPlain: boolean
|
|
119
|
+
tagMark: boolean
|
|
120
|
+
tagRound: boolean
|
|
121
|
+
distanceUnit: string
|
|
83
122
|
imageVisible: boolean
|
|
84
123
|
titleVisible: boolean
|
|
85
124
|
subTitleVisible: boolean
|
|
@@ -88,6 +127,7 @@ declare const __VLS_component: import('vue').DefineComponent<
|
|
|
88
127
|
priceSuffixVisible: boolean
|
|
89
128
|
originPriceVisible: boolean
|
|
90
129
|
originPriceUnitVisible: boolean
|
|
130
|
+
originPriceSuffixVisible: boolean
|
|
91
131
|
tagsVisible: boolean
|
|
92
132
|
locationVisible: boolean
|
|
93
133
|
distanceVisible: boolean
|