Skip to content

Commit 1284f0f

Browse files
committed
v2.8.7-规范types中对style类型的约束
1 parent 8828da9 commit 1284f0f

File tree

15 files changed

+69
-69
lines changed

15 files changed

+69
-69
lines changed

demo/z-paging-demo/uni_modules/z-paging/types/comps/z-paging-cell.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ declare interface ZPagingCellProps {
55
/**
66
* z-paging-cell样式
77
*/
8-
cellStyle?: Record<string, any>
8+
cellStyle?: Partial<CSSStyleDeclaration>
99
}
1010

1111
// ****************************** Slots ******************************

demo/z-paging-demo/uni_modules/z-paging/types/comps/z-paging-empty-view.d.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,23 +32,23 @@ declare interface ZPagingEmptyViewProps {
3232
* 空数据图样式,可设置空数据view的top等
3333
* - 如果空数据图不是fixed布局,则此处是`margin-top`
3434
*/
35-
emptyViewStyle?: Record<string, any>;
35+
emptyViewStyle?: Partial<CSSStyleDeclaration>;
3636

3737
/**
3838
* 空数据图img样式
3939
*/
40-
emptyViewImgStyle?: Record<string, any>;
40+
emptyViewImgStyle?: Partial<CSSStyleDeclaration>;
4141

4242
/**
4343
* 空数据图描述文字样式
4444
*/
45-
emptyViewTitleStyle?: Record<string, any>;
45+
emptyViewTitleStyle?: Partial<CSSStyleDeclaration>;
4646

4747
/**
4848
* 空数据图重新加载按钮样式
4949
* @since 1.6.7
5050
*/
51-
emptyViewReloadStyle?: Record<string, any>;
51+
emptyViewReloadStyle?: Partial<CSSStyleDeclaration>;
5252

5353
/**
5454
* 是否显示空数据图重新加载按钮(无数据时)

demo/z-paging-demo/uni_modules/z-paging/types/comps/z-paging-swiper-item.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ declare interface ZPagingSwiperItemProps {
6060
/**
6161
* innerList样式
6262
*/
63-
innerListStyle?: Record<string, any>
63+
innerListStyle?: Partial<CSSStyleDeclaration>
6464
}
6565

6666
// ****************************** Methods ******************************

demo/z-paging-demo/uni_modules/z-paging/types/comps/z-paging-swiper.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ declare interface ZPagingSwiperProps {
1717
/**
1818
* z-paging-swiper样式
1919
*/
20-
swiperStyle?: Record<string, any>
20+
swiperStyle?: Partial<CSSStyleDeclaration>
2121
}
2222

2323

demo/z-paging-demo/uni_modules/z-paging/types/comps/z-paging.d.ts

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ declare interface ZPagingProps {
271271
/**
272272
* 设置z-paging的style,部分平台(如微信小程序)无法直接修改组件的style,可使用此属性代替。
273273
*/
274-
pagingStyle?: Record<string, any>
274+
pagingStyle?: Partial<CSSStyleDeclaration>
275275

276276
/**
277277
* 设置z-paging的class,优先级低于pagingStyle和height、width、maxWidth、bgColor
@@ -486,18 +486,18 @@ declare interface ZPagingProps {
486486
/**
487487
* 自定义下拉刷新中左侧图标的样式
488488
*/
489-
refresherImgStyle?: Record<string, any>
489+
refresherImgStyle?: Partial<CSSStyleDeclaration>
490490

491491
/**
492492
* 自定义下拉刷新中右侧状态描述文字的样式
493493
*/
494-
refresherTitleStyle?: Record<string, any>
494+
refresherTitleStyle?: Partial<CSSStyleDeclaration>
495495

496496
/**
497497
* 自定义下拉刷新中右侧最后更新时间文字的样式
498498
* - show-refresher-update-time为true时有效
499499
*/
500-
refresherUpdateTimeStyle?: Record<string, any>
500+
refresherUpdateTimeStyle?: Partial<CSSStyleDeclaration>
501501

502502
/**
503503
* 是否实时监听下拉刷新中进度,并通过@refresherTouchmove传递给父组件
@@ -738,18 +738,18 @@ declare interface ZPagingProps {
738738
* 自定义底部加载更多样式;如:{'background':'red'}
739739
* - 此属性无法修改文字样式,修改文字样式请使用loading-more-title-custom-style
740740
*/
741-
loadingMoreCustomStyle?: Record<string, any>
741+
loadingMoreCustomStyle?: Partial<CSSStyleDeclaration>
742742

743743
/**
744744
* 自定义底部加载更多文字样式;如:{'color':'red'}
745745
* @since 2.1.7
746746
*/
747-
loadingMoreTitleCustomStyle?: Record<string, any>
747+
loadingMoreTitleCustomStyle?: Partial<CSSStyleDeclaration>
748748

749749
/**
750750
* 自定义底部加载更多加载中动画样式
751751
*/
752-
loadingMoreLoadingIconCustomStyle?: Record<string, any>
752+
loadingMoreLoadingIconCustomStyle?: Partial<CSSStyleDeclaration>
753753

754754
/**
755755
* 自定义底部加载更多加载中动画图标类型
@@ -852,7 +852,7 @@ declare interface ZPagingProps {
852852
/**
853853
* 自定义底部没有更多数据的分割线样式
854854
*/
855-
loadingMoreNoMoreLineCustomStyle?: Record<string, any>
855+
loadingMoreNoMoreLineCustomStyle?: Partial<CSSStyleDeclaration>
856856

857857
// ******************** 空数据与加载失败配置 ********************
858858
/**
@@ -915,28 +915,28 @@ declare interface ZPagingProps {
915915
/**
916916
* 空数据图父view样式
917917
*/
918-
emptyViewSuperStyle?: Record<string, any>
918+
emptyViewSuperStyle?: Partial<CSSStyleDeclaration>
919919

920920
/**
921921
* 空数据图样式,可设置空数据view的top等,如::empty-view-style="{'top':'100rpx'}"
922922
*/
923-
emptyViewStyle?: Record<string, any>
923+
emptyViewStyle?: Partial<CSSStyleDeclaration>
924924

925925
/**
926926
* 空数据图img样式
927927
*/
928-
emptyViewImgStyle?: Record<string, any>
928+
emptyViewImgStyle?: Partial<CSSStyleDeclaration>
929929

930930
/**
931931
* 空数据图描述文字样式
932932
*/
933-
emptyViewTitleStyle?: Record<string, any>
933+
emptyViewTitleStyle?: Partial<CSSStyleDeclaration>
934934

935935
/**
936936
* 空数据图重新加载按钮样式
937937
* @since 1.6.7
938938
*/
939-
emptyViewReloadStyle?: Record<string, any>
939+
emptyViewReloadStyle?: Partial<CSSStyleDeclaration>
940940

941941
/**
942942
* 是否显示空数据图重新加载按钮(无数据时)
@@ -1040,7 +1040,7 @@ declare interface ZPagingProps {
10401040
/**
10411041
* 点击返回顶部按钮的自定义样式
10421042
*/
1043-
backToTopStyle?: Record<string, any>
1043+
backToTopStyle?: Partial<CSSStyleDeclaration>
10441044

10451045
// ******************** 虚拟列表&内置列表配置 ********************
10461046
/**
@@ -1132,13 +1132,13 @@ declare interface ZPagingProps {
11321132
/**
11331133
* innerList样式
11341134
*/
1135-
innerListStyle?: Record<string, any>
1135+
innerListStyle?: Partial<CSSStyleDeclaration>
11361136

11371137
/**
11381138
* innerCell样式
11391139
* @since 2.2.8
11401140
*/
1141-
innerCellStyle?: Record<string, any>
1141+
innerCellStyle?: Partial<CSSStyleDeclaration>
11421142

11431143
// ******************** 本地分页配置 ********************
11441144
/**

demo/z-paging-vue3-demo/uni_modules/z-paging/types/comps/z-paging-cell.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ declare interface ZPagingCellProps {
55
/**
66
* z-paging-cell样式
77
*/
8-
cellStyle?: Record<string, any>
8+
cellStyle?: Partial<CSSStyleDeclaration>
99
}
1010

1111
// ****************************** Slots ******************************

demo/z-paging-vue3-demo/uni_modules/z-paging/types/comps/z-paging-empty-view.d.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,23 +32,23 @@ declare interface ZPagingEmptyViewProps {
3232
* 空数据图样式,可设置空数据view的top等
3333
* - 如果空数据图不是fixed布局,则此处是`margin-top`
3434
*/
35-
emptyViewStyle?: Record<string, any>;
35+
emptyViewStyle?: Partial<CSSStyleDeclaration>;
3636

3737
/**
3838
* 空数据图img样式
3939
*/
40-
emptyViewImgStyle?: Record<string, any>;
40+
emptyViewImgStyle?: Partial<CSSStyleDeclaration>;
4141

4242
/**
4343
* 空数据图描述文字样式
4444
*/
45-
emptyViewTitleStyle?: Record<string, any>;
45+
emptyViewTitleStyle?: Partial<CSSStyleDeclaration>;
4646

4747
/**
4848
* 空数据图重新加载按钮样式
4949
* @since 1.6.7
5050
*/
51-
emptyViewReloadStyle?: Record<string, any>;
51+
emptyViewReloadStyle?: Partial<CSSStyleDeclaration>;
5252

5353
/**
5454
* 是否显示空数据图重新加载按钮(无数据时)

demo/z-paging-vue3-demo/uni_modules/z-paging/types/comps/z-paging-swiper-item.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ declare interface ZPagingSwiperItemProps {
6060
/**
6161
* innerList样式
6262
*/
63-
innerListStyle?: Record<string, any>
63+
innerListStyle?: Partial<CSSStyleDeclaration>
6464
}
6565

6666
// ****************************** Methods ******************************

demo/z-paging-vue3-demo/uni_modules/z-paging/types/comps/z-paging-swiper.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ declare interface ZPagingSwiperProps {
1717
/**
1818
* z-paging-swiper样式
1919
*/
20-
swiperStyle?: Record<string, any>
20+
swiperStyle?: Partial<CSSStyleDeclaration>
2121
}
2222

2323

demo/z-paging-vue3-demo/uni_modules/z-paging/types/comps/z-paging.d.ts

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ declare interface ZPagingProps {
271271
/**
272272
* 设置z-paging的style,部分平台(如微信小程序)无法直接修改组件的style,可使用此属性代替。
273273
*/
274-
pagingStyle?: Record<string, any>
274+
pagingStyle?: Partial<CSSStyleDeclaration>
275275

276276
/**
277277
* 设置z-paging的class,优先级低于pagingStyle和height、width、maxWidth、bgColor
@@ -486,18 +486,18 @@ declare interface ZPagingProps {
486486
/**
487487
* 自定义下拉刷新中左侧图标的样式
488488
*/
489-
refresherImgStyle?: Record<string, any>
489+
refresherImgStyle?: Partial<CSSStyleDeclaration>
490490

491491
/**
492492
* 自定义下拉刷新中右侧状态描述文字的样式
493493
*/
494-
refresherTitleStyle?: Record<string, any>
494+
refresherTitleStyle?: Partial<CSSStyleDeclaration>
495495

496496
/**
497497
* 自定义下拉刷新中右侧最后更新时间文字的样式
498498
* - show-refresher-update-time为true时有效
499499
*/
500-
refresherUpdateTimeStyle?: Record<string, any>
500+
refresherUpdateTimeStyle?: Partial<CSSStyleDeclaration>
501501

502502
/**
503503
* 是否实时监听下拉刷新中进度,并通过@refresherTouchmove传递给父组件
@@ -738,18 +738,18 @@ declare interface ZPagingProps {
738738
* 自定义底部加载更多样式;如:{'background':'red'}
739739
* - 此属性无法修改文字样式,修改文字样式请使用loading-more-title-custom-style
740740
*/
741-
loadingMoreCustomStyle?: Record<string, any>
741+
loadingMoreCustomStyle?: Partial<CSSStyleDeclaration>
742742

743743
/**
744744
* 自定义底部加载更多文字样式;如:{'color':'red'}
745745
* @since 2.1.7
746746
*/
747-
loadingMoreTitleCustomStyle?: Record<string, any>
747+
loadingMoreTitleCustomStyle?: Partial<CSSStyleDeclaration>
748748

749749
/**
750750
* 自定义底部加载更多加载中动画样式
751751
*/
752-
loadingMoreLoadingIconCustomStyle?: Record<string, any>
752+
loadingMoreLoadingIconCustomStyle?: Partial<CSSStyleDeclaration>
753753

754754
/**
755755
* 自定义底部加载更多加载中动画图标类型
@@ -852,7 +852,7 @@ declare interface ZPagingProps {
852852
/**
853853
* 自定义底部没有更多数据的分割线样式
854854
*/
855-
loadingMoreNoMoreLineCustomStyle?: Record<string, any>
855+
loadingMoreNoMoreLineCustomStyle?: Partial<CSSStyleDeclaration>
856856

857857
// ******************** 空数据与加载失败配置 ********************
858858
/**
@@ -915,28 +915,28 @@ declare interface ZPagingProps {
915915
/**
916916
* 空数据图父view样式
917917
*/
918-
emptyViewSuperStyle?: Record<string, any>
918+
emptyViewSuperStyle?: Partial<CSSStyleDeclaration>
919919

920920
/**
921921
* 空数据图样式,可设置空数据view的top等,如::empty-view-style="{'top':'100rpx'}"
922922
*/
923-
emptyViewStyle?: Record<string, any>
923+
emptyViewStyle?: Partial<CSSStyleDeclaration>
924924

925925
/**
926926
* 空数据图img样式
927927
*/
928-
emptyViewImgStyle?: Record<string, any>
928+
emptyViewImgStyle?: Partial<CSSStyleDeclaration>
929929

930930
/**
931931
* 空数据图描述文字样式
932932
*/
933-
emptyViewTitleStyle?: Record<string, any>
933+
emptyViewTitleStyle?: Partial<CSSStyleDeclaration>
934934

935935
/**
936936
* 空数据图重新加载按钮样式
937937
* @since 1.6.7
938938
*/
939-
emptyViewReloadStyle?: Record<string, any>
939+
emptyViewReloadStyle?: Partial<CSSStyleDeclaration>
940940

941941
/**
942942
* 是否显示空数据图重新加载按钮(无数据时)
@@ -1040,7 +1040,7 @@ declare interface ZPagingProps {
10401040
/**
10411041
* 点击返回顶部按钮的自定义样式
10421042
*/
1043-
backToTopStyle?: Record<string, any>
1043+
backToTopStyle?: Partial<CSSStyleDeclaration>
10441044

10451045
// ******************** 虚拟列表&内置列表配置 ********************
10461046
/**
@@ -1132,13 +1132,13 @@ declare interface ZPagingProps {
11321132
/**
11331133
* innerList样式
11341134
*/
1135-
innerListStyle?: Record<string, any>
1135+
innerListStyle?: Partial<CSSStyleDeclaration>
11361136

11371137
/**
11381138
* innerCell样式
11391139
* @since 2.2.8
11401140
*/
1141-
innerCellStyle?: Record<string, any>
1141+
innerCellStyle?: Partial<CSSStyleDeclaration>
11421142

11431143
// ******************** 本地分页配置 ********************
11441144
/**

z-paging/types/comps/z-paging-cell.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ declare interface ZPagingCellProps {
55
/**
66
* z-paging-cell样式
77
*/
8-
cellStyle?: Record<string, any>
8+
cellStyle?: Partial<CSSStyleDeclaration>
99
}
1010

1111
// ****************************** Slots ******************************

z-paging/types/comps/z-paging-empty-view.d.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,23 +32,23 @@ declare interface ZPagingEmptyViewProps {
3232
* 空数据图样式,可设置空数据view的top等
3333
* - 如果空数据图不是fixed布局,则此处是`margin-top`
3434
*/
35-
emptyViewStyle?: Record<string, any>;
35+
emptyViewStyle?: Partial<CSSStyleDeclaration>;
3636

3737
/**
3838
* 空数据图img样式
3939
*/
40-
emptyViewImgStyle?: Record<string, any>;
40+
emptyViewImgStyle?: Partial<CSSStyleDeclaration>;
4141

4242
/**
4343
* 空数据图描述文字样式
4444
*/
45-
emptyViewTitleStyle?: Record<string, any>;
45+
emptyViewTitleStyle?: Partial<CSSStyleDeclaration>;
4646

4747
/**
4848
* 空数据图重新加载按钮样式
4949
* @since 1.6.7
5050
*/
51-
emptyViewReloadStyle?: Record<string, any>;
51+
emptyViewReloadStyle?: Partial<CSSStyleDeclaration>;
5252

5353
/**
5454
* 是否显示空数据图重新加载按钮(无数据时)

z-paging/types/comps/z-paging-swiper-item.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ declare interface ZPagingSwiperItemProps {
6060
/**
6161
* innerList样式
6262
*/
63-
innerListStyle?: Record<string, any>
63+
innerListStyle?: Partial<CSSStyleDeclaration>
6464
}
6565

6666
// ****************************** Methods ******************************

0 commit comments

Comments
 (0)