@tplc/business 0.0.14 → 0.0.16

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 (42) hide show
  1. package/action.d.ts +22 -0
  2. package/components/lcb-filter/api.ts +56 -0
  3. package/components/lcb-filter/components/ActionView/index.vue +40 -0
  4. package/components/lcb-filter/components/ComponentGroup/index.vue +86 -0
  5. package/components/lcb-filter/components/ComponentGroup/type.ts +6 -0
  6. package/components/lcb-filter/components/FilterSelect/index.vue +68 -0
  7. package/components/lcb-filter/components/FilterSelect/type.ts +3 -0
  8. package/components/lcb-filter/components/FilterSlider/index.vue +70 -0
  9. package/components/lcb-filter/components/FilterSlider/types.ts +3 -0
  10. package/components/lcb-filter/components/SelectTagView/index.vue +50 -0
  11. package/components/lcb-filter/components/TagSelect/index.vue +159 -0
  12. package/components/lcb-filter/components/TagSelect/type.ts +5 -0
  13. package/components/lcb-filter/components/TreeSelect/index.vue +131 -0
  14. package/components/lcb-filter/components/TreeSelect/type.ts +3 -0
  15. package/components/lcb-filter/hooks/useSelect.ts +45 -0
  16. package/components/lcb-filter/index.scss +30 -0
  17. package/components/lcb-filter/lcb-filter.vue +125 -0
  18. package/components/lcb-filter/types.ts +18 -0
  19. package/components/lcb-nav/lcb-nav.vue +5 -5
  20. package/components/lcb-nav/types.ts +2 -2
  21. package/global.d.ts +1 -0
  22. package/index.ts +7 -1
  23. package/package.json +2 -2
  24. package/types/components/lcb-filter/api.d.ts +49 -0
  25. package/types/components/lcb-filter/components/ActionView/index.vue.d.ts +34 -0
  26. package/types/components/lcb-filter/components/ComponentGroup/index.vue.d.ts +32 -0
  27. package/types/components/lcb-filter/components/ComponentGroup/type.d.ts +5 -0
  28. package/types/components/lcb-filter/components/FilterSelect/index.vue.d.ts +41 -0
  29. package/types/components/lcb-filter/components/FilterSelect/type.d.ts +2 -0
  30. package/types/components/lcb-filter/components/FilterSlider/index.vue.d.ts +36 -0
  31. package/types/components/lcb-filter/components/FilterSlider/types.d.ts +2 -0
  32. package/types/components/lcb-filter/components/SelectTagView/index.vue.d.ts +39 -0
  33. package/types/components/lcb-filter/components/TagSelect/index.vue.d.ts +39 -0
  34. package/types/components/lcb-filter/components/TagSelect/type.d.ts +4 -0
  35. package/types/components/lcb-filter/components/TreeSelect/index.vue.d.ts +41 -0
  36. package/types/components/lcb-filter/components/TreeSelect/type.d.ts +2 -0
  37. package/types/components/lcb-filter/hooks/useSelect.d.ts +25 -0
  38. package/types/components/lcb-filter/lcb-filter.vue.d.ts +57 -0
  39. package/types/components/lcb-filter/types.d.ts +17 -0
  40. package/types/components/lcb-img-nav/lcb-img-nav.vue.d.ts +1 -1
  41. package/types/components/lcb-nav/types.d.ts +2 -2
  42. package/types/components/lcb-user-top/lcb-user-top.vue.d.ts +1 -1
@@ -0,0 +1,39 @@
1
+ declare const _default: import('vue').DefineComponent<
2
+ __VLS_TypePropsToOption<{
3
+ title: string
4
+ checked?: boolean
5
+ size?: 'small' | 'normal'
6
+ }>,
7
+ {},
8
+ unknown,
9
+ {},
10
+ {},
11
+ import('vue').ComponentOptionsMixin,
12
+ import('vue').ComponentOptionsMixin,
13
+ {},
14
+ string,
15
+ import('vue').PublicProps,
16
+ Readonly<
17
+ import('vue').ExtractPropTypes<
18
+ __VLS_TypePropsToOption<{
19
+ title: string
20
+ checked?: boolean
21
+ size?: 'small' | 'normal'
22
+ }>
23
+ >
24
+ >,
25
+ {},
26
+ {}
27
+ >
28
+ export default _default
29
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T
30
+ type __VLS_TypePropsToOption<T> = {
31
+ [K in keyof T]-?: {} extends Pick<T, K>
32
+ ? {
33
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>
34
+ }
35
+ : {
36
+ type: import('vue').PropType<T[K]>
37
+ required: true
38
+ }
39
+ }
@@ -0,0 +1,39 @@
1
+ import { TagSelectProps } from './type'
2
+ declare let __VLS_typeProps: TagSelectProps
3
+ type __VLS_PublicProps = {
4
+ modelValue?: string | string[]
5
+ title?: string
6
+ } & typeof __VLS_typeProps
7
+ declare const _default: import('vue').DefineComponent<
8
+ __VLS_TypePropsToOption<__VLS_PublicProps>,
9
+ {},
10
+ unknown,
11
+ {},
12
+ {},
13
+ import('vue').ComponentOptionsMixin,
14
+ import('vue').ComponentOptionsMixin,
15
+ {
16
+ 'update:modelValue': (modelValue: string | string[]) => void
17
+ 'update:title': (title: string) => void
18
+ },
19
+ string,
20
+ import('vue').PublicProps,
21
+ Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToOption<__VLS_PublicProps>>> & {
22
+ 'onUpdate:modelValue'?: ((modelValue: string | string[]) => any) | undefined
23
+ 'onUpdate:title'?: ((title: string) => any) | undefined
24
+ },
25
+ {},
26
+ {}
27
+ >
28
+ export default _default
29
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T
30
+ type __VLS_TypePropsToOption<T> = {
31
+ [K in keyof T]-?: {} extends Pick<T, K>
32
+ ? {
33
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>
34
+ }
35
+ : {
36
+ type: import('vue').PropType<T[K]>
37
+ required: true
38
+ }
39
+ }
@@ -0,0 +1,4 @@
1
+ import { FilterItemProps } from '../../types'
2
+ export interface TagSelectProps extends FilterItemProps {
3
+ size?: 'small' | 'normal'
4
+ }
@@ -0,0 +1,41 @@
1
+ import { TreeSelectProps } from './type'
2
+ declare let __VLS_typeProps: TreeSelectProps
3
+ type __VLS_PublicProps = {
4
+ modelValue?: string | string[]
5
+ title?: string
6
+ } & typeof __VLS_typeProps
7
+ declare const _default: import('vue').DefineComponent<
8
+ __VLS_TypePropsToOption<__VLS_PublicProps>,
9
+ {},
10
+ unknown,
11
+ {},
12
+ {},
13
+ import('vue').ComponentOptionsMixin,
14
+ import('vue').ComponentOptionsMixin,
15
+ {
16
+ 'update:modelValue': (modelValue: string | string[]) => void
17
+ 'update:title': (title: string) => void
18
+ submit: (...args: any[]) => void
19
+ },
20
+ string,
21
+ import('vue').PublicProps,
22
+ Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToOption<__VLS_PublicProps>>> & {
23
+ onSubmit?: ((...args: any[]) => any) | undefined
24
+ 'onUpdate:modelValue'?: ((modelValue: string | string[]) => any) | undefined
25
+ 'onUpdate:title'?: ((title: string) => any) | undefined
26
+ },
27
+ {},
28
+ {}
29
+ >
30
+ export default _default
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,2 @@
1
+ import { FilterItemProps } from '../../types'
2
+ export interface TreeSelectProps extends FilterItemProps {}
@@ -0,0 +1,25 @@
1
+ import { Ref } from 'vue'
2
+ import { FilterItemProps, Option } from '../types'
3
+ declare const useSelect: (
4
+ props: FilterItemProps,
5
+ {
6
+ model,
7
+ }: {
8
+ model: Ref<string | string[] | undefined>
9
+ },
10
+ ) => {
11
+ options: Ref<
12
+ {
13
+ label: string
14
+ value: string | string[]
15
+ custom?: boolean | undefined
16
+ max?: number | undefined
17
+ min?: number | undefined
18
+ children?: any[] | undefined
19
+ unit?: string | undefined
20
+ }[]
21
+ >
22
+ getChecked: (item: Option) => boolean
23
+ onItemClick: (item: Option) => void
24
+ }
25
+ export default useSelect
@@ -0,0 +1,57 @@
1
+ import { LcbFilterProps } from './types'
2
+ import './index.scss'
3
+ declare const _default: import('vue').DefineComponent<
4
+ __VLS_WithDefaults<
5
+ __VLS_TypePropsToOption<LcbFilterProps>,
6
+ {
7
+ pageFilterType: string
8
+ }
9
+ >,
10
+ {},
11
+ unknown,
12
+ {},
13
+ {},
14
+ import('vue').ComponentOptionsMixin,
15
+ import('vue').ComponentOptionsMixin,
16
+ {},
17
+ string,
18
+ import('vue').PublicProps,
19
+ Readonly<
20
+ import('vue').ExtractPropTypes<
21
+ __VLS_WithDefaults<
22
+ __VLS_TypePropsToOption<LcbFilterProps>,
23
+ {
24
+ pageFilterType: string
25
+ }
26
+ >
27
+ >
28
+ >,
29
+ {
30
+ pageFilterType: string
31
+ },
32
+ {}
33
+ >
34
+ export default _default
35
+ type __VLS_WithDefaults<P, D> = {
36
+ [K in keyof Pick<P, keyof P>]: K extends keyof D
37
+ ? __VLS_Prettify<
38
+ P[K] & {
39
+ default: D[K]
40
+ }
41
+ >
42
+ : P[K]
43
+ }
44
+ type __VLS_Prettify<T> = {
45
+ [K in keyof T]: T[K]
46
+ } & {}
47
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T
48
+ type __VLS_TypePropsToOption<T> = {
49
+ [K in keyof T]-?: {} extends Pick<T, K>
50
+ ? {
51
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>
52
+ }
53
+ : {
54
+ type: import('vue').PropType<T[K]>
55
+ required: true
56
+ }
57
+ }
@@ -0,0 +1,17 @@
1
+ export interface LcbFilterProps {
2
+ pageFilterType?: string
3
+ }
4
+ export interface Option {
5
+ label: string
6
+ value: string | string[]
7
+ custom?: boolean
8
+ max?: number
9
+ min?: number
10
+ children?: Option[]
11
+ unit?: string
12
+ }
13
+ export interface FilterItemProps {
14
+ mode?: 'multiple' | 'single'
15
+ apiPath?: string
16
+ options?: Option[]
17
+ }
@@ -44,6 +44,7 @@ declare const _default: import('vue').DefineComponent<
44
44
  >
45
45
  >,
46
46
  {
47
+ iconSize: number
47
48
  textColor: string
48
49
  bgColor: string
49
50
  iconColor: string
@@ -51,7 +52,6 @@ declare const _default: import('vue').DefineComponent<
51
52
  bottomMargin: 0 | 24 | 36
52
53
  pictureDistribution: 3 | 4 | 5
53
54
  leftRightMargin: number
54
- iconSize: number
55
55
  iconRadius: number
56
56
  iconTextMargin: number
57
57
  },
@@ -1,7 +1,7 @@
1
1
  export interface ICapsule {
2
2
  icon: string
3
- action: 'translate' | 'scanCode' | 'link' | 'home'
4
- linkUrl?: string
3
+ action?: 'translate' | 'scanCode' | 'link' | 'home'
4
+ link?: string
5
5
  }
6
6
  export interface NavTitleProps {
7
7
  /** 模式 */
@@ -54,10 +54,10 @@ declare const _default: import('vue').DefineComponent<
54
54
  paddingBottom: number
55
55
  paddingLeft: number
56
56
  paddingRight: number
57
+ iconName: string
57
58
  textColor: string
58
59
  iconType: 0 | 1
59
60
  textSize: number
60
- iconName: string
61
61
  photoRound: boolean
62
62
  photoSize: number
63
63
  moreIcon: boolean