sard-uniapp 1.24.6 → 1.25.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/CHANGELOG.md +34 -0
- package/README.md +1 -1
- package/components/action-sheet/action-sheet.d.ts +8 -1
- package/components/action-sheet/common.d.ts +99 -2
- package/components/alert/alert.d.ts +6 -0
- package/components/alert/common.d.ts +63 -1
- package/components/avatar/avatar.d.ts +8 -0
- package/components/avatar/common.d.ts +99 -1
- package/components/avatar-group/avatar-group.d.ts +6 -1
- package/components/avatar-group/common.d.ts +63 -2
- package/components/back-top/back-top.d.ts +4 -0
- package/components/back-top/common.d.ts +40 -1
- package/components/badge/badge.d.ts +7 -0
- package/components/badge/common.d.ts +99 -2
- package/components/button/button.d.ts +22 -0
- package/components/button/common.d.ts +960 -8
- package/components/calendar/calendar.d.ts +16 -1
- package/components/calendar/common.d.ts +360 -3
- package/components/calendar-input/calendar-input.d.ts +31 -2
- package/components/calendar-input/common.d.ts +1368 -7
- package/components/calendar-popout/calendar-popout.d.ts +22 -2
- package/components/calendar-popout/common.d.ts +675 -5
- package/components/cascader/README.md +1 -1
- package/components/cascader-input/cascader-input.d.ts +25 -0
- package/components/cascader-input/common.d.ts +783 -3
- package/components/cascader-popout/cascader-popout.d.ts +14 -0
- package/components/cascader-popout/common.d.ts +288 -2
- package/components/checkbox/checkbox.d.ts +11 -0
- package/components/checkbox/common.d.ts +323 -3
- package/components/checkbox-group/checkbox-group.d.ts +10 -0
- package/components/checkbox-input/checkbox-input.d.ts +28 -1
- package/components/checkbox-input/common.d.ts +960 -4
- package/components/checkbox-popout/checkbox-popout.d.ts +19 -1
- package/components/checkbox-popout/common.d.ts +460 -2
- package/components/config/index.d.ts +152 -482
- package/components/config/index.js +26 -34
- package/components/cool-icon/common.d.ts +63 -1
- package/components/cool-icon/cool-icon.d.ts +6 -0
- package/components/count-down/common.d.ts +48 -3
- package/components/count-down/count-down.d.ts +3 -0
- package/components/count-to/common.d.ts +35 -4
- package/components/count-to/count-to.d.ts +1 -0
- package/components/crop-image/common.d.ts +288 -4
- package/components/crop-image/crop-image.d.ts +12 -0
- package/components/crop-image-agent/common.d.ts +288 -5
- package/components/crop-image-agent/crop-image-agent.d.ts +11 -0
- package/components/datetime-picker/common.d.ts +120 -2
- package/components/datetime-picker/datetime-picker.d.ts +9 -1
- package/components/datetime-picker-input/common.d.ts +783 -4
- package/components/datetime-picker-input/datetime-picker-input.d.ts +23 -0
- package/components/datetime-picker-popout/common.d.ts +288 -3
- package/components/datetime-picker-popout/datetime-picker-popout.d.ts +13 -0
- package/components/datetime-range-picker/common.d.ts +143 -1
- package/components/datetime-range-picker/datetime-range-picker.d.ts +10 -0
- package/components/datetime-range-picker-input/common.d.ts +840 -3
- package/components/datetime-range-picker-input/datetime-range-picker-input.d.ts +25 -0
- package/components/datetime-range-picker-popout/common.d.ts +323 -2
- package/components/datetime-range-picker-popout/datetime-range-picker-popout.d.ts +15 -0
- package/components/dialog/common.d.ts +360 -6
- package/components/dialog/dialog.d.ts +16 -3
- package/components/dialog-agent/common.d.ts +1023 -7
- package/components/dialog-agent/dialog-agent.d.ts +28 -3
- package/components/divider/common.d.ts +48 -3
- package/components/divider/divider.d.ts +4 -1
- package/components/dropdown/common.d.ts +99 -5
- package/components/dropdown/dropdown.d.ts +7 -3
- package/components/empty/README.md +1 -1
- package/components/empty/common.d.ts +48 -1
- package/components/empty/empty.d.ts +5 -0
- package/components/fab/common.d.ts +619 -7
- package/components/fab/fab.d.ts +20 -2
- package/components/floating-bubble/common.d.ts +153 -4
- package/components/floating-bubble/floating-bubble.d.ts +10 -1
- package/components/floating-panel/common.d.ts +63 -3
- package/components/floating-panel/floating-panel.d.ts +4 -0
- package/components/form/README.md +11 -12
- package/components/form/common.d.ts +304 -1
- package/components/form/form.d.ts +12 -1
- package/components/form-item/form-item.d.ts +15 -0
- package/components/form-item/useFormItem.d.ts +1 -1
- package/components/form-item-plain/form-item-plain.d.ts +15 -0
- package/components/form-item-plain/form-item-plain.vue +7 -3
- package/components/form-plain/common.d.ts +0 -1
- package/components/form-plain/form-plain.d.ts +12 -1
- package/components/grid/common.d.ts +99 -2
- package/components/grid/grid.d.ts +8 -1
- package/components/icon/common.d.ts +63 -3
- package/components/icon/icon.d.ts +5 -1
- package/components/icon/sari.scss +9 -5
- package/components/image/README.md +108 -0
- package/components/image/common.d.ts +455 -0
- package/components/image/common.js +22 -0
- package/components/image/image.d.ts +38 -0
- package/components/image/image.vue +222 -0
- package/components/image/index.d.ts +1 -0
- package/components/image/index.js +1 -0
- package/components/image/index.scss +72 -0
- package/components/image/variables.scss +13 -0
- package/components/indexes/common.d.ts +1 -0
- package/components/indexes/indexes.vue +2 -1
- package/components/input/common.d.ts +2400 -14
- package/components/input/input.d.ts +36 -2
- package/components/keyboard/common.d.ts +24 -2
- package/components/keyboard/keyboard.d.ts +2 -0
- package/components/list/common.d.ts +168 -1
- package/components/list-item/list-item.d.ts +11 -0
- package/components/loading/common.d.ts +117 -1
- package/components/loading/loading.d.ts +8 -0
- package/components/loading/loading.vue +8 -9
- package/components/locale/lang/ar-SA.d.ts +2 -0
- package/components/locale/lang/ar-SA.js +2 -0
- package/components/locale/lang/en-US.d.ts +2 -0
- package/components/locale/lang/en-US.js +2 -0
- package/components/locale/lang/zh-CN.d.ts +2 -0
- package/components/locale/lang/zh-CN.js +2 -0
- package/components/marquee/common.d.ts +35 -3
- package/components/marquee/marquee.d.ts +2 -0
- package/components/notice-bar/common.d.ts +195 -4
- package/components/notice-bar/notice-bar.d.ts +10 -1
- package/components/notify/common.d.ts +143 -4
- package/components/notify/notify.d.ts +8 -1
- package/components/notify-agent/common.d.ts +483 -5
- package/components/notify-agent/notify-agent.d.ts +18 -1
- package/components/overlay/common.d.ts +63 -1
- package/components/overlay/overlay.d.ts +6 -0
- package/components/pagination/common.d.ts +143 -6
- package/components/pagination/pagination.d.ts +6 -1
- package/components/password-input/common.d.ts +168 -3
- package/components/password-input/password-input.d.ts +9 -0
- package/components/picker/common.d.ts +46 -1
- package/components/picker/picker.d.ts +5 -0
- package/components/picker-input/common.d.ts +599 -4
- package/components/picker-input/picker-input.d.ts +21 -1
- package/components/picker-popout/common.d.ts +181 -3
- package/components/picker-popout/picker-popout.d.ts +10 -0
- package/components/popout/common.d.ts +288 -6
- package/components/popout/popout.d.ts +11 -1
- package/components/popout-input/common.d.ts +181 -2
- package/components/popout-input/popout-input.d.ts +11 -0
- package/components/popover/common.d.ts +168 -7
- package/components/popover/popover.d.ts +8 -3
- package/components/popup/common.d.ts +168 -4
- package/components/popup/popup.d.ts +10 -2
- package/components/progress-bar/common.d.ts +143 -2
- package/components/progress-bar/progress-bar.d.ts +9 -0
- package/components/progress-circle/common.d.ts +80 -2
- package/components/progress-circle/progress-circle.d.ts +6 -0
- package/components/pull-down-refresh/common.d.ts +100 -8
- package/components/pull-down-refresh/pull-down-refresh.d.ts +3 -1
- package/components/qrcode/common.d.ts +168 -8
- package/components/qrcode/qrcode.d.ts +4 -0
- package/components/radio/common.d.ts +155 -2
- package/components/radio-group/radio-group.d.ts +10 -0
- package/components/radio-input/common.d.ts +869 -5
- package/components/radio-input/radio-input.d.ts +26 -1
- package/components/radio-popout/common.d.ts +397 -3
- package/components/radio-popout/radio-popout.d.ts +17 -1
- package/components/rate/common.d.ts +360 -4
- package/components/rate/rate.d.ts +15 -1
- package/components/read-more/common.d.ts +80 -1
- package/components/read-more/read-more.d.ts +7 -0
- package/components/resize-sensor/common.d.ts +24 -1
- package/components/resize-sensor/resize-sensor.d.ts +3 -0
- package/components/resize-sensor/resize-sensor.vue +1 -1
- package/components/result/common.d.ts +80 -1
- package/components/result/result.d.ts +7 -0
- package/components/scroll-spy/README.md +9 -8
- package/components/scroll-spy/common.d.ts +1 -0
- package/components/scroll-spy/scroll-spy.vue +4 -2
- package/components/search/common.d.ts +224 -2
- package/components/search/search.d.ts +12 -0
- package/components/segmented/common.d.ts +131 -4
- package/components/segmented/segmented.d.ts +8 -1
- package/components/share-sheet/common.d.ts +120 -2
- package/components/share-sheet/share-sheet.d.ts +9 -1
- package/components/signature/common.d.ts +255 -7
- package/components/signature/signature.d.ts +9 -1
- package/components/skeleton/common.d.ts +120 -2
- package/components/skeleton/skeleton.d.ts +8 -0
- package/components/slider/common.d.ts +528 -4
- package/components/slider/slider.d.ts +18 -0
- package/components/space/common.d.ts +63 -2
- package/components/space/space.d.ts +5 -0
- package/components/status-bar/common.d.ts +24 -1
- package/components/status-bar/status-bar.d.ts +3 -0
- package/components/stepper/common.d.ts +360 -9
- package/components/stepper/stepper.d.ts +10 -1
- package/components/steps/common.d.ts +224 -8
- package/components/steps/steps.d.ts +7 -1
- package/components/swiper-dot/common.d.ts +63 -4
- package/components/swiper-dot/swiper-dot.d.ts +3 -0
- package/components/switch/common.d.ts +153 -3
- package/components/switch/switch.d.ts +10 -0
- package/components/tabbar/common.d.ts +80 -1
- package/components/tabbar/tabbar.d.ts +7 -0
- package/components/table/common.d.ts +35 -2
- package/components/table/table.d.ts +4 -1
- package/components/tabs/README.md +4 -3
- package/components/tabs/common.d.ts +49 -1
- package/components/tabs/index.scss +2 -1
- package/components/tabs/tabs.d.ts +5 -0
- package/components/tabs/tabs.vue +3 -1
- package/components/tag/common.d.ts +120 -2
- package/components/tag/tag.d.ts +8 -0
- package/components/toast/common.d.ts +120 -6
- package/components/toast/toast.d.ts +6 -2
- package/components/toast-agent/common.d.ts +440 -7
- package/components/toast-agent/toast-agent.d.ts +16 -2
- package/components/tree/README.md +34 -20
- package/components/tree/common.d.ts +391 -3
- package/components/tree/common.js +1 -0
- package/components/tree/index.scss +13 -0
- package/components/tree/tree.d.ts +16 -1
- package/components/tree/tree.vue +71 -22
- package/components/tree/variables.scss +4 -0
- package/components/tree-node/index.scss +6 -0
- package/components/tree-node/tree-node.vue +46 -12
- package/components/upload/README.md +6 -0
- package/components/upload/common.d.ts +198 -1
- package/components/upload/upload.d.ts +16 -2
- package/components/upload/upload.vue +8 -3
- package/components/upload-preview/upload-preview.d.ts +12 -0
- package/components/waterfall/common.d.ts +35 -3
- package/components/waterfall/waterfall.d.ts +2 -0
- package/components/watermark/common.d.ts +143 -5
- package/components/watermark/watermark.d.ts +6 -0
- package/global.d.ts +1 -0
- package/index.d.ts +1 -0
- package/index.js +1 -0
- package/index.scss +1 -0
- package/package.json +1 -1
- package/use/useScrollSpy.js +5 -1
- package/utils/array.js +1 -1
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
<scroll-view
|
|
3
3
|
:class="classNames(props.rootClass, scrollViewId)"
|
|
4
4
|
:style="rootStyle"
|
|
5
|
-
scroll-y
|
|
5
|
+
:scroll-y="!disabled"
|
|
6
6
|
:scroll-top="scrollTop"
|
|
7
7
|
:upper-threshold="upperThreshold"
|
|
8
8
|
:lower-threshold="lowerThreshold"
|
|
@@ -43,6 +43,7 @@ import { useScrollSpy } from "../../use";
|
|
|
43
43
|
* @property {number} offset 锚点距离顶部的偏移量,默认值:0。
|
|
44
44
|
* @property {number | string} upperThreshold 距顶部/左边多远时(单位 px),触发 scrolltoupper 事件,默认值:50。
|
|
45
45
|
* @property {number | string} lowerThreshold 距底部/右边多远时(单位 px),触发 scrolltolower 事件,默认值:50。
|
|
46
|
+
* @property {boolean} disabled 是否禁用,禁用时无法滚动,默认值:false。
|
|
46
47
|
* @event {(name: number | string) => void} update 当前锚点改变时触发
|
|
47
48
|
* @event {(name: number | string) => void} change 当前锚点改变时触发
|
|
48
49
|
* @event {() => void} scrolltoupper 滚动到顶部时触发
|
|
@@ -63,7 +64,8 @@ export default _defineComponent({
|
|
|
63
64
|
current: { type: [String, Number], required: false },
|
|
64
65
|
offset: { type: Number, required: false },
|
|
65
66
|
upperThreshold: { type: [Number, String], required: false, default: 50 },
|
|
66
|
-
lowerThreshold: { type: [Number, String], required: false, default: 50 }
|
|
67
|
+
lowerThreshold: { type: [Number, String], required: false, default: 50 },
|
|
68
|
+
disabled: { type: Boolean, required: false }
|
|
67
69
|
},
|
|
68
70
|
emits: ["update:current", "change", "scrolltoupper", "scrolltolower", "scroll"],
|
|
69
71
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
@@ -16,8 +16,230 @@ export interface SearchProps {
|
|
|
16
16
|
focus?: boolean;
|
|
17
17
|
}
|
|
18
18
|
export declare const defaultSearchProps: {
|
|
19
|
-
|
|
20
|
-
|
|
19
|
+
rootStyle?: (string | false | ((props: {
|
|
20
|
+
rootStyle: StyleValue;
|
|
21
|
+
rootClass: string;
|
|
22
|
+
modelValue: string;
|
|
23
|
+
placeholder: string;
|
|
24
|
+
shape: "round" | "square";
|
|
25
|
+
background: string;
|
|
26
|
+
inputBackground: string;
|
|
27
|
+
inputColor: string;
|
|
28
|
+
readonly: boolean;
|
|
29
|
+
disabled: boolean;
|
|
30
|
+
align: "left" | "center" | "right";
|
|
31
|
+
cancel: string;
|
|
32
|
+
search: string;
|
|
33
|
+
focus: boolean;
|
|
34
|
+
}) => string | false | import("vue").CSSProperties | StyleValue[]) | null) | undefined;
|
|
35
|
+
rootClass?: (string | ((props: {
|
|
36
|
+
rootStyle: StyleValue;
|
|
37
|
+
rootClass: string;
|
|
38
|
+
modelValue: string;
|
|
39
|
+
placeholder: string;
|
|
40
|
+
shape: "round" | "square";
|
|
41
|
+
background: string;
|
|
42
|
+
inputBackground: string;
|
|
43
|
+
inputColor: string;
|
|
44
|
+
readonly: boolean;
|
|
45
|
+
disabled: boolean;
|
|
46
|
+
align: "left" | "center" | "right";
|
|
47
|
+
cancel: string;
|
|
48
|
+
search: string;
|
|
49
|
+
focus: boolean;
|
|
50
|
+
}) => string)) | undefined;
|
|
51
|
+
modelValue?: (string | ((props: {
|
|
52
|
+
rootStyle: StyleValue;
|
|
53
|
+
rootClass: string;
|
|
54
|
+
modelValue: string;
|
|
55
|
+
placeholder: string;
|
|
56
|
+
shape: "round" | "square";
|
|
57
|
+
background: string;
|
|
58
|
+
inputBackground: string;
|
|
59
|
+
inputColor: string;
|
|
60
|
+
readonly: boolean;
|
|
61
|
+
disabled: boolean;
|
|
62
|
+
align: "left" | "center" | "right";
|
|
63
|
+
cancel: string;
|
|
64
|
+
search: string;
|
|
65
|
+
focus: boolean;
|
|
66
|
+
}) => string)) | undefined;
|
|
67
|
+
placeholder?: (string | ((props: {
|
|
68
|
+
rootStyle: StyleValue;
|
|
69
|
+
rootClass: string;
|
|
70
|
+
modelValue: string;
|
|
71
|
+
placeholder: string;
|
|
72
|
+
shape: "round" | "square";
|
|
73
|
+
background: string;
|
|
74
|
+
inputBackground: string;
|
|
75
|
+
inputColor: string;
|
|
76
|
+
readonly: boolean;
|
|
77
|
+
disabled: boolean;
|
|
78
|
+
align: "left" | "center" | "right";
|
|
79
|
+
cancel: string;
|
|
80
|
+
search: string;
|
|
81
|
+
focus: boolean;
|
|
82
|
+
}) => string)) | undefined;
|
|
83
|
+
shape?: ("square" | "round" | ((props: {
|
|
84
|
+
rootStyle: StyleValue;
|
|
85
|
+
rootClass: string;
|
|
86
|
+
modelValue: string;
|
|
87
|
+
placeholder: string;
|
|
88
|
+
shape: "round" | "square";
|
|
89
|
+
background: string;
|
|
90
|
+
inputBackground: string;
|
|
91
|
+
inputColor: string;
|
|
92
|
+
readonly: boolean;
|
|
93
|
+
disabled: boolean;
|
|
94
|
+
align: "left" | "center" | "right";
|
|
95
|
+
cancel: string;
|
|
96
|
+
search: string;
|
|
97
|
+
focus: boolean;
|
|
98
|
+
}) => "square" | "round")) | undefined;
|
|
99
|
+
background?: (string | ((props: {
|
|
100
|
+
rootStyle: StyleValue;
|
|
101
|
+
rootClass: string;
|
|
102
|
+
modelValue: string;
|
|
103
|
+
placeholder: string;
|
|
104
|
+
shape: "round" | "square";
|
|
105
|
+
background: string;
|
|
106
|
+
inputBackground: string;
|
|
107
|
+
inputColor: string;
|
|
108
|
+
readonly: boolean;
|
|
109
|
+
disabled: boolean;
|
|
110
|
+
align: "left" | "center" | "right";
|
|
111
|
+
cancel: string;
|
|
112
|
+
search: string;
|
|
113
|
+
focus: boolean;
|
|
114
|
+
}) => string)) | undefined;
|
|
115
|
+
inputBackground?: (string | ((props: {
|
|
116
|
+
rootStyle: StyleValue;
|
|
117
|
+
rootClass: string;
|
|
118
|
+
modelValue: string;
|
|
119
|
+
placeholder: string;
|
|
120
|
+
shape: "round" | "square";
|
|
121
|
+
background: string;
|
|
122
|
+
inputBackground: string;
|
|
123
|
+
inputColor: string;
|
|
124
|
+
readonly: boolean;
|
|
125
|
+
disabled: boolean;
|
|
126
|
+
align: "left" | "center" | "right";
|
|
127
|
+
cancel: string;
|
|
128
|
+
search: string;
|
|
129
|
+
focus: boolean;
|
|
130
|
+
}) => string)) | undefined;
|
|
131
|
+
inputColor?: (string | ((props: {
|
|
132
|
+
rootStyle: StyleValue;
|
|
133
|
+
rootClass: string;
|
|
134
|
+
modelValue: string;
|
|
135
|
+
placeholder: string;
|
|
136
|
+
shape: "round" | "square";
|
|
137
|
+
background: string;
|
|
138
|
+
inputBackground: string;
|
|
139
|
+
inputColor: string;
|
|
140
|
+
readonly: boolean;
|
|
141
|
+
disabled: boolean;
|
|
142
|
+
align: "left" | "center" | "right";
|
|
143
|
+
cancel: string;
|
|
144
|
+
search: string;
|
|
145
|
+
focus: boolean;
|
|
146
|
+
}) => string)) | undefined;
|
|
147
|
+
readonly?: (boolean | ((props: {
|
|
148
|
+
rootStyle: StyleValue;
|
|
149
|
+
rootClass: string;
|
|
150
|
+
modelValue: string;
|
|
151
|
+
placeholder: string;
|
|
152
|
+
shape: "round" | "square";
|
|
153
|
+
background: string;
|
|
154
|
+
inputBackground: string;
|
|
155
|
+
inputColor: string;
|
|
156
|
+
readonly: boolean;
|
|
157
|
+
disabled: boolean;
|
|
158
|
+
align: "left" | "center" | "right";
|
|
159
|
+
cancel: string;
|
|
160
|
+
search: string;
|
|
161
|
+
focus: boolean;
|
|
162
|
+
}) => boolean)) | undefined;
|
|
163
|
+
disabled?: (boolean | ((props: {
|
|
164
|
+
rootStyle: StyleValue;
|
|
165
|
+
rootClass: string;
|
|
166
|
+
modelValue: string;
|
|
167
|
+
placeholder: string;
|
|
168
|
+
shape: "round" | "square";
|
|
169
|
+
background: string;
|
|
170
|
+
inputBackground: string;
|
|
171
|
+
inputColor: string;
|
|
172
|
+
readonly: boolean;
|
|
173
|
+
disabled: boolean;
|
|
174
|
+
align: "left" | "center" | "right";
|
|
175
|
+
cancel: string;
|
|
176
|
+
search: string;
|
|
177
|
+
focus: boolean;
|
|
178
|
+
}) => boolean)) | undefined;
|
|
179
|
+
align?: ("center" | "left" | "right" | ((props: {
|
|
180
|
+
rootStyle: StyleValue;
|
|
181
|
+
rootClass: string;
|
|
182
|
+
modelValue: string;
|
|
183
|
+
placeholder: string;
|
|
184
|
+
shape: "round" | "square";
|
|
185
|
+
background: string;
|
|
186
|
+
inputBackground: string;
|
|
187
|
+
inputColor: string;
|
|
188
|
+
readonly: boolean;
|
|
189
|
+
disabled: boolean;
|
|
190
|
+
align: "left" | "center" | "right";
|
|
191
|
+
cancel: string;
|
|
192
|
+
search: string;
|
|
193
|
+
focus: boolean;
|
|
194
|
+
}) => "center" | "left" | "right")) | undefined;
|
|
195
|
+
cancel?: (string | ((props: {
|
|
196
|
+
rootStyle: StyleValue;
|
|
197
|
+
rootClass: string;
|
|
198
|
+
modelValue: string;
|
|
199
|
+
placeholder: string;
|
|
200
|
+
shape: "round" | "square";
|
|
201
|
+
background: string;
|
|
202
|
+
inputBackground: string;
|
|
203
|
+
inputColor: string;
|
|
204
|
+
readonly: boolean;
|
|
205
|
+
disabled: boolean;
|
|
206
|
+
align: "left" | "center" | "right";
|
|
207
|
+
cancel: string;
|
|
208
|
+
search: string;
|
|
209
|
+
focus: boolean;
|
|
210
|
+
}) => string)) | undefined;
|
|
211
|
+
search?: (string | ((props: {
|
|
212
|
+
rootStyle: StyleValue;
|
|
213
|
+
rootClass: string;
|
|
214
|
+
modelValue: string;
|
|
215
|
+
placeholder: string;
|
|
216
|
+
shape: "round" | "square";
|
|
217
|
+
background: string;
|
|
218
|
+
inputBackground: string;
|
|
219
|
+
inputColor: string;
|
|
220
|
+
readonly: boolean;
|
|
221
|
+
disabled: boolean;
|
|
222
|
+
align: "left" | "center" | "right";
|
|
223
|
+
cancel: string;
|
|
224
|
+
search: string;
|
|
225
|
+
focus: boolean;
|
|
226
|
+
}) => string)) | undefined;
|
|
227
|
+
focus?: (boolean | ((props: {
|
|
228
|
+
rootStyle: StyleValue;
|
|
229
|
+
rootClass: string;
|
|
230
|
+
modelValue: string;
|
|
231
|
+
placeholder: string;
|
|
232
|
+
shape: "round" | "square";
|
|
233
|
+
background: string;
|
|
234
|
+
inputBackground: string;
|
|
235
|
+
inputColor: string;
|
|
236
|
+
readonly: boolean;
|
|
237
|
+
disabled: boolean;
|
|
238
|
+
align: "left" | "center" | "right";
|
|
239
|
+
cancel: string;
|
|
240
|
+
search: string;
|
|
241
|
+
focus: boolean;
|
|
242
|
+
}) => boolean)) | undefined;
|
|
21
243
|
};
|
|
22
244
|
export interface SearchSlots {
|
|
23
245
|
prepend?(props: Record<string, never>): any;
|
|
@@ -7,8 +7,20 @@ declare const __VLS_component: import("vue").DefineComponent<SearchProps, {}, {}
|
|
|
7
7
|
}, string, import("vue").PublicProps, Readonly<SearchProps> & Readonly<{
|
|
8
8
|
[x: `on${Capitalize<any>}`]: ((...args: any) => any) | undefined;
|
|
9
9
|
}>, {
|
|
10
|
+
search: string;
|
|
11
|
+
cancel: string;
|
|
10
12
|
focus: boolean;
|
|
13
|
+
rootStyle: string | false | import("vue").CSSProperties | import("vue").StyleValue[] | null;
|
|
14
|
+
rootClass: string;
|
|
15
|
+
modelValue: string;
|
|
16
|
+
disabled: boolean;
|
|
17
|
+
readonly: boolean;
|
|
18
|
+
background: string;
|
|
11
19
|
shape: "round" | "square";
|
|
20
|
+
placeholder: string;
|
|
21
|
+
inputBackground: string;
|
|
22
|
+
inputColor: string;
|
|
23
|
+
align: "left" | "center" | "right";
|
|
12
24
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
13
25
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
14
26
|
export default _default;
|
|
@@ -27,10 +27,137 @@ export interface SegmentedProps {
|
|
|
27
27
|
validateEvent?: boolean;
|
|
28
28
|
}
|
|
29
29
|
export declare const defaultSegmentedProps: {
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
30
|
+
rootStyle?: (string | false | ((props: {
|
|
31
|
+
rootStyle: StyleValue;
|
|
32
|
+
rootClass: string;
|
|
33
|
+
modelValue: any;
|
|
34
|
+
disabled: boolean;
|
|
35
|
+
readonly: boolean;
|
|
36
|
+
size: SegmentedSize;
|
|
37
|
+
direction: "horizontal" | "vertical";
|
|
38
|
+
shape: "square" | "round";
|
|
39
|
+
options: SegmentedOption[];
|
|
40
|
+
optionKeys: SegmentedOptionKeys;
|
|
41
|
+
validateEvent: boolean;
|
|
42
|
+
}) => string | false | import("vue").CSSProperties | StyleValue[]) | null) | undefined;
|
|
43
|
+
rootClass?: (string | ((props: {
|
|
44
|
+
rootStyle: StyleValue;
|
|
45
|
+
rootClass: string;
|
|
46
|
+
modelValue: any;
|
|
47
|
+
disabled: boolean;
|
|
48
|
+
readonly: boolean;
|
|
49
|
+
size: SegmentedSize;
|
|
50
|
+
direction: "horizontal" | "vertical";
|
|
51
|
+
shape: "square" | "round";
|
|
52
|
+
options: SegmentedOption[];
|
|
53
|
+
optionKeys: SegmentedOptionKeys;
|
|
54
|
+
validateEvent: boolean;
|
|
55
|
+
}) => string)) | undefined;
|
|
56
|
+
modelValue?: any;
|
|
57
|
+
disabled?: (boolean | ((props: {
|
|
58
|
+
rootStyle: StyleValue;
|
|
59
|
+
rootClass: string;
|
|
60
|
+
modelValue: any;
|
|
61
|
+
disabled: boolean;
|
|
62
|
+
readonly: boolean;
|
|
63
|
+
size: SegmentedSize;
|
|
64
|
+
direction: "horizontal" | "vertical";
|
|
65
|
+
shape: "square" | "round";
|
|
66
|
+
options: SegmentedOption[];
|
|
67
|
+
optionKeys: SegmentedOptionKeys;
|
|
68
|
+
validateEvent: boolean;
|
|
69
|
+
}) => boolean)) | undefined;
|
|
70
|
+
readonly?: (boolean | ((props: {
|
|
71
|
+
rootStyle: StyleValue;
|
|
72
|
+
rootClass: string;
|
|
73
|
+
modelValue: any;
|
|
74
|
+
disabled: boolean;
|
|
75
|
+
readonly: boolean;
|
|
76
|
+
size: SegmentedSize;
|
|
77
|
+
direction: "horizontal" | "vertical";
|
|
78
|
+
shape: "square" | "round";
|
|
79
|
+
options: SegmentedOption[];
|
|
80
|
+
optionKeys: SegmentedOptionKeys;
|
|
81
|
+
validateEvent: boolean;
|
|
82
|
+
}) => boolean)) | undefined;
|
|
83
|
+
size?: (SegmentedSize | ((props: {
|
|
84
|
+
rootStyle: StyleValue;
|
|
85
|
+
rootClass: string;
|
|
86
|
+
modelValue: any;
|
|
87
|
+
disabled: boolean;
|
|
88
|
+
readonly: boolean;
|
|
89
|
+
size: SegmentedSize;
|
|
90
|
+
direction: "horizontal" | "vertical";
|
|
91
|
+
shape: "square" | "round";
|
|
92
|
+
options: SegmentedOption[];
|
|
93
|
+
optionKeys: SegmentedOptionKeys;
|
|
94
|
+
validateEvent: boolean;
|
|
95
|
+
}) => "small" | "large" | "middle")) | undefined;
|
|
96
|
+
direction?: ("horizontal" | "vertical" | ((props: {
|
|
97
|
+
rootStyle: StyleValue;
|
|
98
|
+
rootClass: string;
|
|
99
|
+
modelValue: any;
|
|
100
|
+
disabled: boolean;
|
|
101
|
+
readonly: boolean;
|
|
102
|
+
size: SegmentedSize;
|
|
103
|
+
direction: "horizontal" | "vertical";
|
|
104
|
+
shape: "square" | "round";
|
|
105
|
+
options: SegmentedOption[];
|
|
106
|
+
optionKeys: SegmentedOptionKeys;
|
|
107
|
+
validateEvent: boolean;
|
|
108
|
+
}) => "horizontal" | "vertical")) | undefined;
|
|
109
|
+
shape?: ("square" | "round" | ((props: {
|
|
110
|
+
rootStyle: StyleValue;
|
|
111
|
+
rootClass: string;
|
|
112
|
+
modelValue: any;
|
|
113
|
+
disabled: boolean;
|
|
114
|
+
readonly: boolean;
|
|
115
|
+
size: SegmentedSize;
|
|
116
|
+
direction: "horizontal" | "vertical";
|
|
117
|
+
shape: "square" | "round";
|
|
118
|
+
options: SegmentedOption[];
|
|
119
|
+
optionKeys: SegmentedOptionKeys;
|
|
120
|
+
validateEvent: boolean;
|
|
121
|
+
}) => "square" | "round")) | undefined;
|
|
122
|
+
options?: ((props: {
|
|
123
|
+
rootStyle: StyleValue;
|
|
124
|
+
rootClass: string;
|
|
125
|
+
modelValue: any;
|
|
126
|
+
disabled: boolean;
|
|
127
|
+
readonly: boolean;
|
|
128
|
+
size: SegmentedSize;
|
|
129
|
+
direction: "horizontal" | "vertical";
|
|
130
|
+
shape: "square" | "round";
|
|
131
|
+
options: SegmentedOption[];
|
|
132
|
+
optionKeys: SegmentedOptionKeys;
|
|
133
|
+
validateEvent: boolean;
|
|
134
|
+
}) => SegmentedOption[]) | undefined;
|
|
135
|
+
optionKeys?: ((props: {
|
|
136
|
+
rootStyle: StyleValue;
|
|
137
|
+
rootClass: string;
|
|
138
|
+
modelValue: any;
|
|
139
|
+
disabled: boolean;
|
|
140
|
+
readonly: boolean;
|
|
141
|
+
size: SegmentedSize;
|
|
142
|
+
direction: "horizontal" | "vertical";
|
|
143
|
+
shape: "square" | "round";
|
|
144
|
+
options: SegmentedOption[];
|
|
145
|
+
optionKeys: SegmentedOptionKeys;
|
|
146
|
+
validateEvent: boolean;
|
|
147
|
+
}) => SegmentedOptionKeys) | undefined;
|
|
148
|
+
validateEvent?: (boolean | ((props: {
|
|
149
|
+
rootStyle: StyleValue;
|
|
150
|
+
rootClass: string;
|
|
151
|
+
modelValue: any;
|
|
152
|
+
disabled: boolean;
|
|
153
|
+
readonly: boolean;
|
|
154
|
+
size: SegmentedSize;
|
|
155
|
+
direction: "horizontal" | "vertical";
|
|
156
|
+
shape: "square" | "round";
|
|
157
|
+
options: SegmentedOption[];
|
|
158
|
+
optionKeys: SegmentedOptionKeys;
|
|
159
|
+
validateEvent: boolean;
|
|
160
|
+
}) => boolean)) | undefined;
|
|
34
161
|
};
|
|
35
162
|
export interface SegmentedSlots {
|
|
36
163
|
default?(props: Record<string, never>): any;
|
|
@@ -8,9 +8,16 @@ declare const __VLS_component: import("vue").DefineComponent<SegmentedProps, {},
|
|
|
8
8
|
onChange?: ((value: any) => any) | undefined;
|
|
9
9
|
}>, {
|
|
10
10
|
size: import("./common").SegmentedSize;
|
|
11
|
-
|
|
11
|
+
options: import("./common").SegmentedOption[];
|
|
12
|
+
rootStyle: string | false | import("vue").CSSProperties | import("vue").StyleValue[] | null;
|
|
13
|
+
rootClass: string;
|
|
14
|
+
modelValue: any;
|
|
12
15
|
direction: "horizontal" | "vertical";
|
|
16
|
+
disabled: boolean;
|
|
17
|
+
readonly: boolean;
|
|
18
|
+
shape: "square" | "round";
|
|
13
19
|
validateEvent: boolean;
|
|
20
|
+
optionKeys: import("./common").SegmentedOptionKeys;
|
|
14
21
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
15
22
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
16
23
|
export default _default;
|
|
@@ -13,8 +13,126 @@ export interface ShareSheetProps {
|
|
|
13
13
|
duration?: number;
|
|
14
14
|
}
|
|
15
15
|
export declare const defaultShareSheetProps: {
|
|
16
|
-
|
|
17
|
-
|
|
16
|
+
rootStyle?: (string | false | ((props: {
|
|
17
|
+
rootStyle: StyleValue;
|
|
18
|
+
rootClass: string;
|
|
19
|
+
itemList: ShareSheetItem[] | ShareSheetItem[][];
|
|
20
|
+
title: string;
|
|
21
|
+
description: string;
|
|
22
|
+
cancel: string;
|
|
23
|
+
visible: boolean;
|
|
24
|
+
overlayClosable: boolean;
|
|
25
|
+
beforeClose: (type: "close" | "cancel" | "select") => boolean | Promise<any>;
|
|
26
|
+
duration: number;
|
|
27
|
+
}) => string | false | import("vue").CSSProperties | StyleValue[]) | null) | undefined;
|
|
28
|
+
rootClass?: (string | ((props: {
|
|
29
|
+
rootStyle: StyleValue;
|
|
30
|
+
rootClass: string;
|
|
31
|
+
itemList: ShareSheetItem[] | ShareSheetItem[][];
|
|
32
|
+
title: string;
|
|
33
|
+
description: string;
|
|
34
|
+
cancel: string;
|
|
35
|
+
visible: boolean;
|
|
36
|
+
overlayClosable: boolean;
|
|
37
|
+
beforeClose: (type: "close" | "cancel" | "select") => boolean | Promise<any>;
|
|
38
|
+
duration: number;
|
|
39
|
+
}) => string)) | undefined;
|
|
40
|
+
itemList?: ((props: {
|
|
41
|
+
rootStyle: StyleValue;
|
|
42
|
+
rootClass: string;
|
|
43
|
+
itemList: ShareSheetItem[] | ShareSheetItem[][];
|
|
44
|
+
title: string;
|
|
45
|
+
description: string;
|
|
46
|
+
cancel: string;
|
|
47
|
+
visible: boolean;
|
|
48
|
+
overlayClosable: boolean;
|
|
49
|
+
beforeClose: (type: "close" | "cancel" | "select") => boolean | Promise<any>;
|
|
50
|
+
duration: number;
|
|
51
|
+
}) => ShareSheetItem[] | ShareSheetItem[][]) | undefined;
|
|
52
|
+
title?: (string | ((props: {
|
|
53
|
+
rootStyle: StyleValue;
|
|
54
|
+
rootClass: string;
|
|
55
|
+
itemList: ShareSheetItem[] | ShareSheetItem[][];
|
|
56
|
+
title: string;
|
|
57
|
+
description: string;
|
|
58
|
+
cancel: string;
|
|
59
|
+
visible: boolean;
|
|
60
|
+
overlayClosable: boolean;
|
|
61
|
+
beforeClose: (type: "close" | "cancel" | "select") => boolean | Promise<any>;
|
|
62
|
+
duration: number;
|
|
63
|
+
}) => string)) | undefined;
|
|
64
|
+
description?: (string | ((props: {
|
|
65
|
+
rootStyle: StyleValue;
|
|
66
|
+
rootClass: string;
|
|
67
|
+
itemList: ShareSheetItem[] | ShareSheetItem[][];
|
|
68
|
+
title: string;
|
|
69
|
+
description: string;
|
|
70
|
+
cancel: string;
|
|
71
|
+
visible: boolean;
|
|
72
|
+
overlayClosable: boolean;
|
|
73
|
+
beforeClose: (type: "close" | "cancel" | "select") => boolean | Promise<any>;
|
|
74
|
+
duration: number;
|
|
75
|
+
}) => string)) | undefined;
|
|
76
|
+
cancel?: (string | ((props: {
|
|
77
|
+
rootStyle: StyleValue;
|
|
78
|
+
rootClass: string;
|
|
79
|
+
itemList: ShareSheetItem[] | ShareSheetItem[][];
|
|
80
|
+
title: string;
|
|
81
|
+
description: string;
|
|
82
|
+
cancel: string;
|
|
83
|
+
visible: boolean;
|
|
84
|
+
overlayClosable: boolean;
|
|
85
|
+
beforeClose: (type: "close" | "cancel" | "select") => boolean | Promise<any>;
|
|
86
|
+
duration: number;
|
|
87
|
+
}) => string)) | undefined;
|
|
88
|
+
visible?: (boolean | ((props: {
|
|
89
|
+
rootStyle: StyleValue;
|
|
90
|
+
rootClass: string;
|
|
91
|
+
itemList: ShareSheetItem[] | ShareSheetItem[][];
|
|
92
|
+
title: string;
|
|
93
|
+
description: string;
|
|
94
|
+
cancel: string;
|
|
95
|
+
visible: boolean;
|
|
96
|
+
overlayClosable: boolean;
|
|
97
|
+
beforeClose: (type: "close" | "cancel" | "select") => boolean | Promise<any>;
|
|
98
|
+
duration: number;
|
|
99
|
+
}) => boolean)) | undefined;
|
|
100
|
+
overlayClosable?: (boolean | ((props: {
|
|
101
|
+
rootStyle: StyleValue;
|
|
102
|
+
rootClass: string;
|
|
103
|
+
itemList: ShareSheetItem[] | ShareSheetItem[][];
|
|
104
|
+
title: string;
|
|
105
|
+
description: string;
|
|
106
|
+
cancel: string;
|
|
107
|
+
visible: boolean;
|
|
108
|
+
overlayClosable: boolean;
|
|
109
|
+
beforeClose: (type: "close" | "cancel" | "select") => boolean | Promise<any>;
|
|
110
|
+
duration: number;
|
|
111
|
+
}) => boolean)) | undefined;
|
|
112
|
+
beforeClose?: (((type: "close" | "cancel" | "select") => boolean | Promise<any>) | ((props: {
|
|
113
|
+
rootStyle: StyleValue;
|
|
114
|
+
rootClass: string;
|
|
115
|
+
itemList: ShareSheetItem[] | ShareSheetItem[][];
|
|
116
|
+
title: string;
|
|
117
|
+
description: string;
|
|
118
|
+
cancel: string;
|
|
119
|
+
visible: boolean;
|
|
120
|
+
overlayClosable: boolean;
|
|
121
|
+
beforeClose: (type: "close" | "cancel" | "select") => boolean | Promise<any>;
|
|
122
|
+
duration: number;
|
|
123
|
+
}) => (type: "close" | "cancel" | "select") => boolean | Promise<any>)) | undefined;
|
|
124
|
+
duration?: (number | ((props: {
|
|
125
|
+
rootStyle: StyleValue;
|
|
126
|
+
rootClass: string;
|
|
127
|
+
itemList: ShareSheetItem[] | ShareSheetItem[][];
|
|
128
|
+
title: string;
|
|
129
|
+
description: string;
|
|
130
|
+
cancel: string;
|
|
131
|
+
visible: boolean;
|
|
132
|
+
overlayClosable: boolean;
|
|
133
|
+
beforeClose: (type: "close" | "cancel" | "select") => boolean | Promise<any>;
|
|
134
|
+
duration: number;
|
|
135
|
+
}) => number)) | undefined;
|
|
18
136
|
};
|
|
19
137
|
export interface ShareSheetEmits extends TransitionHookEmits {
|
|
20
138
|
(e: 'update:visible', visible: boolean): void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type ShareSheetProps } from './common';
|
|
1
|
+
import { type ShareSheetProps, type ShareSheetItem } from './common';
|
|
2
2
|
declare const _default: import("vue").DefineComponent<ShareSheetProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
3
3
|
[x: string]: any;
|
|
4
4
|
} & {
|
|
@@ -6,7 +6,15 @@ declare const _default: import("vue").DefineComponent<ShareSheetProps, {}, {}, {
|
|
|
6
6
|
}, string, import("vue").PublicProps, Readonly<ShareSheetProps> & Readonly<{
|
|
7
7
|
[x: `on${Capitalize<any>}`]: ((...args: any) => any) | undefined;
|
|
8
8
|
}>, {
|
|
9
|
+
cancel: string;
|
|
10
|
+
rootStyle: string | false | import("vue").CSSProperties | import("vue").StyleValue[] | null;
|
|
11
|
+
rootClass: string;
|
|
12
|
+
title: string;
|
|
13
|
+
description: string;
|
|
14
|
+
visible: boolean;
|
|
9
15
|
duration: number;
|
|
10
16
|
overlayClosable: boolean;
|
|
17
|
+
itemList: ShareSheetItem[] | ShareSheetItem[][];
|
|
18
|
+
beforeClose: (type: "close" | "cancel" | "select") => boolean | Promise<any>;
|
|
11
19
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
12
20
|
export default _default;
|