@opentiny/vue-renderless 3.12.1 → 3.13.1
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/alert/index.js +50 -1
- package/alert/vue.js +36 -9
- package/calendar-bar/index.js +2 -2
- package/calendar-view/index.js +5 -11
- package/calendar-view/vue.js +1 -1
- package/cascader/index.js +3 -2
- package/cascader-mobile/index.js +1 -1
- package/cascader-mobile/vue.js +1 -1
- package/cascader-view/index.js +1 -1
- package/checkbox/vue.js +1 -0
- package/checkbox-group/vue.js +1 -0
- package/col/vue.js +3 -2
- package/common/date.js +2 -0
- package/common/deps/popper.js +42 -3
- package/common/index.js +1 -1
- package/common/runtime.js +1 -1
- package/container/index.js +17 -1
- package/container/vue.js +12 -3
- package/dropdown-item/vue.js +1 -1
- package/grid/utils/common.js +10 -5
- package/input/index.js +8 -2
- package/input/vue.js +13 -8
- package/label/index.js +56 -0
- package/label/vue.js +26 -0
- package/mask/index.js +13 -0
- package/mask/vue.js +18 -0
- package/numeric/index.js +13 -3
- package/numeric/vue.js +6 -1
- package/option/index.js +1 -2
- package/option/vue.js +7 -1
- package/package.json +1 -1
- package/pager/index.js +358 -0
- package/pager/vue.js +114 -2
- package/picker/index.js +1 -1
- package/pop-upload/index.js +0 -2
- package/pop-upload/vue.js +0 -4
- package/pull-refresh/index.js +55 -63
- package/pull-refresh/vue.js +20 -7
- package/select/index.js +11 -3
- package/select/vue.js +5 -4
- package/slider/index.js +27 -3
- package/slider/vue.js +26 -6
- package/tag/vue.js +5 -1
- package/tall-storage/index.js +4 -5
- package/types/action-menu.type.d.ts +5 -0
- package/types/alert.type.d.ts +16 -1
- package/types/button.type.d.ts +1 -0
- package/types/checkbox.type.d.ts +3 -0
- package/types/date-picker.type.d.ts +1 -1
- package/types/{dropdown-item.type-bf83e929.d.ts → dropdown-item.type-8ea6c633.d.ts} +1 -1
- package/types/dropdown-item.type.d.ts +1 -1
- package/types/dropdown-menu.type.d.ts +1 -1
- package/types/dropdown.type.d.ts +1 -0
- package/types/input.type.d.ts +21 -3
- package/types/label.type.d.ts +81 -0
- package/types/numeric.type.d.ts +1 -1
- package/types/pager.type.d.ts +159 -1
- package/types/slider.type.d.ts +8 -0
- package/types/tab-item.type.d.ts +0 -1
- package/types/tag.type.d.ts +12 -0
package/types/dropdown.type.d.ts
CHANGED
package/types/input.type.d.ts
CHANGED
|
@@ -63,6 +63,10 @@ declare const inputProps: {
|
|
|
63
63
|
type: StringConstructor;
|
|
64
64
|
default: string;
|
|
65
65
|
};
|
|
66
|
+
memorySpace: {
|
|
67
|
+
type: NumberConstructor;
|
|
68
|
+
default: number;
|
|
69
|
+
};
|
|
66
70
|
vertical: {
|
|
67
71
|
type: BooleanConstructor;
|
|
68
72
|
default: boolean;
|
|
@@ -114,7 +118,7 @@ declare const inputProps: {
|
|
|
114
118
|
type: BooleanConstructor;
|
|
115
119
|
default: boolean;
|
|
116
120
|
};
|
|
117
|
-
|
|
121
|
+
tips: StringConstructor;
|
|
118
122
|
counter: {
|
|
119
123
|
type: BooleanConstructor;
|
|
120
124
|
default: boolean;
|
|
@@ -171,6 +175,13 @@ declare const inputProps: {
|
|
|
171
175
|
type: BooleanConstructor;
|
|
172
176
|
default: boolean;
|
|
173
177
|
};
|
|
178
|
+
textAlign: {
|
|
179
|
+
type: StringConstructor;
|
|
180
|
+
default: string;
|
|
181
|
+
};
|
|
182
|
+
width: {
|
|
183
|
+
type: PropType<string | number | null>;
|
|
184
|
+
};
|
|
174
185
|
tiny_mode: StringConstructor;
|
|
175
186
|
tiny_mode_root: BooleanConstructor;
|
|
176
187
|
tiny_template: (FunctionConstructor | ObjectConstructor)[];
|
|
@@ -209,6 +220,11 @@ declare const _default: ({ api, props, reactive, toRefs }: {
|
|
|
209
220
|
*
|
|
210
221
|
*/
|
|
211
222
|
|
|
223
|
+
declare const inputStyle: ({ props }: {
|
|
224
|
+
props: any;
|
|
225
|
+
}) => () => {
|
|
226
|
+
textAlign: any;
|
|
227
|
+
};
|
|
212
228
|
declare const calculateNodeStyling: () => (targetElement: HTMLElement) => {
|
|
213
229
|
contextStyle: string;
|
|
214
230
|
paddingSize: number;
|
|
@@ -221,7 +237,7 @@ declare const calcTextareaHeight: ({ api, hiddenTextarea, props, state }: Pick<I
|
|
|
221
237
|
minHeight?: string | undefined;
|
|
222
238
|
height?: string | undefined;
|
|
223
239
|
};
|
|
224
|
-
declare const getInput: (
|
|
240
|
+
declare const getInput: (vm: IInputRenderlessParamUtils['vm']) => () => HTMLTextAreaElement | HTMLInputElement;
|
|
225
241
|
declare const focus: (api: IInputApi) => () => void;
|
|
226
242
|
declare const handleInput: ({ api, emit, nextTick, state }: Pick<IInputRenderlessParams, 'api' | 'emit' | 'nextTick' | 'state'>) => (event: Event) => void;
|
|
227
243
|
declare const resizeTextarea: ({ api, parent, refs, state }: Pick<IInputRenderlessParams, 'api' | 'parent' | 'refs' | 'state'>) => () => void;
|
|
@@ -243,7 +259,8 @@ interface IInputState {
|
|
|
243
259
|
passwordVisible: boolean;
|
|
244
260
|
boxVisibility: boolean;
|
|
245
261
|
textareaCalcStyle: object;
|
|
246
|
-
|
|
262
|
+
checkedLabel: string;
|
|
263
|
+
width: string;
|
|
247
264
|
sheetvalue: string | number | undefined;
|
|
248
265
|
inputSize: ComputedRef<string>;
|
|
249
266
|
showClear: ComputedRef<boolean>;
|
|
@@ -284,6 +301,7 @@ interface IInputApi extends Pick<IInputRenderlessParamUtils, 'dispatch'> {
|
|
|
284
301
|
calcIconOffset: ReturnType<typeof calcIconOffset>;
|
|
285
302
|
focus: ReturnType<typeof focus>;
|
|
286
303
|
getDisplayedValue: ReturnType<typeof getDisplayedValue>;
|
|
304
|
+
inputStyle: ReturnType<typeof inputStyle>;
|
|
287
305
|
}
|
|
288
306
|
type IInputRenderlessParams = ISharedRenderlessFunctionParams<IInputConstants> & {
|
|
289
307
|
state: IInputState;
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { ExtractPropTypes, ComputedRef } from 'vue';
|
|
2
|
+
import { ISharedRenderlessFunctionParams, ISharedRenderlessParamUtils } from './shared.type.js';
|
|
3
|
+
|
|
4
|
+
declare const labelProps: {
|
|
5
|
+
label: {
|
|
6
|
+
type: StringConstructor;
|
|
7
|
+
default: string;
|
|
8
|
+
};
|
|
9
|
+
color: {
|
|
10
|
+
type: StringConstructor;
|
|
11
|
+
default: string;
|
|
12
|
+
};
|
|
13
|
+
size: {
|
|
14
|
+
type: StringConstructor;
|
|
15
|
+
default: string;
|
|
16
|
+
};
|
|
17
|
+
type: {
|
|
18
|
+
type: StringConstructor;
|
|
19
|
+
default: string;
|
|
20
|
+
};
|
|
21
|
+
wholeline: {
|
|
22
|
+
type: BooleanConstructor;
|
|
23
|
+
default: boolean;
|
|
24
|
+
};
|
|
25
|
+
position: {
|
|
26
|
+
type: StringConstructor;
|
|
27
|
+
default: string;
|
|
28
|
+
};
|
|
29
|
+
ellipsis: {
|
|
30
|
+
type: NumberConstructor;
|
|
31
|
+
default: number;
|
|
32
|
+
};
|
|
33
|
+
decimal: {
|
|
34
|
+
type: NumberConstructor;
|
|
35
|
+
default: number;
|
|
36
|
+
};
|
|
37
|
+
limit: {
|
|
38
|
+
type: NumberConstructor;
|
|
39
|
+
default: number;
|
|
40
|
+
};
|
|
41
|
+
isRequired: {
|
|
42
|
+
type: BooleanConstructor;
|
|
43
|
+
default: boolean;
|
|
44
|
+
};
|
|
45
|
+
bold: {
|
|
46
|
+
type: BooleanConstructor;
|
|
47
|
+
default: boolean;
|
|
48
|
+
};
|
|
49
|
+
tiny_mode: StringConstructor;
|
|
50
|
+
tiny_mode_root: BooleanConstructor;
|
|
51
|
+
tiny_template: (FunctionConstructor | ObjectConstructor)[];
|
|
52
|
+
tiny_renderless: FunctionConstructor;
|
|
53
|
+
tiny_theme: StringConstructor;
|
|
54
|
+
tiny_chart_theme: ObjectConstructor;
|
|
55
|
+
};
|
|
56
|
+
|
|
57
|
+
type ILabelProps = ExtractPropTypes<typeof labelProps>;
|
|
58
|
+
interface ILabelState {
|
|
59
|
+
label: ComputedRef<string>;
|
|
60
|
+
type: ComputedRef<string>;
|
|
61
|
+
color: ComputedRef<string>;
|
|
62
|
+
size: ComputedRef<string>;
|
|
63
|
+
labelStyle: ComputedRef<object>;
|
|
64
|
+
labelClass: ComputedRef<string>;
|
|
65
|
+
isRequired: ComputedRef<boolean>;
|
|
66
|
+
}
|
|
67
|
+
interface ILabelApi {
|
|
68
|
+
state: ILabelState;
|
|
69
|
+
handleClick: (event: MouseEvent) => void;
|
|
70
|
+
computeLabel: () => string;
|
|
71
|
+
computeLabelStyle: () => object;
|
|
72
|
+
computeLabelClass: () => [];
|
|
73
|
+
}
|
|
74
|
+
type ILabelRenderlessParams = ISharedRenderlessFunctionParams<never> & {
|
|
75
|
+
api: ILabelApi;
|
|
76
|
+
state: ILabelState;
|
|
77
|
+
props: ILabelProps;
|
|
78
|
+
};
|
|
79
|
+
type ILabelRenderlessParamUtils = ISharedRenderlessParamUtils<never>;
|
|
80
|
+
|
|
81
|
+
export { ILabelApi, ILabelProps, ILabelRenderlessParamUtils, ILabelRenderlessParams, ILabelState };
|
package/types/numeric.type.d.ts
CHANGED
|
@@ -186,7 +186,7 @@ declare const handleFocus: ({ emit, state, props, api, refs }: Pick<INumericRend
|
|
|
186
186
|
declare const focus: (refs: INumericRenderlessParams['refs']) => () => void;
|
|
187
187
|
declare const setCurrentValue: ({ api, constants, dispatch, emit, props, state }: Pick<INumericRenderlessParams, 'api' | 'constants' | 'dispatch' | 'emit' | 'props' | 'state'>) => (newVal: number) => void;
|
|
188
188
|
declare const handleInput: ({ state, api, emit, props }: Pick<INumericRenderlessParams, 'state' | 'api' | 'emit' | 'props'>) => (event: InputEvent) => void;
|
|
189
|
-
declare const handleInputChange: ({ api }: Pick<INumericRenderlessParams, 'api'>) => (event: Event) => void;
|
|
189
|
+
declare const handleInputChange: ({ api, state, props }: Pick<INumericRenderlessParams, 'api' | 'state' | 'props'>) => (event: Event) => void;
|
|
190
190
|
declare const select: (refs: INumericRenderlessParams['refs']) => () => any;
|
|
191
191
|
declare const mounted: ({ constants, parent, props, state }: Pick<INumericRenderlessParams, 'constants' | 'parent' | 'props' | 'state'>) => () => void;
|
|
192
192
|
declare const unmounted: ({ parent, state }: Pick<INumericRenderlessParams, 'parent' | 'state'>) => () => void;
|
package/types/pager.type.d.ts
CHANGED
|
@@ -1,2 +1,160 @@
|
|
|
1
|
+
import { PropType, ExtractPropTypes } from 'vue';
|
|
2
|
+
import { ISharedRenderlessFunctionParams, ISharedRenderlessParamUtils } from './shared.type.js';
|
|
1
3
|
|
|
2
|
-
|
|
4
|
+
declare const pagerProps: {
|
|
5
|
+
accurateJumper: {
|
|
6
|
+
type: BooleanConstructor;
|
|
7
|
+
default: () => boolean;
|
|
8
|
+
};
|
|
9
|
+
appendToBody: {
|
|
10
|
+
type: BooleanConstructor;
|
|
11
|
+
default: () => boolean;
|
|
12
|
+
};
|
|
13
|
+
currentPage: {
|
|
14
|
+
type: NumberConstructor;
|
|
15
|
+
default: () => number;
|
|
16
|
+
};
|
|
17
|
+
disabled: {
|
|
18
|
+
type: BooleanConstructor;
|
|
19
|
+
default: () => boolean;
|
|
20
|
+
};
|
|
21
|
+
hideOnSinglePage: BooleanConstructor;
|
|
22
|
+
isBeforePageChange: BooleanConstructor;
|
|
23
|
+
layout: StringConstructor;
|
|
24
|
+
mode: StringConstructor;
|
|
25
|
+
nextText: StringConstructor;
|
|
26
|
+
pageCount: NumberConstructor;
|
|
27
|
+
pageSize: {
|
|
28
|
+
type: NumberConstructor;
|
|
29
|
+
default: () => number;
|
|
30
|
+
};
|
|
31
|
+
pageSizes: {
|
|
32
|
+
type: PropType<number[]>;
|
|
33
|
+
default: () => number[];
|
|
34
|
+
};
|
|
35
|
+
pagerCount: {
|
|
36
|
+
type: NumberConstructor;
|
|
37
|
+
validator: (value: any) => boolean;
|
|
38
|
+
default: () => number;
|
|
39
|
+
};
|
|
40
|
+
popperAppendToBody: {
|
|
41
|
+
type: BooleanConstructor;
|
|
42
|
+
default: () => boolean;
|
|
43
|
+
};
|
|
44
|
+
showTotalLoading: {
|
|
45
|
+
type: BooleanConstructor;
|
|
46
|
+
default: () => boolean;
|
|
47
|
+
};
|
|
48
|
+
customTotal: {
|
|
49
|
+
type: (StringConstructor | BooleanConstructor)[];
|
|
50
|
+
default: () => boolean;
|
|
51
|
+
};
|
|
52
|
+
popperClass: StringConstructor;
|
|
53
|
+
prevText: StringConstructor;
|
|
54
|
+
total: NumberConstructor;
|
|
55
|
+
size: {
|
|
56
|
+
type: StringConstructor;
|
|
57
|
+
default: string;
|
|
58
|
+
};
|
|
59
|
+
align: {
|
|
60
|
+
type: StringConstructor;
|
|
61
|
+
validator: (value: any) => boolean;
|
|
62
|
+
};
|
|
63
|
+
tiny_mode: StringConstructor;
|
|
64
|
+
tiny_mode_root: BooleanConstructor;
|
|
65
|
+
tiny_template: (FunctionConstructor | ObjectConstructor)[];
|
|
66
|
+
tiny_renderless: FunctionConstructor;
|
|
67
|
+
tiny_theme: StringConstructor;
|
|
68
|
+
tiny_chart_theme: ObjectConstructor;
|
|
69
|
+
};
|
|
70
|
+
|
|
71
|
+
declare const computedShowPager: ({ props, state }: Pick<IPagerRenderlessParams, 'props' | 'state'>) => () => boolean;
|
|
72
|
+
declare const computedInternalLayout: ({ props }: Pick<IPagerRenderlessParams, 'props'>) => () => string[];
|
|
73
|
+
declare const computedTotalText: ({ props, t }: Pick<IPagerRenderlessParams, 'props' | 't'>) => () => string;
|
|
74
|
+
declare const computedInternalPageCount: ({ props, state }: Pick<IPagerRenderlessParams, 'props' | 'state'>) => () => number | null;
|
|
75
|
+
declare const handleJumperFocus: ({ state }: Pick<IPagerRenderlessParams, 'state'>) => (e: Event) => void;
|
|
76
|
+
declare const watchInternalCurrentPage: ({ state, emit }: Pick<IPagerRenderlessParams, 'state' | 'emit'>) => (currentPage: number) => void;
|
|
77
|
+
declare const watchPageSizes: ({ state, props }: Pick<IPagerRenderlessParams, 'props' | 'state'>) => (newVal: number[]) => void;
|
|
78
|
+
declare const watchCurrentPage: ({ state, api }: Pick<IPagerRenderlessParams, 'api' | 'state'>) => (curPage: number) => void;
|
|
79
|
+
declare const watchInternalPageCount: ({ state, api }: Pick<IPagerRenderlessParams, 'api' | 'state'>) => (pageCount: number | null) => void;
|
|
80
|
+
declare const watchPageSize: ({ state }: Pick<IPagerRenderlessParams, 'state'>) => (pageSize: number) => void;
|
|
81
|
+
declare const watchTotal: ({ state }: Pick<IPagerRenderlessParams, 'state'>) => (total: number | undefined) => void;
|
|
82
|
+
declare const handleSizeChange: ({ props, state, api, emit, vm }: Pick<IPagerRenderlessParams, 'props' | 'state' | 'api' | 'emit' | 'vm'>) => (val: number) => void;
|
|
83
|
+
declare const handleJumperInput: ({ state }: Pick<IPagerRenderlessParams, 'state'>) => (e: Event) => void;
|
|
84
|
+
declare const handleJumperChange: ({ props, state, api }: Pick<IPagerRenderlessParams, 'props' | 'state' | 'api'>) => () => void;
|
|
85
|
+
declare const handleJumperClick: ({ props, state, api }: Pick<IPagerRenderlessParams, 'props' | 'state' | 'api'>) => () => void;
|
|
86
|
+
declare const isValueNumber: ({ state }: Pick<IPagerRenderlessParams, 'state'>) => () => boolean;
|
|
87
|
+
declare const parseValueNumber: ({ state }: Pick<IPagerRenderlessParams, 'state'>) => () => void;
|
|
88
|
+
declare const handleSizeShowPopover: ({ state, props }: Pick<IPagerRenderlessParams, 'props' | 'state'>) => () => void;
|
|
89
|
+
declare const handleSizeHidePopover: ({ state }: Pick<IPagerRenderlessParams, 'state'>) => () => void;
|
|
90
|
+
declare const canJumperGo: ({ props, state, vm }: Pick<IPagerRenderlessParams, 'props' | 'state' | 'vm'>) => () => boolean;
|
|
91
|
+
declare const beforeSizeChangeHandler: ({ state, emit }: Pick<IPagerRenderlessParams, 'emit' | 'state'>) => (params: any) => void;
|
|
92
|
+
declare const beforePagerChangeHandler: ({ state, emit }: Pick<IPagerRenderlessParams, 'emit' | 'state'>) => (params: any) => void;
|
|
93
|
+
declare const copyEmit: ({ emit }: Pick<IPagerRenderlessParams, 'emit'>) => (...args: any[]) => void;
|
|
94
|
+
declare const beforeChangeHandler: ({ state, api }: Pick<IPagerRenderlessParams, 'api' | 'state'>) => (val?: number) => boolean;
|
|
95
|
+
declare const handleCurrentChange: ({ state, api }: Pick<IPagerRenderlessParams, 'api' | 'state'>) => (val: number) => void;
|
|
96
|
+
declare const prev: ({ state, props, api, emit }: Pick<IPagerRenderlessParams, 'props' | 'state' | 'api' | 'emit'>) => () => void;
|
|
97
|
+
declare const next: ({ props, state, api, emit }: Pick<IPagerRenderlessParams, 'props' | 'state' | 'api' | 'emit'>) => () => void;
|
|
98
|
+
declare const buildBeforePageChangeParam: ({ state }: Pick<IPagerRenderlessParams, 'state'>) => (param: any) => any;
|
|
99
|
+
declare const getValidCurrentPage: ({ state }: Pick<IPagerRenderlessParams, 'state'>) => (val: string | number) => any;
|
|
100
|
+
declare const emitChange: ({ state, nextTick, emit }: Pick<IPagerRenderlessParams, 'emit' | 'state' | 'nextTick'>) => () => void;
|
|
101
|
+
declare const setTotal: ({ state }: Pick<IPagerRenderlessParams, 'state'>) => (val: number) => void;
|
|
102
|
+
|
|
103
|
+
type IPagerProps = ExtractPropTypes<typeof pagerProps>;
|
|
104
|
+
interface IPagerState {
|
|
105
|
+
showPager: boolean;
|
|
106
|
+
showSizes: boolean;
|
|
107
|
+
internalCurrentPage: number;
|
|
108
|
+
internalPageSize: number;
|
|
109
|
+
lastEmittedPage: number;
|
|
110
|
+
userChangePageSize: boolean;
|
|
111
|
+
internalTotal: number | undefined;
|
|
112
|
+
jumperValue: string;
|
|
113
|
+
jumperBackup: string;
|
|
114
|
+
internalLayout: string[];
|
|
115
|
+
totalText: string;
|
|
116
|
+
internalPageCount: number | null;
|
|
117
|
+
}
|
|
118
|
+
interface IPagerApi {
|
|
119
|
+
state: IPagerState;
|
|
120
|
+
t: IPagerRenderlessParamUtils['t'];
|
|
121
|
+
computedShowPager: ReturnType<typeof computedShowPager>;
|
|
122
|
+
computedInternalLayout: ReturnType<typeof computedInternalLayout>;
|
|
123
|
+
computedTotalText: ReturnType<typeof computedTotalText>;
|
|
124
|
+
computedInternalPageCount: ReturnType<typeof computedInternalPageCount>;
|
|
125
|
+
handleJumperFocus: ReturnType<typeof handleJumperFocus>;
|
|
126
|
+
handleSizeChange: ReturnType<typeof handleSizeChange>;
|
|
127
|
+
handleJumperInput: ReturnType<typeof handleJumperInput>;
|
|
128
|
+
handleJumperChange: ReturnType<typeof handleJumperChange>;
|
|
129
|
+
handleJumperClick: ReturnType<typeof handleJumperClick>;
|
|
130
|
+
isValueNumber: ReturnType<typeof isValueNumber>;
|
|
131
|
+
parseValueNumber: ReturnType<typeof parseValueNumber>;
|
|
132
|
+
handleSizeShowPopover: ReturnType<typeof handleSizeShowPopover>;
|
|
133
|
+
handleSizeHidePopover: ReturnType<typeof handleSizeHidePopover>;
|
|
134
|
+
canJumperGo: ReturnType<typeof canJumperGo>;
|
|
135
|
+
beforeSizeChangeHandler: ReturnType<typeof beforeSizeChangeHandler>;
|
|
136
|
+
beforePagerChangeHandler: ReturnType<typeof beforePagerChangeHandler>;
|
|
137
|
+
copyEmit: ReturnType<typeof copyEmit>;
|
|
138
|
+
beforeChangeHandler: ReturnType<typeof beforeChangeHandler>;
|
|
139
|
+
handleCurrentChange: ReturnType<typeof handleCurrentChange>;
|
|
140
|
+
prev: ReturnType<typeof prev>;
|
|
141
|
+
next: ReturnType<typeof next>;
|
|
142
|
+
buildBeforePageChangeParam: ReturnType<typeof buildBeforePageChangeParam>;
|
|
143
|
+
getValidCurrentPage: ReturnType<typeof getValidCurrentPage>;
|
|
144
|
+
emitChange: ReturnType<typeof emitChange>;
|
|
145
|
+
setTotal: ReturnType<typeof setTotal>;
|
|
146
|
+
watchInternalCurrentPage: ReturnType<typeof watchInternalCurrentPage>;
|
|
147
|
+
watchPageSizes: ReturnType<typeof watchPageSizes>;
|
|
148
|
+
watchCurrentPage: ReturnType<typeof watchCurrentPage>;
|
|
149
|
+
watchInternalPageCount: ReturnType<typeof watchInternalPageCount>;
|
|
150
|
+
watchPageSize: ReturnType<typeof watchPageSize>;
|
|
151
|
+
watchTotal: ReturnType<typeof watchTotal>;
|
|
152
|
+
}
|
|
153
|
+
type IPagerRenderlessParams = ISharedRenderlessFunctionParams<never> & {
|
|
154
|
+
api: IPagerApi;
|
|
155
|
+
state: IPagerState;
|
|
156
|
+
props: IPagerProps;
|
|
157
|
+
};
|
|
158
|
+
type IPagerRenderlessParamUtils = ISharedRenderlessParamUtils<never>;
|
|
159
|
+
|
|
160
|
+
export { IPagerApi, IPagerProps, IPagerRenderlessParamUtils, IPagerRenderlessParams, IPagerState };
|
package/types/slider.type.d.ts
CHANGED
|
@@ -148,6 +148,7 @@ interface ISliderState {
|
|
|
148
148
|
leftBtnStyle: string;
|
|
149
149
|
leftBtnPercent: number;
|
|
150
150
|
leftBtnShow: true;
|
|
151
|
+
mouseOuterBtn: boolean;
|
|
151
152
|
rightBtnStyle: string;
|
|
152
153
|
rightBtnPercent: number;
|
|
153
154
|
rightBtnShow: boolean;
|
|
@@ -156,6 +157,10 @@ interface ISliderState {
|
|
|
156
157
|
tipValue: ComputedRef<string>;
|
|
157
158
|
formDisabled: ComputedRef<boolean>;
|
|
158
159
|
disabled: ComputedRef<boolean>;
|
|
160
|
+
/** 使用这个值作为插槽中输入的值,而不是直接用activeValue,来实现在输入时不会被max min属性计算而改变 */
|
|
161
|
+
slotValue: number;
|
|
162
|
+
/** 是否正在输入 */
|
|
163
|
+
isSlotTyping: boolean;
|
|
159
164
|
}
|
|
160
165
|
interface ISliderApi {
|
|
161
166
|
state: ISliderState;
|
|
@@ -186,6 +191,9 @@ interface ISliderApi {
|
|
|
186
191
|
getPoints: () => void;
|
|
187
192
|
getLabels: () => void;
|
|
188
193
|
inputValueChange: () => void;
|
|
194
|
+
handleSlotInputFocus: () => void;
|
|
195
|
+
handleSlotInputBlur: () => void;
|
|
196
|
+
handleSlotInput: (event: Event) => void;
|
|
189
197
|
}
|
|
190
198
|
type ISliderRenderlessParams = ISharedRenderlessFunctionParams<ISliderConstants> & {
|
|
191
199
|
state: ISliderState;
|
package/types/tab-item.type.d.ts
CHANGED
package/types/tag.type.d.ts
CHANGED
|
@@ -23,6 +23,14 @@ declare const tagProps: {
|
|
|
23
23
|
};
|
|
24
24
|
beforeDelete: FunctionConstructor;
|
|
25
25
|
value: (StringConstructor | NumberConstructor)[];
|
|
26
|
+
mini: {
|
|
27
|
+
type: BooleanConstructor;
|
|
28
|
+
default: boolean;
|
|
29
|
+
};
|
|
30
|
+
maxWidth: {
|
|
31
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
32
|
+
default: null;
|
|
33
|
+
};
|
|
26
34
|
tiny_mode: StringConstructor;
|
|
27
35
|
tiny_mode_root: BooleanConstructor;
|
|
28
36
|
tiny_template: (FunctionConstructor | ObjectConstructor)[];
|
|
@@ -35,6 +43,10 @@ interface ITagState {
|
|
|
35
43
|
type: string | undefined;
|
|
36
44
|
show: boolean;
|
|
37
45
|
selected: boolean;
|
|
46
|
+
text: string;
|
|
47
|
+
color: string;
|
|
48
|
+
mini: boolean;
|
|
49
|
+
maxWidth: string | number;
|
|
38
50
|
}
|
|
39
51
|
interface ITagApi {
|
|
40
52
|
state: ITagState;
|