@tplc/business 0.1.13 → 0.1.15
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 +480 -0
- package/action.d.ts +2 -0
- package/{components/lcb-user-top/api/index.ts → api/user.ts} +1 -0
- package/components/lcb-action-view/lcb-action-view.vue +14 -2
- package/components/lcb-action-view/types.ts +21 -2
- package/components/lcb-advert/lcb-advert.vue +78 -0
- package/components/lcb-advert/types.ts +3 -0
- package/components/lcb-banner-block/lcb-banner-block.vue +3 -4
- package/components/lcb-block/lcb-block.vue +11 -3
- package/components/lcb-block/types.ts +5 -1
- package/components/lcb-button/lcb-button.vue +32 -0
- package/components/lcb-button/types.ts +8 -0
- package/components/lcb-calendar-search/lcb-calendar-search.vue +3 -2
- package/components/lcb-city-select/components/lcb-city-letter/index.vue +4 -1
- package/components/lcb-city-select/components/lcb-city-list/index.vue +6 -1
- package/components/lcb-city-select/lcb-city-select.vue +24 -8
- package/components/lcb-gap/lcb-gap.vue +15 -7
- package/components/lcb-gap/types.ts +4 -2
- package/components/lcb-grid/lcb-grid.vue +56 -20
- package/components/lcb-grid/types.ts +8 -0
- package/components/lcb-home-search/lcb-home-search.vue +44 -20
- package/components/lcb-img-nav/lcb-img-nav.vue +51 -30
- package/components/lcb-img-nav/types.ts +16 -0
- package/components/lcb-list/components/FilterList/index.vue +26 -21
- package/components/lcb-list/components/FilterList/type.ts +1 -1
- package/components/lcb-list/components/FilterView/index.vue +121 -0
- package/components/lcb-list/components/FilterView/type.ts +8 -0
- package/components/lcb-list/hooks/useSelect.ts +2 -0
- package/components/lcb-list/lcb-list.vue +57 -138
- package/components/lcb-list/types.ts +1 -0
- package/components/lcb-nav/lcb-nav.vue +22 -9
- 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 +114 -4
- package/components/lcb-product/types.ts +3 -0
- package/components/lcb-product-item/components/ItemValue.vue +14 -25
- package/components/lcb-product-item/lcb-product-item.vue +13 -7
- package/components/lcb-rich-text/lcb-rich-text.vue +22 -0
- package/components/lcb-rich-text/types.ts +5 -0
- package/components/lcb-text/lcb-text.vue +20 -0
- package/components/lcb-text/types.ts +5 -0
- package/components/lcb-title/lcb-title.vue +33 -6
- package/components/lcb-title/types.ts +17 -3
- package/components/lcb-user-order/lcb-user-order.vue +48 -61
- package/components/lcb-user-order/types.ts +5 -48
- package/components/lcb-user-top/Nums/index.vue +3 -2
- package/components/lcb-user-top/lcb-user-top.vue +40 -26
- package/components/lcb-vip/api/index.ts +35 -0
- package/components/lcb-vip/components/InfoDialog/index.vue +65 -0
- package/components/lcb-vip/lcb-vip.vue +96 -0
- package/components/lcb-vip/types.ts +8 -0
- package/constants.ts +2 -0
- package/global.d.ts +5 -0
- package/iconfonts/index.css +24 -3
- package/index.ts +5 -1
- package/package.json +18 -13
- package/types/{components/lcb-user-top/api/index.d.ts → api/user.d.ts} +2 -1
- package/types/components/lcb-action-view/lcb-action-view.vue.d.ts +2 -22
- package/types/components/lcb-action-view/types.d.ts +21 -2
- package/types/components/lcb-advert/lcb-advert.vue.d.ts +28 -0
- package/types/components/lcb-advert/types.d.ts +3 -0
- package/types/components/lcb-area-picker/lcb-area-picker.vue.d.ts +1 -1
- package/types/components/lcb-banner-block/lcb-banner-block.vue.d.ts +0 -9
- package/types/components/lcb-block/lcb-block.vue.d.ts +4 -0
- package/types/components/lcb-block/types.d.ts +5 -0
- package/types/components/lcb-button/lcb-button.vue.d.ts +42 -0
- package/types/components/lcb-button/types.d.ts +7 -0
- package/types/components/lcb-calendar-search/lcb-calendar-search.vue.d.ts +6 -4
- package/types/components/lcb-gap/types.d.ts +3 -2
- package/types/components/lcb-grid/lcb-grid.vue.d.ts +13 -4
- package/types/components/lcb-grid/types.d.ts +8 -0
- package/types/components/lcb-home-search/lcb-home-search.vue.d.ts +4 -1
- package/types/components/lcb-img-nav/lcb-img-nav.vue.d.ts +21 -2
- package/types/components/lcb-img-nav/types.d.ts +15 -0
- package/types/components/lcb-list/components/FilterList/index.vue.d.ts +12 -4
- package/types/components/lcb-list/components/FilterList/type.d.ts +1 -1
- package/types/components/lcb-list/components/FilterView/index.vue.d.ts +36 -0
- package/types/components/lcb-list/components/FilterView/type.d.ts +7 -0
- package/types/components/lcb-list/lcb-list.vue.d.ts +2 -1
- package/types/components/lcb-list/types.d.ts +1 -0
- package/types/components/lcb-nav/lcb-nav.vue.d.ts +0 -3
- 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 +3 -0
- package/types/components/lcb-product/types.d.ts +3 -0
- package/types/components/lcb-product-item/lcb-product-item.vue.d.ts +2 -2
- package/types/components/{lcb-notice/Item/index.vue.d.ts → lcb-rich-text/lcb-rich-text.vue.d.ts} +4 -16
- package/types/components/lcb-rich-text/types.d.ts +4 -0
- package/types/components/lcb-swiper/lcb-swiper.vue.d.ts +2 -2
- package/types/components/lcb-text/lcb-text.vue.d.ts +42 -0
- package/types/components/lcb-text/types.d.ts +4 -0
- package/types/components/lcb-title/lcb-title.vue.d.ts +27 -1
- package/types/components/lcb-title/types.d.ts +15 -3
- package/types/components/lcb-user-order/types.d.ts +5 -35
- package/types/components/lcb-user-top/Nums/index.vue.d.ts +6 -2
- package/types/components/lcb-vip/api/index.d.ts +34 -0
- package/types/components/lcb-vip/components/InfoDialog/index.vue.d.ts +38 -0
- package/types/components/lcb-vip/lcb-vip.vue.d.ts +68 -0
- package/types/components/lcb-vip/types.d.ts +8 -0
- package/types/constants.d.ts +2 -0
- package/types/index.d.ts +6 -0
- package/types/utils/auth.d.ts +2 -0
- package/types/utils/transform.d.ts +5 -1
- package/types/utils/utils.d.ts +2 -0
- package/utils/auth.ts +19 -0
- package/utils/transform.ts +13 -2
- package/utils/utils.ts +6 -1
- package/components/lcb-notice/Item/index.vue +0 -112
- package/types/components/lcb-list/components/FilterList/mockData.d.ts +0 -63
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']
|
|
@@ -20,12 +22,15 @@ declare module 'vue' {
|
|
|
20
22
|
'lcb-notice': (typeof import('./types/components/lcb-notice/lcb-notice.vue'))['default']
|
|
21
23
|
'lcb-product': (typeof import('./types/components/lcb-product/lcb-product.vue'))['default']
|
|
22
24
|
'lcb-product-item': (typeof import('./types/components/lcb-product-item/lcb-product-item.vue'))['default']
|
|
25
|
+
'lcb-rich-text': (typeof import('./types/components/lcb-rich-text/lcb-rich-text.vue'))['default']
|
|
23
26
|
'lcb-swiper': (typeof import('./types/components/lcb-swiper/lcb-swiper.vue'))['default']
|
|
24
27
|
'lcb-tags': (typeof import('./types/components/lcb-tags/lcb-tags.vue'))['default']
|
|
28
|
+
'lcb-text': (typeof import('./types/components/lcb-text/lcb-text.vue'))['default']
|
|
25
29
|
'lcb-title': (typeof import('./types/components/lcb-title/lcb-title.vue'))['default']
|
|
26
30
|
'lcb-user-order': (typeof import('./types/components/lcb-user-order/lcb-user-order.vue'))['default']
|
|
27
31
|
'lcb-user-top': (typeof import('./types/components/lcb-user-top/lcb-user-top.vue'))['default']
|
|
28
32
|
'lcb-video': (typeof import('./types/components/lcb-video/lcb-video.vue'))['default']
|
|
33
|
+
'lcb-vip': (typeof import('./types/components/lcb-vip/lcb-vip.vue'))['default']
|
|
29
34
|
}
|
|
30
35
|
}
|
|
31
36
|
|
package/iconfonts/index.css
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
|
+
/* 在线链接服务仅供平台体验和调试使用,平台不承诺服务的稳定性,企业客户需下载字体包自行发布使用并做好备份。 */
|
|
1
2
|
@font-face {
|
|
2
3
|
font-family: 'lcb'; /* Project id 4710234 */
|
|
3
4
|
src:
|
|
4
|
-
url('//at.alicdn.com/t/c/
|
|
5
|
-
url('//at.alicdn.com/t/c/
|
|
6
|
-
url('//at.alicdn.com/t/c/
|
|
5
|
+
url('//at.alicdn.com/t/c/font_4710234_15ayvpii3yk.woff2?t=1730440551449') format('woff2'),
|
|
6
|
+
url('//at.alicdn.com/t/c/font_4710234_15ayvpii3yk.woff?t=1730440551449') format('woff'),
|
|
7
|
+
url('//at.alicdn.com/t/c/font_4710234_15ayvpii3yk.ttf?t=1730440551449') format('truetype');
|
|
7
8
|
}
|
|
8
9
|
|
|
9
10
|
.lcb {
|
|
@@ -14,6 +15,26 @@
|
|
|
14
15
|
-moz-osx-font-smoothing: grayscale;
|
|
15
16
|
}
|
|
16
17
|
|
|
18
|
+
.lcb-a-xingzhuang103:before {
|
|
19
|
+
content: '\e64e';
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.lcb-a-xingzhuang97:before {
|
|
23
|
+
content: '\e651';
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.lcb-jiaobiao:before {
|
|
27
|
+
content: '\e62c';
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.lcb-jianshao:before {
|
|
31
|
+
content: '\e649';
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.lcb-zengjia:before {
|
|
35
|
+
content: '\e64a';
|
|
36
|
+
}
|
|
37
|
+
|
|
17
38
|
.lcb-mingpian:before {
|
|
18
39
|
content: '\e654';
|
|
19
40
|
}
|
package/index.ts
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import { LcbGlobal } from './action'
|
|
2
2
|
|
|
3
|
-
export const $lcb: LcbGlobal = {
|
|
3
|
+
export const $lcb: LcbGlobal = {
|
|
4
|
+
navigateTo: (url) => {
|
|
5
|
+
uni.navigateTo({ url })
|
|
6
|
+
},
|
|
7
|
+
} as LcbGlobal
|
|
4
8
|
uni.$lcb = $lcb
|
|
5
9
|
// #ifdef H5
|
|
6
10
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
package/package.json
CHANGED
|
@@ -1,32 +1,37 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tplc/business",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.15",
|
|
4
4
|
"keywords": [
|
|
5
5
|
"业务组件"
|
|
6
6
|
],
|
|
7
7
|
"type": "module",
|
|
8
|
+
"scripts": {
|
|
9
|
+
"pub": "pnpm dts && pnpm publish --no-git-checks",
|
|
10
|
+
"dts": "rm -rf types && vue-tsc --project ./tsconfig.dts.json && pnpm prettier --write types",
|
|
11
|
+
"release-major": "standard-version --release-as major ",
|
|
12
|
+
"release-minor": "standard-version --release-as minor",
|
|
13
|
+
"release-patch": "standard-version --release-as patch ",
|
|
14
|
+
"generateComponent": "node ./scripts/createComponent.mjs",
|
|
15
|
+
"generateGlobalDts": "node ./scripts/generateGlobalDts.mjs"
|
|
16
|
+
},
|
|
8
17
|
"publishConfig": {
|
|
9
18
|
"access": "public",
|
|
10
19
|
"registry": "https://registry.npmjs.org/"
|
|
11
20
|
},
|
|
12
21
|
"peerDependencies": {
|
|
13
|
-
"
|
|
14
|
-
"
|
|
22
|
+
"@tplc/wot": "workspace:*",
|
|
23
|
+
"vue": ">=3.2.47"
|
|
15
24
|
},
|
|
16
25
|
"engines": {
|
|
17
26
|
"node": ">=18",
|
|
18
27
|
"pnpm": ">=7.30"
|
|
19
28
|
},
|
|
20
29
|
"dependencies": {
|
|
21
|
-
"
|
|
30
|
+
"mp-html": "^2.5.0",
|
|
31
|
+
"qs": "6.5.3",
|
|
32
|
+
"uview-plus": "^3.3.9"
|
|
22
33
|
},
|
|
23
|
-
"
|
|
24
|
-
"
|
|
25
|
-
"dts": "rm -rf types && vue-tsc --project ./tsconfig.dts.json && pnpm prettier --write types",
|
|
26
|
-
"release-major": "standard-version --release-as major ",
|
|
27
|
-
"release-minor": "standard-version --release-as minor",
|
|
28
|
-
"release-patch": "standard-version --release-as patch ",
|
|
29
|
-
"generateComponent": "node ./scripts/createComponent.mjs",
|
|
30
|
-
"generateGlobalDts": "node ./scripts/generateGlobalDts.mjs"
|
|
34
|
+
"devDependencies": {
|
|
35
|
+
"standard-version": "^9.5.0"
|
|
31
36
|
}
|
|
32
|
-
}
|
|
37
|
+
}
|
|
@@ -10,30 +10,10 @@ declare const __VLS_component: import('vue').DefineComponent<
|
|
|
10
10
|
{},
|
|
11
11
|
import('vue').ComponentOptionsMixin,
|
|
12
12
|
import('vue').ComponentOptionsMixin,
|
|
13
|
-
|
|
14
|
-
phone: (value: {
|
|
15
|
-
detail: {
|
|
16
|
-
errMsg: string
|
|
17
|
-
encryptedData: string
|
|
18
|
-
iv: string
|
|
19
|
-
}
|
|
20
|
-
}) => void
|
|
21
|
-
avatar: (value: string) => void
|
|
22
|
-
},
|
|
13
|
+
any,
|
|
23
14
|
string,
|
|
24
15
|
import('vue').PublicProps,
|
|
25
|
-
|
|
26
|
-
onPhone?:
|
|
27
|
-
| ((value: {
|
|
28
|
-
detail: {
|
|
29
|
-
errMsg: string
|
|
30
|
-
encryptedData: string
|
|
31
|
-
iv: string
|
|
32
|
-
}
|
|
33
|
-
}) => any)
|
|
34
|
-
| undefined
|
|
35
|
-
onAvatar?: ((value: string) => any) | undefined
|
|
36
|
-
},
|
|
16
|
+
any,
|
|
37
17
|
{},
|
|
38
18
|
{}
|
|
39
19
|
>
|
|
@@ -2,9 +2,28 @@ 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: 授权手机号 101 用户头像
|
|
5
|
+
* 24: 回到上一层 25: 关闭当前页面 26: 关闭当前窗口 30: 拨打电话 88: 授权手机号 101 用户头像 102 分享 103 意见反馈 104 打开授权设置页
|
|
6
6
|
*/
|
|
7
|
-
jumpType?:
|
|
7
|
+
jumpType?:
|
|
8
|
+
| 1
|
|
9
|
+
| 2
|
|
10
|
+
| 10
|
|
11
|
+
| 11
|
|
12
|
+
| 12
|
|
13
|
+
| 13
|
|
14
|
+
| 14
|
|
15
|
+
| 21
|
|
16
|
+
| 22
|
|
17
|
+
| 23
|
|
18
|
+
| 24
|
|
19
|
+
| 25
|
|
20
|
+
| 26
|
|
21
|
+
| 30
|
|
22
|
+
| 88
|
|
23
|
+
| 101
|
|
24
|
+
| 102
|
|
25
|
+
| 103
|
|
26
|
+
| 104
|
|
8
27
|
/** 跳转路径 */
|
|
9
28
|
jumpUrl?: string
|
|
10
29
|
/** 小程序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
|
+
}
|
|
@@ -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'
|
|
@@ -3,9 +3,6 @@ declare const _default: import('vue').DefineComponent<
|
|
|
3
3
|
__VLS_WithDefaults<
|
|
4
4
|
__VLS_TypePropsToOption<LcbBannerListProps>,
|
|
5
5
|
{
|
|
6
|
-
radius: number
|
|
7
|
-
imageRadius: number
|
|
8
|
-
marginHorizontal: number
|
|
9
6
|
backgroundColor: string
|
|
10
7
|
}
|
|
11
8
|
>,
|
|
@@ -23,19 +20,13 @@ declare const _default: import('vue').DefineComponent<
|
|
|
23
20
|
__VLS_WithDefaults<
|
|
24
21
|
__VLS_TypePropsToOption<LcbBannerListProps>,
|
|
25
22
|
{
|
|
26
|
-
radius: number
|
|
27
|
-
imageRadius: number
|
|
28
|
-
marginHorizontal: number
|
|
29
23
|
backgroundColor: string
|
|
30
24
|
}
|
|
31
25
|
>
|
|
32
26
|
>
|
|
33
27
|
>,
|
|
34
28
|
{
|
|
35
|
-
marginHorizontal: number
|
|
36
29
|
backgroundColor: string
|
|
37
|
-
radius: number
|
|
38
|
-
imageRadius: number
|
|
39
30
|
},
|
|
40
31
|
{}
|
|
41
32
|
>
|
|
@@ -9,6 +9,8 @@ declare const __VLS_component: import('vue').DefineComponent<
|
|
|
9
9
|
backgroundSize: string
|
|
10
10
|
backgroundRepeat: string
|
|
11
11
|
backgroundPosition: string
|
|
12
|
+
opacity: number
|
|
13
|
+
fontSize: number
|
|
12
14
|
}
|
|
13
15
|
>,
|
|
14
16
|
{},
|
|
@@ -28,6 +30,8 @@ declare const __VLS_component: import('vue').DefineComponent<
|
|
|
28
30
|
backgroundSize: string
|
|
29
31
|
backgroundRepeat: string
|
|
30
32
|
backgroundPosition: string
|
|
33
|
+
opacity: number
|
|
34
|
+
fontSize: number
|
|
31
35
|
}
|
|
32
36
|
>
|
|
33
37
|
>
|
|
@@ -17,6 +17,8 @@ export interface LcbBlockProps {
|
|
|
17
17
|
shadowSize?: number
|
|
18
18
|
/** 模糊大小 */
|
|
19
19
|
blurSize?: number
|
|
20
|
+
/** 透明度 */
|
|
21
|
+
opacity?: number
|
|
20
22
|
paddingTop?: number
|
|
21
23
|
paddingBottom?: number
|
|
22
24
|
paddingLeft?: number
|
|
@@ -24,11 +26,14 @@ export interface LcbBlockProps {
|
|
|
24
26
|
color?: string
|
|
25
27
|
fontSize?: number
|
|
26
28
|
radius?: number
|
|
29
|
+
topRadius?: number
|
|
30
|
+
bottomRadius?: number
|
|
27
31
|
customClass?: string
|
|
28
32
|
backgroundRepeat?: 'repeat' | 'repeat-x' | 'repeat-y' | 'no-repeat'
|
|
29
33
|
backgroundSize?: string
|
|
30
34
|
backgroundPosition?: string
|
|
31
35
|
borderColor?: string
|
|
36
|
+
textAlign?: 'left' | 'center' | 'right'
|
|
32
37
|
}
|
|
33
38
|
export interface LcbBlockInnerProps extends LcbBlockProps {
|
|
34
39
|
[key: string]: any
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { LcbButtonProps } from './types'
|
|
2
|
+
declare const _default: import('vue').DefineComponent<
|
|
3
|
+
__VLS_WithDefaults<__VLS_TypePropsToOption<LcbButtonProps>, {}>,
|
|
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<LcbButtonProps>, {}>>
|
|
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,9 +3,10 @@ declare const _default: import('vue').DefineComponent<
|
|
|
3
3
|
__VLS_WithDefaults<
|
|
4
4
|
__VLS_TypePropsToOption<LcbCalendarSearchProps>,
|
|
5
5
|
{
|
|
6
|
-
|
|
6
|
+
paddingHorizontal: number
|
|
7
7
|
radius: number
|
|
8
8
|
placeholder: string
|
|
9
|
+
icon: string
|
|
9
10
|
}
|
|
10
11
|
>,
|
|
11
12
|
{},
|
|
@@ -22,17 +23,18 @@ declare const _default: import('vue').DefineComponent<
|
|
|
22
23
|
__VLS_WithDefaults<
|
|
23
24
|
__VLS_TypePropsToOption<LcbCalendarSearchProps>,
|
|
24
25
|
{
|
|
25
|
-
|
|
26
|
+
paddingHorizontal: number
|
|
26
27
|
radius: number
|
|
27
28
|
placeholder: string
|
|
29
|
+
icon: string
|
|
28
30
|
}
|
|
29
31
|
>
|
|
30
32
|
>
|
|
31
33
|
>,
|
|
32
34
|
{
|
|
33
|
-
placeholder: string
|
|
34
|
-
marginHorizontal: number
|
|
35
35
|
radius: number
|
|
36
|
+
placeholder: string
|
|
37
|
+
paddingHorizontal: number
|
|
36
38
|
},
|
|
37
39
|
{}
|
|
38
40
|
>
|
|
@@ -6,7 +6,10 @@ declare const _default: import('vue').DefineComponent<
|
|
|
6
6
|
marginHorizontal: number
|
|
7
7
|
height: number
|
|
8
8
|
cols: number
|
|
9
|
-
|
|
9
|
+
gap: number
|
|
10
|
+
textAlign: string
|
|
11
|
+
imgRadius: number
|
|
12
|
+
fontSize: number
|
|
10
13
|
}
|
|
11
14
|
>,
|
|
12
15
|
{},
|
|
@@ -26,16 +29,22 @@ declare const _default: import('vue').DefineComponent<
|
|
|
26
29
|
marginHorizontal: number
|
|
27
30
|
height: number
|
|
28
31
|
cols: number
|
|
29
|
-
|
|
32
|
+
gap: number
|
|
33
|
+
textAlign: string
|
|
34
|
+
imgRadius: number
|
|
35
|
+
fontSize: number
|
|
30
36
|
}
|
|
31
37
|
>
|
|
32
38
|
>
|
|
33
39
|
>,
|
|
34
40
|
{
|
|
35
|
-
marginHorizontal: number
|
|
36
|
-
radius: number
|
|
37
41
|
height: number
|
|
42
|
+
marginHorizontal: number
|
|
43
|
+
fontSize: number
|
|
44
|
+
textAlign: 'left' | 'center' | 'right'
|
|
38
45
|
cols: number
|
|
46
|
+
gap: number
|
|
47
|
+
imgRadius: number
|
|
39
48
|
},
|
|
40
49
|
{}
|
|
41
50
|
>
|
|
@@ -3,6 +3,14 @@ import { ActionView } from 'action'
|
|
|
3
3
|
export interface LcbGridProps extends LcbBlockProps {
|
|
4
4
|
items?: ActionView[]
|
|
5
5
|
height?: number
|
|
6
|
+
width?: number
|
|
6
7
|
cols?: number
|
|
7
8
|
gap?: number
|
|
9
|
+
imgRadius?: number
|
|
10
|
+
imgBgColor?: string
|
|
11
|
+
imgPadding?: number
|
|
12
|
+
textAlign?: 'left' | 'center' | 'right'
|
|
13
|
+
textBgColor?: string
|
|
14
|
+
textPH?: number
|
|
15
|
+
textPV?: number
|
|
8
16
|
}
|
|
@@ -8,6 +8,7 @@ declare const _default: import('vue').DefineComponent<
|
|
|
8
8
|
radius: number
|
|
9
9
|
placeholder: string
|
|
10
10
|
btnText: string
|
|
11
|
+
opacity: number
|
|
11
12
|
}
|
|
12
13
|
>,
|
|
13
14
|
{},
|
|
@@ -29,15 +30,17 @@ declare const _default: import('vue').DefineComponent<
|
|
|
29
30
|
radius: number
|
|
30
31
|
placeholder: string
|
|
31
32
|
btnText: string
|
|
33
|
+
opacity: number
|
|
32
34
|
}
|
|
33
35
|
>
|
|
34
36
|
>
|
|
35
37
|
>,
|
|
36
38
|
{
|
|
39
|
+
radius: number
|
|
37
40
|
placeholder: string
|
|
38
41
|
marginHorizontal: number
|
|
39
42
|
backgroundColor: string
|
|
40
|
-
|
|
43
|
+
opacity: number
|
|
41
44
|
btnText: string
|
|
42
45
|
},
|
|
43
46
|
{}
|
|
@@ -11,6 +11,11 @@ declare const _default: import('vue').DefineComponent<
|
|
|
11
11
|
paddingHorizontal: number
|
|
12
12
|
iconTextMargin: number
|
|
13
13
|
pictureDistribution: number
|
|
14
|
+
textSize: number
|
|
15
|
+
urlKey: string
|
|
16
|
+
titleKey: string
|
|
17
|
+
itemFlexMode: string
|
|
18
|
+
itemGap: number
|
|
14
19
|
}
|
|
15
20
|
>,
|
|
16
21
|
{},
|
|
@@ -19,7 +24,9 @@ declare const _default: import('vue').DefineComponent<
|
|
|
19
24
|
{},
|
|
20
25
|
import('vue').ComponentOptionsMixin,
|
|
21
26
|
import('vue').ComponentOptionsMixin,
|
|
22
|
-
{
|
|
27
|
+
{
|
|
28
|
+
click: (...args: any[]) => void
|
|
29
|
+
},
|
|
23
30
|
string,
|
|
24
31
|
import('vue').PublicProps,
|
|
25
32
|
Readonly<
|
|
@@ -35,10 +42,17 @@ declare const _default: import('vue').DefineComponent<
|
|
|
35
42
|
paddingHorizontal: number
|
|
36
43
|
iconTextMargin: number
|
|
37
44
|
pictureDistribution: number
|
|
45
|
+
textSize: number
|
|
46
|
+
urlKey: string
|
|
47
|
+
titleKey: string
|
|
48
|
+
itemFlexMode: string
|
|
49
|
+
itemGap: number
|
|
38
50
|
}
|
|
39
51
|
>
|
|
40
52
|
>
|
|
41
|
-
|
|
53
|
+
> & {
|
|
54
|
+
onClick?: ((...args: any[]) => any) | undefined
|
|
55
|
+
},
|
|
42
56
|
{
|
|
43
57
|
paddingHorizontal: number
|
|
44
58
|
paddingVertical: number
|
|
@@ -48,6 +62,11 @@ declare const _default: import('vue').DefineComponent<
|
|
|
48
62
|
pictureDistribution: 3 | 4 | 5
|
|
49
63
|
iconRadius: number
|
|
50
64
|
iconTextMargin: number
|
|
65
|
+
textSize: number
|
|
66
|
+
urlKey: string
|
|
67
|
+
titleKey: string
|
|
68
|
+
itemGap: number
|
|
69
|
+
itemFlexMode: 'row' | 'column'
|
|
51
70
|
},
|
|
52
71
|
{}
|
|
53
72
|
>
|
|
@@ -27,4 +27,19 @@ export interface LcbImgNavProps extends LcbBlockProps {
|
|
|
27
27
|
fontSize?: number
|
|
28
28
|
color?: string
|
|
29
29
|
titlePadding?: number
|
|
30
|
+
textSize?: number
|
|
31
|
+
urlKey?: string
|
|
32
|
+
titleKey?: string
|
|
33
|
+
itemBgColor?: string
|
|
34
|
+
itemRadius?: number
|
|
35
|
+
itemVerticalPadding?: number
|
|
36
|
+
itemHorizontalPadding?: number
|
|
37
|
+
itemGap?: number
|
|
38
|
+
itemFlexMode?: 'row' | 'column'
|
|
39
|
+
/** 阴影颜色 */
|
|
40
|
+
itemShadowColor?: string
|
|
41
|
+
/** 阴影大小 */
|
|
42
|
+
itemShadowSize?: number
|
|
43
|
+
/** 模糊大小 */
|
|
44
|
+
itemBlurSize?: number
|
|
30
45
|
}
|
|
@@ -1,19 +1,27 @@
|
|
|
1
1
|
import { LcbFilterListProps } from './type'
|
|
2
|
+
declare let __VLS_typeProps: LcbFilterListProps
|
|
3
|
+
type __VLS_PublicProps = {
|
|
4
|
+
modelValue?: unknown[]
|
|
5
|
+
} & typeof __VLS_typeProps
|
|
2
6
|
declare function __VLS_template(): {
|
|
3
|
-
default?(_: {
|
|
7
|
+
default?(_: {}): any
|
|
4
8
|
}
|
|
5
9
|
declare const __VLS_component: import('vue').DefineComponent<
|
|
6
|
-
__VLS_TypePropsToOption<
|
|
10
|
+
__VLS_TypePropsToOption<__VLS_PublicProps>,
|
|
7
11
|
{},
|
|
8
12
|
unknown,
|
|
9
13
|
{},
|
|
10
14
|
{},
|
|
11
15
|
import('vue').ComponentOptionsMixin,
|
|
12
16
|
import('vue').ComponentOptionsMixin,
|
|
13
|
-
{
|
|
17
|
+
{
|
|
18
|
+
'update:modelValue': (modelValue: unknown[]) => void
|
|
19
|
+
},
|
|
14
20
|
string,
|
|
15
21
|
import('vue').PublicProps,
|
|
16
|
-
Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToOption<
|
|
22
|
+
Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToOption<__VLS_PublicProps>>> & {
|
|
23
|
+
'onUpdate:modelValue'?: ((modelValue: unknown[]) => any) | undefined
|
|
24
|
+
},
|
|
17
25
|
{},
|
|
18
26
|
{}
|
|
19
27
|
>
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { FilterViewProps } from './type'
|
|
2
|
+
declare let __VLS_typeProps: FilterViewProps
|
|
3
|
+
type __VLS_PublicProps = {
|
|
4
|
+
modelValue?: Record<string, any>
|
|
5
|
+
} & typeof __VLS_typeProps
|
|
6
|
+
declare const _default: import('vue').DefineComponent<
|
|
7
|
+
__VLS_TypePropsToOption<__VLS_PublicProps>,
|
|
8
|
+
{},
|
|
9
|
+
unknown,
|
|
10
|
+
{},
|
|
11
|
+
{},
|
|
12
|
+
import('vue').ComponentOptionsMixin,
|
|
13
|
+
import('vue').ComponentOptionsMixin,
|
|
14
|
+
{
|
|
15
|
+
'update:modelValue': (modelValue: Record<string, any>) => void
|
|
16
|
+
},
|
|
17
|
+
string,
|
|
18
|
+
import('vue').PublicProps,
|
|
19
|
+
Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToOption<__VLS_PublicProps>>> & {
|
|
20
|
+
'onUpdate:modelValue'?: ((modelValue: Record<string, any>) => any) | undefined
|
|
21
|
+
},
|
|
22
|
+
{},
|
|
23
|
+
{}
|
|
24
|
+
>
|
|
25
|
+
export default _default
|
|
26
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T
|
|
27
|
+
type __VLS_TypePropsToOption<T> = {
|
|
28
|
+
[K in keyof T]-?: {} extends Pick<T, K>
|
|
29
|
+
? {
|
|
30
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>
|
|
31
|
+
}
|
|
32
|
+
: {
|
|
33
|
+
type: import('vue').PropType<T[K]>
|
|
34
|
+
required: true
|
|
35
|
+
}
|
|
36
|
+
}
|