@opentiny/vue-renderless 3.18.6 → 3.19.0
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/action-menu/index.js +2 -2
- package/action-menu/vue.js +2 -2
- package/anchor/index.js +8 -6
- package/anchor/vue.js +1 -1
- package/badge/index.js +4 -3
- package/base-select/index.js +3 -3
- package/breadcrumb-item/vue.js +1 -1
- package/bulletin-board/index.js +1 -1
- package/button/index.js +1 -1
- package/button-group/index.js +6 -1
- package/carousel-item/index.js +1 -1
- package/cascader/vue.js +17 -4
- package/chart-core/deps/utils.js +1 -1
- package/checkbox/index.js +1 -1
- package/common/deps/dom.js +9 -1
- package/common/deps/useWindowSize.js +23 -0
- package/common/deps/vue-popper.js +1 -1
- package/common/index.js +2 -2
- package/common/prop-util.js +43 -0
- package/common/runtime.js +1 -1
- package/crop/index.js +14 -22
- package/crop/vue.js +33 -29
- package/date-panel/index.js +13 -2
- package/date-panel/vue.js +16 -10
- package/dialog-select/index.js +78 -0
- package/dialog-select/vue.js +28 -6
- package/drawer/index.js +14 -1
- package/drawer/vue.js +4 -3
- package/dropdown-item/index.js +2 -2
- package/dropdown-item/vue.js +9 -6
- package/espace/index.js +1 -1
- package/fall-menu/index.js +5 -1
- package/fall-menu/vue.js +15 -2
- package/filter-box/vue.js +5 -2
- package/floatbar/index.js +1 -1
- package/form/index.js +7 -4
- package/form/vue.js +1 -1
- package/grid/plugins/export.js +1 -1
- package/grid/utils/dom.js +3 -1
- package/guide/index.js +17 -2
- package/guide/vue.js +5 -3
- package/image-viewer/vue.js +1 -1
- package/input/index.js +6 -7
- package/input/vue.js +10 -11
- package/ip-address/index.js +0 -10
- package/ip-address/vue.js +2 -5
- package/load-list/index.js +43 -0
- package/load-list/vue.js +69 -0
- package/locales/index.js +1 -5
- package/logout/index.js +1 -1
- package/milestone/index.js +55 -8
- package/milestone/vue.js +16 -3
- package/modal/index.js +6 -6
- package/modal/vue.js +4 -3
- package/nav-menu/index.js +1 -1
- package/package.json +1 -1
- package/pager/index.js +25 -0
- package/pager/vue.js +18 -4
- package/picker/index.js +3 -3
- package/picker/vue.js +1 -1
- package/popeditor/index.js +12 -1
- package/popeditor/vue.js +9 -5
- package/rich-text/table-module.js +4 -3
- package/roles/index.js +1 -1
- package/select/index.js +6 -6
- package/select/vue.js +2 -1
- package/selected-box/vue.js +2 -1
- package/slider/index.js +2 -2
- package/slider-button-group/vue.js +3 -2
- package/split/vue.js +4 -2
- package/sticky/index.js +89 -0
- package/sticky/vue.js +74 -0
- package/tabbar-item/vue.js +1 -1
- package/tall-storage/index.js +1 -1
- package/time/vue.js +2 -1
- package/time-range/vue.js +4 -1
- package/time-spinner/index.js +4 -1
- package/toggle-menu/index.js +1 -1
- package/transfer-panel/vue.js +7 -6
- package/tree/index.js +17 -7
- package/tree/vue.js +10 -6
- package/tree-node/index.js +2 -2
- package/tree-node/vue.js +6 -2
- package/types/action-menu.type.d.ts +1 -1
- package/types/alert.type.d.ts +2 -0
- package/types/anchor.type.d.ts +5 -1
- package/types/badge.type.d.ts +1 -1
- package/types/button-group.type.d.ts +3 -0
- package/types/button.type.d.ts +1 -1
- package/types/date-picker.type.d.ts +3 -0
- package/types/drawer.type.d.ts +5 -1
- package/types/{dropdown-item.type-16d59fd0.d.ts → dropdown-item.type-c9badbc1.d.ts} +2 -2
- package/types/dropdown-item.type.d.ts +1 -1
- package/types/dropdown-menu.type.d.ts +1 -1
- package/types/fall-menu.type.d.ts +1 -0
- package/types/file-upload.type.d.ts +1 -1
- package/types/image.type.d.ts +4 -0
- package/types/input.type.d.ts +8 -4
- package/types/load-list.type.d.ts +58 -0
- package/types/milestone.type.d.ts +27 -1
- package/types/modal.type.d.ts +3 -2
- package/types/pager.type.d.ts +5 -1
- package/types/picker.type.d.ts +3 -0
- package/types/popover.type.d.ts +1 -1
- package/types/search.type.d.ts +0 -3
- package/types/steps.type.d.ts +1 -0
- package/types/tag.type.d.ts +1 -0
- package/types/tooltip.type.d.ts +3 -0
- package/types/transfer.type.d.ts +3 -3
- package/types/tree-menu.type.d.ts +8 -0
- package/types/upload-dragger.type.d.ts +1 -1
- package/types/{upload-list.type-4194f534.d.ts → upload-list.type-26173587.d.ts} +11 -3
- package/types/upload-list.type.d.ts +1 -1
- package/types/upload.type.d.ts +1 -1
- package/types/user-contact.type.d.ts +127 -1
- package/types/user-head.type.d.ts +1 -4
- package/upload-list/vue.js +7 -7
- package/virtual-scroll-box/index.js +294 -0
- package/virtual-scroll-box/vue.js +43 -0
- package/virtual-tree/index.js +168 -0
- package/virtual-tree/vue.js +53 -0
|
@@ -57,6 +57,9 @@ type IButtonGroupProps = ExtractPropTypes<typeof buttonGroupProps>;
|
|
|
57
57
|
interface IButtonGroupItemClass {
|
|
58
58
|
disabled?: boolean;
|
|
59
59
|
plain?: boolean;
|
|
60
|
+
medium?: boolean;
|
|
61
|
+
small?: boolean;
|
|
62
|
+
mini?: boolean;
|
|
60
63
|
}
|
|
61
64
|
interface IButtonGroupNode {
|
|
62
65
|
text?: string;
|
package/types/button.type.d.ts
CHANGED
|
@@ -75,7 +75,7 @@ declare const buttonProps: {
|
|
|
75
75
|
tiny_mode_root: BooleanConstructor;
|
|
76
76
|
tiny_template: (FunctionConstructor | ObjectConstructor)[];
|
|
77
77
|
tiny_renderless: FunctionConstructor;
|
|
78
|
-
tiny_theme: StringConstructor;
|
|
78
|
+
tiny_theme: StringConstructor;
|
|
79
79
|
tiny_chart_theme: ObjectConstructor;
|
|
80
80
|
};
|
|
81
81
|
|
|
@@ -191,6 +191,9 @@ declare const datePickerProps: {
|
|
|
191
191
|
type: BooleanConstructor;
|
|
192
192
|
default: boolean;
|
|
193
193
|
};
|
|
194
|
+
nowClick: {
|
|
195
|
+
type: FunctionConstructor;
|
|
196
|
+
};
|
|
194
197
|
tiny_mode: StringConstructor;
|
|
195
198
|
tiny_mode_root: BooleanConstructor;
|
|
196
199
|
tiny_template: (FunctionConstructor | ObjectConstructor)[];
|
package/types/drawer.type.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ import { ISharedRenderlessParamUtils, ISharedRenderlessFunctionParams } from './
|
|
|
4
4
|
declare const $constants: {
|
|
5
5
|
SCROLL_LOCK_CLASS(mode: string): string;
|
|
6
6
|
DEFAULT_WIDTH: string;
|
|
7
|
+
DEFAULT_HEIGHT: string;
|
|
7
8
|
};
|
|
8
9
|
declare const drawerProps: {
|
|
9
10
|
_constants: {
|
|
@@ -11,6 +12,7 @@ declare const drawerProps: {
|
|
|
11
12
|
default: () => {
|
|
12
13
|
SCROLL_LOCK_CLASS(mode: string): string;
|
|
13
14
|
DEFAULT_WIDTH: string;
|
|
15
|
+
DEFAULT_HEIGHT: string;
|
|
14
16
|
};
|
|
15
17
|
};
|
|
16
18
|
visible: {
|
|
@@ -25,6 +27,9 @@ declare const drawerProps: {
|
|
|
25
27
|
width: {
|
|
26
28
|
type: StringConstructor;
|
|
27
29
|
};
|
|
30
|
+
height: {
|
|
31
|
+
type: StringConstructor;
|
|
32
|
+
};
|
|
28
33
|
title: StringConstructor;
|
|
29
34
|
showClose: {
|
|
30
35
|
type: BooleanConstructor;
|
|
@@ -111,7 +116,6 @@ interface IDrawerState {
|
|
|
111
116
|
offsetHeight: number;
|
|
112
117
|
};
|
|
113
118
|
computedWidth: string;
|
|
114
|
-
btnOrderReversed: boolean;
|
|
115
119
|
}
|
|
116
120
|
type IDrawerProps = ExtractPropTypes<typeof drawerProps>;
|
|
117
121
|
interface IDrawerApi {
|
|
@@ -250,7 +250,7 @@ declare const reset: ({ emit, props }: Pick<IDropdownItemRenderlessParams, 'emit
|
|
|
250
250
|
declare const clickOutside: (parent: IDropdownItemRenderlessParams['parent']) => () => void;
|
|
251
251
|
declare const handleClick: ({ state, props, dispatch, vm, emit }: Pick<IDropdownItemRenderlessParams, 'state' | 'props' | 'dispatch' | 'vm' | 'emit'>) => (event: MouseEvent) => void;
|
|
252
252
|
declare const computedGetIcon: ({ constants, designConfig }: Pick<IDropdownItemRenderlessParams, 'constants' | 'designConfig'>) => (name?: string) => object | string;
|
|
253
|
-
declare const
|
|
253
|
+
declare const computedTip: ({ props, vm }: Pick<IDropdownItemRenderlessParams, 'props' | 'vm'>) => string;
|
|
254
254
|
|
|
255
255
|
type IDropdownItemVm = ComponentPublicInstance & {
|
|
256
256
|
type: string;
|
|
@@ -300,7 +300,7 @@ interface IDropdownItemApi {
|
|
|
300
300
|
confirm: ReturnType<typeof confirm>;
|
|
301
301
|
handleClick: ReturnType<typeof handleClick>;
|
|
302
302
|
computedGetIcon: ReturnType<typeof computedGetIcon>;
|
|
303
|
-
|
|
303
|
+
computedTip: ReturnType<typeof computedTip>;
|
|
304
304
|
}
|
|
305
305
|
type IDropdownItemRenderlessParams = ISharedRenderlessFunctionParams<IDropdownItemConstants> & {
|
|
306
306
|
state: IDropdownItemState;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import 'vue';
|
|
2
|
-
export { k as IDropdownItemApi, i as IDropdownItemConstants, q as IDropdownItemMfDataStore, p as IDropdownItemOptionStyle, h as IDropdownItemProps, m as IDropdownItemRenderlessParamUtils, l as IDropdownItemRenderlessParams, j as IDropdownItemState, n as IDropdownItemStyle, o as IDropdownItemTag, g as IDropdownItemVm } from './dropdown-item.type-
|
|
2
|
+
export { k as IDropdownItemApi, i as IDropdownItemConstants, q as IDropdownItemMfDataStore, p as IDropdownItemOptionStyle, h as IDropdownItemProps, m as IDropdownItemRenderlessParamUtils, l as IDropdownItemRenderlessParams, j as IDropdownItemState, n as IDropdownItemStyle, o as IDropdownItemTag, g as IDropdownItemVm } from './dropdown-item.type-c9badbc1.js';
|
|
3
3
|
import './shared.type.js';
|
|
4
4
|
import './dropdown.type.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import 'vue';
|
|
2
|
-
export { b as IDropdownMenuApi, e as IDropdownMenuPopperParams, I as IDropdownMenuProps, d as IDropdownMenuRenderlessParamUtils, c as IDropdownMenuRenderlessParams, a as IDropdownMenuState, f as IDropdownMenuVm } from './dropdown-item.type-
|
|
2
|
+
export { b as IDropdownMenuApi, e as IDropdownMenuPopperParams, I as IDropdownMenuProps, d as IDropdownMenuRenderlessParamUtils, c as IDropdownMenuRenderlessParams, a as IDropdownMenuState, f as IDropdownMenuVm } from './dropdown-item.type-c9badbc1.js';
|
|
3
3
|
import './shared.type.js';
|
|
4
4
|
import './dropdown.type.js';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import 'vue';
|
|
2
|
-
export { C as IFileUploadAfterDownload, m as IFileUploadApi, D as IFileUploadBatchSegmentDownload, y as IFileUploadBatchSegmentUpload, a as IFileUploadConstants, w as IFileUploadDownloadFileInner, x as IFileUploadDownloadFileSingle, u as IFileUploadDownloadFileSingleInner, t as IFileUploadEdmDownload, s as IFileUploadFile, A as IFileUploadGetFormData, v as IFileUploadLargeDocumentDownload, r as IFileUploadModalVm, o as IFileUploadProps, p as IFileUploadRenderlessParamUtils, q as IFileUploadRenderlessParams, z as IFileUploadSegmentUploadInner, n as IFileUploadService, B as IFileUploadSetWriterFile, E as IFileUploadSliceDownloadChunk, l as IFileUploadState, F as IFileUploadStreamsaver, I as IFileUploadVm } from './upload-list.type-
|
|
2
|
+
export { C as IFileUploadAfterDownload, m as IFileUploadApi, D as IFileUploadBatchSegmentDownload, y as IFileUploadBatchSegmentUpload, a as IFileUploadConstants, w as IFileUploadDownloadFileInner, x as IFileUploadDownloadFileSingle, u as IFileUploadDownloadFileSingleInner, t as IFileUploadEdmDownload, s as IFileUploadFile, A as IFileUploadGetFormData, v as IFileUploadLargeDocumentDownload, r as IFileUploadModalVm, o as IFileUploadProps, p as IFileUploadRenderlessParamUtils, q as IFileUploadRenderlessParams, z as IFileUploadSegmentUploadInner, n as IFileUploadService, B as IFileUploadSetWriterFile, E as IFileUploadSliceDownloadChunk, l as IFileUploadState, F as IFileUploadStreamsaver, I as IFileUploadVm } from './upload-list.type-26173587.js';
|
|
3
3
|
import './shared.type.js';
|
package/types/image.type.d.ts
CHANGED
|
@@ -63,6 +63,10 @@ declare const imageProps: {
|
|
|
63
63
|
type: BooleanConstructor;
|
|
64
64
|
default: boolean;
|
|
65
65
|
};
|
|
66
|
+
appendToBody: {
|
|
67
|
+
type: BooleanConstructor;
|
|
68
|
+
default: boolean;
|
|
69
|
+
};
|
|
66
70
|
tiny_mode: StringConstructor;
|
|
67
71
|
tiny_mode_root: BooleanConstructor;
|
|
68
72
|
tiny_template: (FunctionConstructor | ObjectConstructor)[];
|
package/types/input.type.d.ts
CHANGED
|
@@ -192,6 +192,12 @@ declare const inputProps: {
|
|
|
192
192
|
type: BooleanConstructor;
|
|
193
193
|
default: boolean;
|
|
194
194
|
};
|
|
195
|
+
/** 输入框的边框模式,当值为underline时,只显示一条底部直线 */
|
|
196
|
+
inputBoxType: {
|
|
197
|
+
type: StringConstructor;
|
|
198
|
+
default: string;
|
|
199
|
+
validator: (value: string) => boolean;
|
|
200
|
+
};
|
|
195
201
|
tiny_mode: StringConstructor;
|
|
196
202
|
tiny_mode_root: BooleanConstructor;
|
|
197
203
|
tiny_template: (FunctionConstructor | ObjectConstructor)[];
|
|
@@ -241,7 +247,7 @@ declare const calculateNodeStyling: () => (targetElement: HTMLElement) => {
|
|
|
241
247
|
borderSize: number;
|
|
242
248
|
boxSizing: string;
|
|
243
249
|
};
|
|
244
|
-
declare const calcTextareaHeight: ({ api, hiddenTextarea, props, state, mode, constants }: Pick<IInputRenderlessParams, "
|
|
250
|
+
declare const calcTextareaHeight: ({ api, hiddenTextarea, props, state, mode, constants }: Pick<IInputRenderlessParams, "state" | "props" | "mode" | "api" | "constants"> & {
|
|
245
251
|
hiddenTextarea: HTMLTextAreaElement | null;
|
|
246
252
|
}) => (targetElement: HTMLTextAreaElement, minRows?: number, maxRows?: null) => {
|
|
247
253
|
minHeight?: string | undefined;
|
|
@@ -252,9 +258,7 @@ declare const focus: (api: IInputApi) => () => void;
|
|
|
252
258
|
declare const handleInput: ({ api, emit, nextTick, state }: Pick<IInputRenderlessParams, 'api' | 'emit' | 'nextTick' | 'state'>) => (event: Event) => void;
|
|
253
259
|
declare const resizeTextarea: ({ api, parent, vm, state, props }: Pick<IInputRenderlessParams, 'api' | 'parent' | 'vm' | 'state' | 'props'>) => () => void;
|
|
254
260
|
declare const setNativeInputValue: ({ api, state }: Pick<IInputRenderlessParams, 'api' | 'state'>) => () => void;
|
|
255
|
-
declare const calcIconOffset: ({
|
|
256
|
-
CLASS_PREFIX: IInputClassPrefixConstants;
|
|
257
|
-
}) => (place: 'prefix' | 'suffix') => void;
|
|
261
|
+
declare const calcIconOffset: ({ vm, parent }: Pick<IInputRenderlessParams, 'parent' | 'vm'>) => (place: 'prefix' | 'suffix') => void;
|
|
258
262
|
declare const updateIconOffset: (api: IInputApi) => () => void;
|
|
259
263
|
declare const watchFormSelect: ({ emit, props, state }: Pick<IInputRenderlessParams, 'emit' | 'props' | 'state'>) => (value: string | number | undefined) => void;
|
|
260
264
|
declare const hiddenPassword: ({ state, props }: Pick<IInputRenderlessParams, 'state' | 'props'>) => () => string;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { ExtractPropTypes } from 'vue';
|
|
2
|
+
import { ISharedRenderlessFunctionParams } from './shared.type.js';
|
|
3
|
+
|
|
4
|
+
declare const loadListProps: {
|
|
5
|
+
direction: {
|
|
6
|
+
type: StringConstructor;
|
|
7
|
+
default: string;
|
|
8
|
+
validator: (value: any) => boolean;
|
|
9
|
+
};
|
|
10
|
+
offset: {
|
|
11
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
12
|
+
default: number;
|
|
13
|
+
};
|
|
14
|
+
disabled: BooleanConstructor;
|
|
15
|
+
scroller: ObjectConstructor;
|
|
16
|
+
immediateCheck: {
|
|
17
|
+
type: BooleanConstructor;
|
|
18
|
+
default: boolean;
|
|
19
|
+
};
|
|
20
|
+
error: BooleanConstructor;
|
|
21
|
+
errorText: {
|
|
22
|
+
type: StringConstructor;
|
|
23
|
+
default: any;
|
|
24
|
+
};
|
|
25
|
+
loading: BooleanConstructor;
|
|
26
|
+
loadingText: {
|
|
27
|
+
type: StringConstructor;
|
|
28
|
+
default: any;
|
|
29
|
+
};
|
|
30
|
+
finished: BooleanConstructor;
|
|
31
|
+
finishedText: {
|
|
32
|
+
type: StringConstructor;
|
|
33
|
+
default: any;
|
|
34
|
+
};
|
|
35
|
+
delay: {
|
|
36
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
37
|
+
default: number;
|
|
38
|
+
};
|
|
39
|
+
tiny_mode: StringConstructor;
|
|
40
|
+
tiny_mode_root: BooleanConstructor;
|
|
41
|
+
tiny_template: (FunctionConstructor | ObjectConstructor)[];
|
|
42
|
+
tiny_renderless: FunctionConstructor;
|
|
43
|
+
tiny_theme: StringConstructor;
|
|
44
|
+
tiny_chart_theme: ObjectConstructor;
|
|
45
|
+
};
|
|
46
|
+
|
|
47
|
+
interface ILoadListState {
|
|
48
|
+
}
|
|
49
|
+
interface ILoadListApi {
|
|
50
|
+
}
|
|
51
|
+
type ILoadListProps = ExtractPropTypes<typeof loadListProps>;
|
|
52
|
+
type ILoadListRenderlessParams = ISharedRenderlessFunctionParams<never> & {
|
|
53
|
+
state: ILoadListState;
|
|
54
|
+
props: ILoadListProps;
|
|
55
|
+
api: ILoadListApi;
|
|
56
|
+
};
|
|
57
|
+
|
|
58
|
+
export { ILoadListApi, ILoadListProps, ILoadListRenderlessParams, ILoadListState };
|
|
@@ -6,6 +6,13 @@ declare const $constants: {
|
|
|
6
6
|
DEFAULT_BACK_COLOR: string;
|
|
7
7
|
BOX_SHADOW_PX: string;
|
|
8
8
|
FLAG_CONTENT_CLS: string;
|
|
9
|
+
STATUS_MAP: {
|
|
10
|
+
COMPLETED: string;
|
|
11
|
+
DOING: string;
|
|
12
|
+
BACK: string;
|
|
13
|
+
END: string;
|
|
14
|
+
CANEL: string;
|
|
15
|
+
};
|
|
9
16
|
};
|
|
10
17
|
declare const milestoneProps: {
|
|
11
18
|
_constants: {
|
|
@@ -15,6 +22,13 @@ declare const milestoneProps: {
|
|
|
15
22
|
DEFAULT_BACK_COLOR: string;
|
|
16
23
|
BOX_SHADOW_PX: string;
|
|
17
24
|
FLAG_CONTENT_CLS: string;
|
|
25
|
+
STATUS_MAP: {
|
|
26
|
+
COMPLETED: string;
|
|
27
|
+
DOING: string;
|
|
28
|
+
BACK: string;
|
|
29
|
+
END: string;
|
|
30
|
+
CANEL: string;
|
|
31
|
+
};
|
|
18
32
|
};
|
|
19
33
|
};
|
|
20
34
|
showNumber: {
|
|
@@ -109,6 +123,9 @@ interface IMilestoneIconStyle {
|
|
|
109
123
|
color: string;
|
|
110
124
|
boxShadow: string;
|
|
111
125
|
}
|
|
126
|
+
interface IMilestoneFlagStyle {
|
|
127
|
+
left: string;
|
|
128
|
+
}
|
|
112
129
|
interface IMilestoneGetMileContentParams {
|
|
113
130
|
data: IMilestoneNode[];
|
|
114
131
|
index: number;
|
|
@@ -138,7 +155,16 @@ interface IMilestoneApi {
|
|
|
138
155
|
handleClick: ({ index, node }: IMilestoneHandleClickParams) => void;
|
|
139
156
|
getMileIcon: (node: IMilestoneNode) => IMilestoneIconStyle;
|
|
140
157
|
flagOperate: ({ event, over, text }: IMilestoneFlagOperateParams) => void;
|
|
158
|
+
hexToRgb: (hex: string) => {
|
|
159
|
+
r: number;
|
|
160
|
+
g: number;
|
|
161
|
+
b: number;
|
|
162
|
+
};
|
|
163
|
+
getFlagStyle: ({ index, idx }: {
|
|
164
|
+
index: any;
|
|
165
|
+
idx: any;
|
|
166
|
+
}) => IMilestoneFlagStyle;
|
|
141
167
|
}
|
|
142
168
|
type IMilestoneRenderlessParamUtils = ISharedRenderlessParamUtils<IMilestoneConstants>;
|
|
143
169
|
|
|
144
|
-
export { IMilestoneApi, IMilestoneConstants, IMilestoneFlagOperateParams, IMilestoneGetMileContentParams, IMilestoneHandleClickParams, IMilestoneHandleFlagClickParams, IMilestoneIconStyle, IMilestoneNode, IMilestoneProps, IMilestonePropsDataFlags, IMilestoneRenderlessParamUtils, IMilestoneRenderlessParams, IMilestoneState };
|
|
170
|
+
export { IMilestoneApi, IMilestoneConstants, IMilestoneFlagOperateParams, IMilestoneFlagStyle, IMilestoneGetMileContentParams, IMilestoneHandleClickParams, IMilestoneHandleFlagClickParams, IMilestoneIconStyle, IMilestoneNode, IMilestoneProps, IMilestonePropsDataFlags, IMilestoneRenderlessParamUtils, IMilestoneRenderlessParams, IMilestoneState };
|
package/types/modal.type.d.ts
CHANGED
|
@@ -64,6 +64,7 @@ declare const modalProps: {
|
|
|
64
64
|
type: (StringConstructor | NumberConstructor)[];
|
|
65
65
|
default: () => number;
|
|
66
66
|
};
|
|
67
|
+
messageClosable: BooleanConstructor;
|
|
67
68
|
escClosable: BooleanConstructor;
|
|
68
69
|
events: ObjectConstructor;
|
|
69
70
|
fullscreen: BooleanConstructor;
|
|
@@ -163,8 +164,8 @@ declare const modalProps: {
|
|
|
163
164
|
*
|
|
164
165
|
*/
|
|
165
166
|
|
|
166
|
-
declare const mouseEnterEvent: () => () => void;
|
|
167
|
-
declare const mouseLeaveEvent: ({ api, props }: Pick<IModalRenderlessParams, 'api' | 'props'>) => () => void;
|
|
167
|
+
declare const mouseEnterEvent: (state: any) => () => void;
|
|
168
|
+
declare const mouseLeaveEvent: ({ api, props, state }: Pick<IModalRenderlessParams, 'api' | 'props' | 'state'>) => () => void;
|
|
168
169
|
|
|
169
170
|
type zoomLocatType = null | {
|
|
170
171
|
top: number;
|
package/types/pager.type.d.ts
CHANGED
|
@@ -28,6 +28,9 @@ declare const pagerProps: {
|
|
|
28
28
|
type: NumberConstructor;
|
|
29
29
|
default: () => number;
|
|
30
30
|
};
|
|
31
|
+
pageSizeText: {
|
|
32
|
+
type: StringConstructor;
|
|
33
|
+
};
|
|
31
34
|
pageSizes: {
|
|
32
35
|
type: PropType<number[]>;
|
|
33
36
|
default: () => number[];
|
|
@@ -120,10 +123,11 @@ interface IPagerState {
|
|
|
120
123
|
internalLayout: string[];
|
|
121
124
|
totalText: string;
|
|
122
125
|
internalPageCount: number | null;
|
|
123
|
-
|
|
126
|
+
showJumperSuffix: boolean;
|
|
124
127
|
align: 'left' | 'center' | 'right';
|
|
125
128
|
totalI18n: 'total' | 'totals';
|
|
126
129
|
totalFixedLeft: boolean;
|
|
130
|
+
pageSizeText: string;
|
|
127
131
|
}
|
|
128
132
|
interface IPagerApi {
|
|
129
133
|
state: IPagerState;
|
package/types/picker.type.d.ts
CHANGED
package/types/popover.type.d.ts
CHANGED
|
@@ -92,7 +92,7 @@ declare const popoverProps: {
|
|
|
92
92
|
*
|
|
93
93
|
*/
|
|
94
94
|
|
|
95
|
-
declare const mounted: ({ api, state, constants, props, nextTick, mode }: Pick<IPopoverRenderlessParams, "
|
|
95
|
+
declare const mounted: ({ api, state, constants, props, nextTick, mode }: Pick<IPopoverRenderlessParams, "state" | "props" | "nextTick" | "mode" | "api"> & {
|
|
96
96
|
constants: {
|
|
97
97
|
IDPREFIX: string;
|
|
98
98
|
};
|
package/types/search.type.d.ts
CHANGED
|
@@ -82,9 +82,6 @@ declare const searchProps: {
|
|
|
82
82
|
};
|
|
83
83
|
tiny_mode: StringConstructor;
|
|
84
84
|
tiny_mode_root: BooleanConstructor;
|
|
85
|
-
/**
|
|
86
|
-
* 配置主题色,primary:蓝 gray:灰
|
|
87
|
-
*/
|
|
88
85
|
tiny_template: (FunctionConstructor | ObjectConstructor)[];
|
|
89
86
|
tiny_renderless: FunctionConstructor;
|
|
90
87
|
tiny_theme: StringConstructor;
|
package/types/steps.type.d.ts
CHANGED
package/types/tag.type.d.ts
CHANGED
package/types/tooltip.type.d.ts
CHANGED
|
@@ -96,6 +96,9 @@ declare const tooltipProps: {
|
|
|
96
96
|
type: StringConstructor;
|
|
97
97
|
default: () => string;
|
|
98
98
|
};
|
|
99
|
+
contentMaxHeight: {
|
|
100
|
+
type: StringConstructor;
|
|
101
|
+
};
|
|
99
102
|
tiny_mode: StringConstructor;
|
|
100
103
|
tiny_mode_root: BooleanConstructor;
|
|
101
104
|
tiny_template: (FunctionConstructor | ObjectConstructor)[];
|
package/types/transfer.type.d.ts
CHANGED
|
@@ -108,14 +108,14 @@ declare const getSourceData: ({ props, Tree }: Pick<ITransferRenderlessParams, "
|
|
|
108
108
|
Tree: string;
|
|
109
109
|
}) => () => unknown[];
|
|
110
110
|
/** 返回右边的数据项 */
|
|
111
|
-
declare const getTargetData: ({ props, state, Tree, Table }: Pick<ITransferRenderlessParams, "
|
|
111
|
+
declare const getTargetData: ({ props, state, Tree, Table }: Pick<ITransferRenderlessParams, "state" | "props"> & {
|
|
112
112
|
Tree: string;
|
|
113
113
|
Table: string;
|
|
114
114
|
}) => () => unknown;
|
|
115
115
|
declare const onSourceCheckedChange: ({ emit, state }: Pick<ITransferRenderlessParams, 'emit' | 'state'>) => (val: string[], movedKeys: string[]) => void;
|
|
116
116
|
declare const onTargetCheckedChange: ({ emit, state }: Pick<ITransferRenderlessParams, 'emit' | 'state'>) => (val: string[], movedKeys: string[]) => void;
|
|
117
117
|
declare const addToLeft: ({ emit, props, state }: Pick<ITransferRenderlessParams, 'emit' | 'props' | 'state'>) => (value: undefined | 'all') => void;
|
|
118
|
-
declare const addToRight: ({ emit, refs, props, state, Tree }: Pick<ITransferRenderlessParams, "
|
|
118
|
+
declare const addToRight: ({ emit, refs, props, state, Tree }: Pick<ITransferRenderlessParams, "state" | "props" | "refs" | "emit"> & {
|
|
119
119
|
Tree: string;
|
|
120
120
|
}) => (value: undefined | 'all') => void;
|
|
121
121
|
declare const clearQuery: (refs: ITransferRenderlessParams['refs']) => (which: 'left' | 'right') => void;
|
|
@@ -126,7 +126,7 @@ declare const logicFun: ({ props, emit, state }: Pick<ITransferRenderlessParams,
|
|
|
126
126
|
pullMode?: "sort" | undefined;
|
|
127
127
|
}) => void;
|
|
128
128
|
/** 组件加载后,给左右面板初始化Sortable的功能 */
|
|
129
|
-
declare const sortableEvent: ({ api, droppanel, props, queryDom, refs }: Pick<ITransferRenderlessParams, "props" | "
|
|
129
|
+
declare const sortableEvent: ({ api, droppanel, props, queryDom, refs }: Pick<ITransferRenderlessParams, "props" | "refs" | "api"> & {
|
|
130
130
|
droppanel: string;
|
|
131
131
|
queryDom: string;
|
|
132
132
|
}) => () => void;
|
|
@@ -87,6 +87,14 @@ declare const treeMenuProps: {
|
|
|
87
87
|
type: BooleanConstructor;
|
|
88
88
|
default: boolean;
|
|
89
89
|
};
|
|
90
|
+
highlightQuery: {
|
|
91
|
+
type: BooleanConstructor;
|
|
92
|
+
default: boolean;
|
|
93
|
+
};
|
|
94
|
+
widthAdapt: {
|
|
95
|
+
type: BooleanConstructor;
|
|
96
|
+
default: boolean;
|
|
97
|
+
};
|
|
90
98
|
tiny_mode: StringConstructor;
|
|
91
99
|
tiny_mode_root: BooleanConstructor;
|
|
92
100
|
tiny_template: (FunctionConstructor | ObjectConstructor)[];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ExtractPropTypes } from 'vue';
|
|
2
2
|
import { ISharedRenderlessParamUtils, ISharedRenderlessFunctionParams } from './shared.type.js';
|
|
3
|
-
import { I as IFileUploadVm, a as IFileUploadConstants } from './upload-list.type-
|
|
3
|
+
import { I as IFileUploadVm, a as IFileUploadConstants } from './upload-list.type-26173587.js';
|
|
4
4
|
|
|
5
5
|
declare const UploadDraggerProps: {
|
|
6
6
|
disabled: BooleanConstructor;
|
|
@@ -366,6 +366,10 @@ declare const fileUploadProps: {
|
|
|
366
366
|
watermark: string;
|
|
367
367
|
};
|
|
368
368
|
};
|
|
369
|
+
promptTip: {
|
|
370
|
+
type: BooleanConstructor;
|
|
371
|
+
default: boolean;
|
|
372
|
+
};
|
|
369
373
|
isHidden: {
|
|
370
374
|
type: BooleanConstructor;
|
|
371
375
|
default: boolean;
|
|
@@ -406,7 +410,7 @@ declare const beforeUpload: ({ props, api, Modal, constants, t, state }: Pick<IF
|
|
|
406
410
|
declare const startUpload: ({ state, constants, vm, Modal, api, t }: Pick<IFileUploadRenderlessParams, 'state' | 'constants' | 'vm' | 'api' | 't'> & IFileUploadModalVm) => (file: IFileUploadFile, isList: boolean) => void;
|
|
407
411
|
declare const properFileSize: ({ props, state, api, constants, Modal, t }: Pick<IFileUploadRenderlessParams, 'props' | 'state' | 'constants' | 'api' | 't'> & IFileUploadModalVm) => (file: IFileUploadFile) => boolean;
|
|
408
412
|
declare const addFileToList: ({ api, constants, emit, props, state, mode }: Pick<IFileUploadRenderlessParams, 'api' | 'constants' | 'emit' | 'props' | 'state' | 'mode'>) => (rawFile: IFileUploadFile, updateId: string, reUpload: boolean) => void;
|
|
409
|
-
declare const getFileHash: ({ emit, Modal, constants, t, CryptoJS, state }: Pick<IFileUploadRenderlessParams, "
|
|
413
|
+
declare const getFileHash: ({ emit, Modal, constants, t, CryptoJS, state }: Pick<IFileUploadRenderlessParams, "state" | "emit" | "t" | "constants"> & IFileUploadModalVm & {
|
|
410
414
|
CryptoJS: object;
|
|
411
415
|
}) => ({ file, chunkSize, showTips }: {
|
|
412
416
|
file: IFileUploadFile;
|
|
@@ -486,13 +490,13 @@ declare const sliceDownloadChunk: ({ state }: Pick<IFileUploadRenderlessParams,
|
|
|
486
490
|
declare const batchSegmentDownload: ({ state, api }: Pick<IFileUploadRenderlessParams, 'state' | 'api'>) => ({ batchIndex, batches, docId, isBatch, isLessThan17G }: IFileUploadBatchSegmentDownload) => void;
|
|
487
491
|
declare const downloadFileInner: ({ api, props, state }: Pick<IFileUploadRenderlessParams, 'api' | 'props' | 'state'>) => ({ batchIndex, file, range, isBatch, isChunk, isLessThan17G }: IFileUploadDownloadFileInner) => void;
|
|
488
492
|
declare const afterDownload: ({ api, state }: Pick<IFileUploadRenderlessParams, 'api' | 'state'>) => ({ batchIndex, range, data, file, isBatch, isChunk, isLessThan17G }: IFileUploadAfterDownload) => void;
|
|
489
|
-
declare const setWriterFile: ({ state, emit, Streamsaver }: Pick<IFileUploadRenderlessParams, "
|
|
493
|
+
declare const setWriterFile: ({ state, emit, Streamsaver }: Pick<IFileUploadRenderlessParams, "state" | "emit"> & {
|
|
490
494
|
Streamsaver: IFileUploadStreamsaver;
|
|
491
495
|
}) => ({ data, index, isLessThan17G, file }: IFileUploadSetWriterFile) => Function;
|
|
492
496
|
declare const getFormData$1: ({ constants, props, state }: Pick<IFileUploadRenderlessParams, 'constants' | 'props' | 'state'>) => ({ formData, file, type }: IFileUploadGetFormData) => IUploadFormData;
|
|
493
497
|
declare const largeDocumentUpload: ({ api, Modal, state, t, emit, constants }: Pick<IFileUploadRenderlessParams, 'api' | 'state' | 't' | 'emit' | 'constants'> & IFileUploadModalVm) => (file: IFileUploadFile) => void;
|
|
494
498
|
declare const segmentUploadInit: ({ api, props, service, state, constants }: Pick<IFileUploadRenderlessParams, 'api' | 'props' | 'service' | 'state' | 'constants'>) => (file: IFileUploadFile) => Promise<unknown>;
|
|
495
|
-
declare const segmentUpload: ({ api, props, service, state, emit, constants, CryptoJS }: Pick<IFileUploadRenderlessParams, "
|
|
499
|
+
declare const segmentUpload: ({ api, props, service, state, emit, constants, CryptoJS }: Pick<IFileUploadRenderlessParams, "state" | "props" | "emit" | "api" | "constants" | "service"> & {
|
|
496
500
|
CryptoJS: object;
|
|
497
501
|
}) => (batchIndex: number, file: IFileUploadFile, progress: {
|
|
498
502
|
file: IFileUploadFile;
|
|
@@ -683,6 +687,10 @@ declare const uploadProps: {
|
|
|
683
687
|
type: StringConstructor;
|
|
684
688
|
default: string;
|
|
685
689
|
};
|
|
690
|
+
promptTip: {
|
|
691
|
+
type: BooleanConstructor;
|
|
692
|
+
default: boolean;
|
|
693
|
+
};
|
|
686
694
|
tiny_mode: StringConstructor;
|
|
687
695
|
tiny_mode_root: BooleanConstructor;
|
|
688
696
|
tiny_template: (FunctionConstructor | ObjectConstructor)[];
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import 'vue';
|
|
2
|
-
export { H as IUploadListApi, J as IUploadListProps, K as IUploadListRenderlessParamUtils, L as IUploadListRenderlessParams, G as IUploadListState, M as IUploadListVideoParam } from './upload-list.type-
|
|
2
|
+
export { H as IUploadListApi, J as IUploadListProps, K as IUploadListRenderlessParamUtils, L as IUploadListRenderlessParams, G as IUploadListState, M as IUploadListVideoParam } from './upload-list.type-26173587.js';
|
|
3
3
|
import './shared.type.js';
|
package/types/upload.type.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import 'vue';
|
|
2
|
-
export { d as IUploadApi, i as IUploadFormData, k as IUploadOptionsOfHwh5, j as IUploadOptionsOfPost, e as IUploadProps, h as IUploadRenderlessOtherParams, f as IUploadRenderlessParamUtils, g as IUploadRenderlessParams, c as IUploadState, b as IUploadStateHeader } from './upload-list.type-
|
|
2
|
+
export { d as IUploadApi, i as IUploadFormData, k as IUploadOptionsOfHwh5, j as IUploadOptionsOfPost, e as IUploadProps, h as IUploadRenderlessOtherParams, f as IUploadRenderlessParamUtils, g as IUploadRenderlessParams, c as IUploadState, b as IUploadStateHeader } from './upload-list.type-26173587.js';
|
|
3
3
|
import './shared.type.js';
|
|
@@ -1,2 +1,128 @@
|
|
|
1
|
+
import { ExtractPropTypes, ref } from 'vue';
|
|
2
|
+
import { ISharedRenderlessFunctionParams, ISharedRenderlessParamUtils } from './shared.type.js';
|
|
1
3
|
|
|
2
|
-
|
|
4
|
+
/**
|
|
5
|
+
* Copyright (c) 2022 - present TinyVue Authors.
|
|
6
|
+
* Copyright (c) 2022 - present Huawei Cloud Computing Technologies Co., Ltd.
|
|
7
|
+
*
|
|
8
|
+
* Use of this source code is governed by an MIT-style license.
|
|
9
|
+
*
|
|
10
|
+
* THE OPEN SOURCE SOFTWARE IN THIS PRODUCT IS DISTRIBUTED IN THE HOPE THAT IT WILL BE USEFUL,
|
|
11
|
+
* BUT WITHOUT ANY WARRANTY, WITHOUT EVEN THE IMPLIED WARRANTY OF MERCHANTABILITY OR FITNESS FOR
|
|
12
|
+
* A PARTICULAR PURPOSE. SEE THE APPLICABLE LICENSES FOR MORE DETAILS.
|
|
13
|
+
*
|
|
14
|
+
*/
|
|
15
|
+
declare const userContactProps: {
|
|
16
|
+
showName: {
|
|
17
|
+
type: BooleanConstructor;
|
|
18
|
+
default: boolean;
|
|
19
|
+
};
|
|
20
|
+
showArrow: {
|
|
21
|
+
type: BooleanConstructor;
|
|
22
|
+
default: boolean;
|
|
23
|
+
};
|
|
24
|
+
/**
|
|
25
|
+
* 是否显示 roleNumber, colType 为 false 时生效
|
|
26
|
+
*/
|
|
27
|
+
showNumber: {
|
|
28
|
+
type: BooleanConstructor;
|
|
29
|
+
default: boolean;
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* 是否显示 头像
|
|
33
|
+
*/
|
|
34
|
+
showImg: {
|
|
35
|
+
type: BooleanConstructor;
|
|
36
|
+
default: boolean;
|
|
37
|
+
};
|
|
38
|
+
placement: StringConstructor;
|
|
39
|
+
/**
|
|
40
|
+
* 数据
|
|
41
|
+
*/
|
|
42
|
+
data: {
|
|
43
|
+
type: PropType<{
|
|
44
|
+
userName: string;
|
|
45
|
+
imgUrl: string;
|
|
46
|
+
roleNumber: string;
|
|
47
|
+
tools?: any;
|
|
48
|
+
values: undefined | {
|
|
49
|
+
text: string;
|
|
50
|
+
value: string;
|
|
51
|
+
}[];
|
|
52
|
+
}>;
|
|
53
|
+
};
|
|
54
|
+
espace: ArrayConstructor;
|
|
55
|
+
popperClass: StringConstructor;
|
|
56
|
+
popperAppendToBody: {
|
|
57
|
+
type: BooleanConstructor;
|
|
58
|
+
default: boolean;
|
|
59
|
+
};
|
|
60
|
+
isNewImMode: {
|
|
61
|
+
type: BooleanConstructor;
|
|
62
|
+
default: boolean;
|
|
63
|
+
};
|
|
64
|
+
tiny_mode: StringConstructor;
|
|
65
|
+
tiny_mode_root: BooleanConstructor;
|
|
66
|
+
tiny_template: (FunctionConstructor | ObjectConstructor)[];
|
|
67
|
+
tiny_renderless: FunctionConstructor;
|
|
68
|
+
tiny_theme: StringConstructor;
|
|
69
|
+
tiny_chart_theme: ObjectConstructor;
|
|
70
|
+
};
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* Copyright (c) 2022 - present TinyVue Authors.
|
|
74
|
+
* Copyright (c) 2022 - present Huawei Cloud Computing Technologies Co., Ltd.
|
|
75
|
+
*
|
|
76
|
+
* Use of this source code is governed by an MIT-style license.
|
|
77
|
+
*
|
|
78
|
+
* THE OPEN SOURCE SOFTWARE IN THIS PRODUCT IS DISTRIBUTED IN THE HOPE THAT IT WILL BE USEFUL,
|
|
79
|
+
* BUT WITHOUT ANY WARRANTY, WITHOUT EVEN THE IMPLIED WARRANTY OF MERCHANTABILITY OR FITNESS FOR
|
|
80
|
+
* A PARTICULAR PURPOSE. SEE THE APPLICABLE LICENSES FOR MORE DETAILS.
|
|
81
|
+
*
|
|
82
|
+
*/
|
|
83
|
+
declare const getUserHref: ({ api, props }: {
|
|
84
|
+
api: any;
|
|
85
|
+
props: any;
|
|
86
|
+
}) => () => any;
|
|
87
|
+
declare const doUserAction: ({ api, props, state, eSpaceCtrl }: {
|
|
88
|
+
api: any;
|
|
89
|
+
props: any;
|
|
90
|
+
state: any;
|
|
91
|
+
eSpaceCtrl: any;
|
|
92
|
+
}) => () => void;
|
|
93
|
+
declare const initEspaceLink: ({ api, props, state, eSpaceCtrl, eSpaceCtrlDisabled }: {
|
|
94
|
+
api: any;
|
|
95
|
+
props: any;
|
|
96
|
+
state: any;
|
|
97
|
+
eSpaceCtrl: any;
|
|
98
|
+
eSpaceCtrlDisabled: any;
|
|
99
|
+
}) => () => void;
|
|
100
|
+
declare const openEspace: ({ api, props, eSpaceCtrl }: {
|
|
101
|
+
api: any;
|
|
102
|
+
props: any;
|
|
103
|
+
eSpaceCtrl: any;
|
|
104
|
+
}) => () => void;
|
|
105
|
+
|
|
106
|
+
declare const testUID: (uid: any) => boolean;
|
|
107
|
+
|
|
108
|
+
type IUserContactProps = ExtractPropTypes<typeof userContactProps>;
|
|
109
|
+
interface IUserContactState {
|
|
110
|
+
initialized: boolean;
|
|
111
|
+
}
|
|
112
|
+
type IUserContactRenderlessParams = ISharedRenderlessFunctionParams<never> & {
|
|
113
|
+
api: IUserContactApi;
|
|
114
|
+
state: IUserContactState;
|
|
115
|
+
props: IUserContactProps;
|
|
116
|
+
};
|
|
117
|
+
interface IUserContactApi {
|
|
118
|
+
state: IUserContactState;
|
|
119
|
+
testUID: ReturnType<typeof testUID>;
|
|
120
|
+
show: ReturnType<typeof ref>;
|
|
121
|
+
getUserHref: ReturnType<typeof getUserHref>;
|
|
122
|
+
initEspaceLink: ReturnType<typeof initEspaceLink>;
|
|
123
|
+
doUserAction: ReturnType<typeof doUserAction>;
|
|
124
|
+
openEspace: ReturnType<typeof openEspace>;
|
|
125
|
+
}
|
|
126
|
+
type IUserContactRenderlessParamUtils = ISharedRenderlessParamUtils<never>;
|
|
127
|
+
|
|
128
|
+
export { IUserContactApi, IUserContactProps, IUserContactRenderlessParamUtils, IUserContactRenderlessParams, IUserContactState };
|
|
@@ -83,10 +83,7 @@ declare const userHeadProps: {
|
|
|
83
83
|
tiny_mode: StringConstructor;
|
|
84
84
|
tiny_mode_root: BooleanConstructor;
|
|
85
85
|
tiny_template: (FunctionConstructor | ObjectConstructor)[];
|
|
86
|
-
tiny_renderless: FunctionConstructor;
|
|
87
|
-
* @property {String} - 头像资源
|
|
88
|
-
* type=icon 时为图标类名,type=label时为字体串,type=image时为资源路径
|
|
89
|
-
*/
|
|
86
|
+
tiny_renderless: FunctionConstructor;
|
|
90
87
|
tiny_theme: StringConstructor;
|
|
91
88
|
tiny_chart_theme: ObjectConstructor;
|
|
92
89
|
};
|