@opentiny/vue-renderless 3.13.1 → 3.14.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-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/date.js +7 -5
- package/common/deps/clickoutside.js +6 -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 +14 -6
- package/date-table/index.js +5 -0
- package/date-table/vue.js +3 -1
- 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 +46 -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 +258 -49
- package/picker/mb.js +42 -0
- package/picker/vue.js +70 -17
- 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 +71 -32
- 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 +457 -389
- package/select/vue.js +257 -161
- 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 +31 -5
- 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/alert.type.d.ts +1 -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 +9 -3
- package/types/collapse.type.d.ts +20 -3
- package/types/date-picker.type.d.ts +37 -0
- 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-222799ae.d.ts} +5 -2
- 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 +1 -5
- 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/milestone.type.d.ts +1 -1
- 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 +13 -1
- package/types/picker.type.d.ts +18 -0
- package/types/popconfirm.type.d.ts +86 -1
- package/types/popeditor.type.d.ts +5 -1
- package/types/popover.type.d.ts +3 -3
- package/types/progress.type.d.ts +3 -1
- 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 +15 -4
- package/types/switch.type.d.ts +3 -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 +2 -2
- package/types/{upload-list.type-343e8c11.d.ts → upload-list.type-a29aea50.d.ts} +31 -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 +34 -25
- 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/rate.type.d.ts
CHANGED
|
@@ -1,2 +1,237 @@
|
|
|
1
|
+
import { ExtractPropTypes } from 'vue';
|
|
2
|
+
import { ISharedRenderlessFunctionParams, ISharedRenderlessParamUtils } from './shared.type.js';
|
|
1
3
|
|
|
2
|
-
|
|
4
|
+
declare const $constants: {
|
|
5
|
+
RATENODECLS: string;
|
|
6
|
+
ICON_PREFIXCLS: string;
|
|
7
|
+
DECIMALCLS: string;
|
|
8
|
+
};
|
|
9
|
+
declare const rateProps: {
|
|
10
|
+
_constants: {
|
|
11
|
+
type: ObjectConstructor;
|
|
12
|
+
default: () => {
|
|
13
|
+
RATENODECLS: string;
|
|
14
|
+
ICON_PREFIXCLS: string;
|
|
15
|
+
DECIMALCLS: string;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
allowHalf: {
|
|
19
|
+
type: BooleanConstructor;
|
|
20
|
+
default: boolean;
|
|
21
|
+
};
|
|
22
|
+
colors: {
|
|
23
|
+
type: ArrayConstructor;
|
|
24
|
+
default: () => string[];
|
|
25
|
+
};
|
|
26
|
+
disabled: {
|
|
27
|
+
type: BooleanConstructor;
|
|
28
|
+
default: boolean;
|
|
29
|
+
};
|
|
30
|
+
disabledVoidColor: {
|
|
31
|
+
type: StringConstructor;
|
|
32
|
+
default: string;
|
|
33
|
+
};
|
|
34
|
+
disabledVoidIconClass: {
|
|
35
|
+
type: StringConstructor;
|
|
36
|
+
default: string;
|
|
37
|
+
};
|
|
38
|
+
highThreshold: {
|
|
39
|
+
type: NumberConstructor;
|
|
40
|
+
default: number;
|
|
41
|
+
};
|
|
42
|
+
iconClasses: {
|
|
43
|
+
type: ArrayConstructor;
|
|
44
|
+
default: () => string[];
|
|
45
|
+
};
|
|
46
|
+
lowThreshold: {
|
|
47
|
+
type: NumberConstructor;
|
|
48
|
+
default: number;
|
|
49
|
+
};
|
|
50
|
+
max: {
|
|
51
|
+
type: NumberConstructor;
|
|
52
|
+
default: number;
|
|
53
|
+
};
|
|
54
|
+
modelValue: {
|
|
55
|
+
type: NumberConstructor;
|
|
56
|
+
default: number;
|
|
57
|
+
};
|
|
58
|
+
radio: {
|
|
59
|
+
type: BooleanConstructor;
|
|
60
|
+
default: boolean;
|
|
61
|
+
};
|
|
62
|
+
scoreTemplate: {
|
|
63
|
+
type: StringConstructor;
|
|
64
|
+
default: string;
|
|
65
|
+
};
|
|
66
|
+
showScore: {
|
|
67
|
+
type: BooleanConstructor;
|
|
68
|
+
default: boolean;
|
|
69
|
+
};
|
|
70
|
+
showText: {
|
|
71
|
+
type: BooleanConstructor;
|
|
72
|
+
default: boolean;
|
|
73
|
+
};
|
|
74
|
+
size: {
|
|
75
|
+
type: StringConstructor;
|
|
76
|
+
default: string;
|
|
77
|
+
};
|
|
78
|
+
space: {
|
|
79
|
+
type: StringConstructor;
|
|
80
|
+
default: string;
|
|
81
|
+
};
|
|
82
|
+
textColor: {
|
|
83
|
+
type: StringConstructor;
|
|
84
|
+
default: string;
|
|
85
|
+
};
|
|
86
|
+
textOnBottom: {
|
|
87
|
+
type: BooleanConstructor;
|
|
88
|
+
default: boolean;
|
|
89
|
+
};
|
|
90
|
+
texts: {
|
|
91
|
+
type: ArrayConstructor;
|
|
92
|
+
default: () => any[];
|
|
93
|
+
};
|
|
94
|
+
voidColor: {
|
|
95
|
+
type: StringConstructor;
|
|
96
|
+
default: string;
|
|
97
|
+
};
|
|
98
|
+
voidIconClass: {
|
|
99
|
+
type: StringConstructor;
|
|
100
|
+
default: string;
|
|
101
|
+
};
|
|
102
|
+
tiny_mode: StringConstructor;
|
|
103
|
+
tiny_mode_root: BooleanConstructor;
|
|
104
|
+
tiny_template: (FunctionConstructor | ObjectConstructor)[];
|
|
105
|
+
tiny_renderless: FunctionConstructor;
|
|
106
|
+
tiny_theme: StringConstructor;
|
|
107
|
+
tiny_chart_theme: ObjectConstructor;
|
|
108
|
+
};
|
|
109
|
+
|
|
110
|
+
/**
|
|
111
|
+
* Copyright (c) 2022 - present TinyVue Authors.
|
|
112
|
+
* Copyright (c) 2022 - present Huawei Cloud Computing Technologies Co., Ltd.
|
|
113
|
+
*
|
|
114
|
+
* Use of this source code is governed by an MIT-style license.
|
|
115
|
+
*
|
|
116
|
+
* THE OPEN SOURCE SOFTWARE IN THIS PRODUCT IS DISTRIBUTED IN THE HOPE THAT IT WILL BE USEFUL,
|
|
117
|
+
* BUT WITHOUT ANY WARRANTY, WITHOUT EVEN THE IMPLIED WARRANTY OF MERCHANTABILITY OR FITNESS FOR
|
|
118
|
+
* A PARTICULAR PURPOSE. SEE THE APPLICABLE LICENSES FOR MORE DETAILS.
|
|
119
|
+
*
|
|
120
|
+
*/
|
|
121
|
+
|
|
122
|
+
declare const computedActiveColor: (props: IRateProps) => (state: IRateState) => string;
|
|
123
|
+
declare const computedActiveClass: (props: IRateProps) => (state: IRateState) => string;
|
|
124
|
+
declare const getTextStyle: ({ props, state }: {
|
|
125
|
+
props: any;
|
|
126
|
+
state: any;
|
|
127
|
+
}) => () => {
|
|
128
|
+
color: any;
|
|
129
|
+
};
|
|
130
|
+
declare const handelKey: ({ emit, props, state }: {
|
|
131
|
+
emit: any;
|
|
132
|
+
props: any;
|
|
133
|
+
state: any;
|
|
134
|
+
}) => (event: any) => void;
|
|
135
|
+
declare const selectValue: ({ emit, props, state }: {
|
|
136
|
+
emit: any;
|
|
137
|
+
props: any;
|
|
138
|
+
state: any;
|
|
139
|
+
}) => (value: any) => void;
|
|
140
|
+
declare const setCurrentValue: ({ constants: { RATENODECLS, DECIMALCLS, ICON_PREFIXCLS }, props, state, parent, api }: {
|
|
141
|
+
constants: {
|
|
142
|
+
RATENODECLS: any;
|
|
143
|
+
DECIMALCLS: any;
|
|
144
|
+
ICON_PREFIXCLS: any;
|
|
145
|
+
};
|
|
146
|
+
props: any;
|
|
147
|
+
state: any;
|
|
148
|
+
parent: any;
|
|
149
|
+
api: any;
|
|
150
|
+
}) => ({ event, item }: {
|
|
151
|
+
event: any;
|
|
152
|
+
item: any;
|
|
153
|
+
}) => void;
|
|
154
|
+
declare const resetCurrentValue: ({ props, state }: {
|
|
155
|
+
props: any;
|
|
156
|
+
state: any;
|
|
157
|
+
}) => () => void;
|
|
158
|
+
declare const showDecimalIcon: ({ props, state }: {
|
|
159
|
+
props: any;
|
|
160
|
+
state: any;
|
|
161
|
+
}) => (item: any) => any;
|
|
162
|
+
declare const getIconStyle: ({ api, props, state }: {
|
|
163
|
+
api: any;
|
|
164
|
+
props: any;
|
|
165
|
+
state: any;
|
|
166
|
+
}) => (item: any) => {
|
|
167
|
+
fill: any;
|
|
168
|
+
'font-size': any;
|
|
169
|
+
};
|
|
170
|
+
declare const computedText: ({ props, state }: Pick<IRateRenderlessParams, 'props' | 'state'>) => string;
|
|
171
|
+
declare const computedDecimalStyle: ({ props, state }: Pick<IRateRenderlessParams, 'props' | 'state'>) => {
|
|
172
|
+
fill: string;
|
|
173
|
+
width: string;
|
|
174
|
+
clip: string;
|
|
175
|
+
clipPath: string;
|
|
176
|
+
fontSize: string;
|
|
177
|
+
};
|
|
178
|
+
declare const computedClasses: ({ props, state }: Pick<IRateRenderlessParams, 'props' | 'state'>) => string[];
|
|
179
|
+
declare const computedClassMap: (props: IRateProps) => {
|
|
180
|
+
lowClass: unknown;
|
|
181
|
+
mediumClass: unknown;
|
|
182
|
+
highClass: unknown;
|
|
183
|
+
voidClass: string;
|
|
184
|
+
disabledVoidClass: string;
|
|
185
|
+
};
|
|
186
|
+
declare const computedColorMap: (props: IRateProps) => {
|
|
187
|
+
lowColor: unknown;
|
|
188
|
+
mediumColor: unknown;
|
|
189
|
+
highColor: unknown;
|
|
190
|
+
voidColor: string;
|
|
191
|
+
disabledVoidColor: string;
|
|
192
|
+
};
|
|
193
|
+
declare const computedVoidClass: ({ props, state }: Pick<IRateRenderlessParams, 'props' | 'state'>) => string;
|
|
194
|
+
|
|
195
|
+
interface IRateState {
|
|
196
|
+
pointerAtLeftHalf: boolean;
|
|
197
|
+
colorMap: ReturnType<typeof computedColorMap>;
|
|
198
|
+
classMap: ReturnType<typeof computedClassMap>;
|
|
199
|
+
text: ReturnType<typeof computedText>;
|
|
200
|
+
activeClass: string;
|
|
201
|
+
activeColor: string;
|
|
202
|
+
classes: ReturnType<typeof computedClasses>;
|
|
203
|
+
decimalIconClass: string;
|
|
204
|
+
voidClass: ReturnType<typeof computedVoidClass>;
|
|
205
|
+
decimalStyle: ReturnType<typeof computedDecimalStyle>;
|
|
206
|
+
hoverIndex: number;
|
|
207
|
+
currentValue: number;
|
|
208
|
+
mouseTarget: null | HTMLElement;
|
|
209
|
+
}
|
|
210
|
+
type IRateProps = ExtractPropTypes<typeof rateProps>;
|
|
211
|
+
type IRateConstants = typeof $constants;
|
|
212
|
+
type IRateRenderlessParams = ISharedRenderlessFunctionParams<IRateConstants> & {
|
|
213
|
+
api: IRateApi;
|
|
214
|
+
state: IRateState;
|
|
215
|
+
props: IRateProps;
|
|
216
|
+
};
|
|
217
|
+
interface IRateApi {
|
|
218
|
+
state: IRateState;
|
|
219
|
+
computedText: typeof computedText;
|
|
220
|
+
computedClasses: typeof computedClasses;
|
|
221
|
+
computedClassMap: typeof computedClassMap;
|
|
222
|
+
computedColorMap: typeof computedColorMap;
|
|
223
|
+
computedVoidClass: typeof computedVoidClass;
|
|
224
|
+
computedDecimalStyle: typeof computedDecimalStyle;
|
|
225
|
+
getTextStyle: ReturnType<typeof getTextStyle>;
|
|
226
|
+
handelKey: ReturnType<typeof handelKey>;
|
|
227
|
+
computedActiveColor: ReturnType<typeof computedActiveColor>;
|
|
228
|
+
computedActiveClass: ReturnType<typeof computedActiveClass>;
|
|
229
|
+
showDecimalIcon: ReturnType<typeof showDecimalIcon>;
|
|
230
|
+
getIconStyle: ReturnType<typeof getIconStyle>;
|
|
231
|
+
selectValue: ReturnType<typeof selectValue>;
|
|
232
|
+
resetCurrentValue: ReturnType<typeof resetCurrentValue>;
|
|
233
|
+
setCurrentValue: ReturnType<typeof setCurrentValue>;
|
|
234
|
+
}
|
|
235
|
+
type IRateRenderlessParamUtils = ISharedRenderlessParamUtils<IRateConstants>;
|
|
236
|
+
|
|
237
|
+
export { IRateApi, IRateConstants, IRateProps, IRateRenderlessParamUtils, IRateRenderlessParams, IRateState };
|
package/types/search.type.d.ts
CHANGED
|
@@ -1,6 +1,91 @@
|
|
|
1
1
|
import { ExtractPropTypes } from 'vue';
|
|
2
2
|
import { ISharedRenderlessFunctionParams, ISharedRenderlessParamUtils } from './shared.type.js';
|
|
3
3
|
|
|
4
|
+
declare const searchProps: {
|
|
5
|
+
mini: {
|
|
6
|
+
type: BooleanConstructor;
|
|
7
|
+
default: boolean;
|
|
8
|
+
};
|
|
9
|
+
big: {
|
|
10
|
+
type: BooleanConstructor;
|
|
11
|
+
default: boolean;
|
|
12
|
+
};
|
|
13
|
+
buttonText: {
|
|
14
|
+
type: StringConstructor;
|
|
15
|
+
default: () => any;
|
|
16
|
+
};
|
|
17
|
+
/**
|
|
18
|
+
* 设置为透明模式,配置为true时,边框变为透明且收缩后半透明显示,一般用在带有背景的场景
|
|
19
|
+
*/
|
|
20
|
+
transparent: {
|
|
21
|
+
type: BooleanConstructor;
|
|
22
|
+
default: boolean;
|
|
23
|
+
};
|
|
24
|
+
/**
|
|
25
|
+
* 搜索的类型选项,格式为[{text:'文档',value:1},...],不配置时类型选择固定显示为All
|
|
26
|
+
*/
|
|
27
|
+
searchTypes: {
|
|
28
|
+
type: ArrayConstructor;
|
|
29
|
+
default: () => never[];
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* 设置搜索输入框内的提示占位文本
|
|
33
|
+
*/
|
|
34
|
+
placeholder: {
|
|
35
|
+
type: StringConstructor;
|
|
36
|
+
default: string;
|
|
37
|
+
};
|
|
38
|
+
modelValue: {
|
|
39
|
+
type: StringConstructor;
|
|
40
|
+
default: string;
|
|
41
|
+
};
|
|
42
|
+
clearable: {
|
|
43
|
+
type: BooleanConstructor;
|
|
44
|
+
default: boolean;
|
|
45
|
+
};
|
|
46
|
+
tabindex: {
|
|
47
|
+
type: StringConstructor;
|
|
48
|
+
default: string;
|
|
49
|
+
};
|
|
50
|
+
/**
|
|
51
|
+
* 配置搜索输入框enter键,enter按下触发搜索
|
|
52
|
+
*/
|
|
53
|
+
isEnterSearch: {
|
|
54
|
+
type: BooleanConstructor;
|
|
55
|
+
default: boolean;
|
|
56
|
+
};
|
|
57
|
+
/**
|
|
58
|
+
* 配置主题色,primary:蓝 gray:灰
|
|
59
|
+
*/
|
|
60
|
+
themeType: {
|
|
61
|
+
type: StringConstructor;
|
|
62
|
+
default: string;
|
|
63
|
+
validator: (value: string) => boolean;
|
|
64
|
+
};
|
|
65
|
+
showButton: {
|
|
66
|
+
type: BooleanConstructor;
|
|
67
|
+
default: boolean;
|
|
68
|
+
};
|
|
69
|
+
changeBgColor: {
|
|
70
|
+
type: BooleanConstructor;
|
|
71
|
+
default: boolean;
|
|
72
|
+
};
|
|
73
|
+
size: {
|
|
74
|
+
type: StringConstructor;
|
|
75
|
+
default: string;
|
|
76
|
+
};
|
|
77
|
+
typeValue: ObjectConstructor;
|
|
78
|
+
suffixIcon: (StringConstructor | ObjectConstructor)[];
|
|
79
|
+
tiny_mode: StringConstructor;
|
|
80
|
+
tiny_mode_root: BooleanConstructor;
|
|
81
|
+
tiny_template: (FunctionConstructor | ObjectConstructor)[]; /**
|
|
82
|
+
* 搜索的类型选项,格式为[{text:'文档',value:1},...],不配置时类型选择固定显示为All
|
|
83
|
+
*/
|
|
84
|
+
tiny_renderless: FunctionConstructor;
|
|
85
|
+
tiny_theme: StringConstructor;
|
|
86
|
+
tiny_chart_theme: ObjectConstructor;
|
|
87
|
+
};
|
|
88
|
+
|
|
4
89
|
interface ISearchState {
|
|
5
90
|
show: boolean;
|
|
6
91
|
focus: boolean;
|
|
@@ -10,8 +95,10 @@ interface ISearchState {
|
|
|
10
95
|
searchValue: object;
|
|
11
96
|
types: string[];
|
|
12
97
|
showClear: boolean;
|
|
98
|
+
formItemSize: string;
|
|
99
|
+
searchSize: string;
|
|
13
100
|
}
|
|
14
|
-
type ISearchProps = ExtractPropTypes<typeof
|
|
101
|
+
type ISearchProps = ExtractPropTypes<typeof searchProps>;
|
|
15
102
|
type ISearchRenderlessParams = ISharedRenderlessFunctionParams<never> & {
|
|
16
103
|
state: ISearchState;
|
|
17
104
|
props: ISearchProps;
|
package/types/shared.type.d.ts
CHANGED
|
@@ -112,7 +112,7 @@ interface ISharedRenderlessParamUtils<CT = never> {
|
|
|
112
112
|
mergeClass: (...cssClasses: any[]) => string;
|
|
113
113
|
}
|
|
114
114
|
/** vue.ts的一个混合上下文,也是index.ts 文件中二层函数的入参混合体。 */
|
|
115
|
-
type ISharedRenderlessFunctionParams<CT> = {
|
|
115
|
+
type ISharedRenderlessFunctionParams<CT = null> = {
|
|
116
116
|
api: object;
|
|
117
117
|
props: object;
|
|
118
118
|
state: object;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { ExtractPropTypes } from 'vue';
|
|
2
|
+
import { PropType } from '@opentiny/vue-common';
|
|
3
|
+
|
|
4
|
+
type VariantType = 'image' | 'circle' | 'square';
|
|
5
|
+
type SizeType = 'large' | 'medium' | 'small';
|
|
6
|
+
declare const $constants: {};
|
|
7
|
+
declare const skeletonItemProps: {
|
|
8
|
+
_constants: {
|
|
9
|
+
type: ObjectConstructor;
|
|
10
|
+
default: () => {};
|
|
11
|
+
};
|
|
12
|
+
modelValue: StringConstructor;
|
|
13
|
+
variant: {
|
|
14
|
+
type: PropType<VariantType>;
|
|
15
|
+
default: string;
|
|
16
|
+
};
|
|
17
|
+
size: {
|
|
18
|
+
type: PropType<SizeType>;
|
|
19
|
+
default: string;
|
|
20
|
+
};
|
|
21
|
+
tiny_mode: StringConstructor;
|
|
22
|
+
tiny_mode_root: BooleanConstructor;
|
|
23
|
+
tiny_template: (FunctionConstructor | ObjectConstructor)[];
|
|
24
|
+
tiny_renderless: FunctionConstructor;
|
|
25
|
+
tiny_theme: StringConstructor;
|
|
26
|
+
tiny_chart_theme: ObjectConstructor;
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
type ISkeletonItemProps = ExtractPropTypes<typeof skeletonItemProps>;
|
|
30
|
+
type ISkeletonItemConstants = typeof $constants;
|
|
31
|
+
interface ISkeletonItemState {
|
|
32
|
+
isActive: boolean;
|
|
33
|
+
}
|
|
34
|
+
interface ISkeletonItemApi {
|
|
35
|
+
state: ISkeletonItemState;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export { ISkeletonItemApi, ISkeletonItemConstants, ISkeletonItemProps, ISkeletonItemState };
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { ExtractPropTypes } from 'vue';
|
|
2
|
+
import { PropType } from '@opentiny/vue-common';
|
|
3
|
+
|
|
4
|
+
declare const $constants: {};
|
|
5
|
+
declare const skeletonProps: {
|
|
6
|
+
_constants: {
|
|
7
|
+
type: ObjectConstructor;
|
|
8
|
+
default: () => {};
|
|
9
|
+
};
|
|
10
|
+
modelValue: StringConstructor;
|
|
11
|
+
loading: {
|
|
12
|
+
type: BooleanConstructor;
|
|
13
|
+
default: boolean;
|
|
14
|
+
};
|
|
15
|
+
rows: {
|
|
16
|
+
type: NumberConstructor;
|
|
17
|
+
default: number;
|
|
18
|
+
};
|
|
19
|
+
avatar: {
|
|
20
|
+
type: BooleanConstructor;
|
|
21
|
+
default: boolean;
|
|
22
|
+
};
|
|
23
|
+
rowsWidth: {
|
|
24
|
+
type: PropType<(string | number)[]>;
|
|
25
|
+
default: () => never[];
|
|
26
|
+
};
|
|
27
|
+
active: {
|
|
28
|
+
type: BooleanConstructor;
|
|
29
|
+
default: boolean;
|
|
30
|
+
};
|
|
31
|
+
tiny_mode: StringConstructor;
|
|
32
|
+
tiny_mode_root: BooleanConstructor;
|
|
33
|
+
tiny_template: (FunctionConstructor | ObjectConstructor)[];
|
|
34
|
+
tiny_renderless: FunctionConstructor;
|
|
35
|
+
tiny_theme: StringConstructor;
|
|
36
|
+
tiny_chart_theme: ObjectConstructor;
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
type ISkeletonProps = ExtractPropTypes<typeof skeletonProps>;
|
|
40
|
+
type ISkeletonConstants = typeof $constants;
|
|
41
|
+
interface ISkeletonApi {
|
|
42
|
+
toPxStyle: (value: string | number) => string | undefined;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export { ISkeletonApi, ISkeletonConstants, ISkeletonProps };
|
package/types/slider.type.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ExtractPropTypes, ComputedRef } from 'vue';
|
|
1
|
+
import { PropType, ExtractPropTypes, CSSProperties, ComputedRef } from 'vue';
|
|
2
2
|
import { ISharedRenderlessFunctionParams, ISharedRenderlessParamUtils } from './shared.type.js';
|
|
3
3
|
|
|
4
4
|
declare const $constants: {
|
|
@@ -9,6 +9,7 @@ declare const $constants: {
|
|
|
9
9
|
PC_SLIDER_CLS: string;
|
|
10
10
|
PC_RANGE_CLS: string;
|
|
11
11
|
PC_BUTTON_CLS: string;
|
|
12
|
+
PC_LABEL_CLS: string;
|
|
12
13
|
PC_LEFT_SVG_CLS: string;
|
|
13
14
|
PC_RIGHT_SVG_CLS: string;
|
|
14
15
|
MOBILE_TIP_CLS: string;
|
|
@@ -40,6 +41,7 @@ declare const sliderProps: {
|
|
|
40
41
|
PC_SLIDER_CLS: string;
|
|
41
42
|
PC_RANGE_CLS: string;
|
|
42
43
|
PC_BUTTON_CLS: string;
|
|
44
|
+
PC_LABEL_CLS: string;
|
|
43
45
|
PC_LEFT_SVG_CLS: string;
|
|
44
46
|
PC_RIGHT_SVG_CLS: string;
|
|
45
47
|
MOBILE_TIP_CLS: string;
|
|
@@ -118,6 +120,13 @@ declare const sliderProps: {
|
|
|
118
120
|
type: BooleanConstructor;
|
|
119
121
|
default: boolean;
|
|
120
122
|
};
|
|
123
|
+
changeCompat: {
|
|
124
|
+
type: BooleanConstructor;
|
|
125
|
+
default: boolean;
|
|
126
|
+
};
|
|
127
|
+
marks: {
|
|
128
|
+
type: PropType<Record<number, string>>;
|
|
129
|
+
};
|
|
121
130
|
tiny_mode: StringConstructor;
|
|
122
131
|
tiny_mode_root: BooleanConstructor;
|
|
123
132
|
tiny_template: (FunctionConstructor | ObjectConstructor)[];
|
|
@@ -126,15 +135,41 @@ declare const sliderProps: {
|
|
|
126
135
|
tiny_chart_theme: ObjectConstructor;
|
|
127
136
|
};
|
|
128
137
|
|
|
138
|
+
/**
|
|
139
|
+
* Copyright (c) 2022 - present TinyVue Authors.
|
|
140
|
+
* Copyright (c) 2022 - present Huawei Cloud Computing Technologies Co., Ltd.
|
|
141
|
+
*
|
|
142
|
+
* Use of this source code is governed by an MIT-style license.
|
|
143
|
+
*
|
|
144
|
+
* THE OPEN SOURCE SOFTWARE IN THIS PRODUCT IS DISTRIBUTED IN THE HOPE THAT IT WILL BE USEFUL,
|
|
145
|
+
* BUT WITHOUT ANY WARRANTY, WITHOUT EVEN THE IMPLIED WARRANTY OF MERCHANTABILITY OR FITNESS FOR
|
|
146
|
+
* A PARTICULAR PURPOSE. SEE THE APPLICABLE LICENSES FOR MORE DETAILS.
|
|
147
|
+
*
|
|
148
|
+
*/
|
|
149
|
+
|
|
150
|
+
declare const getActiveButtonValue: (state: ISliderRenderlessParams['state']) => () => number | number[];
|
|
151
|
+
interface IMarkListItem {
|
|
152
|
+
value: number;
|
|
153
|
+
label: string;
|
|
154
|
+
percent: number;
|
|
155
|
+
positionStyle: {
|
|
156
|
+
[key: string]: string;
|
|
157
|
+
};
|
|
158
|
+
}
|
|
159
|
+
declare const getMarkList: ({ props }: Pick<ISliderRenderlessParams, 'props'>) => () => IMarkListItem[];
|
|
160
|
+
declare const handleSlotInputFocus: (state: ISliderRenderlessParams['state']) => () => void;
|
|
161
|
+
declare const handleSlotInputBlur: ({ state, api }: Pick<ISliderRenderlessParams, 'api' | 'state'>) => () => void;
|
|
162
|
+
declare const updateSlotValue: ({ state }: Pick<ISliderRenderlessParams, 'state'>) => () => void;
|
|
163
|
+
declare const handleSlotInput: ({ state, api }: Pick<ISliderRenderlessParams, 'api' | 'state'>) => (event: Event, isLeftInput?: boolean) => void;
|
|
164
|
+
|
|
129
165
|
type ISliderProps = ExtractPropTypes<typeof sliderProps>;
|
|
130
166
|
type ISliderConstants = typeof $constants;
|
|
131
167
|
interface ISliderState {
|
|
132
168
|
tipStyle: object;
|
|
133
|
-
barStyle:
|
|
169
|
+
barStyle: CSSProperties;
|
|
134
170
|
moveStyle: object;
|
|
135
171
|
points: object[];
|
|
136
172
|
labels: object[];
|
|
137
|
-
isInit: boolean;
|
|
138
173
|
isDrag: boolean;
|
|
139
174
|
sliderSize: number;
|
|
140
175
|
inputValue: [number, number];
|
|
@@ -156,11 +191,12 @@ interface ISliderState {
|
|
|
156
191
|
rangeDiff: ComputedRef<number>;
|
|
157
192
|
tipValue: ComputedRef<string>;
|
|
158
193
|
formDisabled: ComputedRef<boolean>;
|
|
159
|
-
disabled:
|
|
194
|
+
disabled: boolean;
|
|
160
195
|
/** 使用这个值作为插槽中输入的值,而不是直接用activeValue,来实现在输入时不会被max min属性计算而改变 */
|
|
161
|
-
slotValue: number;
|
|
196
|
+
slotValue: number | number[] | string;
|
|
162
197
|
/** 是否正在输入 */
|
|
163
198
|
isSlotTyping: boolean;
|
|
199
|
+
markList: ReturnType<ISliderApi['getMarkList']>;
|
|
164
200
|
}
|
|
165
201
|
interface ISliderApi {
|
|
166
202
|
state: ISliderState;
|
|
@@ -171,7 +207,7 @@ interface ISliderApi {
|
|
|
171
207
|
bindResize: () => void;
|
|
172
208
|
setButtonStyle: () => void;
|
|
173
209
|
calculateValue: (event: Event) => number;
|
|
174
|
-
getActiveButtonValue:
|
|
210
|
+
getActiveButtonValue: ReturnType<typeof getActiveButtonValue>;
|
|
175
211
|
getActiveButtonIndex: (event: Event) => number;
|
|
176
212
|
setTipStyle: () => void;
|
|
177
213
|
customAfterAppearHook: () => void;
|
|
@@ -185,15 +221,18 @@ interface ISliderApi {
|
|
|
185
221
|
bindMouseMove: () => void;
|
|
186
222
|
bindMouseDown: () => void;
|
|
187
223
|
setActiveButtonValue: (currentValue: number) => void;
|
|
188
|
-
initSlider: (inputValue: number | [
|
|
224
|
+
initSlider: (inputValue: number | number[]) => void;
|
|
189
225
|
watchModelValue: () => void;
|
|
190
226
|
watchActiveValue: () => void;
|
|
191
227
|
getPoints: () => void;
|
|
192
228
|
getLabels: () => void;
|
|
193
229
|
inputValueChange: () => void;
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
230
|
+
inputOnChange: () => void;
|
|
231
|
+
handleSlotInputFocus: ReturnType<typeof handleSlotInputFocus>;
|
|
232
|
+
handleSlotInputBlur: ReturnType<typeof handleSlotInputBlur>;
|
|
233
|
+
handleSlotInput: ReturnType<typeof handleSlotInput>;
|
|
234
|
+
getMarkList: ReturnType<typeof getMarkList>;
|
|
235
|
+
updateSlotValue: ReturnType<typeof updateSlotValue>;
|
|
197
236
|
}
|
|
198
237
|
type ISliderRenderlessParams = ISharedRenderlessFunctionParams<ISliderConstants> & {
|
|
199
238
|
state: ISliderState;
|
package/types/steps.type.d.ts
CHANGED
|
@@ -14,7 +14,7 @@ declare const stepsProps: {
|
|
|
14
14
|
type: StringConstructor;
|
|
15
15
|
default: string;
|
|
16
16
|
};
|
|
17
|
-
data: (
|
|
17
|
+
data: (ArrayConstructor | ObjectConstructor)[];
|
|
18
18
|
space: (StringConstructor | NumberConstructor)[];
|
|
19
19
|
active: {
|
|
20
20
|
type: NumberConstructor;
|
|
@@ -55,6 +55,12 @@ declare const stepsProps: {
|
|
|
55
55
|
tiny_chart_theme: ObjectConstructor;
|
|
56
56
|
};
|
|
57
57
|
|
|
58
|
+
declare const updateStartIndex: ({ state, props }: Pick<IStepsRenderlessParams, 'state' | 'props'>) => () => void;
|
|
59
|
+
declare const isVisibleHandler: ({ state, props }: Pick<IStepsRenderlessParams, 'state' | 'props'>) => (index: number) => IStepsVisibleConfig;
|
|
60
|
+
declare const computedRightNodePos: ({ state, props }: Pick<IStepsRenderlessParams, 'state' | 'props'>) => () => IStepsNodePosConfig[];
|
|
61
|
+
declare const handleMouseenter: ({ state, vm }: Pick<IStepsRenderlessParams, 'state' | 'vm'>) => (e: MouseEvent, placement: string) => void;
|
|
62
|
+
declare const handleMouseleave: (state: IStepsRenderlessParams['state']) => () => void;
|
|
63
|
+
|
|
58
64
|
type IStepsProps = ExtractPropTypes<typeof stepsProps>;
|
|
59
65
|
type IStepsRenderlessParamUtils = ISharedRenderlessParamUtils<never>;
|
|
60
66
|
interface IStepsState {
|
|
@@ -62,12 +68,17 @@ interface IStepsState {
|
|
|
62
68
|
endIndex: number;
|
|
63
69
|
rightNodePositions: IStepsNodePosConfig[];
|
|
64
70
|
computedSpace: number | string;
|
|
71
|
+
popoverVisible: boolean;
|
|
72
|
+
popoverContent: string | null;
|
|
73
|
+
popoverPlacement: string;
|
|
65
74
|
}
|
|
66
75
|
interface IStepsApi {
|
|
67
76
|
state: IStepsState;
|
|
68
|
-
updateStartIndex:
|
|
69
|
-
isVisibleHandler:
|
|
70
|
-
|
|
77
|
+
updateStartIndex: ReturnType<typeof updateStartIndex>;
|
|
78
|
+
isVisibleHandler: ReturnType<typeof isVisibleHandler>;
|
|
79
|
+
handleMouseenter: ReturnType<typeof handleMouseenter>;
|
|
80
|
+
handleMouseleave: ReturnType<typeof handleMouseleave>;
|
|
81
|
+
computedRightNodePos: ReturnType<typeof computedRightNodePos>;
|
|
71
82
|
}
|
|
72
83
|
type IStepsRenderlessParams = ISharedRenderlessFunctionParams<never> & {
|
|
73
84
|
props: IStepsProps;
|
package/types/switch.type.d.ts
CHANGED
|
@@ -30,7 +30,7 @@ declare const switchProps: {
|
|
|
30
30
|
};
|
|
31
31
|
falseColor: StringConstructor;
|
|
32
32
|
falseValue: {
|
|
33
|
-
type: (
|
|
33
|
+
type: (BooleanConstructor | StringConstructor | NumberConstructor)[];
|
|
34
34
|
default: boolean;
|
|
35
35
|
};
|
|
36
36
|
mini: {
|
|
@@ -38,7 +38,7 @@ declare const switchProps: {
|
|
|
38
38
|
default: boolean;
|
|
39
39
|
};
|
|
40
40
|
modelValue: {
|
|
41
|
-
type: (
|
|
41
|
+
type: (BooleanConstructor | StringConstructor | NumberConstructor)[];
|
|
42
42
|
default: boolean;
|
|
43
43
|
};
|
|
44
44
|
size: (StringConstructor | NumberConstructor)[];
|
|
@@ -48,7 +48,7 @@ declare const switchProps: {
|
|
|
48
48
|
};
|
|
49
49
|
trueColor: StringConstructor;
|
|
50
50
|
trueValue: {
|
|
51
|
-
type: (
|
|
51
|
+
type: (BooleanConstructor | StringConstructor | NumberConstructor)[];
|
|
52
52
|
default: boolean;
|
|
53
53
|
};
|
|
54
54
|
beforeChange: FunctionConstructor;
|
package/types/tab-bar.type.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ExtractPropTypes } from 'vue';
|
|
2
2
|
import { ITabsVm } from './tabs.type.js';
|
|
3
3
|
import { ISharedRenderlessParamUtils, ISharedRenderlessFunctionParams } from './shared.type.js';
|
|
4
|
-
import { t as tabBarProps } from './index-
|
|
4
|
+
import { t as tabBarProps } from './index-b012f687.js';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* Copyright (c) 2022 - present TinyVue Authors.
|
package/types/tab-nav.type.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ExtractPropTypes } from 'vue';
|
|
2
2
|
import { ITabsProps, ITabsVm } from './tabs.type.js';
|
|
3
3
|
import { ISharedRenderlessParamUtils, ISharedRenderlessFunctionParams } from './shared.type.js';
|
|
4
|
-
import { a as tabNavPcProps } from './index-
|
|
4
|
+
import { a as tabNavPcProps } from './index-b012f687.js';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* Copyright (c) 2022 - present TinyVue Authors.
|
|
@@ -17,6 +17,7 @@ import { a as tabNavPcProps } from './index-e0250f63.js';
|
|
|
17
17
|
|
|
18
18
|
declare const computedNavStyle: (state: ITabNavRenderlessParams['state']) => {
|
|
19
19
|
transform: string;
|
|
20
|
+
width?: string;
|
|
20
21
|
};
|
|
21
22
|
declare const scrollIntoView: ({ parent, vm, state }: Pick<ITabNavRenderlessParams, 'parent' | 'vm' | 'state'>) => () => void;
|
|
22
23
|
declare const computedSizeName: (state: ITabNavRenderlessParams['state']) => 'width' | 'height';
|
|
@@ -46,6 +47,10 @@ type ITabNavProps = {
|
|
|
46
47
|
} & ExtractPropTypes<typeof tabNavPcProps> & ITabsProps;
|
|
47
48
|
interface ITabNavStyle {
|
|
48
49
|
}
|
|
50
|
+
interface ITabLineStyle {
|
|
51
|
+
width: number;
|
|
52
|
+
offset: number;
|
|
53
|
+
}
|
|
49
54
|
interface ITabNavScrollable {
|
|
50
55
|
prev: number;
|
|
51
56
|
next: boolean;
|
|
@@ -53,7 +58,7 @@ interface ITabNavScrollable {
|
|
|
53
58
|
interface ITabNavState {
|
|
54
59
|
dragging: boolean;
|
|
55
60
|
navOffset: number;
|
|
56
|
-
|
|
61
|
+
lineStyle: ITabLineStyle;
|
|
57
62
|
scrollable: boolean | ITabNavScrollable;
|
|
58
63
|
isFocus: boolean;
|
|
59
64
|
focusable: boolean;
|