@tplc/business 0.0.48 → 0.0.51

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.
Files changed (75) hide show
  1. package/CHANGELOG.md +278 -0
  2. package/action.d.ts +7 -2
  3. package/api/user.ts +6 -0
  4. package/components/lcb-action-view/lcb-action-view.vue +1 -1
  5. package/components/lcb-action-view/types.ts +2 -2
  6. package/components/lcb-advert/lcb-advert.vue +78 -0
  7. package/components/lcb-advert/types.ts +3 -0
  8. package/components/lcb-block/types.ts +1 -0
  9. package/components/lcb-button/lcb-button.vue +32 -0
  10. package/components/lcb-button/types.ts +8 -0
  11. package/components/lcb-city-select/components/lcb-city-letter/index.vue +1 -1
  12. package/components/lcb-city-select/components/lcb-city-list/index.vue +1 -1
  13. package/components/lcb-city-select/components/lcb-city-list/types.ts +1 -1
  14. package/components/lcb-dynamic-data/lcb-dynamic-data.vue +10 -3
  15. package/components/lcb-image/Image/index.vue +15 -25
  16. package/components/lcb-list/components/FilterList/index.vue +9 -4
  17. package/components/lcb-list/components/FilterList/mockData.ts +575 -0
  18. package/components/lcb-list/hooks/useSelect.ts +2 -0
  19. package/components/lcb-list/lcb-list.vue +32 -17
  20. package/components/lcb-list/types.ts +0 -13
  21. package/components/lcb-nav/lcb-nav.vue +1 -1
  22. package/components/lcb-notice/api/index.ts +21 -0
  23. package/components/lcb-notice/lcb-notice.vue +66 -50
  24. package/components/lcb-notice/types.ts +11 -26
  25. package/components/lcb-product/lcb-product.vue +37 -33
  26. package/components/lcb-product-item/components/ItemValue.vue +103 -22
  27. package/components/lcb-product-item/lcb-product-item.vue +249 -70
  28. package/components/lcb-product-item/types.ts +15 -14
  29. package/components/lcb-text/lcb-text.vue +20 -0
  30. package/components/lcb-text/types.ts +5 -0
  31. package/components/lcb-user-top/Nums/index.vue +19 -10
  32. package/components/lcb-user-top/lcb-user-top.vue +51 -43
  33. package/constants.ts +2 -0
  34. package/global.d.ts +3 -0
  35. package/hooks/useUpload.ts +3 -6
  36. package/index.ts +1 -1
  37. package/package.json +2 -2
  38. package/tsconfig.json +24 -0
  39. package/types/api/user.d.ts +6 -0
  40. package/types/components/lcb-action-view/types.d.ts +2 -2
  41. package/types/components/lcb-advert/lcb-advert.vue.d.ts +28 -0
  42. package/types/components/lcb-advert/types.d.ts +3 -0
  43. package/types/components/lcb-area-picker/lcb-area-picker.vue.d.ts +1 -1
  44. package/types/components/lcb-banner-block/lcb-banner-block.vue.d.ts +2 -2
  45. package/types/components/lcb-block/types.d.ts +1 -0
  46. package/types/components/{lcb-notice/Item/index.vue.d.ts → lcb-button/lcb-button.vue.d.ts} +4 -18
  47. package/types/components/lcb-button/types.d.ts +7 -0
  48. package/types/components/lcb-calendar-search/lcb-calendar-search.vue.d.ts +1 -1
  49. package/types/components/lcb-city-select/components/lcb-city-letter/index.vue.d.ts +1 -1
  50. package/types/components/lcb-city-select/components/lcb-city-list/types.d.ts +1 -1
  51. package/types/components/lcb-grid/lcb-grid.vue.d.ts +2 -2
  52. package/types/components/lcb-home-search/lcb-home-search.vue.d.ts +1 -1
  53. package/types/components/lcb-list/components/FilterList/mockData.d.ts +63 -0
  54. package/types/components/lcb-list/lcb-list.vue.d.ts +8 -4
  55. package/types/components/lcb-list/types.d.ts +0 -1
  56. package/types/components/lcb-notice/api/index.d.ts +19 -0
  57. package/types/components/lcb-notice/lcb-notice.vue.d.ts +25 -19
  58. package/types/components/lcb-notice/types.d.ts +11 -24
  59. package/types/components/lcb-product/lcb-product.vue.d.ts +2 -22
  60. package/types/components/lcb-product-item/components/ItemValue.vue.d.ts +26 -8
  61. package/types/components/lcb-product-item/lcb-product-item.vue.d.ts +63 -23
  62. package/types/components/lcb-product-item/types.d.ts +14 -13
  63. package/types/components/lcb-swiper/lcb-swiper.vue.d.ts +2 -2
  64. package/types/components/lcb-text/lcb-text.vue.d.ts +42 -0
  65. package/types/components/lcb-text/types.d.ts +4 -0
  66. package/types/components/lcb-title/lcb-title.vue.d.ts +1 -1
  67. package/types/constants.d.ts +2 -0
  68. package/types/hooks/useUpload.d.ts +1 -3
  69. package/types/utils/auth.d.ts +2 -0
  70. package/types/utils/utils.d.ts +2 -0
  71. package/utils/auth.ts +19 -0
  72. package/utils/utils.ts +6 -1
  73. package/components/lcb-notice/Item/index.vue +0 -112
  74. package/components/lcb-user-top/api/index.ts +0 -13
  75. package/types/components/lcb-user-top/api/index.d.ts +0 -10
package/global.d.ts CHANGED
@@ -2,10 +2,12 @@ declare module 'vue' {
2
2
  // Helper for Volar
3
3
  export interface GlobalComponents {
4
4
  'lcb-action-view': (typeof import('./types/components/lcb-action-view/lcb-action-view.vue'))['default']
5
+ 'lcb-advert': (typeof import('./types/components/lcb-advert/lcb-advert.vue'))['default']
5
6
  'lcb-area-picker': (typeof import('./types/components/lcb-area-picker/lcb-area-picker.vue'))['default']
6
7
  'lcb-banner': (typeof import('./types/components/lcb-banner/lcb-banner.vue'))['default']
7
8
  'lcb-banner-block': (typeof import('./types/components/lcb-banner-block/lcb-banner-block.vue'))['default']
8
9
  'lcb-block': (typeof import('./types/components/lcb-block/lcb-block.vue'))['default']
10
+ 'lcb-button': (typeof import('./types/components/lcb-button/lcb-button.vue'))['default']
9
11
  'lcb-calendar': (typeof import('./types/components/lcb-calendar/lcb-calendar.vue'))['default']
10
12
  'lcb-calendar-search': (typeof import('./types/components/lcb-calendar-search/lcb-calendar-search.vue'))['default']
11
13
  'lcb-city-select': (typeof import('./types/components/lcb-city-select/lcb-city-select.vue'))['default']
@@ -22,6 +24,7 @@ declare module 'vue' {
22
24
  'lcb-product-item': (typeof import('./types/components/lcb-product-item/lcb-product-item.vue'))['default']
23
25
  'lcb-swiper': (typeof import('./types/components/lcb-swiper/lcb-swiper.vue'))['default']
24
26
  'lcb-tags': (typeof import('./types/components/lcb-tags/lcb-tags.vue'))['default']
27
+ 'lcb-text': (typeof import('./types/components/lcb-text/lcb-text.vue'))['default']
25
28
  'lcb-title': (typeof import('./types/components/lcb-title/lcb-title.vue'))['default']
26
29
  'lcb-user-order': (typeof import('./types/components/lcb-user-order/lcb-user-order.vue'))['default']
27
30
  'lcb-user-top': (typeof import('./types/components/lcb-user-top/lcb-user-top.vue'))['default']
@@ -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
- const file = res.tempFiles[0]
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?: string
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(file)
86
+ fun(await (await fetch(filePath)).arrayBuffer())
90
87
  // #endif
91
88
 
92
89
  // #ifndef H5
package/index.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { LcbGlobal } from 'action'
1
+ import { LcbGlobal } from './action'
2
2
 
3
3
  export const $lcb: LcbGlobal = {} as LcbGlobal
4
4
  uni.$lcb = $lcb
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tplc/business",
3
- "version": "0.0.48",
3
+ "version": "0.0.51",
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.20"
14
+ "@tplc/wot": "0.1.23"
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
+ }
@@ -0,0 +1,6 @@
1
+ /** 获取用户手机号 */
2
+ export declare const getUserPhone: (data: {
3
+ encryptedData: string
4
+ iv: string
5
+ code?: string
6
+ }) => Promise<import('../action').IResData<unknown>>
@@ -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 */
@@ -0,0 +1,28 @@
1
+ import { LcbAdvertProps } from './types'
2
+ declare const _default: import('vue').DefineComponent<
3
+ __VLS_TypePropsToOption<LcbAdvertProps>,
4
+ {},
5
+ unknown,
6
+ {},
7
+ {},
8
+ import('vue').ComponentOptionsMixin,
9
+ import('vue').ComponentOptionsMixin,
10
+ {},
11
+ string,
12
+ import('vue').PublicProps,
13
+ Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToOption<LcbAdvertProps>>>,
14
+ {},
15
+ {}
16
+ >
17
+ export default _default
18
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T
19
+ type __VLS_TypePropsToOption<T> = {
20
+ [K in keyof T]-?: {} extends Pick<T, K>
21
+ ? {
22
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>
23
+ }
24
+ : {
25
+ type: import('vue').PropType<T[K]>
26
+ required: true
27
+ }
28
+ }
@@ -0,0 +1,3 @@
1
+ export interface LcbAdvertProps {
2
+ pageType?: string
3
+ }
@@ -36,8 +36,8 @@ declare const __VLS_component: import('vue').DefineComponent<
36
36
  >
37
37
  >
38
38
  > & {
39
- onConfirm?: ((payload: AreaOptions[]) => any) | undefined
40
39
  'onUpdate:modelValue'?: ((modelValue: string[]) => any) | undefined
40
+ onConfirm?: ((payload: AreaOptions[]) => any) | undefined
41
41
  },
42
42
  {
43
43
  mode: 'city' | 'area'
@@ -32,10 +32,10 @@ declare const _default: import('vue').DefineComponent<
32
32
  >
33
33
  >,
34
34
  {
35
+ imageRadius: number
36
+ radius: number
35
37
  marginHorizontal: number
36
38
  backgroundColor: string
37
- radius: number
38
- imageRadius: number
39
39
  },
40
40
  {}
41
41
  >
@@ -29,6 +29,7 @@ export interface LcbBlockProps {
29
29
  backgroundSize?: string
30
30
  backgroundPosition?: string
31
31
  borderColor?: string
32
+ textAlign?: 'left' | 'center' | 'right'
32
33
  }
33
34
  export interface LcbBlockInnerProps extends LcbBlockProps {
34
35
  [key: string]: any
@@ -1,11 +1,6 @@
1
- import { NoticeBarItemProps } from '../types'
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
@@ -0,0 +1,7 @@
1
+ import { LcbActionViewProps } from '../lcb-action-view/types'
2
+ import { LcbBlockProps } from '../lcb-block/types'
3
+ export interface LcbButtonProps extends LcbBlockProps {
4
+ type: 'phone-auth'
5
+ text: string
6
+ action: LcbActionViewProps
7
+ }
@@ -30,9 +30,9 @@ declare const _default: import('vue').DefineComponent<
30
30
  >
31
31
  >,
32
32
  {
33
+ radius: number
33
34
  placeholder: string
34
35
  marginHorizontal: number
35
- radius: number
36
36
  },
37
37
  {}
38
38
  >
@@ -1,5 +1,5 @@
1
1
  import { LcbCitySelectProps } from '../../../lcb-city-select/types'
2
- import { ChildHotAddress } from '../../../lcb-city-select/api'
2
+ import { ChildHotAddress } from '../../api'
3
3
  declare let __VLS_typeProps: LcbCitySelectProps
4
4
  type __VLS_PublicProps = {
5
5
  modelValue?: ChildHotAddress
@@ -1,4 +1,4 @@
1
- import { LcbAddress } from '../../../lcb-city-select/api'
1
+ import { LcbAddress } from '../../api'
2
2
  export interface LcbCityListProps {
3
3
  list: LcbAddress[]
4
4
  keyword: string
@@ -32,9 +32,9 @@ declare const _default: import('vue').DefineComponent<
32
32
  >
33
33
  >,
34
34
  {
35
- marginHorizontal: number
36
- radius: number
37
35
  height: number
36
+ radius: number
37
+ marginHorizontal: number
38
38
  cols: number
39
39
  },
40
40
  {}
@@ -34,10 +34,10 @@ declare const _default: import('vue').DefineComponent<
34
34
  >
35
35
  >,
36
36
  {
37
+ radius: number
37
38
  placeholder: string
38
39
  marginHorizontal: number
39
40
  backgroundColor: string
40
- radius: number
41
41
  btnText: string
42
42
  },
43
43
  {}
@@ -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?(_: { items: any[] }): any
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>,
@@ -18,11 +22,11 @@ declare const __VLS_component: import('vue').DefineComponent<
18
22
  import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<LcbListProps>, any>>
19
23
  >,
20
24
  {
21
- listType: 'horizontal' | 'list' | 'grid' | 'waterfall'
25
+ listType: 'list' | 'horizontal' | '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
  >
@@ -22,4 +22,3 @@ export interface FilterItemProps {
22
22
  options?: Option[]
23
23
  test?: 1
24
24
  }
25
- export declare const defaultLcbListProps: LcbListProps
@@ -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<__VLS_PublicProps>,
4
+ __VLS_TypePropsToOption<LcbNoticeBarProps>,
11
5
  {
12
- textSpeed: number
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<__VLS_PublicProps>,
28
+ __VLS_TypePropsToOption<LcbNoticeBarProps>,
32
29
  {
33
- textSpeed: number
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
+ direction: import('@tplc/wot/types/components/wd-notice-bar/types').NoticeBarScrollDirection
44
+ color: string
45
+ paddingVertical: number
46
+ backgroundColor: string
43
47
  borderColor: string
44
- textSpeed: number
48
+ iconSize: number
49
+ speed: number
50
+ rightArrow: boolean
45
51
  },
46
52
  {}
47
53
  >
@@ -1,27 +1,14 @@
1
- import { LcbActionViewProps } from '../../components/lcb-action-view/types'
2
- interface NoticeItem {
3
- id?: number
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
- iconType?: number
12
- direction?: string
13
- textSpeed?: number
14
- textColor?: string
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
- image(): any
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
- image(): any
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?(_: { value: any }): any
3
- title?(_: { value: any }): any
4
- location?(_: { value: any }): any
5
- tags?(_: { value: any }): any
6
- priceUnit?(_: { value: any }): any
7
- price?(_: { value: any }): any
8
- priceSuffix?(_: { value: any }): any
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<