@dsh-plugin/dsh-ui-components-vue 0.0.0-stage → 0.0.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/LICENSE +21 -0
- package/NOTICE +57 -0
- package/README.md +66 -2
- package/README.zh_CN.md +67 -0
- package/dist/icons.js +1 -0
- package/dist/index.d.ts +19 -0
- package/dist/index.js +2682 -0
- package/dist/style.css +1 -0
- package/dist/vue/arco.d.ts +8 -0
- package/dist/vue/basic.d.ts +3629 -0
- package/dist/vue/button.d.ts +78 -0
- package/dist/vue/color-model.d.ts +2 -0
- package/dist/vue/color.d.ts +3 -0
- package/dist/vue/components.d.ts +48 -0
- package/dist/vue/date-input.d.ts +35 -0
- package/dist/vue/icons.d.ts +2 -0
- package/dist/vue/overlays.d.ts +33 -0
- package/dist/vue/picker-model.d.ts +37 -0
- package/dist/vue/picker.d.ts +1290 -0
- package/dist/vue/popup.d.ts +28 -0
- package/dist/vue/primitives.d.ts +288 -0
- package/dist/vue/progress.d.ts +104 -0
- package/dist/vue/provider.d.ts +90 -0
- package/dist/vue/selection-model.d.ts +22 -0
- package/dist/vue/selection.d.ts +186 -0
- package/dist/vue/toast-layout.d.ts +2 -0
- package/docs/vue-coverage.md +75 -0
- package/licenses/HeroUI-Apache-2.0.txt +199 -0
- package/package.json +75 -4
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import * as Arco from '@arco-design/web-vue';
|
|
2
|
+
/** 下拉浮层继承所属 Provider 的主题,其他参数和实例类型沿用 Arco。 */
|
|
3
|
+
export declare const AutoComplete: typeof Arco.AutoComplete;
|
|
4
|
+
export declare const Autocomplete: typeof Arco.AutoComplete;
|
|
5
|
+
export declare const Cascader: typeof Arco.Cascader;
|
|
6
|
+
export declare const ColorPicker: typeof Arco.ColorPicker;
|
|
7
|
+
export declare const DatePicker: typeof Arco.DatePicker;
|
|
8
|
+
export declare const MonthPicker: typeof Arco.MonthPicker;
|
|
9
|
+
export declare const QuarterPicker: typeof Arco.QuarterPicker;
|
|
10
|
+
export declare const WeekPicker: typeof Arco.WeekPicker;
|
|
11
|
+
export declare const YearPicker: typeof Arco.YearPicker;
|
|
12
|
+
export declare const RangePicker: typeof Arco.RangePicker;
|
|
13
|
+
export declare const DateRangePicker: typeof Arco.RangePicker;
|
|
14
|
+
export declare const Dropdown: typeof Arco.Dropdown;
|
|
15
|
+
export declare const Dsubmenu: typeof Arco.Dsubmenu;
|
|
16
|
+
export declare const DropdownButton: typeof Arco.DropdownButton;
|
|
17
|
+
export declare const Select: typeof Arco.Select;
|
|
18
|
+
export declare const TreeSelect: typeof Arco.TreeSelect;
|
|
19
|
+
export declare const TimePicker: typeof Arco.TimePicker;
|
|
20
|
+
export declare const Tooltip: typeof Arco.Tooltip;
|
|
21
|
+
export declare const Popover: typeof Arco.Popover;
|
|
22
|
+
export declare const Popconfirm: typeof Arco.Popconfirm;
|
|
23
|
+
export declare const Trigger: typeof Arco.Trigger;
|
|
24
|
+
export declare const Mention: typeof Arco.Mention;
|
|
25
|
+
export declare const Menu: typeof Arco.Menu;
|
|
26
|
+
export declare const Image: typeof Arco.Image;
|
|
27
|
+
export declare const ImagePreview: typeof Arco.ImagePreview;
|
|
28
|
+
export declare const ImagePreviewGroup: typeof Arco.ImagePreviewGroup;
|
|
@@ -0,0 +1,288 @@
|
|
|
1
|
+
import { type PropType } from 'vue';
|
|
2
|
+
/** 链接保留原生导航语义;禁用时移除导航地址并拦截激活。 */
|
|
3
|
+
export declare const Link: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
4
|
+
href: StringConstructor;
|
|
5
|
+
disabled: BooleanConstructor;
|
|
6
|
+
external: BooleanConstructor;
|
|
7
|
+
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
8
|
+
[key: string]: any;
|
|
9
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "click"[], "click", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
10
|
+
href: StringConstructor;
|
|
11
|
+
disabled: BooleanConstructor;
|
|
12
|
+
external: BooleanConstructor;
|
|
13
|
+
}>> & Readonly<{
|
|
14
|
+
onClick?: ((...args: any[]) => any) | undefined;
|
|
15
|
+
}>, {
|
|
16
|
+
disabled: boolean;
|
|
17
|
+
external: boolean;
|
|
18
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
19
|
+
/** 键盘快捷键提示,keys 支持分离显示组合键。 */
|
|
20
|
+
export declare const Kbd: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
21
|
+
keys: {
|
|
22
|
+
type: PropType<readonly string[]>;
|
|
23
|
+
default: () => never[];
|
|
24
|
+
};
|
|
25
|
+
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
26
|
+
[key: string]: any;
|
|
27
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
28
|
+
keys: {
|
|
29
|
+
type: PropType<readonly string[]>;
|
|
30
|
+
default: () => never[];
|
|
31
|
+
};
|
|
32
|
+
}>> & Readonly<{}>, {
|
|
33
|
+
keys: readonly string[];
|
|
34
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
35
|
+
/** 表面层级通过主题变量表达,允许指定语义标签。 */
|
|
36
|
+
export declare const Surface: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
37
|
+
as: {
|
|
38
|
+
type: StringConstructor;
|
|
39
|
+
default: string;
|
|
40
|
+
};
|
|
41
|
+
variant: {
|
|
42
|
+
type: PropType<"default" | "secondary" | "tertiary" | "transparent">;
|
|
43
|
+
default: string;
|
|
44
|
+
};
|
|
45
|
+
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
46
|
+
[key: string]: any;
|
|
47
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
48
|
+
as: {
|
|
49
|
+
type: StringConstructor;
|
|
50
|
+
default: string;
|
|
51
|
+
};
|
|
52
|
+
variant: {
|
|
53
|
+
type: PropType<"default" | "secondary" | "tertiary" | "transparent">;
|
|
54
|
+
default: string;
|
|
55
|
+
};
|
|
56
|
+
}>> & Readonly<{}>, {
|
|
57
|
+
variant: "default" | "transparent" | "secondary" | "tertiary";
|
|
58
|
+
as: string;
|
|
59
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
60
|
+
/** 分区标题容器,保留原生 header 语义。 */
|
|
61
|
+
export declare const Header: import("vue").DefineComponent<{}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
62
|
+
[key: string]: any;
|
|
63
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
64
|
+
/** 表单标签通过 for 与输入框建立关联。 */
|
|
65
|
+
export declare const Label: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
66
|
+
required: BooleanConstructor;
|
|
67
|
+
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
68
|
+
[key: string]: any;
|
|
69
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
70
|
+
required: BooleanConstructor;
|
|
71
|
+
}>> & Readonly<{}>, {
|
|
72
|
+
required: boolean;
|
|
73
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
74
|
+
/** 辅助说明可通过 id 关联输入框的 aria-describedby。 */
|
|
75
|
+
export declare const Description: import("vue").DefineComponent<{}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
76
|
+
[key: string]: any;
|
|
77
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
78
|
+
/** 校验错误使用礼貌播报,避免重复打断屏幕阅读器。 */
|
|
79
|
+
export declare const FieldError: import("vue").DefineComponent<{}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
80
|
+
[key: string]: any;
|
|
81
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
82
|
+
/** 错误文案组件,与 FieldError 具有相同语义。 */
|
|
83
|
+
export declare const ErrorMessage: import("vue").DefineComponent<{}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
84
|
+
[key: string]: any;
|
|
85
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
86
|
+
/** 原生字段组统一提供 legend 和 disabled 行为。 */
|
|
87
|
+
export declare const Fieldset: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
88
|
+
legend: StringConstructor;
|
|
89
|
+
disabled: BooleanConstructor;
|
|
90
|
+
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
91
|
+
[key: string]: any;
|
|
92
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
93
|
+
legend: StringConstructor;
|
|
94
|
+
disabled: BooleanConstructor;
|
|
95
|
+
}>> & Readonly<{}>, {
|
|
96
|
+
disabled: boolean;
|
|
97
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
98
|
+
/** 输入组合容器通过 start/end 插槽容纳图标及附加按钮。 */
|
|
99
|
+
export declare const InputGroup: import("vue").DefineComponent<{}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
100
|
+
[key: string]: any;
|
|
101
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
102
|
+
/** 带关联标签、说明和错误信息的受控或非受控文本框。 */
|
|
103
|
+
export declare const TextField: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
104
|
+
readonly modelValue: StringConstructor;
|
|
105
|
+
readonly defaultValue: {
|
|
106
|
+
readonly type: StringConstructor;
|
|
107
|
+
readonly default: "";
|
|
108
|
+
};
|
|
109
|
+
readonly id: StringConstructor;
|
|
110
|
+
readonly label: StringConstructor;
|
|
111
|
+
readonly description: StringConstructor;
|
|
112
|
+
readonly errorMessage: StringConstructor;
|
|
113
|
+
readonly invalid: BooleanConstructor;
|
|
114
|
+
readonly required: BooleanConstructor;
|
|
115
|
+
readonly disabled: BooleanConstructor;
|
|
116
|
+
readonly readonly: BooleanConstructor;
|
|
117
|
+
readonly name: StringConstructor;
|
|
118
|
+
readonly placeholder: StringConstructor;
|
|
119
|
+
readonly type: {
|
|
120
|
+
readonly type: StringConstructor;
|
|
121
|
+
readonly default: "text";
|
|
122
|
+
};
|
|
123
|
+
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
124
|
+
[key: string]: any;
|
|
125
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("blur" | "change" | "focus" | "input" | "update:modelValue")[], "blur" | "change" | "focus" | "input" | "update:modelValue", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
126
|
+
readonly modelValue: StringConstructor;
|
|
127
|
+
readonly defaultValue: {
|
|
128
|
+
readonly type: StringConstructor;
|
|
129
|
+
readonly default: "";
|
|
130
|
+
};
|
|
131
|
+
readonly id: StringConstructor;
|
|
132
|
+
readonly label: StringConstructor;
|
|
133
|
+
readonly description: StringConstructor;
|
|
134
|
+
readonly errorMessage: StringConstructor;
|
|
135
|
+
readonly invalid: BooleanConstructor;
|
|
136
|
+
readonly required: BooleanConstructor;
|
|
137
|
+
readonly disabled: BooleanConstructor;
|
|
138
|
+
readonly readonly: BooleanConstructor;
|
|
139
|
+
readonly name: StringConstructor;
|
|
140
|
+
readonly placeholder: StringConstructor;
|
|
141
|
+
readonly type: {
|
|
142
|
+
readonly type: StringConstructor;
|
|
143
|
+
readonly default: "text";
|
|
144
|
+
};
|
|
145
|
+
}>> & Readonly<{
|
|
146
|
+
onBlur?: ((...args: any[]) => any) | undefined;
|
|
147
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
148
|
+
onFocus?: ((...args: any[]) => any) | undefined;
|
|
149
|
+
onInput?: ((...args: any[]) => any) | undefined;
|
|
150
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
151
|
+
}>, {
|
|
152
|
+
readonly type: string;
|
|
153
|
+
readonly invalid: boolean;
|
|
154
|
+
readonly defaultValue: string;
|
|
155
|
+
readonly disabled: boolean;
|
|
156
|
+
readonly readonly: boolean;
|
|
157
|
+
readonly required: boolean;
|
|
158
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
159
|
+
/** 搜索框保留 TextField 的标签结构,提供 search 事件和清空入口。 */
|
|
160
|
+
export declare const SearchField: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
161
|
+
readonly modelValue: StringConstructor;
|
|
162
|
+
readonly defaultValue: {
|
|
163
|
+
readonly type: StringConstructor;
|
|
164
|
+
readonly default: "";
|
|
165
|
+
};
|
|
166
|
+
readonly id: StringConstructor;
|
|
167
|
+
readonly label: StringConstructor;
|
|
168
|
+
readonly description: StringConstructor;
|
|
169
|
+
readonly errorMessage: StringConstructor;
|
|
170
|
+
readonly invalid: BooleanConstructor;
|
|
171
|
+
readonly required: BooleanConstructor;
|
|
172
|
+
readonly disabled: BooleanConstructor;
|
|
173
|
+
readonly readonly: BooleanConstructor;
|
|
174
|
+
readonly name: StringConstructor;
|
|
175
|
+
readonly placeholder: StringConstructor;
|
|
176
|
+
readonly type: {
|
|
177
|
+
readonly type: StringConstructor;
|
|
178
|
+
readonly default: "text";
|
|
179
|
+
};
|
|
180
|
+
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
181
|
+
[key: string]: any;
|
|
182
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("search" | "update:modelValue")[], "search" | "update:modelValue", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
183
|
+
readonly modelValue: StringConstructor;
|
|
184
|
+
readonly defaultValue: {
|
|
185
|
+
readonly type: StringConstructor;
|
|
186
|
+
readonly default: "";
|
|
187
|
+
};
|
|
188
|
+
readonly id: StringConstructor;
|
|
189
|
+
readonly label: StringConstructor;
|
|
190
|
+
readonly description: StringConstructor;
|
|
191
|
+
readonly errorMessage: StringConstructor;
|
|
192
|
+
readonly invalid: BooleanConstructor;
|
|
193
|
+
readonly required: BooleanConstructor;
|
|
194
|
+
readonly disabled: BooleanConstructor;
|
|
195
|
+
readonly readonly: BooleanConstructor;
|
|
196
|
+
readonly name: StringConstructor;
|
|
197
|
+
readonly placeholder: StringConstructor;
|
|
198
|
+
readonly type: {
|
|
199
|
+
readonly type: StringConstructor;
|
|
200
|
+
readonly default: "text";
|
|
201
|
+
};
|
|
202
|
+
}>> & Readonly<{
|
|
203
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
204
|
+
onSearch?: ((...args: any[]) => any) | undefined;
|
|
205
|
+
}>, {
|
|
206
|
+
readonly type: string;
|
|
207
|
+
readonly invalid: boolean;
|
|
208
|
+
readonly defaultValue: string;
|
|
209
|
+
readonly disabled: boolean;
|
|
210
|
+
readonly readonly: boolean;
|
|
211
|
+
readonly required: boolean;
|
|
212
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
213
|
+
/** 单个原生输入承载验证码编辑,装饰格子避免分裂粘贴、读屏和自动填充行为。 */
|
|
214
|
+
export declare const InputOTP: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
215
|
+
modelValue: StringConstructor;
|
|
216
|
+
defaultValue: {
|
|
217
|
+
type: StringConstructor;
|
|
218
|
+
default: string;
|
|
219
|
+
};
|
|
220
|
+
length: {
|
|
221
|
+
type: NumberConstructor;
|
|
222
|
+
default: number;
|
|
223
|
+
validator: (value: number) => boolean;
|
|
224
|
+
};
|
|
225
|
+
type: {
|
|
226
|
+
type: PropType<"numeric" | "text">;
|
|
227
|
+
default: string;
|
|
228
|
+
};
|
|
229
|
+
disabled: BooleanConstructor;
|
|
230
|
+
readonly: BooleanConstructor;
|
|
231
|
+
invalid: BooleanConstructor;
|
|
232
|
+
label: {
|
|
233
|
+
type: StringConstructor;
|
|
234
|
+
default: string;
|
|
235
|
+
};
|
|
236
|
+
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
237
|
+
[key: string]: any;
|
|
238
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:modelValue" | "complete")[], "change" | "update:modelValue" | "complete", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
239
|
+
modelValue: StringConstructor;
|
|
240
|
+
defaultValue: {
|
|
241
|
+
type: StringConstructor;
|
|
242
|
+
default: string;
|
|
243
|
+
};
|
|
244
|
+
length: {
|
|
245
|
+
type: NumberConstructor;
|
|
246
|
+
default: number;
|
|
247
|
+
validator: (value: number) => boolean;
|
|
248
|
+
};
|
|
249
|
+
type: {
|
|
250
|
+
type: PropType<"numeric" | "text">;
|
|
251
|
+
default: string;
|
|
252
|
+
};
|
|
253
|
+
disabled: BooleanConstructor;
|
|
254
|
+
readonly: BooleanConstructor;
|
|
255
|
+
invalid: BooleanConstructor;
|
|
256
|
+
label: {
|
|
257
|
+
type: StringConstructor;
|
|
258
|
+
default: string;
|
|
259
|
+
};
|
|
260
|
+
}>> & Readonly<{
|
|
261
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
262
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
263
|
+
onComplete?: ((...args: any[]) => any) | undefined;
|
|
264
|
+
}>, {
|
|
265
|
+
type: "text" | "numeric";
|
|
266
|
+
length: number;
|
|
267
|
+
invalid: boolean;
|
|
268
|
+
label: string;
|
|
269
|
+
defaultValue: string;
|
|
270
|
+
disabled: boolean;
|
|
271
|
+
readonly: boolean;
|
|
272
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
273
|
+
/** 滚动内容使用 Arco Scrollbar,边缘状态供主题绘制阴影。 */
|
|
274
|
+
export declare const ScrollShadow: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
275
|
+
maxHeight: {
|
|
276
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
277
|
+
default: number;
|
|
278
|
+
};
|
|
279
|
+
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
280
|
+
[key: string]: any;
|
|
281
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
282
|
+
maxHeight: {
|
|
283
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
284
|
+
default: number;
|
|
285
|
+
};
|
|
286
|
+
}>> & Readonly<{}>, {
|
|
287
|
+
maxHeight: string | number;
|
|
288
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
/** 把测量值归一化为可绘制的比例,限制越界输入。 */
|
|
2
|
+
export declare function progressRatio(value: number | undefined, min: number, max: number): number;
|
|
3
|
+
/** 线性进度,省略 value 时呈现不确定进度。 */
|
|
4
|
+
export declare const ProgressBar: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
5
|
+
value: NumberConstructor;
|
|
6
|
+
min: {
|
|
7
|
+
type: NumberConstructor;
|
|
8
|
+
default: number;
|
|
9
|
+
};
|
|
10
|
+
max: {
|
|
11
|
+
type: NumberConstructor;
|
|
12
|
+
default: number;
|
|
13
|
+
};
|
|
14
|
+
label: StringConstructor;
|
|
15
|
+
showValue: BooleanConstructor;
|
|
16
|
+
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
17
|
+
[key: string]: any;
|
|
18
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
19
|
+
value: NumberConstructor;
|
|
20
|
+
min: {
|
|
21
|
+
type: NumberConstructor;
|
|
22
|
+
default: number;
|
|
23
|
+
};
|
|
24
|
+
max: {
|
|
25
|
+
type: NumberConstructor;
|
|
26
|
+
default: number;
|
|
27
|
+
};
|
|
28
|
+
label: StringConstructor;
|
|
29
|
+
showValue: BooleanConstructor;
|
|
30
|
+
}>> & Readonly<{}>, {
|
|
31
|
+
max: number;
|
|
32
|
+
min: number;
|
|
33
|
+
showValue: boolean;
|
|
34
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
35
|
+
/** 圆形进度采用 SVG 圆环,保持与线性进度相同的值域和无障碍语义。 */
|
|
36
|
+
export declare const ProgressCircle: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
37
|
+
value: NumberConstructor;
|
|
38
|
+
min: {
|
|
39
|
+
type: NumberConstructor;
|
|
40
|
+
default: number;
|
|
41
|
+
};
|
|
42
|
+
max: {
|
|
43
|
+
type: NumberConstructor;
|
|
44
|
+
default: number;
|
|
45
|
+
};
|
|
46
|
+
label: StringConstructor;
|
|
47
|
+
showValue: BooleanConstructor;
|
|
48
|
+
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
49
|
+
[key: string]: any;
|
|
50
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
51
|
+
value: NumberConstructor;
|
|
52
|
+
min: {
|
|
53
|
+
type: NumberConstructor;
|
|
54
|
+
default: number;
|
|
55
|
+
};
|
|
56
|
+
max: {
|
|
57
|
+
type: NumberConstructor;
|
|
58
|
+
default: number;
|
|
59
|
+
};
|
|
60
|
+
label: StringConstructor;
|
|
61
|
+
showValue: BooleanConstructor;
|
|
62
|
+
}>> & Readonly<{}>, {
|
|
63
|
+
max: number;
|
|
64
|
+
min: number;
|
|
65
|
+
showValue: boolean;
|
|
66
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
67
|
+
/** 测量表使用原生 meter 语义,与任务进度区分。 */
|
|
68
|
+
export declare const Meter: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
69
|
+
value: {
|
|
70
|
+
type: NumberConstructor;
|
|
71
|
+
required: true;
|
|
72
|
+
};
|
|
73
|
+
min: {
|
|
74
|
+
type: NumberConstructor;
|
|
75
|
+
default: number;
|
|
76
|
+
};
|
|
77
|
+
max: {
|
|
78
|
+
type: NumberConstructor;
|
|
79
|
+
default: number;
|
|
80
|
+
};
|
|
81
|
+
label: StringConstructor;
|
|
82
|
+
showValue: BooleanConstructor;
|
|
83
|
+
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
84
|
+
[key: string]: any;
|
|
85
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
86
|
+
value: {
|
|
87
|
+
type: NumberConstructor;
|
|
88
|
+
required: true;
|
|
89
|
+
};
|
|
90
|
+
min: {
|
|
91
|
+
type: NumberConstructor;
|
|
92
|
+
default: number;
|
|
93
|
+
};
|
|
94
|
+
max: {
|
|
95
|
+
type: NumberConstructor;
|
|
96
|
+
default: number;
|
|
97
|
+
};
|
|
98
|
+
label: StringConstructor;
|
|
99
|
+
showValue: BooleanConstructor;
|
|
100
|
+
}>> & Readonly<{}>, {
|
|
101
|
+
max: number;
|
|
102
|
+
min: number;
|
|
103
|
+
showValue: boolean;
|
|
104
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import { type PropType, type ShallowRef, type VNodeChild, type CSSProperties, type Ref } from 'vue';
|
|
2
|
+
/** 主题范围同时覆盖组件树及其独立浮层。 */
|
|
3
|
+
export type DshTheme = 'auto' | 'light' | 'dark';
|
|
4
|
+
/** 控件圆角尺度。 */
|
|
5
|
+
export type DshRadius = 'none' | 'sm' | 'md' | 'lg' | 'full';
|
|
6
|
+
/** 作用域内提示的内容和生命周期。 */
|
|
7
|
+
export interface ToastOptions {
|
|
8
|
+
content: VNodeChild | (() => VNodeChild);
|
|
9
|
+
title?: VNodeChild | (() => VNodeChild);
|
|
10
|
+
type?: 'info' | 'success' | 'warning' | 'error' | 'loading' | 'normal';
|
|
11
|
+
id?: string;
|
|
12
|
+
kind?: 'message' | 'notification';
|
|
13
|
+
position?: 'top' | 'bottom' | 'topLeft' | 'topRight' | 'bottomLeft' | 'bottomRight';
|
|
14
|
+
icon?: () => VNodeChild;
|
|
15
|
+
footer?: () => VNodeChild;
|
|
16
|
+
closeIcon?: () => VNodeChild;
|
|
17
|
+
closeIconElement?: () => VNodeChild;
|
|
18
|
+
showIcon?: boolean;
|
|
19
|
+
resetOnHover?: boolean;
|
|
20
|
+
class?: string | Record<string, boolean> | (string | Record<string, boolean>)[];
|
|
21
|
+
style?: CSSProperties;
|
|
22
|
+
duration?: number;
|
|
23
|
+
closable?: boolean;
|
|
24
|
+
onClose?: (id: string | number) => void;
|
|
25
|
+
}
|
|
26
|
+
/** 提示句柄允许操作完成后主动关闭。 */
|
|
27
|
+
export interface ToastHandle {
|
|
28
|
+
close: () => void;
|
|
29
|
+
}
|
|
30
|
+
/** 在当前 Provider 内显示消息,避免修改 Arco 全局配置。 */
|
|
31
|
+
export interface ToastApi {
|
|
32
|
+
show: (options: string | ToastOptions) => ToastHandle;
|
|
33
|
+
info: (options: string | ToastOptions) => ToastHandle;
|
|
34
|
+
success: (options: string | ToastOptions) => ToastHandle;
|
|
35
|
+
warning: (options: string | ToastOptions) => ToastHandle;
|
|
36
|
+
error: (options: string | ToastOptions) => ToastHandle;
|
|
37
|
+
clear: (position?: ToastOptions['position'], kind?: ToastOptions['kind']) => void;
|
|
38
|
+
remove: (id: string, kind?: ToastOptions['kind']) => void;
|
|
39
|
+
}
|
|
40
|
+
/** 普通浮层包装通过此上下文取得独立容器。 */
|
|
41
|
+
export interface DshThemeContext {
|
|
42
|
+
container: ShallowRef<HTMLElement | undefined>;
|
|
43
|
+
readonly locale: Readonly<Ref<string>>;
|
|
44
|
+
toast: ToastApi;
|
|
45
|
+
mountOverlay: (content: () => VNodeChild) => () => void;
|
|
46
|
+
}
|
|
47
|
+
/** 需要在 DshProvider 后代的 setup 中调用。 */
|
|
48
|
+
export declare function useDshTheme(): DshThemeContext;
|
|
49
|
+
/** 对话框为其后代浮层建立独立容器,同时继承外层消息与主题上下文。 */
|
|
50
|
+
export declare function provideDshPopupScope(container: ShallowRef<HTMLElement | undefined>): void;
|
|
51
|
+
/** 提供局部主题、语言、方向和可回收的浮层及消息容器。 */
|
|
52
|
+
export declare const DshProvider: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
53
|
+
theme: {
|
|
54
|
+
type: PropType<DshTheme>;
|
|
55
|
+
default: string;
|
|
56
|
+
};
|
|
57
|
+
radius: {
|
|
58
|
+
type: PropType<DshRadius>;
|
|
59
|
+
default: string;
|
|
60
|
+
};
|
|
61
|
+
reducedMotion: {
|
|
62
|
+
type: BooleanConstructor;
|
|
63
|
+
default: undefined;
|
|
64
|
+
};
|
|
65
|
+
locale: any;
|
|
66
|
+
rtl: BooleanConstructor;
|
|
67
|
+
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
68
|
+
[key: string]: any;
|
|
69
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
70
|
+
theme: {
|
|
71
|
+
type: PropType<DshTheme>;
|
|
72
|
+
default: string;
|
|
73
|
+
};
|
|
74
|
+
radius: {
|
|
75
|
+
type: PropType<DshRadius>;
|
|
76
|
+
default: string;
|
|
77
|
+
};
|
|
78
|
+
reducedMotion: {
|
|
79
|
+
type: BooleanConstructor;
|
|
80
|
+
default: undefined;
|
|
81
|
+
};
|
|
82
|
+
locale: any;
|
|
83
|
+
rtl: BooleanConstructor;
|
|
84
|
+
}>> & Readonly<{}>, {
|
|
85
|
+
locale: any;
|
|
86
|
+
rtl: boolean;
|
|
87
|
+
theme: DshTheme;
|
|
88
|
+
radius: DshRadius;
|
|
89
|
+
reducedMotion: boolean;
|
|
90
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/** 选择控件共享的选项;文本用于键盘检索及可访问名称。 */
|
|
2
|
+
export interface SelectionOption {
|
|
3
|
+
value: string | number;
|
|
4
|
+
label: string;
|
|
5
|
+
description?: string;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
}
|
|
8
|
+
/** 单选和多选的 Vue 模型值。 */
|
|
9
|
+
export type SelectionValue = string | number | Array<string | number> | undefined;
|
|
10
|
+
/** 按方向或首尾键寻找可用选项,空集合返回 -1。 */
|
|
11
|
+
export declare function nextEnabledIndex(options: readonly SelectionOption[], current: number, key: string, loop?: boolean): number;
|
|
12
|
+
/** 从当前项之后循环匹配文字前缀,跳过禁用项。 */
|
|
13
|
+
export declare function findByText(options: readonly SelectionOption[], current: number, query: string): number;
|
|
14
|
+
/** 切换单项选择;多选保留顺序,必选模式阻止移除最后一项。 */
|
|
15
|
+
export declare function toggleSelection(value: SelectionValue, key: string | number, multiple: boolean, allowEmpty: boolean): SelectionValue;
|
|
16
|
+
/** 过滤验证码输入,并保留前导零。 */
|
|
17
|
+
export declare function normalizeOtp(value: string, length: number, numeric: boolean): string;
|
|
18
|
+
/** 将粘贴文本插入当前选区;过滤后长度仍受验证码上限约束。 */
|
|
19
|
+
export declare function insertOtp(value: string, text: string, start: number, end: number, length: number, numeric: boolean): {
|
|
20
|
+
value: string;
|
|
21
|
+
cursor: number;
|
|
22
|
+
};
|