uview-pro 0.0.7 → 0.0.9
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 +11 -0
- package/components/u-action-sheet/types.ts +35 -0
- package/components/u-action-sheet/u-action-sheet.vue +2 -47
- package/components/u-alert-tips/types.ts +39 -0
- package/components/u-alert-tips/u-alert-tips.vue +3 -32
- package/components/u-avatar/types.ts +34 -0
- package/components/u-avatar/u-avatar.vue +3 -30
- package/components/u-avatar-cropper/types.ts +23 -0
- package/components/u-avatar-cropper/u-avatar-cropper.vue +2 -45
- package/components/u-back-top/types.ts +39 -0
- package/components/u-back-top/u-back-top.vue +2 -33
- package/components/u-badge/types.ts +36 -0
- package/components/u-badge/u-badge.vue +2 -26
- package/components/u-button/types.ts +66 -0
- package/components/u-button/u-button.vue +3 -88
- package/components/u-calendar/types.ts +63 -0
- package/components/u-calendar/u-calendar.vue +2 -135
- package/components/u-car-keyboard/types.ts +12 -0
- package/components/u-car-keyboard/u-car-keyboard.vue +2 -4
- package/components/u-card/types.ts +59 -0
- package/components/u-card/u-card.vue +2 -48
- package/components/u-cell-group/types.ts +17 -0
- package/components/u-cell-group/u-cell-group.vue +3 -9
- package/components/u-cell-item/types.ts +54 -0
- package/components/u-cell-item/u-cell-item.vue +2 -45
- package/components/u-checkbox/types.ts +31 -0
- package/components/u-checkbox/u-checkbox.vue +2 -47
- package/components/u-checkbox-group/types.ts +32 -0
- package/components/u-checkbox-group/u-checkbox-group.vue +2 -57
- package/components/u-circle-progress/types.ts +52 -0
- package/components/u-circle-progress/u-circle-progress.vue +2 -23
- package/components/u-city-select/types.ts +20 -0
- package/components/u-city-select/u-city-select.vue +2 -10
- package/components/u-col/types.ts +30 -0
- package/components/u-col/u-col.vue +2 -14
- package/components/u-collapse/types.ts +31 -0
- package/components/u-collapse/u-collapse.vue +2 -16
- package/components/u-collapse-item/types.ts +25 -0
- package/components/u-collapse-item/u-collapse-item.vue +2 -16
- package/components/u-column-notice/types.ts +48 -0
- package/components/u-column-notice/u-column-notice.vue +2 -97
- package/components/u-count-down/types.ts +42 -0
- package/components/u-count-down/u-count-down.vue +2 -82
- package/components/u-count-to/types.ts +32 -0
- package/components/u-count-to/u-count-to.vue +2 -58
- package/components/u-divider/types.ts +31 -0
- package/components/u-divider/u-divider.vue +2 -22
- package/components/u-dropdown/types.ts +32 -0
- package/components/u-dropdown/u-dropdown.vue +2 -24
- package/components/u-dropdown-item/types.ts +27 -0
- package/components/u-dropdown-item/u-dropdown-item.vue +4 -16
- package/components/u-empty/types.ts +36 -0
- package/components/u-empty/u-empty.vue +3 -26
- package/components/u-field/types.ts +69 -0
- package/components/u-field/u-field.vue +2 -117
- package/components/u-form/types.ts +25 -0
- package/components/u-form/u-form.vue +2 -46
- package/components/u-form-item/types.ts +70 -0
- package/components/u-form-item/u-form-item.vue +2 -62
- package/components/u-full-screen/types.ts +14 -0
- package/components/u-full-screen/u-full-screen.vue +2 -0
- package/components/u-gap/types.ts +18 -0
- package/components/u-gap/u-gap.vue +2 -10
- package/components/u-grid/types.ts +19 -0
- package/components/u-grid/u-grid.vue +3 -11
- package/components/u-grid-item/types.ts +16 -0
- package/components/u-grid-item/u-grid-item.vue +2 -8
- package/components/u-icon/types.ts +62 -0
- package/components/u-icon/u-icon.vue +2 -123
- package/components/u-image/types.ts +39 -38
- package/components/u-index-anchor/types.ts +16 -0
- package/components/u-index-anchor/u-index-anchor.vue +2 -17
- package/components/u-index-list/types.ts +43 -0
- package/components/u-index-list/u-index-list.vue +13 -34
- package/components/u-input/types.ts +140 -0
- package/components/u-input/u-input.vue +2 -209
- package/components/u-keyboard/types.ts +40 -0
- package/components/u-keyboard/u-keyboard.vue +2 -32
- package/components/u-lazy-load/types.ts +37 -0
- package/components/u-lazy-load/u-lazy-load.vue +3 -58
- package/components/u-line/types.ts +44 -0
- package/components/u-line/u-line.vue +2 -14
- package/components/u-line-progress/types.ts +58 -0
- package/components/u-line-progress/u-line-progress.vue +2 -21
- package/components/u-link/types.ts +43 -0
- package/components/u-link/u-link.vue +2 -14
- package/components/u-loading/types.ts +35 -0
- package/components/u-loading/u-loading.vue +2 -23
- package/components/u-loadmore/types.ts +79 -0
- package/components/u-loadmore/u-loadmore.vue +2 -67
- package/components/u-mask/types.ts +43 -0
- package/components/u-mask/u-mask.vue +2 -33
- package/components/u-message-input/types.ts +74 -0
- package/components/u-message-input/u-message-input.vue +2 -62
- package/components/u-modal/types.ts +118 -0
- package/components/u-modal/u-modal.vue +2 -86
- package/components/u-navbar/types.ts +103 -0
- package/components/u-navbar/u-navbar.vue +2 -90
- package/components/u-no-network/types.ts +28 -0
- package/components/u-no-network/u-no-network.vue +2 -23
- package/components/u-notice-bar/types.ts +111 -0
- package/components/u-notice-bar/u-notice-bar.vue +2 -102
- package/components/u-number-box/types.ts +42 -0
- package/components/u-number-box/u-number-box.vue +2 -34
- package/components/u-number-keyboard/types.ts +26 -0
- package/components/u-number-keyboard/u-number-keyboard.vue +2 -8
- package/components/u-picker/types.ts +111 -0
- package/components/u-picker/u-picker.vue +3 -174
- package/components/u-popup/types.ts +59 -0
- package/components/u-popup/u-popup.vue +2 -47
- package/components/u-radio/types.ts +25 -0
- package/components/u-radio/u-radio.vue +2 -16
- package/components/u-radio-group/types.ts +29 -0
- package/components/u-radio-group/u-radio-group.vue +2 -20
- package/components/u-rate/types.ts +40 -0
- package/components/u-rate/u-rate.vue +2 -124
- package/components/u-read-more/types.ts +35 -0
- package/components/u-read-more/u-read-more.vue +2 -51
- package/components/u-row/types.ts +20 -0
- package/components/u-row/u-row.vue +2 -10
- package/components/u-row-notice/types.ts +39 -0
- package/components/u-row-notice/u-row-notice.vue +2 -72
- package/components/u-search/types.ts +53 -0
- package/components/u-search/u-search.vue +2 -44
- package/components/u-section/types.ts +32 -0
- package/components/u-section/u-section.vue +2 -52
- package/components/u-select/types.ts +43 -0
- package/components/u-select/u-select.vue +2 -34
- package/components/u-skeleton/types.ts +20 -0
- package/components/u-skeleton/u-skeleton.vue +2 -27
- package/components/u-slider/types.ts +32 -0
- package/components/u-slider/u-slider.vue +2 -57
- package/components/u-steps/types.ts +28 -0
- package/components/u-steps/u-steps.vue +2 -42
- package/components/u-sticky/types.ts +22 -0
- package/components/u-sticky/u-sticky.vue +2 -32
- package/components/u-subsection/types.ts +36 -0
- package/components/u-subsection/u-subsection.vue +2 -62
- package/components/u-swipe-action/types.ts +50 -0
- package/components/u-swipe-action/u-swipe-action.vue +2 -39
- package/components/u-swiper/types.ts +47 -0
- package/components/u-swiper/u-swiper.vue +2 -41
- package/components/u-switch/types.ts +28 -0
- package/components/u-switch/u-switch.vue +2 -20
- package/components/u-tabbar/types.ts +36 -0
- package/components/u-tabbar/u-tabbar.vue +6 -75
- package/components/u-table/types.ts +25 -0
- package/components/u-table/u-table.vue +2 -51
- package/components/u-tabs/types.ts +51 -0
- package/components/u-tabs/u-tabs.vue +6 -44
- package/components/u-tabs-swiper/types.ts +53 -0
- package/components/u-tabs-swiper/u-tabs-swiper.vue +3 -50
- package/components/u-tag/types.ts +37 -0
- package/components/u-tag/u-tag.vue +2 -28
- package/components/u-td/types.ts +12 -0
- package/components/u-td/u-td.vue +2 -9
- package/components/u-th/types.ts +12 -0
- package/components/u-th/u-th.vue +2 -9
- package/components/u-time-line-item/types.ts +14 -0
- package/components/u-time-line-item/u-time-line-item.vue +2 -12
- package/components/u-toast/types.ts +35 -3
- package/components/u-toast/u-toast.vue +2 -7
- package/components/u-top-tips/types.ts +14 -0
- package/components/u-top-tips/u-top-tips.vue +17 -22
- package/components/u-tr/types.ts +8 -0
- package/components/u-tr/u-tr.vue +3 -0
- package/components/u-upload/types.ts +71 -0
- package/components/u-upload/u-upload.vue +6 -67
- package/components/u-verification-code/types.ts +22 -0
- package/components/u-verification-code/u-verification-code.vue +2 -32
- package/components/u-waterfall/types.ts +16 -0
- package/components/u-waterfall/u-waterfall.vue +2 -18
- package/index.ts +45 -9
- package/package.json +1 -1
- package/types/global.d.ts +200 -0
package/index.ts
CHANGED
|
@@ -9,7 +9,7 @@ import timeFormat from './libs/function/timeFormat';
|
|
|
9
9
|
// 时间戳格式化,返回多久之前
|
|
10
10
|
import timeFrom from './libs/function/timeFrom';
|
|
11
11
|
// 颜色渐变相关,colorGradient-颜色渐变,hexToRgb-十六进制颜色转rgb颜色,rgbToHex-rgb转十六进制
|
|
12
|
-
import
|
|
12
|
+
import colorGradients from './libs/function/colorGradient';
|
|
13
13
|
// 生成全局唯一guid字符串
|
|
14
14
|
import guid from './libs/function/guid';
|
|
15
15
|
// 主题相关颜色,info|success|warning|primary|default|error,此颜色已在uview.scss中定义,但是为js中也能使用,故也定义一份
|
|
@@ -75,8 +75,8 @@ export interface UViewUtils {
|
|
|
75
75
|
timeFormat: typeof timeFormat;
|
|
76
76
|
date: typeof timeFormat;
|
|
77
77
|
timeFrom: typeof timeFrom;
|
|
78
|
-
colorGradient: typeof
|
|
79
|
-
colorToRgba: typeof
|
|
78
|
+
colorGradient: typeof colorGradients.colorGradient;
|
|
79
|
+
colorToRgba: typeof colorGradients.colorToRgba;
|
|
80
80
|
guid: typeof guid;
|
|
81
81
|
color: typeof color;
|
|
82
82
|
sys: typeof sys;
|
|
@@ -89,8 +89,8 @@ export interface UViewUtils {
|
|
|
89
89
|
post: typeof http.post;
|
|
90
90
|
put: typeof http.put;
|
|
91
91
|
delete: typeof http.delete;
|
|
92
|
-
hexToRgb: typeof
|
|
93
|
-
rgbToHex: typeof
|
|
92
|
+
hexToRgb: typeof colorGradients.hexToRgb;
|
|
93
|
+
rgbToHex: typeof colorGradients.rgbToHex;
|
|
94
94
|
test: typeof test;
|
|
95
95
|
random: typeof random;
|
|
96
96
|
deepClone: typeof deepClone;
|
|
@@ -118,8 +118,8 @@ export const $u: UViewUtils = {
|
|
|
118
118
|
timeFormat: timeFormat,
|
|
119
119
|
date: timeFormat, // 另名date
|
|
120
120
|
timeFrom,
|
|
121
|
-
colorGradient:
|
|
122
|
-
colorToRgba:
|
|
121
|
+
colorGradient: colorGradients.colorGradient,
|
|
122
|
+
colorToRgba: colorGradients.colorToRgba,
|
|
123
123
|
guid,
|
|
124
124
|
color,
|
|
125
125
|
sys,
|
|
@@ -132,8 +132,8 @@ export const $u: UViewUtils = {
|
|
|
132
132
|
post: http.post,
|
|
133
133
|
put: http.put,
|
|
134
134
|
delete: http.delete,
|
|
135
|
-
hexToRgb:
|
|
136
|
-
rgbToHex:
|
|
135
|
+
hexToRgb: colorGradients.hexToRgb,
|
|
136
|
+
rgbToHex: colorGradients.rgbToHex,
|
|
137
137
|
test,
|
|
138
138
|
random,
|
|
139
139
|
deepClone,
|
|
@@ -164,3 +164,39 @@ const install = (): void => {
|
|
|
164
164
|
export default {
|
|
165
165
|
install
|
|
166
166
|
};
|
|
167
|
+
|
|
168
|
+
// 工具方法单独导出,支持 import { deepClone } from 'uview-pro'
|
|
169
|
+
export {
|
|
170
|
+
queryParams,
|
|
171
|
+
route,
|
|
172
|
+
timeFormat,
|
|
173
|
+
timeFrom,
|
|
174
|
+
guid,
|
|
175
|
+
color,
|
|
176
|
+
sys,
|
|
177
|
+
os,
|
|
178
|
+
type2icon,
|
|
179
|
+
randomArray,
|
|
180
|
+
deepClone,
|
|
181
|
+
deepMerge,
|
|
182
|
+
addUnit,
|
|
183
|
+
test,
|
|
184
|
+
random,
|
|
185
|
+
trim,
|
|
186
|
+
toast,
|
|
187
|
+
debounce,
|
|
188
|
+
throttle,
|
|
189
|
+
getRect,
|
|
190
|
+
getParent,
|
|
191
|
+
$parent,
|
|
192
|
+
parent,
|
|
193
|
+
parentData,
|
|
194
|
+
dispatch,
|
|
195
|
+
broadcast,
|
|
196
|
+
http,
|
|
197
|
+
config,
|
|
198
|
+
zIndex
|
|
199
|
+
};
|
|
200
|
+
|
|
201
|
+
// 颜色相关方法单独导出
|
|
202
|
+
export const { colorGradient, colorToRgba, hexToRgb, rgbToHex } = colorGradients;
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"id": "uview-pro",
|
|
3
3
|
"name": "uview-pro",
|
|
4
4
|
"displayName": "uView Pro 基于Vue3+TS全面重构的UI组件库,拥有70+精选组件",
|
|
5
|
-
"version": "0.0.
|
|
5
|
+
"version": "0.0.9",
|
|
6
6
|
"description": "uView Pro,是全面支持Vue3的uni-app生态框架,70+精选组件已使用TypeScript重构,已全面支持uni-app Vue3.0",
|
|
7
7
|
"main": "index.ts",
|
|
8
8
|
"module": "index.ts",
|
|
@@ -0,0 +1,200 @@
|
|
|
1
|
+
export type ThemeType = 'primary' | 'info' | 'error' | 'warning' | 'success';
|
|
2
|
+
|
|
3
|
+
export type ImgMode = 'aspectFit' | 'aspectFill' | 'widthFix' | 'top' | 'bottom' | 'center' | 'scaleToFill';
|
|
4
|
+
|
|
5
|
+
export type Direction = 'horizontal' | 'vertical';
|
|
6
|
+
|
|
7
|
+
export type Sex = 'male' | 'female';
|
|
8
|
+
|
|
9
|
+
export type Shape = 'circle' | 'square';
|
|
10
|
+
export type Effect = 'linear' | 'ease' | 'ease-in' | 'ease-in-out' | 'ease-out' | 'step-start' | 'step-end';
|
|
11
|
+
|
|
12
|
+
export type TextAlign = 'left' | 'center' | 'right';
|
|
13
|
+
export type JustifyType = 'start' | 'end' | 'center' | 'around' | 'between';
|
|
14
|
+
export type AlignType = 'top' | 'center' | 'bottom';
|
|
15
|
+
export type ScrollDirection = 'row' | 'column';
|
|
16
|
+
export type PlayState = 'play' | 'paused';
|
|
17
|
+
export type OptionType = { label: string; value: any };
|
|
18
|
+
|
|
19
|
+
// action-sheet 操作项类型
|
|
20
|
+
export type ActionSheetItem = {
|
|
21
|
+
text: string;
|
|
22
|
+
subText?: string;
|
|
23
|
+
color?: string;
|
|
24
|
+
fontSize?: string;
|
|
25
|
+
disabled?: boolean;
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
// action-sheet 底部提示类型
|
|
29
|
+
export type ActionSheetTips = {
|
|
30
|
+
text: string;
|
|
31
|
+
color?: string;
|
|
32
|
+
fontSize?: string;
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
// avatar-cropper 裁剪矩形框的样式
|
|
36
|
+
export type AvatarCropperBoundStyle = {
|
|
37
|
+
lineWidth: number;
|
|
38
|
+
borderColor: string;
|
|
39
|
+
mask: string;
|
|
40
|
+
};
|
|
41
|
+
// badge 角标类型
|
|
42
|
+
export type BadgeSize = 'default' | 'mini';
|
|
43
|
+
// button 按钮类型
|
|
44
|
+
export type ButtonType = 'primary' | 'info' | 'error' | 'warning' | 'success' | 'default';
|
|
45
|
+
// button 按钮尺寸
|
|
46
|
+
export type ButtonSize = 'default' | 'medium' | 'mini';
|
|
47
|
+
// button 按钮 form-type
|
|
48
|
+
export type ButtonFormType = '' | 'submit' | 'reset';
|
|
49
|
+
// button 按钮 scope
|
|
50
|
+
export type ButtonScope = 'phoneNumber' | 'userInfo';
|
|
51
|
+
// button 按钮大小
|
|
52
|
+
export type ButtonSize = 'default' | 'medium' | 'mini';
|
|
53
|
+
// button 按钮open-type
|
|
54
|
+
export type ButtonOpenType =
|
|
55
|
+
| 'feedback'
|
|
56
|
+
| 'share'
|
|
57
|
+
| 'getUserInfo'
|
|
58
|
+
| 'contact'
|
|
59
|
+
| 'getPhoneNumber'
|
|
60
|
+
| 'launchApp'
|
|
61
|
+
| 'openSetting'
|
|
62
|
+
| 'chooseAvatar'
|
|
63
|
+
| 'getAuthorize'
|
|
64
|
+
| 'lifestyle'
|
|
65
|
+
| 'contactShare'
|
|
66
|
+
| 'openGroupProfile'
|
|
67
|
+
| 'openGuildProfile'
|
|
68
|
+
| 'openPublicProfile'
|
|
69
|
+
| 'shareMessageToFriend'
|
|
70
|
+
| 'addFriend'
|
|
71
|
+
| 'addColorSign'
|
|
72
|
+
| 'addGroupApp'
|
|
73
|
+
| 'addToFavorites'
|
|
74
|
+
| 'chooseAddress'
|
|
75
|
+
| 'chooseInvoiceTitle'
|
|
76
|
+
| 'login'
|
|
77
|
+
| 'subscribe'
|
|
78
|
+
| 'favorite'
|
|
79
|
+
| 'watchLater'
|
|
80
|
+
| 'openProfile'
|
|
81
|
+
| 'agreePrivacyAuthorization';
|
|
82
|
+
|
|
83
|
+
// calendar 组件 mode
|
|
84
|
+
export type CalendarMode = 'date' | 'range';
|
|
85
|
+
// CellItem 右侧箭头方向,可选值:right|up|down,默认为right
|
|
86
|
+
export type CellItemArrowDirection = 'right' | 'up' | 'down';
|
|
87
|
+
|
|
88
|
+
export type InputType = 'text' | 'number' | 'idcard' | 'digit' | 'password' | 'textarea' | 'phone' | 'url' | 'email' | 'safe-password' | 'name' | 'bank-card' | 'tel' | 'select';
|
|
89
|
+
|
|
90
|
+
export type InputAlign = 'left' | 'center' | 'right';
|
|
91
|
+
|
|
92
|
+
export type InputConfirmType = 'send' | 'search' | 'next' | 'go' | 'done';
|
|
93
|
+
|
|
94
|
+
export type InputLabelPosition = 'left' | 'top';
|
|
95
|
+
|
|
96
|
+
export type InputErrorType = 'message' | 'border' | 'border-bottom' | 'none' | 'toast';
|
|
97
|
+
|
|
98
|
+
export type IconLabelPosition = 'left' | 'top' | 'right' | 'bottom';
|
|
99
|
+
|
|
100
|
+
export type LineDirection = 'row' | 'column';
|
|
101
|
+
|
|
102
|
+
export type LineBorderStyle = 'solid' | 'dashed' | 'dotted';
|
|
103
|
+
|
|
104
|
+
export type LoadmoreText = {
|
|
105
|
+
loadmore: string;
|
|
106
|
+
loading: string;
|
|
107
|
+
nomore: string;
|
|
108
|
+
};
|
|
109
|
+
|
|
110
|
+
export type LoadmoreStatus = 'loadmore' | 'loading' | 'nomore';
|
|
111
|
+
|
|
112
|
+
export type LoadmoreIconType = 'circle' | 'flower';
|
|
113
|
+
|
|
114
|
+
export type MessageInputMode = 'box' | 'bottomLine' | 'middleLine';
|
|
115
|
+
|
|
116
|
+
export type NumberKeyboardMode = 'number' | 'card';
|
|
117
|
+
|
|
118
|
+
/**
|
|
119
|
+
* PickerMode 选择器模式类型
|
|
120
|
+
* 模式选择,region-地区类型,time-时间类型,selector-单列模式,multiSelector-多列模
|
|
121
|
+
*/
|
|
122
|
+
export type PickerMode = 'region' | 'time' | 'selector' | 'multiSelector';
|
|
123
|
+
|
|
124
|
+
/**
|
|
125
|
+
* PickerParams 选择器参数类型
|
|
126
|
+
*/
|
|
127
|
+
export type PickerParams = {
|
|
128
|
+
year?: boolean;
|
|
129
|
+
month?: boolean;
|
|
130
|
+
day?: boolean;
|
|
131
|
+
hour?: boolean;
|
|
132
|
+
minute?: boolean;
|
|
133
|
+
second?: boolean;
|
|
134
|
+
province?: boolean;
|
|
135
|
+
city?: boolean;
|
|
136
|
+
area?: boolean;
|
|
137
|
+
timestamp?: boolean;
|
|
138
|
+
};
|
|
139
|
+
|
|
140
|
+
export type PopupMode = 'left' | 'right' | 'top' | 'bottom' | 'center';
|
|
141
|
+
export type PopupCloseIconPos = 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right';
|
|
142
|
+
|
|
143
|
+
// Row水平排列方式,可选值为`start`(或`flex-start`)、`end`(或`flex-end`)、`center`、`around`(或`space-around`)、`between`(或`space-between`)
|
|
144
|
+
export type RowJustify = 'start' | 'flex-start' | 'end' | 'flex-end' | 'center' | 'around' | 'space-around' | 'between' | 'space-between';
|
|
145
|
+
// Row垂直对齐方式,可选值为top、center、bottom
|
|
146
|
+
export type RowAlign = 'top' | 'center' | 'bottom';
|
|
147
|
+
// search 组件形状
|
|
148
|
+
export type SearchShape = 'round' | 'square';
|
|
149
|
+
// select 组件 mode single-column-单列,mutil-column-多列,mutil-column-auto-多列联动
|
|
150
|
+
export type SelectMode = 'single-column' | 'mutil-column' | 'mutil-column-auto';
|
|
151
|
+
// Step 组件 mode
|
|
152
|
+
export type StepsListItem = {
|
|
153
|
+
name: string;
|
|
154
|
+
[key: string]: any;
|
|
155
|
+
};
|
|
156
|
+
// Step 组件 mode
|
|
157
|
+
export type StepMode = 'dot' | 'number';
|
|
158
|
+
// Step 组件 direction
|
|
159
|
+
export type StepDirection = 'row' | 'column';
|
|
160
|
+
// Subsection 组件 list item
|
|
161
|
+
export type SubsectionListItem = {
|
|
162
|
+
name: string;
|
|
163
|
+
width?: number;
|
|
164
|
+
[key: string]: any;
|
|
165
|
+
};
|
|
166
|
+
// Subsection 组件 mode
|
|
167
|
+
export type SubsectionMode = 'button' | 'subsection';
|
|
168
|
+
// swipeAction 操作项类型
|
|
169
|
+
export type SwipeActionOption = {
|
|
170
|
+
/** 按钮显示的文字 */
|
|
171
|
+
text: string;
|
|
172
|
+
/** 按钮自定义样式 */
|
|
173
|
+
style?: Record<string, any>;
|
|
174
|
+
};
|
|
175
|
+
// swiper 组件 mode
|
|
176
|
+
export type SwiperMode = 'round' | 'dot' | 'rect' | 'number' | 'none';
|
|
177
|
+
// swiper 组件 indicatorPos
|
|
178
|
+
export type SwiperIndicatorPosition = 'topLeft' | 'topCenter' | 'topRight' | 'bottomLeft' | 'bottomCenter' | 'bottomRight';
|
|
179
|
+
// tabs 组件 props
|
|
180
|
+
export type TabsItem = {
|
|
181
|
+
[key: string]: any;
|
|
182
|
+
name?: string | number;
|
|
183
|
+
count?: string | number;
|
|
184
|
+
};
|
|
185
|
+
// tabs-swiper 组件 list item
|
|
186
|
+
export type TabsSwiperListItem = {
|
|
187
|
+
[key: string]: any;
|
|
188
|
+
name?: string | number;
|
|
189
|
+
count?: string | number;
|
|
190
|
+
};
|
|
191
|
+
// tabs-swiper 组件 autoCenterMode
|
|
192
|
+
export type TabsSwiperAutoCenterMode = 'window';
|
|
193
|
+
// tag 组件 mode
|
|
194
|
+
export type TagMode = 'light' | 'dark' | 'plain';
|
|
195
|
+
// tag 组件 size
|
|
196
|
+
export type TagSize = 'default' | 'mini' | 'medium';
|
|
197
|
+
// toast 组件 position
|
|
198
|
+
export type ToastPosition = 'top' | 'center' | 'bottom';
|
|
199
|
+
export type UploadSizeType = 'original' | 'compressed';
|
|
200
|
+
export type UploadSourceType = 'album' | 'camera';
|