@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.
Files changed (80) hide show
  1. package/dist/components/article/article.d.ts +7 -1
  2. package/dist/components/blur/blur.d.ts +17 -0
  3. package/dist/components/blur/index.d.ts +2 -0
  4. package/dist/components/button/button-group.d.ts +0 -1
  5. package/dist/components/checkbox/checkbox-group.d.ts +27 -0
  6. package/dist/components/checkbox/checkbox.d.ts +15 -0
  7. package/dist/components/checkbox/index.d.ts +4 -0
  8. package/dist/components/checkbox/injection-keys.d.ts +6 -0
  9. package/dist/components/divider/divider.d.ts +22 -0
  10. package/dist/components/divider/index.d.ts +2 -0
  11. package/dist/components/form/form.d.ts +8 -9
  12. package/dist/components/image/image.d.ts +26 -0
  13. package/dist/components/image/index.d.ts +2 -0
  14. package/dist/components/index.d.ts +6 -1
  15. package/dist/components/input/input.d.ts +5 -2
  16. package/dist/components/only-child/index.d.ts +2 -0
  17. package/dist/components/only-child/only-child.d.ts +5 -0
  18. package/dist/components/popover/popover.d.ts +24 -2
  19. package/dist/components/progress/progress.d.ts +0 -1
  20. package/dist/components/radio/index.d.ts +4 -0
  21. package/dist/components/radio/injection-keys.d.ts +6 -0
  22. package/dist/components/radio/radio-group.d.ts +27 -0
  23. package/dist/components/radio/radio.d.ts +15 -0
  24. package/dist/components/switch/index.d.ts +2 -0
  25. package/dist/components/switch/switch.d.ts +15 -0
  26. package/dist/components/tag/check-tag.d.ts +0 -2
  27. package/dist/components/tag/tag.d.ts +0 -1
  28. package/dist/components/text/text.d.ts +1 -2
  29. package/dist/components/timeline/timeline-item.d.ts +1 -3
  30. package/dist/props/button/button-group.d.ts +1 -1
  31. package/dist/props/checkbox/checkbox-group.d.ts +16 -0
  32. package/dist/props/checkbox/checkbox.d.ts +38 -0
  33. package/dist/props/checkbox/index.d.ts +2 -0
  34. package/dist/props/divider/divider.d.ts +19 -0
  35. package/dist/props/divider/index.d.ts +1 -0
  36. package/dist/props/form/form.d.ts +19 -7
  37. package/dist/props/image/image.d.ts +38 -0
  38. package/dist/props/image/index.d.ts +1 -0
  39. package/dist/props/index.d.ts +5 -1
  40. package/dist/props/input/input.d.ts +14 -6
  41. package/dist/props/progress/progress.d.ts +4 -4
  42. package/dist/props/radio/index.d.ts +2 -0
  43. package/dist/props/radio/radio-group.d.ts +16 -0
  44. package/dist/props/radio/radio.d.ts +34 -0
  45. package/dist/props/switch/index.d.ts +1 -0
  46. package/dist/props/switch/switch.d.ts +34 -0
  47. package/dist/props/tag/check-tag.d.ts +1 -6
  48. package/dist/props/tag/tag.d.ts +3 -3
  49. package/dist/props/text/text.d.ts +2 -6
  50. package/dist/props/timeline/timeline-item.d.ts +1 -5
  51. package/dist/props/timeline/timeline.d.ts +5 -1
  52. package/dist/squirrel-cloud-ui-vue.js +2708 -2234
  53. package/dist/squirrel-cloud-ui-vue.umd.cjs +25 -38
  54. package/dist/style.css +1 -1
  55. package/dist/typings/ComponentType.d.ts +7 -3
  56. package/dist/typings/DividerDirection.d.ts +4 -0
  57. package/dist/typings/Form.d.ts +71 -8
  58. package/dist/typings/Image.d.ts +34 -0
  59. package/dist/typings/InputType.d.ts +1 -1
  60. package/dist/typings/LineType.d.ts +10 -1
  61. package/dist/typings/ProgressVariant.d.ts +4 -0
  62. package/dist/typings/RequiredMarkType.d.ts +4 -0
  63. package/dist/typings/SelectionVariant.d.ts +4 -0
  64. package/dist/typings/SwitchVariant.d.ts +4 -0
  65. package/dist/typings/TagVariant.d.ts +4 -0
  66. package/dist/typings/TimelineVariant.d.ts +4 -0
  67. package/dist/typings/contexts/CheckboxGroupContext.d.ts +11 -0
  68. package/dist/typings/contexts/FormContext.d.ts +0 -5
  69. package/dist/typings/contexts/RadioGroupContext.d.ts +11 -0
  70. package/dist/typings/contexts/SelectionContext.d.ts +36 -0
  71. package/dist/typings/contexts/index.d.ts +3 -0
  72. package/dist/typings/index.d.ts +8 -3
  73. package/package.json +1 -1
  74. package/dist/components/textarea/index.d.ts +0 -2
  75. package/dist/components/textarea/textarea.d.ts +0 -39
  76. package/dist/props/textarea/index.d.ts +0 -1
  77. package/dist/props/textarea/textarea.d.ts +0 -24
  78. package/dist/typings/ProgressTheme.d.ts +0 -4
  79. package/dist/typings/TagTheme.d.ts +0 -9
  80. package/dist/typings/TimelineTheme.d.ts +0 -4
@@ -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, ComponentTypeBase, InputMode, InputType } from '../../typings';
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?: ComponentTypeBase;
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, ProgressTheme } from '../../typings';
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
- theme?: ProgressTheme;
33
+ variant?: ProgressVariant;
34
34
  /**
35
35
  * 是否显示标签
36
36
  */
@@ -0,0 +1,2 @@
1
+ export * from './radio';
2
+ export * from './radio-group';
@@ -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, 'theme'> {
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
  }
@@ -1,4 +1,4 @@
1
- import { TagTheme, ComponentSize, ComponentType } from '../../typings';
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
- theme?: TagTheme;
13
+ variant?: TagVariant;
14
14
  /**
15
15
  * 是否圆角标签
16
16
  */
@@ -4,13 +4,9 @@ import { ComponentSize } from '../../typings';
4
4
  */
5
5
  export interface TextProps {
6
6
  /**
7
- * 允许行数
7
+ * 溢出几行后省略
8
8
  */
9
- rowNum?: number;
10
- /**
11
- * 移除是否省略
12
- */
13
- ellipsis?: boolean;
9
+ ellipsis?: boolean | number;
14
10
  /**
15
11
  * 文本大小
16
12
  */
@@ -1,5 +1,5 @@
1
1
  import { Component } from 'vue';
2
- import { ComponentType, TimelineTheme } from '../../typings';
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
  }