@opentiny/vue-renderless 3.13.2 → 3.14.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/action-sheet/index.js +20 -13
- package/action-sheet/vue.js +8 -7
- package/amount/index.js +100 -25
- package/amount/vue.js +102 -26
- package/anchor/index.js +1 -0
- package/area/index.js +8 -8
- package/area/vue.js +5 -5
- package/async-flowchart/index.js +16 -3
- package/autocomplete/index.js +58 -14
- package/autocomplete/vue.js +40 -12
- package/badge/index.js +12 -0
- package/badge/vue.js +6 -4
- package/breadcrumb/vue.js +3 -1
- package/breadcrumb-item/vue.js +6 -2
- package/button/index.js +5 -1
- package/calendar/index.js +2 -86
- package/calendar-bar/index.js +18 -4
- package/calendar-view/index.js +5 -1
- package/calendar-view/vue.js +16 -3
- package/card-group/vue.js +4 -2
- package/cascader/index.js +86 -34
- package/cascader/vue.js +61 -20
- package/cascader-menu/index.js +7 -7
- package/cascader-menu/vue.js +2 -3
- package/cascader-mobile/index.js +36 -23
- package/cascader-mobile/vue.js +6 -0
- package/cascader-node/index.js +13 -1
- package/cascader-node/vue.js +15 -4
- package/cascader-panel/index.js +1 -1
- package/cascader-select/column-index.js +150 -0
- package/cascader-select/column.js +120 -0
- package/cascader-select/index.js +29 -165
- package/cascader-select/usePicker.js +251 -0
- package/cascader-select/useTouch.js +65 -0
- package/cascader-select/vue.js +35 -47
- package/cell/vue.js +2 -1
- package/chart-bar/index.js +2 -3
- package/chart-core/deps/constants.js +43 -43
- package/chart-core/index.js +1 -1
- package/chart-gauge/index.js +2 -2
- package/chart-heatmap/index.js +17 -10
- package/chart-line/index.js +8 -9
- package/chart-tree/index.js +2 -2
- package/chart-waterfall/index.js +4 -6
- package/checkbox/index.js +18 -1
- package/checkbox/vue.js +15 -7
- package/checkbox-group/vue.js +1 -0
- package/col/vue.js +1 -1
- package/collapse/index.js +3 -3
- package/color-select-panel/vue.js +0 -7
- package/column-list-item/index.js +17 -1
- package/column-list-item/vue.js +8 -3
- package/common/bigInt.js +2 -2
- package/common/date.js +7 -5
- package/common/deps/clickoutside.js +6 -2
- package/common/deps/date-util.js +4 -2
- package/common/deps/dom.js +19 -4
- package/common/deps/popper.js +44 -11
- package/common/deps/resize-event.js +1 -0
- package/common/deps/touch-emulator.js +4 -1
- package/common/deps/tree-model/node.js +2 -2
- package/common/deps/tree-model/tree-store.js +2 -13
- package/common/deps/useRect.js +25 -0
- package/common/deps/vue-popper.js +38 -20
- package/common/index.js +2 -2
- package/common/runtime.js +1 -1
- package/common/string.js +2 -2
- package/common/type.js +2 -1
- package/common/validate/rules/enum.js +1 -1
- package/common/validate/rules/pattern.js +2 -2
- package/common/validate/rules/range.js +8 -5
- package/common/validate/rules/required.js +1 -1
- package/common/validate/rules/type.js +5 -5
- package/common/validate/rules/whitespace.js +1 -1
- package/common/validate/util.js +15 -16
- package/common/validate/validations/integer.js +1 -1
- package/common/validate/validations/method.js +1 -1
- package/currency/index.js +74 -7
- package/currency/vue.js +21 -5
- package/date-panel/index.js +16 -0
- package/date-panel/vue.js +8 -2
- package/date-picker-mobile/index.js +12 -0
- package/date-picker-mobile/vue.js +7 -1
- package/date-range/vue.js +15 -6
- package/date-table/index.js +35 -53
- package/date-table/vue.js +4 -2
- package/dialog-box/index.js +46 -14
- package/dialog-box/vue.js +30 -7
- package/dialog-select/index.js +6 -3
- package/dialog-select/vue.js +8 -4
- package/drawer/index.js +27 -5
- package/drawer/vue.js +14 -7
- package/dropdown/index.js +7 -7
- package/dropdown/vue.js +6 -2
- package/dropdown-item/index.js +9 -1
- package/dropdown-item/mf.js +6 -10
- package/dropdown-item/vue.js +20 -7
- package/dropdown-menu/index.js +20 -7
- package/dropdown-menu/vue.js +4 -3
- package/exception/index.js +2 -7
- package/exception/vue.js +7 -10
- package/fall-menu/index.js +5 -1
- package/fall-menu/vue.js +13 -2
- package/file-upload/index.js +68 -18
- package/file-upload/vue.js +38 -8
- package/filter-box/index.js +1 -0
- package/float-button/index.js +42 -0
- package/float-button/vue.js +101 -0
- package/floating-button/index.js +62 -16
- package/floating-button/vue.js +27 -9
- package/flowchart/index.js +134 -25
- package/flowchart/node.js +13 -4
- package/flowchart/vue.js +16 -4
- package/form/vue.js +8 -0
- package/form-item/index.js +5 -5
- package/form-item/vue.js +3 -1
- package/fullscreen/index.js +5 -5
- package/fullscreen/vue.js +3 -3
- package/grid/plugins/export.js +5 -2
- package/grid/utils/column.js +1 -0
- package/grid/utils/dom.js +7 -1
- package/image/index.js +6 -1
- package/image/vue.js +6 -3
- package/image-viewer/index.js +62 -51
- package/image-viewer/vue.js +17 -5
- package/input/index.js +81 -20
- package/input/vue.js +44 -18
- package/ip-address/index.js +61 -19
- package/ip-address/vue.js +22 -4
- package/link/vue.js +3 -1
- package/loading/index.js +2 -2
- package/loading/vue.js +8 -2
- package/logout/index.js +1 -1
- package/menu/index.js +15 -2
- package/menu/vue.js +22 -17
- package/mind-map/index.js +47 -0
- package/mind-map/vue.js +53 -0
- package/modal/index.js +44 -4
- package/modal/vue.js +18 -4
- package/multi-select/index.js +186 -11
- package/multi-select/vue.js +60 -15
- package/multi-select-item/index.js +23 -0
- package/multi-select-item/vue.js +31 -0
- package/numeric/index.js +48 -12
- package/numeric/vue.js +44 -19
- package/option/index.js +27 -9
- package/option/vue.js +37 -21
- package/option-group/index.js +3 -3
- package/package.json +1 -1
- package/pager/index.js +18 -4
- package/pager/vue.js +16 -5
- package/picker/index.js +290 -77
- package/picker/mb.js +42 -0
- package/picker/vue.js +76 -20
- package/picker-column/index.js +1 -1
- package/pop-upload/vue.js +3 -0
- package/popconfirm/index.js +3 -6
- package/popconfirm/vue.js +1 -1
- package/popeditor/index.js +73 -34
- package/popeditor/vue.js +15 -11
- package/popover/index.js +4 -4
- package/popover/vue.js +6 -6
- package/popup/index.js +3 -3
- package/popup/vue.js +5 -5
- package/pull-refresh/index.js +13 -13
- package/pull-refresh/vue.js +5 -4
- package/radio/index.js +0 -17
- package/radio/vue.js +4 -10
- package/rate/index.js +1 -1
- package/rate/vue.js +0 -2
- package/record/index.js +4 -1
- package/rich-text/clipboard.js +54 -0
- package/rich-text/index.js +192 -0
- package/rich-text/module/file-upload.js +107 -0
- package/rich-text/module/image-drop.js +63 -0
- package/rich-text/module/image-upload.js +89 -0
- package/rich-text/options.js +141 -0
- package/rich-text/table-module.js +382 -0
- package/rich-text/vue.js +102 -0
- package/{rich-text-edtior → rich-text-editor}/index.js +2 -2
- package/{rich-text-edtior → rich-text-editor}/vue.js +2 -5
- package/scrollbar/index.js +11 -11
- package/scrollbar/vue-bar.js +3 -3
- package/scrollbar/vue.js +5 -5
- package/search/index.js +9 -9
- package/search/vue.js +8 -6
- package/select/index.js +442 -393
- package/select/vue.js +278 -164
- package/select-dropdown/index.js +61 -3
- package/select-dropdown/vue.js +85 -8
- package/select-view/index.js +3 -1
- package/selected-box/index.js +2 -0
- package/selected-box/vue.js +6 -3
- package/signature/index.js +241 -0
- package/signature/vue.js +88 -0
- package/skeleton/index.js +14 -0
- package/skeleton/vue.js +15 -0
- package/skeleton-item/vue.js +15 -0
- package/slider/index.js +70 -17
- package/slider/vue.js +16 -7
- package/split/index.js +5 -3
- package/split/vue.js +4 -6
- package/standard-list-item/index.js +15 -1
- package/standard-list-item/vue.js +6 -5
- package/steps/index.js +25 -2
- package/steps/slide-bar.js +8 -1
- package/steps/vue.js +15 -3
- package/tab-item-mf/vue.js +14 -8
- package/tab-nav/index.js +30 -5
- package/tab-nav/vue.js +16 -4
- package/tabbar/vue.js +9 -3
- package/tabbar-item/vue.js +3 -2
- package/tabs/index.js +16 -4
- package/tabs/vue.js +2 -1
- package/tabs-mf/index.js +20 -6
- package/tabs-mf/vue-nav.js +26 -11
- package/tabs-mf/vue.js +7 -7
- package/tabs-mf/wheel.js +1 -0
- package/tag/index.js +1 -1
- package/tag-group/index.js +2 -1
- package/time/index.js +5 -2
- package/time/vue.js +1 -1
- package/time-line/index.js +3 -3
- package/time-line/vue.js +2 -2
- package/time-picker-mobile/index.js +24 -5
- package/time-picker-mobile/vue.js +17 -7
- package/time-range/index.js +2 -0
- package/timeline-item/vue.js +1 -1
- package/tooltip/index.js +6 -3
- package/tooltip/vue.js +4 -4
- package/transfer/index.js +20 -22
- package/transfer/vue.js +1 -6
- package/transfer-panel/vue.js +3 -5
- package/tree/index.js +21 -4
- package/tree/vue.js +10 -8
- package/tree-menu/index.js +29 -3
- package/tree-menu/vue.js +28 -15
- package/tree-node/index.js +18 -18
- package/tree-node/vue.js +6 -5
- package/types/action-sheet.type.d.ts +118 -1
- package/types/amount.type.d.ts +168 -1
- package/types/area.type.d.ts +134 -1
- package/types/async-flowchart.type.d.ts +72 -0
- package/types/autocomplete.type.d.ts +199 -1
- package/types/badge.type.d.ts +3 -1
- package/types/breadcrumb-item.type.d.ts +2 -0
- package/types/breadcrumb.type.d.ts +2 -0
- package/types/button-group.type.d.ts +3 -3
- package/types/button.type.d.ts +4 -0
- package/types/cascader-menu.type.d.ts +3 -4
- package/types/cascader-node.type.d.ts +5 -2
- package/types/cascader-panel.type-2bd03be3.d.ts +241 -0
- package/types/cascader-panel.type.d.ts +3 -241
- package/types/cascader.type.d.ts +329 -1
- package/types/checkbox.type.d.ts +6 -0
- package/types/collapse.type.d.ts +19 -2
- package/types/date-picker.type.d.ts +38 -1
- package/types/dialog-box.type.d.ts +13 -3
- package/types/drawer.type.d.ts +133 -1
- package/types/{dropdown-item.type-8ea6c633.d.ts → dropdown-item.type-8475a549.d.ts} +7 -13
- 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 -5
- package/types/fall-menu.type.d.ts +94 -1
- package/types/file-upload.type.d.ts +1 -1
- package/types/float-button.type.d.ts +123 -0
- package/types/form-item.type.d.ts +1 -1
- package/types/{form.type-d0fd42f3.d.ts → form.type-a2dc0099.d.ts} +4 -1
- package/types/form.type.d.ts +1 -1
- package/types/{index-e0250f63.d.ts → index-b012f687.d.ts} +9 -0
- package/types/input.type.d.ts +2 -6
- package/types/ip-address.type.d.ts +160 -1
- package/types/link.type.d.ts +6 -3
- package/types/loading.type.d.ts +7 -0
- package/types/mind-map.type.d.ts +20 -0
- package/types/modal.type.d.ts +29 -2
- package/types/numeric.type.d.ts +41 -10
- package/types/pager.type.d.ts +12 -0
- package/types/picker.type.d.ts +18 -0
- package/types/popconfirm.type.d.ts +86 -1
- package/types/popeditor.type.d.ts +4 -0
- package/types/popover.type.d.ts +3 -3
- package/types/progress.type.d.ts +2 -0
- package/types/radio.type.d.ts +0 -4
- package/types/rate.type.d.ts +236 -1
- package/types/search.type.d.ts +88 -1
- package/types/shared.type.d.ts +1 -1
- package/types/skeleton-item.type.d.ts +38 -0
- package/types/skeleton.type.d.ts +45 -0
- package/types/slider.type.d.ts +49 -10
- package/types/steps.type.d.ts +14 -3
- package/types/tab-bar.type.d.ts +1 -1
- package/types/tab-nav.type.d.ts +7 -2
- package/types/tabs.type.d.ts +9 -1
- package/types/tag-group.type.d.ts +64 -1
- package/types/{time-line.type-d7daa669.d.ts → time-line.type-b155cb4f.d.ts} +12 -0
- package/types/time-line.type.d.ts +1 -1
- package/types/timeline-item.type.d.ts +1 -1
- package/types/tooltip.type.d.ts +2 -2
- package/types/transfer.type.d.ts +185 -1
- package/types/tree-menu.type.d.ts +210 -1
- package/types/upload-dragger.type.d.ts +1 -1
- package/types/{upload-list.type-343e8c11.d.ts → upload-list.type-6d6e3d0e.d.ts} +35 -8
- package/types/upload-list.type.d.ts +1 -1
- package/types/upload.type.d.ts +1 -1
- package/types/user-head.type.d.ts +146 -1
- package/types/wizard.type.d.ts +1 -0
- package/upload/index.js +64 -34
- package/upload/vue.js +9 -5
- package/upload-dragger/index.js +22 -20
- package/upload-list/index.js +24 -18
- package/upload-list/vue.js +9 -4
- package/user/index.js +35 -26
- package/user/vue.js +1 -1
- package/user-head/index.js +3 -3
- package/watermark/index.js +11 -0
- package/wheel/index.js +3 -0
- package/wizard/vue.js +4 -2
- package/common/deps/modal-queue.js +0 -6
- package/common/deps/requestAnimationFrame.js +0 -25
package/types/transfer.type.d.ts
CHANGED
|
@@ -1,2 +1,186 @@
|
|
|
1
|
+
import { ExtractPropTypes } from 'vue';
|
|
2
|
+
import { ISharedRenderlessFunctionParams, ISharedRenderlessParamUtils } from './shared.type.js';
|
|
1
3
|
|
|
2
|
-
|
|
4
|
+
declare const $constants: {
|
|
5
|
+
ISCHECKED: string;
|
|
6
|
+
DROPPANEL: string;
|
|
7
|
+
TRANSFERPANEL: string;
|
|
8
|
+
};
|
|
9
|
+
declare const transferProps: {
|
|
10
|
+
_constants: {
|
|
11
|
+
type: ObjectConstructor;
|
|
12
|
+
default: () => {
|
|
13
|
+
ISCHECKED: string;
|
|
14
|
+
DROPPANEL: string;
|
|
15
|
+
TRANSFERPANEL: string;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
buttonTexts: {
|
|
19
|
+
type: ArrayConstructor;
|
|
20
|
+
default: () => never[];
|
|
21
|
+
};
|
|
22
|
+
columns: ArrayConstructor;
|
|
23
|
+
leftColumns: ArrayConstructor;
|
|
24
|
+
rightColumns: ArrayConstructor;
|
|
25
|
+
data: {
|
|
26
|
+
type: ArrayConstructor;
|
|
27
|
+
default: () => never[];
|
|
28
|
+
};
|
|
29
|
+
dropConfig: ObjectConstructor;
|
|
30
|
+
filterMethod: FunctionConstructor;
|
|
31
|
+
filterPlaceholder: {
|
|
32
|
+
type: StringConstructor;
|
|
33
|
+
default: string;
|
|
34
|
+
};
|
|
35
|
+
filterable: BooleanConstructor;
|
|
36
|
+
format: {
|
|
37
|
+
type: ObjectConstructor;
|
|
38
|
+
default: () => {};
|
|
39
|
+
};
|
|
40
|
+
leftDefaultChecked: {
|
|
41
|
+
type: ArrayConstructor;
|
|
42
|
+
default: () => never[];
|
|
43
|
+
};
|
|
44
|
+
modelValue: {
|
|
45
|
+
type: ArrayConstructor;
|
|
46
|
+
default: () => never[];
|
|
47
|
+
};
|
|
48
|
+
pagerOp: {
|
|
49
|
+
type: ObjectConstructor;
|
|
50
|
+
default: () => {
|
|
51
|
+
mode: string;
|
|
52
|
+
pageVO: {
|
|
53
|
+
currentPage: number;
|
|
54
|
+
pageSize: number;
|
|
55
|
+
};
|
|
56
|
+
};
|
|
57
|
+
};
|
|
58
|
+
props: {
|
|
59
|
+
type: ObjectConstructor;
|
|
60
|
+
default: () => {
|
|
61
|
+
label: string;
|
|
62
|
+
key: string;
|
|
63
|
+
disabled: string;
|
|
64
|
+
};
|
|
65
|
+
};
|
|
66
|
+
render: ObjectConstructor;
|
|
67
|
+
renderContent: FunctionConstructor;
|
|
68
|
+
renderType: StringConstructor;
|
|
69
|
+
rightDefaultChecked: {
|
|
70
|
+
type: ArrayConstructor;
|
|
71
|
+
default: () => never[];
|
|
72
|
+
};
|
|
73
|
+
showAllBtn: BooleanConstructor;
|
|
74
|
+
showPager: {
|
|
75
|
+
type: BooleanConstructor;
|
|
76
|
+
default: boolean;
|
|
77
|
+
};
|
|
78
|
+
targetOrder: {
|
|
79
|
+
type: StringConstructor;
|
|
80
|
+
default: string;
|
|
81
|
+
};
|
|
82
|
+
titles: {
|
|
83
|
+
type: ArrayConstructor;
|
|
84
|
+
default: () => never[];
|
|
85
|
+
};
|
|
86
|
+
toLeftDisable: {
|
|
87
|
+
type: BooleanConstructor;
|
|
88
|
+
default: boolean;
|
|
89
|
+
};
|
|
90
|
+
toRightDisable: {
|
|
91
|
+
type: BooleanConstructor;
|
|
92
|
+
default: boolean;
|
|
93
|
+
};
|
|
94
|
+
treeOp: ObjectConstructor;
|
|
95
|
+
beforeTransfer: FunctionConstructor;
|
|
96
|
+
tiny_mode: StringConstructor;
|
|
97
|
+
tiny_mode_root: BooleanConstructor;
|
|
98
|
+
tiny_template: (FunctionConstructor | ObjectConstructor)[];
|
|
99
|
+
tiny_renderless: FunctionConstructor;
|
|
100
|
+
tiny_theme: StringConstructor;
|
|
101
|
+
tiny_chart_theme: ObjectConstructor;
|
|
102
|
+
};
|
|
103
|
+
|
|
104
|
+
/** 生成全量数据对应的一个大对象 */
|
|
105
|
+
declare const getObj: (props: ITransferProps) => () => unknown;
|
|
106
|
+
/** 返回左边的数据项 */
|
|
107
|
+
declare const getSourceData: ({ props, Tree }: Pick<ITransferRenderlessParams, "props"> & {
|
|
108
|
+
Tree: string;
|
|
109
|
+
}) => () => unknown[];
|
|
110
|
+
/** 返回右边的数据项 */
|
|
111
|
+
declare const getTargetData: ({ props, state, Tree, Table }: Pick<ITransferRenderlessParams, "state" | "props"> & {
|
|
112
|
+
Tree: string;
|
|
113
|
+
Table: string;
|
|
114
|
+
}) => () => unknown;
|
|
115
|
+
declare const onSourceCheckedChange: ({ emit, state }: Pick<ITransferRenderlessParams, 'emit' | 'state'>) => (val: string[], movedKeys: string[]) => void;
|
|
116
|
+
declare const onTargetCheckedChange: ({ emit, state }: Pick<ITransferRenderlessParams, 'emit' | 'state'>) => (val: string[], movedKeys: string[]) => void;
|
|
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, "state" | "props" | "refs" | "emit"> & {
|
|
119
|
+
Tree: string;
|
|
120
|
+
}) => (value: undefined | 'all') => void;
|
|
121
|
+
declare const clearQuery: (refs: ITransferRenderlessParams['refs']) => (which: 'left' | 'right') => void;
|
|
122
|
+
/** SortableJs 插件的回调逻辑, 添加,删除,更新事件后,触发本函数 */
|
|
123
|
+
declare const logicFun: ({ props, emit, state }: Pick<ITransferRenderlessParams, 'emit' | 'props' | 'state'>) => ({ event, isAdd, pullMode }: {
|
|
124
|
+
event: any;
|
|
125
|
+
isAdd?: boolean | undefined;
|
|
126
|
+
pullMode?: "sort" | undefined;
|
|
127
|
+
}) => void;
|
|
128
|
+
/** 组件加载后,给左右面板初始化Sortable的功能 */
|
|
129
|
+
declare const sortableEvent: ({ api, droppanel, props, queryDom, refs }: Pick<ITransferRenderlessParams, "props" | "refs" | "api"> & {
|
|
130
|
+
droppanel: string;
|
|
131
|
+
queryDom: string;
|
|
132
|
+
}) => () => void;
|
|
133
|
+
declare const getLeftCheckedData: ({ props, state }: Pick<ITransferRenderlessParams, 'state' | 'props'>) => () => ITransferData[];
|
|
134
|
+
declare const getRightCheckedData: ({ props, state }: Pick<ITransferRenderlessParams, 'state' | 'props'>) => () => ITransferData[];
|
|
135
|
+
|
|
136
|
+
interface ITransferData {
|
|
137
|
+
key: string;
|
|
138
|
+
label: string;
|
|
139
|
+
disabled: boolean;
|
|
140
|
+
[customProp: string]: any;
|
|
141
|
+
}
|
|
142
|
+
interface ITransferState {
|
|
143
|
+
/** 左边选中的key的数组 */
|
|
144
|
+
leftChecked: string[];
|
|
145
|
+
/** 右边选中的key的数组 */
|
|
146
|
+
rightChecked: string[];
|
|
147
|
+
leftData: any[];
|
|
148
|
+
rightData: any[];
|
|
149
|
+
dataObj: any;
|
|
150
|
+
/** 左边的全部数据项 */
|
|
151
|
+
sourceData: ITransferData[];
|
|
152
|
+
/** 右边的全部数据 */
|
|
153
|
+
targetData: ITransferData[];
|
|
154
|
+
/** 是否传入了有效的buttonText */
|
|
155
|
+
hasButtonTexts: boolean;
|
|
156
|
+
/** 传递给右面板的 isToLeft 属性 */
|
|
157
|
+
isToLeft: boolean;
|
|
158
|
+
/** 函数。 它传递给2个面板,用于渲染每个数据项 */
|
|
159
|
+
optionRender: any;
|
|
160
|
+
}
|
|
161
|
+
type ITransferProps = ExtractPropTypes<typeof transferProps>;
|
|
162
|
+
type ITransferConstants = typeof $constants;
|
|
163
|
+
type ITransferRenderlessParams = ISharedRenderlessFunctionParams<ITransferConstants> & {
|
|
164
|
+
api: ITransferApi;
|
|
165
|
+
state: ITransferState;
|
|
166
|
+
props: ITransferProps;
|
|
167
|
+
};
|
|
168
|
+
interface ITransferApi {
|
|
169
|
+
state: ITransferState;
|
|
170
|
+
/** 生成全量数据对应的一个大对象 */
|
|
171
|
+
getObj: ReturnType<typeof getObj>;
|
|
172
|
+
clearQuery: ReturnType<typeof clearQuery>;
|
|
173
|
+
getSourceData: ReturnType<typeof getSourceData>;
|
|
174
|
+
addToLeft: ReturnType<typeof addToLeft>;
|
|
175
|
+
getLeftCheckedData: ReturnType<typeof getLeftCheckedData>;
|
|
176
|
+
getRightCheckedData: ReturnType<typeof getRightCheckedData>;
|
|
177
|
+
addToRight: ReturnType<typeof addToRight>;
|
|
178
|
+
onTargetCheckedChange: ReturnType<typeof onTargetCheckedChange>;
|
|
179
|
+
onSourceCheckedChange: ReturnType<typeof onSourceCheckedChange>;
|
|
180
|
+
logicFun: ReturnType<typeof logicFun>;
|
|
181
|
+
getTargetData: ReturnType<typeof getTargetData>;
|
|
182
|
+
sortableEvent: ReturnType<typeof sortableEvent>;
|
|
183
|
+
}
|
|
184
|
+
type ITransferRenderlessParamUtils = ISharedRenderlessParamUtils<ITransferConstants>;
|
|
185
|
+
|
|
186
|
+
export { ITransferApi, ITransferConstants, ITransferData, ITransferProps, ITransferRenderlessParamUtils, ITransferRenderlessParams, ITransferState };
|
|
@@ -1,2 +1,211 @@
|
|
|
1
|
+
import * as vue from 'vue';
|
|
2
|
+
import { ExtractPropTypes } from 'vue';
|
|
3
|
+
import * as _opentiny_vue_common from '@opentiny/vue-common';
|
|
4
|
+
import { ISharedRenderlessParamUtils } from './shared.type.js';
|
|
1
5
|
|
|
2
|
-
|
|
6
|
+
declare const treeMenuProps: {
|
|
7
|
+
placeholder: {
|
|
8
|
+
default: string;
|
|
9
|
+
type: StringConstructor;
|
|
10
|
+
};
|
|
11
|
+
data: ArrayConstructor;
|
|
12
|
+
nodeKey: StringConstructor;
|
|
13
|
+
defaultExpandAll: BooleanConstructor;
|
|
14
|
+
suffixIcon: ObjectConstructor;
|
|
15
|
+
prefixIcon: ObjectConstructor;
|
|
16
|
+
searchIcon: {
|
|
17
|
+
type: ObjectConstructor;
|
|
18
|
+
default: () => vue.Raw<_opentiny_vue_common.DefineComponent<{}, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
|
|
19
|
+
[key: string]: any;
|
|
20
|
+
}>, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<_opentiny_vue_common.ExtractPropTypes<{}>>, {}, {}>>;
|
|
21
|
+
};
|
|
22
|
+
props: ObjectConstructor;
|
|
23
|
+
draggable: {
|
|
24
|
+
type: BooleanConstructor;
|
|
25
|
+
default: boolean;
|
|
26
|
+
};
|
|
27
|
+
emptyText: {
|
|
28
|
+
type: StringConstructor;
|
|
29
|
+
default: string;
|
|
30
|
+
};
|
|
31
|
+
checkStrictly: BooleanConstructor;
|
|
32
|
+
lazy: {
|
|
33
|
+
type: BooleanConstructor;
|
|
34
|
+
default: boolean;
|
|
35
|
+
};
|
|
36
|
+
load: FunctionConstructor;
|
|
37
|
+
showCheckbox: BooleanConstructor;
|
|
38
|
+
filterNodeMethod: FunctionConstructor;
|
|
39
|
+
defaultCheckedKeys: ArrayConstructor;
|
|
40
|
+
defaultExpandedKeys: ArrayConstructor;
|
|
41
|
+
defaultExpandedKeysHighlight: (StringConstructor | NumberConstructor)[];
|
|
42
|
+
indent: {
|
|
43
|
+
type: NumberConstructor;
|
|
44
|
+
default: number;
|
|
45
|
+
};
|
|
46
|
+
allowDrag: FunctionConstructor;
|
|
47
|
+
allowDrop: FunctionConstructor;
|
|
48
|
+
expandOnClickNode: {
|
|
49
|
+
type: BooleanConstructor;
|
|
50
|
+
default: boolean;
|
|
51
|
+
};
|
|
52
|
+
ellipsis: {
|
|
53
|
+
type: BooleanConstructor;
|
|
54
|
+
default: boolean;
|
|
55
|
+
};
|
|
56
|
+
wrap: {
|
|
57
|
+
type: BooleanConstructor;
|
|
58
|
+
default: boolean;
|
|
59
|
+
};
|
|
60
|
+
getMenuDataSync: FunctionConstructor;
|
|
61
|
+
accordion: BooleanConstructor;
|
|
62
|
+
showTitle: {
|
|
63
|
+
type: BooleanConstructor;
|
|
64
|
+
default: boolean;
|
|
65
|
+
};
|
|
66
|
+
showFilter: {
|
|
67
|
+
type: BooleanConstructor;
|
|
68
|
+
default: boolean;
|
|
69
|
+
};
|
|
70
|
+
collapsible: {
|
|
71
|
+
type: BooleanConstructor;
|
|
72
|
+
default: boolean;
|
|
73
|
+
};
|
|
74
|
+
showNumber: {
|
|
75
|
+
type: BooleanConstructor;
|
|
76
|
+
default: boolean;
|
|
77
|
+
};
|
|
78
|
+
nodeHeight: NumberConstructor;
|
|
79
|
+
onlyCheckChildren: {
|
|
80
|
+
type: BooleanConstructor;
|
|
81
|
+
default: boolean;
|
|
82
|
+
};
|
|
83
|
+
menuCollapsible: {
|
|
84
|
+
type: BooleanConstructor;
|
|
85
|
+
default: boolean;
|
|
86
|
+
};
|
|
87
|
+
tiny_mode: StringConstructor;
|
|
88
|
+
tiny_mode_root: BooleanConstructor;
|
|
89
|
+
tiny_template: (FunctionConstructor | ObjectConstructor)[];
|
|
90
|
+
tiny_renderless: FunctionConstructor;
|
|
91
|
+
tiny_theme: StringConstructor;
|
|
92
|
+
tiny_chart_theme: ObjectConstructor;
|
|
93
|
+
};
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* Copyright (c) 2022 - present TinyVue Authors.
|
|
97
|
+
* Copyright (c) 2022 - present Huawei Cloud Computing Technologies Co., Ltd.
|
|
98
|
+
*
|
|
99
|
+
* Use of this source code is governed by an MIT-style license.
|
|
100
|
+
*
|
|
101
|
+
* THE OPEN SOURCE SOFTWARE IN THIS PRODUCT IS DISTRIBUTED IN THE HOPE THAT IT WILL BE USEFUL,
|
|
102
|
+
* BUT WITHOUT ANY WARRANTY, WITHOUT EVEN THE IMPLIED WARRANTY OF MERCHANTABILITY OR FITNESS FOR
|
|
103
|
+
* A PARTICULAR PURPOSE. SEE THE APPLICABLE LICENSES FOR MORE DETAILS.
|
|
104
|
+
*
|
|
105
|
+
*/
|
|
106
|
+
|
|
107
|
+
declare const initData: ({ state, props, service, api }: {
|
|
108
|
+
state: ITreeMenuState;
|
|
109
|
+
props: ITreeMenuProps;
|
|
110
|
+
service: any;
|
|
111
|
+
api: ITreeMenuApi;
|
|
112
|
+
}) => () => Promise<void>;
|
|
113
|
+
declare const setMenuKey: (api: ITreeMenuApi) => ({ newData, menuData }: {
|
|
114
|
+
newData: ITreeMenuNewData[];
|
|
115
|
+
menuData: ITreeMenuData[];
|
|
116
|
+
}) => ITreeMenuNewData[];
|
|
117
|
+
declare const filterNode: (props: any) => (value: any, data: any) => any;
|
|
118
|
+
declare const watchFilterText: ({ vm }: {
|
|
119
|
+
vm: any;
|
|
120
|
+
}) => (value: any) => void;
|
|
121
|
+
declare const nodeDragStart: (emit: any) => (node: any, event: any) => void;
|
|
122
|
+
declare const nodeDragEnter: (emit: any) => (dragNode: any, dropNode: any, event: any) => void;
|
|
123
|
+
declare const nodeDragOver: (emit: any) => (dragNode: any, dropNode: any, event: any) => void;
|
|
124
|
+
declare const nodeDragEnd: (emit: any) => (dragNode: any, dropNode: any, dropType: any, event: any) => void;
|
|
125
|
+
declare const nodeDrop: (emit: any) => (dragNode: any, dropNode: any, dropType: any, event: any) => void;
|
|
126
|
+
declare const nodeExpand: (emit: any) => (nodeData: any, node: any) => void;
|
|
127
|
+
declare const nodeCollapse: (emit: any) => (nodeData: any, node: any) => void;
|
|
128
|
+
declare const nodeClick: ({ emit, props, state }: {
|
|
129
|
+
emit: any;
|
|
130
|
+
props: any;
|
|
131
|
+
state: any;
|
|
132
|
+
}) => (nodeData: any, node: any) => void;
|
|
133
|
+
declare const checkChange: (emit: any) => (data: any, checked: any, indeterminate: any) => void;
|
|
134
|
+
declare const check: (emit: any) => (data: any, checkedStatus: any) => void;
|
|
135
|
+
declare const currentChange: (emit: any) => (data: any, node: any) => void;
|
|
136
|
+
declare const getTitle: (props: any) => (label: any) => any;
|
|
137
|
+
declare const collapseChange: ({ state, props, emit }: {
|
|
138
|
+
state: any;
|
|
139
|
+
props: any;
|
|
140
|
+
emit: any;
|
|
141
|
+
}) => () => void;
|
|
142
|
+
declare const collapseMenu: ({ state, props, api }: {
|
|
143
|
+
state: any;
|
|
144
|
+
props: any;
|
|
145
|
+
api: any;
|
|
146
|
+
}) => () => void;
|
|
147
|
+
declare const expandMenu: ({ state, props, api }: {
|
|
148
|
+
state: ITreeMenuState;
|
|
149
|
+
props: ITreeMenuProps;
|
|
150
|
+
api: ITreeMenuApi;
|
|
151
|
+
}) => () => void;
|
|
152
|
+
declare const setCurrentKey: ({ vm }: {
|
|
153
|
+
vm: any;
|
|
154
|
+
}) => (key: string) => void;
|
|
155
|
+
declare const getCurrentKey: ({ vm }: {
|
|
156
|
+
vm: any;
|
|
157
|
+
}) => () => any;
|
|
158
|
+
declare const setCurrentNode: ({ vm }: {
|
|
159
|
+
vm: any;
|
|
160
|
+
}) => (key: string) => void;
|
|
161
|
+
declare const getCurrentNode: ({ vm }: {
|
|
162
|
+
vm: any;
|
|
163
|
+
}) => () => any;
|
|
164
|
+
|
|
165
|
+
interface ITreeMenuState {
|
|
166
|
+
data?: unknown[];
|
|
167
|
+
filterText: string;
|
|
168
|
+
isCollapsed: boolean;
|
|
169
|
+
}
|
|
170
|
+
type ITreeMenuProps = ExtractPropTypes<typeof treeMenuProps>;
|
|
171
|
+
interface ITreeMenuApi {
|
|
172
|
+
t: ISharedRenderlessParamUtils['t'];
|
|
173
|
+
state: ITreeMenuState;
|
|
174
|
+
check: ReturnType<typeof check>;
|
|
175
|
+
filterNode: ReturnType<typeof filterNode>;
|
|
176
|
+
nodeDrop: ReturnType<typeof nodeDrop>;
|
|
177
|
+
nodeClick: ReturnType<typeof nodeClick>;
|
|
178
|
+
nodeExpand: ReturnType<typeof nodeExpand>;
|
|
179
|
+
nodeDragEnd: ReturnType<typeof nodeDragEnd>;
|
|
180
|
+
checkChange: ReturnType<typeof checkChange>;
|
|
181
|
+
nodeCollapse: ReturnType<typeof nodeCollapse>;
|
|
182
|
+
nodeDragOver: ReturnType<typeof nodeDragOver>;
|
|
183
|
+
nodeDragStart: ReturnType<typeof nodeDragStart>;
|
|
184
|
+
nodeDragEnter: ReturnType<typeof nodeDragEnter>;
|
|
185
|
+
currentChange: ReturnType<typeof currentChange>;
|
|
186
|
+
watchFilterText: ReturnType<typeof watchFilterText>;
|
|
187
|
+
getTitle: ReturnType<typeof getTitle>;
|
|
188
|
+
setMenuKey: ReturnType<typeof setMenuKey>;
|
|
189
|
+
initData: ReturnType<typeof initData>;
|
|
190
|
+
collapseChange: ReturnType<typeof collapseChange>;
|
|
191
|
+
collapseMenu: ReturnType<typeof collapseMenu>;
|
|
192
|
+
expandMenu: ReturnType<typeof expandMenu>;
|
|
193
|
+
setCurrentKey: ReturnType<typeof setCurrentKey>;
|
|
194
|
+
getCurrentKey: ReturnType<typeof getCurrentKey>;
|
|
195
|
+
setCurrentNode: ReturnType<typeof setCurrentNode>;
|
|
196
|
+
getCurrentNode: ReturnType<typeof getCurrentNode>;
|
|
197
|
+
}
|
|
198
|
+
interface ITreeMenuData {
|
|
199
|
+
name: string;
|
|
200
|
+
siteNodeId: string;
|
|
201
|
+
url: string;
|
|
202
|
+
children: ITreeMenuData[];
|
|
203
|
+
}
|
|
204
|
+
interface ITreeMenuNewData extends ITreeMenuData {
|
|
205
|
+
label: string;
|
|
206
|
+
id: string;
|
|
207
|
+
url: string;
|
|
208
|
+
children: ITreeMenuNewData[];
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
export { ITreeMenuApi, ITreeMenuData, ITreeMenuNewData, ITreeMenuProps, ITreeMenuState };
|
|
@@ -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-6d6e3d0e.js';
|
|
4
4
|
|
|
5
5
|
declare const UploadDraggerProps: {
|
|
6
6
|
disabled: BooleanConstructor;
|
|
@@ -7,6 +7,11 @@ declare const $constants: {
|
|
|
7
7
|
UPLOAD_INNER_TEMPLATE: string;
|
|
8
8
|
UPLOAD_LIST_INNER: string;
|
|
9
9
|
UPLOAD_LIST_INNER_TEMPLATE: string;
|
|
10
|
+
ONLY_SUPPORT: string;
|
|
11
|
+
COMMA: string;
|
|
12
|
+
FILE_NOT_LESS_THAN: string;
|
|
13
|
+
FILE_NOT_MORE_THAN: string;
|
|
14
|
+
NUMBER_LIMIT: string;
|
|
10
15
|
FILE_STATUS: {
|
|
11
16
|
READY: string;
|
|
12
17
|
SUCESS: string;
|
|
@@ -21,6 +26,7 @@ declare const $constants: {
|
|
|
21
26
|
THUMB: string;
|
|
22
27
|
PICTURE_SINGLE: string;
|
|
23
28
|
DRAG_SINGLE: string;
|
|
29
|
+
SAAS: string;
|
|
24
30
|
};
|
|
25
31
|
EDM: {
|
|
26
32
|
CHUNKINIT: string;
|
|
@@ -68,6 +74,7 @@ declare const $constants: {
|
|
|
68
74
|
NOT_SUPPORT_NO_SUFFIX: string;
|
|
69
75
|
STATUS_SPECIAL_CHARACTERS: number;
|
|
70
76
|
NOT_SUPPORT_SPECIAL_CHARACTERS: string;
|
|
77
|
+
DOC_PREVIEW: string;
|
|
71
78
|
};
|
|
72
79
|
IMAGE_TYPE: string;
|
|
73
80
|
FILE_TYPE: {
|
|
@@ -100,6 +107,11 @@ declare const fileUploadProps: {
|
|
|
100
107
|
UPLOAD_INNER_TEMPLATE: string;
|
|
101
108
|
UPLOAD_LIST_INNER: string;
|
|
102
109
|
UPLOAD_LIST_INNER_TEMPLATE: string;
|
|
110
|
+
ONLY_SUPPORT: string;
|
|
111
|
+
COMMA: string;
|
|
112
|
+
FILE_NOT_LESS_THAN: string;
|
|
113
|
+
FILE_NOT_MORE_THAN: string;
|
|
114
|
+
NUMBER_LIMIT: string;
|
|
103
115
|
FILE_STATUS: {
|
|
104
116
|
READY: string;
|
|
105
117
|
SUCESS: string;
|
|
@@ -114,6 +126,7 @@ declare const fileUploadProps: {
|
|
|
114
126
|
THUMB: string;
|
|
115
127
|
PICTURE_SINGLE: string;
|
|
116
128
|
DRAG_SINGLE: string;
|
|
129
|
+
SAAS: string;
|
|
117
130
|
};
|
|
118
131
|
EDM: {
|
|
119
132
|
CHUNKINIT: string;
|
|
@@ -161,6 +174,7 @@ declare const fileUploadProps: {
|
|
|
161
174
|
NOT_SUPPORT_NO_SUFFIX: string;
|
|
162
175
|
STATUS_SPECIAL_CHARACTERS: number;
|
|
163
176
|
NOT_SUPPORT_SPECIAL_CHARACTERS: string;
|
|
177
|
+
DOC_PREVIEW: string;
|
|
164
178
|
};
|
|
165
179
|
IMAGE_TYPE: string;
|
|
166
180
|
FILE_TYPE: {
|
|
@@ -337,6 +351,10 @@ declare const fileUploadProps: {
|
|
|
337
351
|
type: BooleanConstructor;
|
|
338
352
|
default: boolean;
|
|
339
353
|
};
|
|
354
|
+
compact: {
|
|
355
|
+
type: BooleanConstructor;
|
|
356
|
+
default: boolean;
|
|
357
|
+
};
|
|
340
358
|
beforeAddFile: FunctionConstructor;
|
|
341
359
|
encryptConfig: {
|
|
342
360
|
type: ObjectConstructor;
|
|
@@ -385,7 +403,7 @@ declare const beforeUpload: ({ props, api, Modal, constants, t, state }: Pick<IF
|
|
|
385
403
|
declare const startUpload: ({ state, constants, vm, Modal, api, t }: Pick<IFileUploadRenderlessParams, 'state' | 'constants' | 'vm' | 'api' | 't'> & IFileUploadModalVm) => (file: IFileUploadFile, isList: boolean) => void;
|
|
386
404
|
declare const properFileSize: ({ props, state, api, constants, Modal, t }: Pick<IFileUploadRenderlessParams, 'props' | 'state' | 'constants' | 'api' | 't'> & IFileUploadModalVm) => (file: IFileUploadFile) => boolean;
|
|
387
405
|
declare const addFileToList: ({ api, constants, emit, props, state, mode }: Pick<IFileUploadRenderlessParams, 'api' | 'constants' | 'emit' | 'props' | 'state' | 'mode'>) => (rawFile: IFileUploadFile, updateId: string, reUpload: boolean) => void;
|
|
388
|
-
declare const getFileHash: ({ emit, Modal, constants, t, CryptoJS, state }: Pick<IFileUploadRenderlessParams, "state" | "
|
|
406
|
+
declare const getFileHash: ({ emit, Modal, constants, t, CryptoJS, state }: Pick<IFileUploadRenderlessParams, "state" | "emit" | "t" | "constants"> & IFileUploadModalVm & {
|
|
389
407
|
CryptoJS: object;
|
|
390
408
|
}) => ({ file, chunkSize, showTips }: {
|
|
391
409
|
file: IFileUploadFile;
|
|
@@ -470,7 +488,7 @@ declare const setWriterFile: ({ state, emit, Streamsaver }: Pick<IFileUploadRend
|
|
|
470
488
|
declare const getFormData$1: ({ constants, props, state }: Pick<IFileUploadRenderlessParams, 'constants' | 'props' | 'state'>) => ({ formData, file, type }: IFileUploadGetFormData) => IUploadFormData;
|
|
471
489
|
declare const largeDocumentUpload: ({ api, Modal, state, t, emit, constants }: Pick<IFileUploadRenderlessParams, 'api' | 'state' | 't' | 'emit' | 'constants'> & IFileUploadModalVm) => (file: IFileUploadFile) => void;
|
|
472
490
|
declare const segmentUploadInit: ({ api, props, service, state, constants }: Pick<IFileUploadRenderlessParams, 'api' | 'props' | 'service' | 'state' | 'constants'>) => (file: IFileUploadFile) => Promise<unknown>;
|
|
473
|
-
declare const segmentUpload: ({ api, props, service, state, emit, constants, CryptoJS }: Pick<IFileUploadRenderlessParams, "state" | "
|
|
491
|
+
declare const segmentUpload: ({ api, props, service, state, emit, constants, CryptoJS }: Pick<IFileUploadRenderlessParams, "state" | "props" | "emit" | "api" | "constants" | "service"> & {
|
|
474
492
|
CryptoJS: object;
|
|
475
493
|
}) => (batchIndex: number, file: IFileUploadFile, progress: {
|
|
476
494
|
file: IFileUploadFile;
|
|
@@ -506,7 +524,7 @@ declare const previewImageBatch: ({ service, api }: Pick<IFileUploadRenderlessPa
|
|
|
506
524
|
url: string;
|
|
507
525
|
file: IFileUploadFile;
|
|
508
526
|
}) => any;
|
|
509
|
-
declare const getDialogConfigObj: ({ props, state }: Pick<IFileUploadRenderlessParams, 'props' | 'state'>) => () => object;
|
|
527
|
+
declare const getDialogConfigObj: ({ props, state, t, constants }: Pick<IFileUploadRenderlessParams, 'props' | 'state' | 't' | 'constants'>) => () => object;
|
|
510
528
|
declare const computeDocChunkSize: ({ props, state, constants }: Pick<IFileUploadRenderlessParams, 'props' | 'state' | 'constants'>) => () => void;
|
|
511
529
|
declare const computedSourcetype: ({ props, constants }: Pick<IFileUploadRenderlessParams, 'props' | 'constants'>) => () => string[];
|
|
512
530
|
declare const getFileSourceType: ({ state, props, constants }: Pick<IFileUploadRenderlessParams, 'state' | 'props' | 'constants'>) => ({ file }: {
|
|
@@ -536,7 +554,9 @@ declare const handleClick$1: ({ props, api, parent }: Pick<IUploadListRenderless
|
|
|
536
554
|
declare const downloadFile: (service: IUploadListRenderlessParams['service']) => (file: IFileUploadFile) => void;
|
|
537
555
|
declare const picturefilePreview: (state: IUploadListRenderlessParams['state']) => (index: number) => void;
|
|
538
556
|
declare const getDeleteData: (emit: IUploadListRenderlessParams['emit']) => (data: string[]) => void;
|
|
539
|
-
declare const showOperatePanel: ({ state }: Pick<IUploadListRenderlessParams, 'state'>) => (file:
|
|
557
|
+
declare const showOperatePanel: ({ state }: Pick<IUploadListRenderlessParams, 'state'>) => ({ file }: {
|
|
558
|
+
file: IFileUploadFile;
|
|
559
|
+
}) => void;
|
|
540
560
|
declare const reUpload: ({ emit, props, parent }: Pick<IUploadListRenderlessParams, 'emit' | 'props' | 'parent'>) => (file: IFileUploadFile) => void;
|
|
541
561
|
declare const play: ({ vm, api, props }: Pick<IUploadListRenderlessParams, 'vm' | 'api' | 'props'>) => ({ file, index, type }: {
|
|
542
562
|
file: IFileUploadFile;
|
|
@@ -574,7 +594,7 @@ declare const getNotSuccessFiles: ({ props, constants }: Pick<IUploadListRenderl
|
|
|
574
594
|
declare const chooseFile: ({ state, constants }: Pick<IUploadListRenderlessParams, 'state' | 'constants'>) => (type: string) => void;
|
|
575
595
|
declare const handleTriggerClick: ({ state, props }: Pick<IUploadListRenderlessParams, 'state' | 'props'>) => ($event: Event, type: string) => Promise<unknown>;
|
|
576
596
|
declare const mounted$1: ({ api, vm }: Pick<IUploadListRenderlessParams, 'api' | 'vm'>) => () => void;
|
|
577
|
-
declare const destroyed: ({
|
|
597
|
+
declare const destroyed: ({ props, vm }: Pick<IUploadListRenderlessParams, 'props' | 'vm'>) => () => void;
|
|
578
598
|
|
|
579
599
|
declare const uploadProps: {
|
|
580
600
|
accept: StringConstructor;
|
|
@@ -650,6 +670,11 @@ declare const uploadProps: {
|
|
|
650
670
|
default: () => void;
|
|
651
671
|
};
|
|
652
672
|
mode: StringConstructor;
|
|
673
|
+
showTitle: BooleanConstructor;
|
|
674
|
+
isHwh5: {
|
|
675
|
+
type: BooleanConstructor;
|
|
676
|
+
default: boolean;
|
|
677
|
+
};
|
|
653
678
|
tiny_mode: StringConstructor;
|
|
654
679
|
tiny_mode_root: BooleanConstructor;
|
|
655
680
|
tiny_template: (FunctionConstructor | ObjectConstructor)[];
|
|
@@ -682,7 +707,7 @@ declare const uploadFiles: ({ state, constants, Modal, props, t }: Pick<IUploadR
|
|
|
682
707
|
declare const upload: ({ api, props, refs }: Pick<IUploadRenderlessParams, 'api' | 'props' | 'refs'>) => (rawFile: File) => void;
|
|
683
708
|
declare const abort: ({ state, props, constants }: Pick<IUploadRenderlessParams, 'state' | 'props' | 'constants'>) => (file: IFileUploadFile) => void;
|
|
684
709
|
declare const post: ({ api, constants, props, state, service }: Pick<IUploadRenderlessParams, 'api' | 'constants' | 'props' | 'state' | 'service'>) => (rawFile: IFileUploadFile) => void;
|
|
685
|
-
declare const handleClick: ({ props, refs }: Pick<IUploadRenderlessParams, 'props' | 'refs'>) => ($event: Event, type: string) => void;
|
|
710
|
+
declare const handleClick: ({ props, refs, state }: Pick<IUploadRenderlessParams, 'props' | 'refs' | 'state'>) => ($event: Event, type: string) => void;
|
|
686
711
|
declare const handleKeydown: (api: IUploadRenderlessParams['api']) => (event: KeyboardEvent) => void;
|
|
687
712
|
declare const handleUpdate: ({ props, state }: Pick<IUploadRenderlessParams, 'props' | 'state'>) => (file: IFileUploadFile) => void;
|
|
688
713
|
declare const mounted: ({ state, props, api }: Pick<IUploadRenderlessParams, 'state' | 'props' | 'api'>) => () => void;
|
|
@@ -1079,8 +1104,10 @@ declare const uploadListProps: {
|
|
|
1079
1104
|
type: BooleanConstructor;
|
|
1080
1105
|
default: boolean;
|
|
1081
1106
|
};
|
|
1082
|
-
|
|
1083
|
-
|
|
1107
|
+
compact: {
|
|
1108
|
+
type: BooleanConstructor;
|
|
1109
|
+
default: boolean;
|
|
1110
|
+
};
|
|
1084
1111
|
tiny_mode: StringConstructor;
|
|
1085
1112
|
tiny_mode_root: BooleanConstructor;
|
|
1086
1113
|
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-6d6e3d0e.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-6d6e3d0e.js';
|
|
3
3
|
import './shared.type.js';
|