@squirrel-cloud/ui-vue 0.2.46 → 0.3.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/dist/components/article/article.d.ts +7 -1
- package/dist/components/blur/blur.d.ts +17 -0
- package/dist/components/blur/index.d.ts +2 -0
- package/dist/components/button/button-group.d.ts +0 -1
- package/dist/components/checkbox/checkbox-group.d.ts +27 -0
- package/dist/components/checkbox/checkbox.d.ts +15 -0
- package/dist/components/checkbox/index.d.ts +4 -0
- package/dist/components/checkbox/injection-keys.d.ts +6 -0
- package/dist/components/divider/divider.d.ts +22 -0
- package/dist/components/divider/index.d.ts +2 -0
- package/dist/components/form/form.d.ts +8 -9
- package/dist/components/image/image.d.ts +26 -0
- package/dist/components/image/index.d.ts +2 -0
- package/dist/components/index.d.ts +6 -1
- package/dist/components/input/input.d.ts +5 -2
- package/dist/components/only-child/index.d.ts +2 -0
- package/dist/components/only-child/only-child.d.ts +5 -0
- package/dist/components/popover/popover.d.ts +24 -2
- package/dist/components/progress/progress.d.ts +0 -1
- package/dist/components/radio/index.d.ts +4 -0
- package/dist/components/radio/injection-keys.d.ts +6 -0
- package/dist/components/radio/radio-group.d.ts +27 -0
- package/dist/components/radio/radio.d.ts +15 -0
- package/dist/components/switch/index.d.ts +2 -0
- package/dist/components/switch/switch.d.ts +15 -0
- package/dist/components/tag/check-tag.d.ts +0 -2
- package/dist/components/tag/tag.d.ts +0 -1
- package/dist/components/text/text.d.ts +1 -2
- package/dist/components/timeline/timeline-item.d.ts +1 -3
- package/dist/props/button/button-group.d.ts +1 -1
- package/dist/props/checkbox/checkbox-group.d.ts +16 -0
- package/dist/props/checkbox/checkbox.d.ts +38 -0
- package/dist/props/checkbox/index.d.ts +2 -0
- package/dist/props/divider/divider.d.ts +19 -0
- package/dist/props/divider/index.d.ts +1 -0
- package/dist/props/form/form.d.ts +19 -7
- package/dist/props/image/image.d.ts +38 -0
- package/dist/props/image/index.d.ts +1 -0
- package/dist/props/index.d.ts +5 -1
- package/dist/props/input/input.d.ts +14 -6
- package/dist/props/progress/progress.d.ts +4 -4
- package/dist/props/radio/index.d.ts +2 -0
- package/dist/props/radio/radio-group.d.ts +16 -0
- package/dist/props/radio/radio.d.ts +34 -0
- package/dist/props/switch/index.d.ts +1 -0
- package/dist/props/switch/switch.d.ts +34 -0
- package/dist/props/tag/check-tag.d.ts +1 -6
- package/dist/props/tag/tag.d.ts +3 -3
- package/dist/props/text/text.d.ts +2 -6
- package/dist/props/timeline/timeline-item.d.ts +1 -5
- package/dist/props/timeline/timeline.d.ts +5 -1
- package/dist/squirrel-cloud-ui-vue.js +2708 -2234
- package/dist/squirrel-cloud-ui-vue.umd.cjs +25 -38
- package/dist/style.css +1 -1
- package/dist/typings/ComponentType.d.ts +7 -3
- package/dist/typings/DividerDirection.d.ts +4 -0
- package/dist/typings/Form.d.ts +71 -8
- package/dist/typings/Image.d.ts +34 -0
- package/dist/typings/InputType.d.ts +1 -1
- package/dist/typings/LineType.d.ts +10 -1
- package/dist/typings/ProgressVariant.d.ts +4 -0
- package/dist/typings/RequiredMarkType.d.ts +4 -0
- package/dist/typings/SelectionVariant.d.ts +4 -0
- package/dist/typings/SwitchVariant.d.ts +4 -0
- package/dist/typings/TagVariant.d.ts +4 -0
- package/dist/typings/TimelineVariant.d.ts +4 -0
- package/dist/typings/contexts/CheckboxGroupContext.d.ts +11 -0
- package/dist/typings/contexts/FormContext.d.ts +0 -5
- package/dist/typings/contexts/RadioGroupContext.d.ts +11 -0
- package/dist/typings/contexts/SelectionContext.d.ts +36 -0
- package/dist/typings/contexts/index.d.ts +3 -0
- package/dist/typings/index.d.ts +8 -3
- package/package.json +1 -1
- package/dist/components/textarea/index.d.ts +0 -2
- package/dist/components/textarea/textarea.d.ts +0 -39
- package/dist/props/textarea/index.d.ts +0 -1
- package/dist/props/textarea/textarea.d.ts +0 -24
- package/dist/typings/ProgressTheme.d.ts +0 -4
- package/dist/typings/TagTheme.d.ts +0 -9
- package/dist/typings/TimelineTheme.d.ts +0 -4
package/dist/props/index.d.ts
CHANGED
|
@@ -3,13 +3,17 @@ export * from './avatar';
|
|
|
3
3
|
export * from './backtop';
|
|
4
4
|
export * from './button';
|
|
5
5
|
export * from './card';
|
|
6
|
+
export * from './checkbox';
|
|
7
|
+
export * from './divider';
|
|
6
8
|
export * from './form';
|
|
9
|
+
export * from './image';
|
|
7
10
|
export * from './input';
|
|
8
11
|
export * from './message';
|
|
9
12
|
export * from './pagination';
|
|
10
13
|
export * from './popover';
|
|
11
14
|
export * from './progress';
|
|
15
|
+
export * from './radio';
|
|
16
|
+
export * from './switch';
|
|
12
17
|
export * from './tag';
|
|
13
18
|
export * from './text';
|
|
14
|
-
export * from './textarea';
|
|
15
19
|
export * from './timeline';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Component } from 'vue';
|
|
2
|
-
import { ComponentSize,
|
|
2
|
+
import { ComponentSize, ComponentTypeWarn, InputMode, InputType, TextareaResizeType } from '../../typings';
|
|
3
3
|
/**
|
|
4
4
|
* 输入框属性
|
|
5
5
|
*/
|
|
@@ -7,15 +7,11 @@ export interface InputProps {
|
|
|
7
7
|
/**
|
|
8
8
|
* 输入框状态
|
|
9
9
|
*/
|
|
10
|
-
status?:
|
|
10
|
+
status?: ComponentTypeWarn;
|
|
11
11
|
/**
|
|
12
12
|
* 是否圆角输入框
|
|
13
13
|
*/
|
|
14
14
|
round?: boolean;
|
|
15
|
-
/**
|
|
16
|
-
* 是否显示状态图标
|
|
17
|
-
*/
|
|
18
|
-
showStatusIcon?: boolean;
|
|
19
15
|
/**
|
|
20
16
|
* 前缀图标
|
|
21
17
|
*/
|
|
@@ -80,4 +76,16 @@ export interface InputProps {
|
|
|
80
76
|
* 输入框大小
|
|
81
77
|
*/
|
|
82
78
|
size?: ComponentSize;
|
|
79
|
+
/**
|
|
80
|
+
* 缩放方式
|
|
81
|
+
*/
|
|
82
|
+
resize?: TextareaResizeType;
|
|
83
|
+
/**
|
|
84
|
+
* 高度
|
|
85
|
+
*/
|
|
86
|
+
rows?: number | string;
|
|
87
|
+
/**
|
|
88
|
+
* 宽度
|
|
89
|
+
*/
|
|
90
|
+
cols?: number | string;
|
|
83
91
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ComponentType,
|
|
1
|
+
import { ComponentType, ProgressVariant } from '../../typings';
|
|
2
2
|
/**
|
|
3
3
|
* 进度条属性
|
|
4
4
|
*/
|
|
@@ -24,13 +24,13 @@ export interface ProgressProps {
|
|
|
24
24
|
*/
|
|
25
25
|
color?: string | ((percentage: number) => string);
|
|
26
26
|
/**
|
|
27
|
-
*
|
|
27
|
+
* 进度条类型
|
|
28
28
|
*/
|
|
29
29
|
type?: ComponentType;
|
|
30
30
|
/**
|
|
31
|
-
*
|
|
31
|
+
* 进度条变体
|
|
32
32
|
*/
|
|
33
|
-
|
|
33
|
+
variant?: ProgressVariant;
|
|
34
34
|
/**
|
|
35
35
|
* 是否显示标签
|
|
36
36
|
*/
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { RadioProps } from '.';
|
|
2
|
+
type ExcludeKeys = 'autofocus' | 'label';
|
|
3
|
+
/**
|
|
4
|
+
* 单选框组属性
|
|
5
|
+
*/
|
|
6
|
+
export interface RadioGroupProps extends Omit<RadioProps, ExcludeKeys> {
|
|
7
|
+
/**
|
|
8
|
+
* 单选框组列表
|
|
9
|
+
*/
|
|
10
|
+
items?: string[] | number[];
|
|
11
|
+
/**
|
|
12
|
+
* 选中项
|
|
13
|
+
*/
|
|
14
|
+
value?: string | number;
|
|
15
|
+
}
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { ComponentSize, SelectionVariant } from '../../typings';
|
|
2
|
+
/**
|
|
3
|
+
* 单选框属性
|
|
4
|
+
*/
|
|
5
|
+
export interface RadioProps {
|
|
6
|
+
/**
|
|
7
|
+
* 关联表单
|
|
8
|
+
*/
|
|
9
|
+
form?: string;
|
|
10
|
+
/**
|
|
11
|
+
* 名称
|
|
12
|
+
*/
|
|
13
|
+
name?: string;
|
|
14
|
+
/**
|
|
15
|
+
* 是否禁用
|
|
16
|
+
*/
|
|
17
|
+
disabled?: boolean;
|
|
18
|
+
/**
|
|
19
|
+
* 单选框大小
|
|
20
|
+
*/
|
|
21
|
+
size?: ComponentSize;
|
|
22
|
+
/**
|
|
23
|
+
* 单选框变体
|
|
24
|
+
*/
|
|
25
|
+
variant?: SelectionVariant;
|
|
26
|
+
/**
|
|
27
|
+
* 是否自动获取焦点
|
|
28
|
+
*/
|
|
29
|
+
autofocus?: boolean;
|
|
30
|
+
/**
|
|
31
|
+
* 单选框标签
|
|
32
|
+
*/
|
|
33
|
+
label?: string | number;
|
|
34
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './switch';
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { ComponentSize, SwitchVariant } from '../../typings';
|
|
2
|
+
/**
|
|
3
|
+
* 开关属性
|
|
4
|
+
*/
|
|
5
|
+
export interface SwitchProps {
|
|
6
|
+
/**
|
|
7
|
+
* 关联表单
|
|
8
|
+
*/
|
|
9
|
+
form?: string;
|
|
10
|
+
/**
|
|
11
|
+
* 名称
|
|
12
|
+
*/
|
|
13
|
+
name?: string;
|
|
14
|
+
/**
|
|
15
|
+
* 是否禁用
|
|
16
|
+
*/
|
|
17
|
+
disabled?: boolean;
|
|
18
|
+
/**
|
|
19
|
+
* 开关大小
|
|
20
|
+
*/
|
|
21
|
+
size?: ComponentSize;
|
|
22
|
+
/**
|
|
23
|
+
* 开关变体
|
|
24
|
+
*/
|
|
25
|
+
variant?: SwitchVariant;
|
|
26
|
+
/**
|
|
27
|
+
* 是否自动获取焦点
|
|
28
|
+
*/
|
|
29
|
+
autofocus?: boolean;
|
|
30
|
+
/**
|
|
31
|
+
* 是否加载中
|
|
32
|
+
*/
|
|
33
|
+
loading?: boolean;
|
|
34
|
+
}
|
|
@@ -1,15 +1,10 @@
|
|
|
1
1
|
import { TagProps } from '..';
|
|
2
|
-
import { TagThemeBase } from '../../typings';
|
|
3
2
|
/**
|
|
4
3
|
* 可选中标签属性
|
|
5
4
|
*/
|
|
6
|
-
export interface CheckTagProps extends Omit<TagProps, '
|
|
5
|
+
export interface CheckTagProps extends Omit<TagProps, 'variant'> {
|
|
7
6
|
/**
|
|
8
7
|
* 是否选中状态
|
|
9
8
|
*/
|
|
10
9
|
checked?: boolean;
|
|
11
|
-
/**
|
|
12
|
-
* 可选中标签主题
|
|
13
|
-
*/
|
|
14
|
-
theme?: TagThemeBase;
|
|
15
10
|
}
|
package/dist/props/tag/tag.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { TagVariant, ComponentSize, ComponentType } from '../../typings';
|
|
2
2
|
/**
|
|
3
3
|
* 标签属性
|
|
4
4
|
*/
|
|
@@ -8,9 +8,9 @@ export interface TagProps {
|
|
|
8
8
|
*/
|
|
9
9
|
type?: ComponentType;
|
|
10
10
|
/**
|
|
11
|
-
*
|
|
11
|
+
* 标签变体
|
|
12
12
|
*/
|
|
13
|
-
|
|
13
|
+
variant?: TagVariant;
|
|
14
14
|
/**
|
|
15
15
|
* 是否圆角标签
|
|
16
16
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Component } from 'vue';
|
|
2
|
-
import { ComponentType
|
|
2
|
+
import { ComponentType } from '../../typings';
|
|
3
3
|
/**
|
|
4
4
|
* 时间线项目属性
|
|
5
5
|
*/
|
|
@@ -24,10 +24,6 @@ export interface TimelineItemProps {
|
|
|
24
24
|
* 时间戳
|
|
25
25
|
*/
|
|
26
26
|
timestamp?: string;
|
|
27
|
-
/**
|
|
28
|
-
* 时间线主题
|
|
29
|
-
*/
|
|
30
|
-
theme?: TimelineTheme;
|
|
31
27
|
/**
|
|
32
28
|
* 标题
|
|
33
29
|
*/
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Alignment } from '../../typings';
|
|
1
|
+
import { Alignment, TimelineVariant } from '../../typings';
|
|
2
2
|
/**
|
|
3
3
|
* 时间线属性
|
|
4
4
|
*/
|
|
@@ -7,4 +7,8 @@ export interface TimelineProps {
|
|
|
7
7
|
* 对齐方式
|
|
8
8
|
*/
|
|
9
9
|
align?: Alignment;
|
|
10
|
+
/**
|
|
11
|
+
* 时间线变体
|
|
12
|
+
*/
|
|
13
|
+
variant?: TimelineVariant;
|
|
10
14
|
}
|