@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/cascader.type.d.ts
CHANGED
|
@@ -1,2 +1,330 @@
|
|
|
1
|
+
import { ISharedRenderlessParamUtils } from './shared.type.js';
|
|
2
|
+
import { ExtractPropTypes } from 'vue';
|
|
3
|
+
import { N as Node, d as ICascaderPanelNodePropValue, a as ICascaderPanelApi } from './cascader-panel.type-2bd03be3.js';
|
|
1
4
|
|
|
2
|
-
|
|
5
|
+
declare const cascaderProps: {
|
|
6
|
+
_constants: {
|
|
7
|
+
type: ObjectConstructor;
|
|
8
|
+
default: () => {
|
|
9
|
+
placeholder: string;
|
|
10
|
+
COMPONENT_NAME: {
|
|
11
|
+
FormItem: string;
|
|
12
|
+
};
|
|
13
|
+
EVENT_NAME: {
|
|
14
|
+
FormBlur: string;
|
|
15
|
+
FormChange: string;
|
|
16
|
+
};
|
|
17
|
+
defaultNodeConfig: {
|
|
18
|
+
lazy: boolean;
|
|
19
|
+
load: null;
|
|
20
|
+
isLeaf: string;
|
|
21
|
+
afterLoad: null;
|
|
22
|
+
currentNodeKey: null;
|
|
23
|
+
checkStrictly: boolean;
|
|
24
|
+
checkDescendants: null;
|
|
25
|
+
defaultCheckedKeys: null;
|
|
26
|
+
defaultExpandedKeys: null;
|
|
27
|
+
autoExpandParent: null;
|
|
28
|
+
defaultExpandAll: null;
|
|
29
|
+
filterNodeMethod: null;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
autoSize: BooleanConstructor;
|
|
34
|
+
beforeFilter: {
|
|
35
|
+
type: FunctionConstructor;
|
|
36
|
+
default: () => () => void;
|
|
37
|
+
};
|
|
38
|
+
clearable: BooleanConstructor;
|
|
39
|
+
collapseTags: BooleanConstructor;
|
|
40
|
+
debounce: {
|
|
41
|
+
type: NumberConstructor;
|
|
42
|
+
default: number;
|
|
43
|
+
};
|
|
44
|
+
disabled: BooleanConstructor;
|
|
45
|
+
filterMethod: FunctionConstructor;
|
|
46
|
+
filterable: BooleanConstructor;
|
|
47
|
+
modelValue: {};
|
|
48
|
+
options: ArrayConstructor;
|
|
49
|
+
placeholder: {
|
|
50
|
+
type: StringConstructor;
|
|
51
|
+
default: any;
|
|
52
|
+
};
|
|
53
|
+
popperAppendToBody: {
|
|
54
|
+
type: BooleanConstructor;
|
|
55
|
+
default: boolean;
|
|
56
|
+
};
|
|
57
|
+
popperClass: StringConstructor;
|
|
58
|
+
props: {
|
|
59
|
+
type: ObjectConstructor;
|
|
60
|
+
default: () => {};
|
|
61
|
+
};
|
|
62
|
+
separator: {
|
|
63
|
+
type: StringConstructor;
|
|
64
|
+
default: string;
|
|
65
|
+
};
|
|
66
|
+
showAllLevels: {
|
|
67
|
+
type: BooleanConstructor;
|
|
68
|
+
default: boolean;
|
|
69
|
+
};
|
|
70
|
+
size: StringConstructor;
|
|
71
|
+
shape: StringConstructor;
|
|
72
|
+
label: StringConstructor;
|
|
73
|
+
tip: StringConstructor;
|
|
74
|
+
displayOnly: {
|
|
75
|
+
type: BooleanConstructor;
|
|
76
|
+
default: boolean;
|
|
77
|
+
};
|
|
78
|
+
hoverExpand: {
|
|
79
|
+
type: BooleanConstructor;
|
|
80
|
+
default: boolean;
|
|
81
|
+
};
|
|
82
|
+
title: StringConstructor;
|
|
83
|
+
showHeader: {
|
|
84
|
+
type: BooleanConstructor;
|
|
85
|
+
default: boolean;
|
|
86
|
+
};
|
|
87
|
+
levelTitle: ArrayConstructor;
|
|
88
|
+
blank: {
|
|
89
|
+
type: BooleanConstructor;
|
|
90
|
+
default: boolean;
|
|
91
|
+
};
|
|
92
|
+
tiny_mode: StringConstructor;
|
|
93
|
+
tiny_mode_root: BooleanConstructor;
|
|
94
|
+
tiny_template: (FunctionConstructor | ObjectConstructor)[];
|
|
95
|
+
tiny_renderless: FunctionConstructor;
|
|
96
|
+
tiny_theme: StringConstructor;
|
|
97
|
+
tiny_chart_theme: ObjectConstructor;
|
|
98
|
+
};
|
|
99
|
+
|
|
100
|
+
/**
|
|
101
|
+
* Copyright (c) 2022 - present TinyVue Authors.
|
|
102
|
+
* Copyright (c) 2022 - present Huawei Cloud Computing Technologies Co., Ltd.
|
|
103
|
+
*
|
|
104
|
+
* Use of this source code is governed by an MIT-style license.
|
|
105
|
+
*
|
|
106
|
+
* THE OPEN SOURCE SOFTWARE IN THIS PRODUCT IS DISTRIBUTED IN THE HOPE THAT IT WILL BE USEFUL,
|
|
107
|
+
* BUT WITHOUT ANY WARRANTY, WITHOUT EVEN THE IMPLIED WARRANTY OF MERCHANTABILITY OR FITNESS FOR
|
|
108
|
+
* A PARTICULAR PURPOSE. SEE THE APPLICABLE LICENSES FOR MORE DETAILS.
|
|
109
|
+
*
|
|
110
|
+
*/
|
|
111
|
+
|
|
112
|
+
declare const getConfig: ({ parent, props }: {
|
|
113
|
+
parent: ICascadeRenderlessParamUtils['parent'];
|
|
114
|
+
props: ICascaderProps;
|
|
115
|
+
}) => () => Record<string, any>;
|
|
116
|
+
declare const computClearVisible: ({ props, state }: {
|
|
117
|
+
props: ICascaderProps;
|
|
118
|
+
state: ICascaderState;
|
|
119
|
+
}) => () => boolean;
|
|
120
|
+
declare const computePresentContent: ({ api, state }: {
|
|
121
|
+
api: ICascaderApi;
|
|
122
|
+
state: ICascaderState;
|
|
123
|
+
}) => () => void;
|
|
124
|
+
declare const watchValue: ({ api, state }: {
|
|
125
|
+
api: ICascaderApi;
|
|
126
|
+
state: ICascaderState;
|
|
127
|
+
}) => (value: any) => void;
|
|
128
|
+
declare const watchCheckedValue: ({ nextTick, constants, dispatch, api, emit, state }: {
|
|
129
|
+
api: ICascaderApi;
|
|
130
|
+
emit: ICascadeRenderlessParamUtils['emit'];
|
|
131
|
+
state: ICascaderState;
|
|
132
|
+
}) => (value: any) => void;
|
|
133
|
+
declare const selfMounted: ({ api, parent, props, vm, state }: {
|
|
134
|
+
api: ICascaderApi;
|
|
135
|
+
parent: ICascadeRenderlessParamUtils['parent'];
|
|
136
|
+
props: ICascaderProps;
|
|
137
|
+
vm: ICascadeRenderlessParamUtils['vm'];
|
|
138
|
+
state: ICascaderState;
|
|
139
|
+
}) => () => void;
|
|
140
|
+
declare const toggleDropDownVisible: ({ emit, vm, state, updatePopper }: {
|
|
141
|
+
emit: ICascadeRenderlessParamUtils['emit'];
|
|
142
|
+
vm: ICascadeRenderlessParamUtils['vm'];
|
|
143
|
+
state: ICascaderState;
|
|
144
|
+
updatePopper: (popperElm?: HTMLElement | undefined) => void;
|
|
145
|
+
}) => (visible: any) => void;
|
|
146
|
+
declare const handleDropdownLeave: (state: any) => () => void;
|
|
147
|
+
declare const handleKeyDown: ({ api }: {
|
|
148
|
+
api: any;
|
|
149
|
+
}) => (event: any) => void;
|
|
150
|
+
declare const handleFocus: (emit: any) => (e: any) => void;
|
|
151
|
+
declare const handleBlur: ({ emit, api, props }: {
|
|
152
|
+
emit: any;
|
|
153
|
+
api: any;
|
|
154
|
+
props: any;
|
|
155
|
+
}) => (e: any) => void;
|
|
156
|
+
declare const handleInput: ({ api, state, vm }: {
|
|
157
|
+
api: any;
|
|
158
|
+
state: any;
|
|
159
|
+
vm: any;
|
|
160
|
+
}) => (val: any, event: any) => void;
|
|
161
|
+
declare const handleClear: (state: ICascaderState) => (_event: any) => void;
|
|
162
|
+
declare const handleExpandChange: ({ constants, dispatch, emit, nextTick, state, updatePopper }: {
|
|
163
|
+
constants: any;
|
|
164
|
+
dispatch: any;
|
|
165
|
+
emit: any;
|
|
166
|
+
nextTick: any;
|
|
167
|
+
state: any;
|
|
168
|
+
updatePopper: any;
|
|
169
|
+
}) => (value: any) => void;
|
|
170
|
+
declare const focusFirstNode: ({ vm, state }: {
|
|
171
|
+
refs: ICascadeRenderlessParamUtils['refs'];
|
|
172
|
+
state: ICascaderState;
|
|
173
|
+
}) => () => void;
|
|
174
|
+
declare const computePresentText: ({ props, state }: {
|
|
175
|
+
props: ICascaderProps;
|
|
176
|
+
state: ICascaderState;
|
|
177
|
+
}) => () => void;
|
|
178
|
+
declare const computePresentTags: ({ api, props, state }: {
|
|
179
|
+
api: ICascaderApi;
|
|
180
|
+
props: ICascaderProps;
|
|
181
|
+
state: ICascaderState;
|
|
182
|
+
}) => () => void;
|
|
183
|
+
declare const calcCollapseTags: ({ state, vm, nextTick }: {
|
|
184
|
+
state: ICascaderState;
|
|
185
|
+
vm: ICascadeRenderlessParamUtils['vm'];
|
|
186
|
+
nextTick: ICascadeRenderlessParamUtils['nextTick'];
|
|
187
|
+
}) => () => void;
|
|
188
|
+
declare const watchInputHover: ({ vm }: {
|
|
189
|
+
vm: ICascadeRenderlessParamUtils['vm'];
|
|
190
|
+
}) => (newVal: any) => void;
|
|
191
|
+
declare const handleMouseenter: ({ vm, state }: {
|
|
192
|
+
vm: ICascadeRenderlessParamUtils['vm'];
|
|
193
|
+
state: ICascaderState;
|
|
194
|
+
}) => ($event: any) => void;
|
|
195
|
+
declare const handleMouseleave: ({ state }: {
|
|
196
|
+
state: ICascaderState;
|
|
197
|
+
}) => () => boolean;
|
|
198
|
+
declare const getSuggestions: ({ nextTick, props, state, updatePopper }: {
|
|
199
|
+
nextTick: ICascadeRenderlessParamUtils['nextTick'];
|
|
200
|
+
props: ICascaderProps;
|
|
201
|
+
state: ICascaderState;
|
|
202
|
+
updatePopper: any;
|
|
203
|
+
}) => () => void;
|
|
204
|
+
declare const handleSuggestionKeyDown: ({ api }: {
|
|
205
|
+
api: ICascaderApi;
|
|
206
|
+
}) => (event: any) => void;
|
|
207
|
+
declare const handleDelete: ({ api, state }: {
|
|
208
|
+
api: ICascaderApi;
|
|
209
|
+
state: ICascaderState;
|
|
210
|
+
}) => () => void;
|
|
211
|
+
declare const handleSuggestionClick: ({ api, state }: {
|
|
212
|
+
api: ICascaderApi;
|
|
213
|
+
state: ICascaderState;
|
|
214
|
+
}) => (index: number) => void;
|
|
215
|
+
declare const deleteTag: ({ emit, state, api }: {
|
|
216
|
+
emit: ICascadeRenderlessParamUtils['emit'];
|
|
217
|
+
state: ICascaderState;
|
|
218
|
+
api: any;
|
|
219
|
+
}) => (index: any) => void;
|
|
220
|
+
declare const updateStyle: ({ parent, vm, state, updatePopper, nextTick, props }: {
|
|
221
|
+
parent: any;
|
|
222
|
+
vm: any;
|
|
223
|
+
state: any;
|
|
224
|
+
updatePopper: any;
|
|
225
|
+
nextTick: any;
|
|
226
|
+
props: any;
|
|
227
|
+
}) => () => void;
|
|
228
|
+
declare const getCheckedNodes: (state: ICascaderState) => (leafOnly: boolean) => Node[];
|
|
229
|
+
declare const setInputHeightToTag: ({ nextTick, parent, state }: {
|
|
230
|
+
nextTick: ICascadeRenderlessParamUtils['nextTick'];
|
|
231
|
+
parent: ICascadeRenderlessParamUtils['parent'];
|
|
232
|
+
state: ICascaderState;
|
|
233
|
+
}) => () => void;
|
|
234
|
+
declare const handleBeforeUpdate: ({ props, api, state }: {
|
|
235
|
+
props: ICascaderProps;
|
|
236
|
+
api: ICascaderApi;
|
|
237
|
+
state: ICascaderState;
|
|
238
|
+
}) => () => void;
|
|
239
|
+
declare const showPlaceholder: ({ props, state, t, constants }: {
|
|
240
|
+
props: ICascaderProps;
|
|
241
|
+
state: ICascaderState;
|
|
242
|
+
t: ICascadeRenderlessParamUtils['t'];
|
|
243
|
+
constants: ICascaderConstants;
|
|
244
|
+
}) => () => string;
|
|
245
|
+
|
|
246
|
+
interface ICascaderState {
|
|
247
|
+
showAutoWidth: boolean;
|
|
248
|
+
/** popper 元素是否显示。 它是通过v-show 绑定到页面上,造成隐藏时,popperJs并没有destory,有一定的性能影响 */
|
|
249
|
+
dropDownVisible: boolean;
|
|
250
|
+
checkedValue: ICascaderPanelNodePropValue;
|
|
251
|
+
inputHover: boolean;
|
|
252
|
+
inputValue: string | null;
|
|
253
|
+
presentText: string | null;
|
|
254
|
+
present: string | null;
|
|
255
|
+
presentTags: Partial<Node & {
|
|
256
|
+
key: string | number;
|
|
257
|
+
text: string;
|
|
258
|
+
closable: boolean;
|
|
259
|
+
hitState: boolean;
|
|
260
|
+
}>[];
|
|
261
|
+
checkedNodes: (Node & {
|
|
262
|
+
text?: string;
|
|
263
|
+
})[];
|
|
264
|
+
filtering: boolean;
|
|
265
|
+
suggestions: Node[];
|
|
266
|
+
inputInitialHeight: number;
|
|
267
|
+
pressDeleteCount: number;
|
|
268
|
+
realSize: 'medium' | 'small' | 'mini';
|
|
269
|
+
formDisabled: boolean;
|
|
270
|
+
displayOnly: boolean;
|
|
271
|
+
disabled: boolean;
|
|
272
|
+
tagSize: 'mini' | 'small';
|
|
273
|
+
isDisabled: boolean;
|
|
274
|
+
isDisplayOnly: boolean;
|
|
275
|
+
config: {
|
|
276
|
+
multiple?: boolean;
|
|
277
|
+
checkStrictly?: boolean;
|
|
278
|
+
};
|
|
279
|
+
multiple: boolean;
|
|
280
|
+
leafOnly: boolean;
|
|
281
|
+
readonly: boolean;
|
|
282
|
+
clearBtnVisible: boolean;
|
|
283
|
+
panel: Element & ICascaderPanelApi;
|
|
284
|
+
placeholder: boolean;
|
|
285
|
+
inputValues: boolean;
|
|
286
|
+
collapseTagsLength: number;
|
|
287
|
+
isHidden: boolean;
|
|
288
|
+
tooltipVisible: boolean;
|
|
289
|
+
tooltipContent: string;
|
|
290
|
+
}
|
|
291
|
+
type ICascaderProps = ExtractPropTypes<typeof cascaderProps>;
|
|
292
|
+
interface ICascaderApi {
|
|
293
|
+
state: ICascaderState;
|
|
294
|
+
handleFocus: ReturnType<typeof handleFocus>;
|
|
295
|
+
handleClear: ReturnType<typeof handleClear>;
|
|
296
|
+
getCheckedNodes: ReturnType<typeof getCheckedNodes>;
|
|
297
|
+
deleteTag: ReturnType<typeof deleteTag>;
|
|
298
|
+
handleDropdownLeave: ReturnType<typeof handleDropdownLeave>;
|
|
299
|
+
focusFirstNode: ReturnType<typeof focusFirstNode>;
|
|
300
|
+
computClearVisible: ReturnType<typeof computClearVisible>;
|
|
301
|
+
showPlaceholder: ReturnType<typeof showPlaceholder>;
|
|
302
|
+
updateStyle: ReturnType<typeof updateStyle>;
|
|
303
|
+
getSuggestions: ReturnType<typeof getSuggestions>;
|
|
304
|
+
handleExpandChange: ReturnType<typeof handleExpandChange>;
|
|
305
|
+
getConfig: ReturnType<typeof getConfig>;
|
|
306
|
+
setInputHeightToTag: ReturnType<typeof setInputHeightToTag>;
|
|
307
|
+
handleSuggestionClick: ReturnType<typeof handleSuggestionClick>;
|
|
308
|
+
handleDelete: ReturnType<typeof handleDelete>;
|
|
309
|
+
computePresentText: ReturnType<typeof computePresentText>;
|
|
310
|
+
handleSuggestionKeyDown: ReturnType<typeof handleSuggestionKeyDown>;
|
|
311
|
+
handleInput: ReturnType<typeof handleInput>;
|
|
312
|
+
handleKeyDown: ReturnType<typeof handleKeyDown>;
|
|
313
|
+
watchValue: ReturnType<typeof watchValue>;
|
|
314
|
+
computePresentTags: ReturnType<typeof computePresentTags>;
|
|
315
|
+
computePresentContent: ReturnType<typeof computePresentContent>;
|
|
316
|
+
watchCheckedValue: ReturnType<typeof watchCheckedValue>;
|
|
317
|
+
toggleDropDownVisible: ReturnType<typeof toggleDropDownVisible>;
|
|
318
|
+
selfMounted: ReturnType<typeof selfMounted>;
|
|
319
|
+
handleBeforeUpdate: ReturnType<typeof handleBeforeUpdate>;
|
|
320
|
+
handleBlur: ReturnType<typeof handleBlur>;
|
|
321
|
+
calcCollapseTags: ReturnType<typeof calcCollapseTags>;
|
|
322
|
+
watchInputHover: ReturnType<typeof watchInputHover>;
|
|
323
|
+
handleMouseenter: ReturnType<typeof handleMouseenter>;
|
|
324
|
+
handleMouseleave: ReturnType<typeof handleMouseleave>;
|
|
325
|
+
filterHandler: Function;
|
|
326
|
+
}
|
|
327
|
+
type ICascaderConstants = ReturnType<typeof cascaderProps._constants.default>;
|
|
328
|
+
type ICascadeRenderlessParamUtils = ISharedRenderlessParamUtils<ICascaderConstants>;
|
|
329
|
+
|
|
330
|
+
export { ICascadeRenderlessParamUtils, ICascaderApi, ICascaderConstants, ICascaderProps, ICascaderState };
|
package/types/checkbox.type.d.ts
CHANGED
|
@@ -54,6 +54,10 @@ declare const checkboxProps: {
|
|
|
54
54
|
default: boolean;
|
|
55
55
|
};
|
|
56
56
|
iconPosition: PropType<IconPosition>;
|
|
57
|
+
shape: {
|
|
58
|
+
type: StringConstructor;
|
|
59
|
+
default: string;
|
|
60
|
+
};
|
|
57
61
|
tiny_mode: StringConstructor;
|
|
58
62
|
tiny_mode_root: BooleanConstructor;
|
|
59
63
|
tiny_template: (FunctionConstructor | ObjectConstructor)[];
|
|
@@ -121,6 +125,8 @@ interface ICheckboxState {
|
|
|
121
125
|
model: ICheckboxModalValue | ICheckboxModalValue[];
|
|
122
126
|
showText: boolean;
|
|
123
127
|
isShowText: boolean;
|
|
128
|
+
tooltipVisible: boolean;
|
|
129
|
+
displayedValue: string;
|
|
124
130
|
}
|
|
125
131
|
type ICheckboxProps = ExtractPropTypes<typeof checkboxProps>;
|
|
126
132
|
type ICheckboxConstants = typeof $constants;
|
package/types/collapse.type.d.ts
CHANGED
|
@@ -35,6 +35,23 @@ declare const collapseProps: {
|
|
|
35
35
|
tiny_chart_theme: ObjectConstructor;
|
|
36
36
|
};
|
|
37
37
|
|
|
38
|
+
/**
|
|
39
|
+
* Copyright (c) 2022 - present TinyVue Authors.
|
|
40
|
+
* Copyright (c) 2022 - present Huawei Cloud Computing Technologies Co., Ltd.
|
|
41
|
+
*
|
|
42
|
+
* Use of this source code is governed by an MIT-style license.
|
|
43
|
+
*
|
|
44
|
+
* THE OPEN SOURCE SOFTWARE IN THIS PRODUCT IS DISTRIBUTED IN THE HOPE THAT IT WILL BE USEFUL,
|
|
45
|
+
* BUT WITHOUT ANY WARRANTY, WITHOUT EVEN THE IMPLIED WARRANTY OF MERCHANTABILITY OR FITNESS FOR
|
|
46
|
+
* A PARTICULAR PURPOSE. SEE THE APPLICABLE LICENSES FOR MORE DETAILS.
|
|
47
|
+
*
|
|
48
|
+
*/
|
|
49
|
+
|
|
50
|
+
declare const setActiveNames: ({ emit, props, state }: Pick<ICollapseRenderlessParams, 'emit' | 'props' | 'state'>) => (activeNames: string | string[]) => void;
|
|
51
|
+
declare const handleItemClick: ({ api, props, state }: Pick<ICollapseRenderlessParams, 'api' | 'props' | 'state'>) => (item?: Object & {
|
|
52
|
+
name: string;
|
|
53
|
+
}) => void;
|
|
54
|
+
|
|
38
55
|
type ICollapseProps = ExtractPropTypes<typeof collapseProps>;
|
|
39
56
|
type ICollapseConstants = typeof $constants;
|
|
40
57
|
interface ICollapseState {
|
|
@@ -48,8 +65,8 @@ type ICollapseRenderlessParams = ISharedRenderlessFunctionParams<ICollapseConsta
|
|
|
48
65
|
};
|
|
49
66
|
interface ICollapseApi {
|
|
50
67
|
state: ICollapseState;
|
|
51
|
-
setActiveNames:
|
|
52
|
-
handleItemClick:
|
|
68
|
+
setActiveNames: ReturnType<typeof setActiveNames>;
|
|
69
|
+
handleItemClick: ReturnType<typeof handleItemClick>;
|
|
53
70
|
}
|
|
54
71
|
type ICollapseRenderlessParamUtils = ISharedRenderlessParamUtils<ICollapseConstants>;
|
|
55
72
|
|
|
@@ -27,8 +27,41 @@ declare const $constants: {
|
|
|
27
27
|
Day: string;
|
|
28
28
|
};
|
|
29
29
|
declare const datePickerProps: {
|
|
30
|
+
tabindex: {
|
|
31
|
+
type: StringConstructor;
|
|
32
|
+
default: string;
|
|
33
|
+
};
|
|
34
|
+
timeFormat: StringConstructor;
|
|
35
|
+
suffixIcon: ObjectConstructor;
|
|
36
|
+
label: StringConstructor;
|
|
37
|
+
shape: StringConstructor;
|
|
38
|
+
tip: StringConstructor;
|
|
39
|
+
changeOnConfirm: {
|
|
40
|
+
type: BooleanConstructor;
|
|
41
|
+
default: boolean;
|
|
42
|
+
};
|
|
43
|
+
popperAppendToBody: {
|
|
44
|
+
type: BooleanConstructor;
|
|
45
|
+
default: boolean;
|
|
46
|
+
};
|
|
47
|
+
isutc8: {
|
|
48
|
+
type: BooleanConstructor;
|
|
49
|
+
default: boolean;
|
|
50
|
+
};
|
|
51
|
+
dbTimezone: NumberConstructor;
|
|
52
|
+
timezoneOffset: NumberConstructor;
|
|
53
|
+
iso8601: BooleanConstructor;
|
|
54
|
+
autoFormat: {
|
|
55
|
+
type: BooleanConstructor;
|
|
56
|
+
default: boolean;
|
|
57
|
+
};
|
|
58
|
+
title: StringConstructor;
|
|
59
|
+
blank: {
|
|
60
|
+
type: BooleanConstructor;
|
|
61
|
+
default: boolean;
|
|
62
|
+
};
|
|
30
63
|
type: {
|
|
31
|
-
type: PropType<"date" | "dates" | "
|
|
64
|
+
type: PropType<"date" | "dates" | "daterange" | "week" | "month" | "monthrange" | "year" | "years" | "yearrange" | "datetime" | "datetimerange">;
|
|
32
65
|
default: string;
|
|
33
66
|
};
|
|
34
67
|
_constants: {
|
|
@@ -154,6 +187,10 @@ declare const datePickerProps: {
|
|
|
154
187
|
default: boolean;
|
|
155
188
|
};
|
|
156
189
|
formatWeeks: FunctionConstructor;
|
|
190
|
+
changeCompat: {
|
|
191
|
+
type: BooleanConstructor;
|
|
192
|
+
default: boolean;
|
|
193
|
+
};
|
|
157
194
|
tiny_mode: StringConstructor;
|
|
158
195
|
tiny_mode_root: BooleanConstructor;
|
|
159
196
|
tiny_template: (FunctionConstructor | ObjectConstructor)[];
|
|
@@ -56,7 +56,7 @@ declare const dialogBoxProps: {
|
|
|
56
56
|
default: () => boolean;
|
|
57
57
|
};
|
|
58
58
|
destroyOnClose: {
|
|
59
|
-
|
|
59
|
+
type: BooleanConstructor;
|
|
60
60
|
default: () => boolean;
|
|
61
61
|
};
|
|
62
62
|
dialogClass: {
|
|
@@ -67,6 +67,10 @@ declare const dialogBoxProps: {
|
|
|
67
67
|
type: BooleanConstructor;
|
|
68
68
|
default: () => boolean;
|
|
69
69
|
};
|
|
70
|
+
dragOutsideWindow: {
|
|
71
|
+
type: BooleanConstructor;
|
|
72
|
+
default: () => boolean;
|
|
73
|
+
};
|
|
70
74
|
fullscreen: {
|
|
71
75
|
type: BooleanConstructor;
|
|
72
76
|
default: () => boolean;
|
|
@@ -141,14 +145,16 @@ declare const dialogBoxProps: {
|
|
|
141
145
|
*/
|
|
142
146
|
|
|
143
147
|
declare const computedAnimationName: ({ constants, props }: Pick<IDialogBoxRenderlessParams, 'constants' | 'props'>) => () => string;
|
|
144
|
-
declare const computedStyle: ({ props, state }: Pick<IDialogBoxRenderlessParams, 'props' | 'state'>) => () => IDialogBoxStyle;
|
|
148
|
+
declare const computedStyle: ({ props, state, designConfig }: Pick<IDialogBoxRenderlessParams, 'props' | 'state' | 'designConfig'>) => () => IDialogBoxStyle;
|
|
145
149
|
declare const computedBodyStyle: ({ props }: Pick<IDialogBoxRenderlessParams, 'props'>) => () => {
|
|
146
150
|
maxHeight?: string | undefined;
|
|
147
151
|
};
|
|
148
152
|
declare const watchVisible: ({ api, constants, emit, nextTick, parent, props, vm, state }: Pick<IDialogBoxRenderlessParams, 'api' | 'constants' | 'emit' | 'nextTick' | 'parent' | 'props' | 'vm' | 'state'>) => (val: boolean) => void;
|
|
149
153
|
declare const mounted: ({ api, parent, props }: Pick<IDialogBoxRenderlessParams, 'api' | 'parent' | 'props'>) => () => void;
|
|
150
154
|
declare const unMounted: ({ api, parent, props }: Pick<IDialogBoxRenderlessParams, 'api' | 'parent' | 'props'>) => () => void;
|
|
151
|
-
declare const
|
|
155
|
+
declare const useMouseEventDown: ({ state }: Pick<IDialogBoxRenderlessParams, 'state'>) => (event: MouseEvent) => void;
|
|
156
|
+
declare const useMouseEventUp: ({ state }: Pick<IDialogBoxRenderlessParams, 'state'>) => (event: MouseEvent) => void;
|
|
157
|
+
declare const handleWrapperClick: ({ api, props, state }: Pick<IDialogBoxRenderlessParams, 'api' | 'props' | 'state'>) => () => void;
|
|
152
158
|
declare const handleClose: ({ api, constants, emit, parent, props }: Pick<IDialogBoxRenderlessParams, 'api' | 'constants' | 'emit' | 'parent' | 'props'>) => (type?: string) => void;
|
|
153
159
|
declare const hide: ({ api, emit, state, props }: Pick<IDialogBoxRenderlessParams, 'api' | 'emit' | 'state' | 'props'>) => (cancel?: boolean) => void;
|
|
154
160
|
declare const handleConfirm: ({ api, emit }: Pick<IDialogBoxRenderlessParams, 'api' | 'emit'>) => () => void;
|
|
@@ -195,6 +201,8 @@ interface IDialogBoxState {
|
|
|
195
201
|
animationName: string;
|
|
196
202
|
opened?: boolean;
|
|
197
203
|
rendered?: boolean;
|
|
204
|
+
mouseUpWrapperFlag: boolean;
|
|
205
|
+
mouseDownWrapperFlag: boolean;
|
|
198
206
|
}
|
|
199
207
|
interface IDialogBoxApi {
|
|
200
208
|
state: IDialogBoxState;
|
|
@@ -205,6 +213,8 @@ interface IDialogBoxApi {
|
|
|
205
213
|
handleConfirm: ReturnType<typeof handleConfirm>;
|
|
206
214
|
updatePopper: ReturnType<typeof updatePopper>;
|
|
207
215
|
handleWrapperClick: ReturnType<typeof handleWrapperClick>;
|
|
216
|
+
useMouseEventDown: ReturnType<typeof useMouseEventDown>;
|
|
217
|
+
useMouseEventUp: ReturnType<typeof useMouseEventUp>;
|
|
208
218
|
hide: ReturnType<typeof hide>;
|
|
209
219
|
handleClose: ReturnType<typeof handleClose>;
|
|
210
220
|
watchVisible: ReturnType<typeof watchVisible>;
|
package/types/drawer.type.d.ts
CHANGED
|
@@ -1,2 +1,134 @@
|
|
|
1
|
+
import { ComputedRef, ExtractPropTypes } from 'vue';
|
|
2
|
+
import { ISharedRenderlessParamUtils } from './shared.type.js';
|
|
1
3
|
|
|
2
|
-
|
|
4
|
+
declare const drawerProps: {
|
|
5
|
+
_constants: {
|
|
6
|
+
type: ObjectConstructor;
|
|
7
|
+
default: () => {
|
|
8
|
+
SCROLL_LOCK_CLASS(mode: string): string;
|
|
9
|
+
DEFAULT_WIDTH: string;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
visible: {
|
|
13
|
+
type: BooleanConstructor;
|
|
14
|
+
default: boolean;
|
|
15
|
+
};
|
|
16
|
+
customClass: (StringConstructor | ObjectConstructor | ArrayConstructor)[];
|
|
17
|
+
placement: {
|
|
18
|
+
type: StringConstructor;
|
|
19
|
+
default: string;
|
|
20
|
+
};
|
|
21
|
+
width: {
|
|
22
|
+
type: StringConstructor;
|
|
23
|
+
};
|
|
24
|
+
title: StringConstructor;
|
|
25
|
+
showClose: {
|
|
26
|
+
type: BooleanConstructor;
|
|
27
|
+
default: boolean;
|
|
28
|
+
};
|
|
29
|
+
showHeader: {
|
|
30
|
+
type: BooleanConstructor;
|
|
31
|
+
default: boolean;
|
|
32
|
+
};
|
|
33
|
+
showFooter: {
|
|
34
|
+
type: BooleanConstructor;
|
|
35
|
+
default: boolean;
|
|
36
|
+
};
|
|
37
|
+
mask: {
|
|
38
|
+
type: BooleanConstructor;
|
|
39
|
+
default: boolean;
|
|
40
|
+
};
|
|
41
|
+
maskClosable: {
|
|
42
|
+
type: BooleanConstructor;
|
|
43
|
+
default: boolean;
|
|
44
|
+
};
|
|
45
|
+
dragable: BooleanConstructor;
|
|
46
|
+
lockScroll: {
|
|
47
|
+
type: BooleanConstructor;
|
|
48
|
+
default: boolean;
|
|
49
|
+
};
|
|
50
|
+
flex: {
|
|
51
|
+
type: BooleanConstructor;
|
|
52
|
+
default: boolean;
|
|
53
|
+
};
|
|
54
|
+
zIndex: {
|
|
55
|
+
type: NumberConstructor;
|
|
56
|
+
default: number;
|
|
57
|
+
};
|
|
58
|
+
beforeClose: FunctionConstructor;
|
|
59
|
+
tipsProps: ObjectConstructor;
|
|
60
|
+
tiny_mode: StringConstructor;
|
|
61
|
+
tiny_mode_root: BooleanConstructor;
|
|
62
|
+
tiny_template: (FunctionConstructor | ObjectConstructor)[];
|
|
63
|
+
tiny_renderless: FunctionConstructor;
|
|
64
|
+
tiny_theme: StringConstructor;
|
|
65
|
+
tiny_chart_theme: ObjectConstructor;
|
|
66
|
+
};
|
|
67
|
+
|
|
68
|
+
declare const close: ({ api }: {
|
|
69
|
+
api: any;
|
|
70
|
+
}) => (force?: boolean) => void;
|
|
71
|
+
declare const watchVisible: ({ state }: {
|
|
72
|
+
state: IDrawerState;
|
|
73
|
+
}) => (bool: any) => void;
|
|
74
|
+
declare const watchToggle: ({ emit }: {
|
|
75
|
+
emit: ISharedRenderlessParamUtils['emit'];
|
|
76
|
+
}) => (bool: boolean) => void;
|
|
77
|
+
declare const confirm: ({ api }: {
|
|
78
|
+
api: any;
|
|
79
|
+
}) => () => void;
|
|
80
|
+
declare const mousedown: ({ state, vm }: {
|
|
81
|
+
vm: ISharedRenderlessParamUtils<IDrawerCT>['vm'];
|
|
82
|
+
state: IDrawerState;
|
|
83
|
+
}) => (event: any) => void;
|
|
84
|
+
declare const mousemove: ({ state, props }: {
|
|
85
|
+
state: IDrawerState;
|
|
86
|
+
props: IDrawerProps;
|
|
87
|
+
}) => EventListenerOrEventListenerObject;
|
|
88
|
+
declare const mouseup: ({ state }: {
|
|
89
|
+
state: IDrawerState;
|
|
90
|
+
}) => () => void;
|
|
91
|
+
declare const addDragEvent: ({ api, vm }: {
|
|
92
|
+
api: IDrawerApi;
|
|
93
|
+
vm: ISharedRenderlessParamUtils<IDrawerCT>['vm'];
|
|
94
|
+
}) => () => void;
|
|
95
|
+
declare const removeDragEvent: ({ api, vm }: {
|
|
96
|
+
api: IDrawerApi;
|
|
97
|
+
vm: ISharedRenderlessParamUtils<IDrawerCT>['vm'];
|
|
98
|
+
}) => () => void;
|
|
99
|
+
declare const showScrollbar: (lockScrollClass: any) => () => void;
|
|
100
|
+
declare const hideScrollbar: (lockScrollClass: any) => () => void;
|
|
101
|
+
declare const watchVisibleNotImmediate: ({ api, props }: {
|
|
102
|
+
api: IDrawerApi;
|
|
103
|
+
props: IDrawerProps;
|
|
104
|
+
}) => (visible: boolean) => void;
|
|
105
|
+
|
|
106
|
+
interface IDrawerState {
|
|
107
|
+
toggle: boolean;
|
|
108
|
+
width: number;
|
|
109
|
+
dragEvent: {
|
|
110
|
+
x: number;
|
|
111
|
+
isDrag: boolean;
|
|
112
|
+
offsetWidth: number;
|
|
113
|
+
};
|
|
114
|
+
computedWidth: ComputedRef<string>;
|
|
115
|
+
}
|
|
116
|
+
type IDrawerProps = ExtractPropTypes<typeof drawerProps>;
|
|
117
|
+
interface IDrawerApi {
|
|
118
|
+
state: IDrawerState;
|
|
119
|
+
confirm: ReturnType<typeof confirm>;
|
|
120
|
+
close: ReturnType<typeof close>;
|
|
121
|
+
mousemove: ReturnType<typeof mousemove>;
|
|
122
|
+
mouseup: ReturnType<typeof mouseup>;
|
|
123
|
+
mousedown: ReturnType<typeof mousedown>;
|
|
124
|
+
addDragEvent: ReturnType<typeof addDragEvent>;
|
|
125
|
+
removeDragEvent: ReturnType<typeof removeDragEvent>;
|
|
126
|
+
watchVisible: ReturnType<typeof watchVisible>;
|
|
127
|
+
watchToggle: ReturnType<typeof watchToggle>;
|
|
128
|
+
showScrollbar: ReturnType<typeof showScrollbar>;
|
|
129
|
+
hideScrollbar: ReturnType<typeof hideScrollbar>;
|
|
130
|
+
watchVisibleNotImmediate: ReturnType<typeof watchVisibleNotImmediate>;
|
|
131
|
+
}
|
|
132
|
+
type IDrawerCT = ReturnType<typeof drawerProps._constants.default>;
|
|
133
|
+
|
|
134
|
+
export { IDrawerApi, IDrawerCT, IDrawerProps, IDrawerState };
|
|
@@ -35,10 +35,7 @@ declare const dropdownItemProps: {
|
|
|
35
35
|
default: string;
|
|
36
36
|
};
|
|
37
37
|
title: StringConstructor;
|
|
38
|
-
label:
|
|
39
|
-
type: StringConstructor;
|
|
40
|
-
default: string;
|
|
41
|
-
};
|
|
38
|
+
label: StringConstructor;
|
|
42
39
|
level: StringConstructor;
|
|
43
40
|
titleClass: StringConstructor;
|
|
44
41
|
options: {
|
|
@@ -109,18 +106,12 @@ declare const dropdownMenuProps: {
|
|
|
109
106
|
type: BooleanConstructor;
|
|
110
107
|
default: boolean;
|
|
111
108
|
};
|
|
112
|
-
visibleArrow:
|
|
113
|
-
type: BooleanConstructor;
|
|
114
|
-
default: boolean;
|
|
115
|
-
};
|
|
109
|
+
visibleArrow: BooleanConstructor;
|
|
116
110
|
arrowOffset: {
|
|
117
111
|
type: NumberConstructor;
|
|
118
112
|
default: number;
|
|
119
113
|
};
|
|
120
|
-
placement:
|
|
121
|
-
type: StringConstructor;
|
|
122
|
-
default: string;
|
|
123
|
-
};
|
|
114
|
+
placement: StringConstructor;
|
|
124
115
|
popperClass: StringConstructor;
|
|
125
116
|
popperAppendToBody: {
|
|
126
117
|
type: BooleanConstructor;
|
|
@@ -249,7 +240,7 @@ declare const tagClick: ({ emit, props }: Pick<IDropdownItemRenderlessParams, 'e
|
|
|
249
240
|
declare const confirm: ({ emit, props, state }: Pick<IDropdownItemRenderlessParams, 'emit' | 'props' | 'state'>) => () => void;
|
|
250
241
|
declare const reset: ({ emit, props }: Pick<IDropdownItemRenderlessParams, 'emit' | 'props'>) => () => void;
|
|
251
242
|
declare const clickOutside: (parent: IDropdownItemRenderlessParams['parent']) => () => void;
|
|
252
|
-
declare const handleClick: ({ props, dispatch, vm, emit }: Pick<IDropdownItemRenderlessParams, 'props' | 'dispatch' | 'vm' | 'emit'>) => (event: MouseEvent) => void;
|
|
243
|
+
declare const handleClick: ({ state, props, dispatch, vm, emit }: Pick<IDropdownItemRenderlessParams, 'state' | 'props' | 'dispatch' | 'vm' | 'emit'>) => (event: MouseEvent) => void;
|
|
253
244
|
declare const computedGetIcon: ({ constants, designConfig }: Pick<IDropdownItemRenderlessParams, 'constants' | 'designConfig'>) => (name?: string) => object | string;
|
|
254
245
|
declare const getTip: ({ props, vm }: Pick<IDropdownItemRenderlessParams, 'props' | 'vm'>) => string;
|
|
255
246
|
|
|
@@ -261,6 +252,7 @@ type IDropdownItemVm = ComponentPublicInstance & {
|
|
|
261
252
|
type IDropdownItemProps = ExtractPropTypes<typeof dropdownItemProps>;
|
|
262
253
|
type IDropdownItemConstants = typeof $constants;
|
|
263
254
|
interface IDropdownItemState {
|
|
255
|
+
checkedStatus: boolean;
|
|
264
256
|
sort: 'asc' | 'desc';
|
|
265
257
|
transition: boolean;
|
|
266
258
|
getTitle: boolean;
|
|
@@ -274,6 +266,8 @@ interface IDropdownItemState {
|
|
|
274
266
|
itemStyle: ComputedRef<string>;
|
|
275
267
|
activeColor: ComputedRef<string>;
|
|
276
268
|
closeOnClickOverlay: ComputedRef<boolean>;
|
|
269
|
+
dropdownMenuVm: IDropdownMenuVm;
|
|
270
|
+
currentIndex: number;
|
|
277
271
|
textField: string;
|
|
278
272
|
popperClass: string;
|
|
279
273
|
getIcon: ComputedRef<object>;
|